@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
@@ -60,7 +60,6 @@ async function run() {
60
60
  connectionId: "<id>",
61
61
  });
62
62
 
63
- // Handle the result
64
63
  console.log(result);
65
64
  }
66
65
 
@@ -91,15 +90,12 @@ async function run() {
91
90
  },
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("repoCreateRepoBranch 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();
@@ -148,7 +144,6 @@ async function run() {
148
144
  connectionId: "<id>",
149
145
  });
150
146
 
151
- // Handle the result
152
147
  console.log(result);
153
148
  }
154
149
 
@@ -179,15 +174,12 @@ async function run() {
179
174
  },
180
175
  connectionId: "<id>",
181
176
  });
182
-
183
- if (!res.ok) {
184
- throw res.error;
177
+ if (res.ok) {
178
+ const { value: result } = res;
179
+ console.log(result);
180
+ } else {
181
+ console.log("repoCreateRepoCommit failed:", res.error);
185
182
  }
186
-
187
- const { value: result } = res;
188
-
189
- // Handle the result
190
- console.log(result);
191
183
  }
192
184
 
193
185
  run();
@@ -233,7 +225,6 @@ async function run() {
233
225
  connectionId: "<id>",
234
226
  });
235
227
 
236
- // Handle the result
237
228
  console.log(result);
238
229
  }
239
230
 
@@ -261,15 +252,12 @@ async function run() {
261
252
  repoOrganization: {},
262
253
  connectionId: "<id>",
263
254
  });
264
-
265
- if (!res.ok) {
266
- throw res.error;
255
+ if (res.ok) {
256
+ const { value: result } = res;
257
+ console.log(result);
258
+ } else {
259
+ console.log("repoCreateRepoOrganization failed:", res.error);
267
260
  }
268
-
269
- const { value: result } = res;
270
-
271
- // Handle the result
272
- console.log(result);
273
261
  }
274
262
 
275
263
  run();
@@ -315,7 +303,6 @@ async function run() {
315
303
  connectionId: "<id>",
316
304
  });
317
305
 
318
- // Handle the result
319
306
  console.log(result);
320
307
  }
321
308
 
@@ -343,15 +330,12 @@ async function run() {
343
330
  repoPullrequest: {},
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("repoCreateRepoPullrequest 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("repoCreateRepoRepository 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("repoGetRepoBranch 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("repoGetRepoCommit 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("repoGetRepoOrganization 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("repoGetRepoPullrequest 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("repoGetRepoRepository 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 repoListRepoBranches(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("repoListRepoBranches 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 repoListRepoCommits(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("repoListRepoCommits 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 repoListRepoOrganizations(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("repoListRepoOrganizations 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 repoListRepoPullrequests(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("repoListRepoPullrequests 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 repoListRepoRepositories(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("repoListRepoRepositories 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();
@@ -1297,7 +1237,6 @@ async function run() {
1297
1237
  id: "<id>",
1298
1238
  });
1299
1239
 
1300
- // Handle the result
1301
1240
  console.log(result);
1302
1241
  }
1303
1242
 
@@ -1329,15 +1268,12 @@ async function run() {
1329
1268
  connectionId: "<id>",
1330
1269
  id: "<id>",
1331
1270
  });
1332
-
1333
- if (!res.ok) {
1334
- throw res.error;
1271
+ if (res.ok) {
1272
+ const { value: result } = res;
1273
+ console.log(result);
1274
+ } else {
1275
+ console.log("repoPatchRepoBranch failed:", res.error);
1335
1276
  }
1336
-
1337
- const { value: result } = res;
1338
-
1339
- // Handle the result
1340
- console.log(result);
1341
1277
  }
1342
1278
 
1343
1279
  run();
@@ -1387,7 +1323,6 @@ async function run() {
1387
1323
  id: "<id>",
1388
1324
  });
1389
1325
 
1390
- // Handle the result
1391
1326
  console.log(result);
1392
1327
  }
1393
1328
 
@@ -1419,15 +1354,12 @@ async function run() {
1419
1354
  connectionId: "<id>",
1420
1355
  id: "<id>",
1421
1356
  });
1422
-
1423
- if (!res.ok) {
1424
- throw res.error;
1357
+ if (res.ok) {
1358
+ const { value: result } = res;
1359
+ console.log(result);
1360
+ } else {
1361
+ console.log("repoPatchRepoCommit failed:", res.error);
1425
1362
  }
1426
-
1427
- const { value: result } = res;
1428
-
1429
- // Handle the result
1430
- console.log(result);
1431
1363
  }
1432
1364
 
1433
1365
  run();
@@ -1474,7 +1406,6 @@ async function run() {
1474
1406
  id: "<id>",
1475
1407
  });
1476
1408
 
1477
- // Handle the result
1478
1409
  console.log(result);
1479
1410
  }
1480
1411
 
@@ -1503,15 +1434,12 @@ async function run() {
1503
1434
  connectionId: "<id>",
1504
1435
  id: "<id>",
1505
1436
  });
1506
-
1507
- if (!res.ok) {
1508
- throw res.error;
1437
+ if (res.ok) {
1438
+ const { value: result } = res;
1439
+ console.log(result);
1440
+ } else {
1441
+ console.log("repoPatchRepoOrganization failed:", res.error);
1509
1442
  }
1510
-
1511
- const { value: result } = res;
1512
-
1513
- // Handle the result
1514
- console.log(result);
1515
1443
  }
1516
1444
 
1517
1445
  run();
@@ -1558,7 +1486,6 @@ async function run() {
1558
1486
  id: "<id>",
1559
1487
  });
1560
1488
 
1561
- // Handle the result
1562
1489
  console.log(result);
1563
1490
  }
1564
1491
 
@@ -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("repoPatchRepoPullrequest 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("repoPatchRepoRepository 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("repoRemoveRepoBranch 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("repoRemoveRepoCommit 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("repoRemoveRepoOrganization 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("repoRemoveRepoPullrequest 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("repoRemoveRepoRepository 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();
@@ -2143,7 +2043,6 @@ async function run() {
2143
2043
  id: "<id>",
2144
2044
  });
2145
2045
 
2146
- // Handle the result
2147
2046
  console.log(result);
2148
2047
  }
2149
2048
 
@@ -2175,15 +2074,12 @@ async function run() {
2175
2074
  connectionId: "<id>",
2176
2075
  id: "<id>",
2177
2076
  });
2178
-
2179
- if (!res.ok) {
2180
- throw res.error;
2077
+ if (res.ok) {
2078
+ const { value: result } = res;
2079
+ console.log(result);
2080
+ } else {
2081
+ console.log("repoUpdateRepoBranch failed:", res.error);
2181
2082
  }
2182
-
2183
- const { value: result } = res;
2184
-
2185
- // Handle the result
2186
- console.log(result);
2187
2083
  }
2188
2084
 
2189
2085
  run();
@@ -2233,7 +2129,6 @@ async function run() {
2233
2129
  id: "<id>",
2234
2130
  });
2235
2131
 
2236
- // Handle the result
2237
2132
  console.log(result);
2238
2133
  }
2239
2134
 
@@ -2265,15 +2160,12 @@ async function run() {
2265
2160
  connectionId: "<id>",
2266
2161
  id: "<id>",
2267
2162
  });
2268
-
2269
- if (!res.ok) {
2270
- throw res.error;
2163
+ if (res.ok) {
2164
+ const { value: result } = res;
2165
+ console.log(result);
2166
+ } else {
2167
+ console.log("repoUpdateRepoCommit failed:", res.error);
2271
2168
  }
2272
-
2273
- const { value: result } = res;
2274
-
2275
- // Handle the result
2276
- console.log(result);
2277
2169
  }
2278
2170
 
2279
2171
  run();
@@ -2320,7 +2212,6 @@ async function run() {
2320
2212
  id: "<id>",
2321
2213
  });
2322
2214
 
2323
- // Handle the result
2324
2215
  console.log(result);
2325
2216
  }
2326
2217
 
@@ -2349,15 +2240,12 @@ async function run() {
2349
2240
  connectionId: "<id>",
2350
2241
  id: "<id>",
2351
2242
  });
2352
-
2353
- if (!res.ok) {
2354
- throw res.error;
2243
+ if (res.ok) {
2244
+ const { value: result } = res;
2245
+ console.log(result);
2246
+ } else {
2247
+ console.log("repoUpdateRepoOrganization failed:", res.error);
2355
2248
  }
2356
-
2357
- const { value: result } = res;
2358
-
2359
- // Handle the result
2360
- console.log(result);
2361
2249
  }
2362
2250
 
2363
2251
  run();
@@ -2404,7 +2292,6 @@ async function run() {
2404
2292
  id: "<id>",
2405
2293
  });
2406
2294
 
2407
- // Handle the result
2408
2295
  console.log(result);
2409
2296
  }
2410
2297
 
@@ -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("repoUpdateRepoPullrequest 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("repoUpdateRepoRepository 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();