mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
⚡ Dirty-Fix build
This commit is contained in:
parent
73010e1ae4
commit
abeae2ae9f
|
@ -18,5 +18,6 @@ export async function getAuthenticationClient(email: string, privateKey: string,
|
||||||
// TODO: Check later if this or the above should be cached
|
// TODO: Check later if this or the above should be cached
|
||||||
await client.authorize();
|
await client.authorize();
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
return client;
|
return client;
|
||||||
}
|
}
|
||||||
|
|
|
@ -827,6 +827,7 @@ export class GoogleDrive implements INodeType {
|
||||||
|
|
||||||
const drive = google.drive({
|
const drive = google.drive({
|
||||||
version: 'v3',
|
version: 'v3',
|
||||||
|
// @ts-ignore
|
||||||
auth: client,
|
auth: client,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,7 @@ export class GoogleSheet {
|
||||||
async clearData(range: string): Promise<object> {
|
async clearData(range: string): Promise<object> {
|
||||||
const client = await this.getAuthenticationClient();
|
const client = await this.getAuthenticationClient();
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
const response = await Sheets.spreadsheets.values.clear(
|
const response = await Sheets.spreadsheets.values.clear(
|
||||||
{
|
{
|
||||||
auth: client,
|
auth: client,
|
||||||
|
@ -84,6 +85,7 @@ export class GoogleSheet {
|
||||||
async getData(range: string, valueRenderMode: ValueRenderOption): Promise<string[][] | undefined> {
|
async getData(range: string, valueRenderMode: ValueRenderOption): Promise<string[][] | undefined> {
|
||||||
const client = await this.getAuthenticationClient();
|
const client = await this.getAuthenticationClient();
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
const response = await Sheets.spreadsheets.values.get(
|
const response = await Sheets.spreadsheets.values.get(
|
||||||
{
|
{
|
||||||
auth: client,
|
auth: client,
|
||||||
|
@ -103,6 +105,7 @@ export class GoogleSheet {
|
||||||
async spreadsheetGetSheets() {
|
async spreadsheetGetSheets() {
|
||||||
const client = await this.getAuthenticationClient();
|
const client = await this.getAuthenticationClient();
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
const response = await Sheets.spreadsheets.get(
|
const response = await Sheets.spreadsheets.get(
|
||||||
{
|
{
|
||||||
auth: client,
|
auth: client,
|
||||||
|
@ -121,6 +124,7 @@ export class GoogleSheet {
|
||||||
async spreadsheetBatchUpdate(requests: sheets_v4.Schema$Request[]) { // tslint:disable-line:no-any
|
async spreadsheetBatchUpdate(requests: sheets_v4.Schema$Request[]) { // tslint:disable-line:no-any
|
||||||
const client = await this.getAuthenticationClient();
|
const client = await this.getAuthenticationClient();
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
const response = await Sheets.spreadsheets.batchUpdate(
|
const response = await Sheets.spreadsheets.batchUpdate(
|
||||||
{
|
{
|
||||||
auth: client,
|
auth: client,
|
||||||
|
|
|
@ -236,7 +236,7 @@
|
||||||
"formidable": "^1.2.1",
|
"formidable": "^1.2.1",
|
||||||
"glob-promise": "^3.4.0",
|
"glob-promise": "^3.4.0",
|
||||||
"gm": "^1.23.1",
|
"gm": "^1.23.1",
|
||||||
"googleapis": "^46.0.0",
|
"googleapis": "~46.0.0",
|
||||||
"imap-simple": "^4.3.0",
|
"imap-simple": "^4.3.0",
|
||||||
"lodash.get": "^4.4.2",
|
"lodash.get": "^4.4.2",
|
||||||
"lodash.set": "^4.3.2",
|
"lodash.set": "^4.3.2",
|
||||||
|
|
Loading…
Reference in a new issue