@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
@@ -67,7 +67,6 @@ async function run() {
67
67
  connectionId: "<id>",
68
68
  });
69
69
 
70
- // Handle the result
71
70
  console.log(result);
72
71
  }
73
72
 
@@ -95,15 +94,12 @@ async function run() {
95
94
  hrisCompany: {},
96
95
  connectionId: "<id>",
97
96
  });
98
-
99
- if (!res.ok) {
100
- throw res.error;
97
+ if (res.ok) {
98
+ const { value: result } = res;
99
+ console.log(result);
100
+ } else {
101
+ console.log("hrisCreateHrisCompany failed:", res.error);
101
102
  }
102
-
103
- const { value: result } = res;
104
-
105
- // Handle the result
106
- console.log(result);
107
103
  }
108
104
 
109
105
  run();
@@ -151,7 +147,6 @@ async function run() {
151
147
  connectionId: "<id>",
152
148
  });
153
149
 
154
- // Handle the result
155
150
  console.log(result);
156
151
  }
157
152
 
@@ -181,15 +176,12 @@ async function run() {
181
176
  },
182
177
  connectionId: "<id>",
183
178
  });
184
-
185
- if (!res.ok) {
186
- throw res.error;
179
+ if (res.ok) {
180
+ const { value: result } = res;
181
+ console.log(result);
182
+ } else {
183
+ console.log("hrisCreateHrisDevice failed:", res.error);
187
184
  }
188
-
189
- const { value: result } = res;
190
-
191
- // Handle the result
192
- console.log(result);
193
185
  }
194
186
 
195
187
  run();
@@ -235,7 +227,6 @@ async function run() {
235
227
  connectionId: "<id>",
236
228
  });
237
229
 
238
- // Handle the result
239
230
  console.log(result);
240
231
  }
241
232
 
@@ -263,15 +254,12 @@ async function run() {
263
254
  hrisEmployee: {},
264
255
  connectionId: "<id>",
265
256
  });
266
-
267
- if (!res.ok) {
268
- throw res.error;
257
+ if (res.ok) {
258
+ const { value: result } = res;
259
+ console.log(result);
260
+ } else {
261
+ console.log("hrisCreateHrisEmployee failed:", res.error);
269
262
  }
270
-
271
- const { value: result } = res;
272
-
273
- // Handle the result
274
- console.log(result);
275
263
  }
276
264
 
277
265
  run();
@@ -317,7 +305,6 @@ async function run() {
317
305
  connectionId: "<id>",
318
306
  });
319
307
 
320
- // Handle the result
321
308
  console.log(result);
322
309
  }
323
310
 
@@ -345,15 +332,12 @@ async function run() {
345
332
  hrisGroup: {},
346
333
  connectionId: "<id>",
347
334
  });
348
-
349
- if (!res.ok) {
350
- throw res.error;
335
+ if (res.ok) {
336
+ const { value: result } = res;
337
+ console.log(result);
338
+ } else {
339
+ console.log("hrisCreateHrisGroup failed:", res.error);
351
340
  }
352
-
353
- const { value: result } = res;
354
-
355
- // Handle the result
356
- console.log(result);
357
341
  }
358
342
 
359
343
  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
 
@@ -427,15 +410,12 @@ async function run() {
427
410
  hrisLocation: {},
428
411
  connectionId: "<id>",
429
412
  });
430
-
431
- if (!res.ok) {
432
- throw res.error;
413
+ if (res.ok) {
414
+ const { value: result } = res;
415
+ console.log(result);
416
+ } else {
417
+ console.log("hrisCreateHrisLocation failed:", res.error);
433
418
  }
434
-
435
- const { value: result } = res;
436
-
437
- // Handle the result
438
- console.log(result);
439
419
  }
440
420
 
441
421
  run();
@@ -481,7 +461,6 @@ async function run() {
481
461
  connectionId: "<id>",
482
462
  });
483
463
 
484
- // Handle the result
485
464
  console.log(result);
486
465
  }
487
466
 
@@ -509,15 +488,12 @@ async function run() {
509
488
  hrisTimeshift: {},
510
489
  connectionId: "<id>",
511
490
  });
512
-
513
- if (!res.ok) {
514
- throw res.error;
491
+ if (res.ok) {
492
+ const { value: result } = res;
493
+ console.log(result);
494
+ } else {
495
+ console.log("hrisCreateHrisTimeshift failed:", res.error);
515
496
  }
516
-
517
- const { value: result } = res;
518
-
519
- // Handle the result
520
- console.log(result);
521
497
  }
522
498
 
523
499
  run();
@@ -563,7 +539,6 @@ async function run() {
563
539
  id: "<id>",
564
540
  });
565
541
 
566
- // Handle the result
567
542
  console.log(result);
568
543
  }
569
544
 
@@ -591,15 +566,12 @@ async function run() {
591
566
  connectionId: "<id>",
592
567
  id: "<id>",
593
568
  });
594
-
595
- if (!res.ok) {
596
- throw res.error;
569
+ if (res.ok) {
570
+ const { value: result } = res;
571
+ console.log(result);
572
+ } else {
573
+ console.log("hrisGetHrisCompany failed:", res.error);
597
574
  }
598
-
599
- const { value: result } = res;
600
-
601
- // Handle the result
602
- console.log(result);
603
575
  }
604
576
 
605
577
  run();
@@ -645,7 +617,6 @@ async function run() {
645
617
  id: "<id>",
646
618
  });
647
619
 
648
- // Handle the result
649
620
  console.log(result);
650
621
  }
651
622
 
@@ -673,15 +644,12 @@ async function run() {
673
644
  connectionId: "<id>",
674
645
  id: "<id>",
675
646
  });
676
-
677
- if (!res.ok) {
678
- throw res.error;
647
+ if (res.ok) {
648
+ const { value: result } = res;
649
+ console.log(result);
650
+ } else {
651
+ console.log("hrisGetHrisDevice failed:", res.error);
679
652
  }
680
-
681
- const { value: result } = res;
682
-
683
- // Handle the result
684
- console.log(result);
685
653
  }
686
654
 
687
655
  run();
@@ -727,7 +695,6 @@ async function run() {
727
695
  id: "<id>",
728
696
  });
729
697
 
730
- // Handle the result
731
698
  console.log(result);
732
699
  }
733
700
 
@@ -755,15 +722,12 @@ async function run() {
755
722
  connectionId: "<id>",
756
723
  id: "<id>",
757
724
  });
758
-
759
- if (!res.ok) {
760
- throw res.error;
725
+ if (res.ok) {
726
+ const { value: result } = res;
727
+ console.log(result);
728
+ } else {
729
+ console.log("hrisGetHrisEmployee failed:", res.error);
761
730
  }
762
-
763
- const { value: result } = res;
764
-
765
- // Handle the result
766
- console.log(result);
767
731
  }
768
732
 
769
733
  run();
@@ -809,7 +773,6 @@ async function run() {
809
773
  id: "<id>",
810
774
  });
811
775
 
812
- // Handle the result
813
776
  console.log(result);
814
777
  }
815
778
 
@@ -837,15 +800,12 @@ async function run() {
837
800
  connectionId: "<id>",
838
801
  id: "<id>",
839
802
  });
840
-
841
- if (!res.ok) {
842
- throw res.error;
803
+ if (res.ok) {
804
+ const { value: result } = res;
805
+ console.log(result);
806
+ } else {
807
+ console.log("hrisGetHrisGroup failed:", res.error);
843
808
  }
844
-
845
- const { value: result } = res;
846
-
847
- // Handle the result
848
- console.log(result);
849
809
  }
850
810
 
851
811
  run();
@@ -891,7 +851,6 @@ async function run() {
891
851
  id: "<id>",
892
852
  });
893
853
 
894
- // Handle the result
895
854
  console.log(result);
896
855
  }
897
856
 
@@ -919,15 +878,12 @@ async function run() {
919
878
  connectionId: "<id>",
920
879
  id: "<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("hrisGetHrisLocation 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();
@@ -973,7 +929,6 @@ async function run() {
973
929
  id: "<id>",
974
930
  });
975
931
 
976
- // Handle the result
977
932
  console.log(result);
978
933
  }
979
934
 
@@ -1001,15 +956,12 @@ async function run() {
1001
956
  connectionId: "<id>",
1002
957
  id: "<id>",
1003
958
  });
1004
-
1005
- if (!res.ok) {
1006
- throw res.error;
959
+ if (res.ok) {
960
+ const { value: result } = res;
961
+ console.log(result);
962
+ } else {
963
+ console.log("hrisGetHrisPayslip failed:", res.error);
1007
964
  }
1008
-
1009
- const { value: result } = res;
1010
-
1011
- // Handle the result
1012
- console.log(result);
1013
965
  }
1014
966
 
1015
967
  run();
@@ -1055,7 +1007,6 @@ async function run() {
1055
1007
  id: "<id>",
1056
1008
  });
1057
1009
 
1058
- // Handle the result
1059
1010
  console.log(result);
1060
1011
  }
1061
1012
 
@@ -1083,15 +1034,12 @@ async function run() {
1083
1034
  connectionId: "<id>",
1084
1035
  id: "<id>",
1085
1036
  });
1086
-
1087
- if (!res.ok) {
1088
- throw res.error;
1037
+ if (res.ok) {
1038
+ const { value: result } = res;
1039
+ console.log(result);
1040
+ } else {
1041
+ console.log("hrisGetHrisTimeoff failed:", res.error);
1089
1042
  }
1090
-
1091
- const { value: result } = res;
1092
-
1093
- // Handle the result
1094
- console.log(result);
1095
1043
  }
1096
1044
 
1097
1045
  run();
@@ -1137,7 +1085,6 @@ async function run() {
1137
1085
  id: "<id>",
1138
1086
  });
1139
1087
 
1140
- // Handle the result
1141
1088
  console.log(result);
1142
1089
  }
1143
1090
 
@@ -1165,15 +1112,12 @@ async function run() {
1165
1112
  connectionId: "<id>",
1166
1113
  id: "<id>",
1167
1114
  });
1168
-
1169
- if (!res.ok) {
1170
- throw res.error;
1115
+ if (res.ok) {
1116
+ const { value: result } = res;
1117
+ console.log(result);
1118
+ } else {
1119
+ console.log("hrisGetHrisTimeshift failed:", res.error);
1171
1120
  }
1172
-
1173
- const { value: result } = res;
1174
-
1175
- // Handle the result
1176
- console.log(result);
1177
1121
  }
1178
1122
 
1179
1123
  run();
@@ -1218,7 +1162,6 @@ async function run() {
1218
1162
  connectionId: "<id>",
1219
1163
  });
1220
1164
 
1221
- // Handle the result
1222
1165
  console.log(result);
1223
1166
  }
1224
1167
 
@@ -1245,15 +1188,12 @@ async function run() {
1245
1188
  const res = await hrisListHrisCompanies(unifiedTo, {
1246
1189
  connectionId: "<id>",
1247
1190
  });
1248
-
1249
- if (!res.ok) {
1250
- throw res.error;
1191
+ if (res.ok) {
1192
+ const { value: result } = res;
1193
+ console.log(result);
1194
+ } else {
1195
+ console.log("hrisListHrisCompanies failed:", res.error);
1251
1196
  }
1252
-
1253
- const { value: result } = res;
1254
-
1255
- // Handle the result
1256
- console.log(result);
1257
1197
  }
1258
1198
 
1259
1199
  run();
@@ -1298,7 +1238,6 @@ async function run() {
1298
1238
  connectionId: "<id>",
1299
1239
  });
1300
1240
 
1301
- // Handle the result
1302
1241
  console.log(result);
1303
1242
  }
1304
1243
 
@@ -1325,15 +1264,12 @@ async function run() {
1325
1264
  const res = await hrisListHrisDevices(unifiedTo, {
1326
1265
  connectionId: "<id>",
1327
1266
  });
1328
-
1329
- if (!res.ok) {
1330
- throw res.error;
1267
+ if (res.ok) {
1268
+ const { value: result } = res;
1269
+ console.log(result);
1270
+ } else {
1271
+ console.log("hrisListHrisDevices failed:", res.error);
1331
1272
  }
1332
-
1333
- const { value: result } = res;
1334
-
1335
- // Handle the result
1336
- console.log(result);
1337
1273
  }
1338
1274
 
1339
1275
  run();
@@ -1378,7 +1314,6 @@ async function run() {
1378
1314
  connectionId: "<id>",
1379
1315
  });
1380
1316
 
1381
- // Handle the result
1382
1317
  console.log(result);
1383
1318
  }
1384
1319
 
@@ -1405,15 +1340,12 @@ async function run() {
1405
1340
  const res = await hrisListHrisEmployees(unifiedTo, {
1406
1341
  connectionId: "<id>",
1407
1342
  });
1408
-
1409
- if (!res.ok) {
1410
- throw res.error;
1343
+ if (res.ok) {
1344
+ const { value: result } = res;
1345
+ console.log(result);
1346
+ } else {
1347
+ console.log("hrisListHrisEmployees failed:", res.error);
1411
1348
  }
1412
-
1413
- const { value: result } = res;
1414
-
1415
- // Handle the result
1416
- console.log(result);
1417
1349
  }
1418
1350
 
1419
1351
  run();
@@ -1458,7 +1390,6 @@ async function run() {
1458
1390
  connectionId: "<id>",
1459
1391
  });
1460
1392
 
1461
- // Handle the result
1462
1393
  console.log(result);
1463
1394
  }
1464
1395
 
@@ -1485,15 +1416,12 @@ async function run() {
1485
1416
  const res = await hrisListHrisGroups(unifiedTo, {
1486
1417
  connectionId: "<id>",
1487
1418
  });
1488
-
1489
- if (!res.ok) {
1490
- throw res.error;
1419
+ if (res.ok) {
1420
+ const { value: result } = res;
1421
+ console.log(result);
1422
+ } else {
1423
+ console.log("hrisListHrisGroups failed:", res.error);
1491
1424
  }
1492
-
1493
- const { value: result } = res;
1494
-
1495
- // Handle the result
1496
- console.log(result);
1497
1425
  }
1498
1426
 
1499
1427
  run();
@@ -1538,7 +1466,6 @@ async function run() {
1538
1466
  connectionId: "<id>",
1539
1467
  });
1540
1468
 
1541
- // Handle the result
1542
1469
  console.log(result);
1543
1470
  }
1544
1471
 
@@ -1565,15 +1492,12 @@ async function run() {
1565
1492
  const res = await hrisListHrisLocations(unifiedTo, {
1566
1493
  connectionId: "<id>",
1567
1494
  });
1568
-
1569
- if (!res.ok) {
1570
- throw res.error;
1495
+ if (res.ok) {
1496
+ const { value: result } = res;
1497
+ console.log(result);
1498
+ } else {
1499
+ console.log("hrisListHrisLocations failed:", res.error);
1571
1500
  }
1572
-
1573
- const { value: result } = res;
1574
-
1575
- // Handle the result
1576
- console.log(result);
1577
1501
  }
1578
1502
 
1579
1503
  run();
@@ -1618,7 +1542,6 @@ async function run() {
1618
1542
  connectionId: "<id>",
1619
1543
  });
1620
1544
 
1621
- // Handle the result
1622
1545
  console.log(result);
1623
1546
  }
1624
1547
 
@@ -1645,15 +1568,12 @@ async function run() {
1645
1568
  const res = await hrisListHrisPayslips(unifiedTo, {
1646
1569
  connectionId: "<id>",
1647
1570
  });
1648
-
1649
- if (!res.ok) {
1650
- throw res.error;
1571
+ if (res.ok) {
1572
+ const { value: result } = res;
1573
+ console.log(result);
1574
+ } else {
1575
+ console.log("hrisListHrisPayslips failed:", res.error);
1651
1576
  }
1652
-
1653
- const { value: result } = res;
1654
-
1655
- // Handle the result
1656
- console.log(result);
1657
1577
  }
1658
1578
 
1659
1579
  run();
@@ -1698,7 +1618,6 @@ async function run() {
1698
1618
  connectionId: "<id>",
1699
1619
  });
1700
1620
 
1701
- // Handle the result
1702
1621
  console.log(result);
1703
1622
  }
1704
1623
 
@@ -1725,15 +1644,12 @@ async function run() {
1725
1644
  const res = await hrisListHrisTimeoffs(unifiedTo, {
1726
1645
  connectionId: "<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("hrisListHrisTimeoffs 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();
@@ -1778,7 +1694,6 @@ async function run() {
1778
1694
  connectionId: "<id>",
1779
1695
  });
1780
1696
 
1781
- // Handle the result
1782
1697
  console.log(result);
1783
1698
  }
1784
1699
 
@@ -1805,15 +1720,12 @@ async function run() {
1805
1720
  const res = await hrisListHrisTimeshifts(unifiedTo, {
1806
1721
  connectionId: "<id>",
1807
1722
  });
1808
-
1809
- if (!res.ok) {
1810
- throw res.error;
1723
+ if (res.ok) {
1724
+ const { value: result } = res;
1725
+ console.log(result);
1726
+ } else {
1727
+ console.log("hrisListHrisTimeshifts failed:", res.error);
1811
1728
  }
1812
-
1813
- const { value: result } = res;
1814
-
1815
- // Handle the result
1816
- console.log(result);
1817
1729
  }
1818
1730
 
1819
1731
  run();
@@ -1860,7 +1772,6 @@ async function run() {
1860
1772
  id: "<id>",
1861
1773
  });
1862
1774
 
1863
- // Handle the result
1864
1775
  console.log(result);
1865
1776
  }
1866
1777
 
@@ -1889,15 +1800,12 @@ async function run() {
1889
1800
  connectionId: "<id>",
1890
1801
  id: "<id>",
1891
1802
  });
1892
-
1893
- if (!res.ok) {
1894
- throw res.error;
1803
+ if (res.ok) {
1804
+ const { value: result } = res;
1805
+ console.log(result);
1806
+ } else {
1807
+ console.log("hrisPatchHrisCompany failed:", res.error);
1895
1808
  }
1896
-
1897
- const { value: result } = res;
1898
-
1899
- // Handle the result
1900
- console.log(result);
1901
1809
  }
1902
1810
 
1903
1811
  run();
@@ -1946,7 +1854,6 @@ async function run() {
1946
1854
  id: "<id>",
1947
1855
  });
1948
1856
 
1949
- // Handle the result
1950
1857
  console.log(result);
1951
1858
  }
1952
1859
 
@@ -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("hrisPatchHrisDevice 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();
@@ -2032,7 +1936,6 @@ async function run() {
2032
1936
  id: "<id>",
2033
1937
  });
2034
1938
 
2035
- // Handle the result
2036
1939
  console.log(result);
2037
1940
  }
2038
1941
 
@@ -2061,15 +1964,12 @@ async function run() {
2061
1964
  connectionId: "<id>",
2062
1965
  id: "<id>",
2063
1966
  });
2064
-
2065
- if (!res.ok) {
2066
- throw res.error;
1967
+ if (res.ok) {
1968
+ const { value: result } = res;
1969
+ console.log(result);
1970
+ } else {
1971
+ console.log("hrisPatchHrisEmployee failed:", res.error);
2067
1972
  }
2068
-
2069
- const { value: result } = res;
2070
-
2071
- // Handle the result
2072
- console.log(result);
2073
1973
  }
2074
1974
 
2075
1975
  run();
@@ -2116,7 +2016,6 @@ async function run() {
2116
2016
  id: "<id>",
2117
2017
  });
2118
2018
 
2119
- // Handle the result
2120
2019
  console.log(result);
2121
2020
  }
2122
2021
 
@@ -2145,15 +2044,12 @@ async function run() {
2145
2044
  connectionId: "<id>",
2146
2045
  id: "<id>",
2147
2046
  });
2148
-
2149
- if (!res.ok) {
2150
- throw res.error;
2047
+ if (res.ok) {
2048
+ const { value: result } = res;
2049
+ console.log(result);
2050
+ } else {
2051
+ console.log("hrisPatchHrisGroup failed:", res.error);
2151
2052
  }
2152
-
2153
- const { value: result } = res;
2154
-
2155
- // Handle the result
2156
- console.log(result);
2157
2053
  }
2158
2054
 
2159
2055
  run();
@@ -2200,7 +2096,6 @@ async function run() {
2200
2096
  id: "<id>",
2201
2097
  });
2202
2098
 
2203
- // Handle the result
2204
2099
  console.log(result);
2205
2100
  }
2206
2101
 
@@ -2229,15 +2124,12 @@ async function run() {
2229
2124
  connectionId: "<id>",
2230
2125
  id: "<id>",
2231
2126
  });
2232
-
2233
- if (!res.ok) {
2234
- throw res.error;
2127
+ if (res.ok) {
2128
+ const { value: result } = res;
2129
+ console.log(result);
2130
+ } else {
2131
+ console.log("hrisPatchHrisLocation failed:", res.error);
2235
2132
  }
2236
-
2237
- const { value: result } = res;
2238
-
2239
- // Handle the result
2240
- console.log(result);
2241
2133
  }
2242
2134
 
2243
2135
  run();
@@ -2284,7 +2176,6 @@ async function run() {
2284
2176
  id: "<id>",
2285
2177
  });
2286
2178
 
2287
- // Handle the result
2288
2179
  console.log(result);
2289
2180
  }
2290
2181
 
@@ -2313,15 +2204,12 @@ async function run() {
2313
2204
  connectionId: "<id>",
2314
2205
  id: "<id>",
2315
2206
  });
2316
-
2317
- if (!res.ok) {
2318
- throw res.error;
2207
+ if (res.ok) {
2208
+ const { value: result } = res;
2209
+ console.log(result);
2210
+ } else {
2211
+ console.log("hrisPatchHrisTimeshift failed:", res.error);
2319
2212
  }
2320
-
2321
- const { value: result } = res;
2322
-
2323
- // Handle the result
2324
- console.log(result);
2325
2213
  }
2326
2214
 
2327
2215
  run();
@@ -2367,7 +2255,6 @@ async function run() {
2367
2255
  id: "<id>",
2368
2256
  });
2369
2257
 
2370
- // Handle the result
2371
2258
  console.log(result);
2372
2259
  }
2373
2260
 
@@ -2395,15 +2282,12 @@ async function run() {
2395
2282
  connectionId: "<id>",
2396
2283
  id: "<id>",
2397
2284
  });
2398
-
2399
- if (!res.ok) {
2400
- throw res.error;
2285
+ if (res.ok) {
2286
+ const { value: result } = res;
2287
+ console.log(result);
2288
+ } else {
2289
+ console.log("hrisRemoveHrisCompany failed:", res.error);
2401
2290
  }
2402
-
2403
- const { value: result } = res;
2404
-
2405
- // Handle the result
2406
- console.log(result);
2407
2291
  }
2408
2292
 
2409
2293
  run();
@@ -2449,7 +2333,6 @@ async function run() {
2449
2333
  id: "<id>",
2450
2334
  });
2451
2335
 
2452
- // Handle the result
2453
2336
  console.log(result);
2454
2337
  }
2455
2338
 
@@ -2477,15 +2360,12 @@ async function run() {
2477
2360
  connectionId: "<id>",
2478
2361
  id: "<id>",
2479
2362
  });
2480
-
2481
- if (!res.ok) {
2482
- throw res.error;
2363
+ if (res.ok) {
2364
+ const { value: result } = res;
2365
+ console.log(result);
2366
+ } else {
2367
+ console.log("hrisRemoveHrisDevice failed:", res.error);
2483
2368
  }
2484
-
2485
- const { value: result } = res;
2486
-
2487
- // Handle the result
2488
- console.log(result);
2489
2369
  }
2490
2370
 
2491
2371
  run();
@@ -2531,7 +2411,6 @@ async function run() {
2531
2411
  id: "<id>",
2532
2412
  });
2533
2413
 
2534
- // Handle the result
2535
2414
  console.log(result);
2536
2415
  }
2537
2416
 
@@ -2559,15 +2438,12 @@ async function run() {
2559
2438
  connectionId: "<id>",
2560
2439
  id: "<id>",
2561
2440
  });
2562
-
2563
- if (!res.ok) {
2564
- throw res.error;
2441
+ if (res.ok) {
2442
+ const { value: result } = res;
2443
+ console.log(result);
2444
+ } else {
2445
+ console.log("hrisRemoveHrisEmployee failed:", res.error);
2565
2446
  }
2566
-
2567
- const { value: result } = res;
2568
-
2569
- // Handle the result
2570
- console.log(result);
2571
2447
  }
2572
2448
 
2573
2449
  run();
@@ -2613,7 +2489,6 @@ async function run() {
2613
2489
  id: "<id>",
2614
2490
  });
2615
2491
 
2616
- // Handle the result
2617
2492
  console.log(result);
2618
2493
  }
2619
2494
 
@@ -2641,15 +2516,12 @@ async function run() {
2641
2516
  connectionId: "<id>",
2642
2517
  id: "<id>",
2643
2518
  });
2644
-
2645
- if (!res.ok) {
2646
- throw res.error;
2519
+ if (res.ok) {
2520
+ const { value: result } = res;
2521
+ console.log(result);
2522
+ } else {
2523
+ console.log("hrisRemoveHrisGroup failed:", res.error);
2647
2524
  }
2648
-
2649
- const { value: result } = res;
2650
-
2651
- // Handle the result
2652
- console.log(result);
2653
2525
  }
2654
2526
 
2655
2527
  run();
@@ -2695,7 +2567,6 @@ async function run() {
2695
2567
  id: "<id>",
2696
2568
  });
2697
2569
 
2698
- // Handle the result
2699
2570
  console.log(result);
2700
2571
  }
2701
2572
 
@@ -2723,15 +2594,12 @@ async function run() {
2723
2594
  connectionId: "<id>",
2724
2595
  id: "<id>",
2725
2596
  });
2726
-
2727
- if (!res.ok) {
2728
- throw res.error;
2597
+ if (res.ok) {
2598
+ const { value: result } = res;
2599
+ console.log(result);
2600
+ } else {
2601
+ console.log("hrisRemoveHrisLocation failed:", res.error);
2729
2602
  }
2730
-
2731
- const { value: result } = res;
2732
-
2733
- // Handle the result
2734
- console.log(result);
2735
2603
  }
2736
2604
 
2737
2605
  run();
@@ -2777,7 +2645,6 @@ async function run() {
2777
2645
  id: "<id>",
2778
2646
  });
2779
2647
 
2780
- // Handle the result
2781
2648
  console.log(result);
2782
2649
  }
2783
2650
 
@@ -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("hrisRemoveHrisTimeshift 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("hrisUpdateHrisCompany 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();
@@ -2946,7 +2806,6 @@ async function run() {
2946
2806
  id: "<id>",
2947
2807
  });
2948
2808
 
2949
- // Handle the result
2950
2809
  console.log(result);
2951
2810
  }
2952
2811
 
@@ -2977,15 +2836,12 @@ async function run() {
2977
2836
  connectionId: "<id>",
2978
2837
  id: "<id>",
2979
2838
  });
2980
-
2981
- if (!res.ok) {
2982
- throw res.error;
2839
+ if (res.ok) {
2840
+ const { value: result } = res;
2841
+ console.log(result);
2842
+ } else {
2843
+ console.log("hrisUpdateHrisDevice failed:", res.error);
2983
2844
  }
2984
-
2985
- const { value: result } = res;
2986
-
2987
- // Handle the result
2988
- console.log(result);
2989
2845
  }
2990
2846
 
2991
2847
  run();
@@ -3032,7 +2888,6 @@ async function run() {
3032
2888
  id: "<id>",
3033
2889
  });
3034
2890
 
3035
- // Handle the result
3036
2891
  console.log(result);
3037
2892
  }
3038
2893
 
@@ -3061,15 +2916,12 @@ async function run() {
3061
2916
  connectionId: "<id>",
3062
2917
  id: "<id>",
3063
2918
  });
3064
-
3065
- if (!res.ok) {
3066
- throw res.error;
2919
+ if (res.ok) {
2920
+ const { value: result } = res;
2921
+ console.log(result);
2922
+ } else {
2923
+ console.log("hrisUpdateHrisEmployee failed:", res.error);
3067
2924
  }
3068
-
3069
- const { value: result } = res;
3070
-
3071
- // Handle the result
3072
- console.log(result);
3073
2925
  }
3074
2926
 
3075
2927
  run();
@@ -3116,7 +2968,6 @@ async function run() {
3116
2968
  id: "<id>",
3117
2969
  });
3118
2970
 
3119
- // Handle the result
3120
2971
  console.log(result);
3121
2972
  }
3122
2973
 
@@ -3145,15 +2996,12 @@ async function run() {
3145
2996
  connectionId: "<id>",
3146
2997
  id: "<id>",
3147
2998
  });
3148
-
3149
- if (!res.ok) {
3150
- throw res.error;
2999
+ if (res.ok) {
3000
+ const { value: result } = res;
3001
+ console.log(result);
3002
+ } else {
3003
+ console.log("hrisUpdateHrisGroup failed:", res.error);
3151
3004
  }
3152
-
3153
- const { value: result } = res;
3154
-
3155
- // Handle the result
3156
- console.log(result);
3157
3005
  }
3158
3006
 
3159
3007
  run();
@@ -3200,7 +3048,6 @@ async function run() {
3200
3048
  id: "<id>",
3201
3049
  });
3202
3050
 
3203
- // Handle the result
3204
3051
  console.log(result);
3205
3052
  }
3206
3053
 
@@ -3229,15 +3076,12 @@ async function run() {
3229
3076
  connectionId: "<id>",
3230
3077
  id: "<id>",
3231
3078
  });
3232
-
3233
- if (!res.ok) {
3234
- throw res.error;
3079
+ if (res.ok) {
3080
+ const { value: result } = res;
3081
+ console.log(result);
3082
+ } else {
3083
+ console.log("hrisUpdateHrisLocation failed:", res.error);
3235
3084
  }
3236
-
3237
- const { value: result } = res;
3238
-
3239
- // Handle the result
3240
- console.log(result);
3241
3085
  }
3242
3086
 
3243
3087
  run();
@@ -3284,7 +3128,6 @@ async function run() {
3284
3128
  id: "<id>",
3285
3129
  });
3286
3130
 
3287
- // Handle the result
3288
3131
  console.log(result);
3289
3132
  }
3290
3133
 
@@ -3313,15 +3156,12 @@ async function run() {
3313
3156
  connectionId: "<id>",
3314
3157
  id: "<id>",
3315
3158
  });
3316
-
3317
- if (!res.ok) {
3318
- throw res.error;
3159
+ if (res.ok) {
3160
+ const { value: result } = res;
3161
+ console.log(result);
3162
+ } else {
3163
+ console.log("hrisUpdateHrisTimeshift failed:", res.error);
3319
3164
  }
3320
-
3321
- const { value: result } = res;
3322
-
3323
- // Handle the result
3324
- console.log(result);
3325
3165
  }
3326
3166
 
3327
3167
  run();