/** * SeaTable Node - Version 1 * Consume the SeaTable API */ export interface SeaTableV1Params { resource?: 'row'; /** * The operation being performed * @default create */ operation?: 'create' | 'delete' | 'get' | 'getAll' | 'update'; /** * The name of SeaTable table to access. Choose from the list, or specify the name using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. * @displayOptions.hide { operation: ["get"] } */ tableName?: string | Expression; /** * The name of SeaTable table to access. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @displayOptions.show { operation: ["get"] } */ tableId?: string | Expression; /** * Row ID * @displayOptions.show { operation: ["update"] } */ rowId?: string | Expression | PlaceholderValue; /** * Whether to insert the input data this node receives in the new row * @displayOptions.show { operation: ["create", "update"] } * @default defineBelow */ fieldsToSend?: 'autoMapInputData' | 'defineBelow' | Expression; /** * List of input properties to avoid sending, separated by commas. Leave empty to send all properties. * @displayOptions.show { operation: ["create", "update"], fieldsToSend: ["autoMapInputData"] } */ inputsToIgnore?: string | Expression | PlaceholderValue; /** * Add destination column with its value * @displayOptions.show { operation: ["create", "update"], fieldsToSend: ["defineBelow"] } * @default {} */ columnsUi?: { /** Column */ columnValues?: Array<{ /** Choose from the list, or specify the name using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a> */ columnName?: string | Expression; /** Column Value */ columnValue?: string | Expression | PlaceholderValue; }>; }; /** * Whether to return all results or only up to a given limit * @displayOptions.show { operation: ["getAll"] } * @default true */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { operation: ["getAll"], returnAll: [false] } * @default 50 */ limit?: number | Expression; /** * Filters * @displayOptions.show { operation: ["getAll"] } * @default {} */ filters?: { /** Choose from the list, or specify an View Name using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a> */ view_name?: string | Expression; }; /** * Options * @displayOptions.show { operation: ["getAll"] } * @default {} */ options?: { /** Whether the ID of the linked row is returned in the link column (true). Otherwise, it return the name of the linked row (false). * @default false */ convert_link_id?: boolean | Expression; /** The direction of the sort, ascending (asc) or descending (desc) * @default asc */ direction?: 'asc' | 'desc' | Expression; /** Choose from the list, or specify a Column using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a> */ order_by?: string | Expression; }; } export interface SeaTableV1Credentials { seaTableApi: CredentialReference; } interface SeaTableV1NodeBase { type: 'n8n-nodes-base.seaTable'; version: 1; credentials?: SeaTableV1Credentials; } export type SeaTableV1ParamsNode = SeaTableV1NodeBase & { config: NodeConfig; }; export type SeaTableV1Node = SeaTableV1ParamsNode;