/** * Todoist Node - Version 1 * Discriminator: resource=task, operation=create */ interface Credentials { todoistApi: CredentialReference; todoistOAuth2Api: CredentialReference; } /** Task resource */ export type TodoistV1TaskCreateParams = { resource: 'task'; operation: 'create'; authentication?: 'apiKey' | 'oAuth2' | Expression; /** * The project you want to operate on. Choose from the list, or specify an ID. * @default {"mode":"list","value":""} */ project?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** * Optional labels that will be assigned to a created task. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ labels?: string[]; /** * Task content */ content?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ options?: { /** A description for the task */ description?: string | Expression | PlaceholderValue; /** Specific date and time in RFC3339 format in UTC */ dueDateTime?: string | Expression; /** 2-letter code specifying language in case due_string is not written in English */ dueLang?: string | Expression | PlaceholderValue; /** Human defined task due date (ex.: “next Monday”, “Tomorrow”). Value is set using local (not UTC) time. */ dueString?: string | Expression | PlaceholderValue; /** The parent task you want to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default {} */ parentId?: string | Expression; /** Task priority from 1 (normal) to 4 (urgent) * @default 1 */ priority?: number | Expression; /** The section you want to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default {} */ section?: string | Expression; }; }; export type TodoistV1TaskCreateNode = { type: 'n8n-nodes-base.todoist'; version: 1; credentials?: Credentials; config: NodeConfig; };