UNPKG

spreadsheet-orm

Version:

ORM for Google Spreadsheet - Query Builder and Schema Management for spreadsheet database

25 lines 874 B
import { google, sheets_v4 } from "googleapis"; export interface SpreadConfigOptions { spreadsheetID: string; email: string; privateKey: string; } declare class SpreadConfig { static makeAuthJWT({ email, privateKey }: Pick<SpreadConfigOptions, 'email' | 'privateKey'>): import("google-auth-library").JWT; static extractSheetIDfromURL(url: string): SpreadConfigOptions['spreadsheetID'] | false; /** * instance properties */ ID: string; authJWT: InstanceType<typeof google.auth.JWT>; API: sheets_v4.Sheets; info: sheets_v4.Schema$Spreadsheet | null; constructor(options: SpreadConfigOptions); getSpreadInfo({ cached }?: { cached: boolean; }): Promise<sheets_v4.Schema$Spreadsheet>; private checkFormat; private isValidEmail; } export default SpreadConfig; //# sourceMappingURL=SpreadConfig.d.ts.map