/** * Google Cloud Firestore Node - Version 1.1 * Discriminator: resource=document, operation=upsert */ interface Credentials { googleFirebaseCloudFirestoreOAuth2Api: CredentialReference; googleApi: CredentialReference; } /** Create a new document, or update the current one if it already exists (upsert) */ export type GoogleFirebaseCloudFirestoreV11DocumentUpsertParams = { resource: 'document'; operation: 'upsert'; authentication?: 'googleFirebaseCloudFirestoreOAuth2Api' | 'serviceAccount' | Expression; /** * As displayed in firebase console URL. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ projectId?: string | Expression; /** * Usually the provided default value will work * @default (default) */ database?: string | Expression | PlaceholderValue; /** * Collection name */ collection?: string | Expression | PlaceholderValue; /** * Name of the field in an input item that contains the document ID */ updateKey?: string | Expression | PlaceholderValue; /** * Columns to insert */ columns?: string | Expression | PlaceholderValue; }; export type GoogleFirebaseCloudFirestoreV11DocumentUpsertOutput = { updateTime?: string; }; export type GoogleFirebaseCloudFirestoreV11DocumentUpsertNode = { type: 'n8n-nodes-base.googleFirebaseCloudFirestore'; version: 1.1; credentials?: Credentials; config: NodeConfig; output?: Items; };