Interface TodoistV2NodeParameters

Source
interface TodoistV2NodeParameters {
    authentication?: "apiKey" | "oAuth2";
    commentContent?: string;
    commentFilters?: {
        project_id?: string;
        task_id?: string;
    };
    commentId?: string;
    commentTaskId?: string;
    commentUpdateFields?: { content?: string };
    content?: string;
    date?: string;
    datetime?: string;
    dueDateType?:
        | "natural_language"
        | "full_day"
        | "floating_time"
        | "fixed_timezone";
    filters?: {
        filter?: string;
        ids?: string;
        labelId?: string;
        lang?: string;
        parentId?: string;
        projectId?: string;
        sectionId?: string;
    };
    itemId?: string;
    labelId?: string;
    labelName?: string;
    labelOptions?: {
        color?: | "orange"
        | "yellow"
        | "green"
        | "blue"
        | "red"
        | "berry_red"
        | "olive_green"
        | "lime_green"
        | "mint_green"
        | "teal"
        | "sky_blue"
        | "light_blue"
        | "grape"
        | "violet"
        | "lavender"
        | "magenta"
        | "salmon"
        | "charcoal"
        | "grey"
        | "taupe";
        is_favorite?: boolean;
        order?: number;
    };
    labels?: unknown[];
    labelUpdateFields?: {
        color?: | "orange"
        | "yellow"
        | "green"
        | "blue"
        | "red"
        | "berry_red"
        | "olive_green"
        | "lime_green"
        | "mint_green"
        | "teal"
        | "sky_blue"
        | "light_blue"
        | "grape"
        | "violet"
        | "lavender"
        | "magenta"
        | "salmon"
        | "charcoal"
        | "grey"
        | "taupe";
        is_favorite?: boolean;
        name?: string;
        order?: number;
    };
    limit?: number;
    name?: string;
    natural_language_representation?: string;
    operation?: | "create"
    | "get"
    | "getAll"
    | "update"
    | "delete"
    | "close"
    | "move"
    | "archive"
    | "unarchive"
    | "reopen"
    | "quickAdd"
    | "getCollaborators";
    options?: | { parent?: string; section?: string }
    | {
        auto_reminder?: boolean;
        note?: string;
        reminder?: string;
    }
    | {
        assigneeId?: string;
        deadlineDate?: string;
        description?: string;
        dueDate?: string;
        dueDateTime?: string;
        dueLang?: string;
        dueString?: string;
        duration?: number;
        durationUnit?: "day"
        | "minute";
        order?: number;
        parentId?: string;
        priority?: number;
        section?: string;
    };
    project?: { mode: "id"
    | "list"; value: string };
    projectId?: string;
    projectOptions?: {
        color?:
            | "orange"
            | "yellow"
            | "green"
            | "blue"
            | "red"
            | "berry_red"
            | "olive_green"
            | "lime_green"
            | "mint_green"
            | "teal"
            | "sky_blue"
            | "light_blue"
            | "grape"
            | "violet"
            | "lavender"
            | "magenta"
            | "salmon"
            | "charcoal"
            | "grey"
            | "taupe";
        is_favorite?: boolean;
        parent_id?: string;
        view_style?: "list"
        | "board";
    };
    projectUpdateFields?: {
        color?: | "orange"
        | "yellow"
        | "green"
        | "blue"
        | "red"
        | "berry_red"
        | "olive_green"
        | "lime_green"
        | "mint_green"
        | "teal"
        | "sky_blue"
        | "light_blue"
        | "grape"
        | "violet"
        | "lavender"
        | "magenta"
        | "salmon"
        | "charcoal"
        | "grey"
        | "taupe";
        is_favorite?: boolean;
        name?: string;
        view_style?: "list"
        | "board";
    };
    reminderId?: string;
    reminderOptions?: {
        minute_offset?: number;
        notify_uid?: string;
        type?: "relative"
        | "absolute";
    };
    reminderUpdateFields?: {
        due?: {
            date?: string;
            datetime?: string;
            string?: string;
            timezone?: string;
        };
        minute_offset?: number;
        notify_uid?: string;
        type?: "relative"
        | "absolute";
    };
    resource?: | "comment"
    | "project"
    | "task"
    | "label"
    | "reminder"
    | "section";
    returnAll?: boolean;
    section?: string;
    sectionFilters?: { project_id?: string };
    sectionId?: string;
    sectionName?: string;
    sectionOptions?: { order?: number };
    sectionProject?: { mode: "id" | "list"; value: string };
    sectionUpdateFields?: { name?: string };
    taskId?: string;
    text?: string;
    timezone?: string;
    updateFields?: {
        assigneeId?: string;
        content?: string;
        deadlineDate?: string;
        description?: string;
        dueDate?: string;
        dueDateTime?: string;
        dueLang?: string;
        dueString?: string;
        duration?: number;
        durationUnit?: "day" | "minute";
        labels?: unknown[];
        order?: number;
        priority?: number;
    };
}

Properties§

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

Default: "apiKey"

§readonly commentContent?: string

Comment content Type options: {"rows":3}

§readonly commentFilters?: { ... }

Default: {}

§readonly commentId?: string
§readonly commentTaskId?: string

The ID of the task to comment on

§readonly commentUpdateFields?: { ... }

Default: {}

§readonly content?: string

Task content Type options: {"rows":5}

§readonly date?: string

Full-day date in YYYY-MM-DD format

§readonly datetime?: string

Floating date and time (no timezone)

§readonly dueDateType?:
    | "natural_language"
    | "full_day"
    | "floating_time"
    | "fixed_timezone"

How to specify when the reminder should trigger Default: "natural_language"

§readonly filters?: { ... }

Default: {}

§readonly itemId?: string

The ID of the task to attach reminder to

§readonly labelId?: string
§readonly labelName?: string

Name of the label

§readonly labelOptions?: { ... }

Default: {}

§readonly labels?: unknown[]

Optional labels that will be assigned to a created task. Choose from the list, or specify IDs using an expression. Default: [] Type options: {"loadOptionsMethod":"getLabels"}

§readonly labelUpdateFields?: { ... }

Default: {}

§readonly limit?: number

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

§readonly name?: string

Name of the project

§readonly natural_language_representation?: string

Human-readable date and time

§readonly operation?:
    | "create"
    | "get"
    | "getAll"
    | "update"
    | "delete"
    | "close"
    | "move"
    | "archive"
    | "unarchive"
    | "reopen"
    | "quickAdd"
    | "getCollaborators"

Default: "create"

§readonly options?:
    | { parent?: string; section?: string }
    | {
        auto_reminder?: boolean;
        note?: string;
        reminder?: string;
    }
    | {
        assigneeId?: string;
        deadlineDate?: string;
        description?: string;
        dueDate?: string;
        dueDateTime?: string;
        dueLang?: string;
        dueString?: string;
        duration?: number;
        durationUnit?: "day"
        | "minute";
        order?: number;
        parentId?: string;
        priority?: number;
        section?: string;
    }

Default: {}

§readonly project?: { ... }

The destination project. Choose from the list, or specify an ID. Default: {"mode":"list","value":""}

§readonly projectId?: string

The project ID - can be either a string or number

§readonly projectOptions?: { ... }

Default: {}

§readonly projectUpdateFields?: { ... }

Default: {}

§readonly reminderId?: string
§readonly reminderOptions?: { ... }

Default: {}

§readonly reminderUpdateFields?: { ... }

Default: {}

§readonly resource?:
    | "comment"
    | "project"
    | "task"
    | "label"
    | "reminder"
    | "section"

Default: "task"

§readonly returnAll?: boolean

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

§readonly section?: string

Section to which you want move the task. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getSections","loadOptionsDependsOn":["project.value"]}

§readonly sectionFilters?: { ... }

Default: {}

§readonly sectionId?: string
§readonly sectionName?: string

Name of the section

§readonly sectionOptions?: { ... }

Default: {}

§readonly sectionProject?: { ... }

The project to add the section to Default: {"mode":"list","value":""}

§readonly sectionUpdateFields?: { ... }

Default: {}

§readonly taskId?: string
§readonly text?: string

Natural language text for quick adding task (e.g., "Buy milk

Grocery

#shopping tomorrow"). It can include a due date in free form text, a project name starting with the "#" character (without spaces), a label starting with the "@" character, an assignee starting with the "+" character, a priority (e.g., p1), a deadline between "{}" (e.g. {in 3 days}), or a description starting from "//" until the end of the text. Type options: {"rows":3}

§readonly timezone?: string

Timezone for the fixed timezone date

§readonly updateFields?: { ... }

Default: {}