@superdurable/connector-clickup 0.1.1 → 0.1.3
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 +2 -2
- package/dex-connector.json +357 -9
- package/dist/{chunk-5MZPRO45.js → chunk-PQCNNSDL.js} +77 -17
- package/dist/{connection-DYuseKLI.d.ts → connection-CyZGpZRT.d.ts} +34 -26
- package/dist/index.d.ts +31 -19
- package/dist/index.js +284 -111
- package/dist/mock.d.ts +1 -1
- package/dist/mock.js +1 -1
- package/package.json +5 -4
|
@@ -20,6 +20,14 @@ interface Credentials {
|
|
|
20
20
|
/** Secret signing secret of the ClickUp webhook that delivers task events to this connection, returned once as webhook.secret by Create Webhook (POST https://api.clickup.com/api/v2/team/{team_id}/webhook, documented at https://developer.clickup.com/reference/createwebhook). It is an opaque string of letters and digits, stored only in this credential field and never sent to ClickUp; the taskEvent Trigger checks each request's X-Signature, a hex HMAC-SHA256 of the body, with it. Leave it blank when no Flow uses the taskEvent Trigger; while it is blank, the webhook endpoint answers 503. */
|
|
21
21
|
webhookSecret?: SecretString;
|
|
22
22
|
}
|
|
23
|
+
/** Stored credential material that fails the connector credential checks, so no retry can succeed. */
|
|
24
|
+
declare class CredentialMaterialError extends TypeError {
|
|
25
|
+
constructor(message: string);
|
|
26
|
+
}
|
|
27
|
+
/** Report malformed stored credential material, also behind the SDK provider's decoding TypeError. */
|
|
28
|
+
declare function isCredentialMaterialError(error: unknown): boolean;
|
|
29
|
+
/** Decode private credential fields for the connector. */
|
|
30
|
+
declare function decodeCredentials(value: unknown): Credentials;
|
|
23
31
|
/** Host-owned source of private connector credentials. */
|
|
24
32
|
type CredentialSource = CredentialProvider<Credentials>;
|
|
25
33
|
/** SearchTasksInput filters one Workspace's tasks. Every non-empty filter narrows the search, and the
|
|
@@ -192,7 +200,7 @@ interface CreateTaskOutput {
|
|
|
192
200
|
/** Task is the task ClickUp created, or empty on every branch except created. */
|
|
193
201
|
"task": Task;
|
|
194
202
|
/** WasAlreadyApplied reports that an earlier attempt of this Step created the task without a
|
|
195
|
-
* confirmed outcome and this attempt
|
|
203
|
+
* confirmed outcome and this attempt read it back, so nothing was sent again. */
|
|
196
204
|
"wasAlreadyApplied"?: boolean | undefined;
|
|
197
205
|
}
|
|
198
206
|
/** UpdateTaskInput changes one task. Only set fields change; every change is an absolute value or a set
|
|
@@ -288,7 +296,7 @@ declare const SearchTasksInputSchema: z.ZodObject<{
|
|
|
288
296
|
statuses: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
289
297
|
assigneeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
290
298
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
291
|
-
updatedAfter: z.ZodOptional<z.ZodNullable<z.
|
|
299
|
+
updatedAfter: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
292
300
|
isClosedIncluded: z.ZodOptional<z.ZodBoolean>;
|
|
293
301
|
areSubtasksIncluded: z.ZodOptional<z.ZodBoolean>;
|
|
294
302
|
orderBy: z.ZodOptional<z.ZodString>;
|
|
@@ -324,11 +332,11 @@ declare const TaskSchema: z.ZodObject<{
|
|
|
324
332
|
}, z.core.$strict>;
|
|
325
333
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
326
334
|
priorityName: z.ZodOptional<z.ZodString>;
|
|
327
|
-
dueAt: z.ZodOptional<z.ZodNullable<z.
|
|
328
|
-
startAt: z.ZodOptional<z.ZodNullable<z.
|
|
329
|
-
createdAt: z.ZodOptional<z.
|
|
330
|
-
updatedAt: z.ZodOptional<z.
|
|
331
|
-
closedAt: z.ZodOptional<z.ZodNullable<z.
|
|
335
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
336
|
+
startAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
337
|
+
createdAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
338
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
339
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
332
340
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
333
341
|
creator: z.ZodOptional<z.ZodObject<{
|
|
334
342
|
id: z.ZodNumber;
|
|
@@ -367,11 +375,11 @@ declare const SearchTasksOutputSchema: z.ZodObject<{
|
|
|
367
375
|
}, z.core.$strict>;
|
|
368
376
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
369
377
|
priorityName: z.ZodOptional<z.ZodString>;
|
|
370
|
-
dueAt: z.ZodOptional<z.ZodNullable<z.
|
|
371
|
-
startAt: z.ZodOptional<z.ZodNullable<z.
|
|
372
|
-
createdAt: z.ZodOptional<z.
|
|
373
|
-
updatedAt: z.ZodOptional<z.
|
|
374
|
-
closedAt: z.ZodOptional<z.ZodNullable<z.
|
|
378
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
379
|
+
startAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
380
|
+
createdAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
381
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
382
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
375
383
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
376
384
|
creator: z.ZodOptional<z.ZodObject<{
|
|
377
385
|
id: z.ZodNumber;
|
|
@@ -418,7 +426,7 @@ declare const CreateTaskInputSchema: z.ZodObject<{
|
|
|
418
426
|
markdownDescription: z.ZodOptional<z.ZodString>;
|
|
419
427
|
status: z.ZodOptional<z.ZodString>;
|
|
420
428
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
421
|
-
dueAt: z.ZodOptional<z.ZodNullable<z.
|
|
429
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
422
430
|
assigneeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
423
431
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
424
432
|
parentTaskId: z.ZodOptional<z.ZodString>;
|
|
@@ -443,11 +451,11 @@ declare const CreateTaskOutputSchema: z.ZodObject<{
|
|
|
443
451
|
}, z.core.$strict>;
|
|
444
452
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
445
453
|
priorityName: z.ZodOptional<z.ZodString>;
|
|
446
|
-
dueAt: z.ZodOptional<z.ZodNullable<z.
|
|
447
|
-
startAt: z.ZodOptional<z.ZodNullable<z.
|
|
448
|
-
createdAt: z.ZodOptional<z.
|
|
449
|
-
updatedAt: z.ZodOptional<z.
|
|
450
|
-
closedAt: z.ZodOptional<z.ZodNullable<z.
|
|
454
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
455
|
+
startAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
456
|
+
createdAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
457
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
458
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
451
459
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
452
460
|
creator: z.ZodOptional<z.ZodObject<{
|
|
453
461
|
id: z.ZodNumber;
|
|
@@ -482,7 +490,7 @@ declare const UpdateTaskInputSchema: z.ZodObject<{
|
|
|
482
490
|
markdownDescription: z.ZodOptional<z.ZodString>;
|
|
483
491
|
status: z.ZodOptional<z.ZodString>;
|
|
484
492
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
485
|
-
dueAt: z.ZodOptional<z.ZodNullable<z.
|
|
493
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
486
494
|
addAssigneeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
487
495
|
removeAssigneeIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
488
496
|
}, z.core.$strict>;
|
|
@@ -499,11 +507,11 @@ declare const UpdateTaskOutputSchema: z.ZodObject<{
|
|
|
499
507
|
}, z.core.$strict>;
|
|
500
508
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
501
509
|
priorityName: z.ZodOptional<z.ZodString>;
|
|
502
|
-
dueAt: z.ZodOptional<z.ZodNullable<z.
|
|
503
|
-
startAt: z.ZodOptional<z.ZodNullable<z.
|
|
504
|
-
createdAt: z.ZodOptional<z.
|
|
505
|
-
updatedAt: z.ZodOptional<z.
|
|
506
|
-
closedAt: z.ZodOptional<z.ZodNullable<z.
|
|
510
|
+
dueAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
511
|
+
startAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
512
|
+
createdAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
513
|
+
updatedAt: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
514
|
+
closedAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
507
515
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
508
516
|
creator: z.ZodOptional<z.ZodObject<{
|
|
509
517
|
id: z.ZodNumber;
|
|
@@ -552,7 +560,7 @@ declare const AddCommentInputSchema: z.ZodObject<{
|
|
|
552
560
|
declare const AddCommentOutputSchema: z.ZodObject<{
|
|
553
561
|
taskId: z.ZodString;
|
|
554
562
|
commentId: z.ZodOptional<z.ZodString>;
|
|
555
|
-
createdAt: z.ZodOptional<z.ZodNullable<z.
|
|
563
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
|
|
556
564
|
wasAlreadyApplied: z.ZodOptional<z.ZodBoolean>;
|
|
557
565
|
}, z.core.$strict>;
|
|
558
566
|
/** Runtime validator for FindMemberByEmailInput. */
|
|
@@ -600,4 +608,4 @@ declare function newConnection(client: Operations, reference: ConnectionRef): Co
|
|
|
600
608
|
/** Bind scripted operations to a named connection. */
|
|
601
609
|
declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
|
|
602
610
|
|
|
603
|
-
export { type AddCommentInput as A,
|
|
611
|
+
export { type AddCommentInput as A, type TaskStatus as B, Connection as C, TaskStatusSchema as D, UpdateTaskInputSchema as E, type FindMemberByEmailInput as F, type GetTaskInput as G, UpdateTaskOutputSchema as H, UpdateTaskTagsInputSchema as I, UpdateTaskTagsOutputSchema as J, type User as K, UserSchema as L, type Member as M, decodeCredentials as N, type Operations as O, isCredentialMaterialError as P, newConnection as Q, newConnectionWithOperations as R, type SearchTasksInput as S, type Task as T, type UpdateTaskInput as U, type AddCommentOutput as a, type CreateTaskInput as b, type CreateTaskOutput as c, type SearchTasksOutput as d, type UpdateTaskOutput as e, type UpdateTaskTagsInput as f, type UpdateTaskTagsOutput as g, type Config as h, type Credentials as i, AddCommentInputSchema as j, AddCommentOutputSchema as k, ConfigSchema as l, CreateTaskInputSchema as m, CreateTaskOutputSchema as n, CredentialMaterialError as o, type CredentialSource as p, type CustomFieldInput as q, CustomFieldInputSchema as r, type CustomFieldValue as s, CustomFieldValueSchema as t, FindMemberByEmailInputSchema as u, GetTaskInputSchema as v, MemberSchema as w, SearchTasksInputSchema as x, SearchTasksOutputSchema as y, TaskSchema as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AddCommentInput, a as AddCommentOutput, C as Connection, b as CreateTaskInput, c as CreateTaskOutput, F as FindMemberByEmailInput, M as Member, G as GetTaskInput, T as Task, S as SearchTasksInput, d as SearchTasksOutput, U as UpdateTaskInput, e as UpdateTaskOutput, f as UpdateTaskTagsInput, g as UpdateTaskTagsOutput, O as Operations, h as Config, i as Credentials } from './connection-
|
|
2
|
-
export { j as AddCommentInputSchema, k as AddCommentOutputSchema, l as ConfigSchema, m as CreateTaskInputSchema, n as CreateTaskOutputSchema, o as
|
|
1
|
+
import { A as AddCommentInput, a as AddCommentOutput, C as Connection, b as CreateTaskInput, c as CreateTaskOutput, F as FindMemberByEmailInput, M as Member, G as GetTaskInput, T as Task, S as SearchTasksInput, d as SearchTasksOutput, U as UpdateTaskInput, e as UpdateTaskOutput, f as UpdateTaskTagsInput, g as UpdateTaskTagsOutput, O as Operations, h as Config, i as Credentials } from './connection-CyZGpZRT.js';
|
|
2
|
+
export { j as AddCommentInputSchema, k as AddCommentOutputSchema, l as ConfigSchema, m as CreateTaskInputSchema, n as CreateTaskOutputSchema, o as CredentialMaterialError, p as CredentialSource, q as CustomFieldInput, r as CustomFieldInputSchema, s as CustomFieldValue, t as CustomFieldValueSchema, u as FindMemberByEmailInputSchema, v as GetTaskInputSchema, w as MemberSchema, x as SearchTasksInputSchema, y as SearchTasksOutputSchema, z as TaskSchema, B as TaskStatus, D as TaskStatusSchema, E as UpdateTaskInputSchema, H as UpdateTaskOutputSchema, I as UpdateTaskTagsInputSchema, J as UpdateTaskTagsOutputSchema, K as User, L as UserSchema, N as decodeCredentials, P as isCredentialMaterialError, Q as newConnection, R as newConnectionWithOperations } from './connection-CyZGpZRT.js';
|
|
3
3
|
import * as _superdurable_connectors_sdk from '@superdurable/connectors-sdk';
|
|
4
4
|
import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, Call, QueryAttempt, MutationAttempt, CredentialProvider, ReceiptDraft, Failure } from '@superdurable/connectors-sdk';
|
|
5
5
|
import { StepTarget } from '@superdurable/dex';
|
|
@@ -77,7 +77,7 @@ declare const CreateTaskBranchCreated: "created";
|
|
|
77
77
|
declare const CreateTaskBranchNotFound: "notFound";
|
|
78
78
|
/** ClickUp conclusively rejected the task, such as an unknown status, assignee, or custom field value, or missing permission; nothing was created. */
|
|
79
79
|
declare const CreateTaskBranchProviderRejected: "providerRejected";
|
|
80
|
-
/**
|
|
80
|
+
/** Earlier attempts sent the create up to the send cap, ClickUp accepted it without a usable task ID, or read-back after a possible send cannot confirm a single matching task, including a List that is now missing, so the task may exist; the connector does not send it again. */
|
|
81
81
|
declare const CreateTaskBranchUncertain: "uncertain";
|
|
82
82
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
83
83
|
declare const CreateTaskBranchDefect: "defect";
|
|
@@ -103,7 +103,7 @@ declare const UpdateTaskBranchUpdated: "updated";
|
|
|
103
103
|
declare const UpdateTaskBranchNotFound: "notFound";
|
|
104
104
|
/** ClickUp conclusively rejected the change, such as a status that is not in the task's List or missing permission. */
|
|
105
105
|
declare const UpdateTaskBranchProviderRejected: "providerRejected";
|
|
106
|
-
/**
|
|
106
|
+
/** Kept for compatibility and no longer selected: the update is safe to repeat, so an invalid or oversized task after the update retries. */
|
|
107
107
|
declare const UpdateTaskBranchInvalidResponse: "invalidResponse";
|
|
108
108
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
109
109
|
declare const UpdateTaskBranchDefect: "defect";
|
|
@@ -129,7 +129,7 @@ declare const UpdateTaskTagsBranchUpdated: "updated";
|
|
|
129
129
|
declare const UpdateTaskTagsBranchNotFound: "notFound";
|
|
130
130
|
/** ClickUp conclusively rejected a tag change, such as missing permission; earlier changes in the same Step may have been applied. */
|
|
131
131
|
declare const UpdateTaskTagsBranchProviderRejected: "providerRejected";
|
|
132
|
-
/**
|
|
132
|
+
/** Kept for compatibility and no longer selected: the tag changes are safe to repeat, so an invalid or oversized task read back retries. */
|
|
133
133
|
declare const UpdateTaskTagsBranchInvalidResponse: "invalidResponse";
|
|
134
134
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
135
135
|
declare const UpdateTaskTagsBranchDefect: "defect";
|
|
@@ -155,7 +155,7 @@ declare const AddCommentBranchAdded: "added";
|
|
|
155
155
|
declare const AddCommentBranchNotFound: "notFound";
|
|
156
156
|
/** ClickUp conclusively rejected the comment, such as missing permission; nothing was added. */
|
|
157
157
|
declare const AddCommentBranchProviderRejected: "providerRejected";
|
|
158
|
-
/**
|
|
158
|
+
/** Earlier attempts sent the comment up to the send cap, ClickUp accepted it without a usable comment ID, or read-back after a possible send cannot confirm a single matching comment, including a task that is now missing, so the comment may exist; the connector does not send it again. */
|
|
159
159
|
declare const AddCommentBranchUncertain: "uncertain";
|
|
160
160
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
161
161
|
declare const AddCommentBranchDefect: "defect";
|
|
@@ -250,7 +250,7 @@ interface CreateTaskStepConfig<StepInput, OperationInput = CreateTaskInput, Oper
|
|
|
250
250
|
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
251
251
|
/** ClickUp conclusively rejected the task, such as an unknown status, assignee, or custom field value, or missing permission; nothing was created. */
|
|
252
252
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
253
|
-
/**
|
|
253
|
+
/** Earlier attempts sent the create up to the send cap, ClickUp accepted it without a usable task ID, or read-back after a possible send cannot confirm a single matching task, including a List that is now missing, so the task may exist; the connector does not send it again. */
|
|
254
254
|
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
255
255
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
256
256
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
@@ -271,10 +271,12 @@ interface UpdateTaskStepConfig<StepInput, OperationInput = UpdateTaskInput, Oper
|
|
|
271
271
|
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
272
272
|
/** ClickUp conclusively rejected the change, such as a status that is not in the task's List or missing permission. */
|
|
273
273
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
274
|
-
/**
|
|
274
|
+
/** Kept for compatibility and no longer selected: the update is safe to repeat, so an invalid or oversized task after the update retries. */
|
|
275
275
|
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
276
276
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
277
277
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
278
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
279
|
+
maxSends?: number;
|
|
278
280
|
}
|
|
279
281
|
/** Build the updateTask Step from a named connection. */
|
|
280
282
|
declare function newUpdateTaskStep<StepInput, OperationInput = UpdateTaskInput, OperationOutput = UpdateTaskOutput>(configuration: UpdateTaskStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
@@ -292,10 +294,12 @@ interface UpdateTaskTagsStepConfig<StepInput, OperationInput = UpdateTaskTagsInp
|
|
|
292
294
|
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
293
295
|
/** ClickUp conclusively rejected a tag change, such as missing permission; earlier changes in the same Step may have been applied. */
|
|
294
296
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
295
|
-
/**
|
|
297
|
+
/** Kept for compatibility and no longer selected: the tag changes are safe to repeat, so an invalid or oversized task read back retries. */
|
|
296
298
|
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
297
299
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
298
300
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
301
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
302
|
+
maxSends?: number;
|
|
299
303
|
}
|
|
300
304
|
/** Build the updateTaskTags Step from a named connection. */
|
|
301
305
|
declare function newUpdateTaskTagsStep<StepInput, OperationInput = UpdateTaskTagsInput, OperationOutput = UpdateTaskTagsOutput>(configuration: UpdateTaskTagsStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
@@ -313,7 +317,7 @@ interface AddCommentStepConfig<StepInput, OperationInput = AddCommentInput, Oper
|
|
|
313
317
|
notFound?: StepTarget<MutationResult<OperationOutput>>;
|
|
314
318
|
/** ClickUp conclusively rejected the comment, such as missing permission; nothing was added. */
|
|
315
319
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
316
|
-
/**
|
|
320
|
+
/** Earlier attempts sent the comment up to the send cap, ClickUp accepted it without a usable comment ID, or read-back after a possible send cannot confirm a single matching comment, including a task that is now missing, so the comment may exist; the connector does not send it again. */
|
|
317
321
|
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
318
322
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
319
323
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
@@ -373,7 +377,7 @@ declare class FindMemberByEmailOperation implements Query<FindMemberByEmailInput
|
|
|
373
377
|
declare class UpdateTaskOperation implements Mutation<UpdateTaskInput, UpdateTaskOutput> {
|
|
374
378
|
private readonly client;
|
|
375
379
|
/** Bind a client. */ constructor(client: ClickUpClient);
|
|
376
|
-
/** Return the generated definition. */ definition():
|
|
380
|
+
/** Return the generated definition. */ definition(): MutationDefinition;
|
|
377
381
|
/** Correlate this mutation with the Dex Call ID. */ idempotencyKey(callId: string): string;
|
|
378
382
|
/** Validate, update, and decode the task. */
|
|
379
383
|
invoke(call: Call, input: UpdateTaskInput): Promise<MutationAttempt<UpdateTaskOutput>>;
|
|
@@ -382,29 +386,31 @@ declare class UpdateTaskOperation implements Mutation<UpdateTaskInput, UpdateTas
|
|
|
382
386
|
declare class UpdateTaskTagsOperation implements Mutation<UpdateTaskTagsInput, UpdateTaskTagsOutput> {
|
|
383
387
|
private readonly client;
|
|
384
388
|
/** Bind a client. */ constructor(client: ClickUpClient);
|
|
385
|
-
/** Return the generated definition. */ definition():
|
|
389
|
+
/** Return the generated definition. */ definition(): MutationDefinition;
|
|
386
390
|
/** Correlate this mutation with the Dex Call ID. */ idempotencyKey(callId: string): string;
|
|
387
391
|
/** Apply repeat safe tag membership changes. */
|
|
388
392
|
invoke(call: Call, input: UpdateTaskTagsInput): Promise<MutationAttempt<UpdateTaskTagsOutput>>;
|
|
389
393
|
}
|
|
390
|
-
/** Create one task
|
|
394
|
+
/** Create one task behind the single-dispatch fence, reading back an unknown earlier send and resending only within the send cap. */
|
|
391
395
|
declare class CreateTaskOperation implements Mutation<CreateTaskInput, CreateTaskOutput> {
|
|
392
396
|
private readonly client;
|
|
393
397
|
/** Bind a client. */ constructor(client: ClickUpClient);
|
|
394
|
-
/** Return the generated definition. */ definition():
|
|
398
|
+
/** Return the generated definition. */ definition(): MutationDefinition;
|
|
395
399
|
/** Correlate the checkpoint with the Dex Call ID. */ idempotencyKey(callId: string): string;
|
|
396
|
-
/** Create or
|
|
400
|
+
/** Create, read back, or resend one task. */
|
|
397
401
|
invoke(call: Call, input: CreateTaskInput): Promise<MutationAttempt<CreateTaskOutput>>;
|
|
402
|
+
/** Never send; return undefined when read-back confirmed nothing and the fence permits a resend. */
|
|
398
403
|
private reconcile;
|
|
399
404
|
}
|
|
400
|
-
/** Add one comment
|
|
405
|
+
/** Add one comment behind the single-dispatch fence, reading back an unknown earlier send and resending only within the send cap. */
|
|
401
406
|
declare class AddCommentOperation implements Mutation<AddCommentInput, AddCommentOutput> {
|
|
402
407
|
private readonly client;
|
|
403
408
|
/** Bind a client. */ constructor(client: ClickUpClient);
|
|
404
|
-
/** Return the generated definition. */ definition():
|
|
409
|
+
/** Return the generated definition. */ definition(): MutationDefinition;
|
|
405
410
|
/** Correlate the checkpoint with the Dex Call ID. */ idempotencyKey(callId: string): string;
|
|
406
|
-
/** Add or
|
|
411
|
+
/** Add, read back, or resend one comment. */
|
|
407
412
|
invoke(call: Call, input: AddCommentInput): Promise<MutationAttempt<AddCommentOutput>>;
|
|
413
|
+
/** Never send; return undefined when read-back confirmed nothing and the fence permits a resend. */
|
|
408
414
|
private reconcile;
|
|
409
415
|
}
|
|
410
416
|
|
|
@@ -419,7 +425,10 @@ interface ClickUpClientOptions {
|
|
|
419
425
|
/** Override only with a ClickUp compatible test endpoint. */
|
|
420
426
|
apiBaseURL?: string;
|
|
421
427
|
}
|
|
422
|
-
/**
|
|
428
|
+
/**
|
|
429
|
+
* Outcome of one ClickUp HTTP exchange; `status` is the HTTP status of a response without a usable body, or 0.
|
|
430
|
+
* `isErrorBodyTooLarge` marks a non-2xx body over maxResponseBytes, which cannot prove a write refusal.
|
|
431
|
+
*/
|
|
423
432
|
type Exchange = {
|
|
424
433
|
kind: 'succeeded';
|
|
425
434
|
response: ProviderResponse;
|
|
@@ -427,6 +436,8 @@ type Exchange = {
|
|
|
427
436
|
kind: 'notFound' | 'notSent' | 'rateLimited' | 'unconfirmed' | 'rejected' | 'invalid' | 'defect';
|
|
428
437
|
failure: Failure;
|
|
429
438
|
retryAfterMs: number;
|
|
439
|
+
status: number;
|
|
440
|
+
isErrorBodyTooLarge?: boolean;
|
|
430
441
|
};
|
|
431
442
|
/** Authenticated ClickUp API client; credentials are resolved for each request. */
|
|
432
443
|
declare class ClickUpClient {
|
|
@@ -450,6 +461,7 @@ declare class ClickUpClient {
|
|
|
450
461
|
currentTime(): Date;
|
|
451
462
|
/** Send a bounded API request and classify its response; signal can bound a multi-request operation. */
|
|
452
463
|
exchange(call: Call, operation: string, method: string, path: string, query?: URLSearchParams, payload?: unknown, signal?: AbortSignal): Promise<Exchange>;
|
|
464
|
+
private classifyFailureStatus;
|
|
453
465
|
private rateLimitDelay;
|
|
454
466
|
private outcome;
|
|
455
467
|
}
|