interface AsanaNodeParameters {
additionalFields?:
| { is_pinned?: boolean }
| {
insert_after?: string;
insert_before?: string;
section?: string;
}
| {
color?: | "none"
| "dark-blue"
| "dark-brown"
| "dark-green"
| "dark-orange"
| "dark-pink"
| "dark-purple"
| "dark-red"
| "dark-teal"
| "dark-warm-gray"
| "light-blue"
| "light-green"
| "light-orange"
| "light-pink"
| "light-purple"
| "light-red"
| "light-teal"
| "light-warm-gray"
| "light-yellow";
due_on?: string;
notes?: string;
privacy_setting?: | "private"
| "private_to_team"
| "public_to_workspace";
}
| { archived?: boolean; team?: string };
authentication?: "oAuth2" | "accessToken";
filters?: {
assignee?: string;
completed_since?: string;
modified_since?: string;
opt_fields?: unknown[];
opt_pretty?: boolean;
project?: string;
section?: string;
workspace?: string;
};
id?: string;
isTextHtml?: boolean;
limit?: number;
name?: string;
operation?: | "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove"
| "delete"
| "search"
| "move";
options?: {
opt_fields?: unknown[];
opt_pretty?: boolean;
};
otherProperties?: | {
assignee?: string;
assignee_status?: | "inbox"
| "today"
| "upcoming"
| "later";
completed?: boolean;
due_on?: string;
liked?: boolean;
notes?: string;
workspace?: string;
}
| {
assignee?: string;
assignee_status?: | "inbox"
| "today"
| "upcoming"
| "later";
completed?: boolean;
due_on?: string;
liked?: boolean;
name?: string;
notes?: string;
projects?: unknown[];
};
project?: string;
projectId?: string;
resource?: | "user"
| "project"
| "subtask"
| "task"
| "taskComment"
| "taskProject"
| "taskTag";
returnAll?: boolean;
searchTaskProperties?: {
completed?: boolean;
text?: string;
};
section?: string;
tag?: string;
taskId?: string;
team?: string;
text?: string;
updateFields?: {
color?: | "none"
| "dark-blue"
| "dark-brown"
| "dark-green"
| "dark-orange"
| "dark-pink"
| "dark-purple"
| "dark-red"
| "dark-teal"
| "dark-warm-gray"
| "light-blue"
| "light-green"
| "light-orange"
| "light-pink"
| "light-purple"
| "light-red"
| "light-teal"
| "light-warm-gray"
| "light-yellow";
due_on?: string;
name?: string;
notes?: string;
owner?: string;
privacy_setting?: | "private"
| "private_to_team"
| "public_to_workspace";
team?: string;
};
userId?: string;
workspace?: string;
}Properties§
readonly additional Fields?:
| { is_pinned?: boolean }
| {
insert_after?: string;
insert_before?: string;
section?: string;
}
| {
color?: | "none"
| "dark-blue"
| "dark-brown"
| "dark-green"
| "dark-orange"
| "dark-pink"
| "dark-purple"
| "dark-red"
| "dark-teal"
| "dark-warm-gray"
| "light-blue"
| "light-green"
| "light-orange"
| "light-pink"
| "light-purple"
| "light-red"
| "light-teal"
| "light-warm-gray"
| "light-yellow";
due_on?: string;
notes?: string;
privacy_setting?: | "private"
| "private_to_team"
| "public_to_workspace";
}
| { archived?: boolean; team?: string }readonly authentication?: "oAuth2" | "accessToken"Default: "accessToken"
readonly filters?: { ... }Properties to search for Default: {}
readonly id?: stringThe ID of the task to delete
readonly is Text Html?: booleanWhether body is HTML or simple text
readonly limit?: numberMax number of results to return Default: 100 Type options: {"minValue":1,"maxValue":500}
readonly name?: stringThe name of the subtask to create
readonly operation?:
| "create"
| "get"
| "getAll"
| "update"
| "add"
| "remove"
| "delete"
| "search"
| "move"Default: "create"
readonly options?: { ... }Default: {}
readonly other Properties?:
| {
assignee?: string;
assignee_status?: | "inbox"
| "today"
| "upcoming"
| "later";
completed?: boolean;
due_on?: string;
liked?: boolean;
notes?: string;
workspace?: string;
}
| {
assignee?: string;
assignee_status?: | "inbox"
| "today"
| "upcoming"
| "later";
completed?: boolean;
due_on?: string;
liked?: boolean;
name?: string;
notes?: string;
projects?: unknown[];
}Default: {}
readonly project?: stringThe project where the task will be added. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getProjects"}
readonly project Id?: stringProject to show the sections of. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getProjects"}
readonly resource?:
| "user"
| "project"
| "subtask"
| "task"
| "taskComment"
| "taskProject"
| "taskTag"Default: "task"
readonly return All?: booleanWhether to return all results or only up to a given limit
readonly search Task Properties?: { ... }Properties to search for Default: {}
readonly section?: stringThe Section to move the task to. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsDependsOn":["projectId"],"loadOptionsMethod":"getSections"}
readonly tag?: stringThe tag that should be added. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsDependsOn":["id"],"loadOptionsMethod":"getTags"}
readonly task Id?: stringThe task to operate on
readonly team?: stringThe team this project will be assigned to. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsDependsOn":["workspace"],"loadOptionsMethod":"getTeams"}
readonly text?: stringThe plain text of the comment to add
readonly update Fields?: { ... }Other properties to set Default: {}
readonly user Id?: stringAn identifier for the user to get data of. Can be one of an email address,the globally unique identifier for the user, or the keyword me to indicate the current user making the request.
readonly workspace?: stringThe workspace to create the task in. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getWorkspaces"}
Properties of the task comment Default: {}