@unified-api/typescript-sdk 2.72.0 → 2.72.2

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 (181) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +28 -47
  3. package/bin/mcp-server.js +60 -15
  4. package/bin/mcp-server.js.map +24 -24
  5. package/docs/sdks/account/README.md +30 -54
  6. package/docs/sdks/accounting/README.md +230 -414
  7. package/docs/sdks/activity/README.md +30 -54
  8. package/docs/sdks/apicall/README.md +10 -18
  9. package/docs/sdks/application/README.md +30 -54
  10. package/docs/sdks/applicationstatus/README.md +5 -9
  11. package/docs/sdks/ats/README.md +225 -405
  12. package/docs/sdks/auth/README.md +10 -18
  13. package/docs/sdks/branch/README.md +30 -54
  14. package/docs/sdks/busy/README.md +5 -9
  15. package/docs/sdks/calendar/README.md +105 -189
  16. package/docs/sdks/call/README.md +5 -9
  17. package/docs/sdks/candidate/README.md +30 -54
  18. package/docs/sdks/channel/README.md +10 -18
  19. package/docs/sdks/class/README.md +30 -54
  20. package/docs/sdks/collection/README.md +30 -54
  21. package/docs/sdks/comment/README.md +90 -162
  22. package/docs/sdks/commerce/README.md +150 -270
  23. package/docs/sdks/commit/README.md +30 -54
  24. package/docs/sdks/company/README.md +75 -135
  25. package/docs/sdks/connection/README.md +30 -54
  26. package/docs/sdks/contact/README.md +90 -162
  27. package/docs/sdks/course/README.md +30 -54
  28. package/docs/sdks/crm/README.md +180 -324
  29. package/docs/sdks/customer/README.md +30 -54
  30. package/docs/sdks/deal/README.md +30 -54
  31. package/docs/sdks/device/README.md +30 -54
  32. package/docs/sdks/document/README.md +30 -54
  33. package/docs/sdks/employee/README.md +30 -54
  34. package/docs/sdks/enrich/README.md +10 -18
  35. package/docs/sdks/event/README.md +60 -108
  36. package/docs/sdks/file/README.md +30 -54
  37. package/docs/sdks/genai/README.md +10 -18
  38. package/docs/sdks/group/README.md +60 -108
  39. package/docs/sdks/hris/README.md +200 -360
  40. package/docs/sdks/instructor/README.md +30 -54
  41. package/docs/sdks/integration/README.md +15 -27
  42. package/docs/sdks/interview/README.md +30 -54
  43. package/docs/sdks/inventory/README.md +30 -54
  44. package/docs/sdks/invoice/README.md +30 -54
  45. package/docs/sdks/issue/README.md +5 -9
  46. package/docs/sdks/item/README.md +30 -54
  47. package/docs/sdks/job/README.md +30 -54
  48. package/docs/sdks/journal/README.md +30 -54
  49. package/docs/sdks/kms/README.md +90 -162
  50. package/docs/sdks/lead/README.md +30 -54
  51. package/docs/sdks/link/README.md +60 -108
  52. package/docs/sdks/list/README.md +30 -54
  53. package/docs/sdks/lms/README.md +120 -216
  54. package/docs/sdks/location/README.md +60 -108
  55. package/docs/sdks/login/README.md +5 -9
  56. package/docs/sdks/martech/README.md +60 -108
  57. package/docs/sdks/member/README.md +30 -54
  58. package/docs/sdks/message/README.md +30 -54
  59. package/docs/sdks/messaging/README.md +40 -72
  60. package/docs/sdks/metadata/README.md +30 -54
  61. package/docs/sdks/model/README.md +5 -9
  62. package/docs/sdks/note/README.md +30 -54
  63. package/docs/sdks/order/README.md +30 -54
  64. package/docs/sdks/organization/README.md +40 -72
  65. package/docs/sdks/page/README.md +30 -54
  66. package/docs/sdks/passthrough/README.md +40 -72
  67. package/docs/sdks/payment/README.md +110 -198
  68. package/docs/sdks/payout/README.md +10 -18
  69. package/docs/sdks/payslip/README.md +10 -18
  70. package/docs/sdks/person/README.md +5 -9
  71. package/docs/sdks/pipeline/README.md +30 -54
  72. package/docs/sdks/project/README.md +30 -54
  73. package/docs/sdks/prompt/README.md +5 -9
  74. package/docs/sdks/pullrequest/README.md +30 -54
  75. package/docs/sdks/recording/README.md +40 -72
  76. package/docs/sdks/refund/README.md +10 -18
  77. package/docs/sdks/repo/README.md +150 -270
  78. package/docs/sdks/report/README.md +10 -18
  79. package/docs/sdks/repository/README.md +30 -54
  80. package/docs/sdks/review/README.md +30 -54
  81. package/docs/sdks/scim/README.md +60 -108
  82. package/docs/sdks/scorecard/README.md +30 -54
  83. package/docs/sdks/space/README.md +30 -54
  84. package/docs/sdks/storage/README.md +30 -54
  85. package/docs/sdks/student/README.md +30 -54
  86. package/docs/sdks/subscription/README.md +30 -54
  87. package/docs/sdks/task/README.md +90 -162
  88. package/docs/sdks/taxrate/README.md +30 -54
  89. package/docs/sdks/ticket/README.md +30 -54
  90. package/docs/sdks/ticketing/README.md +90 -162
  91. package/docs/sdks/timeoff/README.md +10 -18
  92. package/docs/sdks/timeshift/README.md +30 -54
  93. package/docs/sdks/transaction/README.md +30 -54
  94. package/docs/sdks/uc/README.md +95 -171
  95. package/docs/sdks/unified/README.md +100 -180
  96. package/docs/sdks/user/README.md +30 -54
  97. package/docs/sdks/webhook/README.md +40 -72
  98. package/funcs/applicationListAtsApplications.js +1 -0
  99. package/funcs/applicationListAtsApplications.js.map +1 -1
  100. package/funcs/atsListAtsApplications.js +1 -0
  101. package/funcs/atsListAtsApplications.js.map +1 -1
  102. package/funcs/atsListAtsCandidates.js +1 -0
  103. package/funcs/atsListAtsCandidates.js.map +1 -1
  104. package/funcs/atsListAtsJobs.js +1 -0
  105. package/funcs/atsListAtsJobs.js.map +1 -1
  106. package/funcs/busyListCalendarBusies.js +1 -0
  107. package/funcs/busyListCalendarBusies.js.map +1 -1
  108. package/funcs/calendarListCalendarBusies.js +1 -0
  109. package/funcs/calendarListCalendarBusies.js.map +1 -1
  110. package/funcs/candidateListAtsCandidates.js +1 -0
  111. package/funcs/candidateListAtsCandidates.js.map +1 -1
  112. package/funcs/hrisListHrisLocations.js +1 -0
  113. package/funcs/hrisListHrisLocations.js.map +1 -1
  114. package/funcs/jobListAtsJobs.js +1 -0
  115. package/funcs/jobListAtsJobs.js.map +1 -1
  116. package/funcs/locationListHrisLocations.js +1 -0
  117. package/funcs/locationListHrisLocations.js.map +1 -1
  118. package/jsr.json +1 -1
  119. package/lib/config.d.ts +3 -3
  120. package/lib/config.js +3 -3
  121. package/mcp-server/mcp-server.js +1 -1
  122. package/mcp-server/server.js +1 -1
  123. package/package.json +1 -1
  124. package/sdk/models/errors/sdkerror.d.ts +14 -2
  125. package/sdk/models/errors/sdkerror.d.ts.map +1 -1
  126. package/sdk/models/errors/sdkerror.js +1 -1
  127. package/sdk/models/errors/sdkerror.js.map +1 -1
  128. package/sdk/models/operations/listatsapplications.d.ts +5 -0
  129. package/sdk/models/operations/listatsapplications.d.ts.map +1 -1
  130. package/sdk/models/operations/listatsapplications.js +4 -0
  131. package/sdk/models/operations/listatsapplications.js.map +1 -1
  132. package/sdk/models/operations/listatscandidates.d.ts +5 -0
  133. package/sdk/models/operations/listatscandidates.d.ts.map +1 -1
  134. package/sdk/models/operations/listatscandidates.js +4 -0
  135. package/sdk/models/operations/listatscandidates.js.map +1 -1
  136. package/sdk/models/operations/listatsjobs.d.ts +5 -0
  137. package/sdk/models/operations/listatsjobs.d.ts.map +1 -1
  138. package/sdk/models/operations/listatsjobs.js +4 -0
  139. package/sdk/models/operations/listatsjobs.js.map +1 -1
  140. package/sdk/models/operations/listcalendarbusies.d.ts +5 -0
  141. package/sdk/models/operations/listcalendarbusies.d.ts.map +1 -1
  142. package/sdk/models/operations/listcalendarbusies.js +4 -0
  143. package/sdk/models/operations/listcalendarbusies.js.map +1 -1
  144. package/sdk/models/operations/listhrislocations.d.ts +5 -0
  145. package/sdk/models/operations/listhrislocations.d.ts.map +1 -1
  146. package/sdk/models/operations/listhrislocations.js +4 -0
  147. package/sdk/models/operations/listhrislocations.js.map +1 -1
  148. package/sdk/models/shared/accountingaccount.d.ts +2 -0
  149. package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
  150. package/sdk/models/shared/accountingaccount.js +4 -0
  151. package/sdk/models/shared/accountingaccount.js.map +1 -1
  152. package/sdk/models/shared/commercelocation.d.ts +6 -0
  153. package/sdk/models/shared/commercelocation.d.ts.map +1 -1
  154. package/sdk/models/shared/commercelocation.js +10 -0
  155. package/sdk/models/shared/commercelocation.js.map +1 -1
  156. package/sdk/models/shared/webhook.d.ts +3 -0
  157. package/sdk/models/shared/webhook.d.ts.map +1 -1
  158. package/sdk/models/shared/webhook.js +1 -0
  159. package/sdk/models/shared/webhook.js.map +1 -1
  160. package/src/funcs/applicationListAtsApplications.ts +1 -0
  161. package/src/funcs/atsListAtsApplications.ts +1 -0
  162. package/src/funcs/atsListAtsCandidates.ts +1 -0
  163. package/src/funcs/atsListAtsJobs.ts +1 -0
  164. package/src/funcs/busyListCalendarBusies.ts +1 -0
  165. package/src/funcs/calendarListCalendarBusies.ts +1 -0
  166. package/src/funcs/candidateListAtsCandidates.ts +1 -0
  167. package/src/funcs/hrisListHrisLocations.ts +1 -0
  168. package/src/funcs/jobListAtsJobs.ts +1 -0
  169. package/src/funcs/locationListHrisLocations.ts +1 -0
  170. package/src/lib/config.ts +3 -3
  171. package/src/mcp-server/mcp-server.ts +1 -1
  172. package/src/mcp-server/server.ts +1 -1
  173. package/src/sdk/models/errors/sdkerror.ts +18 -3
  174. package/src/sdk/models/operations/listatsapplications.ts +9 -0
  175. package/src/sdk/models/operations/listatscandidates.ts +9 -0
  176. package/src/sdk/models/operations/listatsjobs.ts +9 -0
  177. package/src/sdk/models/operations/listcalendarbusies.ts +9 -0
  178. package/src/sdk/models/operations/listhrislocations.ts +9 -0
  179. package/src/sdk/models/shared/accountingaccount.ts +6 -0
  180. package/src/sdk/models/shared/commercelocation.ts +16 -0
  181. package/src/sdk/models/shared/webhook.ts +1 -0
@@ -59,7 +59,6 @@ async function run() {
59
59
  connectionId: "<id>",
60
60
  });
61
61
 
62
- // Handle the result
63
62
  console.log(result);
64
63
  }
65
64
 
@@ -89,15 +88,12 @@ async function run() {
89
88
  },
90
89
  connectionId: "<id>",
91
90
  });
92
-
93
- if (!res.ok) {
94
- throw res.error;
91
+ if (res.ok) {
92
+ const { value: result } = res;
93
+ console.log(result);
94
+ } else {
95
+ console.log("commerceCreateCommerceCollection failed:", res.error);
95
96
  }
96
-
97
- const { value: result } = res;
98
-
99
- // Handle the result
100
- console.log(result);
101
97
  }
102
98
 
103
99
  run();
@@ -145,7 +141,6 @@ async function run() {
145
141
  connectionId: "<id>",
146
142
  });
147
143
 
148
- // Handle the result
149
144
  console.log(result);
150
145
  }
151
146
 
@@ -175,15 +170,12 @@ async function run() {
175
170
  },
176
171
  connectionId: "<id>",
177
172
  });
178
-
179
- if (!res.ok) {
180
- throw res.error;
173
+ if (res.ok) {
174
+ const { value: result } = res;
175
+ console.log(result);
176
+ } else {
177
+ console.log("commerceCreateCommerceInventory failed:", res.error);
181
178
  }
182
-
183
- const { value: result } = res;
184
-
185
- // Handle the result
186
- console.log(result);
187
179
  }
188
180
 
189
181
  run();
@@ -229,7 +221,6 @@ async function run() {
229
221
  connectionId: "<id>",
230
222
  });
231
223
 
232
- // Handle the result
233
224
  console.log(result);
234
225
  }
235
226
 
@@ -257,15 +248,12 @@ async function run() {
257
248
  commerceItem: {},
258
249
  connectionId: "<id>",
259
250
  });
260
-
261
- if (!res.ok) {
262
- throw res.error;
251
+ if (res.ok) {
252
+ const { value: result } = res;
253
+ console.log(result);
254
+ } else {
255
+ console.log("commerceCreateCommerceItem failed:", res.error);
263
256
  }
264
-
265
- const { value: result } = res;
266
-
267
- // Handle the result
268
- console.log(result);
269
257
  }
270
258
 
271
259
  run();
@@ -313,7 +301,6 @@ async function run() {
313
301
  connectionId: "<id>",
314
302
  });
315
303
 
316
- // Handle the result
317
304
  console.log(result);
318
305
  }
319
306
 
@@ -343,15 +330,12 @@ async function run() {
343
330
  },
344
331
  connectionId: "<id>",
345
332
  });
346
-
347
- if (!res.ok) {
348
- throw res.error;
333
+ if (res.ok) {
334
+ const { value: result } = res;
335
+ console.log(result);
336
+ } else {
337
+ console.log("commerceCreateCommerceLocation failed:", res.error);
349
338
  }
350
-
351
- const { value: result } = res;
352
-
353
- // Handle the result
354
- console.log(result);
355
339
  }
356
340
 
357
341
  run();
@@ -399,7 +383,6 @@ async function run() {
399
383
  connectionId: "<id>",
400
384
  });
401
385
 
402
- // Handle the result
403
386
  console.log(result);
404
387
  }
405
388
 
@@ -429,15 +412,12 @@ async function run() {
429
412
  },
430
413
  connectionId: "<id>",
431
414
  });
432
-
433
- if (!res.ok) {
434
- throw res.error;
415
+ if (res.ok) {
416
+ const { value: result } = res;
417
+ console.log(result);
418
+ } else {
419
+ console.log("commerceCreateCommerceReview failed:", res.error);
435
420
  }
436
-
437
- const { value: result } = res;
438
-
439
- // Handle the result
440
- console.log(result);
441
421
  }
442
422
 
443
423
  run();
@@ -483,7 +463,6 @@ async function run() {
483
463
  id: "<id>",
484
464
  });
485
465
 
486
- // Handle the result
487
466
  console.log(result);
488
467
  }
489
468
 
@@ -511,15 +490,12 @@ async function run() {
511
490
  connectionId: "<id>",
512
491
  id: "<id>",
513
492
  });
514
-
515
- if (!res.ok) {
516
- throw res.error;
493
+ if (res.ok) {
494
+ const { value: result } = res;
495
+ console.log(result);
496
+ } else {
497
+ console.log("commerceGetCommerceCollection failed:", res.error);
517
498
  }
518
-
519
- const { value: result } = res;
520
-
521
- // Handle the result
522
- console.log(result);
523
499
  }
524
500
 
525
501
  run();
@@ -565,7 +541,6 @@ async function run() {
565
541
  id: "<id>",
566
542
  });
567
543
 
568
- // Handle the result
569
544
  console.log(result);
570
545
  }
571
546
 
@@ -593,15 +568,12 @@ async function run() {
593
568
  connectionId: "<id>",
594
569
  id: "<id>",
595
570
  });
596
-
597
- if (!res.ok) {
598
- throw res.error;
571
+ if (res.ok) {
572
+ const { value: result } = res;
573
+ console.log(result);
574
+ } else {
575
+ console.log("commerceGetCommerceInventory failed:", res.error);
599
576
  }
600
-
601
- const { value: result } = res;
602
-
603
- // Handle the result
604
- console.log(result);
605
577
  }
606
578
 
607
579
  run();
@@ -647,7 +619,6 @@ async function run() {
647
619
  id: "<id>",
648
620
  });
649
621
 
650
- // Handle the result
651
622
  console.log(result);
652
623
  }
653
624
 
@@ -675,15 +646,12 @@ async function run() {
675
646
  connectionId: "<id>",
676
647
  id: "<id>",
677
648
  });
678
-
679
- if (!res.ok) {
680
- throw res.error;
649
+ if (res.ok) {
650
+ const { value: result } = res;
651
+ console.log(result);
652
+ } else {
653
+ console.log("commerceGetCommerceItem failed:", res.error);
681
654
  }
682
-
683
- const { value: result } = res;
684
-
685
- // Handle the result
686
- console.log(result);
687
655
  }
688
656
 
689
657
  run();
@@ -729,7 +697,6 @@ async function run() {
729
697
  id: "<id>",
730
698
  });
731
699
 
732
- // Handle the result
733
700
  console.log(result);
734
701
  }
735
702
 
@@ -757,15 +724,12 @@ async function run() {
757
724
  connectionId: "<id>",
758
725
  id: "<id>",
759
726
  });
760
-
761
- if (!res.ok) {
762
- throw res.error;
727
+ if (res.ok) {
728
+ const { value: result } = res;
729
+ console.log(result);
730
+ } else {
731
+ console.log("commerceGetCommerceLocation failed:", res.error);
763
732
  }
764
-
765
- const { value: result } = res;
766
-
767
- // Handle the result
768
- console.log(result);
769
733
  }
770
734
 
771
735
  run();
@@ -811,7 +775,6 @@ async function run() {
811
775
  id: "<id>",
812
776
  });
813
777
 
814
- // Handle the result
815
778
  console.log(result);
816
779
  }
817
780
 
@@ -839,15 +802,12 @@ async function run() {
839
802
  connectionId: "<id>",
840
803
  id: "<id>",
841
804
  });
842
-
843
- if (!res.ok) {
844
- throw res.error;
805
+ if (res.ok) {
806
+ const { value: result } = res;
807
+ console.log(result);
808
+ } else {
809
+ console.log("commerceGetCommerceReview failed:", res.error);
845
810
  }
846
-
847
- const { value: result } = res;
848
-
849
- // Handle the result
850
- console.log(result);
851
811
  }
852
812
 
853
813
  run();
@@ -892,7 +852,6 @@ async function run() {
892
852
  connectionId: "<id>",
893
853
  });
894
854
 
895
- // Handle the result
896
855
  console.log(result);
897
856
  }
898
857
 
@@ -919,15 +878,12 @@ async function run() {
919
878
  const res = await commerceListCommerceCollections(unifiedTo, {
920
879
  connectionId: "<id>",
921
880
  });
922
-
923
- if (!res.ok) {
924
- throw res.error;
881
+ if (res.ok) {
882
+ const { value: result } = res;
883
+ console.log(result);
884
+ } else {
885
+ console.log("commerceListCommerceCollections failed:", res.error);
925
886
  }
926
-
927
- const { value: result } = res;
928
-
929
- // Handle the result
930
- console.log(result);
931
887
  }
932
888
 
933
889
  run();
@@ -972,7 +928,6 @@ async function run() {
972
928
  connectionId: "<id>",
973
929
  });
974
930
 
975
- // Handle the result
976
931
  console.log(result);
977
932
  }
978
933
 
@@ -999,15 +954,12 @@ async function run() {
999
954
  const res = await commerceListCommerceInventories(unifiedTo, {
1000
955
  connectionId: "<id>",
1001
956
  });
1002
-
1003
- if (!res.ok) {
1004
- throw res.error;
957
+ if (res.ok) {
958
+ const { value: result } = res;
959
+ console.log(result);
960
+ } else {
961
+ console.log("commerceListCommerceInventories failed:", res.error);
1005
962
  }
1006
-
1007
- const { value: result } = res;
1008
-
1009
- // Handle the result
1010
- console.log(result);
1011
963
  }
1012
964
 
1013
965
  run();
@@ -1052,7 +1004,6 @@ async function run() {
1052
1004
  connectionId: "<id>",
1053
1005
  });
1054
1006
 
1055
- // Handle the result
1056
1007
  console.log(result);
1057
1008
  }
1058
1009
 
@@ -1079,15 +1030,12 @@ async function run() {
1079
1030
  const res = await commerceListCommerceItems(unifiedTo, {
1080
1031
  connectionId: "<id>",
1081
1032
  });
1082
-
1083
- if (!res.ok) {
1084
- throw res.error;
1033
+ if (res.ok) {
1034
+ const { value: result } = res;
1035
+ console.log(result);
1036
+ } else {
1037
+ console.log("commerceListCommerceItems failed:", res.error);
1085
1038
  }
1086
-
1087
- const { value: result } = res;
1088
-
1089
- // Handle the result
1090
- console.log(result);
1091
1039
  }
1092
1040
 
1093
1041
  run();
@@ -1132,7 +1080,6 @@ async function run() {
1132
1080
  connectionId: "<id>",
1133
1081
  });
1134
1082
 
1135
- // Handle the result
1136
1083
  console.log(result);
1137
1084
  }
1138
1085
 
@@ -1159,15 +1106,12 @@ async function run() {
1159
1106
  const res = await commerceListCommerceLocations(unifiedTo, {
1160
1107
  connectionId: "<id>",
1161
1108
  });
1162
-
1163
- if (!res.ok) {
1164
- throw res.error;
1109
+ if (res.ok) {
1110
+ const { value: result } = res;
1111
+ console.log(result);
1112
+ } else {
1113
+ console.log("commerceListCommerceLocations failed:", res.error);
1165
1114
  }
1166
-
1167
- const { value: result } = res;
1168
-
1169
- // Handle the result
1170
- console.log(result);
1171
1115
  }
1172
1116
 
1173
1117
  run();
@@ -1212,7 +1156,6 @@ async function run() {
1212
1156
  connectionId: "<id>",
1213
1157
  });
1214
1158
 
1215
- // Handle the result
1216
1159
  console.log(result);
1217
1160
  }
1218
1161
 
@@ -1239,15 +1182,12 @@ async function run() {
1239
1182
  const res = await commerceListCommerceReviews(unifiedTo, {
1240
1183
  connectionId: "<id>",
1241
1184
  });
1242
-
1243
- if (!res.ok) {
1244
- throw res.error;
1185
+ if (res.ok) {
1186
+ const { value: result } = res;
1187
+ console.log(result);
1188
+ } else {
1189
+ console.log("commerceListCommerceReviews failed:", res.error);
1245
1190
  }
1246
-
1247
- const { value: result } = res;
1248
-
1249
- // Handle the result
1250
- console.log(result);
1251
1191
  }
1252
1192
 
1253
1193
  run();
@@ -1296,7 +1236,6 @@ async function run() {
1296
1236
  id: "<id>",
1297
1237
  });
1298
1238
 
1299
- // Handle the result
1300
1239
  console.log(result);
1301
1240
  }
1302
1241
 
@@ -1327,15 +1266,12 @@ async function run() {
1327
1266
  connectionId: "<id>",
1328
1267
  id: "<id>",
1329
1268
  });
1330
-
1331
- if (!res.ok) {
1332
- throw res.error;
1269
+ if (res.ok) {
1270
+ const { value: result } = res;
1271
+ console.log(result);
1272
+ } else {
1273
+ console.log("commercePatchCommerceCollection failed:", res.error);
1333
1274
  }
1334
-
1335
- const { value: result } = res;
1336
-
1337
- // Handle the result
1338
- console.log(result);
1339
1275
  }
1340
1276
 
1341
1277
  run();
@@ -1384,7 +1320,6 @@ async function run() {
1384
1320
  id: "<id>",
1385
1321
  });
1386
1322
 
1387
- // Handle the result
1388
1323
  console.log(result);
1389
1324
  }
1390
1325
 
@@ -1415,15 +1350,12 @@ async function run() {
1415
1350
  connectionId: "<id>",
1416
1351
  id: "<id>",
1417
1352
  });
1418
-
1419
- if (!res.ok) {
1420
- throw res.error;
1353
+ if (res.ok) {
1354
+ const { value: result } = res;
1355
+ console.log(result);
1356
+ } else {
1357
+ console.log("commercePatchCommerceInventory failed:", res.error);
1421
1358
  }
1422
-
1423
- const { value: result } = res;
1424
-
1425
- // Handle the result
1426
- console.log(result);
1427
1359
  }
1428
1360
 
1429
1361
  run();
@@ -1470,7 +1402,6 @@ async function run() {
1470
1402
  id: "<id>",
1471
1403
  });
1472
1404
 
1473
- // Handle the result
1474
1405
  console.log(result);
1475
1406
  }
1476
1407
 
@@ -1499,15 +1430,12 @@ async function run() {
1499
1430
  connectionId: "<id>",
1500
1431
  id: "<id>",
1501
1432
  });
1502
-
1503
- if (!res.ok) {
1504
- throw res.error;
1433
+ if (res.ok) {
1434
+ const { value: result } = res;
1435
+ console.log(result);
1436
+ } else {
1437
+ console.log("commercePatchCommerceItem failed:", res.error);
1505
1438
  }
1506
-
1507
- const { value: result } = res;
1508
-
1509
- // Handle the result
1510
- console.log(result);
1511
1439
  }
1512
1440
 
1513
1441
  run();
@@ -1556,7 +1484,6 @@ async function run() {
1556
1484
  id: "<id>",
1557
1485
  });
1558
1486
 
1559
- // Handle the result
1560
1487
  console.log(result);
1561
1488
  }
1562
1489
 
@@ -1587,15 +1514,12 @@ async function run() {
1587
1514
  connectionId: "<id>",
1588
1515
  id: "<id>",
1589
1516
  });
1590
-
1591
- if (!res.ok) {
1592
- throw res.error;
1517
+ if (res.ok) {
1518
+ const { value: result } = res;
1519
+ console.log(result);
1520
+ } else {
1521
+ console.log("commercePatchCommerceLocation failed:", res.error);
1593
1522
  }
1594
-
1595
- const { value: result } = res;
1596
-
1597
- // Handle the result
1598
- console.log(result);
1599
1523
  }
1600
1524
 
1601
1525
  run();
@@ -1644,7 +1568,6 @@ async function run() {
1644
1568
  id: "<id>",
1645
1569
  });
1646
1570
 
1647
- // Handle the result
1648
1571
  console.log(result);
1649
1572
  }
1650
1573
 
@@ -1675,15 +1598,12 @@ async function run() {
1675
1598
  connectionId: "<id>",
1676
1599
  id: "<id>",
1677
1600
  });
1678
-
1679
- if (!res.ok) {
1680
- throw res.error;
1601
+ if (res.ok) {
1602
+ const { value: result } = res;
1603
+ console.log(result);
1604
+ } else {
1605
+ console.log("commercePatchCommerceReview failed:", res.error);
1681
1606
  }
1682
-
1683
- const { value: result } = res;
1684
-
1685
- // Handle the result
1686
- console.log(result);
1687
1607
  }
1688
1608
 
1689
1609
  run();
@@ -1729,7 +1649,6 @@ async function run() {
1729
1649
  id: "<id>",
1730
1650
  });
1731
1651
 
1732
- // Handle the result
1733
1652
  console.log(result);
1734
1653
  }
1735
1654
 
@@ -1757,15 +1676,12 @@ async function run() {
1757
1676
  connectionId: "<id>",
1758
1677
  id: "<id>",
1759
1678
  });
1760
-
1761
- if (!res.ok) {
1762
- throw res.error;
1679
+ if (res.ok) {
1680
+ const { value: result } = res;
1681
+ console.log(result);
1682
+ } else {
1683
+ console.log("commerceRemoveCommerceCollection failed:", res.error);
1763
1684
  }
1764
-
1765
- const { value: result } = res;
1766
-
1767
- // Handle the result
1768
- console.log(result);
1769
1685
  }
1770
1686
 
1771
1687
  run();
@@ -1811,7 +1727,6 @@ async function run() {
1811
1727
  id: "<id>",
1812
1728
  });
1813
1729
 
1814
- // Handle the result
1815
1730
  console.log(result);
1816
1731
  }
1817
1732
 
@@ -1839,15 +1754,12 @@ async function run() {
1839
1754
  connectionId: "<id>",
1840
1755
  id: "<id>",
1841
1756
  });
1842
-
1843
- if (!res.ok) {
1844
- throw res.error;
1757
+ if (res.ok) {
1758
+ const { value: result } = res;
1759
+ console.log(result);
1760
+ } else {
1761
+ console.log("commerceRemoveCommerceInventory failed:", res.error);
1845
1762
  }
1846
-
1847
- const { value: result } = res;
1848
-
1849
- // Handle the result
1850
- console.log(result);
1851
1763
  }
1852
1764
 
1853
1765
  run();
@@ -1893,7 +1805,6 @@ async function run() {
1893
1805
  id: "<id>",
1894
1806
  });
1895
1807
 
1896
- // Handle the result
1897
1808
  console.log(result);
1898
1809
  }
1899
1810
 
@@ -1921,15 +1832,12 @@ async function run() {
1921
1832
  connectionId: "<id>",
1922
1833
  id: "<id>",
1923
1834
  });
1924
-
1925
- if (!res.ok) {
1926
- throw res.error;
1835
+ if (res.ok) {
1836
+ const { value: result } = res;
1837
+ console.log(result);
1838
+ } else {
1839
+ console.log("commerceRemoveCommerceItem failed:", res.error);
1927
1840
  }
1928
-
1929
- const { value: result } = res;
1930
-
1931
- // Handle the result
1932
- console.log(result);
1933
1841
  }
1934
1842
 
1935
1843
  run();
@@ -1975,7 +1883,6 @@ async function run() {
1975
1883
  id: "<id>",
1976
1884
  });
1977
1885
 
1978
- // Handle the result
1979
1886
  console.log(result);
1980
1887
  }
1981
1888
 
@@ -2003,15 +1910,12 @@ async function run() {
2003
1910
  connectionId: "<id>",
2004
1911
  id: "<id>",
2005
1912
  });
2006
-
2007
- if (!res.ok) {
2008
- throw res.error;
1913
+ if (res.ok) {
1914
+ const { value: result } = res;
1915
+ console.log(result);
1916
+ } else {
1917
+ console.log("commerceRemoveCommerceLocation failed:", res.error);
2009
1918
  }
2010
-
2011
- const { value: result } = res;
2012
-
2013
- // Handle the result
2014
- console.log(result);
2015
1919
  }
2016
1920
 
2017
1921
  run();
@@ -2057,7 +1961,6 @@ async function run() {
2057
1961
  id: "<id>",
2058
1962
  });
2059
1963
 
2060
- // Handle the result
2061
1964
  console.log(result);
2062
1965
  }
2063
1966
 
@@ -2085,15 +1988,12 @@ async function run() {
2085
1988
  connectionId: "<id>",
2086
1989
  id: "<id>",
2087
1990
  });
2088
-
2089
- if (!res.ok) {
2090
- throw res.error;
1991
+ if (res.ok) {
1992
+ const { value: result } = res;
1993
+ console.log(result);
1994
+ } else {
1995
+ console.log("commerceRemoveCommerceReview failed:", res.error);
2091
1996
  }
2092
-
2093
- const { value: result } = res;
2094
-
2095
- // Handle the result
2096
- console.log(result);
2097
1997
  }
2098
1998
 
2099
1999
  run();
@@ -2142,7 +2042,6 @@ async function run() {
2142
2042
  id: "<id>",
2143
2043
  });
2144
2044
 
2145
- // Handle the result
2146
2045
  console.log(result);
2147
2046
  }
2148
2047
 
@@ -2173,15 +2072,12 @@ async function run() {
2173
2072
  connectionId: "<id>",
2174
2073
  id: "<id>",
2175
2074
  });
2176
-
2177
- if (!res.ok) {
2178
- throw res.error;
2075
+ if (res.ok) {
2076
+ const { value: result } = res;
2077
+ console.log(result);
2078
+ } else {
2079
+ console.log("commerceUpdateCommerceCollection failed:", res.error);
2179
2080
  }
2180
-
2181
- const { value: result } = res;
2182
-
2183
- // Handle the result
2184
- console.log(result);
2185
2081
  }
2186
2082
 
2187
2083
  run();
@@ -2230,7 +2126,6 @@ async function run() {
2230
2126
  id: "<id>",
2231
2127
  });
2232
2128
 
2233
- // Handle the result
2234
2129
  console.log(result);
2235
2130
  }
2236
2131
 
@@ -2261,15 +2156,12 @@ async function run() {
2261
2156
  connectionId: "<id>",
2262
2157
  id: "<id>",
2263
2158
  });
2264
-
2265
- if (!res.ok) {
2266
- throw res.error;
2159
+ if (res.ok) {
2160
+ const { value: result } = res;
2161
+ console.log(result);
2162
+ } else {
2163
+ console.log("commerceUpdateCommerceInventory failed:", res.error);
2267
2164
  }
2268
-
2269
- const { value: result } = res;
2270
-
2271
- // Handle the result
2272
- console.log(result);
2273
2165
  }
2274
2166
 
2275
2167
  run();
@@ -2316,7 +2208,6 @@ async function run() {
2316
2208
  id: "<id>",
2317
2209
  });
2318
2210
 
2319
- // Handle the result
2320
2211
  console.log(result);
2321
2212
  }
2322
2213
 
@@ -2345,15 +2236,12 @@ async function run() {
2345
2236
  connectionId: "<id>",
2346
2237
  id: "<id>",
2347
2238
  });
2348
-
2349
- if (!res.ok) {
2350
- throw res.error;
2239
+ if (res.ok) {
2240
+ const { value: result } = res;
2241
+ console.log(result);
2242
+ } else {
2243
+ console.log("commerceUpdateCommerceItem failed:", res.error);
2351
2244
  }
2352
-
2353
- const { value: result } = res;
2354
-
2355
- // Handle the result
2356
- console.log(result);
2357
2245
  }
2358
2246
 
2359
2247
  run();
@@ -2402,7 +2290,6 @@ async function run() {
2402
2290
  id: "<id>",
2403
2291
  });
2404
2292
 
2405
- // Handle the result
2406
2293
  console.log(result);
2407
2294
  }
2408
2295
 
@@ -2433,15 +2320,12 @@ async function run() {
2433
2320
  connectionId: "<id>",
2434
2321
  id: "<id>",
2435
2322
  });
2436
-
2437
- if (!res.ok) {
2438
- throw res.error;
2323
+ if (res.ok) {
2324
+ const { value: result } = res;
2325
+ console.log(result);
2326
+ } else {
2327
+ console.log("commerceUpdateCommerceLocation failed:", res.error);
2439
2328
  }
2440
-
2441
- const { value: result } = res;
2442
-
2443
- // Handle the result
2444
- console.log(result);
2445
2329
  }
2446
2330
 
2447
2331
  run();
@@ -2490,7 +2374,6 @@ async function run() {
2490
2374
  id: "<id>",
2491
2375
  });
2492
2376
 
2493
- // Handle the result
2494
2377
  console.log(result);
2495
2378
  }
2496
2379
 
@@ -2521,15 +2404,12 @@ async function run() {
2521
2404
  connectionId: "<id>",
2522
2405
  id: "<id>",
2523
2406
  });
2524
-
2525
- if (!res.ok) {
2526
- throw res.error;
2407
+ if (res.ok) {
2408
+ const { value: result } = res;
2409
+ console.log(result);
2410
+ } else {
2411
+ console.log("commerceUpdateCommerceReview failed:", res.error);
2527
2412
  }
2528
-
2529
- const { value: result } = res;
2530
-
2531
- // Handle the result
2532
- console.log(result);
2533
2413
  }
2534
2414
 
2535
2415
  run();