@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
|
@@ -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
|
hrisEmployee: {},
|
|
62
61
|
connectionId: "<id>",
|
|
63
62
|
});
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
if (res.ok) {
|
|
64
|
+
const { value: result } = res;
|
|
65
|
+
console.log(result);
|
|
66
|
+
} else {
|
|
67
|
+
console.log("employeeCreateHrisEmployee 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
|
-
|
|
148
|
-
|
|
141
|
+
if (res.ok) {
|
|
142
|
+
const { value: result } = res;
|
|
143
|
+
console.log(result);
|
|
144
|
+
} else {
|
|
145
|
+
console.log("employeeGetHrisEmployee 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 employeeListHrisEmployees(unifiedTo, {
|
|
224
215
|
connectionId: "<id>",
|
|
225
216
|
});
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
217
|
+
if (res.ok) {
|
|
218
|
+
const { value: result } = res;
|
|
219
|
+
console.log(result);
|
|
220
|
+
} else {
|
|
221
|
+
console.log("employeeListHrisEmployees 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
|
-
|
|
312
|
-
|
|
297
|
+
if (res.ok) {
|
|
298
|
+
const { value: result } = res;
|
|
299
|
+
console.log(result);
|
|
300
|
+
} else {
|
|
301
|
+
console.log("employeePatchHrisEmployee 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
|
-
|
|
394
|
-
|
|
375
|
+
if (res.ok) {
|
|
376
|
+
const { value: result } = res;
|
|
377
|
+
console.log(result);
|
|
378
|
+
} else {
|
|
379
|
+
console.log("employeeRemoveHrisEmployee 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
|
-
|
|
478
|
-
|
|
455
|
+
if (res.ok) {
|
|
456
|
+
const { value: result } = res;
|
|
457
|
+
console.log(result);
|
|
458
|
+
} else {
|
|
459
|
+
console.log("employeeUpdateHrisEmployee 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();
|
|
@@ -28,7 +28,6 @@ async function run() {
|
|
|
28
28
|
connectionId: "<id>",
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
// Handle the result
|
|
32
31
|
console.log(result);
|
|
33
32
|
}
|
|
34
33
|
|
|
@@ -55,15 +54,12 @@ async function run() {
|
|
|
55
54
|
const res = await enrichListEnrichCompanies(unifiedTo, {
|
|
56
55
|
connectionId: "<id>",
|
|
57
56
|
});
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
if (res.ok) {
|
|
58
|
+
const { value: result } = res;
|
|
59
|
+
console.log(result);
|
|
60
|
+
} else {
|
|
61
|
+
console.log("enrichListEnrichCompanies failed:", res.error);
|
|
61
62
|
}
|
|
62
|
-
|
|
63
|
-
const { value: result } = res;
|
|
64
|
-
|
|
65
|
-
// Handle the result
|
|
66
|
-
console.log(result);
|
|
67
63
|
}
|
|
68
64
|
|
|
69
65
|
run();
|
|
@@ -108,7 +104,6 @@ async function run() {
|
|
|
108
104
|
connectionId: "<id>",
|
|
109
105
|
});
|
|
110
106
|
|
|
111
|
-
// Handle the result
|
|
112
107
|
console.log(result);
|
|
113
108
|
}
|
|
114
109
|
|
|
@@ -135,15 +130,12 @@ async function run() {
|
|
|
135
130
|
const res = await enrichListEnrichPeople(unifiedTo, {
|
|
136
131
|
connectionId: "<id>",
|
|
137
132
|
});
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
133
|
+
if (res.ok) {
|
|
134
|
+
const { value: result } = res;
|
|
135
|
+
console.log(result);
|
|
136
|
+
} else {
|
|
137
|
+
console.log("enrichListEnrichPeople failed:", res.error);
|
|
141
138
|
}
|
|
142
|
-
|
|
143
|
-
const { value: result } = res;
|
|
144
|
-
|
|
145
|
-
// Handle the result
|
|
146
|
-
console.log(result);
|
|
147
139
|
}
|
|
148
140
|
|
|
149
141
|
run();
|
|
@@ -39,7 +39,6 @@ async function run() {
|
|
|
39
39
|
connectionId: "<id>",
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
// Handle the result
|
|
43
42
|
console.log(result);
|
|
44
43
|
}
|
|
45
44
|
|
|
@@ -67,15 +66,12 @@ async function run() {
|
|
|
67
66
|
calendarEvent: {},
|
|
68
67
|
connectionId: "<id>",
|
|
69
68
|
});
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
if (res.ok) {
|
|
70
|
+
const { value: result } = res;
|
|
71
|
+
console.log(result);
|
|
72
|
+
} else {
|
|
73
|
+
console.log("eventCreateCalendarEvent 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
|
connectionId: "<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
|
crmEvent: {},
|
|
150
145
|
connectionId: "<id>",
|
|
151
146
|
});
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
147
|
+
if (res.ok) {
|
|
148
|
+
const { value: result } = res;
|
|
149
|
+
console.log(result);
|
|
150
|
+
} else {
|
|
151
|
+
console.log("eventCreateCrmEvent 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();
|
|
@@ -203,7 +195,6 @@ async function run() {
|
|
|
203
195
|
id: "<id>",
|
|
204
196
|
});
|
|
205
197
|
|
|
206
|
-
// Handle the result
|
|
207
198
|
console.log(result);
|
|
208
199
|
}
|
|
209
200
|
|
|
@@ -231,15 +222,12 @@ async function run() {
|
|
|
231
222
|
connectionId: "<id>",
|
|
232
223
|
id: "<id>",
|
|
233
224
|
});
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
225
|
+
if (res.ok) {
|
|
226
|
+
const { value: result } = res;
|
|
227
|
+
console.log(result);
|
|
228
|
+
} else {
|
|
229
|
+
console.log("eventGetCalendarEvent failed:", res.error);
|
|
237
230
|
}
|
|
238
|
-
|
|
239
|
-
const { value: result } = res;
|
|
240
|
-
|
|
241
|
-
// Handle the result
|
|
242
|
-
console.log(result);
|
|
243
231
|
}
|
|
244
232
|
|
|
245
233
|
run();
|
|
@@ -285,7 +273,6 @@ async function run() {
|
|
|
285
273
|
id: "<id>",
|
|
286
274
|
});
|
|
287
275
|
|
|
288
|
-
// Handle the result
|
|
289
276
|
console.log(result);
|
|
290
277
|
}
|
|
291
278
|
|
|
@@ -313,15 +300,12 @@ async function run() {
|
|
|
313
300
|
connectionId: "<id>",
|
|
314
301
|
id: "<id>",
|
|
315
302
|
});
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
303
|
+
if (res.ok) {
|
|
304
|
+
const { value: result } = res;
|
|
305
|
+
console.log(result);
|
|
306
|
+
} else {
|
|
307
|
+
console.log("eventGetCrmEvent failed:", res.error);
|
|
319
308
|
}
|
|
320
|
-
|
|
321
|
-
const { value: result } = res;
|
|
322
|
-
|
|
323
|
-
// Handle the result
|
|
324
|
-
console.log(result);
|
|
325
309
|
}
|
|
326
310
|
|
|
327
311
|
run();
|
|
@@ -366,7 +350,6 @@ async function run() {
|
|
|
366
350
|
connectionId: "<id>",
|
|
367
351
|
});
|
|
368
352
|
|
|
369
|
-
// Handle the result
|
|
370
353
|
console.log(result);
|
|
371
354
|
}
|
|
372
355
|
|
|
@@ -393,15 +376,12 @@ async function run() {
|
|
|
393
376
|
const res = await eventListCalendarEvents(unifiedTo, {
|
|
394
377
|
connectionId: "<id>",
|
|
395
378
|
});
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
379
|
+
if (res.ok) {
|
|
380
|
+
const { value: result } = res;
|
|
381
|
+
console.log(result);
|
|
382
|
+
} else {
|
|
383
|
+
console.log("eventListCalendarEvents failed:", res.error);
|
|
399
384
|
}
|
|
400
|
-
|
|
401
|
-
const { value: result } = res;
|
|
402
|
-
|
|
403
|
-
// Handle the result
|
|
404
|
-
console.log(result);
|
|
405
385
|
}
|
|
406
386
|
|
|
407
387
|
run();
|
|
@@ -446,7 +426,6 @@ async function run() {
|
|
|
446
426
|
connectionId: "<id>",
|
|
447
427
|
});
|
|
448
428
|
|
|
449
|
-
// Handle the result
|
|
450
429
|
console.log(result);
|
|
451
430
|
}
|
|
452
431
|
|
|
@@ -473,15 +452,12 @@ async function run() {
|
|
|
473
452
|
const res = await eventListCrmEvents(unifiedTo, {
|
|
474
453
|
connectionId: "<id>",
|
|
475
454
|
});
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
455
|
+
if (res.ok) {
|
|
456
|
+
const { value: result } = res;
|
|
457
|
+
console.log(result);
|
|
458
|
+
} else {
|
|
459
|
+
console.log("eventListCrmEvents 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();
|
|
@@ -528,7 +504,6 @@ async function run() {
|
|
|
528
504
|
id: "<id>",
|
|
529
505
|
});
|
|
530
506
|
|
|
531
|
-
// Handle the result
|
|
532
507
|
console.log(result);
|
|
533
508
|
}
|
|
534
509
|
|
|
@@ -557,15 +532,12 @@ async function run() {
|
|
|
557
532
|
connectionId: "<id>",
|
|
558
533
|
id: "<id>",
|
|
559
534
|
});
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
535
|
+
if (res.ok) {
|
|
536
|
+
const { value: result } = res;
|
|
537
|
+
console.log(result);
|
|
538
|
+
} else {
|
|
539
|
+
console.log("eventPatchCalendarEvent failed:", res.error);
|
|
563
540
|
}
|
|
564
|
-
|
|
565
|
-
const { value: result } = res;
|
|
566
|
-
|
|
567
|
-
// Handle the result
|
|
568
|
-
console.log(result);
|
|
569
541
|
}
|
|
570
542
|
|
|
571
543
|
run();
|
|
@@ -612,7 +584,6 @@ async function run() {
|
|
|
612
584
|
id: "<id>",
|
|
613
585
|
});
|
|
614
586
|
|
|
615
|
-
// Handle the result
|
|
616
587
|
console.log(result);
|
|
617
588
|
}
|
|
618
589
|
|
|
@@ -641,15 +612,12 @@ async function run() {
|
|
|
641
612
|
connectionId: "<id>",
|
|
642
613
|
id: "<id>",
|
|
643
614
|
});
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
615
|
+
if (res.ok) {
|
|
616
|
+
const { value: result } = res;
|
|
617
|
+
console.log(result);
|
|
618
|
+
} else {
|
|
619
|
+
console.log("eventPatchCrmEvent failed:", res.error);
|
|
647
620
|
}
|
|
648
|
-
|
|
649
|
-
const { value: result } = res;
|
|
650
|
-
|
|
651
|
-
// Handle the result
|
|
652
|
-
console.log(result);
|
|
653
621
|
}
|
|
654
622
|
|
|
655
623
|
run();
|
|
@@ -695,7 +663,6 @@ async function run() {
|
|
|
695
663
|
id: "<id>",
|
|
696
664
|
});
|
|
697
665
|
|
|
698
|
-
// Handle the result
|
|
699
666
|
console.log(result);
|
|
700
667
|
}
|
|
701
668
|
|
|
@@ -723,15 +690,12 @@ async function run() {
|
|
|
723
690
|
connectionId: "<id>",
|
|
724
691
|
id: "<id>",
|
|
725
692
|
});
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
693
|
+
if (res.ok) {
|
|
694
|
+
const { value: result } = res;
|
|
695
|
+
console.log(result);
|
|
696
|
+
} else {
|
|
697
|
+
console.log("eventRemoveCalendarEvent 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();
|
|
@@ -777,7 +741,6 @@ async function run() {
|
|
|
777
741
|
id: "<id>",
|
|
778
742
|
});
|
|
779
743
|
|
|
780
|
-
// Handle the result
|
|
781
744
|
console.log(result);
|
|
782
745
|
}
|
|
783
746
|
|
|
@@ -805,15 +768,12 @@ async function run() {
|
|
|
805
768
|
connectionId: "<id>",
|
|
806
769
|
id: "<id>",
|
|
807
770
|
});
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
771
|
+
if (res.ok) {
|
|
772
|
+
const { value: result } = res;
|
|
773
|
+
console.log(result);
|
|
774
|
+
} else {
|
|
775
|
+
console.log("eventRemoveCrmEvent failed:", res.error);
|
|
811
776
|
}
|
|
812
|
-
|
|
813
|
-
const { value: result } = res;
|
|
814
|
-
|
|
815
|
-
// Handle the result
|
|
816
|
-
console.log(result);
|
|
817
777
|
}
|
|
818
778
|
|
|
819
779
|
run();
|
|
@@ -860,7 +820,6 @@ async function run() {
|
|
|
860
820
|
id: "<id>",
|
|
861
821
|
});
|
|
862
822
|
|
|
863
|
-
// Handle the result
|
|
864
823
|
console.log(result);
|
|
865
824
|
}
|
|
866
825
|
|
|
@@ -889,15 +848,12 @@ async function run() {
|
|
|
889
848
|
connectionId: "<id>",
|
|
890
849
|
id: "<id>",
|
|
891
850
|
});
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
851
|
+
if (res.ok) {
|
|
852
|
+
const { value: result } = res;
|
|
853
|
+
console.log(result);
|
|
854
|
+
} else {
|
|
855
|
+
console.log("eventUpdateCalendarEvent failed:", res.error);
|
|
895
856
|
}
|
|
896
|
-
|
|
897
|
-
const { value: result } = res;
|
|
898
|
-
|
|
899
|
-
// Handle the result
|
|
900
|
-
console.log(result);
|
|
901
857
|
}
|
|
902
858
|
|
|
903
859
|
run();
|
|
@@ -944,7 +900,6 @@ async function run() {
|
|
|
944
900
|
id: "<id>",
|
|
945
901
|
});
|
|
946
902
|
|
|
947
|
-
// Handle the result
|
|
948
903
|
console.log(result);
|
|
949
904
|
}
|
|
950
905
|
|
|
@@ -973,15 +928,12 @@ async function run() {
|
|
|
973
928
|
connectionId: "<id>",
|
|
974
929
|
id: "<id>",
|
|
975
930
|
});
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
931
|
+
if (res.ok) {
|
|
932
|
+
const { value: result } = res;
|
|
933
|
+
console.log(result);
|
|
934
|
+
} else {
|
|
935
|
+
console.log("eventUpdateCrmEvent failed:", res.error);
|
|
979
936
|
}
|
|
980
|
-
|
|
981
|
-
const { value: result } = res;
|
|
982
|
-
|
|
983
|
-
// Handle the result
|
|
984
|
-
console.log(result);
|
|
985
937
|
}
|
|
986
938
|
|
|
987
939
|
run();
|