@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.
- package/FUNCTIONS.md +5 -22
- package/README.md +28 -47
- package/bin/mcp-server.js +60 -15
- package/bin/mcp-server.js.map +24 -24
- package/docs/sdks/account/README.md +30 -54
- package/docs/sdks/accounting/README.md +230 -414
- package/docs/sdks/activity/README.md +30 -54
- package/docs/sdks/apicall/README.md +10 -18
- package/docs/sdks/application/README.md +30 -54
- package/docs/sdks/applicationstatus/README.md +5 -9
- package/docs/sdks/ats/README.md +225 -405
- package/docs/sdks/auth/README.md +10 -18
- package/docs/sdks/branch/README.md +30 -54
- package/docs/sdks/busy/README.md +5 -9
- package/docs/sdks/calendar/README.md +105 -189
- package/docs/sdks/call/README.md +5 -9
- package/docs/sdks/candidate/README.md +30 -54
- package/docs/sdks/channel/README.md +10 -18
- package/docs/sdks/class/README.md +30 -54
- package/docs/sdks/collection/README.md +30 -54
- package/docs/sdks/comment/README.md +90 -162
- package/docs/sdks/commerce/README.md +150 -270
- package/docs/sdks/commit/README.md +30 -54
- package/docs/sdks/company/README.md +75 -135
- package/docs/sdks/connection/README.md +30 -54
- package/docs/sdks/contact/README.md +90 -162
- package/docs/sdks/course/README.md +30 -54
- package/docs/sdks/crm/README.md +180 -324
- package/docs/sdks/customer/README.md +30 -54
- package/docs/sdks/deal/README.md +30 -54
- package/docs/sdks/device/README.md +30 -54
- package/docs/sdks/document/README.md +30 -54
- package/docs/sdks/employee/README.md +30 -54
- package/docs/sdks/enrich/README.md +10 -18
- package/docs/sdks/event/README.md +60 -108
- package/docs/sdks/file/README.md +30 -54
- package/docs/sdks/genai/README.md +10 -18
- package/docs/sdks/group/README.md +60 -108
- package/docs/sdks/hris/README.md +200 -360
- package/docs/sdks/instructor/README.md +30 -54
- package/docs/sdks/integration/README.md +15 -27
- package/docs/sdks/interview/README.md +30 -54
- package/docs/sdks/inventory/README.md +30 -54
- package/docs/sdks/invoice/README.md +30 -54
- package/docs/sdks/issue/README.md +5 -9
- package/docs/sdks/item/README.md +30 -54
- package/docs/sdks/job/README.md +30 -54
- package/docs/sdks/journal/README.md +30 -54
- package/docs/sdks/kms/README.md +90 -162
- package/docs/sdks/lead/README.md +30 -54
- package/docs/sdks/link/README.md +60 -108
- package/docs/sdks/list/README.md +30 -54
- package/docs/sdks/lms/README.md +120 -216
- package/docs/sdks/location/README.md +60 -108
- package/docs/sdks/login/README.md +5 -9
- package/docs/sdks/martech/README.md +60 -108
- package/docs/sdks/member/README.md +30 -54
- package/docs/sdks/message/README.md +30 -54
- package/docs/sdks/messaging/README.md +40 -72
- package/docs/sdks/metadata/README.md +30 -54
- package/docs/sdks/model/README.md +5 -9
- package/docs/sdks/note/README.md +30 -54
- package/docs/sdks/order/README.md +30 -54
- package/docs/sdks/organization/README.md +40 -72
- package/docs/sdks/page/README.md +30 -54
- package/docs/sdks/passthrough/README.md +40 -72
- package/docs/sdks/payment/README.md +110 -198
- package/docs/sdks/payout/README.md +10 -18
- package/docs/sdks/payslip/README.md +10 -18
- package/docs/sdks/person/README.md +5 -9
- package/docs/sdks/pipeline/README.md +30 -54
- package/docs/sdks/project/README.md +30 -54
- package/docs/sdks/prompt/README.md +5 -9
- package/docs/sdks/pullrequest/README.md +30 -54
- package/docs/sdks/recording/README.md +40 -72
- package/docs/sdks/refund/README.md +10 -18
- package/docs/sdks/repo/README.md +150 -270
- package/docs/sdks/report/README.md +10 -18
- package/docs/sdks/repository/README.md +30 -54
- package/docs/sdks/review/README.md +30 -54
- package/docs/sdks/scim/README.md +60 -108
- package/docs/sdks/scorecard/README.md +30 -54
- package/docs/sdks/space/README.md +30 -54
- package/docs/sdks/storage/README.md +30 -54
- package/docs/sdks/student/README.md +30 -54
- package/docs/sdks/subscription/README.md +30 -54
- package/docs/sdks/task/README.md +90 -162
- package/docs/sdks/taxrate/README.md +30 -54
- package/docs/sdks/ticket/README.md +30 -54
- package/docs/sdks/ticketing/README.md +90 -162
- package/docs/sdks/timeoff/README.md +10 -18
- package/docs/sdks/timeshift/README.md +30 -54
- package/docs/sdks/transaction/README.md +30 -54
- package/docs/sdks/uc/README.md +95 -171
- package/docs/sdks/unified/README.md +100 -180
- package/docs/sdks/user/README.md +30 -54
- package/docs/sdks/webhook/README.md +40 -72
- package/funcs/applicationListAtsApplications.js +1 -0
- package/funcs/applicationListAtsApplications.js.map +1 -1
- package/funcs/atsListAtsApplications.js +1 -0
- package/funcs/atsListAtsApplications.js.map +1 -1
- package/funcs/atsListAtsCandidates.js +1 -0
- package/funcs/atsListAtsCandidates.js.map +1 -1
- package/funcs/atsListAtsJobs.js +1 -0
- package/funcs/atsListAtsJobs.js.map +1 -1
- package/funcs/busyListCalendarBusies.js +1 -0
- package/funcs/busyListCalendarBusies.js.map +1 -1
- package/funcs/calendarListCalendarBusies.js +1 -0
- package/funcs/calendarListCalendarBusies.js.map +1 -1
- package/funcs/candidateListAtsCandidates.js +1 -0
- package/funcs/candidateListAtsCandidates.js.map +1 -1
- package/funcs/hrisListHrisLocations.js +1 -0
- package/funcs/hrisListHrisLocations.js.map +1 -1
- package/funcs/jobListAtsJobs.js +1 -0
- package/funcs/jobListAtsJobs.js.map +1 -1
- package/funcs/locationListHrisLocations.js +1 -0
- package/funcs/locationListHrisLocations.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/package.json +1 -1
- package/sdk/models/errors/sdkerror.d.ts +14 -2
- package/sdk/models/errors/sdkerror.d.ts.map +1 -1
- package/sdk/models/errors/sdkerror.js +1 -1
- package/sdk/models/errors/sdkerror.js.map +1 -1
- package/sdk/models/operations/listatsapplications.d.ts +5 -0
- package/sdk/models/operations/listatsapplications.d.ts.map +1 -1
- package/sdk/models/operations/listatsapplications.js +4 -0
- package/sdk/models/operations/listatsapplications.js.map +1 -1
- package/sdk/models/operations/listatscandidates.d.ts +5 -0
- package/sdk/models/operations/listatscandidates.d.ts.map +1 -1
- package/sdk/models/operations/listatscandidates.js +4 -0
- package/sdk/models/operations/listatscandidates.js.map +1 -1
- package/sdk/models/operations/listatsjobs.d.ts +5 -0
- package/sdk/models/operations/listatsjobs.d.ts.map +1 -1
- package/sdk/models/operations/listatsjobs.js +4 -0
- package/sdk/models/operations/listatsjobs.js.map +1 -1
- package/sdk/models/operations/listcalendarbusies.d.ts +5 -0
- package/sdk/models/operations/listcalendarbusies.d.ts.map +1 -1
- package/sdk/models/operations/listcalendarbusies.js +4 -0
- package/sdk/models/operations/listcalendarbusies.js.map +1 -1
- package/sdk/models/operations/listhrislocations.d.ts +5 -0
- package/sdk/models/operations/listhrislocations.d.ts.map +1 -1
- package/sdk/models/operations/listhrislocations.js +4 -0
- package/sdk/models/operations/listhrislocations.js.map +1 -1
- package/sdk/models/shared/accountingaccount.d.ts +2 -0
- package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
- package/sdk/models/shared/accountingaccount.js +4 -0
- package/sdk/models/shared/accountingaccount.js.map +1 -1
- package/sdk/models/shared/commercelocation.d.ts +6 -0
- package/sdk/models/shared/commercelocation.d.ts.map +1 -1
- package/sdk/models/shared/commercelocation.js +10 -0
- package/sdk/models/shared/commercelocation.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/src/funcs/applicationListAtsApplications.ts +1 -0
- package/src/funcs/atsListAtsApplications.ts +1 -0
- package/src/funcs/atsListAtsCandidates.ts +1 -0
- package/src/funcs/atsListAtsJobs.ts +1 -0
- package/src/funcs/busyListCalendarBusies.ts +1 -0
- package/src/funcs/calendarListCalendarBusies.ts +1 -0
- package/src/funcs/candidateListAtsCandidates.ts +1 -0
- package/src/funcs/hrisListHrisLocations.ts +1 -0
- package/src/funcs/jobListAtsJobs.ts +1 -0
- package/src/funcs/locationListHrisLocations.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/sdk/models/errors/sdkerror.ts +18 -3
- package/src/sdk/models/operations/listatsapplications.ts +9 -0
- package/src/sdk/models/operations/listatscandidates.ts +9 -0
- package/src/sdk/models/operations/listatsjobs.ts +9 -0
- package/src/sdk/models/operations/listcalendarbusies.ts +9 -0
- package/src/sdk/models/operations/listhrislocations.ts +9 -0
- package/src/sdk/models/shared/accountingaccount.ts +6 -0
- package/src/sdk/models/shared/commercelocation.ts +16 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
|
@@ -50,7 +50,6 @@ async function run() {
|
|
|
50
50
|
connectionId: "<id>",
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
// Handle the result
|
|
54
53
|
console.log(result);
|
|
55
54
|
}
|
|
56
55
|
|
|
@@ -80,15 +79,12 @@ async function run() {
|
|
|
80
79
|
},
|
|
81
80
|
connectionId: "<id>",
|
|
82
81
|
});
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
82
|
+
if (res.ok) {
|
|
83
|
+
const { value: result } = res;
|
|
84
|
+
console.log(result);
|
|
85
|
+
} else {
|
|
86
|
+
console.log("calendarCreateCalendarCalendar failed:", res.error);
|
|
86
87
|
}
|
|
87
|
-
|
|
88
|
-
const { value: result } = res;
|
|
89
|
-
|
|
90
|
-
// Handle the result
|
|
91
|
-
console.log(result);
|
|
92
88
|
}
|
|
93
89
|
|
|
94
90
|
run();
|
|
@@ -134,7 +130,6 @@ async function run() {
|
|
|
134
130
|
connectionId: "<id>",
|
|
135
131
|
});
|
|
136
132
|
|
|
137
|
-
// Handle the result
|
|
138
133
|
console.log(result);
|
|
139
134
|
}
|
|
140
135
|
|
|
@@ -162,15 +157,12 @@ async function run() {
|
|
|
162
157
|
calendarEvent: {},
|
|
163
158
|
connectionId: "<id>",
|
|
164
159
|
});
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
160
|
+
if (res.ok) {
|
|
161
|
+
const { value: result } = res;
|
|
162
|
+
console.log(result);
|
|
163
|
+
} else {
|
|
164
|
+
console.log("calendarCreateCalendarEvent failed:", res.error);
|
|
168
165
|
}
|
|
169
|
-
|
|
170
|
-
const { value: result } = res;
|
|
171
|
-
|
|
172
|
-
// Handle the result
|
|
173
|
-
console.log(result);
|
|
174
166
|
}
|
|
175
167
|
|
|
176
168
|
run();
|
|
@@ -218,7 +210,6 @@ async function run() {
|
|
|
218
210
|
connectionId: "<id>",
|
|
219
211
|
});
|
|
220
212
|
|
|
221
|
-
// Handle the result
|
|
222
213
|
console.log(result);
|
|
223
214
|
}
|
|
224
215
|
|
|
@@ -248,15 +239,12 @@ async function run() {
|
|
|
248
239
|
},
|
|
249
240
|
connectionId: "<id>",
|
|
250
241
|
});
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
242
|
+
if (res.ok) {
|
|
243
|
+
const { value: result } = res;
|
|
244
|
+
console.log(result);
|
|
245
|
+
} else {
|
|
246
|
+
console.log("calendarCreateCalendarLink failed:", res.error);
|
|
254
247
|
}
|
|
255
|
-
|
|
256
|
-
const { value: result } = res;
|
|
257
|
-
|
|
258
|
-
// Handle the result
|
|
259
|
-
console.log(result);
|
|
260
248
|
}
|
|
261
249
|
|
|
262
250
|
run();
|
|
@@ -302,7 +290,6 @@ async function run() {
|
|
|
302
290
|
id: "<id>",
|
|
303
291
|
});
|
|
304
292
|
|
|
305
|
-
// Handle the result
|
|
306
293
|
console.log(result);
|
|
307
294
|
}
|
|
308
295
|
|
|
@@ -330,15 +317,12 @@ async function run() {
|
|
|
330
317
|
connectionId: "<id>",
|
|
331
318
|
id: "<id>",
|
|
332
319
|
});
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
320
|
+
if (res.ok) {
|
|
321
|
+
const { value: result } = res;
|
|
322
|
+
console.log(result);
|
|
323
|
+
} else {
|
|
324
|
+
console.log("calendarGetCalendarCalendar failed:", res.error);
|
|
336
325
|
}
|
|
337
|
-
|
|
338
|
-
const { value: result } = res;
|
|
339
|
-
|
|
340
|
-
// Handle the result
|
|
341
|
-
console.log(result);
|
|
342
326
|
}
|
|
343
327
|
|
|
344
328
|
run();
|
|
@@ -384,7 +368,6 @@ async function run() {
|
|
|
384
368
|
id: "<id>",
|
|
385
369
|
});
|
|
386
370
|
|
|
387
|
-
// Handle the result
|
|
388
371
|
console.log(result);
|
|
389
372
|
}
|
|
390
373
|
|
|
@@ -412,15 +395,12 @@ async function run() {
|
|
|
412
395
|
connectionId: "<id>",
|
|
413
396
|
id: "<id>",
|
|
414
397
|
});
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
398
|
+
if (res.ok) {
|
|
399
|
+
const { value: result } = res;
|
|
400
|
+
console.log(result);
|
|
401
|
+
} else {
|
|
402
|
+
console.log("calendarGetCalendarEvent failed:", res.error);
|
|
418
403
|
}
|
|
419
|
-
|
|
420
|
-
const { value: result } = res;
|
|
421
|
-
|
|
422
|
-
// Handle the result
|
|
423
|
-
console.log(result);
|
|
424
404
|
}
|
|
425
405
|
|
|
426
406
|
run();
|
|
@@ -466,7 +446,6 @@ async function run() {
|
|
|
466
446
|
id: "<id>",
|
|
467
447
|
});
|
|
468
448
|
|
|
469
|
-
// Handle the result
|
|
470
449
|
console.log(result);
|
|
471
450
|
}
|
|
472
451
|
|
|
@@ -494,15 +473,12 @@ async function run() {
|
|
|
494
473
|
connectionId: "<id>",
|
|
495
474
|
id: "<id>",
|
|
496
475
|
});
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
476
|
+
if (res.ok) {
|
|
477
|
+
const { value: result } = res;
|
|
478
|
+
console.log(result);
|
|
479
|
+
} else {
|
|
480
|
+
console.log("calendarGetCalendarLink failed:", res.error);
|
|
500
481
|
}
|
|
501
|
-
|
|
502
|
-
const { value: result } = res;
|
|
503
|
-
|
|
504
|
-
// Handle the result
|
|
505
|
-
console.log(result);
|
|
506
482
|
}
|
|
507
483
|
|
|
508
484
|
run();
|
|
@@ -548,7 +524,6 @@ async function run() {
|
|
|
548
524
|
id: "<id>",
|
|
549
525
|
});
|
|
550
526
|
|
|
551
|
-
// Handle the result
|
|
552
527
|
console.log(result);
|
|
553
528
|
}
|
|
554
529
|
|
|
@@ -576,15 +551,12 @@ async function run() {
|
|
|
576
551
|
connectionId: "<id>",
|
|
577
552
|
id: "<id>",
|
|
578
553
|
});
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
554
|
+
if (res.ok) {
|
|
555
|
+
const { value: result } = res;
|
|
556
|
+
console.log(result);
|
|
557
|
+
} else {
|
|
558
|
+
console.log("calendarGetCalendarRecording failed:", res.error);
|
|
582
559
|
}
|
|
583
|
-
|
|
584
|
-
const { value: result } = res;
|
|
585
|
-
|
|
586
|
-
// Handle the result
|
|
587
|
-
console.log(result);
|
|
588
560
|
}
|
|
589
561
|
|
|
590
562
|
run();
|
|
@@ -629,7 +601,6 @@ async function run() {
|
|
|
629
601
|
connectionId: "<id>",
|
|
630
602
|
});
|
|
631
603
|
|
|
632
|
-
// Handle the result
|
|
633
604
|
console.log(result);
|
|
634
605
|
}
|
|
635
606
|
|
|
@@ -656,15 +627,12 @@ async function run() {
|
|
|
656
627
|
const res = await calendarListCalendarBusies(unifiedTo, {
|
|
657
628
|
connectionId: "<id>",
|
|
658
629
|
});
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
630
|
+
if (res.ok) {
|
|
631
|
+
const { value: result } = res;
|
|
632
|
+
console.log(result);
|
|
633
|
+
} else {
|
|
634
|
+
console.log("calendarListCalendarBusies failed:", res.error);
|
|
662
635
|
}
|
|
663
|
-
|
|
664
|
-
const { value: result } = res;
|
|
665
|
-
|
|
666
|
-
// Handle the result
|
|
667
|
-
console.log(result);
|
|
668
636
|
}
|
|
669
637
|
|
|
670
638
|
run();
|
|
@@ -709,7 +677,6 @@ async function run() {
|
|
|
709
677
|
connectionId: "<id>",
|
|
710
678
|
});
|
|
711
679
|
|
|
712
|
-
// Handle the result
|
|
713
680
|
console.log(result);
|
|
714
681
|
}
|
|
715
682
|
|
|
@@ -736,15 +703,12 @@ async function run() {
|
|
|
736
703
|
const res = await calendarListCalendarCalendars(unifiedTo, {
|
|
737
704
|
connectionId: "<id>",
|
|
738
705
|
});
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
706
|
+
if (res.ok) {
|
|
707
|
+
const { value: result } = res;
|
|
708
|
+
console.log(result);
|
|
709
|
+
} else {
|
|
710
|
+
console.log("calendarListCalendarCalendars failed:", res.error);
|
|
742
711
|
}
|
|
743
|
-
|
|
744
|
-
const { value: result } = res;
|
|
745
|
-
|
|
746
|
-
// Handle the result
|
|
747
|
-
console.log(result);
|
|
748
712
|
}
|
|
749
713
|
|
|
750
714
|
run();
|
|
@@ -789,7 +753,6 @@ async function run() {
|
|
|
789
753
|
connectionId: "<id>",
|
|
790
754
|
});
|
|
791
755
|
|
|
792
|
-
// Handle the result
|
|
793
756
|
console.log(result);
|
|
794
757
|
}
|
|
795
758
|
|
|
@@ -816,15 +779,12 @@ async function run() {
|
|
|
816
779
|
const res = await calendarListCalendarEvents(unifiedTo, {
|
|
817
780
|
connectionId: "<id>",
|
|
818
781
|
});
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
782
|
+
if (res.ok) {
|
|
783
|
+
const { value: result } = res;
|
|
784
|
+
console.log(result);
|
|
785
|
+
} else {
|
|
786
|
+
console.log("calendarListCalendarEvents failed:", res.error);
|
|
822
787
|
}
|
|
823
|
-
|
|
824
|
-
const { value: result } = res;
|
|
825
|
-
|
|
826
|
-
// Handle the result
|
|
827
|
-
console.log(result);
|
|
828
788
|
}
|
|
829
789
|
|
|
830
790
|
run();
|
|
@@ -869,7 +829,6 @@ async function run() {
|
|
|
869
829
|
connectionId: "<id>",
|
|
870
830
|
});
|
|
871
831
|
|
|
872
|
-
// Handle the result
|
|
873
832
|
console.log(result);
|
|
874
833
|
}
|
|
875
834
|
|
|
@@ -896,15 +855,12 @@ async function run() {
|
|
|
896
855
|
const res = await calendarListCalendarLinks(unifiedTo, {
|
|
897
856
|
connectionId: "<id>",
|
|
898
857
|
});
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
858
|
+
if (res.ok) {
|
|
859
|
+
const { value: result } = res;
|
|
860
|
+
console.log(result);
|
|
861
|
+
} else {
|
|
862
|
+
console.log("calendarListCalendarLinks failed:", res.error);
|
|
902
863
|
}
|
|
903
|
-
|
|
904
|
-
const { value: result } = res;
|
|
905
|
-
|
|
906
|
-
// Handle the result
|
|
907
|
-
console.log(result);
|
|
908
864
|
}
|
|
909
865
|
|
|
910
866
|
run();
|
|
@@ -949,7 +905,6 @@ async function run() {
|
|
|
949
905
|
connectionId: "<id>",
|
|
950
906
|
});
|
|
951
907
|
|
|
952
|
-
// Handle the result
|
|
953
908
|
console.log(result);
|
|
954
909
|
}
|
|
955
910
|
|
|
@@ -976,15 +931,12 @@ async function run() {
|
|
|
976
931
|
const res = await calendarListCalendarRecordings(unifiedTo, {
|
|
977
932
|
connectionId: "<id>",
|
|
978
933
|
});
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
934
|
+
if (res.ok) {
|
|
935
|
+
const { value: result } = res;
|
|
936
|
+
console.log(result);
|
|
937
|
+
} else {
|
|
938
|
+
console.log("calendarListCalendarRecordings failed:", res.error);
|
|
982
939
|
}
|
|
983
|
-
|
|
984
|
-
const { value: result } = res;
|
|
985
|
-
|
|
986
|
-
// Handle the result
|
|
987
|
-
console.log(result);
|
|
988
940
|
}
|
|
989
941
|
|
|
990
942
|
run();
|
|
@@ -1033,7 +985,6 @@ async function run() {
|
|
|
1033
985
|
id: "<id>",
|
|
1034
986
|
});
|
|
1035
987
|
|
|
1036
|
-
// Handle the result
|
|
1037
988
|
console.log(result);
|
|
1038
989
|
}
|
|
1039
990
|
|
|
@@ -1064,15 +1015,12 @@ async function run() {
|
|
|
1064
1015
|
connectionId: "<id>",
|
|
1065
1016
|
id: "<id>",
|
|
1066
1017
|
});
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1018
|
+
if (res.ok) {
|
|
1019
|
+
const { value: result } = res;
|
|
1020
|
+
console.log(result);
|
|
1021
|
+
} else {
|
|
1022
|
+
console.log("calendarPatchCalendarCalendar failed:", res.error);
|
|
1070
1023
|
}
|
|
1071
|
-
|
|
1072
|
-
const { value: result } = res;
|
|
1073
|
-
|
|
1074
|
-
// Handle the result
|
|
1075
|
-
console.log(result);
|
|
1076
1024
|
}
|
|
1077
1025
|
|
|
1078
1026
|
run();
|
|
@@ -1119,7 +1067,6 @@ async function run() {
|
|
|
1119
1067
|
id: "<id>",
|
|
1120
1068
|
});
|
|
1121
1069
|
|
|
1122
|
-
// Handle the result
|
|
1123
1070
|
console.log(result);
|
|
1124
1071
|
}
|
|
1125
1072
|
|
|
@@ -1148,15 +1095,12 @@ async function run() {
|
|
|
1148
1095
|
connectionId: "<id>",
|
|
1149
1096
|
id: "<id>",
|
|
1150
1097
|
});
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1098
|
+
if (res.ok) {
|
|
1099
|
+
const { value: result } = res;
|
|
1100
|
+
console.log(result);
|
|
1101
|
+
} else {
|
|
1102
|
+
console.log("calendarPatchCalendarEvent failed:", res.error);
|
|
1154
1103
|
}
|
|
1155
|
-
|
|
1156
|
-
const { value: result } = res;
|
|
1157
|
-
|
|
1158
|
-
// Handle the result
|
|
1159
|
-
console.log(result);
|
|
1160
1104
|
}
|
|
1161
1105
|
|
|
1162
1106
|
run();
|
|
@@ -1205,7 +1149,6 @@ async function run() {
|
|
|
1205
1149
|
id: "<id>",
|
|
1206
1150
|
});
|
|
1207
1151
|
|
|
1208
|
-
// Handle the result
|
|
1209
1152
|
console.log(result);
|
|
1210
1153
|
}
|
|
1211
1154
|
|
|
@@ -1236,15 +1179,12 @@ async function run() {
|
|
|
1236
1179
|
connectionId: "<id>",
|
|
1237
1180
|
id: "<id>",
|
|
1238
1181
|
});
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1182
|
+
if (res.ok) {
|
|
1183
|
+
const { value: result } = res;
|
|
1184
|
+
console.log(result);
|
|
1185
|
+
} else {
|
|
1186
|
+
console.log("calendarPatchCalendarLink failed:", res.error);
|
|
1242
1187
|
}
|
|
1243
|
-
|
|
1244
|
-
const { value: result } = res;
|
|
1245
|
-
|
|
1246
|
-
// Handle the result
|
|
1247
|
-
console.log(result);
|
|
1248
1188
|
}
|
|
1249
1189
|
|
|
1250
1190
|
run();
|
|
@@ -1290,7 +1230,6 @@ async function run() {
|
|
|
1290
1230
|
id: "<id>",
|
|
1291
1231
|
});
|
|
1292
1232
|
|
|
1293
|
-
// Handle the result
|
|
1294
1233
|
console.log(result);
|
|
1295
1234
|
}
|
|
1296
1235
|
|
|
@@ -1318,15 +1257,12 @@ async function run() {
|
|
|
1318
1257
|
connectionId: "<id>",
|
|
1319
1258
|
id: "<id>",
|
|
1320
1259
|
});
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1260
|
+
if (res.ok) {
|
|
1261
|
+
const { value: result } = res;
|
|
1262
|
+
console.log(result);
|
|
1263
|
+
} else {
|
|
1264
|
+
console.log("calendarRemoveCalendarCalendar failed:", res.error);
|
|
1324
1265
|
}
|
|
1325
|
-
|
|
1326
|
-
const { value: result } = res;
|
|
1327
|
-
|
|
1328
|
-
// Handle the result
|
|
1329
|
-
console.log(result);
|
|
1330
1266
|
}
|
|
1331
1267
|
|
|
1332
1268
|
run();
|
|
@@ -1372,7 +1308,6 @@ async function run() {
|
|
|
1372
1308
|
id: "<id>",
|
|
1373
1309
|
});
|
|
1374
1310
|
|
|
1375
|
-
// Handle the result
|
|
1376
1311
|
console.log(result);
|
|
1377
1312
|
}
|
|
1378
1313
|
|
|
@@ -1400,15 +1335,12 @@ async function run() {
|
|
|
1400
1335
|
connectionId: "<id>",
|
|
1401
1336
|
id: "<id>",
|
|
1402
1337
|
});
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1338
|
+
if (res.ok) {
|
|
1339
|
+
const { value: result } = res;
|
|
1340
|
+
console.log(result);
|
|
1341
|
+
} else {
|
|
1342
|
+
console.log("calendarRemoveCalendarEvent failed:", res.error);
|
|
1406
1343
|
}
|
|
1407
|
-
|
|
1408
|
-
const { value: result } = res;
|
|
1409
|
-
|
|
1410
|
-
// Handle the result
|
|
1411
|
-
console.log(result);
|
|
1412
1344
|
}
|
|
1413
1345
|
|
|
1414
1346
|
run();
|
|
@@ -1454,7 +1386,6 @@ async function run() {
|
|
|
1454
1386
|
id: "<id>",
|
|
1455
1387
|
});
|
|
1456
1388
|
|
|
1457
|
-
// Handle the result
|
|
1458
1389
|
console.log(result);
|
|
1459
1390
|
}
|
|
1460
1391
|
|
|
@@ -1482,15 +1413,12 @@ async function run() {
|
|
|
1482
1413
|
connectionId: "<id>",
|
|
1483
1414
|
id: "<id>",
|
|
1484
1415
|
});
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1416
|
+
if (res.ok) {
|
|
1417
|
+
const { value: result } = res;
|
|
1418
|
+
console.log(result);
|
|
1419
|
+
} else {
|
|
1420
|
+
console.log("calendarRemoveCalendarLink failed:", res.error);
|
|
1488
1421
|
}
|
|
1489
|
-
|
|
1490
|
-
const { value: result } = res;
|
|
1491
|
-
|
|
1492
|
-
// Handle the result
|
|
1493
|
-
console.log(result);
|
|
1494
1422
|
}
|
|
1495
1423
|
|
|
1496
1424
|
run();
|
|
@@ -1539,7 +1467,6 @@ async function run() {
|
|
|
1539
1467
|
id: "<id>",
|
|
1540
1468
|
});
|
|
1541
1469
|
|
|
1542
|
-
// Handle the result
|
|
1543
1470
|
console.log(result);
|
|
1544
1471
|
}
|
|
1545
1472
|
|
|
@@ -1570,15 +1497,12 @@ async function run() {
|
|
|
1570
1497
|
connectionId: "<id>",
|
|
1571
1498
|
id: "<id>",
|
|
1572
1499
|
});
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1500
|
+
if (res.ok) {
|
|
1501
|
+
const { value: result } = res;
|
|
1502
|
+
console.log(result);
|
|
1503
|
+
} else {
|
|
1504
|
+
console.log("calendarUpdateCalendarCalendar failed:", res.error);
|
|
1576
1505
|
}
|
|
1577
|
-
|
|
1578
|
-
const { value: result } = res;
|
|
1579
|
-
|
|
1580
|
-
// Handle the result
|
|
1581
|
-
console.log(result);
|
|
1582
1506
|
}
|
|
1583
1507
|
|
|
1584
1508
|
run();
|
|
@@ -1625,7 +1549,6 @@ async function run() {
|
|
|
1625
1549
|
id: "<id>",
|
|
1626
1550
|
});
|
|
1627
1551
|
|
|
1628
|
-
// Handle the result
|
|
1629
1552
|
console.log(result);
|
|
1630
1553
|
}
|
|
1631
1554
|
|
|
@@ -1654,15 +1577,12 @@ async function run() {
|
|
|
1654
1577
|
connectionId: "<id>",
|
|
1655
1578
|
id: "<id>",
|
|
1656
1579
|
});
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1580
|
+
if (res.ok) {
|
|
1581
|
+
const { value: result } = res;
|
|
1582
|
+
console.log(result);
|
|
1583
|
+
} else {
|
|
1584
|
+
console.log("calendarUpdateCalendarEvent failed:", res.error);
|
|
1660
1585
|
}
|
|
1661
|
-
|
|
1662
|
-
const { value: result } = res;
|
|
1663
|
-
|
|
1664
|
-
// Handle the result
|
|
1665
|
-
console.log(result);
|
|
1666
1586
|
}
|
|
1667
1587
|
|
|
1668
1588
|
run();
|
|
@@ -1711,7 +1631,6 @@ async function run() {
|
|
|
1711
1631
|
id: "<id>",
|
|
1712
1632
|
});
|
|
1713
1633
|
|
|
1714
|
-
// Handle the result
|
|
1715
1634
|
console.log(result);
|
|
1716
1635
|
}
|
|
1717
1636
|
|
|
@@ -1742,15 +1661,12 @@ async function run() {
|
|
|
1742
1661
|
connectionId: "<id>",
|
|
1743
1662
|
id: "<id>",
|
|
1744
1663
|
});
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1664
|
+
if (res.ok) {
|
|
1665
|
+
const { value: result } = res;
|
|
1666
|
+
console.log(result);
|
|
1667
|
+
} else {
|
|
1668
|
+
console.log("calendarUpdateCalendarLink failed:", res.error);
|
|
1748
1669
|
}
|
|
1749
|
-
|
|
1750
|
-
const { value: result } = res;
|
|
1751
|
-
|
|
1752
|
-
// Handle the result
|
|
1753
|
-
console.log(result);
|
|
1754
1670
|
}
|
|
1755
1671
|
|
|
1756
1672
|
run();
|
package/docs/sdks/call/README.md
CHANGED
|
@@ -27,7 +27,6 @@ async function run() {
|
|
|
27
27
|
connectionId: "<id>",
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
// Handle the result
|
|
31
30
|
console.log(result);
|
|
32
31
|
}
|
|
33
32
|
|
|
@@ -54,15 +53,12 @@ async function run() {
|
|
|
54
53
|
const res = await callListUcCalls(unifiedTo, {
|
|
55
54
|
connectionId: "<id>",
|
|
56
55
|
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
if (res.ok) {
|
|
57
|
+
const { value: result } = res;
|
|
58
|
+
console.log(result);
|
|
59
|
+
} else {
|
|
60
|
+
console.log("callListUcCalls failed:", res.error);
|
|
60
61
|
}
|
|
61
|
-
|
|
62
|
-
const { value: result } = res;
|
|
63
|
-
|
|
64
|
-
// Handle the result
|
|
65
|
-
console.log(result);
|
|
66
62
|
}
|
|
67
63
|
|
|
68
64
|
run();
|