n8n-nodes-base
Version:
Base nodes of n8n
68 lines (64 loc) • 2.3 kB
text/typescript
/**
* Todoist Node - Version 1
* Discriminator: resource=task, operation=create
*/
interface Credentials {
todoistApi: CredentialReference;
todoistOAuth2Api: CredentialReference;
}
/** Task resource */
export type TodoistV1TaskCreateParams = {
resource: 'task';
operation: 'create';
authentication?: 'apiKey' | 'oAuth2' | Expression<string>;
/**
* The project you want to operate on. Choose from the list, or specify an ID.
* @default {"mode":"list","value":""}
*/
project?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/**
* Optional labels that will be assigned to a created task. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
labels?: string[];
/**
* Task content
*/
content?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
options?: {
/** A description for the task
*/
description?: string | Expression<string> | PlaceholderValue;
/** Specific date and time in RFC3339 format in UTC
*/
dueDateTime?: string | Expression<string>;
/** 2-letter code specifying language in case due_string is not written in English
*/
dueLang?: string | Expression<string> | PlaceholderValue;
/** Human defined task due date (ex.: “next Monday”, “Tomorrow”). Value is set using local (not UTC) time.
*/
dueString?: string | Expression<string> | PlaceholderValue;
/** The parent task you want to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default {}
*/
parentId?: string | Expression<string>;
/** Task priority from 1 (normal) to 4 (urgent)
* @default 1
*/
priority?: number | Expression<number>;
/** The section you want to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default {}
*/
section?: string | Expression<string>;
};
};
export type TodoistV1TaskCreateNode = {
type: 'n8n-nodes-base.todoist';
version: 1;
credentials?: Credentials;
config: NodeConfig<TodoistV1TaskCreateParams>;
};