|
|
@ -10,13 +10,13 @@ import { Table, TableSchema } from "../definitions/common" |
|
|
import { buildExternalTableId } from "./utils" |
|
|
import { buildExternalTableId } from "./utils" |
|
|
import { DataSourceOperation, FieldTypes } from "../constants" |
|
|
import { DataSourceOperation, FieldTypes } from "../constants" |
|
|
import { GoogleSpreadsheet } from "google-spreadsheet" |
|
|
import { GoogleSpreadsheet } from "google-spreadsheet" |
|
|
import fetch from "node-fetch" |
|
|
|
|
|
import env from "../environment" |
|
|
import env from "../environment" |
|
|
|
|
|
|
|
|
module GoogleSheetsModule { |
|
|
module GoogleSheetsModule { |
|
|
const { getGlobalDB } = require("@budibase/backend-core/tenancy") |
|
|
const { getGlobalDB } = require("@budibase/backend-core/tenancy") |
|
|
const { getScopedConfig } = require("@budibase/backend-core/db") |
|
|
const { getScopedConfig } = require("@budibase/backend-core/db") |
|
|
const { Configs } = require("@budibase/backend-core/constants") |
|
|
const { Configs } = require("@budibase/backend-core/constants") |
|
|
|
|
|
const fetch = require("node-fetch") |
|
|
|
|
|
|
|
|
interface GoogleSheetsConfig { |
|
|
interface GoogleSheetsConfig { |
|
|
spreadsheetId: string |
|
|
spreadsheetId: string |
|
|
|