@zerodot/todoist 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,71 @@
1
- # Temporary Holding Version
1
+ # @zerodot/todoist
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ <img src="https://raw.githubusercontent.com/zerodot-io/nodes/main/packages/todoist/todoist.svg" alt="Todoist logo" width="48" height="48">
4
+
5
+ Create and manage tasks, projects, sections, labels, and comments in Todoist. Get, create, update, close, reopen, move, and delete items. The node calls the Todoist API v1 with an API token.
6
+
7
+ ## Install
8
+
9
+ In zerodot, go to **System > Nodes** and install **Todoist**.
10
+
11
+ Manual: install `@zerodot/todoist` where the web app and the worker run, and add it to `ZERODOT_NODE_PACKAGES`.
12
+
13
+ ## Nodes
14
+
15
+ ### Todoist (`todoist.api`)
16
+
17
+ - **Task**: Get Many, Get, Create, Update, Close, Reopen, Move, Delete
18
+ - **Project**: Get Many, Get, Create, Update, Delete
19
+ - **Section**: Get Many, Get, Create, Update, Delete
20
+ - **Label**: Get Many, Get, Create, Update, Delete
21
+ - **Comment**: Get Many, Get, Create, Update, Delete
22
+
23
+ ### Behavior notes
24
+
25
+ - **API.** The node uses the Todoist API v1 under `https://api.todoist.com/api/v1`.
26
+ - **IDs.** IDs are text. Get, update, delete, close, reopen, and move need the ID of the item: **Task ID**, **Project ID**, **Section ID**, **Label ID**, or **Comment ID**. The node encodes an ID in the URL path, so a slash in an ID cannot change the path.
27
+ - **Task Create.** **Content** is required. The other fields are optional:
28
+ - **Description**, **Project ID**, **Section ID**, **Parent ID**, and **Assignee ID**
29
+ - **Labels**: label names
30
+ - **Priority**: 1 is P4 (normal), 2 is P3 (medium), 3 is P2 (high), and 4 is P1 (urgent)
31
+ - **Due String**: for example `tomorrow at 12`
32
+ - **Due Date**: `YYYY-MM-DD`. **Due Datetime**: RFC3339. **Due Language**: for example `en`
33
+ - **Duration** and **Duration Unit** (`minute` or `day`)
34
+ - **Deadline Date**: `YYYY-MM-DD`
35
+ - **Task Update.** The node sends only the fields that you fill in. **Labels** replace the full label list of the task. To move a task, use **Move**. Update cannot change the project, section, or parent.
36
+ - **Task Move.** Set exactly one of **Project ID**, **Section ID**, or **Parent ID**. Otherwise the node fails before it calls Todoist.
37
+ - **Task Get Many.** The filters are **Project ID**, **Section ID**, **Parent ID**, **Label Filter** (a label name), and **IDs** (a list of task IDs). There is no filter text. Each filter is sent as its own value.
38
+ - **Project Create.** **Name** is required. Other fields: **Description**, **Color** (a color name), **Favorite**, and **View Style** (`list`, `board`, or `calendar`).
39
+ - **Section Create.** **Name** and **Project ID** are required. Other fields: **Order** and **Description**.
40
+ - **Section Get Many.** The filter is **Project ID**.
41
+ - **Section Update.** Fields: **Name**, **Section Order**, **Collapsed**, and **Description**. **Order** is sent as the section order when **Section Order** is empty. If both are set, **Section Order** wins.
42
+ - **Label Create.** **Name** is required. Other fields: **Color**, **Order**, and **Favorite**.
43
+ - **Comment Get Many and Create.** Set exactly one of **Task ID** or **Project ID**. Otherwise the node fails. **Create** also needs **Content**.
44
+ - **Comment Update.** Needs **Comment ID** and **Content**.
45
+ - **Limits.** **Limit** is from 1 to 200 for the Get Many operations. A run makes one call, so the node returns one page. A list answer has `results` and `next_cursor`. To get the next page, set **Cursor** to `next_cursor` from the previous answer.
46
+ - **Output.** The node returns the JSON answer of Todoist. When Todoist sends no content, the output is `{ "success": true }`. This happens for Close, Reopen, and Delete.
47
+ - **Errors.** When Todoist returns an error status, the node fails. The message has the error text from Todoist and a hint. The API token is never in the message.
48
+ - **Destructive operations.** **Delete** removes a task, project, section, label, or comment. **Close** completes a task.
49
+ - **Binary data.** None.
50
+ - **Timeout.** The **Timeout** setting is in milliseconds. It is 30000 by default and up to 300000.
51
+ - **Retries.** None.
52
+
53
+ ## Credentials
54
+
55
+ ### Todoist API Token (`todoist.apiToken`)
56
+
57
+ - **API Token** (`apiToken`): the API token from Todoist. This value is secret. Find it in Todoist under **Settings > Integrations > Developer**.
58
+
59
+ The token is sent as a Bearer token in the `Authorization` header of each request. The package does not set token scopes.
60
+
61
+ The credential is tested with `GET /api/v1/projects?limit=1`.
62
+
63
+ Setup:
64
+
65
+ 1. In Todoist, go to **Settings > Integrations > Developer**.
66
+ 2. Copy your API token.
67
+ 3. In zerodot, create a **Todoist API Token** credential and paste the token.
68
+
69
+ ## License
70
+
71
+ AGPL-3.0-only