/** * KoBoToolbox Trigger Node - Version 1 * Process KoBoToolbox submissions */ export interface KoBoToolboxTriggerV1Params { /** * Form ID (e.g. aSAvYreNzVEkrWg5Gdcvg). Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ formId?: string | Expression; triggerOn?: 'formSubmission' | Expression; formatOptions?: { /** Whether to download submitted attachments * @default false */ download?: boolean | Expression; /** Attachments Naming Scheme * @displayOptions.show { download: [true] } * @default sequence */ binaryNamingScheme?: 'sequence' | 'question' | Expression; /** Prefix for name of the binary property to which to write the attachments. An index starting with 0 will be added. So if name is "attachment_" the first attachment is saved to "attachment_0" * @displayOptions.show { download: [true], binaryNamingScheme: ["sequence"] } * @default attachment_ */ dataPropertyAttachmentsPrefixName?: string | Expression | PlaceholderValue; /** Attachment size to retrieve, if multiple versions are available * @displayOptions.show { download: [true] } * @default download_url */ version?: 'download_url' | 'download_small_url' | 'download_medium_url' | 'download_large_url' | Expression; /** Comma-separated list of wildcard-style selectors for fields that should be treated as multiselect fields, i.e. parsed as arrays. * @default select_* */ selectMask?: string | Expression | PlaceholderValue; /** Comma-separated list of wildcard-style selectors for fields that should be treated as numbers * @default n_*, f_* */ numberMask?: string | Expression | PlaceholderValue; /** Whether to apply some reformatting to the submission data, such as parsing GeoJSON coordinates * @default false */ reformat?: boolean | Expression; }; } export interface KoBoToolboxTriggerV1Credentials { koBoToolboxApi: CredentialReference; } interface KoBoToolboxTriggerV1NodeBase { type: 'n8n-nodes-base.koBoToolboxTrigger'; version: 1; credentials?: KoBoToolboxTriggerV1Credentials; isTrigger: true; } export type KoBoToolboxTriggerV1ParamsNode = KoBoToolboxTriggerV1NodeBase & { config: NodeConfig; }; export type KoBoToolboxTriggerV1Node = KoBoToolboxTriggerV1ParamsNode;