@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
@@ -41,7 +41,6 @@ async function run() {
41
41
  connectionId: "<id>",
42
42
  });
43
43
 
44
- // Handle the result
45
44
  console.log(result);
46
45
  }
47
46
 
@@ -71,15 +70,12 @@ async function run() {
71
70
  },
72
71
  connectionId: "<id>",
73
72
  });
74
-
75
- if (!res.ok) {
76
- throw res.error;
73
+ if (res.ok) {
74
+ const { value: result } = res;
75
+ console.log(result);
76
+ } else {
77
+ console.log("locationCreateCommerceLocation failed:", res.error);
77
78
  }
78
-
79
- const { value: result } = res;
80
-
81
- // Handle the result
82
- console.log(result);
83
79
  }
84
80
 
85
81
  run();
@@ -125,7 +121,6 @@ async function run() {
125
121
  connectionId: "<id>",
126
122
  });
127
123
 
128
- // Handle the result
129
124
  console.log(result);
130
125
  }
131
126
 
@@ -153,15 +148,12 @@ async function run() {
153
148
  hrisLocation: {},
154
149
  connectionId: "<id>",
155
150
  });
156
-
157
- if (!res.ok) {
158
- throw res.error;
151
+ if (res.ok) {
152
+ const { value: result } = res;
153
+ console.log(result);
154
+ } else {
155
+ console.log("locationCreateHrisLocation failed:", res.error);
159
156
  }
160
-
161
- const { value: result } = res;
162
-
163
- // Handle the result
164
- console.log(result);
165
157
  }
166
158
 
167
159
  run();
@@ -207,7 +199,6 @@ async function run() {
207
199
  id: "<id>",
208
200
  });
209
201
 
210
- // Handle the result
211
202
  console.log(result);
212
203
  }
213
204
 
@@ -235,15 +226,12 @@ async function run() {
235
226
  connectionId: "<id>",
236
227
  id: "<id>",
237
228
  });
238
-
239
- if (!res.ok) {
240
- throw res.error;
229
+ if (res.ok) {
230
+ const { value: result } = res;
231
+ console.log(result);
232
+ } else {
233
+ console.log("locationGetCommerceLocation failed:", res.error);
241
234
  }
242
-
243
- const { value: result } = res;
244
-
245
- // Handle the result
246
- console.log(result);
247
235
  }
248
236
 
249
237
  run();
@@ -289,7 +277,6 @@ async function run() {
289
277
  id: "<id>",
290
278
  });
291
279
 
292
- // Handle the result
293
280
  console.log(result);
294
281
  }
295
282
 
@@ -317,15 +304,12 @@ async function run() {
317
304
  connectionId: "<id>",
318
305
  id: "<id>",
319
306
  });
320
-
321
- if (!res.ok) {
322
- throw res.error;
307
+ if (res.ok) {
308
+ const { value: result } = res;
309
+ console.log(result);
310
+ } else {
311
+ console.log("locationGetHrisLocation failed:", res.error);
323
312
  }
324
-
325
- const { value: result } = res;
326
-
327
- // Handle the result
328
- console.log(result);
329
313
  }
330
314
 
331
315
  run();
@@ -370,7 +354,6 @@ async function run() {
370
354
  connectionId: "<id>",
371
355
  });
372
356
 
373
- // Handle the result
374
357
  console.log(result);
375
358
  }
376
359
 
@@ -397,15 +380,12 @@ async function run() {
397
380
  const res = await locationListCommerceLocations(unifiedTo, {
398
381
  connectionId: "<id>",
399
382
  });
400
-
401
- if (!res.ok) {
402
- throw res.error;
383
+ if (res.ok) {
384
+ const { value: result } = res;
385
+ console.log(result);
386
+ } else {
387
+ console.log("locationListCommerceLocations failed:", res.error);
403
388
  }
404
-
405
- const { value: result } = res;
406
-
407
- // Handle the result
408
- console.log(result);
409
389
  }
410
390
 
411
391
  run();
@@ -450,7 +430,6 @@ async function run() {
450
430
  connectionId: "<id>",
451
431
  });
452
432
 
453
- // Handle the result
454
433
  console.log(result);
455
434
  }
456
435
 
@@ -477,15 +456,12 @@ async function run() {
477
456
  const res = await locationListHrisLocations(unifiedTo, {
478
457
  connectionId: "<id>",
479
458
  });
480
-
481
- if (!res.ok) {
482
- throw res.error;
459
+ if (res.ok) {
460
+ const { value: result } = res;
461
+ console.log(result);
462
+ } else {
463
+ console.log("locationListHrisLocations failed:", res.error);
483
464
  }
484
-
485
- const { value: result } = res;
486
-
487
- // Handle the result
488
- console.log(result);
489
465
  }
490
466
 
491
467
  run();
@@ -534,7 +510,6 @@ async function run() {
534
510
  id: "<id>",
535
511
  });
536
512
 
537
- // Handle the result
538
513
  console.log(result);
539
514
  }
540
515
 
@@ -565,15 +540,12 @@ async function run() {
565
540
  connectionId: "<id>",
566
541
  id: "<id>",
567
542
  });
568
-
569
- if (!res.ok) {
570
- throw res.error;
543
+ if (res.ok) {
544
+ const { value: result } = res;
545
+ console.log(result);
546
+ } else {
547
+ console.log("locationPatchCommerceLocation failed:", res.error);
571
548
  }
572
-
573
- const { value: result } = res;
574
-
575
- // Handle the result
576
- console.log(result);
577
549
  }
578
550
 
579
551
  run();
@@ -620,7 +592,6 @@ async function run() {
620
592
  id: "<id>",
621
593
  });
622
594
 
623
- // Handle the result
624
595
  console.log(result);
625
596
  }
626
597
 
@@ -649,15 +620,12 @@ async function run() {
649
620
  connectionId: "<id>",
650
621
  id: "<id>",
651
622
  });
652
-
653
- if (!res.ok) {
654
- throw res.error;
623
+ if (res.ok) {
624
+ const { value: result } = res;
625
+ console.log(result);
626
+ } else {
627
+ console.log("locationPatchHrisLocation failed:", res.error);
655
628
  }
656
-
657
- const { value: result } = res;
658
-
659
- // Handle the result
660
- console.log(result);
661
629
  }
662
630
 
663
631
  run();
@@ -703,7 +671,6 @@ async function run() {
703
671
  id: "<id>",
704
672
  });
705
673
 
706
- // Handle the result
707
674
  console.log(result);
708
675
  }
709
676
 
@@ -731,15 +698,12 @@ async function run() {
731
698
  connectionId: "<id>",
732
699
  id: "<id>",
733
700
  });
734
-
735
- if (!res.ok) {
736
- throw res.error;
701
+ if (res.ok) {
702
+ const { value: result } = res;
703
+ console.log(result);
704
+ } else {
705
+ console.log("locationRemoveCommerceLocation failed:", res.error);
737
706
  }
738
-
739
- const { value: result } = res;
740
-
741
- // Handle the result
742
- console.log(result);
743
707
  }
744
708
 
745
709
  run();
@@ -785,7 +749,6 @@ async function run() {
785
749
  id: "<id>",
786
750
  });
787
751
 
788
- // Handle the result
789
752
  console.log(result);
790
753
  }
791
754
 
@@ -813,15 +776,12 @@ async function run() {
813
776
  connectionId: "<id>",
814
777
  id: "<id>",
815
778
  });
816
-
817
- if (!res.ok) {
818
- throw res.error;
779
+ if (res.ok) {
780
+ const { value: result } = res;
781
+ console.log(result);
782
+ } else {
783
+ console.log("locationRemoveHrisLocation failed:", res.error);
819
784
  }
820
-
821
- const { value: result } = res;
822
-
823
- // Handle the result
824
- console.log(result);
825
785
  }
826
786
 
827
787
  run();
@@ -870,7 +830,6 @@ async function run() {
870
830
  id: "<id>",
871
831
  });
872
832
 
873
- // Handle the result
874
833
  console.log(result);
875
834
  }
876
835
 
@@ -901,15 +860,12 @@ async function run() {
901
860
  connectionId: "<id>",
902
861
  id: "<id>",
903
862
  });
904
-
905
- if (!res.ok) {
906
- throw res.error;
863
+ if (res.ok) {
864
+ const { value: result } = res;
865
+ console.log(result);
866
+ } else {
867
+ console.log("locationUpdateCommerceLocation failed:", res.error);
907
868
  }
908
-
909
- const { value: result } = res;
910
-
911
- // Handle the result
912
- console.log(result);
913
869
  }
914
870
 
915
871
  run();
@@ -956,7 +912,6 @@ async function run() {
956
912
  id: "<id>",
957
913
  });
958
914
 
959
- // Handle the result
960
915
  console.log(result);
961
916
  }
962
917
 
@@ -985,15 +940,12 @@ async function run() {
985
940
  connectionId: "<id>",
986
941
  id: "<id>",
987
942
  });
988
-
989
- if (!res.ok) {
990
- throw res.error;
943
+ if (res.ok) {
944
+ const { value: result } = res;
945
+ console.log(result);
946
+ } else {
947
+ console.log("locationUpdateHrisLocation failed:", res.error);
991
948
  }
992
-
993
- const { value: result } = res;
994
-
995
- // Handle the result
996
- console.log(result);
997
949
  }
998
950
 
999
951
  run();
@@ -28,7 +28,6 @@ async function run() {
28
28
  workspaceId: "<id>",
29
29
  });
30
30
 
31
- // Handle the result
32
31
  console.log(result);
33
32
  }
34
33
 
@@ -56,15 +55,12 @@ async function run() {
56
55
  integrationType: "<value>",
57
56
  workspaceId: "<id>",
58
57
  });
59
-
60
- if (!res.ok) {
61
- throw res.error;
58
+ if (res.ok) {
59
+ const { value: result } = res;
60
+ console.log(result);
61
+ } else {
62
+ console.log("loginGetUnifiedIntegrationLogin failed:", res.error);
62
63
  }
63
-
64
- const { value: result } = res;
65
-
66
- // Handle the result
67
- console.log(result);
68
64
  }
69
65
 
70
66
  run();
@@ -39,7 +39,6 @@ async function run() {
39
39
  connectionId: "<id>",
40
40
  });
41
41
 
42
- // Handle the result
43
42
  console.log(result);
44
43
  }
45
44
 
@@ -67,15 +66,12 @@ async function run() {
67
66
  marketingList: {},
68
67
  connectionId: "<id>",
69
68
  });
70
-
71
- if (!res.ok) {
72
- throw res.error;
69
+ if (res.ok) {
70
+ const { value: result } = res;
71
+ console.log(result);
72
+ } else {
73
+ console.log("martechCreateMartechList failed:", res.error);
73
74
  }
74
-
75
- const { value: result } = res;
76
-
77
- // Handle the result
78
- console.log(result);
79
75
  }
80
76
 
81
77
  run();
@@ -121,7 +117,6 @@ async function run() {
121
117
  connectionId: "<id>",
122
118
  });
123
119
 
124
- // Handle the result
125
120
  console.log(result);
126
121
  }
127
122
 
@@ -149,15 +144,12 @@ async function run() {
149
144
  marketingMember: {},
150
145
  connectionId: "<id>",
151
146
  });
152
-
153
- if (!res.ok) {
154
- throw res.error;
147
+ if (res.ok) {
148
+ const { value: result } = res;
149
+ console.log(result);
150
+ } else {
151
+ console.log("martechCreateMartechMember failed:", res.error);
155
152
  }
156
-
157
- const { value: result } = res;
158
-
159
- // Handle the result
160
- console.log(result);
161
153
  }
162
154
 
163
155
  run();
@@ -203,7 +195,6 @@ async function run() {
203
195
  id: "<id>",
204
196
  });
205
197
 
206
- // Handle the result
207
198
  console.log(result);
208
199
  }
209
200
 
@@ -231,15 +222,12 @@ async function run() {
231
222
  connectionId: "<id>",
232
223
  id: "<id>",
233
224
  });
234
-
235
- if (!res.ok) {
236
- throw res.error;
225
+ if (res.ok) {
226
+ const { value: result } = res;
227
+ console.log(result);
228
+ } else {
229
+ console.log("martechGetMartechList failed:", res.error);
237
230
  }
238
-
239
- const { value: result } = res;
240
-
241
- // Handle the result
242
- console.log(result);
243
231
  }
244
232
 
245
233
  run();
@@ -285,7 +273,6 @@ async function run() {
285
273
  id: "<id>",
286
274
  });
287
275
 
288
- // Handle the result
289
276
  console.log(result);
290
277
  }
291
278
 
@@ -313,15 +300,12 @@ async function run() {
313
300
  connectionId: "<id>",
314
301
  id: "<id>",
315
302
  });
316
-
317
- if (!res.ok) {
318
- throw res.error;
303
+ if (res.ok) {
304
+ const { value: result } = res;
305
+ console.log(result);
306
+ } else {
307
+ console.log("martechGetMartechMember failed:", res.error);
319
308
  }
320
-
321
- const { value: result } = res;
322
-
323
- // Handle the result
324
- console.log(result);
325
309
  }
326
310
 
327
311
  run();
@@ -366,7 +350,6 @@ async function run() {
366
350
  connectionId: "<id>",
367
351
  });
368
352
 
369
- // Handle the result
370
353
  console.log(result);
371
354
  }
372
355
 
@@ -393,15 +376,12 @@ async function run() {
393
376
  const res = await martechListMartechLists(unifiedTo, {
394
377
  connectionId: "<id>",
395
378
  });
396
-
397
- if (!res.ok) {
398
- throw res.error;
379
+ if (res.ok) {
380
+ const { value: result } = res;
381
+ console.log(result);
382
+ } else {
383
+ console.log("martechListMartechLists failed:", res.error);
399
384
  }
400
-
401
- const { value: result } = res;
402
-
403
- // Handle the result
404
- console.log(result);
405
385
  }
406
386
 
407
387
  run();
@@ -446,7 +426,6 @@ async function run() {
446
426
  connectionId: "<id>",
447
427
  });
448
428
 
449
- // Handle the result
450
429
  console.log(result);
451
430
  }
452
431
 
@@ -473,15 +452,12 @@ async function run() {
473
452
  const res = await martechListMartechMembers(unifiedTo, {
474
453
  connectionId: "<id>",
475
454
  });
476
-
477
- if (!res.ok) {
478
- throw res.error;
455
+ if (res.ok) {
456
+ const { value: result } = res;
457
+ console.log(result);
458
+ } else {
459
+ console.log("martechListMartechMembers failed:", res.error);
479
460
  }
480
-
481
- const { value: result } = res;
482
-
483
- // Handle the result
484
- console.log(result);
485
461
  }
486
462
 
487
463
  run();
@@ -528,7 +504,6 @@ async function run() {
528
504
  id: "<id>",
529
505
  });
530
506
 
531
- // Handle the result
532
507
  console.log(result);
533
508
  }
534
509
 
@@ -557,15 +532,12 @@ async function run() {
557
532
  connectionId: "<id>",
558
533
  id: "<id>",
559
534
  });
560
-
561
- if (!res.ok) {
562
- throw res.error;
535
+ if (res.ok) {
536
+ const { value: result } = res;
537
+ console.log(result);
538
+ } else {
539
+ console.log("martechPatchMartechList failed:", res.error);
563
540
  }
564
-
565
- const { value: result } = res;
566
-
567
- // Handle the result
568
- console.log(result);
569
541
  }
570
542
 
571
543
  run();
@@ -612,7 +584,6 @@ async function run() {
612
584
  id: "<id>",
613
585
  });
614
586
 
615
- // Handle the result
616
587
  console.log(result);
617
588
  }
618
589
 
@@ -641,15 +612,12 @@ async function run() {
641
612
  connectionId: "<id>",
642
613
  id: "<id>",
643
614
  });
644
-
645
- if (!res.ok) {
646
- throw res.error;
615
+ if (res.ok) {
616
+ const { value: result } = res;
617
+ console.log(result);
618
+ } else {
619
+ console.log("martechPatchMartechMember failed:", res.error);
647
620
  }
648
-
649
- const { value: result } = res;
650
-
651
- // Handle the result
652
- console.log(result);
653
621
  }
654
622
 
655
623
  run();
@@ -695,7 +663,6 @@ async function run() {
695
663
  id: "<id>",
696
664
  });
697
665
 
698
- // Handle the result
699
666
  console.log(result);
700
667
  }
701
668
 
@@ -723,15 +690,12 @@ async function run() {
723
690
  connectionId: "<id>",
724
691
  id: "<id>",
725
692
  });
726
-
727
- if (!res.ok) {
728
- throw res.error;
693
+ if (res.ok) {
694
+ const { value: result } = res;
695
+ console.log(result);
696
+ } else {
697
+ console.log("martechRemoveMartechList failed:", res.error);
729
698
  }
730
-
731
- const { value: result } = res;
732
-
733
- // Handle the result
734
- console.log(result);
735
699
  }
736
700
 
737
701
  run();
@@ -777,7 +741,6 @@ async function run() {
777
741
  id: "<id>",
778
742
  });
779
743
 
780
- // Handle the result
781
744
  console.log(result);
782
745
  }
783
746
 
@@ -805,15 +768,12 @@ async function run() {
805
768
  connectionId: "<id>",
806
769
  id: "<id>",
807
770
  });
808
-
809
- if (!res.ok) {
810
- throw res.error;
771
+ if (res.ok) {
772
+ const { value: result } = res;
773
+ console.log(result);
774
+ } else {
775
+ console.log("martechRemoveMartechMember failed:", res.error);
811
776
  }
812
-
813
- const { value: result } = res;
814
-
815
- // Handle the result
816
- console.log(result);
817
777
  }
818
778
 
819
779
  run();
@@ -860,7 +820,6 @@ async function run() {
860
820
  id: "<id>",
861
821
  });
862
822
 
863
- // Handle the result
864
823
  console.log(result);
865
824
  }
866
825
 
@@ -889,15 +848,12 @@ async function run() {
889
848
  connectionId: "<id>",
890
849
  id: "<id>",
891
850
  });
892
-
893
- if (!res.ok) {
894
- throw res.error;
851
+ if (res.ok) {
852
+ const { value: result } = res;
853
+ console.log(result);
854
+ } else {
855
+ console.log("martechUpdateMartechList failed:", res.error);
895
856
  }
896
-
897
- const { value: result } = res;
898
-
899
- // Handle the result
900
- console.log(result);
901
857
  }
902
858
 
903
859
  run();
@@ -944,7 +900,6 @@ async function run() {
944
900
  id: "<id>",
945
901
  });
946
902
 
947
- // Handle the result
948
903
  console.log(result);
949
904
  }
950
905
 
@@ -973,15 +928,12 @@ async function run() {
973
928
  connectionId: "<id>",
974
929
  id: "<id>",
975
930
  });
976
-
977
- if (!res.ok) {
978
- throw res.error;
931
+ if (res.ok) {
932
+ const { value: result } = res;
933
+ console.log(result);
934
+ } else {
935
+ console.log("martechUpdateMartechMember failed:", res.error);
979
936
  }
980
-
981
- const { value: result } = res;
982
-
983
- // Handle the result
984
- console.log(result);
985
937
  }
986
938
 
987
939
  run();