@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
|
@@ -29,7 +29,6 @@ async function run() {
|
|
|
29
29
|
id: "<id>",
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
// Handle the result
|
|
33
32
|
console.log(result);
|
|
34
33
|
}
|
|
35
34
|
|
|
@@ -57,15 +56,12 @@ async function run() {
|
|
|
57
56
|
connectionId: "<id>",
|
|
58
57
|
id: "<id>",
|
|
59
58
|
});
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
if (res.ok) {
|
|
60
|
+
const { value: result } = res;
|
|
61
|
+
console.log(result);
|
|
62
|
+
} else {
|
|
63
|
+
console.log("reportGetAccountingReport failed:", res.error);
|
|
63
64
|
}
|
|
64
|
-
|
|
65
|
-
const { value: result } = res;
|
|
66
|
-
|
|
67
|
-
// Handle the result
|
|
68
|
-
console.log(result);
|
|
69
65
|
}
|
|
70
66
|
|
|
71
67
|
run();
|
|
@@ -110,7 +106,6 @@ async function run() {
|
|
|
110
106
|
connectionId: "<id>",
|
|
111
107
|
});
|
|
112
108
|
|
|
113
|
-
// Handle the result
|
|
114
109
|
console.log(result);
|
|
115
110
|
}
|
|
116
111
|
|
|
@@ -137,15 +132,12 @@ async function run() {
|
|
|
137
132
|
const res = await reportListAccountingReports(unifiedTo, {
|
|
138
133
|
connectionId: "<id>",
|
|
139
134
|
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
if (res.ok) {
|
|
136
|
+
const { value: result } = res;
|
|
137
|
+
console.log(result);
|
|
138
|
+
} else {
|
|
139
|
+
console.log("reportListAccountingReports failed:", res.error);
|
|
143
140
|
}
|
|
144
|
-
|
|
145
|
-
const { value: result } = res;
|
|
146
|
-
|
|
147
|
-
// Handle the result
|
|
148
|
-
console.log(result);
|
|
149
141
|
}
|
|
150
142
|
|
|
151
143
|
run();
|
|
@@ -35,7 +35,6 @@ async function run() {
|
|
|
35
35
|
connectionId: "<id>",
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
// Handle the result
|
|
39
38
|
console.log(result);
|
|
40
39
|
}
|
|
41
40
|
|
|
@@ -65,15 +64,12 @@ async function run() {
|
|
|
65
64
|
},
|
|
66
65
|
connectionId: "<id>",
|
|
67
66
|
});
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
if (res.ok) {
|
|
68
|
+
const { value: result } = res;
|
|
69
|
+
console.log(result);
|
|
70
|
+
} else {
|
|
71
|
+
console.log("repositoryCreateRepoRepository failed:", res.error);
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
-
const { value: result } = res;
|
|
74
|
-
|
|
75
|
-
// Handle the result
|
|
76
|
-
console.log(result);
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
run();
|
|
@@ -119,7 +115,6 @@ async function run() {
|
|
|
119
115
|
id: "<id>",
|
|
120
116
|
});
|
|
121
117
|
|
|
122
|
-
// Handle the result
|
|
123
118
|
console.log(result);
|
|
124
119
|
}
|
|
125
120
|
|
|
@@ -147,15 +142,12 @@ async function run() {
|
|
|
147
142
|
connectionId: "<id>",
|
|
148
143
|
id: "<id>",
|
|
149
144
|
});
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
145
|
+
if (res.ok) {
|
|
146
|
+
const { value: result } = res;
|
|
147
|
+
console.log(result);
|
|
148
|
+
} else {
|
|
149
|
+
console.log("repositoryGetRepoRepository failed:", res.error);
|
|
153
150
|
}
|
|
154
|
-
|
|
155
|
-
const { value: result } = res;
|
|
156
|
-
|
|
157
|
-
// Handle the result
|
|
158
|
-
console.log(result);
|
|
159
151
|
}
|
|
160
152
|
|
|
161
153
|
run();
|
|
@@ -200,7 +192,6 @@ async function run() {
|
|
|
200
192
|
connectionId: "<id>",
|
|
201
193
|
});
|
|
202
194
|
|
|
203
|
-
// Handle the result
|
|
204
195
|
console.log(result);
|
|
205
196
|
}
|
|
206
197
|
|
|
@@ -227,15 +218,12 @@ async function run() {
|
|
|
227
218
|
const res = await repositoryListRepoRepositories(unifiedTo, {
|
|
228
219
|
connectionId: "<id>",
|
|
229
220
|
});
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
221
|
+
if (res.ok) {
|
|
222
|
+
const { value: result } = res;
|
|
223
|
+
console.log(result);
|
|
224
|
+
} else {
|
|
225
|
+
console.log("repositoryListRepoRepositories failed:", res.error);
|
|
233
226
|
}
|
|
234
|
-
|
|
235
|
-
const { value: result } = res;
|
|
236
|
-
|
|
237
|
-
// Handle the result
|
|
238
|
-
console.log(result);
|
|
239
227
|
}
|
|
240
228
|
|
|
241
229
|
run();
|
|
@@ -284,7 +272,6 @@ async function run() {
|
|
|
284
272
|
id: "<id>",
|
|
285
273
|
});
|
|
286
274
|
|
|
287
|
-
// Handle the result
|
|
288
275
|
console.log(result);
|
|
289
276
|
}
|
|
290
277
|
|
|
@@ -315,15 +302,12 @@ async function run() {
|
|
|
315
302
|
connectionId: "<id>",
|
|
316
303
|
id: "<id>",
|
|
317
304
|
});
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
305
|
+
if (res.ok) {
|
|
306
|
+
const { value: result } = res;
|
|
307
|
+
console.log(result);
|
|
308
|
+
} else {
|
|
309
|
+
console.log("repositoryPatchRepoRepository failed:", res.error);
|
|
321
310
|
}
|
|
322
|
-
|
|
323
|
-
const { value: result } = res;
|
|
324
|
-
|
|
325
|
-
// Handle the result
|
|
326
|
-
console.log(result);
|
|
327
311
|
}
|
|
328
312
|
|
|
329
313
|
run();
|
|
@@ -369,7 +353,6 @@ async function run() {
|
|
|
369
353
|
id: "<id>",
|
|
370
354
|
});
|
|
371
355
|
|
|
372
|
-
// Handle the result
|
|
373
356
|
console.log(result);
|
|
374
357
|
}
|
|
375
358
|
|
|
@@ -397,15 +380,12 @@ async function run() {
|
|
|
397
380
|
connectionId: "<id>",
|
|
398
381
|
id: "<id>",
|
|
399
382
|
});
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
383
|
+
if (res.ok) {
|
|
384
|
+
const { value: result } = res;
|
|
385
|
+
console.log(result);
|
|
386
|
+
} else {
|
|
387
|
+
console.log("repositoryRemoveRepoRepository failed:", res.error);
|
|
403
388
|
}
|
|
404
|
-
|
|
405
|
-
const { value: result } = res;
|
|
406
|
-
|
|
407
|
-
// Handle the result
|
|
408
|
-
console.log(result);
|
|
409
389
|
}
|
|
410
390
|
|
|
411
391
|
run();
|
|
@@ -454,7 +434,6 @@ async function run() {
|
|
|
454
434
|
id: "<id>",
|
|
455
435
|
});
|
|
456
436
|
|
|
457
|
-
// Handle the result
|
|
458
437
|
console.log(result);
|
|
459
438
|
}
|
|
460
439
|
|
|
@@ -485,15 +464,12 @@ async function run() {
|
|
|
485
464
|
connectionId: "<id>",
|
|
486
465
|
id: "<id>",
|
|
487
466
|
});
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
467
|
+
if (res.ok) {
|
|
468
|
+
const { value: result } = res;
|
|
469
|
+
console.log(result);
|
|
470
|
+
} else {
|
|
471
|
+
console.log("repositoryUpdateRepoRepository failed:", res.error);
|
|
491
472
|
}
|
|
492
|
-
|
|
493
|
-
const { value: result } = res;
|
|
494
|
-
|
|
495
|
-
// Handle the result
|
|
496
|
-
console.log(result);
|
|
497
473
|
}
|
|
498
474
|
|
|
499
475
|
run();
|
|
@@ -35,7 +35,6 @@ async function run() {
|
|
|
35
35
|
connectionId: "<id>",
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
// Handle the result
|
|
39
38
|
console.log(result);
|
|
40
39
|
}
|
|
41
40
|
|
|
@@ -65,15 +64,12 @@ async function run() {
|
|
|
65
64
|
},
|
|
66
65
|
connectionId: "<id>",
|
|
67
66
|
});
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
if (res.ok) {
|
|
68
|
+
const { value: result } = res;
|
|
69
|
+
console.log(result);
|
|
70
|
+
} else {
|
|
71
|
+
console.log("reviewCreateCommerceReview failed:", res.error);
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
-
const { value: result } = res;
|
|
74
|
-
|
|
75
|
-
// Handle the result
|
|
76
|
-
console.log(result);
|
|
77
73
|
}
|
|
78
74
|
|
|
79
75
|
run();
|
|
@@ -119,7 +115,6 @@ async function run() {
|
|
|
119
115
|
id: "<id>",
|
|
120
116
|
});
|
|
121
117
|
|
|
122
|
-
// Handle the result
|
|
123
118
|
console.log(result);
|
|
124
119
|
}
|
|
125
120
|
|
|
@@ -147,15 +142,12 @@ async function run() {
|
|
|
147
142
|
connectionId: "<id>",
|
|
148
143
|
id: "<id>",
|
|
149
144
|
});
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
145
|
+
if (res.ok) {
|
|
146
|
+
const { value: result } = res;
|
|
147
|
+
console.log(result);
|
|
148
|
+
} else {
|
|
149
|
+
console.log("reviewGetCommerceReview failed:", res.error);
|
|
153
150
|
}
|
|
154
|
-
|
|
155
|
-
const { value: result } = res;
|
|
156
|
-
|
|
157
|
-
// Handle the result
|
|
158
|
-
console.log(result);
|
|
159
151
|
}
|
|
160
152
|
|
|
161
153
|
run();
|
|
@@ -200,7 +192,6 @@ async function run() {
|
|
|
200
192
|
connectionId: "<id>",
|
|
201
193
|
});
|
|
202
194
|
|
|
203
|
-
// Handle the result
|
|
204
195
|
console.log(result);
|
|
205
196
|
}
|
|
206
197
|
|
|
@@ -227,15 +218,12 @@ async function run() {
|
|
|
227
218
|
const res = await reviewListCommerceReviews(unifiedTo, {
|
|
228
219
|
connectionId: "<id>",
|
|
229
220
|
});
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
221
|
+
if (res.ok) {
|
|
222
|
+
const { value: result } = res;
|
|
223
|
+
console.log(result);
|
|
224
|
+
} else {
|
|
225
|
+
console.log("reviewListCommerceReviews failed:", res.error);
|
|
233
226
|
}
|
|
234
|
-
|
|
235
|
-
const { value: result } = res;
|
|
236
|
-
|
|
237
|
-
// Handle the result
|
|
238
|
-
console.log(result);
|
|
239
227
|
}
|
|
240
228
|
|
|
241
229
|
run();
|
|
@@ -284,7 +272,6 @@ async function run() {
|
|
|
284
272
|
id: "<id>",
|
|
285
273
|
});
|
|
286
274
|
|
|
287
|
-
// Handle the result
|
|
288
275
|
console.log(result);
|
|
289
276
|
}
|
|
290
277
|
|
|
@@ -315,15 +302,12 @@ async function run() {
|
|
|
315
302
|
connectionId: "<id>",
|
|
316
303
|
id: "<id>",
|
|
317
304
|
});
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
305
|
+
if (res.ok) {
|
|
306
|
+
const { value: result } = res;
|
|
307
|
+
console.log(result);
|
|
308
|
+
} else {
|
|
309
|
+
console.log("reviewPatchCommerceReview failed:", res.error);
|
|
321
310
|
}
|
|
322
|
-
|
|
323
|
-
const { value: result } = res;
|
|
324
|
-
|
|
325
|
-
// Handle the result
|
|
326
|
-
console.log(result);
|
|
327
311
|
}
|
|
328
312
|
|
|
329
313
|
run();
|
|
@@ -369,7 +353,6 @@ async function run() {
|
|
|
369
353
|
id: "<id>",
|
|
370
354
|
});
|
|
371
355
|
|
|
372
|
-
// Handle the result
|
|
373
356
|
console.log(result);
|
|
374
357
|
}
|
|
375
358
|
|
|
@@ -397,15 +380,12 @@ async function run() {
|
|
|
397
380
|
connectionId: "<id>",
|
|
398
381
|
id: "<id>",
|
|
399
382
|
});
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
383
|
+
if (res.ok) {
|
|
384
|
+
const { value: result } = res;
|
|
385
|
+
console.log(result);
|
|
386
|
+
} else {
|
|
387
|
+
console.log("reviewRemoveCommerceReview failed:", res.error);
|
|
403
388
|
}
|
|
404
|
-
|
|
405
|
-
const { value: result } = res;
|
|
406
|
-
|
|
407
|
-
// Handle the result
|
|
408
|
-
console.log(result);
|
|
409
389
|
}
|
|
410
390
|
|
|
411
391
|
run();
|
|
@@ -454,7 +434,6 @@ async function run() {
|
|
|
454
434
|
id: "<id>",
|
|
455
435
|
});
|
|
456
436
|
|
|
457
|
-
// Handle the result
|
|
458
437
|
console.log(result);
|
|
459
438
|
}
|
|
460
439
|
|
|
@@ -485,15 +464,12 @@ async function run() {
|
|
|
485
464
|
connectionId: "<id>",
|
|
486
465
|
id: "<id>",
|
|
487
466
|
});
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
467
|
+
if (res.ok) {
|
|
468
|
+
const { value: result } = res;
|
|
469
|
+
console.log(result);
|
|
470
|
+
} else {
|
|
471
|
+
console.log("reviewUpdateCommerceReview failed:", res.error);
|
|
491
472
|
}
|
|
492
|
-
|
|
493
|
-
const { value: result } = res;
|
|
494
|
-
|
|
495
|
-
// Handle the result
|
|
496
|
-
console.log(result);
|
|
497
473
|
}
|
|
498
474
|
|
|
499
475
|
run();
|