n8n-nodes-base
Version:
Base nodes of n8n
51 lines (47 loc) • 1.64 kB
text/typescript
/**
* Baserow Node - Version 1.1
* Discriminator: resource=row, operation=batchDelete
*/
interface Credentials {
baserowApi: CredentialReference;
baserowTokenApi: CredentialReference;
}
/** Delete up to 200 rows in one request */
export type BaserowV11RowBatchDeleteParams = {
resource: 'row';
operation: 'batchDelete';
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>;
/**
* Choose whether to manually enter row IDs or map them from input data
* @default defineBelow
*/
dataToSend?: 'autoMapInputData' | 'defineBelow' | Expression<string>;
/**
* IDs of the rows to delete
* @displayOptions.show { dataToSend: ["defineBelow"] }
* @default []
*/
rowIds?: string | Expression<string> | PlaceholderValue;
/**
* Name of the property in each input item that contains the row ID
* @displayOptions.show { dataToSend: ["autoMapInputData"] }
* @default id
*/
rowIdProperty?: string | Expression<string> | PlaceholderValue;
};
export type BaserowV11RowBatchDeleteNode = {
type: 'n8n-nodes-base.baserow';
version: 1.1;
credentials?: Credentials;
config: NodeConfig<BaserowV11RowBatchDeleteParams>;
};