n8n-nodes-base
Version:
Base nodes of n8n
74 lines (70 loc) • 2.25 kB
text/typescript
/**
* Baserow Node - Version 1
* Discriminator: resource=row, operation=batchCreate
*/
interface Credentials {
baserowApi: CredentialReference;
baserowTokenApi: CredentialReference;
}
/** Create up to 200 rows in one request */
export type BaserowV1RowBatchCreateParams = {
resource: 'row';
operation: 'batchCreate';
authentication?: 'usernamePassword' | 'databaseToken' | Expression<string>;
/**
* Database to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @displayOptions.hide { authentication: ["databaseToken"] }
* @default 0
*/
databaseId?: string | Expression<string>;
/**
* Table to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
tableId?: string | Expression<string>;
/**
* Whether to insert the input data this node receives in the new row
* @default defineBelow
*/
dataToSend?: 'autoMapInputData' | 'defineBelow' | Expression<string>;
/**
* List of input properties to avoid sending, separated by commas. Leave empty to send all properties.
* @displayOptions.show { dataToSend: ["autoMapInputData"] }
*/
inputsToIgnore?: string | Expression<string> | PlaceholderValue;
/**
* Rows
* @displayOptions.show { dataToSend: ["defineBelow"] }
* @default []
*/
rowsUi?: {
/** Row
*/
rowValues?: Array<{
/** Row ID to update (required for batch update)
* @displayOptions.show { /operation: ["batchUpdate"] }
*/
id?: string | Expression<string> | PlaceholderValue;
/** Fields
* @default {}
*/
fieldsUi?: {
/** Field
*/
fieldValues?: Array<{
/** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>
*/
fieldId?: string | Expression<string>;
/** Field Value
*/
fieldValue?: string | Expression<string> | PlaceholderValue;
}>;
};
}>;
};
};
export type BaserowV1RowBatchCreateNode = {
type: 'n8n-nodes-base.baserow';
version: 1;
credentials?: Credentials;
config: NodeConfig<BaserowV1RowBatchCreateParams>;
};