/** * Todoist Node - Version 2.1 * Discriminator: resource=task, operation=getAll */ interface Credentials { todoistApi: CredentialReference; todoistOAuth2Api: CredentialReference; } /** Task resource */ export type TodoistV21TaskGetAllParams = { resource: 'task'; operation: 'getAll'; authentication?: 'apiKey' | 'oAuth2' | Expression; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 50 */ limit?: number | Expression; /** * Filters * @default {} */ filters?: { /** Filter by any <a href="https://get.todoist.help/hc/en-us/articles/205248842">supported filter.</a> */ filter?: string | Expression | PlaceholderValue; /** A list of the task IDs to retrieve, this should be a comma-separated list */ ids?: string | Expression | PlaceholderValue; /** Filter tasks by label. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default {} */ labelId?: string | Expression; /** IETF language tag defining what language filter is written in, if differs from default English */ lang?: string | Expression | PlaceholderValue; /** Filter tasks by parent task ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ parentId?: string | Expression; /** Filter tasks by project ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ projectId?: string | Expression; /** Filter tasks by section ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ sectionId?: string | Expression; }; }; export type TodoistV21TaskGetAllOutput = { comment_count?: number; content?: string; created_at?: string; creator_id?: string; description?: string; id?: string; is_completed?: boolean; labels?: Array; order?: number; priority?: number; project_id?: string; url?: string; }; export type TodoistV21TaskGetAllNode = { type: 'n8n-nodes-base.todoist'; version: 2.1; credentials?: Credentials; config: NodeConfig; output?: Items; };