@scryme/sdk 9.71.2-next.0 → 9.71.3-next.0
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/README.md +264 -131
- package/dist/{base-CoBANk9F.d.mts → base-BpmvtAH4.d.mts} +278 -101
- package/dist/{base-CoBANk9F.d.ts → base-BpmvtAH4.d.ts} +278 -101
- package/dist/{chunk-Z6VKSRBE.mjs → chunk-TNAWGB5N.mjs} +445 -389
- package/dist/client.d.mts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +445 -389
- package/dist/client.mjs +1 -1
- package/dist/index.d.mts +52 -44
- package/dist/index.d.ts +52 -44
- package/dist/index.js +445 -389
- package/dist/index.mjs +1 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +445 -389
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -39,6 +39,259 @@ var import_axios3 = __toESM(require("axios"));
|
|
|
39
39
|
// src/generated/scryme.ts
|
|
40
40
|
var import_axios = __toESM(require("axios"));
|
|
41
41
|
var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
42
|
+
const servicesCreateCategory = (orgSlug, createServiceCategoryDto, options) => {
|
|
43
|
+
return axiosInstance.post(
|
|
44
|
+
`/v3/${orgSlug}/services/categories`,
|
|
45
|
+
createServiceCategoryDto,
|
|
46
|
+
options
|
|
47
|
+
);
|
|
48
|
+
};
|
|
49
|
+
const servicesGetCategories = (orgSlug, options) => {
|
|
50
|
+
return axiosInstance.get(
|
|
51
|
+
`/v3/${orgSlug}/services/categories`,
|
|
52
|
+
options
|
|
53
|
+
);
|
|
54
|
+
};
|
|
55
|
+
const servicesUpdateCategory = (orgSlug, id, updateServiceCategoryDto, options) => {
|
|
56
|
+
return axiosInstance.patch(
|
|
57
|
+
`/v3/${orgSlug}/services/categories/${id}`,
|
|
58
|
+
updateServiceCategoryDto,
|
|
59
|
+
options
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
const servicesDeleteCategory = (orgSlug, id, options) => {
|
|
63
|
+
return axiosInstance.post(
|
|
64
|
+
`/v3/${orgSlug}/services/categories/${id}/delete`,
|
|
65
|
+
void 0,
|
|
66
|
+
options
|
|
67
|
+
);
|
|
68
|
+
};
|
|
69
|
+
const servicesCreateService = (orgSlug, createServiceDto, options) => {
|
|
70
|
+
return axiosInstance.post(
|
|
71
|
+
`/v3/${orgSlug}/services`,
|
|
72
|
+
createServiceDto,
|
|
73
|
+
options
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
const servicesGetServices = (orgSlug, options) => {
|
|
77
|
+
return axiosInstance.get(
|
|
78
|
+
`/v3/${orgSlug}/services`,
|
|
79
|
+
options
|
|
80
|
+
);
|
|
81
|
+
};
|
|
82
|
+
const servicesGetCurrentMemberShifts = (orgSlug, options) => {
|
|
83
|
+
return axiosInstance.get(
|
|
84
|
+
`/v3/${orgSlug}/services/shifts/me`,
|
|
85
|
+
options
|
|
86
|
+
);
|
|
87
|
+
};
|
|
88
|
+
const servicesGetShifts = (orgSlug, params, options) => {
|
|
89
|
+
return axiosInstance.get(
|
|
90
|
+
`/v3/${orgSlug}/services/shifts`,
|
|
91
|
+
{
|
|
92
|
+
...options,
|
|
93
|
+
params: { ...params, ...options?.params }
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
const servicesGetService = (orgSlug, id, options) => {
|
|
98
|
+
return axiosInstance.get(
|
|
99
|
+
`/v3/${orgSlug}/services/${id}`,
|
|
100
|
+
options
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
const servicesUpdateService = (orgSlug, id, updateServiceDto, options) => {
|
|
104
|
+
return axiosInstance.patch(
|
|
105
|
+
`/v3/${orgSlug}/services/${id}`,
|
|
106
|
+
updateServiceDto,
|
|
107
|
+
options
|
|
108
|
+
);
|
|
109
|
+
};
|
|
110
|
+
const servicesGetAvailability = (orgSlug, id, params, options) => {
|
|
111
|
+
return axiosInstance.get(
|
|
112
|
+
`/v3/${orgSlug}/services/${id}/availability`,
|
|
113
|
+
{
|
|
114
|
+
...options,
|
|
115
|
+
params: { ...params, ...options?.params }
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
};
|
|
119
|
+
const servicesDeleteService = (orgSlug, id, options) => {
|
|
120
|
+
return axiosInstance.post(
|
|
121
|
+
`/v3/${orgSlug}/services/${id}/delete`,
|
|
122
|
+
void 0,
|
|
123
|
+
options
|
|
124
|
+
);
|
|
125
|
+
};
|
|
126
|
+
const servicesCreateResource = (orgSlug, createServiceResourceDto, options) => {
|
|
127
|
+
return axiosInstance.post(
|
|
128
|
+
`/v3/${orgSlug}/services/resources`,
|
|
129
|
+
createServiceResourceDto,
|
|
130
|
+
options
|
|
131
|
+
);
|
|
132
|
+
};
|
|
133
|
+
const servicesGetResources = (orgSlug, options) => {
|
|
134
|
+
return axiosInstance.get(
|
|
135
|
+
`/v3/${orgSlug}/services/resources`,
|
|
136
|
+
options
|
|
137
|
+
);
|
|
138
|
+
};
|
|
139
|
+
const servicesUpdateResource = (orgSlug, id, updateServiceResourceDto, options) => {
|
|
140
|
+
return axiosInstance.patch(
|
|
141
|
+
`/v3/${orgSlug}/services/resources/${id}`,
|
|
142
|
+
updateServiceResourceDto,
|
|
143
|
+
options
|
|
144
|
+
);
|
|
145
|
+
};
|
|
146
|
+
const servicesDeleteResource = (orgSlug, id, options) => {
|
|
147
|
+
return axiosInstance.post(
|
|
148
|
+
`/v3/${orgSlug}/services/resources/${id}/delete`,
|
|
149
|
+
void 0,
|
|
150
|
+
options
|
|
151
|
+
);
|
|
152
|
+
};
|
|
153
|
+
const servicesCreateBooking = (orgSlug, createBookingDto, options) => {
|
|
154
|
+
return axiosInstance.post(
|
|
155
|
+
`/v3/${orgSlug}/services/bookings`,
|
|
156
|
+
createBookingDto,
|
|
157
|
+
options
|
|
158
|
+
);
|
|
159
|
+
};
|
|
160
|
+
const servicesGetBookings = (orgSlug, options) => {
|
|
161
|
+
return axiosInstance.get(
|
|
162
|
+
`/v3/${orgSlug}/services/bookings`,
|
|
163
|
+
options
|
|
164
|
+
);
|
|
165
|
+
};
|
|
166
|
+
const servicesGetBooking = (orgSlug, id, options) => {
|
|
167
|
+
return axiosInstance.get(
|
|
168
|
+
`/v3/${orgSlug}/services/bookings/${id}`,
|
|
169
|
+
options
|
|
170
|
+
);
|
|
171
|
+
};
|
|
172
|
+
const servicesUpdateBookingStatus = (orgSlug, id, servicesUpdateBookingStatusBody, options) => {
|
|
173
|
+
return axiosInstance.patch(
|
|
174
|
+
`/v3/${orgSlug}/services/bookings/${id}/status`,
|
|
175
|
+
servicesUpdateBookingStatusBody,
|
|
176
|
+
options
|
|
177
|
+
);
|
|
178
|
+
};
|
|
179
|
+
const servicesCompleteBooking = (orgSlug, id, completeBookingDto, options) => {
|
|
180
|
+
return axiosInstance.patch(
|
|
181
|
+
`/v3/${orgSlug}/services/bookings/${id}/complete`,
|
|
182
|
+
completeBookingDto,
|
|
183
|
+
options
|
|
184
|
+
);
|
|
185
|
+
};
|
|
186
|
+
const servicesCancelBookingSeries = (orgSlug, recurrenceId, options) => {
|
|
187
|
+
return axiosInstance.post(
|
|
188
|
+
`/v3/${orgSlug}/services/bookings/recurrence/${recurrenceId}/cancel`,
|
|
189
|
+
void 0,
|
|
190
|
+
options
|
|
191
|
+
);
|
|
192
|
+
};
|
|
193
|
+
const servicesCreateShift = (orgSlug, memberId, servicesCreateShiftBody, options) => {
|
|
194
|
+
return axiosInstance.post(
|
|
195
|
+
`/v3/${orgSlug}/services/staff/${memberId}/shifts`,
|
|
196
|
+
servicesCreateShiftBody,
|
|
197
|
+
options
|
|
198
|
+
);
|
|
199
|
+
};
|
|
200
|
+
const servicesGetStaffShifts = (orgSlug, memberId, options) => {
|
|
201
|
+
return axiosInstance.get(
|
|
202
|
+
`/v3/${orgSlug}/services/staff/${memberId}/shifts`,
|
|
203
|
+
options
|
|
204
|
+
);
|
|
205
|
+
};
|
|
206
|
+
const servicesAddBreak = (orgSlug, shiftId, servicesAddBreakBody, options) => {
|
|
207
|
+
return axiosInstance.post(
|
|
208
|
+
`/v3/${orgSlug}/services/shifts/${shiftId}/breaks`,
|
|
209
|
+
servicesAddBreakBody,
|
|
210
|
+
options
|
|
211
|
+
);
|
|
212
|
+
};
|
|
213
|
+
const servicesRegisterCustomerApp = (orgSlug, servicesRegisterCustomerAppBody, options) => {
|
|
214
|
+
return axiosInstance.post(
|
|
215
|
+
`/v3/${orgSlug}/services/register-customer-app`,
|
|
216
|
+
servicesRegisterCustomerAppBody,
|
|
217
|
+
options
|
|
218
|
+
);
|
|
219
|
+
};
|
|
220
|
+
const servicesGetUtilization = (orgSlug, params, options) => {
|
|
221
|
+
return axiosInstance.get(
|
|
222
|
+
`/v3/${orgSlug}/services/analytics/utilization`,
|
|
223
|
+
{
|
|
224
|
+
...options,
|
|
225
|
+
params: { ...params, ...options?.params }
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
};
|
|
229
|
+
const servicesGetPerformance = (orgSlug, params, options) => {
|
|
230
|
+
return axiosInstance.get(
|
|
231
|
+
`/v3/${orgSlug}/services/analytics/performance`,
|
|
232
|
+
{
|
|
233
|
+
...options,
|
|
234
|
+
params: { ...params, ...options?.params }
|
|
235
|
+
}
|
|
236
|
+
);
|
|
237
|
+
};
|
|
238
|
+
const servicesGetFunnel = (orgSlug, params, options) => {
|
|
239
|
+
return axiosInstance.get(
|
|
240
|
+
`/v3/${orgSlug}/services/analytics/funnel`,
|
|
241
|
+
{
|
|
242
|
+
...options,
|
|
243
|
+
params: { ...params, ...options?.params }
|
|
244
|
+
}
|
|
245
|
+
);
|
|
246
|
+
};
|
|
247
|
+
const publicServicesListServices = (orgSlug, options) => {
|
|
248
|
+
return axiosInstance.get(
|
|
249
|
+
`/v3/public/${orgSlug}/services`,
|
|
250
|
+
options
|
|
251
|
+
);
|
|
252
|
+
};
|
|
253
|
+
const publicServicesGetCategories = (orgSlug, options) => {
|
|
254
|
+
return axiosInstance.get(
|
|
255
|
+
`/v3/public/${orgSlug}/services/categories`,
|
|
256
|
+
options
|
|
257
|
+
);
|
|
258
|
+
};
|
|
259
|
+
const publicServicesGetService = (orgSlug, id, options) => {
|
|
260
|
+
return axiosInstance.get(
|
|
261
|
+
`/v3/public/${orgSlug}/services/${id}`,
|
|
262
|
+
options
|
|
263
|
+
);
|
|
264
|
+
};
|
|
265
|
+
const publicServicesGetAvailability = (orgSlug, id, params, options) => {
|
|
266
|
+
return axiosInstance.get(
|
|
267
|
+
`/v3/public/${orgSlug}/services/${id}/availability`,
|
|
268
|
+
{
|
|
269
|
+
...options,
|
|
270
|
+
params: { ...params, ...options?.params }
|
|
271
|
+
}
|
|
272
|
+
);
|
|
273
|
+
};
|
|
274
|
+
const publicServicesRequestOtp = (orgSlug, requestOtpDto, options) => {
|
|
275
|
+
return axiosInstance.post(
|
|
276
|
+
`/v3/public/${orgSlug}/services/otp/request`,
|
|
277
|
+
requestOtpDto,
|
|
278
|
+
options
|
|
279
|
+
);
|
|
280
|
+
};
|
|
281
|
+
const publicServicesVerifyOtp = (orgSlug, verifyOtpDto, options) => {
|
|
282
|
+
return axiosInstance.post(
|
|
283
|
+
`/v3/public/${orgSlug}/services/otp/verify`,
|
|
284
|
+
verifyOtpDto,
|
|
285
|
+
options
|
|
286
|
+
);
|
|
287
|
+
};
|
|
288
|
+
const publicServicesCreatePublicBooking = (orgSlug, publicBookingDto, options) => {
|
|
289
|
+
return axiosInstance.post(
|
|
290
|
+
`/v3/public/${orgSlug}/services/bookings`,
|
|
291
|
+
publicBookingDto,
|
|
292
|
+
options
|
|
293
|
+
);
|
|
294
|
+
};
|
|
42
295
|
const inventoryVerifyIntegrity = (orgSlug, options) => {
|
|
43
296
|
return axiosInstance.get(
|
|
44
297
|
`/v3/${orgSlug}/inventory/integrity/verify`,
|
|
@@ -405,571 +658,349 @@ var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
|
405
658
|
options
|
|
406
659
|
);
|
|
407
660
|
};
|
|
408
|
-
const
|
|
409
|
-
return axiosInstance.get(
|
|
410
|
-
`/v3/auth/oauth2/${path}`,
|
|
411
|
-
options
|
|
412
|
-
);
|
|
413
|
-
};
|
|
414
|
-
const adminControllerGetStats = (options) => {
|
|
415
|
-
return axiosInstance.get(
|
|
416
|
-
`/v3/admin/stats`,
|
|
417
|
-
options
|
|
418
|
-
);
|
|
419
|
-
};
|
|
420
|
-
const adminControllerListOrganizations = (options) => {
|
|
421
|
-
return axiosInstance.get(
|
|
422
|
-
`/v3/admin/organizations`,
|
|
423
|
-
options
|
|
424
|
-
);
|
|
425
|
-
};
|
|
426
|
-
const adminControllerCreateOrganization = (createOrganizationDto, options) => {
|
|
427
|
-
return axiosInstance.post(
|
|
428
|
-
`/v3/admin/organizations`,
|
|
429
|
-
createOrganizationDto,
|
|
430
|
-
options
|
|
431
|
-
);
|
|
432
|
-
};
|
|
433
|
-
const adminControllerGetOrganizationDetails = (id, options) => {
|
|
434
|
-
return axiosInstance.get(
|
|
435
|
-
`/v3/admin/organizations/${id}`,
|
|
436
|
-
options
|
|
437
|
-
);
|
|
438
|
-
};
|
|
439
|
-
const adminControllerUpdateOrganization = (id, updateOrganizationDto, options) => {
|
|
440
|
-
return axiosInstance.patch(
|
|
441
|
-
`/v3/admin/organizations/${id}`,
|
|
442
|
-
updateOrganizationDto,
|
|
443
|
-
options
|
|
444
|
-
);
|
|
445
|
-
};
|
|
446
|
-
const adminControllerDeleteOrganization = (id, options) => {
|
|
447
|
-
return axiosInstance.delete(
|
|
448
|
-
`/v3/admin/organizations/${id}`,
|
|
449
|
-
options
|
|
450
|
-
);
|
|
451
|
-
};
|
|
452
|
-
const adminControllerListMembers = (params, options) => {
|
|
453
|
-
return axiosInstance.get(
|
|
454
|
-
`/v3/admin/members`,
|
|
455
|
-
{
|
|
456
|
-
...options,
|
|
457
|
-
params: { ...params, ...options?.params }
|
|
458
|
-
}
|
|
459
|
-
);
|
|
460
|
-
};
|
|
461
|
-
const adminControllerListUsers = (options) => {
|
|
462
|
-
return axiosInstance.get(
|
|
463
|
-
`/v3/admin/users`,
|
|
464
|
-
options
|
|
465
|
-
);
|
|
466
|
-
};
|
|
467
|
-
const adminControllerBanUser = (id, banUserDto, options) => {
|
|
661
|
+
const authCreateOAuthClient = (createOAuthClientDto, options) => {
|
|
468
662
|
return axiosInstance.post(
|
|
469
|
-
`/v3/
|
|
470
|
-
|
|
471
|
-
options
|
|
472
|
-
);
|
|
473
|
-
};
|
|
474
|
-
const adminControllerUnbanUser = (id, options) => {
|
|
475
|
-
return axiosInstance.post(
|
|
476
|
-
`/v3/admin/users/${id}/unban`,
|
|
477
|
-
void 0,
|
|
478
|
-
options
|
|
479
|
-
);
|
|
480
|
-
};
|
|
481
|
-
const adminControllerListConnectedApps = (options) => {
|
|
482
|
-
return axiosInstance.get(
|
|
483
|
-
`/v3/admin/connected-apps`,
|
|
663
|
+
`/v3/auth/oauth/clients`,
|
|
664
|
+
createOAuthClientDto,
|
|
484
665
|
options
|
|
485
666
|
);
|
|
486
667
|
};
|
|
487
|
-
const
|
|
668
|
+
const authListOAuthClients = (options) => {
|
|
488
669
|
return axiosInstance.get(
|
|
489
|
-
`/v3/
|
|
670
|
+
`/v3/auth/oauth/clients`,
|
|
490
671
|
options
|
|
491
672
|
);
|
|
492
673
|
};
|
|
493
|
-
const
|
|
674
|
+
const authGetOAuthClient = (id, options) => {
|
|
494
675
|
return axiosInstance.get(
|
|
495
|
-
`/v3/
|
|
676
|
+
`/v3/auth/oauth/clients/${id}`,
|
|
496
677
|
options
|
|
497
678
|
);
|
|
498
679
|
};
|
|
499
|
-
const
|
|
500
|
-
return axiosInstance.
|
|
501
|
-
`/v3/
|
|
502
|
-
|
|
680
|
+
const authUpdateOAuthClient = (id, updateOAuthClientDto, options) => {
|
|
681
|
+
return axiosInstance.put(
|
|
682
|
+
`/v3/auth/oauth/clients/${id}`,
|
|
683
|
+
updateOAuthClientDto,
|
|
503
684
|
options
|
|
504
685
|
);
|
|
505
686
|
};
|
|
506
|
-
const
|
|
687
|
+
const authDeleteOAuthClient = (id, options) => {
|
|
507
688
|
return axiosInstance.delete(
|
|
508
|
-
`/v3/
|
|
689
|
+
`/v3/auth/oauth/clients/${id}`,
|
|
509
690
|
options
|
|
510
691
|
);
|
|
511
692
|
};
|
|
512
|
-
const
|
|
693
|
+
const authControllerHandleOAuth2 = (path, options) => {
|
|
513
694
|
return axiosInstance.get(
|
|
514
|
-
`/v3/
|
|
515
|
-
options
|
|
516
|
-
);
|
|
517
|
-
};
|
|
518
|
-
const adminControllerDefineTier = (defineTierDto, options) => {
|
|
519
|
-
return axiosInstance.post(
|
|
520
|
-
`/v3/admin/tiers`,
|
|
521
|
-
defineTierDto,
|
|
522
|
-
options
|
|
523
|
-
);
|
|
524
|
-
};
|
|
525
|
-
const adminControllerDeleteTier = (slug, options) => {
|
|
526
|
-
return axiosInstance.delete(
|
|
527
|
-
`/v3/admin/tiers/${slug}`,
|
|
695
|
+
`/v3/auth/oauth2/${path}`,
|
|
528
696
|
options
|
|
529
697
|
);
|
|
530
698
|
};
|
|
531
|
-
const
|
|
699
|
+
const adminControllerGetStats = (options) => {
|
|
532
700
|
return axiosInstance.get(
|
|
533
|
-
`/v3/admin/
|
|
534
|
-
options
|
|
535
|
-
);
|
|
536
|
-
};
|
|
537
|
-
const adminControllerUpdateOrganizationSubscription = (id, updateSubscriptionDto, options) => {
|
|
538
|
-
return axiosInstance.put(
|
|
539
|
-
`/v3/admin/organizations/${id}/subscription`,
|
|
540
|
-
updateSubscriptionDto,
|
|
701
|
+
`/v3/admin/stats`,
|
|
541
702
|
options
|
|
542
703
|
);
|
|
543
704
|
};
|
|
544
|
-
const
|
|
705
|
+
const adminControllerListOrganizations = (options) => {
|
|
545
706
|
return axiosInstance.get(
|
|
546
|
-
`/v3/admin/
|
|
707
|
+
`/v3/admin/organizations`,
|
|
547
708
|
options
|
|
548
709
|
);
|
|
549
710
|
};
|
|
550
|
-
const
|
|
711
|
+
const adminControllerCreateOrganization = (createOrganizationDto, options) => {
|
|
551
712
|
return axiosInstance.post(
|
|
552
|
-
`/v3/admin/
|
|
553
|
-
|
|
713
|
+
`/v3/admin/organizations`,
|
|
714
|
+
createOrganizationDto,
|
|
554
715
|
options
|
|
555
716
|
);
|
|
556
717
|
};
|
|
557
|
-
const
|
|
718
|
+
const adminControllerGetOrganizationDetails = (id, options) => {
|
|
558
719
|
return axiosInstance.get(
|
|
559
|
-
`/v3/admin/
|
|
560
|
-
options
|
|
561
|
-
);
|
|
562
|
-
};
|
|
563
|
-
const adminControllerCreateIntegrationDefinition = (createIntegrationDefinitionDto, options) => {
|
|
564
|
-
return axiosInstance.post(
|
|
565
|
-
`/v3/admin/integrations/definitions`,
|
|
566
|
-
createIntegrationDefinitionDto,
|
|
720
|
+
`/v3/admin/organizations/${id}`,
|
|
567
721
|
options
|
|
568
722
|
);
|
|
569
723
|
};
|
|
570
|
-
const
|
|
724
|
+
const adminControllerUpdateOrganization = (id, updateOrganizationDto, options) => {
|
|
571
725
|
return axiosInstance.patch(
|
|
572
|
-
`/v3/admin/
|
|
573
|
-
|
|
574
|
-
options
|
|
575
|
-
);
|
|
576
|
-
};
|
|
577
|
-
const adminControllerDeleteIntegrationDefinition = (id, options) => {
|
|
578
|
-
return axiosInstance.delete(
|
|
579
|
-
`/v3/admin/integrations/definitions/${id}`,
|
|
580
|
-
options
|
|
581
|
-
);
|
|
582
|
-
};
|
|
583
|
-
const adminControllerListActiveOrganizationIntegrations = (options) => {
|
|
584
|
-
return axiosInstance.get(
|
|
585
|
-
`/v3/admin/integrations/active`,
|
|
586
|
-
options
|
|
587
|
-
);
|
|
588
|
-
};
|
|
589
|
-
const webhooksCreate = (orgSlug, createWebhookDto, options) => {
|
|
590
|
-
return axiosInstance.post(
|
|
591
|
-
`/v3/${orgSlug}/webhooks`,
|
|
592
|
-
createWebhookDto,
|
|
593
|
-
options
|
|
594
|
-
);
|
|
595
|
-
};
|
|
596
|
-
const webhooksList = (orgSlug, options) => {
|
|
597
|
-
return axiosInstance.get(
|
|
598
|
-
`/v3/${orgSlug}/webhooks`,
|
|
726
|
+
`/v3/admin/organizations/${id}`,
|
|
727
|
+
updateOrganizationDto,
|
|
599
728
|
options
|
|
600
729
|
);
|
|
601
730
|
};
|
|
602
|
-
const
|
|
731
|
+
const adminControllerDeleteOrganization = (id, options) => {
|
|
603
732
|
return axiosInstance.delete(
|
|
604
|
-
`/v3
|
|
605
|
-
options
|
|
606
|
-
);
|
|
607
|
-
};
|
|
608
|
-
const windmillCallbackControllerHandleCallback = (options) => {
|
|
609
|
-
return axiosInstance.post(
|
|
610
|
-
`/v3/webhooks/windmill`,
|
|
611
|
-
void 0,
|
|
612
|
-
options
|
|
613
|
-
);
|
|
614
|
-
};
|
|
615
|
-
const windmillCallbackControllerHandleApprovalCallback = (options) => {
|
|
616
|
-
return axiosInstance.post(
|
|
617
|
-
`/v3/webhooks/windmill/approval`,
|
|
618
|
-
void 0,
|
|
733
|
+
`/v3/admin/organizations/${id}`,
|
|
619
734
|
options
|
|
620
735
|
);
|
|
621
736
|
};
|
|
622
|
-
const
|
|
737
|
+
const adminControllerSuspendOrganization = (id, suspendOrganizationDto, options) => {
|
|
623
738
|
return axiosInstance.post(
|
|
624
|
-
`/v3/
|
|
625
|
-
|
|
739
|
+
`/v3/admin/organizations/${id}/suspend`,
|
|
740
|
+
suspendOrganizationDto,
|
|
626
741
|
options
|
|
627
742
|
);
|
|
628
743
|
};
|
|
629
|
-
const
|
|
744
|
+
const adminControllerReactivateOrganization = (id, options) => {
|
|
630
745
|
return axiosInstance.post(
|
|
631
|
-
`/v3/
|
|
746
|
+
`/v3/admin/organizations/${id}/reactivate`,
|
|
632
747
|
void 0,
|
|
633
748
|
options
|
|
634
749
|
);
|
|
635
750
|
};
|
|
636
|
-
const
|
|
637
|
-
return axiosInstance.get(
|
|
638
|
-
`/v3/${orgSlug}/catalog/products`,
|
|
639
|
-
{
|
|
640
|
-
...options,
|
|
641
|
-
params: { ...params, ...options?.params }
|
|
642
|
-
}
|
|
643
|
-
);
|
|
644
|
-
};
|
|
645
|
-
const catalogCreateProduct = (orgSlug, createProductDto, options) => {
|
|
646
|
-
return axiosInstance.post(
|
|
647
|
-
`/v3/${orgSlug}/catalog/products`,
|
|
648
|
-
createProductDto,
|
|
649
|
-
options
|
|
650
|
-
);
|
|
651
|
-
};
|
|
652
|
-
const catalogGetProduct = (orgSlug, idOrSlug, options) => {
|
|
751
|
+
const adminControllerGetEffectiveQuota = (id, options) => {
|
|
653
752
|
return axiosInstance.get(
|
|
654
|
-
`/v3
|
|
753
|
+
`/v3/admin/organizations/${id}/quota`,
|
|
655
754
|
options
|
|
656
755
|
);
|
|
657
756
|
};
|
|
658
|
-
const
|
|
659
|
-
return axiosInstance.
|
|
660
|
-
`/v3/${
|
|
661
|
-
|
|
662
|
-
...options,
|
|
663
|
-
params: { ...params, ...options?.params }
|
|
664
|
-
}
|
|
665
|
-
);
|
|
666
|
-
};
|
|
667
|
-
const catalogUpdateProduct = (orgSlug, id, updateProductDto, options) => {
|
|
668
|
-
return axiosInstance.patch(
|
|
669
|
-
`/v3/${orgSlug}/catalog/products/${id}`,
|
|
670
|
-
updateProductDto,
|
|
671
|
-
options
|
|
672
|
-
);
|
|
673
|
-
};
|
|
674
|
-
const catalogUpdateSupplierVariant = (orgSlug, supplierId, variantId, updateSupplierProductDto, options) => {
|
|
675
|
-
return axiosInstance.patch(
|
|
676
|
-
`/v3/${orgSlug}/catalog/suppliers/${supplierId}/variants/${variantId}`,
|
|
677
|
-
updateSupplierProductDto,
|
|
757
|
+
const adminControllerSetQuotaOverrides = (id, setQuotaOverridesDto, options) => {
|
|
758
|
+
return axiosInstance.put(
|
|
759
|
+
`/v3/admin/organizations/${id}/quota-overrides`,
|
|
760
|
+
setQuotaOverridesDto,
|
|
678
761
|
options
|
|
679
762
|
);
|
|
680
763
|
};
|
|
681
|
-
const
|
|
764
|
+
const adminControllerListMembers = (params, options) => {
|
|
682
765
|
return axiosInstance.get(
|
|
683
|
-
`/v3
|
|
684
|
-
{
|
|
685
|
-
...options,
|
|
686
|
-
params: { ...params, ...options?.params }
|
|
687
|
-
}
|
|
688
|
-
);
|
|
689
|
-
};
|
|
690
|
-
const catalogReviewPriceChangeRequest = (orgSlug, id, reviewPriceChangeDto, options) => {
|
|
691
|
-
return axiosInstance.post(
|
|
692
|
-
`/v3/${orgSlug}/catalog/price-change-requests/${id}/review`,
|
|
693
|
-
reviewPriceChangeDto,
|
|
694
|
-
options
|
|
695
|
-
);
|
|
696
|
-
};
|
|
697
|
-
const catalogCreateReview = (orgSlug, productId, createProductReviewDto, options) => {
|
|
698
|
-
return axiosInstance.post(
|
|
699
|
-
`/v3/${orgSlug}/catalog/products/${productId}/reviews`,
|
|
700
|
-
createProductReviewDto,
|
|
701
|
-
options
|
|
702
|
-
);
|
|
703
|
-
};
|
|
704
|
-
const catalogUpdateReview = (orgSlug, reviewId, updateProductReviewDto, options) => {
|
|
705
|
-
return axiosInstance.patch(
|
|
706
|
-
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
707
|
-
updateProductReviewDto,
|
|
708
|
-
options
|
|
709
|
-
);
|
|
710
|
-
};
|
|
711
|
-
const catalogDeleteReview = (orgSlug, reviewId, params, options) => {
|
|
712
|
-
return axiosInstance.delete(
|
|
713
|
-
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
766
|
+
`/v3/admin/members`,
|
|
714
767
|
{
|
|
715
768
|
...options,
|
|
716
769
|
params: { ...params, ...options?.params }
|
|
717
|
-
}
|
|
718
|
-
);
|
|
719
|
-
};
|
|
720
|
-
const
|
|
721
|
-
return axiosInstance.
|
|
722
|
-
`/v3
|
|
723
|
-
createServiceCategoryDto,
|
|
724
|
-
options
|
|
725
|
-
);
|
|
726
|
-
};
|
|
727
|
-
const servicesGetCategories = (orgSlug, options) => {
|
|
728
|
-
return axiosInstance.get(
|
|
729
|
-
`/v3/${orgSlug}/services/categories`,
|
|
730
|
-
options
|
|
731
|
-
);
|
|
732
|
-
};
|
|
733
|
-
const servicesUpdateCategory = (orgSlug, id, updateServiceCategoryDto, options) => {
|
|
734
|
-
return axiosInstance.patch(
|
|
735
|
-
`/v3/${orgSlug}/services/categories/${id}`,
|
|
736
|
-
updateServiceCategoryDto,
|
|
770
|
+
}
|
|
771
|
+
);
|
|
772
|
+
};
|
|
773
|
+
const adminControllerListUsers = (options) => {
|
|
774
|
+
return axiosInstance.get(
|
|
775
|
+
`/v3/admin/users`,
|
|
737
776
|
options
|
|
738
777
|
);
|
|
739
778
|
};
|
|
740
|
-
const
|
|
779
|
+
const adminControllerBanUser = (id, banUserDto, options) => {
|
|
741
780
|
return axiosInstance.post(
|
|
742
|
-
`/v3
|
|
743
|
-
|
|
781
|
+
`/v3/admin/users/${id}/ban`,
|
|
782
|
+
banUserDto,
|
|
744
783
|
options
|
|
745
784
|
);
|
|
746
785
|
};
|
|
747
|
-
const
|
|
786
|
+
const adminControllerUnbanUser = (id, options) => {
|
|
748
787
|
return axiosInstance.post(
|
|
749
|
-
`/v3/${
|
|
750
|
-
|
|
788
|
+
`/v3/admin/users/${id}/unban`,
|
|
789
|
+
void 0,
|
|
751
790
|
options
|
|
752
791
|
);
|
|
753
792
|
};
|
|
754
|
-
const
|
|
793
|
+
const adminControllerListConnectedApps = (options) => {
|
|
755
794
|
return axiosInstance.get(
|
|
756
|
-
`/v3
|
|
795
|
+
`/v3/admin/connected-apps`,
|
|
757
796
|
options
|
|
758
797
|
);
|
|
759
798
|
};
|
|
760
|
-
const
|
|
799
|
+
const adminControllerListSystemLogs = (options) => {
|
|
761
800
|
return axiosInstance.get(
|
|
762
|
-
`/v3
|
|
801
|
+
`/v3/admin/system-logs`,
|
|
763
802
|
options
|
|
764
803
|
);
|
|
765
804
|
};
|
|
766
|
-
const
|
|
805
|
+
const adminControllerListGlobalSettings = (options) => {
|
|
767
806
|
return axiosInstance.get(
|
|
768
|
-
`/v3
|
|
769
|
-
|
|
770
|
-
...options,
|
|
771
|
-
params: { ...params, ...options?.params }
|
|
772
|
-
}
|
|
807
|
+
`/v3/admin/settings`,
|
|
808
|
+
options
|
|
773
809
|
);
|
|
774
810
|
};
|
|
775
|
-
const
|
|
776
|
-
return axiosInstance.
|
|
777
|
-
`/v3
|
|
811
|
+
const adminControllerSetGlobalSetting = (setGlobalSettingDto, options) => {
|
|
812
|
+
return axiosInstance.post(
|
|
813
|
+
`/v3/admin/settings`,
|
|
814
|
+
setGlobalSettingDto,
|
|
778
815
|
options
|
|
779
816
|
);
|
|
780
817
|
};
|
|
781
|
-
const
|
|
782
|
-
return axiosInstance.
|
|
783
|
-
`/v3
|
|
784
|
-
updateServiceDto,
|
|
818
|
+
const adminControllerDeleteGlobalSetting = (key, options) => {
|
|
819
|
+
return axiosInstance.delete(
|
|
820
|
+
`/v3/admin/settings/${key}`,
|
|
785
821
|
options
|
|
786
822
|
);
|
|
787
823
|
};
|
|
788
|
-
const
|
|
824
|
+
const adminControllerListTiers = (options) => {
|
|
789
825
|
return axiosInstance.get(
|
|
790
|
-
`/v3
|
|
791
|
-
|
|
792
|
-
...options,
|
|
793
|
-
params: { ...params, ...options?.params }
|
|
794
|
-
}
|
|
826
|
+
`/v3/admin/tiers`,
|
|
827
|
+
options
|
|
795
828
|
);
|
|
796
829
|
};
|
|
797
|
-
const
|
|
830
|
+
const adminControllerDefineTier = (defineTierDto, options) => {
|
|
798
831
|
return axiosInstance.post(
|
|
799
|
-
`/v3
|
|
800
|
-
|
|
832
|
+
`/v3/admin/tiers`,
|
|
833
|
+
defineTierDto,
|
|
801
834
|
options
|
|
802
835
|
);
|
|
803
836
|
};
|
|
804
|
-
const
|
|
805
|
-
return axiosInstance.
|
|
806
|
-
`/v3/${
|
|
807
|
-
createServiceResourceDto,
|
|
837
|
+
const adminControllerDeleteTier = (slug, options) => {
|
|
838
|
+
return axiosInstance.delete(
|
|
839
|
+
`/v3/admin/tiers/${slug}`,
|
|
808
840
|
options
|
|
809
841
|
);
|
|
810
842
|
};
|
|
811
|
-
const
|
|
843
|
+
const adminControllerGetOrganizationSubscription = (id, options) => {
|
|
812
844
|
return axiosInstance.get(
|
|
813
|
-
`/v3/${
|
|
845
|
+
`/v3/admin/organizations/${id}/subscription`,
|
|
814
846
|
options
|
|
815
847
|
);
|
|
816
848
|
};
|
|
817
|
-
const
|
|
818
|
-
return axiosInstance.
|
|
819
|
-
`/v3
|
|
820
|
-
|
|
849
|
+
const adminControllerUpdateOrganizationSubscription = (id, updateSubscriptionDto, options) => {
|
|
850
|
+
return axiosInstance.put(
|
|
851
|
+
`/v3/admin/organizations/${id}/subscription`,
|
|
852
|
+
updateSubscriptionDto,
|
|
821
853
|
options
|
|
822
854
|
);
|
|
823
855
|
};
|
|
824
|
-
const
|
|
825
|
-
return axiosInstance.
|
|
826
|
-
`/v3
|
|
827
|
-
void 0,
|
|
856
|
+
const adminControllerListSystemPayments = (options) => {
|
|
857
|
+
return axiosInstance.get(
|
|
858
|
+
`/v3/admin/payments`,
|
|
828
859
|
options
|
|
829
860
|
);
|
|
830
861
|
};
|
|
831
|
-
const
|
|
862
|
+
const adminControllerRecordCustomPayment = (recordCustomPaymentDto, options) => {
|
|
832
863
|
return axiosInstance.post(
|
|
833
|
-
`/v3
|
|
834
|
-
|
|
864
|
+
`/v3/admin/payments/record`,
|
|
865
|
+
recordCustomPaymentDto,
|
|
835
866
|
options
|
|
836
867
|
);
|
|
837
868
|
};
|
|
838
|
-
const
|
|
869
|
+
const adminControllerListIntegrationDefinitions = (options) => {
|
|
839
870
|
return axiosInstance.get(
|
|
840
|
-
`/v3
|
|
871
|
+
`/v3/admin/integrations/definitions`,
|
|
841
872
|
options
|
|
842
873
|
);
|
|
843
874
|
};
|
|
844
|
-
const
|
|
845
|
-
return axiosInstance.
|
|
846
|
-
`/v3
|
|
875
|
+
const adminControllerCreateIntegrationDefinition = (createIntegrationDefinitionDto, options) => {
|
|
876
|
+
return axiosInstance.post(
|
|
877
|
+
`/v3/admin/integrations/definitions`,
|
|
878
|
+
createIntegrationDefinitionDto,
|
|
847
879
|
options
|
|
848
880
|
);
|
|
849
881
|
};
|
|
850
|
-
const
|
|
882
|
+
const adminControllerUpdateIntegrationDefinition = (id, updateIntegrationDefinitionDto, options) => {
|
|
851
883
|
return axiosInstance.patch(
|
|
852
|
-
`/v3
|
|
853
|
-
|
|
884
|
+
`/v3/admin/integrations/definitions/${id}`,
|
|
885
|
+
updateIntegrationDefinitionDto,
|
|
854
886
|
options
|
|
855
887
|
);
|
|
856
888
|
};
|
|
857
|
-
const
|
|
858
|
-
return axiosInstance.
|
|
859
|
-
`/v3
|
|
860
|
-
completeBookingDto,
|
|
889
|
+
const adminControllerDeleteIntegrationDefinition = (id, options) => {
|
|
890
|
+
return axiosInstance.delete(
|
|
891
|
+
`/v3/admin/integrations/definitions/${id}`,
|
|
861
892
|
options
|
|
862
893
|
);
|
|
863
894
|
};
|
|
864
|
-
const
|
|
865
|
-
return axiosInstance.
|
|
866
|
-
`/v3
|
|
867
|
-
void 0,
|
|
895
|
+
const adminControllerListActiveOrganizationIntegrations = (options) => {
|
|
896
|
+
return axiosInstance.get(
|
|
897
|
+
`/v3/admin/integrations/active`,
|
|
868
898
|
options
|
|
869
899
|
);
|
|
870
900
|
};
|
|
871
|
-
const
|
|
901
|
+
const webhooksCreate = (orgSlug, createWebhookDto, options) => {
|
|
872
902
|
return axiosInstance.post(
|
|
873
|
-
`/v3/${orgSlug}/
|
|
874
|
-
|
|
903
|
+
`/v3/${orgSlug}/webhooks`,
|
|
904
|
+
createWebhookDto,
|
|
875
905
|
options
|
|
876
906
|
);
|
|
877
907
|
};
|
|
878
|
-
const
|
|
908
|
+
const webhooksList = (orgSlug, options) => {
|
|
879
909
|
return axiosInstance.get(
|
|
880
|
-
`/v3/${orgSlug}/
|
|
881
|
-
options
|
|
882
|
-
);
|
|
883
|
-
};
|
|
884
|
-
const servicesAddBreak = (orgSlug, shiftId, servicesAddBreakBody, options) => {
|
|
885
|
-
return axiosInstance.post(
|
|
886
|
-
`/v3/${orgSlug}/services/shifts/${shiftId}/breaks`,
|
|
887
|
-
servicesAddBreakBody,
|
|
910
|
+
`/v3/${orgSlug}/webhooks`,
|
|
888
911
|
options
|
|
889
912
|
);
|
|
890
913
|
};
|
|
891
|
-
const
|
|
892
|
-
return axiosInstance.
|
|
893
|
-
`/v3/${orgSlug}/
|
|
894
|
-
servicesRegisterCustomerAppBody,
|
|
914
|
+
const webhooksDelete = (orgSlug, id, options) => {
|
|
915
|
+
return axiosInstance.delete(
|
|
916
|
+
`/v3/${orgSlug}/webhooks/${id}`,
|
|
895
917
|
options
|
|
896
918
|
);
|
|
897
919
|
};
|
|
898
|
-
const
|
|
920
|
+
const catalogGetProducts = (orgSlug, params, options) => {
|
|
899
921
|
return axiosInstance.get(
|
|
900
|
-
`/v3/${orgSlug}/
|
|
922
|
+
`/v3/${orgSlug}/catalog/products`,
|
|
901
923
|
{
|
|
902
924
|
...options,
|
|
903
925
|
params: { ...params, ...options?.params }
|
|
904
926
|
}
|
|
905
927
|
);
|
|
906
928
|
};
|
|
907
|
-
const
|
|
929
|
+
const catalogCreateProduct = (orgSlug, createProductDto, options) => {
|
|
930
|
+
return axiosInstance.post(
|
|
931
|
+
`/v3/${orgSlug}/catalog/products`,
|
|
932
|
+
createProductDto,
|
|
933
|
+
options
|
|
934
|
+
);
|
|
935
|
+
};
|
|
936
|
+
const catalogGetProduct = (orgSlug, idOrSlug, options) => {
|
|
908
937
|
return axiosInstance.get(
|
|
909
|
-
`/v3/${orgSlug}/
|
|
910
|
-
|
|
911
|
-
...options,
|
|
912
|
-
params: { ...params, ...options?.params }
|
|
913
|
-
}
|
|
938
|
+
`/v3/${orgSlug}/catalog/products/${idOrSlug}`,
|
|
939
|
+
options
|
|
914
940
|
);
|
|
915
941
|
};
|
|
916
|
-
const
|
|
942
|
+
const catalogGetServices = (orgSlug, params, options) => {
|
|
917
943
|
return axiosInstance.get(
|
|
918
|
-
`/v3/${orgSlug}/services
|
|
944
|
+
`/v3/${orgSlug}/catalog/services`,
|
|
919
945
|
{
|
|
920
946
|
...options,
|
|
921
947
|
params: { ...params, ...options?.params }
|
|
922
948
|
}
|
|
923
949
|
);
|
|
924
950
|
};
|
|
925
|
-
const
|
|
926
|
-
return axiosInstance.
|
|
927
|
-
`/v3
|
|
928
|
-
|
|
929
|
-
);
|
|
930
|
-
};
|
|
931
|
-
const publicServicesGetCategories = (orgSlug, options) => {
|
|
932
|
-
return axiosInstance.get(
|
|
933
|
-
`/v3/public/${orgSlug}/services/categories`,
|
|
951
|
+
const catalogUpdateProduct = (orgSlug, id, updateProductDto, options) => {
|
|
952
|
+
return axiosInstance.patch(
|
|
953
|
+
`/v3/${orgSlug}/catalog/products/${id}`,
|
|
954
|
+
updateProductDto,
|
|
934
955
|
options
|
|
935
956
|
);
|
|
936
957
|
};
|
|
937
|
-
const
|
|
938
|
-
return axiosInstance.
|
|
939
|
-
`/v3
|
|
958
|
+
const catalogUpdateSupplierVariant = (orgSlug, supplierId, variantId, updateSupplierProductDto, options) => {
|
|
959
|
+
return axiosInstance.patch(
|
|
960
|
+
`/v3/${orgSlug}/catalog/suppliers/${supplierId}/variants/${variantId}`,
|
|
961
|
+
updateSupplierProductDto,
|
|
940
962
|
options
|
|
941
963
|
);
|
|
942
964
|
};
|
|
943
|
-
const
|
|
965
|
+
const catalogGetPriceChangeRequests = (orgSlug, params, options) => {
|
|
944
966
|
return axiosInstance.get(
|
|
945
|
-
`/v3
|
|
967
|
+
`/v3/${orgSlug}/catalog/price-change-requests`,
|
|
946
968
|
{
|
|
947
969
|
...options,
|
|
948
970
|
params: { ...params, ...options?.params }
|
|
949
971
|
}
|
|
950
972
|
);
|
|
951
973
|
};
|
|
952
|
-
const
|
|
974
|
+
const catalogReviewPriceChangeRequest = (orgSlug, id, reviewPriceChangeDto, options) => {
|
|
953
975
|
return axiosInstance.post(
|
|
954
|
-
`/v3
|
|
955
|
-
|
|
976
|
+
`/v3/${orgSlug}/catalog/price-change-requests/${id}/review`,
|
|
977
|
+
reviewPriceChangeDto,
|
|
956
978
|
options
|
|
957
979
|
);
|
|
958
980
|
};
|
|
959
|
-
const
|
|
981
|
+
const catalogCreateReview = (orgSlug, productId, createProductReviewDto, options) => {
|
|
960
982
|
return axiosInstance.post(
|
|
961
|
-
`/v3
|
|
962
|
-
|
|
983
|
+
`/v3/${orgSlug}/catalog/products/${productId}/reviews`,
|
|
984
|
+
createProductReviewDto,
|
|
963
985
|
options
|
|
964
986
|
);
|
|
965
987
|
};
|
|
966
|
-
const
|
|
967
|
-
return axiosInstance.
|
|
968
|
-
`/v3
|
|
969
|
-
|
|
988
|
+
const catalogUpdateReview = (orgSlug, reviewId, updateProductReviewDto, options) => {
|
|
989
|
+
return axiosInstance.patch(
|
|
990
|
+
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
991
|
+
updateProductReviewDto,
|
|
970
992
|
options
|
|
971
993
|
);
|
|
972
994
|
};
|
|
995
|
+
const catalogDeleteReview = (orgSlug, reviewId, params, options) => {
|
|
996
|
+
return axiosInstance.delete(
|
|
997
|
+
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
998
|
+
{
|
|
999
|
+
...options,
|
|
1000
|
+
params: { ...params, ...options?.params }
|
|
1001
|
+
}
|
|
1002
|
+
);
|
|
1003
|
+
};
|
|
973
1004
|
const customersGetCustomers = (orgSlug, params, options) => {
|
|
974
1005
|
return axiosInstance.get(
|
|
975
1006
|
`/v3/${orgSlug}/customers`,
|
|
@@ -1234,6 +1265,13 @@ var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
|
1234
1265
|
options
|
|
1235
1266
|
);
|
|
1236
1267
|
};
|
|
1268
|
+
const paymentsCheckout = (orgSlug, checkoutDto, options) => {
|
|
1269
|
+
return axiosInstance.post(
|
|
1270
|
+
`/v3/${orgSlug}/payments/checkout`,
|
|
1271
|
+
checkoutDto,
|
|
1272
|
+
options
|
|
1273
|
+
);
|
|
1274
|
+
};
|
|
1237
1275
|
const paymentsControllerHandleStkCallback = (orgSlug, paymentId, options) => {
|
|
1238
1276
|
return axiosInstance.post(
|
|
1239
1277
|
`/v3/${orgSlug}/payments/webhooks/mpesa/stkpush/${paymentId}`,
|
|
@@ -1302,6 +1340,26 @@ var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
|
1302
1340
|
}
|
|
1303
1341
|
);
|
|
1304
1342
|
};
|
|
1343
|
+
const pOSCreatePairingSession = (options) => {
|
|
1344
|
+
return axiosInstance.post(
|
|
1345
|
+
`/v3/pos/pairing/session`,
|
|
1346
|
+
void 0,
|
|
1347
|
+
options
|
|
1348
|
+
);
|
|
1349
|
+
};
|
|
1350
|
+
const pOSGetPairingSessionStatus = (sessionId, options) => {
|
|
1351
|
+
return axiosInstance.get(
|
|
1352
|
+
`/v3/pos/pairing/session/${sessionId}/status`,
|
|
1353
|
+
options
|
|
1354
|
+
);
|
|
1355
|
+
};
|
|
1356
|
+
const pOSAuthorizePairingSession = (sessionId, options) => {
|
|
1357
|
+
return axiosInstance.post(
|
|
1358
|
+
`/v3/pos/pairing/session/${sessionId}/authorize`,
|
|
1359
|
+
void 0,
|
|
1360
|
+
options
|
|
1361
|
+
);
|
|
1362
|
+
};
|
|
1305
1363
|
const membersControllerGetMembers = (orgSlug, params, options) => {
|
|
1306
1364
|
return axiosInstance.get(
|
|
1307
1365
|
`/v3/${orgSlug}/members`,
|
|
@@ -1945,14 +2003,7 @@ var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
|
1945
2003
|
}
|
|
1946
2004
|
);
|
|
1947
2005
|
};
|
|
1948
|
-
|
|
1949
|
-
return axiosInstance.post(
|
|
1950
|
-
`/v3/${orgSlug}/payments/checkout`,
|
|
1951
|
-
checkoutDto,
|
|
1952
|
-
options
|
|
1953
|
-
);
|
|
1954
|
-
};
|
|
1955
|
-
return { inventoryVerifyIntegrity, inventoryFixIntegrity, inventoryGetInventory, inventoryTraceBatch, inventorySplitBatch, inventoryMergeBatches, inventoryCreateAssembly, inventoryCompleteAssembly, inventoryRequestAdjustment, inventoryGetAdjustments, inventoryApproveAdjustment, inventoryRejectAdjustment, inventoryGetLeadTime, inventoryGetWasteAnalysis, inventoryCheckB2BAvailability, inventoryUnpackBatch, inventoryScanUnpackBatch, inventoryQuickStockInquiry, expenseControllerCreateExpense, expenseControllerGetExpenses, expenseControllerGetExpenseCategories, expenseControllerGetExpense, pettyCashControllerCreateFund, pettyCashControllerGetFunds, pettyCashControllerGetFund, pettyCashControllerTopUpFund, pettyCashControllerGetFundTransactions, utilityAccountControllerCreateAccount, utilityAccountControllerGetAccounts, utilityAccountControllerGetAccount, accountingInitialize, accountingGetProfitLoss, accountingGetBalanceSheet, accountingGetCashFlow, accountingGetTaxSummary, invoiceControllerCreateInvoice, invoiceControllerGetInvoices, invoiceControllerGetInvoice, invoiceControllerUpdateInvoice, invoiceControllerDeleteInvoice, invoiceControllerFinalizeInvoice, invoiceControllerGetTemplates, invoiceControllerCreateTemplate, invoiceControllerGetConfig, invoiceControllerUpdateConfig, publicInvoiceControllerDownloadInvoice, publicInvoiceControllerDownloadInvoiceByTransaction, publicInvoiceControllerDownloadReceipt, publicInvoiceControllerGeneratePublicLink, authExchangeToken, authControllerHandleOAuth2, adminControllerGetStats, adminControllerListOrganizations, adminControllerCreateOrganization, adminControllerGetOrganizationDetails, adminControllerUpdateOrganization, adminControllerDeleteOrganization, adminControllerListMembers, adminControllerListUsers, adminControllerBanUser, adminControllerUnbanUser, adminControllerListConnectedApps, adminControllerListSystemLogs, adminControllerListGlobalSettings, adminControllerSetGlobalSetting, adminControllerDeleteGlobalSetting, adminControllerListTiers, adminControllerDefineTier, adminControllerDeleteTier, adminControllerGetOrganizationSubscription, adminControllerUpdateOrganizationSubscription, adminControllerListSystemPayments, adminControllerRecordCustomPayment, adminControllerListIntegrationDefinitions, adminControllerCreateIntegrationDefinition, adminControllerUpdateIntegrationDefinition, adminControllerDeleteIntegrationDefinition, adminControllerListActiveOrganizationIntegrations, webhooksCreate, webhooksList, webhooksDelete, windmillCallbackControllerHandleCallback, windmillCallbackControllerHandleApprovalCallback, windmillCallbackControllerHandleBakeryDisposalCallback, windmillCallbackControllerHandleOutcomeCallback, catalogGetProducts, catalogCreateProduct, catalogGetProduct, catalogGetServices, catalogUpdateProduct, catalogUpdateSupplierVariant, catalogGetPriceChangeRequests, catalogReviewPriceChangeRequest, catalogCreateReview, catalogUpdateReview, catalogDeleteReview, servicesCreateCategory, servicesGetCategories, servicesUpdateCategory, servicesDeleteCategory, servicesCreateService, servicesGetServices, servicesGetCurrentMemberShifts, servicesGetShifts, servicesGetService, servicesUpdateService, servicesGetAvailability, servicesDeleteService, servicesCreateResource, servicesGetResources, servicesUpdateResource, servicesDeleteResource, servicesCreateBooking, servicesGetBookings, servicesGetBooking, servicesUpdateBookingStatus, servicesCompleteBooking, servicesCancelBookingSeries, servicesCreateShift, servicesGetStaffShifts, servicesAddBreak, servicesRegisterCustomerApp, servicesGetUtilization, servicesGetPerformance, servicesGetFunnel, publicServicesListServices, publicServicesGetCategories, publicServicesGetService, publicServicesGetAvailability, publicServicesRequestOtp, publicServicesVerifyOtp, publicServicesCreatePublicBooking, customersGetCustomers, customersRegister, customerRegister, customersLogin, customersRefreshSession, customersGetCurrentSession, customersGetSessions, customersRevokeAllSessions, customersRevokeSession, customersUpdate, customersGetCustomerById, customersDelete, customersGetAddresses, customersAddAddress, businessAccountControllerCreate, businessAccountControllerGetOne, crmControllerCreateRecord, crmControllerGetRecord, crmControllerUpdateRecord, crmControllerCreateNote, crmControllerGetRecordNotes, crmControllerCreateActivity, crmControllerGetTimeline, crmControllerCreateObject, crmControllerListObjects, crmControllerCreateField, crmControllerListFields, crmControllerCreateRelationship, crmControllerListRelationships, crmControllerCreateAssociation, crmControllerListRecordAssociations, loyaltyRedeemReward, loyaltyGetCustomerStatus, loyaltyValidateVoucher, ordersCreateOrder, ordersGetOrders, ordersUpdateStatus, ordersRequestB2BQuote, ordersConvertQuoteToOrder, paymentsControllerHandleStkCallback, pOSProvision, pOSLogin, pOSGetMe, pOSProcessSale, pOSSync, pOSGetTransactions, pOSRegisterPettyCash, pOSGetPettyCashFunds, pOSGetPettyCashTransactions, membersControllerGetMembers, membersControllerCreateMember, membersControllerGetMember, membersControllerUpdateMember, membersControllerDeleteMember, membersControllerGetMemberActivity, membersControllerUpdateStatus, membersControllerAdminCheckOut, terminalMembersControllerLogin, invitationsList, invitationsCreate, invitationsRevoke, invitationsAccept, roleManagementControllerGetCustomRoles, roleManagementControllerCreateCustomRole, roleManagementControllerUpdateCustomRole, roleManagementControllerDeleteCustomRole, roleManagementControllerGetPermissionSets, roleManagementControllerCreatePermissionSet, roleManagementControllerGetRoleGroups, roleManagementControllerCreateRoleGroup, roleManagementControllerAssignRoles, roleManagementControllerRemoveRoles, departmentsList, departmentsCreate, departmentsGet, departmentsUpdate, departmentsDelete, departmentsAddMember, departmentsRemoveMember, attendanceControllerGetLogs, attendanceControllerCheckIn, attendanceControllerCheckOut, attendanceControllerGetMyStatus, attendanceControllerGetStatus, announcementControllerBroadcastAnnouncement, cartControllerGetCart, cartControllerClearCart, cartControllerAddToCart, cartControllerRemoveFromCart, favoritesControllerGetFavorites, favoritesControllerAddFavorite, favoritesControllerRemoveFavorite, stockingGetPurchases, stockingCreatePurchase, stockingReceivePurchase, stockingGetTransfers, stockingCreateTransfer, stockingShipTransfer, stockingReceiveTransfer, stockingGetRequests, stockingGetPendingDispatch, stockingDispatchOrders, stockingGetActiveDeliveries, stockingReconcilePod, stockingGetPhysicalReconciliations, stockingSubmitPhysicalReconciliation, stockingGetReconciliationReport, stockingGetPartners, stockingCreatePartner, stockingGetPartner, stockingUpdatePartner, stockingAdjustPartnerWallet, standalonePosControllerCreateSetupKey, standalonePosControllerActivateDevice, standalonePosControllerValidateKey, standalonePosControllerLinkOrganization, b2BGetCatalog, b2BGetInvoices, b2BGetOrders, b2BCreateOrder, b2BCreateQuote, crmIntegrationsGetAuthUrl, crmIntegrationsHandleCallback, crmIntegrationsHandleWebhook, crmIntegrationsReplyToActivity, unitsGetUnits, strapiCreateConnection, strapiListConnections, strapiGetConnection, strapiUpdateConnection, strapiDeleteConnection, strapiTriggerSync, strapiEnqueueSync, strapiGetWebhookLogs, strapiGetSyncLogs, strapiExchangeCustomerToken, strapiRegisterCustomer, strapiReceiveWebhook, analyticsControllerGetDashboardAnalytics, analyticsControllerGetResourceUtilization, paymentsCheckout };
|
|
2006
|
+
return { servicesCreateCategory, servicesGetCategories, servicesUpdateCategory, servicesDeleteCategory, servicesCreateService, servicesGetServices, servicesGetCurrentMemberShifts, servicesGetShifts, servicesGetService, servicesUpdateService, servicesGetAvailability, servicesDeleteService, servicesCreateResource, servicesGetResources, servicesUpdateResource, servicesDeleteResource, servicesCreateBooking, servicesGetBookings, servicesGetBooking, servicesUpdateBookingStatus, servicesCompleteBooking, servicesCancelBookingSeries, servicesCreateShift, servicesGetStaffShifts, servicesAddBreak, servicesRegisterCustomerApp, servicesGetUtilization, servicesGetPerformance, servicesGetFunnel, publicServicesListServices, publicServicesGetCategories, publicServicesGetService, publicServicesGetAvailability, publicServicesRequestOtp, publicServicesVerifyOtp, publicServicesCreatePublicBooking, inventoryVerifyIntegrity, inventoryFixIntegrity, inventoryGetInventory, inventoryTraceBatch, inventorySplitBatch, inventoryMergeBatches, inventoryCreateAssembly, inventoryCompleteAssembly, inventoryRequestAdjustment, inventoryGetAdjustments, inventoryApproveAdjustment, inventoryRejectAdjustment, inventoryGetLeadTime, inventoryGetWasteAnalysis, inventoryCheckB2BAvailability, inventoryUnpackBatch, inventoryScanUnpackBatch, inventoryQuickStockInquiry, expenseControllerCreateExpense, expenseControllerGetExpenses, expenseControllerGetExpenseCategories, expenseControllerGetExpense, pettyCashControllerCreateFund, pettyCashControllerGetFunds, pettyCashControllerGetFund, pettyCashControllerTopUpFund, pettyCashControllerGetFundTransactions, utilityAccountControllerCreateAccount, utilityAccountControllerGetAccounts, utilityAccountControllerGetAccount, accountingInitialize, accountingGetProfitLoss, accountingGetBalanceSheet, accountingGetCashFlow, accountingGetTaxSummary, invoiceControllerCreateInvoice, invoiceControllerGetInvoices, invoiceControllerGetInvoice, invoiceControllerUpdateInvoice, invoiceControllerDeleteInvoice, invoiceControllerFinalizeInvoice, invoiceControllerGetTemplates, invoiceControllerCreateTemplate, invoiceControllerGetConfig, invoiceControllerUpdateConfig, publicInvoiceControllerDownloadInvoice, publicInvoiceControllerDownloadInvoiceByTransaction, publicInvoiceControllerDownloadReceipt, publicInvoiceControllerGeneratePublicLink, authExchangeToken, authCreateOAuthClient, authListOAuthClients, authGetOAuthClient, authUpdateOAuthClient, authDeleteOAuthClient, authControllerHandleOAuth2, adminControllerGetStats, adminControllerListOrganizations, adminControllerCreateOrganization, adminControllerGetOrganizationDetails, adminControllerUpdateOrganization, adminControllerDeleteOrganization, adminControllerSuspendOrganization, adminControllerReactivateOrganization, adminControllerGetEffectiveQuota, adminControllerSetQuotaOverrides, adminControllerListMembers, adminControllerListUsers, adminControllerBanUser, adminControllerUnbanUser, adminControllerListConnectedApps, adminControllerListSystemLogs, adminControllerListGlobalSettings, adminControllerSetGlobalSetting, adminControllerDeleteGlobalSetting, adminControllerListTiers, adminControllerDefineTier, adminControllerDeleteTier, adminControllerGetOrganizationSubscription, adminControllerUpdateOrganizationSubscription, adminControllerListSystemPayments, adminControllerRecordCustomPayment, adminControllerListIntegrationDefinitions, adminControllerCreateIntegrationDefinition, adminControllerUpdateIntegrationDefinition, adminControllerDeleteIntegrationDefinition, adminControllerListActiveOrganizationIntegrations, webhooksCreate, webhooksList, webhooksDelete, catalogGetProducts, catalogCreateProduct, catalogGetProduct, catalogGetServices, catalogUpdateProduct, catalogUpdateSupplierVariant, catalogGetPriceChangeRequests, catalogReviewPriceChangeRequest, catalogCreateReview, catalogUpdateReview, catalogDeleteReview, customersGetCustomers, customersRegister, customerRegister, customersLogin, customersRefreshSession, customersGetCurrentSession, customersGetSessions, customersRevokeAllSessions, customersRevokeSession, customersUpdate, customersGetCustomerById, customersDelete, customersGetAddresses, customersAddAddress, businessAccountControllerCreate, businessAccountControllerGetOne, crmControllerCreateRecord, crmControllerGetRecord, crmControllerUpdateRecord, crmControllerCreateNote, crmControllerGetRecordNotes, crmControllerCreateActivity, crmControllerGetTimeline, crmControllerCreateObject, crmControllerListObjects, crmControllerCreateField, crmControllerListFields, crmControllerCreateRelationship, crmControllerListRelationships, crmControllerCreateAssociation, crmControllerListRecordAssociations, loyaltyRedeemReward, loyaltyGetCustomerStatus, loyaltyValidateVoucher, ordersCreateOrder, ordersGetOrders, ordersUpdateStatus, ordersRequestB2BQuote, ordersConvertQuoteToOrder, paymentsCheckout, paymentsControllerHandleStkCallback, pOSProvision, pOSLogin, pOSGetMe, pOSProcessSale, pOSSync, pOSGetTransactions, pOSRegisterPettyCash, pOSGetPettyCashFunds, pOSGetPettyCashTransactions, pOSCreatePairingSession, pOSGetPairingSessionStatus, pOSAuthorizePairingSession, membersControllerGetMembers, membersControllerCreateMember, membersControllerGetMember, membersControllerUpdateMember, membersControllerDeleteMember, membersControllerGetMemberActivity, membersControllerUpdateStatus, membersControllerAdminCheckOut, terminalMembersControllerLogin, invitationsList, invitationsCreate, invitationsRevoke, invitationsAccept, roleManagementControllerGetCustomRoles, roleManagementControllerCreateCustomRole, roleManagementControllerUpdateCustomRole, roleManagementControllerDeleteCustomRole, roleManagementControllerGetPermissionSets, roleManagementControllerCreatePermissionSet, roleManagementControllerGetRoleGroups, roleManagementControllerCreateRoleGroup, roleManagementControllerAssignRoles, roleManagementControllerRemoveRoles, departmentsList, departmentsCreate, departmentsGet, departmentsUpdate, departmentsDelete, departmentsAddMember, departmentsRemoveMember, attendanceControllerGetLogs, attendanceControllerCheckIn, attendanceControllerCheckOut, attendanceControllerGetMyStatus, attendanceControllerGetStatus, announcementControllerBroadcastAnnouncement, cartControllerGetCart, cartControllerClearCart, cartControllerAddToCart, cartControllerRemoveFromCart, favoritesControllerGetFavorites, favoritesControllerAddFavorite, favoritesControllerRemoveFavorite, stockingGetPurchases, stockingCreatePurchase, stockingReceivePurchase, stockingGetTransfers, stockingCreateTransfer, stockingShipTransfer, stockingReceiveTransfer, stockingGetRequests, stockingGetPendingDispatch, stockingDispatchOrders, stockingGetActiveDeliveries, stockingReconcilePod, stockingGetPhysicalReconciliations, stockingSubmitPhysicalReconciliation, stockingGetReconciliationReport, stockingGetPartners, stockingCreatePartner, stockingGetPartner, stockingUpdatePartner, stockingAdjustPartnerWallet, standalonePosControllerCreateSetupKey, standalonePosControllerActivateDevice, standalonePosControllerValidateKey, standalonePosControllerLinkOrganization, b2BGetCatalog, b2BGetInvoices, b2BGetOrders, b2BCreateOrder, b2BCreateQuote, crmIntegrationsGetAuthUrl, crmIntegrationsHandleCallback, crmIntegrationsHandleWebhook, crmIntegrationsReplyToActivity, unitsGetUnits, strapiCreateConnection, strapiListConnections, strapiGetConnection, strapiUpdateConnection, strapiDeleteConnection, strapiTriggerSync, strapiEnqueueSync, strapiGetWebhookLogs, strapiGetSyncLogs, strapiExchangeCustomerToken, strapiRegisterCustomer, strapiReceiveWebhook, analyticsControllerGetDashboardAnalytics, analyticsControllerGetResourceUtilization };
|
|
1956
2007
|
};
|
|
1957
2008
|
|
|
1958
2009
|
// src/base.ts
|
|
@@ -2151,6 +2202,11 @@ var catalogMapping = {
|
|
|
2151
2202
|
};
|
|
2152
2203
|
var authMapping = {
|
|
2153
2204
|
exchangeToken: "authExchangeToken",
|
|
2205
|
+
createOAuthClient: "authCreateOAuthClient",
|
|
2206
|
+
listOAuthClients: "authListOAuthClients",
|
|
2207
|
+
getOAuthClient: "authGetOAuthClient",
|
|
2208
|
+
updateOAuthClient: "authUpdateOAuthClient",
|
|
2209
|
+
deleteOAuthClient: "authDeleteOAuthClient",
|
|
2154
2210
|
handleOAuth2: "authControllerHandleOAuth2"
|
|
2155
2211
|
};
|
|
2156
2212
|
var inventoryMapping = {
|
|
@@ -2393,6 +2449,10 @@ var adminMapping = {
|
|
|
2393
2449
|
getOrganizationDetails: "adminControllerGetOrganizationDetails",
|
|
2394
2450
|
updateOrganization: "adminControllerUpdateOrganization",
|
|
2395
2451
|
deleteOrganization: "adminControllerDeleteOrganization",
|
|
2452
|
+
suspendOrganization: "adminControllerSuspendOrganization",
|
|
2453
|
+
reactivateOrganization: "adminControllerReactivateOrganization",
|
|
2454
|
+
getEffectiveQuota: "adminControllerGetEffectiveQuota",
|
|
2455
|
+
setQuotaOverrides: "adminControllerSetQuotaOverrides",
|
|
2396
2456
|
listMembers: "adminControllerListMembers",
|
|
2397
2457
|
listUsers: "adminControllerListUsers",
|
|
2398
2458
|
banUser: "adminControllerBanUser",
|
|
@@ -2417,10 +2477,6 @@ var adminMapping = {
|
|
|
2417
2477
|
createWebhook: "webhooksCreate",
|
|
2418
2478
|
listWebhooks: "webhooksList",
|
|
2419
2479
|
deleteWebhook: "webhooksDelete",
|
|
2420
|
-
handleWindmillCallback: "windmillCallbackControllerHandleCallback",
|
|
2421
|
-
handleWindmillApprovalCallback: "windmillCallbackControllerHandleApprovalCallback",
|
|
2422
|
-
handleWindmillBakeryDisposalCallback: "windmillCallbackControllerHandleBakeryDisposalCallback",
|
|
2423
|
-
handleWindmillOutcomeCallback: "windmillCallbackControllerHandleOutcomeCallback",
|
|
2424
2480
|
getCustomers: "customersGetCustomers",
|
|
2425
2481
|
registerCustomer: "customersRegister",
|
|
2426
2482
|
updateCustomer: "customersUpdate",
|