n8n-nodes-base
Version:
Base nodes of n8n
62 lines (58 loc) • 1.61 kB
text/typescript
/**
* Google Sheets Node - Version 4.1
* Discriminator: resource=spreadsheet, operation=create
*/
interface Credentials {
googleApi: CredentialReference;
googleSheetsOAuth2Api: CredentialReference;
}
/** Create a new sheet */
export type GoogleSheetsV41SpreadsheetCreateParams = {
resource: 'spreadsheet';
operation: 'create';
authentication?: 'serviceAccount' | 'oAuth2' | Expression<string>;
/**
* The title of the spreadsheet
*/
title?: string | Expression<string> | PlaceholderValue;
/**
* Sheets
* @default {}
*/
sheetsUi?: {
/** Sheet
*/
sheetValues?: Array<{
/** Title of the property to create
*/
title?: string | Expression<string> | PlaceholderValue;
/** Whether the Sheet should be hidden in the UI
* @default false
*/
hidden?: boolean | Expression<boolean>;
}>;
};
/**
* Options
* @default {}
*/
options?: {
/** The locale of the spreadsheet in one of the following formats:
<ul>
<li>en (639-1)</li>
<li>fil (639-2 if no 639-1 format exists)</li>
<li>en_US (combination of ISO language an country)</li>
<ul>
*/
locale?: string | Expression<string> | PlaceholderValue;
/** Cell recalculation interval options
*/
autoRecalc?: '' | 'ON_CHANGE' | 'MINUTE' | 'HOUR' | Expression<string>;
};
};
export type GoogleSheetsV41SpreadsheetCreateNode = {
type: 'n8n-nodes-base.googleSheets';
version: 4.1;
credentials?: Credentials;
config: NodeConfig<GoogleSheetsV41SpreadsheetCreateParams>;
};