Dirty-Fix build

This commit is contained in:
Jan Oberhauser 2020-01-27 01:32:47 -08:00
parent 73010e1ae4
commit abeae2ae9f
4 changed files with 7 additions and 1 deletions

View file

@ -18,5 +18,6 @@ export async function getAuthenticationClient(email: string, privateKey: string,
// TODO: Check later if this or the above should be cached
await client.authorize();
// @ts-ignore
return client;
}

View file

@ -827,6 +827,7 @@ export class GoogleDrive implements INodeType {
const drive = google.drive({
version: 'v3',
// @ts-ignore
auth: client,
});

View file

@ -67,6 +67,7 @@ export class GoogleSheet {
async clearData(range: string): Promise<object> {
const client = await this.getAuthenticationClient();
// @ts-ignore
const response = await Sheets.spreadsheets.values.clear(
{
auth: client,
@ -84,6 +85,7 @@ export class GoogleSheet {
async getData(range: string, valueRenderMode: ValueRenderOption): Promise<string[][] | undefined> {
const client = await this.getAuthenticationClient();
// @ts-ignore
const response = await Sheets.spreadsheets.values.get(
{
auth: client,
@ -103,6 +105,7 @@ export class GoogleSheet {
async spreadsheetGetSheets() {
const client = await this.getAuthenticationClient();
// @ts-ignore
const response = await Sheets.spreadsheets.get(
{
auth: client,
@ -121,6 +124,7 @@ export class GoogleSheet {
async spreadsheetBatchUpdate(requests: sheets_v4.Schema$Request[]) { // tslint:disable-line:no-any
const client = await this.getAuthenticationClient();
// @ts-ignore
const response = await Sheets.spreadsheets.batchUpdate(
{
auth: client,

View file

@ -236,7 +236,7 @@
"formidable": "^1.2.1",
"glob-promise": "^3.4.0",
"gm": "^1.23.1",
"googleapis": "^46.0.0",
"googleapis": "~46.0.0",
"imap-simple": "^4.3.0",
"lodash.get": "^4.4.2",
"lodash.set": "^4.3.2",