@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
@@ -33,7 +33,6 @@ async function run() {
33
33
  connectionId: "<id>",
34
34
  });
35
35
 
36
- // Handle the result
37
36
  console.log(result);
38
37
  }
39
38
 
@@ -61,15 +60,12 @@ async function run() {
61
60
  ticketingTicket: {},
62
61
  connectionId: "<id>",
63
62
  });
64
-
65
- if (!res.ok) {
66
- throw res.error;
63
+ if (res.ok) {
64
+ const { value: result } = res;
65
+ console.log(result);
66
+ } else {
67
+ console.log("ticketCreateTicketingTicket failed:", res.error);
67
68
  }
68
-
69
- const { value: result } = res;
70
-
71
- // Handle the result
72
- console.log(result);
73
69
  }
74
70
 
75
71
  run();
@@ -115,7 +111,6 @@ async function run() {
115
111
  id: "<id>",
116
112
  });
117
113
 
118
- // Handle the result
119
114
  console.log(result);
120
115
  }
121
116
 
@@ -143,15 +138,12 @@ async function run() {
143
138
  connectionId: "<id>",
144
139
  id: "<id>",
145
140
  });
146
-
147
- if (!res.ok) {
148
- throw res.error;
141
+ if (res.ok) {
142
+ const { value: result } = res;
143
+ console.log(result);
144
+ } else {
145
+ console.log("ticketGetTicketingTicket failed:", res.error);
149
146
  }
150
-
151
- const { value: result } = res;
152
-
153
- // Handle the result
154
- console.log(result);
155
147
  }
156
148
 
157
149
  run();
@@ -196,7 +188,6 @@ async function run() {
196
188
  connectionId: "<id>",
197
189
  });
198
190
 
199
- // Handle the result
200
191
  console.log(result);
201
192
  }
202
193
 
@@ -223,15 +214,12 @@ async function run() {
223
214
  const res = await ticketListTicketingTickets(unifiedTo, {
224
215
  connectionId: "<id>",
225
216
  });
226
-
227
- if (!res.ok) {
228
- throw res.error;
217
+ if (res.ok) {
218
+ const { value: result } = res;
219
+ console.log(result);
220
+ } else {
221
+ console.log("ticketListTicketingTickets failed:", res.error);
229
222
  }
230
-
231
- const { value: result } = res;
232
-
233
- // Handle the result
234
- console.log(result);
235
223
  }
236
224
 
237
225
  run();
@@ -278,7 +266,6 @@ async function run() {
278
266
  id: "<id>",
279
267
  });
280
268
 
281
- // Handle the result
282
269
  console.log(result);
283
270
  }
284
271
 
@@ -307,15 +294,12 @@ async function run() {
307
294
  connectionId: "<id>",
308
295
  id: "<id>",
309
296
  });
310
-
311
- if (!res.ok) {
312
- throw res.error;
297
+ if (res.ok) {
298
+ const { value: result } = res;
299
+ console.log(result);
300
+ } else {
301
+ console.log("ticketPatchTicketingTicket failed:", res.error);
313
302
  }
314
-
315
- const { value: result } = res;
316
-
317
- // Handle the result
318
- console.log(result);
319
303
  }
320
304
 
321
305
  run();
@@ -361,7 +345,6 @@ async function run() {
361
345
  id: "<id>",
362
346
  });
363
347
 
364
- // Handle the result
365
348
  console.log(result);
366
349
  }
367
350
 
@@ -389,15 +372,12 @@ async function run() {
389
372
  connectionId: "<id>",
390
373
  id: "<id>",
391
374
  });
392
-
393
- if (!res.ok) {
394
- throw res.error;
375
+ if (res.ok) {
376
+ const { value: result } = res;
377
+ console.log(result);
378
+ } else {
379
+ console.log("ticketRemoveTicketingTicket failed:", res.error);
395
380
  }
396
-
397
- const { value: result } = res;
398
-
399
- // Handle the result
400
- console.log(result);
401
381
  }
402
382
 
403
383
  run();
@@ -444,7 +424,6 @@ async function run() {
444
424
  id: "<id>",
445
425
  });
446
426
 
447
- // Handle the result
448
427
  console.log(result);
449
428
  }
450
429
 
@@ -473,15 +452,12 @@ async function run() {
473
452
  connectionId: "<id>",
474
453
  id: "<id>",
475
454
  });
476
-
477
- if (!res.ok) {
478
- throw res.error;
455
+ if (res.ok) {
456
+ const { value: result } = res;
457
+ console.log(result);
458
+ } else {
459
+ console.log("ticketUpdateTicketingTicket failed:", res.error);
479
460
  }
480
-
481
- const { value: result } = res;
482
-
483
- // Handle the result
484
- console.log(result);
485
461
  }
486
462
 
487
463
  run();
@@ -45,7 +45,6 @@ async function run() {
45
45
  connectionId: "<id>",
46
46
  });
47
47
 
48
- // Handle the result
49
48
  console.log(result);
50
49
  }
51
50
 
@@ -73,15 +72,12 @@ async function run() {
73
72
  ticketingCustomer: {},
74
73
  connectionId: "<id>",
75
74
  });
76
-
77
- if (!res.ok) {
78
- throw res.error;
75
+ if (res.ok) {
76
+ const { value: result } = res;
77
+ console.log(result);
78
+ } else {
79
+ console.log("ticketingCreateTicketingCustomer failed:", res.error);
79
80
  }
80
-
81
- const { value: result } = res;
82
-
83
- // Handle the result
84
- console.log(result);
85
81
  }
86
82
 
87
83
  run();
@@ -127,7 +123,6 @@ async function run() {
127
123
  connectionId: "<id>",
128
124
  });
129
125
 
130
- // Handle the result
131
126
  console.log(result);
132
127
  }
133
128
 
@@ -155,15 +150,12 @@ async function run() {
155
150
  ticketingNote: {},
156
151
  connectionId: "<id>",
157
152
  });
158
-
159
- if (!res.ok) {
160
- throw res.error;
153
+ if (res.ok) {
154
+ const { value: result } = res;
155
+ console.log(result);
156
+ } else {
157
+ console.log("ticketingCreateTicketingNote failed:", res.error);
161
158
  }
162
-
163
- const { value: result } = res;
164
-
165
- // Handle the result
166
- console.log(result);
167
159
  }
168
160
 
169
161
  run();
@@ -209,7 +201,6 @@ async function run() {
209
201
  connectionId: "<id>",
210
202
  });
211
203
 
212
- // Handle the result
213
204
  console.log(result);
214
205
  }
215
206
 
@@ -237,15 +228,12 @@ async function run() {
237
228
  ticketingTicket: {},
238
229
  connectionId: "<id>",
239
230
  });
240
-
241
- if (!res.ok) {
242
- throw res.error;
231
+ if (res.ok) {
232
+ const { value: result } = res;
233
+ console.log(result);
234
+ } else {
235
+ console.log("ticketingCreateTicketingTicket failed:", res.error);
243
236
  }
244
-
245
- const { value: result } = res;
246
-
247
- // Handle the result
248
- console.log(result);
249
237
  }
250
238
 
251
239
  run();
@@ -291,7 +279,6 @@ async function run() {
291
279
  id: "<id>",
292
280
  });
293
281
 
294
- // Handle the result
295
282
  console.log(result);
296
283
  }
297
284
 
@@ -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("ticketingGetTicketingCustomer 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("ticketingGetTicketingNote 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();
@@ -455,7 +435,6 @@ async function run() {
455
435
  id: "<id>",
456
436
  });
457
437
 
458
- // Handle the result
459
438
  console.log(result);
460
439
  }
461
440
 
@@ -483,15 +462,12 @@ async function run() {
483
462
  connectionId: "<id>",
484
463
  id: "<id>",
485
464
  });
486
-
487
- if (!res.ok) {
488
- throw res.error;
465
+ if (res.ok) {
466
+ const { value: result } = res;
467
+ console.log(result);
468
+ } else {
469
+ console.log("ticketingGetTicketingTicket failed:", res.error);
489
470
  }
490
-
491
- const { value: result } = res;
492
-
493
- // Handle the result
494
- console.log(result);
495
471
  }
496
472
 
497
473
  run();
@@ -536,7 +512,6 @@ async function run() {
536
512
  connectionId: "<id>",
537
513
  });
538
514
 
539
- // Handle the result
540
515
  console.log(result);
541
516
  }
542
517
 
@@ -563,15 +538,12 @@ async function run() {
563
538
  const res = await ticketingListTicketingCustomers(unifiedTo, {
564
539
  connectionId: "<id>",
565
540
  });
566
-
567
- if (!res.ok) {
568
- throw res.error;
541
+ if (res.ok) {
542
+ const { value: result } = res;
543
+ console.log(result);
544
+ } else {
545
+ console.log("ticketingListTicketingCustomers failed:", res.error);
569
546
  }
570
-
571
- const { value: result } = res;
572
-
573
- // Handle the result
574
- console.log(result);
575
547
  }
576
548
 
577
549
  run();
@@ -616,7 +588,6 @@ async function run() {
616
588
  connectionId: "<id>",
617
589
  });
618
590
 
619
- // Handle the result
620
591
  console.log(result);
621
592
  }
622
593
 
@@ -643,15 +614,12 @@ async function run() {
643
614
  const res = await ticketingListTicketingNotes(unifiedTo, {
644
615
  connectionId: "<id>",
645
616
  });
646
-
647
- if (!res.ok) {
648
- throw res.error;
617
+ if (res.ok) {
618
+ const { value: result } = res;
619
+ console.log(result);
620
+ } else {
621
+ console.log("ticketingListTicketingNotes failed:", res.error);
649
622
  }
650
-
651
- const { value: result } = res;
652
-
653
- // Handle the result
654
- console.log(result);
655
623
  }
656
624
 
657
625
  run();
@@ -696,7 +664,6 @@ async function run() {
696
664
  connectionId: "<id>",
697
665
  });
698
666
 
699
- // Handle the result
700
667
  console.log(result);
701
668
  }
702
669
 
@@ -723,15 +690,12 @@ async function run() {
723
690
  const res = await ticketingListTicketingTickets(unifiedTo, {
724
691
  connectionId: "<id>",
725
692
  });
726
-
727
- if (!res.ok) {
728
- throw res.error;
693
+ if (res.ok) {
694
+ const { value: result } = res;
695
+ console.log(result);
696
+ } else {
697
+ console.log("ticketingListTicketingTickets failed:", res.error);
729
698
  }
730
-
731
- const { value: result } = res;
732
-
733
- // Handle the result
734
- console.log(result);
735
699
  }
736
700
 
737
701
  run();
@@ -778,7 +742,6 @@ async function run() {
778
742
  id: "<id>",
779
743
  });
780
744
 
781
- // Handle the result
782
745
  console.log(result);
783
746
  }
784
747
 
@@ -807,15 +770,12 @@ async function run() {
807
770
  connectionId: "<id>",
808
771
  id: "<id>",
809
772
  });
810
-
811
- if (!res.ok) {
812
- throw res.error;
773
+ if (res.ok) {
774
+ const { value: result } = res;
775
+ console.log(result);
776
+ } else {
777
+ console.log("ticketingPatchTicketingCustomer failed:", res.error);
813
778
  }
814
-
815
- const { value: result } = res;
816
-
817
- // Handle the result
818
- console.log(result);
819
779
  }
820
780
 
821
781
  run();
@@ -862,7 +822,6 @@ async function run() {
862
822
  id: "<id>",
863
823
  });
864
824
 
865
- // Handle the result
866
825
  console.log(result);
867
826
  }
868
827
 
@@ -891,15 +850,12 @@ async function run() {
891
850
  connectionId: "<id>",
892
851
  id: "<id>",
893
852
  });
894
-
895
- if (!res.ok) {
896
- throw res.error;
853
+ if (res.ok) {
854
+ const { value: result } = res;
855
+ console.log(result);
856
+ } else {
857
+ console.log("ticketingPatchTicketingNote failed:", res.error);
897
858
  }
898
-
899
- const { value: result } = res;
900
-
901
- // Handle the result
902
- console.log(result);
903
859
  }
904
860
 
905
861
  run();
@@ -946,7 +902,6 @@ async function run() {
946
902
  id: "<id>",
947
903
  });
948
904
 
949
- // Handle the result
950
905
  console.log(result);
951
906
  }
952
907
 
@@ -975,15 +930,12 @@ async function run() {
975
930
  connectionId: "<id>",
976
931
  id: "<id>",
977
932
  });
978
-
979
- if (!res.ok) {
980
- throw res.error;
933
+ if (res.ok) {
934
+ const { value: result } = res;
935
+ console.log(result);
936
+ } else {
937
+ console.log("ticketingPatchTicketingTicket failed:", res.error);
981
938
  }
982
-
983
- const { value: result } = res;
984
-
985
- // Handle the result
986
- console.log(result);
987
939
  }
988
940
 
989
941
  run();
@@ -1029,7 +981,6 @@ async function run() {
1029
981
  id: "<id>",
1030
982
  });
1031
983
 
1032
- // Handle the result
1033
984
  console.log(result);
1034
985
  }
1035
986
 
@@ -1057,15 +1008,12 @@ async function run() {
1057
1008
  connectionId: "<id>",
1058
1009
  id: "<id>",
1059
1010
  });
1060
-
1061
- if (!res.ok) {
1062
- throw res.error;
1011
+ if (res.ok) {
1012
+ const { value: result } = res;
1013
+ console.log(result);
1014
+ } else {
1015
+ console.log("ticketingRemoveTicketingCustomer failed:", res.error);
1063
1016
  }
1064
-
1065
- const { value: result } = res;
1066
-
1067
- // Handle the result
1068
- console.log(result);
1069
1017
  }
1070
1018
 
1071
1019
  run();
@@ -1111,7 +1059,6 @@ async function run() {
1111
1059
  id: "<id>",
1112
1060
  });
1113
1061
 
1114
- // Handle the result
1115
1062
  console.log(result);
1116
1063
  }
1117
1064
 
@@ -1139,15 +1086,12 @@ async function run() {
1139
1086
  connectionId: "<id>",
1140
1087
  id: "<id>",
1141
1088
  });
1142
-
1143
- if (!res.ok) {
1144
- throw res.error;
1089
+ if (res.ok) {
1090
+ const { value: result } = res;
1091
+ console.log(result);
1092
+ } else {
1093
+ console.log("ticketingRemoveTicketingNote failed:", res.error);
1145
1094
  }
1146
-
1147
- const { value: result } = res;
1148
-
1149
- // Handle the result
1150
- console.log(result);
1151
1095
  }
1152
1096
 
1153
1097
  run();
@@ -1193,7 +1137,6 @@ async function run() {
1193
1137
  id: "<id>",
1194
1138
  });
1195
1139
 
1196
- // Handle the result
1197
1140
  console.log(result);
1198
1141
  }
1199
1142
 
@@ -1221,15 +1164,12 @@ async function run() {
1221
1164
  connectionId: "<id>",
1222
1165
  id: "<id>",
1223
1166
  });
1224
-
1225
- if (!res.ok) {
1226
- throw res.error;
1167
+ if (res.ok) {
1168
+ const { value: result } = res;
1169
+ console.log(result);
1170
+ } else {
1171
+ console.log("ticketingRemoveTicketingTicket failed:", res.error);
1227
1172
  }
1228
-
1229
- const { value: result } = res;
1230
-
1231
- // Handle the result
1232
- console.log(result);
1233
1173
  }
1234
1174
 
1235
1175
  run();
@@ -1276,7 +1216,6 @@ async function run() {
1276
1216
  id: "<id>",
1277
1217
  });
1278
1218
 
1279
- // Handle the result
1280
1219
  console.log(result);
1281
1220
  }
1282
1221
 
@@ -1305,15 +1244,12 @@ async function run() {
1305
1244
  connectionId: "<id>",
1306
1245
  id: "<id>",
1307
1246
  });
1308
-
1309
- if (!res.ok) {
1310
- throw res.error;
1247
+ if (res.ok) {
1248
+ const { value: result } = res;
1249
+ console.log(result);
1250
+ } else {
1251
+ console.log("ticketingUpdateTicketingCustomer failed:", res.error);
1311
1252
  }
1312
-
1313
- const { value: result } = res;
1314
-
1315
- // Handle the result
1316
- console.log(result);
1317
1253
  }
1318
1254
 
1319
1255
  run();
@@ -1360,7 +1296,6 @@ async function run() {
1360
1296
  id: "<id>",
1361
1297
  });
1362
1298
 
1363
- // Handle the result
1364
1299
  console.log(result);
1365
1300
  }
1366
1301
 
@@ -1389,15 +1324,12 @@ async function run() {
1389
1324
  connectionId: "<id>",
1390
1325
  id: "<id>",
1391
1326
  });
1392
-
1393
- if (!res.ok) {
1394
- throw res.error;
1327
+ if (res.ok) {
1328
+ const { value: result } = res;
1329
+ console.log(result);
1330
+ } else {
1331
+ console.log("ticketingUpdateTicketingNote failed:", res.error);
1395
1332
  }
1396
-
1397
- const { value: result } = res;
1398
-
1399
- // Handle the result
1400
- console.log(result);
1401
1333
  }
1402
1334
 
1403
1335
  run();
@@ -1444,7 +1376,6 @@ async function run() {
1444
1376
  id: "<id>",
1445
1377
  });
1446
1378
 
1447
- // Handle the result
1448
1379
  console.log(result);
1449
1380
  }
1450
1381
 
@@ -1473,15 +1404,12 @@ async function run() {
1473
1404
  connectionId: "<id>",
1474
1405
  id: "<id>",
1475
1406
  });
1476
-
1477
- if (!res.ok) {
1478
- throw res.error;
1407
+ if (res.ok) {
1408
+ const { value: result } = res;
1409
+ console.log(result);
1410
+ } else {
1411
+ console.log("ticketingUpdateTicketingTicket failed:", res.error);
1479
1412
  }
1480
-
1481
- const { value: result } = res;
1482
-
1483
- // Handle the result
1484
- console.log(result);
1485
1413
  }
1486
1414
 
1487
1415
  run();