@unified-api/typescript-sdk 2.9.15 → 2.9.17
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 +12 -0
- package/docs/sdks/comment/README.md +501 -0
- package/docs/sdks/task/README.md +494 -0
- package/funcs/commentCreateTaskComment.d.ts +13 -0
- package/funcs/commentCreateTaskComment.d.ts.map +1 -0
- package/funcs/commentCreateTaskComment.js +103 -0
- package/funcs/commentCreateTaskComment.js.map +1 -0
- package/funcs/commentGetTaskComment.d.ts +13 -0
- package/funcs/commentGetTaskComment.d.ts.map +1 -0
- package/funcs/commentGetTaskComment.js +106 -0
- package/funcs/commentGetTaskComment.js.map +1 -0
- package/funcs/commentListTaskComments.d.ts +13 -0
- package/funcs/commentListTaskComments.d.ts.map +1 -0
- package/funcs/commentListTaskComments.js +110 -0
- package/funcs/commentListTaskComments.js.map +1 -0
- package/funcs/commentPatchTaskComment.d.ts +13 -0
- package/funcs/commentPatchTaskComment.d.ts.map +1 -0
- package/funcs/commentPatchTaskComment.js +107 -0
- package/funcs/commentPatchTaskComment.js.map +1 -0
- package/funcs/commentRemoveTaskComment.d.ts +12 -0
- package/funcs/commentRemoveTaskComment.d.ts.map +1 -0
- package/funcs/commentRemoveTaskComment.js +104 -0
- package/funcs/commentRemoveTaskComment.js.map +1 -0
- package/funcs/commentUpdateTaskComment.d.ts +13 -0
- package/funcs/commentUpdateTaskComment.d.ts.map +1 -0
- package/funcs/commentUpdateTaskComment.js +107 -0
- package/funcs/commentUpdateTaskComment.js.map +1 -0
- package/funcs/taskCreateTaskComment.d.ts +13 -0
- package/funcs/taskCreateTaskComment.d.ts.map +1 -0
- package/funcs/taskCreateTaskComment.js +103 -0
- package/funcs/taskCreateTaskComment.js.map +1 -0
- package/funcs/taskGetTaskComment.d.ts +13 -0
- package/funcs/taskGetTaskComment.d.ts.map +1 -0
- package/funcs/taskGetTaskComment.js +106 -0
- package/funcs/taskGetTaskComment.js.map +1 -0
- package/funcs/taskListTaskComments.d.ts +13 -0
- package/funcs/taskListTaskComments.d.ts.map +1 -0
- package/funcs/taskListTaskComments.js +110 -0
- package/funcs/taskListTaskComments.js.map +1 -0
- package/funcs/taskPatchTaskComment.d.ts +13 -0
- package/funcs/taskPatchTaskComment.d.ts.map +1 -0
- package/funcs/taskPatchTaskComment.js +107 -0
- package/funcs/taskPatchTaskComment.js.map +1 -0
- package/funcs/taskRemoveTaskComment.d.ts +12 -0
- package/funcs/taskRemoveTaskComment.d.ts.map +1 -0
- package/funcs/taskRemoveTaskComment.js +104 -0
- package/funcs/taskRemoveTaskComment.js.map +1 -0
- package/funcs/taskUpdateTaskComment.d.ts +13 -0
- package/funcs/taskUpdateTaskComment.d.ts.map +1 -0
- package/funcs/taskUpdateTaskComment.js +107 -0
- package/funcs/taskUpdateTaskComment.js.map +1 -0
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/package.json +1 -1
- package/sdk/comment.d.ts +30 -0
- package/sdk/comment.d.ts.map +1 -0
- package/sdk/comment.js +54 -0
- package/sdk/comment.js.map +1 -0
- package/sdk/models/operations/createtaskcomment.d.ts +40 -0
- package/sdk/models/operations/createtaskcomment.d.ts.map +1 -0
- package/sdk/models/operations/createtaskcomment.js +75 -0
- package/sdk/models/operations/createtaskcomment.js.map +1 -0
- package/sdk/models/operations/gettaskcomment.d.ts +42 -0
- package/sdk/models/operations/gettaskcomment.d.ts.map +1 -0
- package/sdk/models/operations/gettaskcomment.js +72 -0
- package/sdk/models/operations/gettaskcomment.js.map +1 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts.map +1 -1
- package/sdk/models/operations/getunifiedintegrationauth.js +2 -0
- package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listtaskcomments.d.ts +57 -0
- package/sdk/models/operations/listtaskcomments.d.ts.map +1 -0
- package/sdk/models/operations/listtaskcomments.js +89 -0
- package/sdk/models/operations/listtaskcomments.js.map +1 -0
- package/sdk/models/operations/patchtaskcomment.d.ts +45 -0
- package/sdk/models/operations/patchtaskcomment.d.ts.map +1 -0
- package/sdk/models/operations/patchtaskcomment.js +77 -0
- package/sdk/models/operations/patchtaskcomment.js.map +1 -0
- package/sdk/models/operations/removetaskcomment.d.ts +66 -0
- package/sdk/models/operations/removetaskcomment.d.ts.map +1 -0
- package/sdk/models/operations/removetaskcomment.js +105 -0
- package/sdk/models/operations/removetaskcomment.js.map +1 -0
- package/sdk/models/operations/updatetaskcomment.d.ts +45 -0
- package/sdk/models/operations/updatetaskcomment.d.ts.map +1 -0
- package/sdk/models/operations/updatetaskcomment.js +77 -0
- package/sdk/models/operations/updatetaskcomment.js.map +1 -0
- package/sdk/models/shared/index.d.ts +1 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +1 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/kmspage.d.ts +2 -2
- package/sdk/models/shared/kmspage.d.ts.map +1 -1
- package/sdk/models/shared/kmspage.js +2 -2
- package/sdk/models/shared/kmspage.js.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/taskcomment.d.ts +47 -0
- package/sdk/models/shared/taskcomment.d.ts.map +1 -0
- package/sdk/models/shared/taskcomment.js +92 -0
- package/sdk/models/shared/taskcomment.js.map +1 -0
- package/sdk/models/shared/tasktask.d.ts +5 -0
- package/sdk/models/shared/tasktask.d.ts.map +1 -1
- package/sdk/models/shared/tasktask.js +4 -0
- package/sdk/models/shared/tasktask.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/task.d.ts +24 -0
- package/sdk/task.d.ts.map +1 -1
- package/sdk/task.js +42 -0
- package/sdk/task.js.map +1 -1
- package/src/funcs/commentCreateTaskComment.ts +133 -0
- package/src/funcs/commentGetTaskComment.ts +136 -0
- package/src/funcs/commentListTaskComments.ts +140 -0
- package/src/funcs/commentPatchTaskComment.ts +137 -0
- package/src/funcs/commentRemoveTaskComment.ts +139 -0
- package/src/funcs/commentUpdateTaskComment.ts +137 -0
- package/src/funcs/taskCreateTaskComment.ts +133 -0
- package/src/funcs/taskGetTaskComment.ts +136 -0
- package/src/funcs/taskListTaskComments.ts +140 -0
- package/src/funcs/taskPatchTaskComment.ts +137 -0
- package/src/funcs/taskRemoveTaskComment.ts +139 -0
- package/src/funcs/taskUpdateTaskComment.ts +137 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/comment.ts +100 -0
- package/src/sdk/models/operations/createtaskcomment.ts +92 -0
- package/src/sdk/models/operations/gettaskcomment.ts +92 -0
- package/src/sdk/models/operations/getunifiedintegrationauth.ts +2 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listtaskcomments.ts +124 -0
- package/src/sdk/models/operations/patchtaskcomment.ts +99 -0
- package/src/sdk/models/operations/removetaskcomment.ts +151 -0
- package/src/sdk/models/operations/updatetaskcomment.ts +99 -0
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/kmspage.ts +4 -4
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/taskcomment.ts +109 -0
- package/src/sdk/models/shared/tasktask.ts +9 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/task.ts +90 -0
package/docs/sdks/task/README.md
CHANGED
|
@@ -5,19 +5,105 @@
|
|
|
5
5
|
|
|
6
6
|
### Available Operations
|
|
7
7
|
|
|
8
|
+
* [createTaskComment](#createtaskcomment) - Create a comment
|
|
8
9
|
* [createTaskProject](#createtaskproject) - Create a project
|
|
9
10
|
* [createTaskTask](#createtasktask) - Create a task
|
|
11
|
+
* [getTaskComment](#gettaskcomment) - Retrieve a comment
|
|
10
12
|
* [getTaskProject](#gettaskproject) - Retrieve a project
|
|
11
13
|
* [getTaskTask](#gettasktask) - Retrieve a task
|
|
14
|
+
* [listTaskComments](#listtaskcomments) - List all comments
|
|
12
15
|
* [listTaskProjects](#listtaskprojects) - List all projects
|
|
13
16
|
* [listTaskTasks](#listtasktasks) - List all tasks
|
|
17
|
+
* [patchTaskComment](#patchtaskcomment) - Update a comment
|
|
14
18
|
* [patchTaskProject](#patchtaskproject) - Update a project
|
|
15
19
|
* [patchTaskTask](#patchtasktask) - Update a task
|
|
20
|
+
* [removeTaskComment](#removetaskcomment) - Remove a comment
|
|
16
21
|
* [removeTaskProject](#removetaskproject) - Remove a project
|
|
17
22
|
* [removeTaskTask](#removetasktask) - Remove a task
|
|
23
|
+
* [updateTaskComment](#updatetaskcomment) - Update a comment
|
|
18
24
|
* [updateTaskProject](#updatetaskproject) - Update a project
|
|
19
25
|
* [updateTaskTask](#updatetasktask) - Update a task
|
|
20
26
|
|
|
27
|
+
## createTaskComment
|
|
28
|
+
|
|
29
|
+
Create a comment
|
|
30
|
+
|
|
31
|
+
### Example Usage
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
35
|
+
|
|
36
|
+
const unifiedTo = new UnifiedTo({
|
|
37
|
+
security: {
|
|
38
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
async function run() {
|
|
43
|
+
const result = await unifiedTo.task.createTaskComment({
|
|
44
|
+
connectionId: "<id>",
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// Handle the result
|
|
48
|
+
console.log(result);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
run();
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Standalone function
|
|
55
|
+
|
|
56
|
+
The standalone function version of this method:
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
60
|
+
import { taskCreateTaskComment } from "@unified-api/typescript-sdk/funcs/taskCreateTaskComment.js";
|
|
61
|
+
|
|
62
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
63
|
+
// You can create one instance of it to use across an application.
|
|
64
|
+
const unifiedTo = new UnifiedToCore({
|
|
65
|
+
security: {
|
|
66
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
async function run() {
|
|
71
|
+
const res = await taskCreateTaskComment(unifiedTo, {
|
|
72
|
+
connectionId: "<id>",
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
if (!res.ok) {
|
|
76
|
+
throw res.error;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const { value: result } = res;
|
|
80
|
+
|
|
81
|
+
// Handle the result
|
|
82
|
+
console.log(result);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
run();
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
| Parameter | Type | Required | Description |
|
|
91
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
92
|
+
| `request` | [operations.CreateTaskCommentRequest](../../sdk/models/operations/createtaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
93
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
94
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
95
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
96
|
+
|
|
97
|
+
### Response
|
|
98
|
+
|
|
99
|
+
**Promise\<[shared.TaskComment](../../sdk/models/shared/taskcomment.md)\>**
|
|
100
|
+
|
|
101
|
+
### Errors
|
|
102
|
+
|
|
103
|
+
| Error Type | Status Code | Content Type |
|
|
104
|
+
| --------------- | --------------- | --------------- |
|
|
105
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
106
|
+
|
|
21
107
|
## createTaskProject
|
|
22
108
|
|
|
23
109
|
Create a project
|
|
@@ -178,6 +264,88 @@ run();
|
|
|
178
264
|
| --------------- | --------------- | --------------- |
|
|
179
265
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
180
266
|
|
|
267
|
+
## getTaskComment
|
|
268
|
+
|
|
269
|
+
Retrieve a comment
|
|
270
|
+
|
|
271
|
+
### Example Usage
|
|
272
|
+
|
|
273
|
+
```typescript
|
|
274
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
275
|
+
|
|
276
|
+
const unifiedTo = new UnifiedTo({
|
|
277
|
+
security: {
|
|
278
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
279
|
+
},
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
async function run() {
|
|
283
|
+
const result = await unifiedTo.task.getTaskComment({
|
|
284
|
+
connectionId: "<id>",
|
|
285
|
+
id: "<id>",
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
// Handle the result
|
|
289
|
+
console.log(result);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
run();
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
### Standalone function
|
|
296
|
+
|
|
297
|
+
The standalone function version of this method:
|
|
298
|
+
|
|
299
|
+
```typescript
|
|
300
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
301
|
+
import { taskGetTaskComment } from "@unified-api/typescript-sdk/funcs/taskGetTaskComment.js";
|
|
302
|
+
|
|
303
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
304
|
+
// You can create one instance of it to use across an application.
|
|
305
|
+
const unifiedTo = new UnifiedToCore({
|
|
306
|
+
security: {
|
|
307
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
308
|
+
},
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
async function run() {
|
|
312
|
+
const res = await taskGetTaskComment(unifiedTo, {
|
|
313
|
+
connectionId: "<id>",
|
|
314
|
+
id: "<id>",
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
if (!res.ok) {
|
|
318
|
+
throw res.error;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
const { value: result } = res;
|
|
322
|
+
|
|
323
|
+
// Handle the result
|
|
324
|
+
console.log(result);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
run();
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
### Parameters
|
|
331
|
+
|
|
332
|
+
| Parameter | Type | Required | Description |
|
|
333
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
334
|
+
| `request` | [operations.GetTaskCommentRequest](../../sdk/models/operations/gettaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
335
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
336
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
337
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
338
|
+
|
|
339
|
+
### Response
|
|
340
|
+
|
|
341
|
+
**Promise\<[shared.TaskComment](../../sdk/models/shared/taskcomment.md)\>**
|
|
342
|
+
|
|
343
|
+
### Errors
|
|
344
|
+
|
|
345
|
+
| Error Type | Status Code | Content Type |
|
|
346
|
+
| --------------- | --------------- | --------------- |
|
|
347
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
348
|
+
|
|
181
349
|
## getTaskProject
|
|
182
350
|
|
|
183
351
|
Retrieve a project
|
|
@@ -342,6 +510,86 @@ run();
|
|
|
342
510
|
| --------------- | --------------- | --------------- |
|
|
343
511
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
344
512
|
|
|
513
|
+
## listTaskComments
|
|
514
|
+
|
|
515
|
+
List all comments
|
|
516
|
+
|
|
517
|
+
### Example Usage
|
|
518
|
+
|
|
519
|
+
```typescript
|
|
520
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
521
|
+
|
|
522
|
+
const unifiedTo = new UnifiedTo({
|
|
523
|
+
security: {
|
|
524
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
525
|
+
},
|
|
526
|
+
});
|
|
527
|
+
|
|
528
|
+
async function run() {
|
|
529
|
+
const result = await unifiedTo.task.listTaskComments({
|
|
530
|
+
connectionId: "<id>",
|
|
531
|
+
});
|
|
532
|
+
|
|
533
|
+
// Handle the result
|
|
534
|
+
console.log(result);
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
run();
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
### Standalone function
|
|
541
|
+
|
|
542
|
+
The standalone function version of this method:
|
|
543
|
+
|
|
544
|
+
```typescript
|
|
545
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
546
|
+
import { taskListTaskComments } from "@unified-api/typescript-sdk/funcs/taskListTaskComments.js";
|
|
547
|
+
|
|
548
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
549
|
+
// You can create one instance of it to use across an application.
|
|
550
|
+
const unifiedTo = new UnifiedToCore({
|
|
551
|
+
security: {
|
|
552
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
553
|
+
},
|
|
554
|
+
});
|
|
555
|
+
|
|
556
|
+
async function run() {
|
|
557
|
+
const res = await taskListTaskComments(unifiedTo, {
|
|
558
|
+
connectionId: "<id>",
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
if (!res.ok) {
|
|
562
|
+
throw res.error;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
const { value: result } = res;
|
|
566
|
+
|
|
567
|
+
// Handle the result
|
|
568
|
+
console.log(result);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
run();
|
|
572
|
+
```
|
|
573
|
+
|
|
574
|
+
### Parameters
|
|
575
|
+
|
|
576
|
+
| Parameter | Type | Required | Description |
|
|
577
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
578
|
+
| `request` | [operations.ListTaskCommentsRequest](../../sdk/models/operations/listtaskcommentsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
579
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
580
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
581
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
582
|
+
|
|
583
|
+
### Response
|
|
584
|
+
|
|
585
|
+
**Promise\<[shared.TaskComment[]](../../models/.md)\>**
|
|
586
|
+
|
|
587
|
+
### Errors
|
|
588
|
+
|
|
589
|
+
| Error Type | Status Code | Content Type |
|
|
590
|
+
| --------------- | --------------- | --------------- |
|
|
591
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
592
|
+
|
|
345
593
|
## listTaskProjects
|
|
346
594
|
|
|
347
595
|
List all projects
|
|
@@ -502,6 +750,88 @@ run();
|
|
|
502
750
|
| --------------- | --------------- | --------------- |
|
|
503
751
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
504
752
|
|
|
753
|
+
## patchTaskComment
|
|
754
|
+
|
|
755
|
+
Update a comment
|
|
756
|
+
|
|
757
|
+
### Example Usage
|
|
758
|
+
|
|
759
|
+
```typescript
|
|
760
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
761
|
+
|
|
762
|
+
const unifiedTo = new UnifiedTo({
|
|
763
|
+
security: {
|
|
764
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
765
|
+
},
|
|
766
|
+
});
|
|
767
|
+
|
|
768
|
+
async function run() {
|
|
769
|
+
const result = await unifiedTo.task.patchTaskComment({
|
|
770
|
+
connectionId: "<id>",
|
|
771
|
+
id: "<id>",
|
|
772
|
+
});
|
|
773
|
+
|
|
774
|
+
// Handle the result
|
|
775
|
+
console.log(result);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
run();
|
|
779
|
+
```
|
|
780
|
+
|
|
781
|
+
### Standalone function
|
|
782
|
+
|
|
783
|
+
The standalone function version of this method:
|
|
784
|
+
|
|
785
|
+
```typescript
|
|
786
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
787
|
+
import { taskPatchTaskComment } from "@unified-api/typescript-sdk/funcs/taskPatchTaskComment.js";
|
|
788
|
+
|
|
789
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
790
|
+
// You can create one instance of it to use across an application.
|
|
791
|
+
const unifiedTo = new UnifiedToCore({
|
|
792
|
+
security: {
|
|
793
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
794
|
+
},
|
|
795
|
+
});
|
|
796
|
+
|
|
797
|
+
async function run() {
|
|
798
|
+
const res = await taskPatchTaskComment(unifiedTo, {
|
|
799
|
+
connectionId: "<id>",
|
|
800
|
+
id: "<id>",
|
|
801
|
+
});
|
|
802
|
+
|
|
803
|
+
if (!res.ok) {
|
|
804
|
+
throw res.error;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
const { value: result } = res;
|
|
808
|
+
|
|
809
|
+
// Handle the result
|
|
810
|
+
console.log(result);
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
run();
|
|
814
|
+
```
|
|
815
|
+
|
|
816
|
+
### Parameters
|
|
817
|
+
|
|
818
|
+
| Parameter | Type | Required | Description |
|
|
819
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
820
|
+
| `request` | [operations.PatchTaskCommentRequest](../../sdk/models/operations/patchtaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
821
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
822
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
823
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
824
|
+
|
|
825
|
+
### Response
|
|
826
|
+
|
|
827
|
+
**Promise\<[shared.TaskComment](../../sdk/models/shared/taskcomment.md)\>**
|
|
828
|
+
|
|
829
|
+
### Errors
|
|
830
|
+
|
|
831
|
+
| Error Type | Status Code | Content Type |
|
|
832
|
+
| --------------- | --------------- | --------------- |
|
|
833
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
834
|
+
|
|
505
835
|
## patchTaskProject
|
|
506
836
|
|
|
507
837
|
Update a project
|
|
@@ -666,6 +996,88 @@ run();
|
|
|
666
996
|
| --------------- | --------------- | --------------- |
|
|
667
997
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
668
998
|
|
|
999
|
+
## removeTaskComment
|
|
1000
|
+
|
|
1001
|
+
Remove a comment
|
|
1002
|
+
|
|
1003
|
+
### Example Usage
|
|
1004
|
+
|
|
1005
|
+
```typescript
|
|
1006
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1007
|
+
|
|
1008
|
+
const unifiedTo = new UnifiedTo({
|
|
1009
|
+
security: {
|
|
1010
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1011
|
+
},
|
|
1012
|
+
});
|
|
1013
|
+
|
|
1014
|
+
async function run() {
|
|
1015
|
+
const result = await unifiedTo.task.removeTaskComment({
|
|
1016
|
+
connectionId: "<id>",
|
|
1017
|
+
id: "<id>",
|
|
1018
|
+
});
|
|
1019
|
+
|
|
1020
|
+
// Handle the result
|
|
1021
|
+
console.log(result);
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
run();
|
|
1025
|
+
```
|
|
1026
|
+
|
|
1027
|
+
### Standalone function
|
|
1028
|
+
|
|
1029
|
+
The standalone function version of this method:
|
|
1030
|
+
|
|
1031
|
+
```typescript
|
|
1032
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1033
|
+
import { taskRemoveTaskComment } from "@unified-api/typescript-sdk/funcs/taskRemoveTaskComment.js";
|
|
1034
|
+
|
|
1035
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1036
|
+
// You can create one instance of it to use across an application.
|
|
1037
|
+
const unifiedTo = new UnifiedToCore({
|
|
1038
|
+
security: {
|
|
1039
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1040
|
+
},
|
|
1041
|
+
});
|
|
1042
|
+
|
|
1043
|
+
async function run() {
|
|
1044
|
+
const res = await taskRemoveTaskComment(unifiedTo, {
|
|
1045
|
+
connectionId: "<id>",
|
|
1046
|
+
id: "<id>",
|
|
1047
|
+
});
|
|
1048
|
+
|
|
1049
|
+
if (!res.ok) {
|
|
1050
|
+
throw res.error;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
const { value: result } = res;
|
|
1054
|
+
|
|
1055
|
+
// Handle the result
|
|
1056
|
+
console.log(result);
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
run();
|
|
1060
|
+
```
|
|
1061
|
+
|
|
1062
|
+
### Parameters
|
|
1063
|
+
|
|
1064
|
+
| Parameter | Type | Required | Description |
|
|
1065
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1066
|
+
| `request` | [operations.RemoveTaskCommentRequest](../../sdk/models/operations/removetaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1067
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1068
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1069
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1070
|
+
|
|
1071
|
+
### Response
|
|
1072
|
+
|
|
1073
|
+
**Promise\<[operations.RemoveTaskCommentResponse](../../sdk/models/operations/removetaskcommentresponse.md)\>**
|
|
1074
|
+
|
|
1075
|
+
### Errors
|
|
1076
|
+
|
|
1077
|
+
| Error Type | Status Code | Content Type |
|
|
1078
|
+
| --------------- | --------------- | --------------- |
|
|
1079
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1080
|
+
|
|
669
1081
|
## removeTaskProject
|
|
670
1082
|
|
|
671
1083
|
Remove a project
|
|
@@ -830,6 +1242,88 @@ run();
|
|
|
830
1242
|
| --------------- | --------------- | --------------- |
|
|
831
1243
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
832
1244
|
|
|
1245
|
+
## updateTaskComment
|
|
1246
|
+
|
|
1247
|
+
Update a comment
|
|
1248
|
+
|
|
1249
|
+
### Example Usage
|
|
1250
|
+
|
|
1251
|
+
```typescript
|
|
1252
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1253
|
+
|
|
1254
|
+
const unifiedTo = new UnifiedTo({
|
|
1255
|
+
security: {
|
|
1256
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1257
|
+
},
|
|
1258
|
+
});
|
|
1259
|
+
|
|
1260
|
+
async function run() {
|
|
1261
|
+
const result = await unifiedTo.task.updateTaskComment({
|
|
1262
|
+
connectionId: "<id>",
|
|
1263
|
+
id: "<id>",
|
|
1264
|
+
});
|
|
1265
|
+
|
|
1266
|
+
// Handle the result
|
|
1267
|
+
console.log(result);
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
run();
|
|
1271
|
+
```
|
|
1272
|
+
|
|
1273
|
+
### Standalone function
|
|
1274
|
+
|
|
1275
|
+
The standalone function version of this method:
|
|
1276
|
+
|
|
1277
|
+
```typescript
|
|
1278
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1279
|
+
import { taskUpdateTaskComment } from "@unified-api/typescript-sdk/funcs/taskUpdateTaskComment.js";
|
|
1280
|
+
|
|
1281
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1282
|
+
// You can create one instance of it to use across an application.
|
|
1283
|
+
const unifiedTo = new UnifiedToCore({
|
|
1284
|
+
security: {
|
|
1285
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1286
|
+
},
|
|
1287
|
+
});
|
|
1288
|
+
|
|
1289
|
+
async function run() {
|
|
1290
|
+
const res = await taskUpdateTaskComment(unifiedTo, {
|
|
1291
|
+
connectionId: "<id>",
|
|
1292
|
+
id: "<id>",
|
|
1293
|
+
});
|
|
1294
|
+
|
|
1295
|
+
if (!res.ok) {
|
|
1296
|
+
throw res.error;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
const { value: result } = res;
|
|
1300
|
+
|
|
1301
|
+
// Handle the result
|
|
1302
|
+
console.log(result);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
run();
|
|
1306
|
+
```
|
|
1307
|
+
|
|
1308
|
+
### Parameters
|
|
1309
|
+
|
|
1310
|
+
| Parameter | Type | Required | Description |
|
|
1311
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1312
|
+
| `request` | [operations.UpdateTaskCommentRequest](../../sdk/models/operations/updatetaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1313
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1314
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1315
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1316
|
+
|
|
1317
|
+
### Response
|
|
1318
|
+
|
|
1319
|
+
**Promise\<[shared.TaskComment](../../sdk/models/shared/taskcomment.md)\>**
|
|
1320
|
+
|
|
1321
|
+
### Errors
|
|
1322
|
+
|
|
1323
|
+
| Error Type | Status Code | Content Type |
|
|
1324
|
+
| --------------- | --------------- | --------------- |
|
|
1325
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1326
|
+
|
|
833
1327
|
## updateTaskProject
|
|
834
1328
|
|
|
835
1329
|
Update a project
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UnifiedToCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../sdk/models/errors/httpclienterrors.js";
|
|
4
|
+
import { SDKError } from "../sdk/models/errors/sdkerror.js";
|
|
5
|
+
import { SDKValidationError } from "../sdk/models/errors/sdkvalidationerror.js";
|
|
6
|
+
import * as operations from "../sdk/models/operations/index.js";
|
|
7
|
+
import * as shared from "../sdk/models/shared/index.js";
|
|
8
|
+
import { Result } from "../sdk/types/fp.js";
|
|
9
|
+
/**
|
|
10
|
+
* Create a comment
|
|
11
|
+
*/
|
|
12
|
+
export declare function commentCreateTaskComment(client: UnifiedToCore, request: operations.CreateTaskCommentRequest, options?: RequestOptions): Promise<Result<shared.TaskComment, SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
|
|
13
|
+
//# sourceMappingURL=commentCreateTaskComment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commentCreateTaskComment.d.ts","sourceRoot":"","sources":["../src/funcs/commentCreateTaskComment.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,KAAK,UAAU,MAAM,mCAAmC,CAAC;AAChE,OAAO,KAAK,MAAM,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C;;GAEG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,MAAM,CAAC,WAAW,EAChB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA0FA"}
|