@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.
Files changed (152) hide show
  1. package/README.md +12 -0
  2. package/docs/sdks/comment/README.md +501 -0
  3. package/docs/sdks/task/README.md +494 -0
  4. package/funcs/commentCreateTaskComment.d.ts +13 -0
  5. package/funcs/commentCreateTaskComment.d.ts.map +1 -0
  6. package/funcs/commentCreateTaskComment.js +103 -0
  7. package/funcs/commentCreateTaskComment.js.map +1 -0
  8. package/funcs/commentGetTaskComment.d.ts +13 -0
  9. package/funcs/commentGetTaskComment.d.ts.map +1 -0
  10. package/funcs/commentGetTaskComment.js +106 -0
  11. package/funcs/commentGetTaskComment.js.map +1 -0
  12. package/funcs/commentListTaskComments.d.ts +13 -0
  13. package/funcs/commentListTaskComments.d.ts.map +1 -0
  14. package/funcs/commentListTaskComments.js +110 -0
  15. package/funcs/commentListTaskComments.js.map +1 -0
  16. package/funcs/commentPatchTaskComment.d.ts +13 -0
  17. package/funcs/commentPatchTaskComment.d.ts.map +1 -0
  18. package/funcs/commentPatchTaskComment.js +107 -0
  19. package/funcs/commentPatchTaskComment.js.map +1 -0
  20. package/funcs/commentRemoveTaskComment.d.ts +12 -0
  21. package/funcs/commentRemoveTaskComment.d.ts.map +1 -0
  22. package/funcs/commentRemoveTaskComment.js +104 -0
  23. package/funcs/commentRemoveTaskComment.js.map +1 -0
  24. package/funcs/commentUpdateTaskComment.d.ts +13 -0
  25. package/funcs/commentUpdateTaskComment.d.ts.map +1 -0
  26. package/funcs/commentUpdateTaskComment.js +107 -0
  27. package/funcs/commentUpdateTaskComment.js.map +1 -0
  28. package/funcs/taskCreateTaskComment.d.ts +13 -0
  29. package/funcs/taskCreateTaskComment.d.ts.map +1 -0
  30. package/funcs/taskCreateTaskComment.js +103 -0
  31. package/funcs/taskCreateTaskComment.js.map +1 -0
  32. package/funcs/taskGetTaskComment.d.ts +13 -0
  33. package/funcs/taskGetTaskComment.d.ts.map +1 -0
  34. package/funcs/taskGetTaskComment.js +106 -0
  35. package/funcs/taskGetTaskComment.js.map +1 -0
  36. package/funcs/taskListTaskComments.d.ts +13 -0
  37. package/funcs/taskListTaskComments.d.ts.map +1 -0
  38. package/funcs/taskListTaskComments.js +110 -0
  39. package/funcs/taskListTaskComments.js.map +1 -0
  40. package/funcs/taskPatchTaskComment.d.ts +13 -0
  41. package/funcs/taskPatchTaskComment.d.ts.map +1 -0
  42. package/funcs/taskPatchTaskComment.js +107 -0
  43. package/funcs/taskPatchTaskComment.js.map +1 -0
  44. package/funcs/taskRemoveTaskComment.d.ts +12 -0
  45. package/funcs/taskRemoveTaskComment.d.ts.map +1 -0
  46. package/funcs/taskRemoveTaskComment.js +104 -0
  47. package/funcs/taskRemoveTaskComment.js.map +1 -0
  48. package/funcs/taskUpdateTaskComment.d.ts +13 -0
  49. package/funcs/taskUpdateTaskComment.d.ts.map +1 -0
  50. package/funcs/taskUpdateTaskComment.js +107 -0
  51. package/funcs/taskUpdateTaskComment.js.map +1 -0
  52. package/lib/config.d.ts +3 -3
  53. package/lib/config.js +3 -3
  54. package/package.json +1 -1
  55. package/sdk/comment.d.ts +30 -0
  56. package/sdk/comment.d.ts.map +1 -0
  57. package/sdk/comment.js +54 -0
  58. package/sdk/comment.js.map +1 -0
  59. package/sdk/models/operations/createtaskcomment.d.ts +40 -0
  60. package/sdk/models/operations/createtaskcomment.d.ts.map +1 -0
  61. package/sdk/models/operations/createtaskcomment.js +75 -0
  62. package/sdk/models/operations/createtaskcomment.js.map +1 -0
  63. package/sdk/models/operations/gettaskcomment.d.ts +42 -0
  64. package/sdk/models/operations/gettaskcomment.d.ts.map +1 -0
  65. package/sdk/models/operations/gettaskcomment.js +72 -0
  66. package/sdk/models/operations/gettaskcomment.js.map +1 -0
  67. package/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -0
  68. package/sdk/models/operations/getunifiedintegrationauth.d.ts.map +1 -1
  69. package/sdk/models/operations/getunifiedintegrationauth.js +2 -0
  70. package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
  71. package/sdk/models/operations/index.d.ts +6 -0
  72. package/sdk/models/operations/index.d.ts.map +1 -1
  73. package/sdk/models/operations/index.js +6 -0
  74. package/sdk/models/operations/index.js.map +1 -1
  75. package/sdk/models/operations/listtaskcomments.d.ts +57 -0
  76. package/sdk/models/operations/listtaskcomments.d.ts.map +1 -0
  77. package/sdk/models/operations/listtaskcomments.js +89 -0
  78. package/sdk/models/operations/listtaskcomments.js.map +1 -0
  79. package/sdk/models/operations/patchtaskcomment.d.ts +45 -0
  80. package/sdk/models/operations/patchtaskcomment.d.ts.map +1 -0
  81. package/sdk/models/operations/patchtaskcomment.js +77 -0
  82. package/sdk/models/operations/patchtaskcomment.js.map +1 -0
  83. package/sdk/models/operations/removetaskcomment.d.ts +66 -0
  84. package/sdk/models/operations/removetaskcomment.d.ts.map +1 -0
  85. package/sdk/models/operations/removetaskcomment.js +105 -0
  86. package/sdk/models/operations/removetaskcomment.js.map +1 -0
  87. package/sdk/models/operations/updatetaskcomment.d.ts +45 -0
  88. package/sdk/models/operations/updatetaskcomment.d.ts.map +1 -0
  89. package/sdk/models/operations/updatetaskcomment.js +77 -0
  90. package/sdk/models/operations/updatetaskcomment.js.map +1 -0
  91. package/sdk/models/shared/index.d.ts +1 -0
  92. package/sdk/models/shared/index.d.ts.map +1 -1
  93. package/sdk/models/shared/index.js +1 -0
  94. package/sdk/models/shared/index.js.map +1 -1
  95. package/sdk/models/shared/kmspage.d.ts +2 -2
  96. package/sdk/models/shared/kmspage.d.ts.map +1 -1
  97. package/sdk/models/shared/kmspage.js +2 -2
  98. package/sdk/models/shared/kmspage.js.map +1 -1
  99. package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
  100. package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
  101. package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
  102. package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
  103. package/sdk/models/shared/taskcomment.d.ts +47 -0
  104. package/sdk/models/shared/taskcomment.d.ts.map +1 -0
  105. package/sdk/models/shared/taskcomment.js +92 -0
  106. package/sdk/models/shared/taskcomment.js.map +1 -0
  107. package/sdk/models/shared/tasktask.d.ts +5 -0
  108. package/sdk/models/shared/tasktask.d.ts.map +1 -1
  109. package/sdk/models/shared/tasktask.js +4 -0
  110. package/sdk/models/shared/tasktask.js.map +1 -1
  111. package/sdk/models/shared/webhook.d.ts +3 -0
  112. package/sdk/models/shared/webhook.d.ts.map +1 -1
  113. package/sdk/models/shared/webhook.js +1 -0
  114. package/sdk/models/shared/webhook.js.map +1 -1
  115. package/sdk/sdk.d.ts +3 -0
  116. package/sdk/sdk.d.ts.map +1 -1
  117. package/sdk/sdk.js +4 -0
  118. package/sdk/sdk.js.map +1 -1
  119. package/sdk/task.d.ts +24 -0
  120. package/sdk/task.d.ts.map +1 -1
  121. package/sdk/task.js +42 -0
  122. package/sdk/task.js.map +1 -1
  123. package/src/funcs/commentCreateTaskComment.ts +133 -0
  124. package/src/funcs/commentGetTaskComment.ts +136 -0
  125. package/src/funcs/commentListTaskComments.ts +140 -0
  126. package/src/funcs/commentPatchTaskComment.ts +137 -0
  127. package/src/funcs/commentRemoveTaskComment.ts +139 -0
  128. package/src/funcs/commentUpdateTaskComment.ts +137 -0
  129. package/src/funcs/taskCreateTaskComment.ts +133 -0
  130. package/src/funcs/taskGetTaskComment.ts +136 -0
  131. package/src/funcs/taskListTaskComments.ts +140 -0
  132. package/src/funcs/taskPatchTaskComment.ts +137 -0
  133. package/src/funcs/taskRemoveTaskComment.ts +139 -0
  134. package/src/funcs/taskUpdateTaskComment.ts +137 -0
  135. package/src/lib/config.ts +3 -3
  136. package/src/sdk/comment.ts +100 -0
  137. package/src/sdk/models/operations/createtaskcomment.ts +92 -0
  138. package/src/sdk/models/operations/gettaskcomment.ts +92 -0
  139. package/src/sdk/models/operations/getunifiedintegrationauth.ts +2 -0
  140. package/src/sdk/models/operations/index.ts +6 -0
  141. package/src/sdk/models/operations/listtaskcomments.ts +124 -0
  142. package/src/sdk/models/operations/patchtaskcomment.ts +99 -0
  143. package/src/sdk/models/operations/removetaskcomment.ts +151 -0
  144. package/src/sdk/models/operations/updatetaskcomment.ts +99 -0
  145. package/src/sdk/models/shared/index.ts +1 -0
  146. package/src/sdk/models/shared/kmspage.ts +4 -4
  147. package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
  148. package/src/sdk/models/shared/taskcomment.ts +109 -0
  149. package/src/sdk/models/shared/tasktask.ts +9 -0
  150. package/src/sdk/models/shared/webhook.ts +1 -0
  151. package/src/sdk/sdk.ts +6 -0
  152. package/src/sdk/task.ts +90 -0
package/README.md CHANGED
@@ -584,6 +584,12 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
584
584
  - [`collectionPatchCommerceCollection`](docs/sdks/collection/README.md#patchcommercecollection) - Update a collection
585
585
  - [`collectionRemoveCommerceCollection`](docs/sdks/collection/README.md#removecommercecollection) - Remove a collection
586
586
  - [`collectionUpdateCommerceCollection`](docs/sdks/collection/README.md#updatecommercecollection) - Update a collection
587
+ - [`commentCreateTaskComment`](docs/sdks/comment/README.md#createtaskcomment) - Create a comment
588
+ - [`commentGetTaskComment`](docs/sdks/comment/README.md#gettaskcomment) - Retrieve a comment
589
+ - [`commentListTaskComments`](docs/sdks/comment/README.md#listtaskcomments) - List all comments
590
+ - [`commentPatchTaskComment`](docs/sdks/comment/README.md#patchtaskcomment) - Update a comment
591
+ - [`commentRemoveTaskComment`](docs/sdks/comment/README.md#removetaskcomment) - Remove a comment
592
+ - [`commentUpdateTaskComment`](docs/sdks/comment/README.md#updatetaskcomment) - Update a comment
587
593
  - [`commerceCreateCommerceCollection`](docs/sdks/commerce/README.md#createcommercecollection) - Create a collection
588
594
  - [`commerceCreateCommerceInventory`](docs/sdks/commerce/README.md#createcommerceinventory) - Create an inventory
589
595
  - [`commerceCreateCommerceItem`](docs/sdks/commerce/README.md#createcommerceitem) - Create an item
@@ -1087,16 +1093,22 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
1087
1093
  - [`subscriptionPatchPaymentSubscription`](docs/sdks/subscription/README.md#patchpaymentsubscription) - Update a subscription
1088
1094
  - [`subscriptionRemovePaymentSubscription`](docs/sdks/subscription/README.md#removepaymentsubscription) - Remove a subscription
1089
1095
  - [`subscriptionUpdatePaymentSubscription`](docs/sdks/subscription/README.md#updatepaymentsubscription) - Update a subscription
1096
+ - [`taskCreateTaskComment`](docs/sdks/task/README.md#createtaskcomment) - Create a comment
1090
1097
  - [`taskCreateTaskProject`](docs/sdks/task/README.md#createtaskproject) - Create a project
1091
1098
  - [`taskCreateTaskTask`](docs/sdks/task/README.md#createtasktask) - Create a task
1099
+ - [`taskGetTaskComment`](docs/sdks/task/README.md#gettaskcomment) - Retrieve a comment
1092
1100
  - [`taskGetTaskProject`](docs/sdks/task/README.md#gettaskproject) - Retrieve a project
1093
1101
  - [`taskGetTaskTask`](docs/sdks/task/README.md#gettasktask) - Retrieve a task
1102
+ - [`taskListTaskComments`](docs/sdks/task/README.md#listtaskcomments) - List all comments
1094
1103
  - [`taskListTaskProjects`](docs/sdks/task/README.md#listtaskprojects) - List all projects
1095
1104
  - [`taskListTaskTasks`](docs/sdks/task/README.md#listtasktasks) - List all tasks
1105
+ - [`taskPatchTaskComment`](docs/sdks/task/README.md#patchtaskcomment) - Update a comment
1096
1106
  - [`taskPatchTaskProject`](docs/sdks/task/README.md#patchtaskproject) - Update a project
1097
1107
  - [`taskPatchTaskTask`](docs/sdks/task/README.md#patchtasktask) - Update a task
1108
+ - [`taskRemoveTaskComment`](docs/sdks/task/README.md#removetaskcomment) - Remove a comment
1098
1109
  - [`taskRemoveTaskProject`](docs/sdks/task/README.md#removetaskproject) - Remove a project
1099
1110
  - [`taskRemoveTaskTask`](docs/sdks/task/README.md#removetasktask) - Remove a task
1111
+ - [`taskUpdateTaskComment`](docs/sdks/task/README.md#updatetaskcomment) - Update a comment
1100
1112
  - [`taskUpdateTaskProject`](docs/sdks/task/README.md#updatetaskproject) - Update a project
1101
1113
  - [`taskUpdateTaskTask`](docs/sdks/task/README.md#updatetasktask) - Update a task
1102
1114
  - [`taxrateCreateAccountingTaxrate`](docs/sdks/taxrate/README.md#createaccountingtaxrate) - Create a taxrate
@@ -0,0 +1,501 @@
1
+ # Comment
2
+ (*comment*)
3
+
4
+ ## Overview
5
+
6
+ ### Available Operations
7
+
8
+ * [createTaskComment](#createtaskcomment) - Create a comment
9
+ * [getTaskComment](#gettaskcomment) - Retrieve a comment
10
+ * [listTaskComments](#listtaskcomments) - List all comments
11
+ * [patchTaskComment](#patchtaskcomment) - Update a comment
12
+ * [removeTaskComment](#removetaskcomment) - Remove a comment
13
+ * [updateTaskComment](#updatetaskcomment) - Update a comment
14
+
15
+ ## createTaskComment
16
+
17
+ Create a comment
18
+
19
+ ### Example Usage
20
+
21
+ ```typescript
22
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
23
+
24
+ const unifiedTo = new UnifiedTo({
25
+ security: {
26
+ jwt: "<YOUR_API_KEY_HERE>",
27
+ },
28
+ });
29
+
30
+ async function run() {
31
+ const result = await unifiedTo.comment.createTaskComment({
32
+ connectionId: "<id>",
33
+ });
34
+
35
+ // Handle the result
36
+ console.log(result);
37
+ }
38
+
39
+ run();
40
+ ```
41
+
42
+ ### Standalone function
43
+
44
+ The standalone function version of this method:
45
+
46
+ ```typescript
47
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
48
+ import { commentCreateTaskComment } from "@unified-api/typescript-sdk/funcs/commentCreateTaskComment.js";
49
+
50
+ // Use `UnifiedToCore` for best tree-shaking performance.
51
+ // You can create one instance of it to use across an application.
52
+ const unifiedTo = new UnifiedToCore({
53
+ security: {
54
+ jwt: "<YOUR_API_KEY_HERE>",
55
+ },
56
+ });
57
+
58
+ async function run() {
59
+ const res = await commentCreateTaskComment(unifiedTo, {
60
+ connectionId: "<id>",
61
+ });
62
+
63
+ if (!res.ok) {
64
+ throw res.error;
65
+ }
66
+
67
+ const { value: result } = res;
68
+
69
+ // Handle the result
70
+ console.log(result);
71
+ }
72
+
73
+ run();
74
+ ```
75
+
76
+ ### Parameters
77
+
78
+ | Parameter | Type | Required | Description |
79
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
80
+ | `request` | [operations.CreateTaskCommentRequest](../../sdk/models/operations/createtaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
81
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
82
+ | `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. |
83
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
84
+
85
+ ### Response
86
+
87
+ **Promise\<[shared.TaskComment](../../sdk/models/shared/taskcomment.md)\>**
88
+
89
+ ### Errors
90
+
91
+ | Error Type | Status Code | Content Type |
92
+ | --------------- | --------------- | --------------- |
93
+ | errors.SDKError | 4XX, 5XX | \*/\* |
94
+
95
+ ## getTaskComment
96
+
97
+ Retrieve a comment
98
+
99
+ ### Example Usage
100
+
101
+ ```typescript
102
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
103
+
104
+ const unifiedTo = new UnifiedTo({
105
+ security: {
106
+ jwt: "<YOUR_API_KEY_HERE>",
107
+ },
108
+ });
109
+
110
+ async function run() {
111
+ const result = await unifiedTo.comment.getTaskComment({
112
+ connectionId: "<id>",
113
+ id: "<id>",
114
+ });
115
+
116
+ // Handle the result
117
+ console.log(result);
118
+ }
119
+
120
+ run();
121
+ ```
122
+
123
+ ### Standalone function
124
+
125
+ The standalone function version of this method:
126
+
127
+ ```typescript
128
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
129
+ import { commentGetTaskComment } from "@unified-api/typescript-sdk/funcs/commentGetTaskComment.js";
130
+
131
+ // Use `UnifiedToCore` for best tree-shaking performance.
132
+ // You can create one instance of it to use across an application.
133
+ const unifiedTo = new UnifiedToCore({
134
+ security: {
135
+ jwt: "<YOUR_API_KEY_HERE>",
136
+ },
137
+ });
138
+
139
+ async function run() {
140
+ const res = await commentGetTaskComment(unifiedTo, {
141
+ connectionId: "<id>",
142
+ id: "<id>",
143
+ });
144
+
145
+ if (!res.ok) {
146
+ throw res.error;
147
+ }
148
+
149
+ const { value: result } = res;
150
+
151
+ // Handle the result
152
+ console.log(result);
153
+ }
154
+
155
+ run();
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ | Parameter | Type | Required | Description |
161
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
162
+ | `request` | [operations.GetTaskCommentRequest](../../sdk/models/operations/gettaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
163
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
164
+ | `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. |
165
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
166
+
167
+ ### Response
168
+
169
+ **Promise\<[shared.TaskComment](../../sdk/models/shared/taskcomment.md)\>**
170
+
171
+ ### Errors
172
+
173
+ | Error Type | Status Code | Content Type |
174
+ | --------------- | --------------- | --------------- |
175
+ | errors.SDKError | 4XX, 5XX | \*/\* |
176
+
177
+ ## listTaskComments
178
+
179
+ List all comments
180
+
181
+ ### Example Usage
182
+
183
+ ```typescript
184
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
185
+
186
+ const unifiedTo = new UnifiedTo({
187
+ security: {
188
+ jwt: "<YOUR_API_KEY_HERE>",
189
+ },
190
+ });
191
+
192
+ async function run() {
193
+ const result = await unifiedTo.comment.listTaskComments({
194
+ connectionId: "<id>",
195
+ });
196
+
197
+ // Handle the result
198
+ console.log(result);
199
+ }
200
+
201
+ run();
202
+ ```
203
+
204
+ ### Standalone function
205
+
206
+ The standalone function version of this method:
207
+
208
+ ```typescript
209
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
210
+ import { commentListTaskComments } from "@unified-api/typescript-sdk/funcs/commentListTaskComments.js";
211
+
212
+ // Use `UnifiedToCore` for best tree-shaking performance.
213
+ // You can create one instance of it to use across an application.
214
+ const unifiedTo = new UnifiedToCore({
215
+ security: {
216
+ jwt: "<YOUR_API_KEY_HERE>",
217
+ },
218
+ });
219
+
220
+ async function run() {
221
+ const res = await commentListTaskComments(unifiedTo, {
222
+ connectionId: "<id>",
223
+ });
224
+
225
+ if (!res.ok) {
226
+ throw res.error;
227
+ }
228
+
229
+ const { value: result } = res;
230
+
231
+ // Handle the result
232
+ console.log(result);
233
+ }
234
+
235
+ run();
236
+ ```
237
+
238
+ ### Parameters
239
+
240
+ | Parameter | Type | Required | Description |
241
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
242
+ | `request` | [operations.ListTaskCommentsRequest](../../sdk/models/operations/listtaskcommentsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
243
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
244
+ | `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. |
245
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
246
+
247
+ ### Response
248
+
249
+ **Promise\<[shared.TaskComment[]](../../models/.md)\>**
250
+
251
+ ### Errors
252
+
253
+ | Error Type | Status Code | Content Type |
254
+ | --------------- | --------------- | --------------- |
255
+ | errors.SDKError | 4XX, 5XX | \*/\* |
256
+
257
+ ## patchTaskComment
258
+
259
+ Update a comment
260
+
261
+ ### Example Usage
262
+
263
+ ```typescript
264
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
265
+
266
+ const unifiedTo = new UnifiedTo({
267
+ security: {
268
+ jwt: "<YOUR_API_KEY_HERE>",
269
+ },
270
+ });
271
+
272
+ async function run() {
273
+ const result = await unifiedTo.comment.patchTaskComment({
274
+ connectionId: "<id>",
275
+ id: "<id>",
276
+ });
277
+
278
+ // Handle the result
279
+ console.log(result);
280
+ }
281
+
282
+ run();
283
+ ```
284
+
285
+ ### Standalone function
286
+
287
+ The standalone function version of this method:
288
+
289
+ ```typescript
290
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
291
+ import { commentPatchTaskComment } from "@unified-api/typescript-sdk/funcs/commentPatchTaskComment.js";
292
+
293
+ // Use `UnifiedToCore` for best tree-shaking performance.
294
+ // You can create one instance of it to use across an application.
295
+ const unifiedTo = new UnifiedToCore({
296
+ security: {
297
+ jwt: "<YOUR_API_KEY_HERE>",
298
+ },
299
+ });
300
+
301
+ async function run() {
302
+ const res = await commentPatchTaskComment(unifiedTo, {
303
+ connectionId: "<id>",
304
+ id: "<id>",
305
+ });
306
+
307
+ if (!res.ok) {
308
+ throw res.error;
309
+ }
310
+
311
+ const { value: result } = res;
312
+
313
+ // Handle the result
314
+ console.log(result);
315
+ }
316
+
317
+ run();
318
+ ```
319
+
320
+ ### Parameters
321
+
322
+ | Parameter | Type | Required | Description |
323
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
324
+ | `request` | [operations.PatchTaskCommentRequest](../../sdk/models/operations/patchtaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
325
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
326
+ | `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. |
327
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
328
+
329
+ ### Response
330
+
331
+ **Promise\<[shared.TaskComment](../../sdk/models/shared/taskcomment.md)\>**
332
+
333
+ ### Errors
334
+
335
+ | Error Type | Status Code | Content Type |
336
+ | --------------- | --------------- | --------------- |
337
+ | errors.SDKError | 4XX, 5XX | \*/\* |
338
+
339
+ ## removeTaskComment
340
+
341
+ Remove a comment
342
+
343
+ ### Example Usage
344
+
345
+ ```typescript
346
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
347
+
348
+ const unifiedTo = new UnifiedTo({
349
+ security: {
350
+ jwt: "<YOUR_API_KEY_HERE>",
351
+ },
352
+ });
353
+
354
+ async function run() {
355
+ const result = await unifiedTo.comment.removeTaskComment({
356
+ connectionId: "<id>",
357
+ id: "<id>",
358
+ });
359
+
360
+ // Handle the result
361
+ console.log(result);
362
+ }
363
+
364
+ run();
365
+ ```
366
+
367
+ ### Standalone function
368
+
369
+ The standalone function version of this method:
370
+
371
+ ```typescript
372
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
373
+ import { commentRemoveTaskComment } from "@unified-api/typescript-sdk/funcs/commentRemoveTaskComment.js";
374
+
375
+ // Use `UnifiedToCore` for best tree-shaking performance.
376
+ // You can create one instance of it to use across an application.
377
+ const unifiedTo = new UnifiedToCore({
378
+ security: {
379
+ jwt: "<YOUR_API_KEY_HERE>",
380
+ },
381
+ });
382
+
383
+ async function run() {
384
+ const res = await commentRemoveTaskComment(unifiedTo, {
385
+ connectionId: "<id>",
386
+ id: "<id>",
387
+ });
388
+
389
+ if (!res.ok) {
390
+ throw res.error;
391
+ }
392
+
393
+ const { value: result } = res;
394
+
395
+ // Handle the result
396
+ console.log(result);
397
+ }
398
+
399
+ run();
400
+ ```
401
+
402
+ ### Parameters
403
+
404
+ | Parameter | Type | Required | Description |
405
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
406
+ | `request` | [operations.RemoveTaskCommentRequest](../../sdk/models/operations/removetaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
407
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
408
+ | `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. |
409
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
410
+
411
+ ### Response
412
+
413
+ **Promise\<[operations.RemoveTaskCommentResponse](../../sdk/models/operations/removetaskcommentresponse.md)\>**
414
+
415
+ ### Errors
416
+
417
+ | Error Type | Status Code | Content Type |
418
+ | --------------- | --------------- | --------------- |
419
+ | errors.SDKError | 4XX, 5XX | \*/\* |
420
+
421
+ ## updateTaskComment
422
+
423
+ Update a comment
424
+
425
+ ### Example Usage
426
+
427
+ ```typescript
428
+ import { UnifiedTo } from "@unified-api/typescript-sdk";
429
+
430
+ const unifiedTo = new UnifiedTo({
431
+ security: {
432
+ jwt: "<YOUR_API_KEY_HERE>",
433
+ },
434
+ });
435
+
436
+ async function run() {
437
+ const result = await unifiedTo.comment.updateTaskComment({
438
+ connectionId: "<id>",
439
+ id: "<id>",
440
+ });
441
+
442
+ // Handle the result
443
+ console.log(result);
444
+ }
445
+
446
+ run();
447
+ ```
448
+
449
+ ### Standalone function
450
+
451
+ The standalone function version of this method:
452
+
453
+ ```typescript
454
+ import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
455
+ import { commentUpdateTaskComment } from "@unified-api/typescript-sdk/funcs/commentUpdateTaskComment.js";
456
+
457
+ // Use `UnifiedToCore` for best tree-shaking performance.
458
+ // You can create one instance of it to use across an application.
459
+ const unifiedTo = new UnifiedToCore({
460
+ security: {
461
+ jwt: "<YOUR_API_KEY_HERE>",
462
+ },
463
+ });
464
+
465
+ async function run() {
466
+ const res = await commentUpdateTaskComment(unifiedTo, {
467
+ connectionId: "<id>",
468
+ id: "<id>",
469
+ });
470
+
471
+ if (!res.ok) {
472
+ throw res.error;
473
+ }
474
+
475
+ const { value: result } = res;
476
+
477
+ // Handle the result
478
+ console.log(result);
479
+ }
480
+
481
+ run();
482
+ ```
483
+
484
+ ### Parameters
485
+
486
+ | Parameter | Type | Required | Description |
487
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
488
+ | `request` | [operations.UpdateTaskCommentRequest](../../sdk/models/operations/updatetaskcommentrequest.md) | :heavy_check_mark: | The request object to use for the request. |
489
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
490
+ | `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. |
491
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
492
+
493
+ ### Response
494
+
495
+ **Promise\<[shared.TaskComment](../../sdk/models/shared/taskcomment.md)\>**
496
+
497
+ ### Errors
498
+
499
+ | Error Type | Status Code | Content Type |
500
+ | --------------- | --------------- | --------------- |
501
+ | errors.SDKError | 4XX, 5XX | \*/\* |