/** * Asana Node - Version 1 * Discriminator: resource=task, operation=update */ interface Credentials { asanaApi: CredentialReference; asanaOAuth2Api: CredentialReference; } /** Update a task */ export type AsanaV1TaskUpdateParams = { resource: 'task'; operation: 'update'; authentication?: 'accessToken' | 'oAuth2' | Expression; /** * The ID of the task to update the data of */ id?: string | Expression | PlaceholderValue; /** * Additional Fields * @default {} */ otherProperties?: { /** Set Assignee on the task. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. */ assignee?: string | Expression; /** Set Assignee status on the task (requires Assignee) * @default inbox */ assignee_status?: 'inbox' | 'today' | 'upcoming' | 'later' | Expression; /** Whether the task should be marked completed * @default false */ completed?: boolean | Expression; /** Date on which the time is due */ due_on?: string | Expression; /** The new name of the task */ name?: string | Expression | PlaceholderValue; /** Whether the task is liked by the authorized user * @default false */ liked?: boolean | Expression; /** The task notes */ notes?: string | Expression | PlaceholderValue; /** The project to filter tasks on. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. * @default [] */ projects?: string[]; }; }; export type AsanaV1TaskUpdateOutput = { actual_time_minutes?: number; assignee?: { gid?: string; name?: string; resource_type?: string; }; assignee_status?: string; completed?: boolean; created_at?: string; custom_fields?: Array<{ created_by?: { gid?: string; name?: string; resource_type?: string; }; enabled?: boolean; enum_options?: Array<{ color?: string; enabled?: boolean; gid?: string; name?: string; resource_type?: string; }>; gid?: string; name?: string; precision?: number; resource_subtype?: string; resource_type?: string; type?: string; }>; due_at?: null; followers?: Array<{ gid?: string; name?: string; resource_type?: string; }>; gid?: string; hearted?: boolean; liked?: boolean; memberships?: Array<{ project?: { gid?: string; name?: string; resource_type?: string; }; section?: { gid?: string; name?: string; resource_type?: string; }; }>; modified_at?: string; name?: string; notes?: string; num_hearts?: number; num_likes?: number; permalink_url?: string; projects?: Array<{ gid?: string; name?: string; resource_type?: string; }>; resource_subtype?: string; resource_type?: string; start_at?: null; tags?: Array<{ gid?: string; name?: string; resource_type?: string; }>; workspace?: { gid?: string; name?: string; resource_type?: string; }; }; export type AsanaV1TaskUpdateNode = { type: 'n8n-nodes-base.asana'; version: 1; credentials?: Credentials; config: NodeConfig; output?: Items; };