@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
|
],
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
// Handle the result
|
|
54
53
|
console.log(result);
|
|
55
54
|
}
|
|
56
55
|
|
|
@@ -81,15 +80,12 @@ async function run() {
|
|
|
81
80
|
"enrich_company_read",
|
|
82
81
|
],
|
|
83
82
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
if (res.ok) {
|
|
84
|
+
const { value: result } = res;
|
|
85
|
+
console.log(result);
|
|
86
|
+
} else {
|
|
87
|
+
console.log("unifiedCreateUnifiedConnection failed:", res.error);
|
|
87
88
|
}
|
|
88
|
-
|
|
89
|
-
const { value: result } = res;
|
|
90
|
-
|
|
91
|
-
// Handle the result
|
|
92
|
-
console.log(result);
|
|
93
89
|
}
|
|
94
90
|
|
|
95
91
|
run();
|
|
@@ -138,7 +134,6 @@ async function run() {
|
|
|
138
134
|
},
|
|
139
135
|
});
|
|
140
136
|
|
|
141
|
-
// Handle the result
|
|
142
137
|
console.log(result);
|
|
143
138
|
}
|
|
144
139
|
|
|
@@ -169,15 +164,12 @@ async function run() {
|
|
|
169
164
|
objectType: "ats_scorecard",
|
|
170
165
|
},
|
|
171
166
|
});
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
167
|
+
if (res.ok) {
|
|
168
|
+
const { value: result } = res;
|
|
169
|
+
console.log(result);
|
|
170
|
+
} else {
|
|
171
|
+
console.log("unifiedCreateUnifiedWebhook failed:", res.error);
|
|
175
172
|
}
|
|
176
|
-
|
|
177
|
-
const { value: result } = res;
|
|
178
|
-
|
|
179
|
-
// Handle the result
|
|
180
|
-
console.log(result);
|
|
181
173
|
}
|
|
182
174
|
|
|
183
175
|
run();
|
|
@@ -222,7 +214,6 @@ async function run() {
|
|
|
222
214
|
id: "<id>",
|
|
223
215
|
});
|
|
224
216
|
|
|
225
|
-
// Handle the result
|
|
226
217
|
console.log(result);
|
|
227
218
|
}
|
|
228
219
|
|
|
@@ -249,15 +240,12 @@ async function run() {
|
|
|
249
240
|
const res = await unifiedGetUnifiedApicall(unifiedTo, {
|
|
250
241
|
id: "<id>",
|
|
251
242
|
});
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
243
|
+
if (res.ok) {
|
|
244
|
+
const { value: result } = res;
|
|
245
|
+
console.log(result);
|
|
246
|
+
} else {
|
|
247
|
+
console.log("unifiedGetUnifiedApicall failed:", res.error);
|
|
255
248
|
}
|
|
256
|
-
|
|
257
|
-
const { value: result } = res;
|
|
258
|
-
|
|
259
|
-
// Handle the result
|
|
260
|
-
console.log(result);
|
|
261
249
|
}
|
|
262
250
|
|
|
263
251
|
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
|
|
|
@@ -329,15 +316,12 @@ async function run() {
|
|
|
329
316
|
const res = await unifiedGetUnifiedConnection(unifiedTo, {
|
|
330
317
|
id: "<id>",
|
|
331
318
|
});
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
319
|
+
if (res.ok) {
|
|
320
|
+
const { value: result } = res;
|
|
321
|
+
console.log(result);
|
|
322
|
+
} else {
|
|
323
|
+
console.log("unifiedGetUnifiedConnection failed:", res.error);
|
|
335
324
|
}
|
|
336
|
-
|
|
337
|
-
const { value: result } = res;
|
|
338
|
-
|
|
339
|
-
// Handle the result
|
|
340
|
-
console.log(result);
|
|
341
325
|
}
|
|
342
326
|
|
|
343
327
|
run();
|
|
@@ -383,7 +367,6 @@ async function run() {
|
|
|
383
367
|
workspaceId: "<id>",
|
|
384
368
|
});
|
|
385
369
|
|
|
386
|
-
// Handle the result
|
|
387
370
|
console.log(result);
|
|
388
371
|
}
|
|
389
372
|
|
|
@@ -411,15 +394,12 @@ async function run() {
|
|
|
411
394
|
integrationType: "<value>",
|
|
412
395
|
workspaceId: "<id>",
|
|
413
396
|
});
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
397
|
+
if (res.ok) {
|
|
398
|
+
const { value: result } = res;
|
|
399
|
+
console.log(result);
|
|
400
|
+
} else {
|
|
401
|
+
console.log("unifiedGetUnifiedIntegrationAuth failed:", res.error);
|
|
417
402
|
}
|
|
418
|
-
|
|
419
|
-
const { value: result } = res;
|
|
420
|
-
|
|
421
|
-
// Handle the result
|
|
422
|
-
console.log(result);
|
|
423
403
|
}
|
|
424
404
|
|
|
425
405
|
run();
|
|
@@ -464,7 +444,6 @@ async function run() {
|
|
|
464
444
|
id: "<id>",
|
|
465
445
|
});
|
|
466
446
|
|
|
467
|
-
// Handle the result
|
|
468
447
|
console.log(result);
|
|
469
448
|
}
|
|
470
449
|
|
|
@@ -491,15 +470,12 @@ async function run() {
|
|
|
491
470
|
const res = await unifiedGetUnifiedWebhook(unifiedTo, {
|
|
492
471
|
id: "<id>",
|
|
493
472
|
});
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
473
|
+
if (res.ok) {
|
|
474
|
+
const { value: result } = res;
|
|
475
|
+
console.log(result);
|
|
476
|
+
} else {
|
|
477
|
+
console.log("unifiedGetUnifiedWebhook 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();
|
|
@@ -542,7 +518,6 @@ const unifiedTo = new UnifiedTo({
|
|
|
542
518
|
async function run() {
|
|
543
519
|
const result = await unifiedTo.unified.listUnifiedApicalls({});
|
|
544
520
|
|
|
545
|
-
// Handle the result
|
|
546
521
|
console.log(result);
|
|
547
522
|
}
|
|
548
523
|
|
|
@@ -567,15 +542,12 @@ const unifiedTo = new UnifiedToCore({
|
|
|
567
542
|
|
|
568
543
|
async function run() {
|
|
569
544
|
const res = await unifiedListUnifiedApicalls(unifiedTo, {});
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
545
|
+
if (res.ok) {
|
|
546
|
+
const { value: result } = res;
|
|
547
|
+
console.log(result);
|
|
548
|
+
} else {
|
|
549
|
+
console.log("unifiedListUnifiedApicalls failed:", res.error);
|
|
573
550
|
}
|
|
574
|
-
|
|
575
|
-
const { value: result } = res;
|
|
576
|
-
|
|
577
|
-
// Handle the result
|
|
578
|
-
console.log(result);
|
|
579
551
|
}
|
|
580
552
|
|
|
581
553
|
run();
|
|
@@ -618,7 +590,6 @@ const unifiedTo = new UnifiedTo({
|
|
|
618
590
|
async function run() {
|
|
619
591
|
const result = await unifiedTo.unified.listUnifiedConnections({});
|
|
620
592
|
|
|
621
|
-
// Handle the result
|
|
622
593
|
console.log(result);
|
|
623
594
|
}
|
|
624
595
|
|
|
@@ -643,15 +614,12 @@ const unifiedTo = new UnifiedToCore({
|
|
|
643
614
|
|
|
644
615
|
async function run() {
|
|
645
616
|
const res = await unifiedListUnifiedConnections(unifiedTo, {});
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
617
|
+
if (res.ok) {
|
|
618
|
+
const { value: result } = res;
|
|
619
|
+
console.log(result);
|
|
620
|
+
} else {
|
|
621
|
+
console.log("unifiedListUnifiedConnections 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
|
workspaceId: "<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 unifiedListUnifiedIntegrationWorkspaces(unifiedTo, {
|
|
724
691
|
workspaceId: "<id>",
|
|
725
692
|
});
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
693
|
+
if (res.ok) {
|
|
694
|
+
const { value: result } = res;
|
|
695
|
+
console.log(result);
|
|
696
|
+
} else {
|
|
697
|
+
console.log("unifiedListUnifiedIntegrationWorkspaces 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();
|
|
@@ -774,7 +738,6 @@ const unifiedTo = new UnifiedTo({
|
|
|
774
738
|
async function run() {
|
|
775
739
|
const result = await unifiedTo.unified.listUnifiedIntegrations({});
|
|
776
740
|
|
|
777
|
-
// Handle the result
|
|
778
741
|
console.log(result);
|
|
779
742
|
}
|
|
780
743
|
|
|
@@ -799,15 +762,12 @@ const unifiedTo = new UnifiedToCore({
|
|
|
799
762
|
|
|
800
763
|
async function run() {
|
|
801
764
|
const res = await unifiedListUnifiedIntegrations(unifiedTo, {});
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
765
|
+
if (res.ok) {
|
|
766
|
+
const { value: result } = res;
|
|
767
|
+
console.log(result);
|
|
768
|
+
} else {
|
|
769
|
+
console.log("unifiedListUnifiedIntegrations failed:", res.error);
|
|
805
770
|
}
|
|
806
|
-
|
|
807
|
-
const { value: result } = res;
|
|
808
|
-
|
|
809
|
-
// Handle the result
|
|
810
|
-
console.log(result);
|
|
811
771
|
}
|
|
812
772
|
|
|
813
773
|
run();
|
|
@@ -850,7 +810,6 @@ const unifiedTo = new UnifiedTo({
|
|
|
850
810
|
async function run() {
|
|
851
811
|
const result = await unifiedTo.unified.listUnifiedIssues({});
|
|
852
812
|
|
|
853
|
-
// Handle the result
|
|
854
813
|
console.log(result);
|
|
855
814
|
}
|
|
856
815
|
|
|
@@ -875,15 +834,12 @@ const unifiedTo = new UnifiedToCore({
|
|
|
875
834
|
|
|
876
835
|
async function run() {
|
|
877
836
|
const res = await unifiedListUnifiedIssues(unifiedTo, {});
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
837
|
+
if (res.ok) {
|
|
838
|
+
const { value: result } = res;
|
|
839
|
+
console.log(result);
|
|
840
|
+
} else {
|
|
841
|
+
console.log("unifiedListUnifiedIssues failed:", res.error);
|
|
881
842
|
}
|
|
882
|
-
|
|
883
|
-
const { value: result } = res;
|
|
884
|
-
|
|
885
|
-
// Handle the result
|
|
886
|
-
console.log(result);
|
|
887
843
|
}
|
|
888
844
|
|
|
889
845
|
run();
|
|
@@ -926,7 +882,6 @@ const unifiedTo = new UnifiedTo({
|
|
|
926
882
|
async function run() {
|
|
927
883
|
const result = await unifiedTo.unified.listUnifiedWebhooks({});
|
|
928
884
|
|
|
929
|
-
// Handle the result
|
|
930
885
|
console.log(result);
|
|
931
886
|
}
|
|
932
887
|
|
|
@@ -951,15 +906,12 @@ const unifiedTo = new UnifiedToCore({
|
|
|
951
906
|
|
|
952
907
|
async function run() {
|
|
953
908
|
const res = await unifiedListUnifiedWebhooks(unifiedTo, {});
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
909
|
+
if (res.ok) {
|
|
910
|
+
const { value: result } = res;
|
|
911
|
+
console.log(result);
|
|
912
|
+
} else {
|
|
913
|
+
console.log("unifiedListUnifiedWebhooks failed:", res.error);
|
|
957
914
|
}
|
|
958
|
-
|
|
959
|
-
const { value: result } = res;
|
|
960
|
-
|
|
961
|
-
// Handle the result
|
|
962
|
-
console.log(result);
|
|
963
915
|
}
|
|
964
916
|
|
|
965
917
|
run();
|
|
@@ -1013,7 +965,6 @@ async function run() {
|
|
|
1013
965
|
id: "<id>",
|
|
1014
966
|
});
|
|
1015
967
|
|
|
1016
|
-
// Handle the result
|
|
1017
968
|
console.log(result);
|
|
1018
969
|
}
|
|
1019
970
|
|
|
@@ -1049,15 +1000,12 @@ async function run() {
|
|
|
1049
1000
|
},
|
|
1050
1001
|
id: "<id>",
|
|
1051
1002
|
});
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1003
|
+
if (res.ok) {
|
|
1004
|
+
const { value: result } = res;
|
|
1005
|
+
console.log(result);
|
|
1006
|
+
} else {
|
|
1007
|
+
console.log("unifiedPatchUnifiedConnection failed:", res.error);
|
|
1055
1008
|
}
|
|
1056
|
-
|
|
1057
|
-
const { value: result } = res;
|
|
1058
|
-
|
|
1059
|
-
// Handle the result
|
|
1060
|
-
console.log(result);
|
|
1061
1009
|
}
|
|
1062
1010
|
|
|
1063
1011
|
run();
|
|
@@ -1107,7 +1055,6 @@ async function run() {
|
|
|
1107
1055
|
id: "<id>",
|
|
1108
1056
|
});
|
|
1109
1057
|
|
|
1110
|
-
// Handle the result
|
|
1111
1058
|
console.log(result);
|
|
1112
1059
|
}
|
|
1113
1060
|
|
|
@@ -1139,15 +1086,12 @@ async function run() {
|
|
|
1139
1086
|
},
|
|
1140
1087
|
id: "<id>",
|
|
1141
1088
|
});
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1089
|
+
if (res.ok) {
|
|
1090
|
+
const { value: result } = res;
|
|
1091
|
+
console.log(result);
|
|
1092
|
+
} else {
|
|
1093
|
+
console.log("unifiedPatchUnifiedWebhook 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();
|
|
@@ -1192,7 +1136,6 @@ async function run() {
|
|
|
1192
1136
|
id: "<id>",
|
|
1193
1137
|
});
|
|
1194
1138
|
|
|
1195
|
-
// Handle the result
|
|
1196
1139
|
console.log(result);
|
|
1197
1140
|
}
|
|
1198
1141
|
|
|
@@ -1219,15 +1162,12 @@ async function run() {
|
|
|
1219
1162
|
const res = await unifiedPatchUnifiedWebhookTrigger(unifiedTo, {
|
|
1220
1163
|
id: "<id>",
|
|
1221
1164
|
});
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1165
|
+
if (res.ok) {
|
|
1166
|
+
const { value: result } = res;
|
|
1167
|
+
console.log(result);
|
|
1168
|
+
} else {
|
|
1169
|
+
console.log("unifiedPatchUnifiedWebhookTrigger failed:", res.error);
|
|
1225
1170
|
}
|
|
1226
|
-
|
|
1227
|
-
const { value: result } = res;
|
|
1228
|
-
|
|
1229
|
-
// Handle the result
|
|
1230
|
-
console.log(result);
|
|
1231
1171
|
}
|
|
1232
1172
|
|
|
1233
1173
|
run();
|
|
@@ -1272,7 +1212,6 @@ async function run() {
|
|
|
1272
1212
|
id: "<id>",
|
|
1273
1213
|
});
|
|
1274
1214
|
|
|
1275
|
-
// Handle the result
|
|
1276
1215
|
console.log(result);
|
|
1277
1216
|
}
|
|
1278
1217
|
|
|
@@ -1299,15 +1238,12 @@ async function run() {
|
|
|
1299
1238
|
const res = await unifiedRemoveUnifiedConnection(unifiedTo, {
|
|
1300
1239
|
id: "<id>",
|
|
1301
1240
|
});
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1241
|
+
if (res.ok) {
|
|
1242
|
+
const { value: result } = res;
|
|
1243
|
+
console.log(result);
|
|
1244
|
+
} else {
|
|
1245
|
+
console.log("unifiedRemoveUnifiedConnection failed:", res.error);
|
|
1305
1246
|
}
|
|
1306
|
-
|
|
1307
|
-
const { value: result } = res;
|
|
1308
|
-
|
|
1309
|
-
// Handle the result
|
|
1310
|
-
console.log(result);
|
|
1311
1247
|
}
|
|
1312
1248
|
|
|
1313
1249
|
run();
|
|
@@ -1352,7 +1288,6 @@ async function run() {
|
|
|
1352
1288
|
id: "<id>",
|
|
1353
1289
|
});
|
|
1354
1290
|
|
|
1355
|
-
// Handle the result
|
|
1356
1291
|
console.log(result);
|
|
1357
1292
|
}
|
|
1358
1293
|
|
|
@@ -1379,15 +1314,12 @@ async function run() {
|
|
|
1379
1314
|
const res = await unifiedRemoveUnifiedWebhook(unifiedTo, {
|
|
1380
1315
|
id: "<id>",
|
|
1381
1316
|
});
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1317
|
+
if (res.ok) {
|
|
1318
|
+
const { value: result } = res;
|
|
1319
|
+
console.log(result);
|
|
1320
|
+
} else {
|
|
1321
|
+
console.log("unifiedRemoveUnifiedWebhook failed:", res.error);
|
|
1385
1322
|
}
|
|
1386
|
-
|
|
1387
|
-
const { value: result } = res;
|
|
1388
|
-
|
|
1389
|
-
// Handle the result
|
|
1390
|
-
console.log(result);
|
|
1391
1323
|
}
|
|
1392
1324
|
|
|
1393
1325
|
run();
|
|
@@ -1440,7 +1372,6 @@ async function run() {
|
|
|
1440
1372
|
id: "<id>",
|
|
1441
1373
|
});
|
|
1442
1374
|
|
|
1443
|
-
// Handle the result
|
|
1444
1375
|
console.log(result);
|
|
1445
1376
|
}
|
|
1446
1377
|
|
|
@@ -1475,15 +1406,12 @@ async function run() {
|
|
|
1475
1406
|
},
|
|
1476
1407
|
id: "<id>",
|
|
1477
1408
|
});
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1409
|
+
if (res.ok) {
|
|
1410
|
+
const { value: result } = res;
|
|
1411
|
+
console.log(result);
|
|
1412
|
+
} else {
|
|
1413
|
+
console.log("unifiedUpdateUnifiedConnection failed:", res.error);
|
|
1481
1414
|
}
|
|
1482
|
-
|
|
1483
|
-
const { value: result } = res;
|
|
1484
|
-
|
|
1485
|
-
// Handle the result
|
|
1486
|
-
console.log(result);
|
|
1487
1415
|
}
|
|
1488
1416
|
|
|
1489
1417
|
run();
|
|
@@ -1533,7 +1461,6 @@ async function run() {
|
|
|
1533
1461
|
id: "<id>",
|
|
1534
1462
|
});
|
|
1535
1463
|
|
|
1536
|
-
// Handle the result
|
|
1537
1464
|
console.log(result);
|
|
1538
1465
|
}
|
|
1539
1466
|
|
|
@@ -1565,15 +1492,12 @@ async function run() {
|
|
|
1565
1492
|
},
|
|
1566
1493
|
id: "<id>",
|
|
1567
1494
|
});
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1495
|
+
if (res.ok) {
|
|
1496
|
+
const { value: result } = res;
|
|
1497
|
+
console.log(result);
|
|
1498
|
+
} else {
|
|
1499
|
+
console.log("unifiedUpdateUnifiedWebhook 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
|
id: "<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 unifiedUpdateUnifiedWebhookTrigger(unifiedTo, {
|
|
1646
1569
|
id: "<id>",
|
|
1647
1570
|
});
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1571
|
+
if (res.ok) {
|
|
1572
|
+
const { value: result } = res;
|
|
1573
|
+
console.log(result);
|
|
1574
|
+
} else {
|
|
1575
|
+
console.log("unifiedUpdateUnifiedWebhookTrigger 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();
|