n8n-nodes-base
Version:
Base nodes of n8n
57 lines (53 loc) • 1.71 kB
text/typescript
/**
* Baserow Node - Version 1
* Discriminator: resource=row, operation=create
*/
interface Credentials {
baserowApi: CredentialReference;
}
/** Create a row */
export type BaserowV1RowCreateParams = {
resource: 'row';
operation: 'create';
/**
* Database to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
*/
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;
/**
* Fields to Send
* @displayOptions.show { dataToSend: ["defineBelow"] }
* @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 BaserowV1RowCreateNode = {
type: 'n8n-nodes-base.baserow';
version: 1;
credentials?: Credentials;
config: NodeConfig<BaserowV1RowCreateParams>;
};