@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
@@ -63,7 +63,6 @@ async function run() {
63
63
  connectionId: "<id>",
64
64
  });
65
65
 
66
- // Handle the result
67
66
  console.log(result);
68
67
  }
69
68
 
@@ -91,15 +90,12 @@ async function run() {
91
90
  crmCompany: {},
92
91
  connectionId: "<id>",
93
92
  });
94
-
95
- if (!res.ok) {
96
- throw res.error;
93
+ if (res.ok) {
94
+ const { value: result } = res;
95
+ console.log(result);
96
+ } else {
97
+ console.log("crmCreateCrmCompany failed:", res.error);
97
98
  }
98
-
99
- const { value: result } = res;
100
-
101
- // Handle the result
102
- console.log(result);
103
99
  }
104
100
 
105
101
  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
 
@@ -173,15 +168,12 @@ async function run() {
173
168
  crmContact: {},
174
169
  connectionId: "<id>",
175
170
  });
176
-
177
- if (!res.ok) {
178
- throw res.error;
171
+ if (res.ok) {
172
+ const { value: result } = res;
173
+ console.log(result);
174
+ } else {
175
+ console.log("crmCreateCrmContact failed:", res.error);
179
176
  }
180
-
181
- const { value: result } = res;
182
-
183
- // Handle the result
184
- console.log(result);
185
177
  }
186
178
 
187
179
  run();
@@ -227,7 +219,6 @@ async function run() {
227
219
  connectionId: "<id>",
228
220
  });
229
221
 
230
- // Handle the result
231
222
  console.log(result);
232
223
  }
233
224
 
@@ -255,15 +246,12 @@ async function run() {
255
246
  crmDeal: {},
256
247
  connectionId: "<id>",
257
248
  });
258
-
259
- if (!res.ok) {
260
- throw res.error;
249
+ if (res.ok) {
250
+ const { value: result } = res;
251
+ console.log(result);
252
+ } else {
253
+ console.log("crmCreateCrmDeal failed:", res.error);
261
254
  }
262
-
263
- const { value: result } = res;
264
-
265
- // Handle the result
266
- console.log(result);
267
255
  }
268
256
 
269
257
  run();
@@ -309,7 +297,6 @@ async function run() {
309
297
  connectionId: "<id>",
310
298
  });
311
299
 
312
- // Handle the result
313
300
  console.log(result);
314
301
  }
315
302
 
@@ -337,15 +324,12 @@ async function run() {
337
324
  crmEvent: {},
338
325
  connectionId: "<id>",
339
326
  });
340
-
341
- if (!res.ok) {
342
- throw res.error;
327
+ if (res.ok) {
328
+ const { value: result } = res;
329
+ console.log(result);
330
+ } else {
331
+ console.log("crmCreateCrmEvent failed:", res.error);
343
332
  }
344
-
345
- const { value: result } = res;
346
-
347
- // Handle the result
348
- console.log(result);
349
333
  }
350
334
 
351
335
  run();
@@ -391,7 +375,6 @@ async function run() {
391
375
  connectionId: "<id>",
392
376
  });
393
377
 
394
- // Handle the result
395
378
  console.log(result);
396
379
  }
397
380
 
@@ -419,15 +402,12 @@ async function run() {
419
402
  crmLead: {},
420
403
  connectionId: "<id>",
421
404
  });
422
-
423
- if (!res.ok) {
424
- throw res.error;
405
+ if (res.ok) {
406
+ const { value: result } = res;
407
+ console.log(result);
408
+ } else {
409
+ console.log("crmCreateCrmLead failed:", res.error);
425
410
  }
426
-
427
- const { value: result } = res;
428
-
429
- // Handle the result
430
- console.log(result);
431
411
  }
432
412
 
433
413
  run();
@@ -473,7 +453,6 @@ async function run() {
473
453
  connectionId: "<id>",
474
454
  });
475
455
 
476
- // Handle the result
477
456
  console.log(result);
478
457
  }
479
458
 
@@ -501,15 +480,12 @@ async function run() {
501
480
  crmPipeline: {},
502
481
  connectionId: "<id>",
503
482
  });
504
-
505
- if (!res.ok) {
506
- throw res.error;
483
+ if (res.ok) {
484
+ const { value: result } = res;
485
+ console.log(result);
486
+ } else {
487
+ console.log("crmCreateCrmPipeline failed:", res.error);
507
488
  }
508
-
509
- const { value: result } = res;
510
-
511
- // Handle the result
512
- console.log(result);
513
489
  }
514
490
 
515
491
  run();
@@ -555,7 +531,6 @@ async function run() {
555
531
  id: "<id>",
556
532
  });
557
533
 
558
- // Handle the result
559
534
  console.log(result);
560
535
  }
561
536
 
@@ -583,15 +558,12 @@ async function run() {
583
558
  connectionId: "<id>",
584
559
  id: "<id>",
585
560
  });
586
-
587
- if (!res.ok) {
588
- throw res.error;
561
+ if (res.ok) {
562
+ const { value: result } = res;
563
+ console.log(result);
564
+ } else {
565
+ console.log("crmGetCrmCompany failed:", res.error);
589
566
  }
590
-
591
- const { value: result } = res;
592
-
593
- // Handle the result
594
- console.log(result);
595
567
  }
596
568
 
597
569
  run();
@@ -637,7 +609,6 @@ async function run() {
637
609
  id: "<id>",
638
610
  });
639
611
 
640
- // Handle the result
641
612
  console.log(result);
642
613
  }
643
614
 
@@ -665,15 +636,12 @@ async function run() {
665
636
  connectionId: "<id>",
666
637
  id: "<id>",
667
638
  });
668
-
669
- if (!res.ok) {
670
- throw res.error;
639
+ if (res.ok) {
640
+ const { value: result } = res;
641
+ console.log(result);
642
+ } else {
643
+ console.log("crmGetCrmContact failed:", res.error);
671
644
  }
672
-
673
- const { value: result } = res;
674
-
675
- // Handle the result
676
- console.log(result);
677
645
  }
678
646
 
679
647
  run();
@@ -719,7 +687,6 @@ async function run() {
719
687
  id: "<id>",
720
688
  });
721
689
 
722
- // Handle the result
723
690
  console.log(result);
724
691
  }
725
692
 
@@ -747,15 +714,12 @@ async function run() {
747
714
  connectionId: "<id>",
748
715
  id: "<id>",
749
716
  });
750
-
751
- if (!res.ok) {
752
- throw res.error;
717
+ if (res.ok) {
718
+ const { value: result } = res;
719
+ console.log(result);
720
+ } else {
721
+ console.log("crmGetCrmDeal failed:", res.error);
753
722
  }
754
-
755
- const { value: result } = res;
756
-
757
- // Handle the result
758
- console.log(result);
759
723
  }
760
724
 
761
725
  run();
@@ -801,7 +765,6 @@ async function run() {
801
765
  id: "<id>",
802
766
  });
803
767
 
804
- // Handle the result
805
768
  console.log(result);
806
769
  }
807
770
 
@@ -829,15 +792,12 @@ async function run() {
829
792
  connectionId: "<id>",
830
793
  id: "<id>",
831
794
  });
832
-
833
- if (!res.ok) {
834
- throw res.error;
795
+ if (res.ok) {
796
+ const { value: result } = res;
797
+ console.log(result);
798
+ } else {
799
+ console.log("crmGetCrmEvent failed:", res.error);
835
800
  }
836
-
837
- const { value: result } = res;
838
-
839
- // Handle the result
840
- console.log(result);
841
801
  }
842
802
 
843
803
  run();
@@ -883,7 +843,6 @@ async function run() {
883
843
  id: "<id>",
884
844
  });
885
845
 
886
- // Handle the result
887
846
  console.log(result);
888
847
  }
889
848
 
@@ -911,15 +870,12 @@ async function run() {
911
870
  connectionId: "<id>",
912
871
  id: "<id>",
913
872
  });
914
-
915
- if (!res.ok) {
916
- throw res.error;
873
+ if (res.ok) {
874
+ const { value: result } = res;
875
+ console.log(result);
876
+ } else {
877
+ console.log("crmGetCrmLead failed:", res.error);
917
878
  }
918
-
919
- const { value: result } = res;
920
-
921
- // Handle the result
922
- console.log(result);
923
879
  }
924
880
 
925
881
  run();
@@ -965,7 +921,6 @@ async function run() {
965
921
  id: "<id>",
966
922
  });
967
923
 
968
- // Handle the result
969
924
  console.log(result);
970
925
  }
971
926
 
@@ -993,15 +948,12 @@ async function run() {
993
948
  connectionId: "<id>",
994
949
  id: "<id>",
995
950
  });
996
-
997
- if (!res.ok) {
998
- throw res.error;
951
+ if (res.ok) {
952
+ const { value: result } = res;
953
+ console.log(result);
954
+ } else {
955
+ console.log("crmGetCrmPipeline failed:", res.error);
999
956
  }
1000
-
1001
- const { value: result } = res;
1002
-
1003
- // Handle the result
1004
- console.log(result);
1005
957
  }
1006
958
 
1007
959
  run();
@@ -1046,7 +998,6 @@ async function run() {
1046
998
  connectionId: "<id>",
1047
999
  });
1048
1000
 
1049
- // Handle the result
1050
1001
  console.log(result);
1051
1002
  }
1052
1003
 
@@ -1073,15 +1024,12 @@ async function run() {
1073
1024
  const res = await crmListCrmCompanies(unifiedTo, {
1074
1025
  connectionId: "<id>",
1075
1026
  });
1076
-
1077
- if (!res.ok) {
1078
- throw res.error;
1027
+ if (res.ok) {
1028
+ const { value: result } = res;
1029
+ console.log(result);
1030
+ } else {
1031
+ console.log("crmListCrmCompanies failed:", res.error);
1079
1032
  }
1080
-
1081
- const { value: result } = res;
1082
-
1083
- // Handle the result
1084
- console.log(result);
1085
1033
  }
1086
1034
 
1087
1035
  run();
@@ -1126,7 +1074,6 @@ async function run() {
1126
1074
  connectionId: "<id>",
1127
1075
  });
1128
1076
 
1129
- // Handle the result
1130
1077
  console.log(result);
1131
1078
  }
1132
1079
 
@@ -1153,15 +1100,12 @@ async function run() {
1153
1100
  const res = await crmListCrmContacts(unifiedTo, {
1154
1101
  connectionId: "<id>",
1155
1102
  });
1156
-
1157
- if (!res.ok) {
1158
- throw res.error;
1103
+ if (res.ok) {
1104
+ const { value: result } = res;
1105
+ console.log(result);
1106
+ } else {
1107
+ console.log("crmListCrmContacts failed:", res.error);
1159
1108
  }
1160
-
1161
- const { value: result } = res;
1162
-
1163
- // Handle the result
1164
- console.log(result);
1165
1109
  }
1166
1110
 
1167
1111
  run();
@@ -1206,7 +1150,6 @@ async function run() {
1206
1150
  connectionId: "<id>",
1207
1151
  });
1208
1152
 
1209
- // Handle the result
1210
1153
  console.log(result);
1211
1154
  }
1212
1155
 
@@ -1233,15 +1176,12 @@ async function run() {
1233
1176
  const res = await crmListCrmDeals(unifiedTo, {
1234
1177
  connectionId: "<id>",
1235
1178
  });
1236
-
1237
- if (!res.ok) {
1238
- throw res.error;
1179
+ if (res.ok) {
1180
+ const { value: result } = res;
1181
+ console.log(result);
1182
+ } else {
1183
+ console.log("crmListCrmDeals failed:", res.error);
1239
1184
  }
1240
-
1241
- const { value: result } = res;
1242
-
1243
- // Handle the result
1244
- console.log(result);
1245
1185
  }
1246
1186
 
1247
1187
  run();
@@ -1286,7 +1226,6 @@ async function run() {
1286
1226
  connectionId: "<id>",
1287
1227
  });
1288
1228
 
1289
- // Handle the result
1290
1229
  console.log(result);
1291
1230
  }
1292
1231
 
@@ -1313,15 +1252,12 @@ async function run() {
1313
1252
  const res = await crmListCrmEvents(unifiedTo, {
1314
1253
  connectionId: "<id>",
1315
1254
  });
1316
-
1317
- if (!res.ok) {
1318
- throw res.error;
1255
+ if (res.ok) {
1256
+ const { value: result } = res;
1257
+ console.log(result);
1258
+ } else {
1259
+ console.log("crmListCrmEvents failed:", res.error);
1319
1260
  }
1320
-
1321
- const { value: result } = res;
1322
-
1323
- // Handle the result
1324
- console.log(result);
1325
1261
  }
1326
1262
 
1327
1263
  run();
@@ -1366,7 +1302,6 @@ async function run() {
1366
1302
  connectionId: "<id>",
1367
1303
  });
1368
1304
 
1369
- // Handle the result
1370
1305
  console.log(result);
1371
1306
  }
1372
1307
 
@@ -1393,15 +1328,12 @@ async function run() {
1393
1328
  const res = await crmListCrmLeads(unifiedTo, {
1394
1329
  connectionId: "<id>",
1395
1330
  });
1396
-
1397
- if (!res.ok) {
1398
- throw res.error;
1331
+ if (res.ok) {
1332
+ const { value: result } = res;
1333
+ console.log(result);
1334
+ } else {
1335
+ console.log("crmListCrmLeads failed:", res.error);
1399
1336
  }
1400
-
1401
- const { value: result } = res;
1402
-
1403
- // Handle the result
1404
- console.log(result);
1405
1337
  }
1406
1338
 
1407
1339
  run();
@@ -1446,7 +1378,6 @@ async function run() {
1446
1378
  connectionId: "<id>",
1447
1379
  });
1448
1380
 
1449
- // Handle the result
1450
1381
  console.log(result);
1451
1382
  }
1452
1383
 
@@ -1473,15 +1404,12 @@ async function run() {
1473
1404
  const res = await crmListCrmPipelines(unifiedTo, {
1474
1405
  connectionId: "<id>",
1475
1406
  });
1476
-
1477
- if (!res.ok) {
1478
- throw res.error;
1407
+ if (res.ok) {
1408
+ const { value: result } = res;
1409
+ console.log(result);
1410
+ } else {
1411
+ console.log("crmListCrmPipelines failed:", res.error);
1479
1412
  }
1480
-
1481
- const { value: result } = res;
1482
-
1483
- // Handle the result
1484
- console.log(result);
1485
1413
  }
1486
1414
 
1487
1415
  run();
@@ -1528,7 +1456,6 @@ async function run() {
1528
1456
  id: "<id>",
1529
1457
  });
1530
1458
 
1531
- // Handle the result
1532
1459
  console.log(result);
1533
1460
  }
1534
1461
 
@@ -1557,15 +1484,12 @@ async function run() {
1557
1484
  connectionId: "<id>",
1558
1485
  id: "<id>",
1559
1486
  });
1560
-
1561
- if (!res.ok) {
1562
- throw res.error;
1487
+ if (res.ok) {
1488
+ const { value: result } = res;
1489
+ console.log(result);
1490
+ } else {
1491
+ console.log("crmPatchCrmCompany failed:", res.error);
1563
1492
  }
1564
-
1565
- const { value: result } = res;
1566
-
1567
- // Handle the result
1568
- console.log(result);
1569
1493
  }
1570
1494
 
1571
1495
  run();
@@ -1612,7 +1536,6 @@ async function run() {
1612
1536
  id: "<id>",
1613
1537
  });
1614
1538
 
1615
- // Handle the result
1616
1539
  console.log(result);
1617
1540
  }
1618
1541
 
@@ -1641,15 +1564,12 @@ async function run() {
1641
1564
  connectionId: "<id>",
1642
1565
  id: "<id>",
1643
1566
  });
1644
-
1645
- if (!res.ok) {
1646
- throw res.error;
1567
+ if (res.ok) {
1568
+ const { value: result } = res;
1569
+ console.log(result);
1570
+ } else {
1571
+ console.log("crmPatchCrmContact failed:", res.error);
1647
1572
  }
1648
-
1649
- const { value: result } = res;
1650
-
1651
- // Handle the result
1652
- console.log(result);
1653
1573
  }
1654
1574
 
1655
1575
  run();
@@ -1696,7 +1616,6 @@ async function run() {
1696
1616
  id: "<id>",
1697
1617
  });
1698
1618
 
1699
- // Handle the result
1700
1619
  console.log(result);
1701
1620
  }
1702
1621
 
@@ -1725,15 +1644,12 @@ async function run() {
1725
1644
  connectionId: "<id>",
1726
1645
  id: "<id>",
1727
1646
  });
1728
-
1729
- if (!res.ok) {
1730
- throw res.error;
1647
+ if (res.ok) {
1648
+ const { value: result } = res;
1649
+ console.log(result);
1650
+ } else {
1651
+ console.log("crmPatchCrmDeal failed:", res.error);
1731
1652
  }
1732
-
1733
- const { value: result } = res;
1734
-
1735
- // Handle the result
1736
- console.log(result);
1737
1653
  }
1738
1654
 
1739
1655
  run();
@@ -1780,7 +1696,6 @@ async function run() {
1780
1696
  id: "<id>",
1781
1697
  });
1782
1698
 
1783
- // Handle the result
1784
1699
  console.log(result);
1785
1700
  }
1786
1701
 
@@ -1809,15 +1724,12 @@ async function run() {
1809
1724
  connectionId: "<id>",
1810
1725
  id: "<id>",
1811
1726
  });
1812
-
1813
- if (!res.ok) {
1814
- throw res.error;
1727
+ if (res.ok) {
1728
+ const { value: result } = res;
1729
+ console.log(result);
1730
+ } else {
1731
+ console.log("crmPatchCrmEvent failed:", res.error);
1815
1732
  }
1816
-
1817
- const { value: result } = res;
1818
-
1819
- // Handle the result
1820
- console.log(result);
1821
1733
  }
1822
1734
 
1823
1735
  run();
@@ -1864,7 +1776,6 @@ async function run() {
1864
1776
  id: "<id>",
1865
1777
  });
1866
1778
 
1867
- // Handle the result
1868
1779
  console.log(result);
1869
1780
  }
1870
1781
 
@@ -1893,15 +1804,12 @@ async function run() {
1893
1804
  connectionId: "<id>",
1894
1805
  id: "<id>",
1895
1806
  });
1896
-
1897
- if (!res.ok) {
1898
- throw res.error;
1807
+ if (res.ok) {
1808
+ const { value: result } = res;
1809
+ console.log(result);
1810
+ } else {
1811
+ console.log("crmPatchCrmLead failed:", res.error);
1899
1812
  }
1900
-
1901
- const { value: result } = res;
1902
-
1903
- // Handle the result
1904
- console.log(result);
1905
1813
  }
1906
1814
 
1907
1815
  run();
@@ -1948,7 +1856,6 @@ async function run() {
1948
1856
  id: "<id>",
1949
1857
  });
1950
1858
 
1951
- // Handle the result
1952
1859
  console.log(result);
1953
1860
  }
1954
1861
 
@@ -1977,15 +1884,12 @@ async function run() {
1977
1884
  connectionId: "<id>",
1978
1885
  id: "<id>",
1979
1886
  });
1980
-
1981
- if (!res.ok) {
1982
- throw res.error;
1887
+ if (res.ok) {
1888
+ const { value: result } = res;
1889
+ console.log(result);
1890
+ } else {
1891
+ console.log("crmPatchCrmPipeline failed:", res.error);
1983
1892
  }
1984
-
1985
- const { value: result } = res;
1986
-
1987
- // Handle the result
1988
- console.log(result);
1989
1893
  }
1990
1894
 
1991
1895
  run();
@@ -2031,7 +1935,6 @@ async function run() {
2031
1935
  id: "<id>",
2032
1936
  });
2033
1937
 
2034
- // Handle the result
2035
1938
  console.log(result);
2036
1939
  }
2037
1940
 
@@ -2059,15 +1962,12 @@ async function run() {
2059
1962
  connectionId: "<id>",
2060
1963
  id: "<id>",
2061
1964
  });
2062
-
2063
- if (!res.ok) {
2064
- throw res.error;
1965
+ if (res.ok) {
1966
+ const { value: result } = res;
1967
+ console.log(result);
1968
+ } else {
1969
+ console.log("crmRemoveCrmCompany failed:", res.error);
2065
1970
  }
2066
-
2067
- const { value: result } = res;
2068
-
2069
- // Handle the result
2070
- console.log(result);
2071
1971
  }
2072
1972
 
2073
1973
  run();
@@ -2113,7 +2013,6 @@ async function run() {
2113
2013
  id: "<id>",
2114
2014
  });
2115
2015
 
2116
- // Handle the result
2117
2016
  console.log(result);
2118
2017
  }
2119
2018
 
@@ -2141,15 +2040,12 @@ async function run() {
2141
2040
  connectionId: "<id>",
2142
2041
  id: "<id>",
2143
2042
  });
2144
-
2145
- if (!res.ok) {
2146
- throw res.error;
2043
+ if (res.ok) {
2044
+ const { value: result } = res;
2045
+ console.log(result);
2046
+ } else {
2047
+ console.log("crmRemoveCrmContact failed:", res.error);
2147
2048
  }
2148
-
2149
- const { value: result } = res;
2150
-
2151
- // Handle the result
2152
- console.log(result);
2153
2049
  }
2154
2050
 
2155
2051
  run();
@@ -2195,7 +2091,6 @@ async function run() {
2195
2091
  id: "<id>",
2196
2092
  });
2197
2093
 
2198
- // Handle the result
2199
2094
  console.log(result);
2200
2095
  }
2201
2096
 
@@ -2223,15 +2118,12 @@ async function run() {
2223
2118
  connectionId: "<id>",
2224
2119
  id: "<id>",
2225
2120
  });
2226
-
2227
- if (!res.ok) {
2228
- throw res.error;
2121
+ if (res.ok) {
2122
+ const { value: result } = res;
2123
+ console.log(result);
2124
+ } else {
2125
+ console.log("crmRemoveCrmDeal failed:", res.error);
2229
2126
  }
2230
-
2231
- const { value: result } = res;
2232
-
2233
- // Handle the result
2234
- console.log(result);
2235
2127
  }
2236
2128
 
2237
2129
  run();
@@ -2277,7 +2169,6 @@ async function run() {
2277
2169
  id: "<id>",
2278
2170
  });
2279
2171
 
2280
- // Handle the result
2281
2172
  console.log(result);
2282
2173
  }
2283
2174
 
@@ -2305,15 +2196,12 @@ async function run() {
2305
2196
  connectionId: "<id>",
2306
2197
  id: "<id>",
2307
2198
  });
2308
-
2309
- if (!res.ok) {
2310
- throw res.error;
2199
+ if (res.ok) {
2200
+ const { value: result } = res;
2201
+ console.log(result);
2202
+ } else {
2203
+ console.log("crmRemoveCrmEvent failed:", res.error);
2311
2204
  }
2312
-
2313
- const { value: result } = res;
2314
-
2315
- // Handle the result
2316
- console.log(result);
2317
2205
  }
2318
2206
 
2319
2207
  run();
@@ -2359,7 +2247,6 @@ async function run() {
2359
2247
  id: "<id>",
2360
2248
  });
2361
2249
 
2362
- // Handle the result
2363
2250
  console.log(result);
2364
2251
  }
2365
2252
 
@@ -2387,15 +2274,12 @@ async function run() {
2387
2274
  connectionId: "<id>",
2388
2275
  id: "<id>",
2389
2276
  });
2390
-
2391
- if (!res.ok) {
2392
- throw res.error;
2277
+ if (res.ok) {
2278
+ const { value: result } = res;
2279
+ console.log(result);
2280
+ } else {
2281
+ console.log("crmRemoveCrmLead failed:", res.error);
2393
2282
  }
2394
-
2395
- const { value: result } = res;
2396
-
2397
- // Handle the result
2398
- console.log(result);
2399
2283
  }
2400
2284
 
2401
2285
  run();
@@ -2441,7 +2325,6 @@ async function run() {
2441
2325
  id: "<id>",
2442
2326
  });
2443
2327
 
2444
- // Handle the result
2445
2328
  console.log(result);
2446
2329
  }
2447
2330
 
@@ -2469,15 +2352,12 @@ async function run() {
2469
2352
  connectionId: "<id>",
2470
2353
  id: "<id>",
2471
2354
  });
2472
-
2473
- if (!res.ok) {
2474
- throw res.error;
2355
+ if (res.ok) {
2356
+ const { value: result } = res;
2357
+ console.log(result);
2358
+ } else {
2359
+ console.log("crmRemoveCrmPipeline failed:", res.error);
2475
2360
  }
2476
-
2477
- const { value: result } = res;
2478
-
2479
- // Handle the result
2480
- console.log(result);
2481
2361
  }
2482
2362
 
2483
2363
  run();
@@ -2524,7 +2404,6 @@ async function run() {
2524
2404
  id: "<id>",
2525
2405
  });
2526
2406
 
2527
- // Handle the result
2528
2407
  console.log(result);
2529
2408
  }
2530
2409
 
@@ -2553,15 +2432,12 @@ async function run() {
2553
2432
  connectionId: "<id>",
2554
2433
  id: "<id>",
2555
2434
  });
2556
-
2557
- if (!res.ok) {
2558
- throw res.error;
2435
+ if (res.ok) {
2436
+ const { value: result } = res;
2437
+ console.log(result);
2438
+ } else {
2439
+ console.log("crmUpdateCrmCompany failed:", res.error);
2559
2440
  }
2560
-
2561
- const { value: result } = res;
2562
-
2563
- // Handle the result
2564
- console.log(result);
2565
2441
  }
2566
2442
 
2567
2443
  run();
@@ -2608,7 +2484,6 @@ async function run() {
2608
2484
  id: "<id>",
2609
2485
  });
2610
2486
 
2611
- // Handle the result
2612
2487
  console.log(result);
2613
2488
  }
2614
2489
 
@@ -2637,15 +2512,12 @@ async function run() {
2637
2512
  connectionId: "<id>",
2638
2513
  id: "<id>",
2639
2514
  });
2640
-
2641
- if (!res.ok) {
2642
- throw res.error;
2515
+ if (res.ok) {
2516
+ const { value: result } = res;
2517
+ console.log(result);
2518
+ } else {
2519
+ console.log("crmUpdateCrmContact failed:", res.error);
2643
2520
  }
2644
-
2645
- const { value: result } = res;
2646
-
2647
- // Handle the result
2648
- console.log(result);
2649
2521
  }
2650
2522
 
2651
2523
  run();
@@ -2692,7 +2564,6 @@ async function run() {
2692
2564
  id: "<id>",
2693
2565
  });
2694
2566
 
2695
- // Handle the result
2696
2567
  console.log(result);
2697
2568
  }
2698
2569
 
@@ -2721,15 +2592,12 @@ async function run() {
2721
2592
  connectionId: "<id>",
2722
2593
  id: "<id>",
2723
2594
  });
2724
-
2725
- if (!res.ok) {
2726
- throw res.error;
2595
+ if (res.ok) {
2596
+ const { value: result } = res;
2597
+ console.log(result);
2598
+ } else {
2599
+ console.log("crmUpdateCrmDeal failed:", res.error);
2727
2600
  }
2728
-
2729
- const { value: result } = res;
2730
-
2731
- // Handle the result
2732
- console.log(result);
2733
2601
  }
2734
2602
 
2735
2603
  run();
@@ -2776,7 +2644,6 @@ async function run() {
2776
2644
  id: "<id>",
2777
2645
  });
2778
2646
 
2779
- // Handle the result
2780
2647
  console.log(result);
2781
2648
  }
2782
2649
 
@@ -2805,15 +2672,12 @@ async function run() {
2805
2672
  connectionId: "<id>",
2806
2673
  id: "<id>",
2807
2674
  });
2808
-
2809
- if (!res.ok) {
2810
- throw res.error;
2675
+ if (res.ok) {
2676
+ const { value: result } = res;
2677
+ console.log(result);
2678
+ } else {
2679
+ console.log("crmUpdateCrmEvent failed:", res.error);
2811
2680
  }
2812
-
2813
- const { value: result } = res;
2814
-
2815
- // Handle the result
2816
- console.log(result);
2817
2681
  }
2818
2682
 
2819
2683
  run();
@@ -2860,7 +2724,6 @@ async function run() {
2860
2724
  id: "<id>",
2861
2725
  });
2862
2726
 
2863
- // Handle the result
2864
2727
  console.log(result);
2865
2728
  }
2866
2729
 
@@ -2889,15 +2752,12 @@ async function run() {
2889
2752
  connectionId: "<id>",
2890
2753
  id: "<id>",
2891
2754
  });
2892
-
2893
- if (!res.ok) {
2894
- throw res.error;
2755
+ if (res.ok) {
2756
+ const { value: result } = res;
2757
+ console.log(result);
2758
+ } else {
2759
+ console.log("crmUpdateCrmLead failed:", res.error);
2895
2760
  }
2896
-
2897
- const { value: result } = res;
2898
-
2899
- // Handle the result
2900
- console.log(result);
2901
2761
  }
2902
2762
 
2903
2763
  run();
@@ -2944,7 +2804,6 @@ async function run() {
2944
2804
  id: "<id>",
2945
2805
  });
2946
2806
 
2947
- // Handle the result
2948
2807
  console.log(result);
2949
2808
  }
2950
2809
 
@@ -2973,15 +2832,12 @@ async function run() {
2973
2832
  connectionId: "<id>",
2974
2833
  id: "<id>",
2975
2834
  });
2976
-
2977
- if (!res.ok) {
2978
- throw res.error;
2835
+ if (res.ok) {
2836
+ const { value: result } = res;
2837
+ console.log(result);
2838
+ } else {
2839
+ console.log("crmUpdateCrmPipeline failed:", res.error);
2979
2840
  }
2980
-
2981
- const { value: result } = res;
2982
-
2983
- // Handle the result
2984
- console.log(result);
2985
2841
  }
2986
2842
 
2987
2843
  run();