n8n-nodes-ticktick 2.0.1 → 2.0.2

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.
Files changed (167) hide show
  1. package/README.md +107 -10
  2. package/dist/credentials/TickTickOAuth2Api.credentials.js +3 -2
  3. package/dist/credentials/TickTickOAuth2Api.credentials.js.map +1 -1
  4. package/dist/credentials/TickTickTokenApi.credentials.js +4 -2
  5. package/dist/credentials/TickTickTokenApi.credentials.js.map +1 -1
  6. package/dist/nodes/TickTick/TickTick.node.d.ts +3 -27
  7. package/dist/nodes/TickTick/TickTick.node.js +14 -289
  8. package/dist/nodes/TickTick/TickTick.node.js.map +1 -1
  9. package/dist/nodes/TickTick/constants/defaults.d.ts +27 -0
  10. package/dist/nodes/TickTick/constants/defaults.js +31 -0
  11. package/dist/nodes/TickTick/constants/defaults.js.map +1 -0
  12. package/dist/nodes/TickTick/constants/endpoints.d.ts +28 -0
  13. package/dist/nodes/TickTick/constants/endpoints.js +32 -0
  14. package/dist/nodes/TickTick/constants/endpoints.js.map +1 -0
  15. package/dist/nodes/TickTick/constants/urls.d.ts +6 -0
  16. package/dist/nodes/TickTick/constants/urls.js +10 -0
  17. package/dist/nodes/TickTick/constants/urls.js.map +1 -0
  18. package/dist/nodes/TickTick/helpers/apiRequest.js +2 -2
  19. package/dist/nodes/TickTick/helpers/apiRequest.js.map +1 -1
  20. package/dist/nodes/TickTick/helpers/dates.d.ts +3 -0
  21. package/dist/nodes/TickTick/helpers/dates.js +22 -0
  22. package/dist/nodes/TickTick/helpers/dates.js.map +1 -0
  23. package/dist/nodes/TickTick/helpers/generators.d.ts +5 -0
  24. package/dist/nodes/TickTick/helpers/generators.js +23 -0
  25. package/dist/nodes/TickTick/helpers/generators.js.map +1 -0
  26. package/dist/nodes/TickTick/helpers/index.d.ts +6 -0
  27. package/dist/nodes/TickTick/{GenericFunctions.js → helpers/index.js} +7 -5
  28. package/dist/nodes/TickTick/helpers/index.js.map +1 -0
  29. package/dist/nodes/TickTick/helpers/sessionManager.js +2 -1
  30. package/dist/nodes/TickTick/helpers/sessionManager.js.map +1 -1
  31. package/dist/nodes/TickTick/resources/focus/index.d.ts +2 -0
  32. package/dist/nodes/TickTick/resources/focus/index.js +34 -0
  33. package/dist/nodes/TickTick/resources/focus/index.js.map +1 -1
  34. package/dist/nodes/TickTick/resources/focus/operations/FocusGetDistribution.js +5 -12
  35. package/dist/nodes/TickTick/resources/focus/operations/FocusGetDistribution.js.map +1 -1
  36. package/dist/nodes/TickTick/resources/focus/operations/FocusGetHeatmap.js +5 -12
  37. package/dist/nodes/TickTick/resources/focus/operations/FocusGetHeatmap.js.map +1 -1
  38. package/dist/nodes/TickTick/resources/habits/index.d.ts +2 -0
  39. package/dist/nodes/TickTick/resources/habits/index.js +42 -0
  40. package/dist/nodes/TickTick/resources/habits/index.js.map +1 -1
  41. package/dist/nodes/TickTick/resources/habits/methods.d.ts +9 -0
  42. package/dist/nodes/TickTick/resources/habits/methods.js +12 -0
  43. package/dist/nodes/TickTick/resources/habits/methods.js.map +1 -0
  44. package/dist/nodes/TickTick/resources/habits/operations/HabitArchive.js +16 -2
  45. package/dist/nodes/TickTick/resources/habits/operations/HabitArchive.js.map +1 -1
  46. package/dist/nodes/TickTick/resources/habits/operations/HabitCheckin.js +33 -5
  47. package/dist/nodes/TickTick/resources/habits/operations/HabitCheckin.js.map +1 -1
  48. package/dist/nodes/TickTick/resources/habits/operations/HabitCreate.js +35 -24
  49. package/dist/nodes/TickTick/resources/habits/operations/HabitCreate.js.map +1 -1
  50. package/dist/nodes/TickTick/resources/habits/operations/HabitDelete.js +9 -10
  51. package/dist/nodes/TickTick/resources/habits/operations/HabitDelete.js.map +1 -1
  52. package/dist/nodes/TickTick/resources/habits/operations/HabitGet.js +10 -3
  53. package/dist/nodes/TickTick/resources/habits/operations/HabitGet.js.map +1 -1
  54. package/dist/nodes/TickTick/resources/habits/operations/HabitList.js +4 -2
  55. package/dist/nodes/TickTick/resources/habits/operations/HabitList.js.map +1 -1
  56. package/dist/nodes/TickTick/resources/habits/operations/HabitUnarchive.js +16 -2
  57. package/dist/nodes/TickTick/resources/habits/operations/HabitUnarchive.js.map +1 -1
  58. package/dist/nodes/TickTick/resources/habits/operations/HabitUpdate.js +15 -3
  59. package/dist/nodes/TickTick/resources/habits/operations/HabitUpdate.js.map +1 -1
  60. package/dist/nodes/TickTick/resources/index.d.ts +12 -34
  61. package/dist/nodes/TickTick/resources/index.js +37 -43
  62. package/dist/nodes/TickTick/resources/index.js.map +1 -1
  63. package/dist/nodes/TickTick/resources/projectGroups/index.d.ts +2 -0
  64. package/dist/nodes/TickTick/resources/projectGroups/index.js +38 -0
  65. package/dist/nodes/TickTick/resources/projectGroups/index.js.map +1 -1
  66. package/dist/nodes/TickTick/resources/projectGroups/methods.d.ts +9 -0
  67. package/dist/nodes/TickTick/resources/projectGroups/methods.js +12 -0
  68. package/dist/nodes/TickTick/resources/projectGroups/methods.js.map +1 -0
  69. package/dist/nodes/TickTick/resources/projectGroups/operations/ProjectGroupCreate.js +2 -1
  70. package/dist/nodes/TickTick/resources/projectGroups/operations/ProjectGroupCreate.js.map +1 -1
  71. package/dist/nodes/TickTick/resources/projectGroups/operations/ProjectGroupDelete.js +2 -1
  72. package/dist/nodes/TickTick/resources/projectGroups/operations/ProjectGroupDelete.js.map +1 -1
  73. package/dist/nodes/TickTick/resources/projectGroups/operations/ProjectGroupList.js +2 -1
  74. package/dist/nodes/TickTick/resources/projectGroups/operations/ProjectGroupList.js.map +1 -1
  75. package/dist/nodes/TickTick/resources/projectGroups/operations/ProjectGroupUpdate.js +2 -1
  76. package/dist/nodes/TickTick/resources/projectGroups/operations/ProjectGroupUpdate.js.map +1 -1
  77. package/dist/nodes/TickTick/resources/projects/ProjectsDescription.js +25 -1
  78. package/dist/nodes/TickTick/resources/projects/ProjectsDescription.js.map +1 -1
  79. package/dist/nodes/TickTick/resources/projects/index.d.ts +3 -0
  80. package/dist/nodes/TickTick/resources/projects/index.js +39 -0
  81. package/dist/nodes/TickTick/resources/projects/index.js.map +1 -1
  82. package/dist/nodes/TickTick/resources/projects/methods.d.ts +13 -0
  83. package/dist/nodes/TickTick/resources/projects/methods.js +83 -0
  84. package/dist/nodes/TickTick/resources/projects/methods.js.map +1 -0
  85. package/dist/nodes/TickTick/resources/projects/operations/ProjectCreate.js +11 -9
  86. package/dist/nodes/TickTick/resources/projects/operations/ProjectCreate.js.map +1 -1
  87. package/dist/nodes/TickTick/resources/projects/operations/ProjectDelete.js +2 -1
  88. package/dist/nodes/TickTick/resources/projects/operations/ProjectDelete.js.map +1 -1
  89. package/dist/nodes/TickTick/resources/projects/operations/ProjectGet.js +6 -5
  90. package/dist/nodes/TickTick/resources/projects/operations/ProjectGet.js.map +1 -1
  91. package/dist/nodes/TickTick/resources/projects/operations/ProjectUpdate.js +2 -1
  92. package/dist/nodes/TickTick/resources/projects/operations/ProjectUpdate.js.map +1 -1
  93. package/dist/nodes/TickTick/resources/shared/methods.d.ts +6 -0
  94. package/dist/nodes/TickTick/resources/shared/methods.js +13 -0
  95. package/dist/nodes/TickTick/resources/shared/methods.js.map +1 -0
  96. package/dist/nodes/TickTick/resources/sync/index.d.ts +2 -0
  97. package/dist/nodes/TickTick/resources/sync/index.js +33 -0
  98. package/dist/nodes/TickTick/resources/sync/index.js.map +1 -1
  99. package/dist/nodes/TickTick/resources/sync/operations/SyncAll.js +2 -1
  100. package/dist/nodes/TickTick/resources/sync/operations/SyncAll.js.map +1 -1
  101. package/dist/nodes/TickTick/resources/tags/TagsDescription.js +1 -0
  102. package/dist/nodes/TickTick/resources/tags/TagsDescription.js.map +1 -1
  103. package/dist/nodes/TickTick/resources/tags/index.d.ts +2 -0
  104. package/dist/nodes/TickTick/resources/tags/index.js +40 -0
  105. package/dist/nodes/TickTick/resources/tags/index.js.map +1 -1
  106. package/dist/nodes/TickTick/resources/tags/methods.d.ts +12 -0
  107. package/dist/nodes/TickTick/resources/tags/methods.js +18 -0
  108. package/dist/nodes/TickTick/resources/tags/methods.js.map +1 -0
  109. package/dist/nodes/TickTick/resources/tags/operations/TagCreate.js +2 -1
  110. package/dist/nodes/TickTick/resources/tags/operations/TagCreate.js.map +1 -1
  111. package/dist/nodes/TickTick/resources/tags/operations/TagDelete.js +2 -1
  112. package/dist/nodes/TickTick/resources/tags/operations/TagDelete.js.map +1 -1
  113. package/dist/nodes/TickTick/resources/tags/operations/TagList.js +2 -1
  114. package/dist/nodes/TickTick/resources/tags/operations/TagList.js.map +1 -1
  115. package/dist/nodes/TickTick/resources/tags/operations/TagMerge.js +2 -1
  116. package/dist/nodes/TickTick/resources/tags/operations/TagMerge.js.map +1 -1
  117. package/dist/nodes/TickTick/resources/tags/operations/TagRename.js +2 -1
  118. package/dist/nodes/TickTick/resources/tags/operations/TagRename.js.map +1 -1
  119. package/dist/nodes/TickTick/resources/tags/operations/TagUpdate.js +2 -1
  120. package/dist/nodes/TickTick/resources/tags/operations/TagUpdate.js.map +1 -1
  121. package/dist/nodes/TickTick/resources/tasks/index.d.ts +3 -0
  122. package/dist/nodes/TickTick/resources/tasks/index.js +44 -0
  123. package/dist/nodes/TickTick/resources/tasks/index.js.map +1 -1
  124. package/dist/nodes/TickTick/resources/tasks/methods.d.ts +9 -0
  125. package/dist/nodes/TickTick/resources/tasks/methods.js +13 -0
  126. package/dist/nodes/TickTick/resources/tasks/methods.js.map +1 -0
  127. package/dist/nodes/TickTick/resources/tasks/operations/TaskComplete.js +5 -4
  128. package/dist/nodes/TickTick/resources/tasks/operations/TaskComplete.js.map +1 -1
  129. package/dist/nodes/TickTick/resources/tasks/operations/TaskCreate.js +11 -10
  130. package/dist/nodes/TickTick/resources/tasks/operations/TaskCreate.js.map +1 -1
  131. package/dist/nodes/TickTick/resources/tasks/operations/TaskDelete.js +5 -4
  132. package/dist/nodes/TickTick/resources/tasks/operations/TaskDelete.js.map +1 -1
  133. package/dist/nodes/TickTick/resources/tasks/operations/TaskGet.js +2 -1
  134. package/dist/nodes/TickTick/resources/tasks/operations/TaskGet.js.map +1 -1
  135. package/dist/nodes/TickTick/resources/tasks/operations/TaskListAll.js +5 -4
  136. package/dist/nodes/TickTick/resources/tasks/operations/TaskListAll.js.map +1 -1
  137. package/dist/nodes/TickTick/resources/tasks/operations/TaskListCompleted.js +2 -1
  138. package/dist/nodes/TickTick/resources/tasks/operations/TaskListCompleted.js.map +1 -1
  139. package/dist/nodes/TickTick/resources/tasks/operations/TaskListDeleted.js +2 -1
  140. package/dist/nodes/TickTick/resources/tasks/operations/TaskListDeleted.js.map +1 -1
  141. package/dist/nodes/TickTick/resources/tasks/operations/TaskMove.js +2 -1
  142. package/dist/nodes/TickTick/resources/tasks/operations/TaskMove.js.map +1 -1
  143. package/dist/nodes/TickTick/resources/tasks/operations/TaskSetParent.js +3 -2
  144. package/dist/nodes/TickTick/resources/tasks/operations/TaskSetParent.js.map +1 -1
  145. package/dist/nodes/TickTick/resources/tasks/operations/TaskUpdate.js +13 -12
  146. package/dist/nodes/TickTick/resources/tasks/operations/TaskUpdate.js.map +1 -1
  147. package/dist/nodes/TickTick/resources/user/index.d.ts +2 -0
  148. package/dist/nodes/TickTick/resources/user/index.js +35 -0
  149. package/dist/nodes/TickTick/resources/user/index.js.map +1 -1
  150. package/dist/nodes/TickTick/resources/user/operations/UserGetPreferences.js +2 -1
  151. package/dist/nodes/TickTick/resources/user/operations/UserGetPreferences.js.map +1 -1
  152. package/dist/nodes/TickTick/resources/user/operations/UserGetProfile.js +2 -1
  153. package/dist/nodes/TickTick/resources/user/operations/UserGetProfile.js.map +1 -1
  154. package/dist/nodes/TickTick/resources/user/operations/UserGetStatus.js +2 -1
  155. package/dist/nodes/TickTick/resources/user/operations/UserGetStatus.js.map +1 -1
  156. package/dist/nodes/TickTick/types/api.d.ts +186 -0
  157. package/dist/nodes/TickTick/types/api.js +3 -0
  158. package/dist/nodes/TickTick/types/api.js.map +1 -0
  159. package/dist/nodes/TickTick/types/registry.d.ts +25 -0
  160. package/dist/nodes/TickTick/types/registry.js +46 -0
  161. package/dist/nodes/TickTick/types/registry.js.map +1 -0
  162. package/dist/package.json +13 -20
  163. package/dist/tsconfig.tsbuildinfo +1 -1
  164. package/package.json +13 -20
  165. package/dist/nodes/TickTick/GenericFunctions.d.ts +0 -4
  166. package/dist/nodes/TickTick/GenericFunctions.js.map +0 -1
  167. package/index.js +0 -0
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # n8n-nodes-ticktick
2
2
 
3
- n8n community node for integrating TickTick with your workflows. Manage tasks, projects, and productivity seamlessly.
3
+ n8n community node for integrating TickTick with your workflows. Manage tasks, projects, tags, habits, and productivity seamlessly.
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -8,8 +8,15 @@ n8n community node for integrating TickTick with your workflows. Manage tasks, p
8
8
  - [Credentials](#credentials)
9
9
  - [Task Operations](#task-operations)
10
10
  - [Project Operations](#project-operations)
11
+ - [Tag Operations](#tag-operations)
12
+ - [Habit Operations](#habit-operations)
13
+ - [Focus Operations](#focus-operations)
14
+ - [Project Group Operations](#project-group-operations)
15
+ - [User Operations](#user-operations)
16
+ - [Sync Operations](#sync-operations)
11
17
  - [Compatibility](#compatibility)
12
18
  - [Known Issues](#known-issues)
19
+ - [Development Notes](#development-notes)
13
20
  - [Resources](#resources)
14
21
  - [Version History](#version-history)
15
22
 
@@ -27,7 +34,7 @@ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes
27
34
 
28
35
  ### TickTick Session API (V2) - Email/Password
29
36
 
30
- For access to V2 API features (sync, tags, etc.):
37
+ For access to V2 API features (sync, tags, habits, focus, etc.):
31
38
 
32
39
  1. In n8n: Create new credential → **TickTick Session API**
33
40
  2. Enter your TickTick **email** and **password**
@@ -91,13 +98,11 @@ The following operations require **TickTick Session API** (Email/Password) crede
91
98
  | **List Deleted** | Get deleted/trashed tasks | — | Limit |
92
99
  | **Move** | Move task to different project | Task, To Project | — |
93
100
 
101
+ ### Project Operations (V2 Only)
94
102
 
95
-
96
- ### Sync Operations (V2)
97
-
98
- | Operation | Description | Returns |
99
- |-----------|-------------|---------|
100
- | **Sync All** | Get all data from sync endpoint | Tasks, Projects, Tags, Habits, Project Groups, Column Data, User Info |
103
+ | Operation | Description | Required Parameters | Optional/Additional Fields |
104
+ |-----------|-------------|-------------------|--------------------------|
105
+ | **List Closed** | Get all closed projects | — | — |
101
106
 
102
107
  ### Tag Operations (V2)
103
108
 
@@ -107,16 +112,61 @@ The following operations require **TickTick Session API** (Email/Password) crede
107
112
  | **Update** | Update existing tag | Tag | Name, Label, Sort Order, Color, Parent Tag |
108
113
  | **Delete** | Delete a tag | Tag | — |
109
114
  | **List** | List all tags | — | — |
115
+ | **Rename** | Rename a tag | Tag, New Name | — |
116
+ | **Merge** | Merge tag into another | Source Tag, Target Tag | — |
117
+
118
+ ### Habit Operations (V2)
119
+
120
+ | Operation | Description | Required Parameters | Optional Fields |
121
+ |-----------|-------------|-------------------|-----------------|
122
+ | **Create** | Create a new habit | Habit Name | Type (Boolean/Real), Color, Icon, Repeat Rule, Target Days, Archived Days, Goal |
123
+ | **Get** | Get a specific habit | Habit | — |
124
+ | **Update** | Update existing habit | Habit | Name, Type, Color, Icon, Repeat Rule, Target Days, Archived Days, Goal |
125
+ | **Archive** | Archive a habit | Habit | — |
126
+ | **Unarchive** | Unarchive a habit | Habit | — |
127
+ | **Delete** | Delete a habit | Habit | — |
128
+ | **List** | List all habits | — | — |
129
+ | **Checkin** | Record habit check-in | Habit, Date | Value (for Real type habits) |
130
+
131
+ ### Focus Operations (V2)
132
+
133
+ | Operation | Description | Required Parameters | Optional Fields |
134
+ |-----------|-------------|-------------------|-----------------|
135
+ | **Get Heatmap** | Get focus heatmap data | Start Date, End Date | — |
136
+ | **Get Distribution** | Get focus time distribution | Start Date, End Date | — |
137
+
138
+ ### Project Group Operations (V2)
139
+
140
+ | Operation | Description | Required Parameters | Optional Fields |
141
+ |-----------|-------------|-------------------|-----------------|
142
+ | **Create** | Create a project group | Group Name | Sort Order, Sort Type |
143
+ | **Update** | Update existing group | Project Group | Name, Sort Order, Sort Type |
144
+ | **Delete** | Delete a project group | Project Group | — |
145
+ | **List** | List all project groups | — | — |
146
+
147
+ ### User Operations (V2)
148
+
149
+ | Operation | Description | Returns |
150
+ |-----------|-------------|---------|
151
+ | **Get Profile** | Get user profile information | User details, settings, subscription info |
152
+ | **Get Status** | Get user status | Current status, activity data |
153
+ | **Get Preferences** | Get user preferences | UI settings, notification preferences |
154
+
155
+ ### Sync Operations (V2)
156
+
157
+ | Operation | Description | Returns |
158
+ |-----------|-------------|---------|
159
+ | **Sync All** | Get all data from sync endpoint | Tasks, Projects, Tags, Habits, Project Groups, Column Data, User Info |
110
160
 
111
161
  ---
112
162
 
113
163
  ## Compatibility
114
164
 
115
- Tested successfully on 2026-01-06 with:
165
+ Tested successfully on 2026-01-09 with:
116
166
 
117
167
  - n8n Version: 2.2.3
118
168
  - Node Version: 22.11.0
119
- - pnpm Version: 10.27.0
169
+ - Bun Version: 1.3.5
120
170
  - No extra packages required (Luxon is bundled)
121
171
 
122
172
  ## Known Issues
@@ -135,6 +185,52 @@ Tested successfully on 2026-01-06 with:
135
185
  ### General
136
186
  - **Unofficial Node**: Community-maintained node. Not affiliated with or endorsed by TickTick or n8n.
137
187
 
188
+ ## Development Notes
189
+
190
+ ### Kill n8n Process
191
+
192
+ Add this alias to your `~/.zshrc` for quick n8n process termination during development:
193
+
194
+ ```bash
195
+ alias kill-n8n="kill -9 \$(lsof -ti tcp:5678 -sTCP:LISTEN)"
196
+ ```
197
+
198
+ After adding, reload your shell: `source ~/.zshrc`
199
+
200
+ ### How to publish new release
201
+
202
+ ```
203
+ # Bump the version
204
+ npm version patch|minor|major
205
+ ```
206
+
207
+ ```
208
+ # push the tag to GitHub
209
+ git push origin v1.2.3
210
+ ```
211
+
212
+ ### Add MCP Server to Zed IDE
213
+
214
+ "Add custom Server..." -> "Configure Remote" -> "Add Server"
215
+
216
+ ```
217
+ {
218
+ /// The name of your remote MCP server
219
+ "n8n-mcp": {
220
+ /// The URL of the remote MCP server
221
+ "url": "http://localhost:5678/mcp-server/http",
222
+ "headers": {
223
+ /// Any headers to send along
224
+ "Authorization": "Bearer <TOKEN>"
225
+ }
226
+ }
227
+ }
228
+ ```
229
+ Available Tools:
230
+ - execute_workflow
231
+ - get_workflow_details
232
+ - search_workflows
233
+
138
234
  ## Resources
139
235
 
140
236
  - [n8n Website](https://n8n.io/)
@@ -150,6 +246,7 @@ Tested successfully on 2026-01-06 with:
150
246
 
151
247
  ## Version History
152
248
 
249
+ - `2.1.0` – **Major Refactor & New Resources**: Complete codebase restructure with resource registry pattern, barrel exports, TypeScript types, centralized constants. New resources: Habits (with check-ins), Focus (heatmap & distribution), Project Groups, User (profile/status/preferences). Enhanced tag operations (rename, merge). Improved API implementations matching Python SDK reference. Comprehensive test suite with 34+ tests.
153
250
  - `2.0.0` – **V2 API Support**: Added TickTick Session API (email/password) authentication with support for undocumented V2 endpoints. New resources: Tags, Sync. New V2-only task operations: List All, List Completed, List Deleted, Move. All V1 operations now support both V1 and V2 authentication methods.
154
251
  - `1.3.0` – Major refactor: Fixed API request context, added Inbox support, expanded Task/Project fields, added Subtask support, improved Project Get modes.
155
252
  - `1.2.2` – Documentation and metadata update only
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TickTickOAuth2Api = void 0;
4
+ const urls_1 = require("../nodes/TickTick/constants/urls");
4
5
  class TickTickOAuth2Api {
5
6
  constructor() {
6
7
  this.name = "tickTickOAuth2Api";
@@ -19,14 +20,14 @@ class TickTickOAuth2Api {
19
20
  displayName: "Authorization URL",
20
21
  name: "authUrl",
21
22
  type: "hidden",
22
- default: "https://ticktick.com/oauth/authorize",
23
+ default: urls_1.TICKTICK_URLS.OAUTH_AUTHORIZE,
23
24
  required: true,
24
25
  },
25
26
  {
26
27
  displayName: "Access Token URL",
27
28
  name: "accessTokenUrl",
28
29
  type: "hidden",
29
- default: "https://ticktick.com/oauth/token",
30
+ default: urls_1.TICKTICK_URLS.OAUTH_TOKEN,
30
31
  required: true,
31
32
  },
32
33
  {
@@ -1 +1 @@
1
- {"version":3,"file":"TickTickOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/TickTickOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,iBAAiB;IAA9B;QACC,SAAI,GAAG,mBAAmB,CAAC;QAC3B,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QACxB,gBAAW,GAAG,qBAAqB,CAAC;QACpC,qBAAgB,GAAG,8CAA8C,CAAC;QAElE,SAAI,GAAS,4BAA4B,CAAC;QAE1C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;aACf;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,sCAAsC;gBAC/C,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,kCAAkC;gBAC3C,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,QAAQ;aACjB;SACD,CAAC;IACH,CAAC;CAAA;AA1DD,8CA0DC"}
1
+ {"version":3,"file":"TickTickOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/TickTickOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AACA,2DAAiE;AAEjE,MAAa,iBAAiB;IAA9B;QACC,SAAI,GAAG,mBAAmB,CAAC;QAC3B,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QACxB,gBAAW,GAAG,qBAAqB,CAAC;QACpC,qBAAgB,GAAG,8CAA8C,CAAC;QAElE,SAAI,GAAS,4BAA4B,CAAC;QAE1C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,MAAM;aACf;YACD;gBACC,WAAW,EAAE,mBAAmB;gBAChC,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oBAAa,CAAC,eAAe;gBACtC,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,kBAAkB;gBAC/B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,oBAAa,CAAC,WAAW;gBAClC,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;aACd;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,QAAQ;aACjB;SACD,CAAC;IACH,CAAC;CAAA;AA1DD,8CA0DC"}
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TickTickTokenApi = void 0;
4
+ const endpoints_1 = require("../nodes/TickTick/constants/endpoints");
5
+ const urls_1 = require("../nodes/TickTick/constants/urls");
4
6
  class TickTickTokenApi {
5
7
  constructor() {
6
8
  this.name = "tickTickTokenApi";
@@ -28,8 +30,8 @@ class TickTickTokenApi {
28
30
  };
29
31
  this.test = {
30
32
  request: {
31
- baseURL: "https://ticktick.com",
32
- url: "/open/v1/project",
33
+ baseURL: urls_1.TICKTICK_URLS.BASE_URL,
34
+ url: endpoints_1.ENDPOINTS.OPEN_V1_PROJECT,
33
35
  },
34
36
  };
35
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TickTickTokenApi.credentials.js","sourceRoot":"","sources":["../../credentials/TickTickTokenApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,gBAAgB;IAA7B;QACC,SAAI,GAAG,kBAAkB,CAAC;QAC1B,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,8CAA8C,CAAC;QAClE,SAAI,GAAS,4BAA4B,CAAC;QAC1C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;aACD;SACD,CAAC;QACF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,qCAAqC;iBACpD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,sBAAsB;gBAC/B,GAAG,EAAE,kBAAkB;aACvB;SACD,CAAC;IACH,CAAC;CAAA;AA/BD,4CA+BC"}
1
+ {"version":3,"file":"TickTickTokenApi.credentials.js","sourceRoot":"","sources":["../../credentials/TickTickTokenApi.credentials.ts"],"names":[],"mappings":";;;AAOA,qEAAkE;AAClE,2DAAiE;AAEjE,MAAa,gBAAgB;IAA7B;QACC,SAAI,GAAG,kBAAkB,CAAC;QAC1B,gBAAW,GAAG,cAAc,CAAC;QAC7B,qBAAgB,GAAG,8CAA8C,CAAC;QAClE,SAAI,GAAS,4BAA4B,CAAC;QAC1C,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE;oBACZ,QAAQ,EAAE,IAAI;iBACd;aACD;SACD,CAAC;QACF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,qCAAqC;iBACpD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,oBAAa,CAAC,QAAQ;gBAC/B,GAAG,EAAE,qBAAS,CAAC,eAAe;aAC9B;SACD,CAAC;IACH,CAAC;CAAA;AA/BD,4CA+BC"}
@@ -1,34 +1,10 @@
1
- import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodeListSearchResult, INodeType, INodeTypeDescription } from "n8n-workflow";
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from "n8n-workflow";
2
2
  export declare class TickTick implements INodeType {
3
3
  description: INodeTypeDescription;
4
4
  methods: {
5
- loadOptions: {
6
- getProjects(this: ILoadOptionsFunctions): Promise<{
7
- name: string;
8
- value: string;
9
- }[]>;
10
- getTasks(this: ILoadOptionsFunctions): Promise<{
11
- name: string;
12
- value: string;
13
- }[]>;
14
- getHabits(this: ILoadOptionsFunctions): Promise<{
15
- name: string;
16
- value: string;
17
- }[]>;
18
- getTags(this: ILoadOptionsFunctions): Promise<{
19
- name: string;
20
- value: string;
21
- }[]>;
22
- getProjectGroups(this: ILoadOptionsFunctions): Promise<{
23
- name: string;
24
- value: string;
25
- }[]>;
26
- };
5
+ loadOptions: Record<string, import("./types/registry").LoadOptionsFunction>;
27
6
  listSearch: {
28
- searchProjects(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
29
- searchProjectsForMove(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
30
- searchTags(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
31
- searchTasks(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
7
+ searchTasks(this: import("n8n-workflow").ILoadOptionsFunctions, filter?: string): Promise<import("n8n-workflow").INodeListSearchResult>;
32
8
  };
33
9
  };
34
10
  execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
@@ -1,57 +1,8 @@
1
1
  "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
2
  Object.defineProperty(exports, "__esModule", { value: true });
36
3
  exports.TickTick = void 0;
37
4
  const n8n_workflow_1 = require("n8n-workflow");
38
- const taskOps = __importStar(require("./resources/tasks/operations"));
39
- const projectOps = __importStar(require("./resources/projects/operations"));
40
- const tagOps = __importStar(require("./resources/tags/operations"));
41
- const habitOps = __importStar(require("./resources/habits/operations"));
42
- const focusOps = __importStar(require("./resources/focus/operations"));
43
- const projectGroupOps = __importStar(require("./resources/projectGroups/operations"));
44
- const userOps = __importStar(require("./resources/user/operations"));
45
- const syncOps = __importStar(require("./resources/sync/operations"));
46
- const TasksDescription_1 = require("./resources/tasks/TasksDescription");
47
- const ProjectsDescription_1 = require("./resources/projects/ProjectsDescription");
48
- const TagsDescription_1 = require("./resources/tags/TagsDescription");
49
- const HabitsDescription_1 = require("./resources/habits/HabitsDescription");
50
- const FocusDescription_1 = require("./resources/focus/FocusDescription");
51
- const ProjectGroupsDescription_1 = require("./resources/projectGroups/ProjectGroupsDescription");
52
- const UserDescription_1 = require("./resources/user/UserDescription");
53
- const SyncDescription_1 = require("./resources/sync/SyncDescription");
54
- const GenericFunctions_1 = require("./GenericFunctions");
5
+ const resources_1 = require("./resources");
55
6
  class TickTick {
56
7
  constructor() {
57
8
  this.description = {
@@ -65,6 +16,7 @@ class TickTick {
65
16
  defaults: {
66
17
  name: "TickTick",
67
18
  },
19
+ usableAsTool: true,
68
20
  inputs: ["main"],
69
21
  outputs: ["main"],
70
22
  credentials: [
@@ -129,7 +81,10 @@ class TickTick {
129
81
  },
130
82
  },
131
83
  options: [
84
+ { name: "Focus", value: "focus" },
85
+ { name: "Habit", value: "habit" },
132
86
  { name: "Project", value: "project" },
87
+ { name: "Project Group", value: "projectGroup" },
133
88
  { name: "Sync", value: "sync" },
134
89
  { name: "Tag", value: "tag" },
135
90
  { name: "Task", value: "task" },
@@ -137,87 +92,15 @@ class TickTick {
137
92
  ],
138
93
  default: "task",
139
94
  },
140
- ...TasksDescription_1.taskOperations,
141
- ...TasksDescription_1.taskFields,
142
- ...ProjectsDescription_1.projectOperations,
143
- ...ProjectsDescription_1.projectFields,
144
- ...TagsDescription_1.tagOperations,
145
- ...TagsDescription_1.tagFields,
146
- ...HabitsDescription_1.habitOperations,
147
- ...HabitsDescription_1.habitFields,
148
- ...FocusDescription_1.focusOperations,
149
- ...FocusDescription_1.focusFields,
150
- ...ProjectGroupsDescription_1.projectGroupOperations,
151
- ...ProjectGroupsDescription_1.projectGroupFields,
152
- ...UserDescription_1.userOperations,
153
- ...UserDescription_1.userFields,
154
- ...SyncDescription_1.syncOperations,
155
- ...SyncDescription_1.syncFields,
95
+ ...resources_1.registry.getAllOperations(),
96
+ ...resources_1.registry.getAllFields(),
156
97
  ],
157
98
  };
158
99
  this.methods = {
159
- loadOptions: {
160
- async getProjects() {
161
- return await GenericFunctions_1.getProjects.call(this);
162
- },
163
- async getTasks() {
164
- const projectId = this.getCurrentNodeParameter("projectId");
165
- return await GenericFunctions_1.getTasks.call(this, projectId);
166
- },
167
- async getHabits() {
168
- return await GenericFunctions_1.getHabits.call(this);
169
- },
170
- async getTags() {
171
- return await GenericFunctions_1.getTags.call(this);
172
- },
173
- async getProjectGroups() {
174
- return await GenericFunctions_1.getProjectGroups.call(this);
175
- },
176
- },
100
+ loadOptions: resources_1.registry.getAllLoadOptions(),
177
101
  listSearch: {
178
- async searchProjects(filter) {
179
- const results = await GenericFunctions_1.searchProjects.call(this, filter);
180
- return { results };
181
- },
182
- async searchProjectsForMove(filter) {
183
- var _a;
184
- const results = await GenericFunctions_1.searchProjects.call(this, filter);
185
- try {
186
- const taskIdValue = this.getCurrentNodeParameter("taskId");
187
- let taskId;
188
- if (typeof taskIdValue === "object" && taskIdValue !== null) {
189
- taskId = taskIdValue.value || "";
190
- }
191
- else {
192
- taskId = taskIdValue || "";
193
- }
194
- if (taskId) {
195
- const authType = this.getCurrentNodeParameter("authentication");
196
- if (authType === "tickTickSessionApi") {
197
- const { tickTickApiRequestV2 } = await Promise.resolve().then(() => __importStar(require("./helpers/apiRequest")));
198
- const syncResponse = (await tickTickApiRequestV2.call(this, "GET", "/batch/check/0"));
199
- const tasks = ((_a = syncResponse === null || syncResponse === void 0 ? void 0 : syncResponse.syncTaskBean) === null || _a === void 0 ? void 0 : _a.update) || [];
200
- const task = tasks.find((t) => String(t.id) === taskId);
201
- if (task && task.projectId) {
202
- return {
203
- results: results.filter((r) => r.value !== task.projectId),
204
- };
205
- }
206
- }
207
- }
208
- }
209
- catch (error) {
210
- }
211
- return { results };
212
- },
213
- async searchTags(filter) {
214
- const results = await GenericFunctions_1.searchTags.call(this, filter);
215
- return { results };
216
- },
217
- async searchTasks(filter) {
218
- const results = await GenericFunctions_1.searchTasks.call(this, filter);
219
- return { results };
220
- },
102
+ ...resources_1.registry.getAllListSearch(),
103
+ ...resources_1.sharedMethods.listSearch,
221
104
  },
222
105
  };
223
106
  }
@@ -228,169 +111,11 @@ class TickTick {
228
111
  try {
229
112
  const resource = this.getNodeParameter("resource", i);
230
113
  const operation = this.getNodeParameter("operation", i);
231
- let result = [];
232
- if (resource === "task") {
233
- switch (operation) {
234
- case "create":
235
- result = await taskOps.taskCreateExecute.call(this, i);
236
- break;
237
- case "get":
238
- result = await taskOps.taskGetExecute.call(this, i);
239
- break;
240
- case "listAll":
241
- result = await taskOps.taskListAllExecute.call(this, i);
242
- break;
243
- case "update":
244
- result = await taskOps.taskUpdateExecute.call(this, i);
245
- break;
246
- case "complete":
247
- result = await taskOps.taskCompleteExecute.call(this, i);
248
- break;
249
- case "delete":
250
- result = await taskOps.taskDeleteExecute.call(this, i);
251
- break;
252
- case "listCompleted":
253
- result = await taskOps.taskListCompletedExecute.call(this, i);
254
- break;
255
- case "listDeleted":
256
- result = await taskOps.taskListDeletedExecute.call(this, i);
257
- break;
258
- case "move":
259
- result = await taskOps.taskMoveExecute.call(this, i);
260
- break;
261
- default:
262
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${resource}.${operation}`);
263
- }
264
- }
265
- else if (resource === "project") {
266
- switch (operation) {
267
- case "create":
268
- result = await projectOps.projectCreateExecute.call(this, i);
269
- break;
270
- case "get":
271
- result = await projectOps.projectGetExecute.call(this, i);
272
- break;
273
- case "update":
274
- result = await projectOps.projectUpdateExecute.call(this, i);
275
- break;
276
- case "delete":
277
- result = await projectOps.projectDeleteExecute.call(this, i);
278
- break;
279
- default:
280
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${resource}.${operation}`);
281
- }
282
- }
283
- else if (resource === "tag") {
284
- switch (operation) {
285
- case "list":
286
- result = await tagOps.tagListExecute.call(this, i);
287
- break;
288
- case "create":
289
- result = await tagOps.tagCreateExecute.call(this, i);
290
- break;
291
- case "update":
292
- result = await tagOps.tagUpdateExecute.call(this, i);
293
- break;
294
- case "delete":
295
- result = await tagOps.tagDeleteExecute.call(this, i);
296
- break;
297
- case "rename":
298
- result = await tagOps.tagRenameExecute.call(this, i);
299
- break;
300
- case "merge":
301
- result = await tagOps.tagMergeExecute.call(this, i);
302
- break;
303
- default:
304
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${resource}.${operation}`);
305
- }
306
- }
307
- else if (resource === "habit") {
308
- switch (operation) {
309
- case "list":
310
- result = await habitOps.habitListExecute.call(this, i);
311
- break;
312
- case "get":
313
- result = await habitOps.habitGetExecute.call(this, i);
314
- break;
315
- case "create":
316
- result = await habitOps.habitCreateExecute.call(this, i);
317
- break;
318
- case "update":
319
- result = await habitOps.habitUpdateExecute.call(this, i);
320
- break;
321
- case "delete":
322
- result = await habitOps.habitDeleteExecute.call(this, i);
323
- break;
324
- case "checkin":
325
- result = await habitOps.habitCheckinExecute.call(this, i);
326
- break;
327
- case "archive":
328
- result = await habitOps.habitArchiveExecute.call(this, i);
329
- break;
330
- case "unarchive":
331
- result = await habitOps.habitUnarchiveExecute.call(this, i);
332
- break;
333
- default:
334
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${resource}.${operation}`);
335
- }
336
- }
337
- else if (resource === "focus") {
338
- switch (operation) {
339
- case "getHeatmap":
340
- result = await focusOps.focusGetHeatmapExecute.call(this, i);
341
- break;
342
- case "getDistribution":
343
- result = await focusOps.focusGetDistributionExecute.call(this, i);
344
- break;
345
- default:
346
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${resource}.${operation}`);
347
- }
348
- }
349
- else if (resource === "projectGroup") {
350
- switch (operation) {
351
- case "list":
352
- result = await projectGroupOps.projectGroupListExecute.call(this, i);
353
- break;
354
- case "create":
355
- result = await projectGroupOps.projectGroupCreateExecute.call(this, i);
356
- break;
357
- case "update":
358
- result = await projectGroupOps.projectGroupUpdateExecute.call(this, i);
359
- break;
360
- case "delete":
361
- result = await projectGroupOps.projectGroupDeleteExecute.call(this, i);
362
- break;
363
- default:
364
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${resource}.${operation}`);
365
- }
366
- }
367
- else if (resource === "user") {
368
- switch (operation) {
369
- case "getProfile":
370
- result = await userOps.userGetProfileExecute.call(this, i);
371
- break;
372
- case "getStatus":
373
- result = await userOps.userGetStatusExecute.call(this, i);
374
- break;
375
- case "getPreferences":
376
- result = await userOps.userGetPreferencesExecute.call(this, i);
377
- break;
378
- default:
379
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${resource}.${operation}`);
380
- }
381
- }
382
- else if (resource === "sync") {
383
- switch (operation) {
384
- case "syncAll":
385
- result = await syncOps.syncAllExecute.call(this, i);
386
- break;
387
- default:
388
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${resource}.${operation}`);
389
- }
390
- }
391
- else {
392
- throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unknown resource type: ${resource}`);
114
+ const handler = resources_1.registry.getHandler(resource, operation);
115
+ if (!handler) {
116
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation: ${resource}.${operation}`);
393
117
  }
118
+ const result = await handler.call(this, i);
394
119
  returnData.push(...result);
395
120
  }
396
121
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"TickTick.node.js","sourceRoot":"","sources":["../../../nodes/TickTick/TickTick.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,+CAAgE;AAEhE,sEAAwD;AACxD,4EAA8D;AAC9D,oEAAsD;AACtD,wEAA0D;AAC1D,uEAAyD;AACzD,sFAAwE;AACxE,qEAAuD;AACvD,qEAAuD;AAEvD,yEAAgF;AAChF,kFAGkD;AAClD,sEAA4E;AAC5E,4EAG8C;AAC9C,yEAG4C;AAC5C,iGAG4D;AAC5D,sEAA8E;AAC9E,sEAA8E;AAE9E,iEASoC;AAEpC,MAAa,QAAQ;IAArB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,UAAU;YACvB,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,+BAA+B;YACrC,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,QAAQ,EAAE,gEAAgE;YAC1E,OAAO,EAAE,CAAC;YACV,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE;gBACT,IAAI,EAAE,UAAU;aAChB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACZ;oBACC,IAAI,EAAE,kBAAkB;oBACxB,QAAQ,EAAE,IAAI;oBACd,c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