@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
@@ -36,7 +36,6 @@ async function run() {
36
36
  connectionId: "<id>",
37
37
  });
38
38
 
39
- // Handle the result
40
39
  console.log(result);
41
40
  }
42
41
 
@@ -67,15 +66,12 @@ async function run() {
67
66
  },
68
67
  connectionId: "<id>",
69
68
  });
70
-
71
- if (!res.ok) {
72
- throw res.error;
69
+ if (res.ok) {
70
+ const { value: result } = res;
71
+ console.log(result);
72
+ } else {
73
+ console.log("commitCreateRepoCommit failed:", res.error);
73
74
  }
74
-
75
- const { value: result } = res;
76
-
77
- // Handle the result
78
- console.log(result);
79
75
  }
80
76
 
81
77
  run();
@@ -121,7 +117,6 @@ async function run() {
121
117
  id: "<id>",
122
118
  });
123
119
 
124
- // Handle the result
125
120
  console.log(result);
126
121
  }
127
122
 
@@ -149,15 +144,12 @@ async function run() {
149
144
  connectionId: "<id>",
150
145
  id: "<id>",
151
146
  });
152
-
153
- if (!res.ok) {
154
- throw res.error;
147
+ if (res.ok) {
148
+ const { value: result } = res;
149
+ console.log(result);
150
+ } else {
151
+ console.log("commitGetRepoCommit failed:", res.error);
155
152
  }
156
-
157
- const { value: result } = res;
158
-
159
- // Handle the result
160
- console.log(result);
161
153
  }
162
154
 
163
155
  run();
@@ -202,7 +194,6 @@ async function run() {
202
194
  connectionId: "<id>",
203
195
  });
204
196
 
205
- // Handle the result
206
197
  console.log(result);
207
198
  }
208
199
 
@@ -229,15 +220,12 @@ async function run() {
229
220
  const res = await commitListRepoCommits(unifiedTo, {
230
221
  connectionId: "<id>",
231
222
  });
232
-
233
- if (!res.ok) {
234
- throw res.error;
223
+ if (res.ok) {
224
+ const { value: result } = res;
225
+ console.log(result);
226
+ } else {
227
+ console.log("commitListRepoCommits failed:", res.error);
235
228
  }
236
-
237
- const { value: result } = res;
238
-
239
- // Handle the result
240
- console.log(result);
241
229
  }
242
230
 
243
231
  run();
@@ -287,7 +275,6 @@ async function run() {
287
275
  id: "<id>",
288
276
  });
289
277
 
290
- // Handle the result
291
278
  console.log(result);
292
279
  }
293
280
 
@@ -319,15 +306,12 @@ async function run() {
319
306
  connectionId: "<id>",
320
307
  id: "<id>",
321
308
  });
322
-
323
- if (!res.ok) {
324
- throw res.error;
309
+ if (res.ok) {
310
+ const { value: result } = res;
311
+ console.log(result);
312
+ } else {
313
+ console.log("commitPatchRepoCommit failed:", res.error);
325
314
  }
326
-
327
- const { value: result } = res;
328
-
329
- // Handle the result
330
- console.log(result);
331
315
  }
332
316
 
333
317
  run();
@@ -373,7 +357,6 @@ async function run() {
373
357
  id: "<id>",
374
358
  });
375
359
 
376
- // Handle the result
377
360
  console.log(result);
378
361
  }
379
362
 
@@ -401,15 +384,12 @@ async function run() {
401
384
  connectionId: "<id>",
402
385
  id: "<id>",
403
386
  });
404
-
405
- if (!res.ok) {
406
- throw res.error;
387
+ if (res.ok) {
388
+ const { value: result } = res;
389
+ console.log(result);
390
+ } else {
391
+ console.log("commitRemoveRepoCommit failed:", res.error);
407
392
  }
408
-
409
- const { value: result } = res;
410
-
411
- // Handle the result
412
- console.log(result);
413
393
  }
414
394
 
415
395
  run();
@@ -459,7 +439,6 @@ async function run() {
459
439
  id: "<id>",
460
440
  });
461
441
 
462
- // Handle the result
463
442
  console.log(result);
464
443
  }
465
444
 
@@ -491,15 +470,12 @@ async function run() {
491
470
  connectionId: "<id>",
492
471
  id: "<id>",
493
472
  });
494
-
495
- if (!res.ok) {
496
- throw res.error;
473
+ if (res.ok) {
474
+ const { value: result } = res;
475
+ console.log(result);
476
+ } else {
477
+ console.log("commitUpdateRepoCommit failed:", res.error);
497
478
  }
498
-
499
- const { value: result } = res;
500
-
501
- // Handle the result
502
- console.log(result);
503
479
  }
504
480
 
505
481
  run();
@@ -42,7 +42,6 @@ async function run() {
42
42
  connectionId: "<id>",
43
43
  });
44
44
 
45
- // Handle the result
46
45
  console.log(result);
47
46
  }
48
47
 
@@ -70,15 +69,12 @@ async function run() {
70
69
  crmCompany: {},
71
70
  connectionId: "<id>",
72
71
  });
73
-
74
- if (!res.ok) {
75
- throw res.error;
72
+ if (res.ok) {
73
+ const { value: result } = res;
74
+ console.log(result);
75
+ } else {
76
+ console.log("companyCreateCrmCompany failed:", res.error);
76
77
  }
77
-
78
- const { value: result } = res;
79
-
80
- // Handle the result
81
- console.log(result);
82
78
  }
83
79
 
84
80
  run();
@@ -124,7 +120,6 @@ async function run() {
124
120
  connectionId: "<id>",
125
121
  });
126
122
 
127
- // Handle the result
128
123
  console.log(result);
129
124
  }
130
125
 
@@ -152,15 +147,12 @@ async function run() {
152
147
  hrisCompany: {},
153
148
  connectionId: "<id>",
154
149
  });
155
-
156
- if (!res.ok) {
157
- throw res.error;
150
+ if (res.ok) {
151
+ const { value: result } = res;
152
+ console.log(result);
153
+ } else {
154
+ console.log("companyCreateHrisCompany failed:", res.error);
158
155
  }
159
-
160
- const { value: result } = res;
161
-
162
- // Handle the result
163
- console.log(result);
164
156
  }
165
157
 
166
158
  run();
@@ -206,7 +198,6 @@ async function run() {
206
198
  id: "<id>",
207
199
  });
208
200
 
209
- // Handle the result
210
201
  console.log(result);
211
202
  }
212
203
 
@@ -234,15 +225,12 @@ async function run() {
234
225
  connectionId: "<id>",
235
226
  id: "<id>",
236
227
  });
237
-
238
- if (!res.ok) {
239
- throw res.error;
228
+ if (res.ok) {
229
+ const { value: result } = res;
230
+ console.log(result);
231
+ } else {
232
+ console.log("companyGetAtsCompany failed:", res.error);
240
233
  }
241
-
242
- const { value: result } = res;
243
-
244
- // Handle the result
245
- console.log(result);
246
234
  }
247
235
 
248
236
  run();
@@ -288,7 +276,6 @@ async function run() {
288
276
  id: "<id>",
289
277
  });
290
278
 
291
- // Handle the result
292
279
  console.log(result);
293
280
  }
294
281
 
@@ -316,15 +303,12 @@ async function run() {
316
303
  connectionId: "<id>",
317
304
  id: "<id>",
318
305
  });
319
-
320
- if (!res.ok) {
321
- throw res.error;
306
+ if (res.ok) {
307
+ const { value: result } = res;
308
+ console.log(result);
309
+ } else {
310
+ console.log("companyGetCrmCompany failed:", res.error);
322
311
  }
323
-
324
- const { value: result } = res;
325
-
326
- // Handle the result
327
- console.log(result);
328
312
  }
329
313
 
330
314
  run();
@@ -370,7 +354,6 @@ async function run() {
370
354
  id: "<id>",
371
355
  });
372
356
 
373
- // Handle the result
374
357
  console.log(result);
375
358
  }
376
359
 
@@ -398,15 +381,12 @@ async function run() {
398
381
  connectionId: "<id>",
399
382
  id: "<id>",
400
383
  });
401
-
402
- if (!res.ok) {
403
- throw res.error;
384
+ if (res.ok) {
385
+ const { value: result } = res;
386
+ console.log(result);
387
+ } else {
388
+ console.log("companyGetHrisCompany failed:", res.error);
404
389
  }
405
-
406
- const { value: result } = res;
407
-
408
- // Handle the result
409
- console.log(result);
410
390
  }
411
391
 
412
392
  run();
@@ -451,7 +431,6 @@ async function run() {
451
431
  connectionId: "<id>",
452
432
  });
453
433
 
454
- // Handle the result
455
434
  console.log(result);
456
435
  }
457
436
 
@@ -478,15 +457,12 @@ async function run() {
478
457
  const res = await companyListAtsCompanies(unifiedTo, {
479
458
  connectionId: "<id>",
480
459
  });
481
-
482
- if (!res.ok) {
483
- throw res.error;
460
+ if (res.ok) {
461
+ const { value: result } = res;
462
+ console.log(result);
463
+ } else {
464
+ console.log("companyListAtsCompanies failed:", res.error);
484
465
  }
485
-
486
- const { value: result } = res;
487
-
488
- // Handle the result
489
- console.log(result);
490
466
  }
491
467
 
492
468
  run();
@@ -531,7 +507,6 @@ async function run() {
531
507
  connectionId: "<id>",
532
508
  });
533
509
 
534
- // Handle the result
535
510
  console.log(result);
536
511
  }
537
512
 
@@ -558,15 +533,12 @@ async function run() {
558
533
  const res = await companyListCrmCompanies(unifiedTo, {
559
534
  connectionId: "<id>",
560
535
  });
561
-
562
- if (!res.ok) {
563
- throw res.error;
536
+ if (res.ok) {
537
+ const { value: result } = res;
538
+ console.log(result);
539
+ } else {
540
+ console.log("companyListCrmCompanies failed:", res.error);
564
541
  }
565
-
566
- const { value: result } = res;
567
-
568
- // Handle the result
569
- console.log(result);
570
542
  }
571
543
 
572
544
  run();
@@ -611,7 +583,6 @@ async function run() {
611
583
  connectionId: "<id>",
612
584
  });
613
585
 
614
- // Handle the result
615
586
  console.log(result);
616
587
  }
617
588
 
@@ -638,15 +609,12 @@ async function run() {
638
609
  const res = await companyListEnrichCompanies(unifiedTo, {
639
610
  connectionId: "<id>",
640
611
  });
641
-
642
- if (!res.ok) {
643
- throw res.error;
612
+ if (res.ok) {
613
+ const { value: result } = res;
614
+ console.log(result);
615
+ } else {
616
+ console.log("companyListEnrichCompanies failed:", res.error);
644
617
  }
645
-
646
- const { value: result } = res;
647
-
648
- // Handle the result
649
- console.log(result);
650
618
  }
651
619
 
652
620
  run();
@@ -691,7 +659,6 @@ async function run() {
691
659
  connectionId: "<id>",
692
660
  });
693
661
 
694
- // Handle the result
695
662
  console.log(result);
696
663
  }
697
664
 
@@ -718,15 +685,12 @@ async function run() {
718
685
  const res = await companyListHrisCompanies(unifiedTo, {
719
686
  connectionId: "<id>",
720
687
  });
721
-
722
- if (!res.ok) {
723
- throw res.error;
688
+ if (res.ok) {
689
+ const { value: result } = res;
690
+ console.log(result);
691
+ } else {
692
+ console.log("companyListHrisCompanies failed:", res.error);
724
693
  }
725
-
726
- const { value: result } = res;
727
-
728
- // Handle the result
729
- console.log(result);
730
694
  }
731
695
 
732
696
  run();
@@ -773,7 +737,6 @@ async function run() {
773
737
  id: "<id>",
774
738
  });
775
739
 
776
- // Handle the result
777
740
  console.log(result);
778
741
  }
779
742
 
@@ -802,15 +765,12 @@ async function run() {
802
765
  connectionId: "<id>",
803
766
  id: "<id>",
804
767
  });
805
-
806
- if (!res.ok) {
807
- throw res.error;
768
+ if (res.ok) {
769
+ const { value: result } = res;
770
+ console.log(result);
771
+ } else {
772
+ console.log("companyPatchCrmCompany failed:", res.error);
808
773
  }
809
-
810
- const { value: result } = res;
811
-
812
- // Handle the result
813
- console.log(result);
814
774
  }
815
775
 
816
776
  run();
@@ -857,7 +817,6 @@ async function run() {
857
817
  id: "<id>",
858
818
  });
859
819
 
860
- // Handle the result
861
820
  console.log(result);
862
821
  }
863
822
 
@@ -886,15 +845,12 @@ async function run() {
886
845
  connectionId: "<id>",
887
846
  id: "<id>",
888
847
  });
889
-
890
- if (!res.ok) {
891
- throw res.error;
848
+ if (res.ok) {
849
+ const { value: result } = res;
850
+ console.log(result);
851
+ } else {
852
+ console.log("companyPatchHrisCompany failed:", res.error);
892
853
  }
893
-
894
- const { value: result } = res;
895
-
896
- // Handle the result
897
- console.log(result);
898
854
  }
899
855
 
900
856
  run();
@@ -940,7 +896,6 @@ async function run() {
940
896
  id: "<id>",
941
897
  });
942
898
 
943
- // Handle the result
944
899
  console.log(result);
945
900
  }
946
901
 
@@ -968,15 +923,12 @@ async function run() {
968
923
  connectionId: "<id>",
969
924
  id: "<id>",
970
925
  });
971
-
972
- if (!res.ok) {
973
- throw res.error;
926
+ if (res.ok) {
927
+ const { value: result } = res;
928
+ console.log(result);
929
+ } else {
930
+ console.log("companyRemoveCrmCompany failed:", res.error);
974
931
  }
975
-
976
- const { value: result } = res;
977
-
978
- // Handle the result
979
- console.log(result);
980
932
  }
981
933
 
982
934
  run();
@@ -1022,7 +974,6 @@ async function run() {
1022
974
  id: "<id>",
1023
975
  });
1024
976
 
1025
- // Handle the result
1026
977
  console.log(result);
1027
978
  }
1028
979
 
@@ -1050,15 +1001,12 @@ async function run() {
1050
1001
  connectionId: "<id>",
1051
1002
  id: "<id>",
1052
1003
  });
1053
-
1054
- if (!res.ok) {
1055
- throw res.error;
1004
+ if (res.ok) {
1005
+ const { value: result } = res;
1006
+ console.log(result);
1007
+ } else {
1008
+ console.log("companyRemoveHrisCompany failed:", res.error);
1056
1009
  }
1057
-
1058
- const { value: result } = res;
1059
-
1060
- // Handle the result
1061
- console.log(result);
1062
1010
  }
1063
1011
 
1064
1012
  run();
@@ -1105,7 +1053,6 @@ async function run() {
1105
1053
  id: "<id>",
1106
1054
  });
1107
1055
 
1108
- // Handle the result
1109
1056
  console.log(result);
1110
1057
  }
1111
1058
 
@@ -1134,15 +1081,12 @@ async function run() {
1134
1081
  connectionId: "<id>",
1135
1082
  id: "<id>",
1136
1083
  });
1137
-
1138
- if (!res.ok) {
1139
- throw res.error;
1084
+ if (res.ok) {
1085
+ const { value: result } = res;
1086
+ console.log(result);
1087
+ } else {
1088
+ console.log("companyUpdateCrmCompany failed:", res.error);
1140
1089
  }
1141
-
1142
- const { value: result } = res;
1143
-
1144
- // Handle the result
1145
- console.log(result);
1146
1090
  }
1147
1091
 
1148
1092
  run();
@@ -1189,7 +1133,6 @@ async function run() {
1189
1133
  id: "<id>",
1190
1134
  });
1191
1135
 
1192
- // Handle the result
1193
1136
  console.log(result);
1194
1137
  }
1195
1138
 
@@ -1218,15 +1161,12 @@ async function run() {
1218
1161
  connectionId: "<id>",
1219
1162
  id: "<id>",
1220
1163
  });
1221
-
1222
- if (!res.ok) {
1223
- throw res.error;
1164
+ if (res.ok) {
1165
+ const { value: result } = res;
1166
+ console.log(result);
1167
+ } else {
1168
+ console.log("companyUpdateHrisCompany failed:", res.error);
1224
1169
  }
1225
-
1226
- const { value: result } = res;
1227
-
1228
- // Handle the result
1229
- console.log(result);
1230
1170
  }
1231
1171
 
1232
1172
  run();