/** * ClickUp Node - Version 1 * Discriminator: resource=task, operation=getAll */ interface Credentials { clickUpApi: CredentialReference; clickUpOAuth2Api: CredentialReference; } /** Get many comments */ export type ClickUpV1TaskGetAllParams = { resource: 'task'; operation: 'getAll'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ team?: string | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ space?: string | Expression; /** * Folderless List * @default false */ folderless?: boolean | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { folderless: [false] } */ folder?: string | Expression; /** * Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @displayOptions.show { folderless: [true] } */ list?: string | Expression; /** * Whether to return all results or only up to a given limit * @default true */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 50 */ limit?: number | Expression; /** * Filters * @default {} */ filters?: { /** Archived * @default false */ archived?: boolean | Expression; /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ assignees?: string[]; /** Filter by custom fields * @default {} */ customFieldsUi?: { /** Custom Field */ customFieldsValues?: Array<{ /** The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ fieldId?: string | Expression; /** The value to set on custom field * @default equal */ operator?: '!=' | '<' | '<=' | '>' | '>=' | 'equal' | 'IS NOT NULL' | 'IS NULL' | Expression; /** The value to set on custom field * @displayOptions.hide { operator: ["IS NULL", "IS NOT NULL"] } */ value?: string | Expression | PlaceholderValue; }>; }; /** Filter date created greater */ dateCreatedGt?: string | Expression; /** Filter date created less than posix time */ dateCreatedLt?: string | Expression; /** Filter date updated greater than */ dateUpdatedGt?: string | Expression; /** Filter date updated less than */ dateUpdatedLt?: string | Expression; /** Filter due date greater than */ dueDateGt?: string | Expression; /** Filter due date less than */ dueDateLt?: string | Expression; /** The response does by default not include closed tasks. Set this to true and dont send a status filter to include closed tasks. * @default false */ includeClosed?: boolean | Expression; /** Order By */ orderBy?: 'id' | 'created' | 'updated' | 'dueDate' | Expression; /** Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default [] */ statuses?: string[]; /** Whether to include subtasks, default false * @default false */ subtasks?: boolean | Expression; /** The array of tags applied to this task. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ tags?: string[]; }; }; export type ClickUpV1TaskGetAllOutput = { archived?: boolean; assignees?: Array<{ email?: string; id?: number; initials?: string; username?: string; }>; checklists?: Array<{ creator?: number; date_created?: string; id?: string; name?: string; orderindex?: number; resolved?: number; task_id?: string; unresolved?: number; }>; creator?: { email?: string; id?: number; username?: string; }; custom_fields?: Array<{ date_created?: string; hide_from_guests?: boolean; id?: string; name?: string; type?: string; type_config?: { options?: Array<{ id?: string; name?: string; orderindex?: number; }>; sorting?: string; }; }>; custom_item_id?: number; date_created?: string; date_updated?: string; dependencies?: Array<{ date_created?: string; depends_on?: string; task_id?: string; type?: number; userid?: string; workspace_id?: string; }>; folder?: { access?: boolean; hidden?: boolean; id?: string; name?: string; }; id?: string; linked_tasks?: Array<{ date_created?: string; link_id?: string; task_id?: string; userid?: string; workspace_id?: string; }>; list?: { access?: boolean; id?: string; name?: string; }; locations?: Array<{ id?: string; name?: string; }>; name?: string; orderindex?: string; permission_level?: string; project?: { access?: boolean; hidden?: boolean; id?: string; name?: string; }; sharing?: { public?: boolean; public_fields?: Array; public_share_expires_on?: null; seo_optimized?: boolean; token?: null; }; space?: { id?: string; }; status?: { color?: string; id?: string; orderindex?: number; status?: string; type?: string; }; tags?: Array<{ creator?: number; name?: string; tag_bg?: string; tag_fg?: string; }>; team_id?: string; url?: string; watchers?: Array<{ email?: string; id?: number; initials?: string; username?: string; }>; }; export type ClickUpV1TaskGetAllNode = { type: 'n8n-nodes-base.clickUp'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };