n8n-nodes-base
Version:
Base nodes of n8n
54 lines (49 loc) • 1.6 kB
text/typescript
/**
* Google Cloud Firestore Node - Version 1
* Discriminator: resource=document, operation=get
*/
interface Credentials {
googleFirebaseCloudFirestoreOAuth2Api: CredentialReference;
googleApi: CredentialReference;
}
/** Get a document */
export type GoogleFirebaseCloudFirestoreV1DocumentGetParams = {
resource: 'document';
operation: 'get';
authentication?: 'googleFirebaseCloudFirestoreOAuth2Api' | 'serviceAccount' | Expression<string>;
/**
* 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<string>;
/**
* Usually the provided default value will work
* @default (default)
*/
database?: string | Expression<string> | PlaceholderValue;
/**
* Collection name
*/
collection?: string | Expression<string> | PlaceholderValue;
/**
* Document ID
*/
documentId?: string | Expression<string> | PlaceholderValue;
/**
* Whether to return a simplified version of the response instead of the raw data
* @default true
*/
simple?: boolean | Expression<boolean>;
};
export type GoogleFirebaseCloudFirestoreV1DocumentGetOutput = {
_createTime?: string;
_id?: string;
_name?: string;
_updateTime?: string;
};
export type GoogleFirebaseCloudFirestoreV1DocumentGetNode = {
type: 'n8n-nodes-base.googleFirebaseCloudFirestore';
version: 1;
credentials?: Credentials;
config: NodeConfig<GoogleFirebaseCloudFirestoreV1DocumentGetParams>;
output?: Items<GoogleFirebaseCloudFirestoreV1DocumentGetOutput>;
};