/** * Todoist Node - Version 2.1 * Discriminator: resource=task, operation=update */ interface Credentials { todoistApi: CredentialReference; todoistOAuth2Api: CredentialReference; } /** Task resource */ export type TodoistV21TaskUpdateParams = { resource: 'task'; operation: 'update'; authentication?: 'apiKey' | 'oAuth2' | Expression; /** * Task ID */ taskId?: string | Expression | PlaceholderValue; /** * Update Fields * @default {} */ updateFields?: { /** Task content */ content?: string | Expression | PlaceholderValue; /** 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; /** 2-letter code specifying language in case due_string is not written in English */ dueLang?: string | Expression | PlaceholderValue; /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ labels?: string[]; /** Task priority from 1 (normal) to 4 (urgent) * @default 1 */ priority?: number | Expression; /** Non-zero integer used to sort tasks under the same parent * @default 0 */ order?: number | Expression; /** Specific date in YYYY-MM-DD format */ dueDate?: string | Expression | PlaceholderValue; /** Responsible user ID (for shared tasks) */ assigneeId?: string | Expression | PlaceholderValue; /** Positive integer for task duration (must be used with Duration Unit) * @default 0 */ duration?: number | Expression; /** Unit of time for duration (must be used with Duration) * @default minute */ durationUnit?: 'minute' | 'day' | Expression; /** Specific deadline date in YYYY-MM-DD format */ deadlineDate?: string | Expression | PlaceholderValue; }; }; export type TodoistV21TaskUpdateOutput = { success?: boolean; }; export type TodoistV21TaskUpdateNode = { type: 'n8n-nodes-base.todoist'; version: 2.1; credentials?: Credentials; config: NodeConfig; output?: Items; };