@unified-api/typescript-sdk 2.79.0 → 2.80.1

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 (165) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +3 -3
  4. package/lib/config.js +3 -3
  5. package/package.json +1 -1
  6. package/sdk/models/shared/calendareventrecurrence.d.ts +2 -5
  7. package/sdk/models/shared/calendareventrecurrence.d.ts.map +1 -1
  8. package/sdk/models/shared/calendareventrecurrence.js +2 -2
  9. package/sdk/models/shared/calendareventrecurrence.js.map +1 -1
  10. package/sdk/models/shared/index.d.ts +5 -0
  11. package/sdk/models/shared/index.d.ts.map +1 -1
  12. package/sdk/models/shared/index.js +5 -0
  13. package/sdk/models/shared/index.js.map +1 -1
  14. package/sdk/models/shared/integration.d.ts +3 -2
  15. package/sdk/models/shared/integration.d.ts.map +1 -1
  16. package/sdk/models/shared/integration.js +3 -2
  17. package/sdk/models/shared/integration.js.map +1 -1
  18. package/sdk/models/shared/integrationsupport.d.ts +2410 -0
  19. package/sdk/models/shared/integrationsupport.d.ts.map +1 -0
  20. package/sdk/models/shared/integrationsupport.js +3440 -0
  21. package/sdk/models/shared/integrationsupport.js.map +1 -0
  22. package/sdk/models/shared/kmspage.d.ts +2 -0
  23. package/sdk/models/shared/kmspage.d.ts.map +1 -1
  24. package/sdk/models/shared/kmspage.js +4 -0
  25. package/sdk/models/shared/kmspage.js.map +1 -1
  26. package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts +36 -0
  27. package/sdk/models/shared/propertyintegrationsupportwebhookevents.d.ts.map +1 -0
  28. package/sdk/models/shared/propertyintegrationsupportwebhookevents.js +79 -0
  29. package/sdk/models/shared/propertyintegrationsupportwebhookevents.js.map +1 -0
  30. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts +22 -0
  31. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.d.ts.map +1 -0
  32. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js +68 -0
  33. package/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.js.map +1 -0
  34. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts +22 -0
  35. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.d.ts.map +1 -0
  36. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js +68 -0
  37. package/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.js.map +1 -0
  38. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts +22 -0
  39. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.d.ts.map +1 -0
  40. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js +68 -0
  41. package/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.js.map +1 -0
  42. package/sdk/models/shared/webhook.d.ts +2 -2
  43. package/sdk/models/shared/webhook.d.ts.map +1 -1
  44. package/sdk/models/shared/webhook.js +2 -2
  45. package/sdk/models/shared/webhook.js.map +1 -1
  46. package/src/lib/config.ts +3 -3
  47. package/src/sdk/models/shared/calendareventrecurrence.ts +4 -7
  48. package/src/sdk/models/shared/index.ts +5 -0
  49. package/src/sdk/models/shared/integration.ts +10 -4
  50. package/src/sdk/models/shared/integrationsupport.ts +4969 -0
  51. package/src/sdk/models/shared/kmspage.ts +6 -0
  52. package/src/sdk/models/shared/propertyintegrationsupportwebhookevents.ts +109 -0
  53. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventscreated.ts +54 -0
  54. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsdeleted.ts +54 -0
  55. package/src/sdk/models/shared/propertyintegrationsupportwebhookeventsupdated.ts +54 -0
  56. package/src/sdk/models/shared/webhook.ts +4 -4
  57. package/docs/sdks/account/README.md +0 -489
  58. package/docs/sdks/accounting/README.md +0 -7221
  59. package/docs/sdks/activity/README.md +0 -489
  60. package/docs/sdks/apicall/README.md +0 -159
  61. package/docs/sdks/application/README.md +0 -489
  62. package/docs/sdks/applicationstatus/README.md +0 -85
  63. package/docs/sdks/ats/README.md +0 -3953
  64. package/docs/sdks/auth/README.md +0 -167
  65. package/docs/sdks/balancesheet/README.md +0 -165
  66. package/docs/sdks/bill/README.md +0 -489
  67. package/docs/sdks/branch/README.md +0 -507
  68. package/docs/sdks/busy/README.md +0 -85
  69. package/docs/sdks/calendar/README.md +0 -1713
  70. package/docs/sdks/call/README.md +0 -85
  71. package/docs/sdks/candidate/README.md +0 -489
  72. package/docs/sdks/cashflow/README.md +0 -165
  73. package/docs/sdks/category/README.md +0 -971
  74. package/docs/sdks/change/README.md +0 -165
  75. package/docs/sdks/channel/README.md +0 -165
  76. package/docs/sdks/class/README.md +0 -507
  77. package/docs/sdks/collection/README.md +0 -501
  78. package/docs/sdks/comment/README.md +0 -1495
  79. package/docs/sdks/commerce/README.md +0 -2465
  80. package/docs/sdks/commit/README.md +0 -501
  81. package/docs/sdks/company/README.md +0 -1543
  82. package/docs/sdks/connection/README.md +0 -513
  83. package/docs/sdks/contact/README.md +0 -1453
  84. package/docs/sdks/course/README.md +0 -501
  85. package/docs/sdks/creditmemo/README.md +0 -489
  86. package/docs/sdks/crm/README.md +0 -2899
  87. package/docs/sdks/customer/README.md +0 -489
  88. package/docs/sdks/deal/README.md +0 -489
  89. package/docs/sdks/device/README.md +0 -501
  90. package/docs/sdks/document/README.md +0 -489
  91. package/docs/sdks/embedding/README.md +0 -87
  92. package/docs/sdks/employee/README.md +0 -489
  93. package/docs/sdks/enrich/README.md +0 -163
  94. package/docs/sdks/event/README.md +0 -971
  95. package/docs/sdks/expense/README.md +0 -489
  96. package/docs/sdks/file/README.md +0 -489
  97. package/docs/sdks/genai/README.md +0 -325
  98. package/docs/sdks/group/README.md +0 -983
  99. package/docs/sdks/hris/README.md +0 -3251
  100. package/docs/sdks/instructor/README.md +0 -489
  101. package/docs/sdks/integration/README.md +0 -239
  102. package/docs/sdks/interview/README.md +0 -489
  103. package/docs/sdks/inventory/README.md +0 -501
  104. package/docs/sdks/invoice/README.md +0 -489
  105. package/docs/sdks/issue/README.md +0 -159
  106. package/docs/sdks/item/README.md +0 -489
  107. package/docs/sdks/job/README.md +0 -489
  108. package/docs/sdks/journal/README.md +0 -489
  109. package/docs/sdks/kms/README.md +0 -1495
  110. package/docs/sdks/lead/README.md +0 -489
  111. package/docs/sdks/link/README.md +0 -983
  112. package/docs/sdks/list/README.md +0 -489
  113. package/docs/sdks/lms/README.md +0 -1965
  114. package/docs/sdks/location/README.md +0 -983
  115. package/docs/sdks/login/README.md +0 -87
  116. package/docs/sdks/martech/README.md +0 -971
  117. package/docs/sdks/member/README.md +0 -489
  118. package/docs/sdks/message/README.md +0 -489
  119. package/docs/sdks/messaging/README.md +0 -647
  120. package/docs/sdks/metadata/README.md +0 -507
  121. package/docs/sdks/model/README.md +0 -165
  122. package/docs/sdks/note/README.md +0 -489
  123. package/docs/sdks/order/README.md +0 -489
  124. package/docs/sdks/organization/README.md +0 -647
  125. package/docs/sdks/package/README.md +0 -165
  126. package/docs/sdks/page/README.md +0 -507
  127. package/docs/sdks/passthrough/README.md +0 -647
  128. package/docs/sdks/payment/README.md +0 -1769
  129. package/docs/sdks/payout/README.md +0 -165
  130. package/docs/sdks/payslip/README.md +0 -165
  131. package/docs/sdks/person/README.md +0 -85
  132. package/docs/sdks/pipeline/README.md +0 -489
  133. package/docs/sdks/profitloss/README.md +0 -165
  134. package/docs/sdks/project/README.md +0 -489
  135. package/docs/sdks/prompt/README.md +0 -87
  136. package/docs/sdks/pullrequest/README.md +0 -489
  137. package/docs/sdks/purchaseorder/README.md +0 -489
  138. package/docs/sdks/recording/README.md +0 -647
  139. package/docs/sdks/refund/README.md +0 -165
  140. package/docs/sdks/repo/README.md +0 -2459
  141. package/docs/sdks/report/README.md +0 -165
  142. package/docs/sdks/repository/README.md +0 -501
  143. package/docs/sdks/request/README.md +0 -489
  144. package/docs/sdks/review/README.md +0 -501
  145. package/docs/sdks/salesorder/README.md +0 -489
  146. package/docs/sdks/scim/README.md +0 -983
  147. package/docs/sdks/scorecard/README.md +0 -489
  148. package/docs/sdks/space/README.md +0 -501
  149. package/docs/sdks/storage/README.md +0 -489
  150. package/docs/sdks/student/README.md +0 -489
  151. package/docs/sdks/subscription/README.md +0 -489
  152. package/docs/sdks/task/README.md +0 -1629
  153. package/docs/sdks/taxrate/README.md +0 -489
  154. package/docs/sdks/ticket/README.md +0 -489
  155. package/docs/sdks/ticketing/README.md +0 -1935
  156. package/docs/sdks/timeoff/README.md +0 -165
  157. package/docs/sdks/timeshift/README.md +0 -513
  158. package/docs/sdks/transaction/README.md +0 -489
  159. package/docs/sdks/trialbalance/README.md +0 -165
  160. package/docs/sdks/uc/README.md +0 -1543
  161. package/docs/sdks/unified/README.md +0 -1697
  162. package/docs/sdks/user/README.md +0 -489
  163. package/docs/sdks/verification/README.md +0 -647
  164. package/docs/sdks/webhook/README.md +0 -655
  165. package/examples/README.md +0 -31
@@ -1,501 +0,0 @@
1
- # Review
2
- (*review*)
3
-
4
- ## Overview
5
-
6
- ### Available Operations
7
-
8
- * [createCommerceReview](#createcommercereview) - Create a review
9
- * [getCommerceReview](#getcommercereview) - Retrieve a review
10
- * [listCommerceReviews](#listcommercereviews) - List all reviews
11
- * [patchCommerceReview](#patchcommercereview) - Update a review
12
- * [removeCommerceReview](#removecommercereview) - Remove a review
13
- * [updateCommerceReview](#updatecommercereview) - Update a review
14
-
15
- ## createCommerceReview
16
-
17
- Create a review
18
-
19
- ### Example Usage
20
-
21
- <!-- UsageSnippet language="typescript" operationID="createCommerceReview" method="post" path="/commerce/{connection_id}/review" -->
22
- ```typescript
23
- import { UnifiedTo } from "@unified-api/typescript-sdk";
24
-
25
- const unifiedTo = new UnifiedTo({
26
- security: {
27
- jwt: "<YOUR_API_KEY_HERE>",
28
- },
29
- });
30
-
31
- async function run() {
32
- const result = await unifiedTo.review.createCommerceReview({
33
- commerceReview: {
34
- itemId: "<id>",
35
- },
36
- connectionId: "<id>",
37
- });
38
-
39
- console.log(result);
40
- }
41
-
42
- run();
43
- ```
44
-
45
- ### Standalone function
46
-
47
- The standalone function version of this method:
48
-
49
- ```typescript
50
- import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
51
- import { commerceCreateCommerceReview } from "@unified-api/typescript-sdk/funcs/commerceCreateCommerceReview.js";
52
-
53
- // Use `UnifiedToCore` for best tree-shaking performance.
54
- // You can create one instance of it to use across an application.
55
- const unifiedTo = new UnifiedToCore({
56
- security: {
57
- jwt: "<YOUR_API_KEY_HERE>",
58
- },
59
- });
60
-
61
- async function run() {
62
- const res = await commerceCreateCommerceReview(unifiedTo, {
63
- commerceReview: {
64
- itemId: "<id>",
65
- },
66
- connectionId: "<id>",
67
- });
68
- if (res.ok) {
69
- const { value: result } = res;
70
- console.log(result);
71
- } else {
72
- console.log("commerceCreateCommerceReview failed:", res.error);
73
- }
74
- }
75
-
76
- run();
77
- ```
78
-
79
- ### Parameters
80
-
81
- | Parameter | Type | Required | Description |
82
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
83
- | `request` | [operations.CreateCommerceReviewRequest](../../sdk/models/operations/createcommercereviewrequest.md) | :heavy_check_mark: | The request object to use for the request. |
84
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
85
- | `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. |
86
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
87
-
88
- ### Response
89
-
90
- **Promise\<[shared.CommerceReview](../../sdk/models/shared/commercereview.md)\>**
91
-
92
- ### Errors
93
-
94
- | Error Type | Status Code | Content Type |
95
- | --------------- | --------------- | --------------- |
96
- | errors.SDKError | 4XX, 5XX | \*/\* |
97
-
98
- ## getCommerceReview
99
-
100
- Retrieve a review
101
-
102
- ### Example Usage
103
-
104
- <!-- UsageSnippet language="typescript" operationID="getCommerceReview" method="get" path="/commerce/{connection_id}/review/{id}" -->
105
- ```typescript
106
- import { UnifiedTo } from "@unified-api/typescript-sdk";
107
-
108
- const unifiedTo = new UnifiedTo({
109
- security: {
110
- jwt: "<YOUR_API_KEY_HERE>",
111
- },
112
- });
113
-
114
- async function run() {
115
- const result = await unifiedTo.review.getCommerceReview({
116
- connectionId: "<id>",
117
- id: "<id>",
118
- });
119
-
120
- console.log(result);
121
- }
122
-
123
- run();
124
- ```
125
-
126
- ### Standalone function
127
-
128
- The standalone function version of this method:
129
-
130
- ```typescript
131
- import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
132
- import { commerceGetCommerceReview } from "@unified-api/typescript-sdk/funcs/commerceGetCommerceReview.js";
133
-
134
- // Use `UnifiedToCore` for best tree-shaking performance.
135
- // You can create one instance of it to use across an application.
136
- const unifiedTo = new UnifiedToCore({
137
- security: {
138
- jwt: "<YOUR_API_KEY_HERE>",
139
- },
140
- });
141
-
142
- async function run() {
143
- const res = await commerceGetCommerceReview(unifiedTo, {
144
- connectionId: "<id>",
145
- id: "<id>",
146
- });
147
- if (res.ok) {
148
- const { value: result } = res;
149
- console.log(result);
150
- } else {
151
- console.log("commerceGetCommerceReview failed:", res.error);
152
- }
153
- }
154
-
155
- run();
156
- ```
157
-
158
- ### Parameters
159
-
160
- | Parameter | Type | Required | Description |
161
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
162
- | `request` | [operations.GetCommerceReviewRequest](../../sdk/models/operations/getcommercereviewrequest.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.CommerceReview](../../sdk/models/shared/commercereview.md)\>**
170
-
171
- ### Errors
172
-
173
- | Error Type | Status Code | Content Type |
174
- | --------------- | --------------- | --------------- |
175
- | errors.SDKError | 4XX, 5XX | \*/\* |
176
-
177
- ## listCommerceReviews
178
-
179
- List all reviews
180
-
181
- ### Example Usage
182
-
183
- <!-- UsageSnippet language="typescript" operationID="listCommerceReviews" method="get" path="/commerce/{connection_id}/review" -->
184
- ```typescript
185
- import { UnifiedTo } from "@unified-api/typescript-sdk";
186
-
187
- const unifiedTo = new UnifiedTo({
188
- security: {
189
- jwt: "<YOUR_API_KEY_HERE>",
190
- },
191
- });
192
-
193
- async function run() {
194
- const result = await unifiedTo.review.listCommerceReviews({
195
- connectionId: "<id>",
196
- });
197
-
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 { commerceListCommerceReviews } from "@unified-api/typescript-sdk/funcs/commerceListCommerceReviews.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 commerceListCommerceReviews(unifiedTo, {
222
- connectionId: "<id>",
223
- });
224
- if (res.ok) {
225
- const { value: result } = res;
226
- console.log(result);
227
- } else {
228
- console.log("commerceListCommerceReviews failed:", res.error);
229
- }
230
- }
231
-
232
- run();
233
- ```
234
-
235
- ### Parameters
236
-
237
- | Parameter | Type | Required | Description |
238
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
239
- | `request` | [operations.ListCommerceReviewsRequest](../../sdk/models/operations/listcommercereviewsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
240
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
241
- | `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. |
242
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
243
-
244
- ### Response
245
-
246
- **Promise\<[shared.CommerceReview[]](../../models/.md)\>**
247
-
248
- ### Errors
249
-
250
- | Error Type | Status Code | Content Type |
251
- | --------------- | --------------- | --------------- |
252
- | errors.SDKError | 4XX, 5XX | \*/\* |
253
-
254
- ## patchCommerceReview
255
-
256
- Update a review
257
-
258
- ### Example Usage
259
-
260
- <!-- UsageSnippet language="typescript" operationID="patchCommerceReview" method="patch" path="/commerce/{connection_id}/review/{id}" -->
261
- ```typescript
262
- import { UnifiedTo } from "@unified-api/typescript-sdk";
263
-
264
- const unifiedTo = new UnifiedTo({
265
- security: {
266
- jwt: "<YOUR_API_KEY_HERE>",
267
- },
268
- });
269
-
270
- async function run() {
271
- const result = await unifiedTo.review.patchCommerceReview({
272
- commerceReview: {
273
- itemId: "<id>",
274
- },
275
- connectionId: "<id>",
276
- id: "<id>",
277
- });
278
-
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 { commercePatchCommerceReview } from "@unified-api/typescript-sdk/funcs/commercePatchCommerceReview.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 commercePatchCommerceReview(unifiedTo, {
303
- commerceReview: {
304
- itemId: "<id>",
305
- },
306
- connectionId: "<id>",
307
- id: "<id>",
308
- });
309
- if (res.ok) {
310
- const { value: result } = res;
311
- console.log(result);
312
- } else {
313
- console.log("commercePatchCommerceReview failed:", res.error);
314
- }
315
- }
316
-
317
- run();
318
- ```
319
-
320
- ### Parameters
321
-
322
- | Parameter | Type | Required | Description |
323
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
324
- | `request` | [operations.PatchCommerceReviewRequest](../../sdk/models/operations/patchcommercereviewrequest.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.CommerceReview](../../sdk/models/shared/commercereview.md)\>**
332
-
333
- ### Errors
334
-
335
- | Error Type | Status Code | Content Type |
336
- | --------------- | --------------- | --------------- |
337
- | errors.SDKError | 4XX, 5XX | \*/\* |
338
-
339
- ## removeCommerceReview
340
-
341
- Remove a review
342
-
343
- ### Example Usage
344
-
345
- <!-- UsageSnippet language="typescript" operationID="removeCommerceReview" method="delete" path="/commerce/{connection_id}/review/{id}" -->
346
- ```typescript
347
- import { UnifiedTo } from "@unified-api/typescript-sdk";
348
-
349
- const unifiedTo = new UnifiedTo({
350
- security: {
351
- jwt: "<YOUR_API_KEY_HERE>",
352
- },
353
- });
354
-
355
- async function run() {
356
- const result = await unifiedTo.review.removeCommerceReview({
357
- connectionId: "<id>",
358
- id: "<id>",
359
- });
360
-
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 { commerceRemoveCommerceReview } from "@unified-api/typescript-sdk/funcs/commerceRemoveCommerceReview.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 commerceRemoveCommerceReview(unifiedTo, {
385
- connectionId: "<id>",
386
- id: "<id>",
387
- });
388
- if (res.ok) {
389
- const { value: result } = res;
390
- console.log(result);
391
- } else {
392
- console.log("commerceRemoveCommerceReview failed:", res.error);
393
- }
394
- }
395
-
396
- run();
397
- ```
398
-
399
- ### Parameters
400
-
401
- | Parameter | Type | Required | Description |
402
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
403
- | `request` | [operations.RemoveCommerceReviewRequest](../../sdk/models/operations/removecommercereviewrequest.md) | :heavy_check_mark: | The request object to use for the request. |
404
- | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
405
- | `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. |
406
- | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
407
-
408
- ### Response
409
-
410
- **Promise\<[operations.RemoveCommerceReviewResponse](../../sdk/models/operations/removecommercereviewresponse.md)\>**
411
-
412
- ### Errors
413
-
414
- | Error Type | Status Code | Content Type |
415
- | --------------- | --------------- | --------------- |
416
- | errors.SDKError | 4XX, 5XX | \*/\* |
417
-
418
- ## updateCommerceReview
419
-
420
- Update a review
421
-
422
- ### Example Usage
423
-
424
- <!-- UsageSnippet language="typescript" operationID="updateCommerceReview" method="put" path="/commerce/{connection_id}/review/{id}" -->
425
- ```typescript
426
- import { UnifiedTo } from "@unified-api/typescript-sdk";
427
-
428
- const unifiedTo = new UnifiedTo({
429
- security: {
430
- jwt: "<YOUR_API_KEY_HERE>",
431
- },
432
- });
433
-
434
- async function run() {
435
- const result = await unifiedTo.review.updateCommerceReview({
436
- commerceReview: {
437
- itemId: "<id>",
438
- },
439
- connectionId: "<id>",
440
- id: "<id>",
441
- });
442
-
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 { commerceUpdateCommerceReview } from "@unified-api/typescript-sdk/funcs/commerceUpdateCommerceReview.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 commerceUpdateCommerceReview(unifiedTo, {
467
- commerceReview: {
468
- itemId: "<id>",
469
- },
470
- connectionId: "<id>",
471
- id: "<id>",
472
- });
473
- if (res.ok) {
474
- const { value: result } = res;
475
- console.log(result);
476
- } else {
477
- console.log("commerceUpdateCommerceReview failed:", res.error);
478
- }
479
- }
480
-
481
- run();
482
- ```
483
-
484
- ### Parameters
485
-
486
- | Parameter | Type | Required | Description |
487
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
488
- | `request` | [operations.UpdateCommerceReviewRequest](../../sdk/models/operations/updatecommercereviewrequest.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.CommerceReview](../../sdk/models/shared/commercereview.md)\>**
496
-
497
- ### Errors
498
-
499
- | Error Type | Status Code | Content Type |
500
- | --------------- | --------------- | --------------- |
501
- | errors.SDKError | 4XX, 5XX | \*/\* |