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§

§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: {}

§readonly authentication?: "oAuth2" | "accessToken"

Default: "accessToken"

§readonly filters?: { ... }

Properties to search for Default: {}

§readonly id?: string

The ID of the task to delete

§readonly isTextHtml?: boolean

Whether body is HTML or simple text

§readonly limit?: number

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

§readonly name?: string

The name of the subtask to create

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

Default: "create"

§readonly options?: { ... }

Default: {}

§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: {}

§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"}

§readonly projectId?: string

Project 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 returnAll?: boolean

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

§readonly searchTaskProperties?: { ... }

Properties to search for Default: {}

§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"}

§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"}

§readonly taskId?: string

The task to operate on

§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"}

§readonly text?: string

The plain text of the comment to add

§readonly updateFields?: { ... }

Other properties to set Default: {}

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

§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"}