@superdurable/connector-clickup 0.0.0-stage → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Super Durable
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,30 @@
1
- # Temporary Holding Version
1
+ # ClickUp TypeScript connector
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
+ `@superdurable/connector-clickup` provides all seven ClickUp task operations to Dex TypeScript Flows: `searchTasks`, `getTask`, `createTask`, `updateTask`, `updateTaskTags`, `addComment`, and `findMemberByEmail`. The `taskEvent` webhook Trigger remains Go only. Operation specific Step factories, model validators, connection contracts, and mock cases are generated from the [manifest](../connector.yaml) and Go model types.
4
+
5
+ ## Connect
6
+
7
+ Install Node.js 22 or 24 and Dex TypeScript SDK 1.28.0 or later. Create a personal API token at [ClickUp Settings > Apps](https://app.clickup.com/settings/apps) and save it as the private `api_token` in a Dex Web Connection named `clickup-workspace`. Keep it out of Flow input, Attributes, results, and logs. The [runnable example](examples/get-task/) loads that connection at Worker startup. The client resolves the current token before each provider request and sends it as the raw Authorization header.
8
+
9
+ | Step factory | ClickUp API request | Happy branch |
10
+ | --- | --- | --- |
11
+ | `newSearchTasksStep` | `GET /team/{workspaceId}/task` | `searched` |
12
+ | `newGetTaskStep` | `GET /task/{taskId}` | `found` |
13
+ | `newCreateTaskStep` | `POST /list/{listId}/task` | `created` |
14
+ | `newUpdateTaskStep` | `PUT /task/{taskId}` | `updated` |
15
+ | `newUpdateTaskTagsStep` | tag POST and DELETE, then task GET | `updated` |
16
+ | `newAddCommentStep` | `POST /task/{taskId}/comment` | `added` |
17
+ | `newFindMemberByEmailStep` | `GET /team` | `found` |
18
+
19
+ Unwired optional branches fail the Flow. `createTask` and `addComment` record a Dex heartbeat before their unkeyed write, then read back after an unconfirmed attempt. A result becomes uncertain when read back cannot identify exactly one earlier write. The other mutations repeat safely using absolute changes or tag membership.
20
+
21
+ Task writes reject duplicate assignee or custom field IDs, non-JSON custom field values, and invalid status names before contacting ClickUp. Tags must be unique names of 1–100 UTF-8 bytes without surrounding whitespace, slashes, control characters, or dot segments (`.` and `..`). `updateTaskTags` bounds the entire write and read-back sequence to 25 seconds.
22
+
23
+ ## Verify
24
+
25
+ ```sh
26
+ npm ci
27
+ npm run check
28
+ ```
29
+
30
+ Run `npm run test:integration` against a local `dexcli dev` with `DEX_FLOW_SERVICE_ADDRESS` set. The integration test runs the example through a real Dex Worker and Client against a local HTTP fixture. The Go recorded conformance suite checks 82 scenarios covering each operation's branches, retries, transport failure, request shape, idempotency key, unsafe tag paths, input validation, and uncertain read back. Live ClickUp authorization and provider behavior have not been verified.
@@ -0,0 +1,277 @@
1
+ {
2
+ "connectorId": "clickup",
3
+ "releaseTag": "connectors/clickup/go/v0.23.0",
4
+ "package": {
5
+ "ecosystem": "npm",
6
+ "name": "@superdurable/connector-clickup",
7
+ "version": "0.1.0"
8
+ },
9
+ "factories": [
10
+ {
11
+ "name": "newSearchTasksStep",
12
+ "kind": "query",
13
+ "operationId": "searchTasks",
14
+ "fields": {
15
+ "stepType": "stepType",
16
+ "annotations": "annotations",
17
+ "connectionName": "connectionName",
18
+ "resultAttribute": "resultAttribute"
19
+ },
20
+ "branches": [
21
+ {
22
+ "id": "searched",
23
+ "field": "searched",
24
+ "optional": false
25
+ },
26
+ {
27
+ "id": "notFound",
28
+ "field": "notFound",
29
+ "optional": true
30
+ },
31
+ {
32
+ "id": "providerRejected",
33
+ "field": "providerRejected",
34
+ "optional": true
35
+ },
36
+ {
37
+ "id": "invalidResponse",
38
+ "field": "invalidResponse",
39
+ "optional": true
40
+ },
41
+ {
42
+ "id": "defect",
43
+ "field": "defect",
44
+ "optional": true
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ "name": "newGetTaskStep",
50
+ "kind": "query",
51
+ "operationId": "getTask",
52
+ "fields": {
53
+ "stepType": "stepType",
54
+ "annotations": "annotations",
55
+ "connectionName": "connectionName",
56
+ "resultAttribute": "resultAttribute"
57
+ },
58
+ "branches": [
59
+ {
60
+ "id": "found",
61
+ "field": "found",
62
+ "optional": false
63
+ },
64
+ {
65
+ "id": "notFound",
66
+ "field": "notFound",
67
+ "optional": true
68
+ },
69
+ {
70
+ "id": "providerRejected",
71
+ "field": "providerRejected",
72
+ "optional": true
73
+ },
74
+ {
75
+ "id": "invalidResponse",
76
+ "field": "invalidResponse",
77
+ "optional": true
78
+ },
79
+ {
80
+ "id": "defect",
81
+ "field": "defect",
82
+ "optional": true
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "name": "newCreateTaskStep",
88
+ "kind": "mutation",
89
+ "operationId": "createTask",
90
+ "fields": {
91
+ "stepType": "stepType",
92
+ "annotations": "annotations",
93
+ "connectionName": "connectionName",
94
+ "resultAttribute": "resultAttribute"
95
+ },
96
+ "branches": [
97
+ {
98
+ "id": "created",
99
+ "field": "created",
100
+ "optional": false
101
+ },
102
+ {
103
+ "id": "notFound",
104
+ "field": "notFound",
105
+ "optional": true
106
+ },
107
+ {
108
+ "id": "providerRejected",
109
+ "field": "providerRejected",
110
+ "optional": true
111
+ },
112
+ {
113
+ "id": "uncertain",
114
+ "field": "uncertain",
115
+ "optional": true
116
+ },
117
+ {
118
+ "id": "defect",
119
+ "field": "defect",
120
+ "optional": true
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "name": "newUpdateTaskStep",
126
+ "kind": "mutation",
127
+ "operationId": "updateTask",
128
+ "fields": {
129
+ "stepType": "stepType",
130
+ "annotations": "annotations",
131
+ "connectionName": "connectionName",
132
+ "resultAttribute": "resultAttribute"
133
+ },
134
+ "branches": [
135
+ {
136
+ "id": "updated",
137
+ "field": "updated",
138
+ "optional": false
139
+ },
140
+ {
141
+ "id": "notFound",
142
+ "field": "notFound",
143
+ "optional": true
144
+ },
145
+ {
146
+ "id": "providerRejected",
147
+ "field": "providerRejected",
148
+ "optional": true
149
+ },
150
+ {
151
+ "id": "invalidResponse",
152
+ "field": "invalidResponse",
153
+ "optional": true
154
+ },
155
+ {
156
+ "id": "defect",
157
+ "field": "defect",
158
+ "optional": true
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "name": "newUpdateTaskTagsStep",
164
+ "kind": "mutation",
165
+ "operationId": "updateTaskTags",
166
+ "fields": {
167
+ "stepType": "stepType",
168
+ "annotations": "annotations",
169
+ "connectionName": "connectionName",
170
+ "resultAttribute": "resultAttribute"
171
+ },
172
+ "branches": [
173
+ {
174
+ "id": "updated",
175
+ "field": "updated",
176
+ "optional": false
177
+ },
178
+ {
179
+ "id": "notFound",
180
+ "field": "notFound",
181
+ "optional": true
182
+ },
183
+ {
184
+ "id": "providerRejected",
185
+ "field": "providerRejected",
186
+ "optional": true
187
+ },
188
+ {
189
+ "id": "invalidResponse",
190
+ "field": "invalidResponse",
191
+ "optional": true
192
+ },
193
+ {
194
+ "id": "defect",
195
+ "field": "defect",
196
+ "optional": true
197
+ }
198
+ ]
199
+ },
200
+ {
201
+ "name": "newAddCommentStep",
202
+ "kind": "mutation",
203
+ "operationId": "addComment",
204
+ "fields": {
205
+ "stepType": "stepType",
206
+ "annotations": "annotations",
207
+ "connectionName": "connectionName",
208
+ "resultAttribute": "resultAttribute"
209
+ },
210
+ "branches": [
211
+ {
212
+ "id": "added",
213
+ "field": "added",
214
+ "optional": false
215
+ },
216
+ {
217
+ "id": "notFound",
218
+ "field": "notFound",
219
+ "optional": true
220
+ },
221
+ {
222
+ "id": "providerRejected",
223
+ "field": "providerRejected",
224
+ "optional": true
225
+ },
226
+ {
227
+ "id": "uncertain",
228
+ "field": "uncertain",
229
+ "optional": true
230
+ },
231
+ {
232
+ "id": "defect",
233
+ "field": "defect",
234
+ "optional": true
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ "name": "newFindMemberByEmailStep",
240
+ "kind": "query",
241
+ "operationId": "findMemberByEmail",
242
+ "fields": {
243
+ "stepType": "stepType",
244
+ "annotations": "annotations",
245
+ "connectionName": "connectionName",
246
+ "resultAttribute": "resultAttribute"
247
+ },
248
+ "branches": [
249
+ {
250
+ "id": "found",
251
+ "field": "found",
252
+ "optional": false
253
+ },
254
+ {
255
+ "id": "notFound",
256
+ "field": "notFound",
257
+ "optional": true
258
+ },
259
+ {
260
+ "id": "providerRejected",
261
+ "field": "providerRejected",
262
+ "optional": true
263
+ },
264
+ {
265
+ "id": "invalidResponse",
266
+ "field": "invalidResponse",
267
+ "optional": true
268
+ },
269
+ {
270
+ "id": "defect",
271
+ "field": "defect",
272
+ "optional": true
273
+ }
274
+ ]
275
+ }
276
+ ]
277
+ }