Interface AsanaNodeParameters

Source
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§

Source§

readonly 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 }

Properties of the task comment Default: {}

Source§

readonly authentication?: "oAuth2" | "accessToken"

Default: "accessToken"

Source§

readonly filters?: {
    assignee?: string;
    completed_since?: string;
    modified_since?: string;
    opt_fields?: unknown[];
    opt_pretty?: boolean;
    project?: string;
    section?: string;
    workspace?: string;
}

Properties to search for Default: {}

Source§

readonly id?: string

The ID of the task to delete

Source§

readonly isTextHtml?: boolean

Whether body is HTML or simple text

Source§

readonly limit?: number

Max number of results to return Default: 100 Type options: {"minValue":1,"maxValue":500}

Source§

readonly name?: string

The name of the subtask to create

Source§

readonly operation?:
    | "create"
    | "get"
    | "getAll"
    | "update"
    | "add"
    | "remove"
    | "delete"
    | "search"
    | "move"

Default: "create"

Source§

readonly options?: { opt_fields?: unknown[]; opt_pretty?: boolean }

Default: {}

Source§

readonly 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[];
    }

Default: {}

Source§

readonly project?: string

The project where the task will be added. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getProjects"}

Source§

readonly projectId?: string

Project to show the sections of. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getProjects"}

Source§

readonly resource?:
    | "user"
    | "project"
    | "subtask"
    | "task"
    | "taskComment"
    | "taskProject"
    | "taskTag"

Default: "task"

Source§

readonly returnAll?: boolean

Whether to return all results or only up to a given limit

Source§

readonly searchTaskProperties?: { completed?: boolean; text?: string }

Properties to search for Default: {}

Source§

readonly section?: string

The Section to move the task to. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsDependsOn":["projectId"],"loadOptionsMethod":"getSections"}

Source§

readonly tag?: string

The tag that should be added. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsDependsOn":["id"],"loadOptionsMethod":"getTags"}

Source§

readonly taskId?: string

The task to operate on

Source§

readonly team?: string

The team this project will be assigned to. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsDependsOn":["workspace"],"loadOptionsMethod":"getTeams"}

Source§

readonly text?: string

The plain text of the comment to add

Source§

readonly 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;
}

Other properties to set Default: {}

Source§

readonly userId?: string

An 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.

Source§

readonly workspace?: string

The workspace to create the task in. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getWorkspaces"}