/** * SeaTable Trigger Node - Version 2 * Starts the workflow when SeaTable events occur */ export interface SeaTableTriggerV2Params { /** * Time at which polling should occur * @default {"item":[{"mode":"everyMinute"}]} */ pollTimes?: { /** Item */ item?: Array<{ /** How often to trigger. * @default everyDay */ mode?: 'everyMinute' | 'everyHour' | 'everyDay' | 'everyWeek' | 'everyMonth' | 'everyX' | 'custom' | Expression; /** The hour of the day to trigger (24h format) * @displayOptions.hide { mode: ["custom", "everyHour", "everyMinute", "everyX"] } * @default 14 */ hour?: number | Expression; /** The minute of the day to trigger * @displayOptions.hide { mode: ["custom", "everyMinute", "everyX"] } * @default 0 */ minute?: number | Expression; /** The day of the month to trigger * @displayOptions.show { mode: ["everyMonth"] } * @default 1 */ dayOfMonth?: number | Expression; /** The weekday to trigger * @displayOptions.show { mode: ["everyWeek"] } * @default 1 */ weekday?: '1' | '2' | '3' | '4' | '5' | '6' | '0' | Expression; /** Use custom cron expression. Values and ranges as follows:<ul><li>Seconds: 0-59</li><li>Minutes: 0 - 59</li><li>Hours: 0 - 23</li><li>Day of Month: 1 - 31</li><li>Months: 0 - 11 (Jan - Dec)</li><li>Day of Week: 0 - 6 (Sun - Sat)</li></ul> * @displayOptions.show { mode: ["custom"] } * @default * * * * * * */ cronExpression?: string | Expression | PlaceholderValue; /** All how many X minutes/hours it should trigger * @displayOptions.show { mode: ["everyX"] } * @default 2 */ value?: number | Expression; /** If it should trigger all X minutes or hours * @displayOptions.show { mode: ["everyX"] } * @default hours */ unit?: 'minutes' | 'hours' | Expression; }>; }; event?: 'newRow' | 'updatedRow' | 'newAsset' | Expression; /** * 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>. */ tableName?: string | Expression; /** * The name of SeaTable view to access. Choose from the list, or specify the name using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. * @displayOptions.show { event: ["newRow", "updatedRow"] } */ viewName?: string | Expression; /** * Select the digital-signature column that should be tracked. Choose from the list, or specify the name using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>. * @displayOptions.show { event: ["newAsset"] } */ assetColumn?: string | Expression; options?: { /** Whether to return a simplified version of the response instead of the raw data * @default true */ simple?: boolean | Expression; /** Whether to return the column keys (false) or the column names (true) * @displayOptions.show { /event: ["newRow", "updatedRow"] } * @default true */ convert?: boolean | Expression; }; } export interface SeaTableTriggerV2Credentials { seaTableApi: CredentialReference; } interface SeaTableTriggerV2NodeBase { type: 'n8n-nodes-base.seaTableTrigger'; version: 2; credentials?: SeaTableTriggerV2Credentials; isTrigger: true; } export type SeaTableTriggerV2ParamsNode = SeaTableTriggerV2NodeBase & { config: NodeConfig; }; export type SeaTableTriggerV2Node = SeaTableTriggerV2ParamsNode;