@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
|
@@ -4,6 +4,259 @@ import axios3 from "axios";
|
|
|
4
4
|
// src/generated/scryme.ts
|
|
5
5
|
import axios from "axios";
|
|
6
6
|
var getScrymeV3API = (axiosInstance = axios) => {
|
|
7
|
+
const servicesCreateCategory = (orgSlug, createServiceCategoryDto, options) => {
|
|
8
|
+
return axiosInstance.post(
|
|
9
|
+
`/v3/${orgSlug}/services/categories`,
|
|
10
|
+
createServiceCategoryDto,
|
|
11
|
+
options
|
|
12
|
+
);
|
|
13
|
+
};
|
|
14
|
+
const servicesGetCategories = (orgSlug, options) => {
|
|
15
|
+
return axiosInstance.get(
|
|
16
|
+
`/v3/${orgSlug}/services/categories`,
|
|
17
|
+
options
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
const servicesUpdateCategory = (orgSlug, id, updateServiceCategoryDto, options) => {
|
|
21
|
+
return axiosInstance.patch(
|
|
22
|
+
`/v3/${orgSlug}/services/categories/${id}`,
|
|
23
|
+
updateServiceCategoryDto,
|
|
24
|
+
options
|
|
25
|
+
);
|
|
26
|
+
};
|
|
27
|
+
const servicesDeleteCategory = (orgSlug, id, options) => {
|
|
28
|
+
return axiosInstance.post(
|
|
29
|
+
`/v3/${orgSlug}/services/categories/${id}/delete`,
|
|
30
|
+
void 0,
|
|
31
|
+
options
|
|
32
|
+
);
|
|
33
|
+
};
|
|
34
|
+
const servicesCreateService = (orgSlug, createServiceDto, options) => {
|
|
35
|
+
return axiosInstance.post(
|
|
36
|
+
`/v3/${orgSlug}/services`,
|
|
37
|
+
createServiceDto,
|
|
38
|
+
options
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
const servicesGetServices = (orgSlug, options) => {
|
|
42
|
+
return axiosInstance.get(
|
|
43
|
+
`/v3/${orgSlug}/services`,
|
|
44
|
+
options
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
const servicesGetCurrentMemberShifts = (orgSlug, options) => {
|
|
48
|
+
return axiosInstance.get(
|
|
49
|
+
`/v3/${orgSlug}/services/shifts/me`,
|
|
50
|
+
options
|
|
51
|
+
);
|
|
52
|
+
};
|
|
53
|
+
const servicesGetShifts = (orgSlug, params, options) => {
|
|
54
|
+
return axiosInstance.get(
|
|
55
|
+
`/v3/${orgSlug}/services/shifts`,
|
|
56
|
+
{
|
|
57
|
+
...options,
|
|
58
|
+
params: { ...params, ...options?.params }
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
const servicesGetService = (orgSlug, id, options) => {
|
|
63
|
+
return axiosInstance.get(
|
|
64
|
+
`/v3/${orgSlug}/services/${id}`,
|
|
65
|
+
options
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
const servicesUpdateService = (orgSlug, id, updateServiceDto, options) => {
|
|
69
|
+
return axiosInstance.patch(
|
|
70
|
+
`/v3/${orgSlug}/services/${id}`,
|
|
71
|
+
updateServiceDto,
|
|
72
|
+
options
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
const servicesGetAvailability = (orgSlug, id, params, options) => {
|
|
76
|
+
return axiosInstance.get(
|
|
77
|
+
`/v3/${orgSlug}/services/${id}/availability`,
|
|
78
|
+
{
|
|
79
|
+
...options,
|
|
80
|
+
params: { ...params, ...options?.params }
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
const servicesDeleteService = (orgSlug, id, options) => {
|
|
85
|
+
return axiosInstance.post(
|
|
86
|
+
`/v3/${orgSlug}/services/${id}/delete`,
|
|
87
|
+
void 0,
|
|
88
|
+
options
|
|
89
|
+
);
|
|
90
|
+
};
|
|
91
|
+
const servicesCreateResource = (orgSlug, createServiceResourceDto, options) => {
|
|
92
|
+
return axiosInstance.post(
|
|
93
|
+
`/v3/${orgSlug}/services/resources`,
|
|
94
|
+
createServiceResourceDto,
|
|
95
|
+
options
|
|
96
|
+
);
|
|
97
|
+
};
|
|
98
|
+
const servicesGetResources = (orgSlug, options) => {
|
|
99
|
+
return axiosInstance.get(
|
|
100
|
+
`/v3/${orgSlug}/services/resources`,
|
|
101
|
+
options
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
const servicesUpdateResource = (orgSlug, id, updateServiceResourceDto, options) => {
|
|
105
|
+
return axiosInstance.patch(
|
|
106
|
+
`/v3/${orgSlug}/services/resources/${id}`,
|
|
107
|
+
updateServiceResourceDto,
|
|
108
|
+
options
|
|
109
|
+
);
|
|
110
|
+
};
|
|
111
|
+
const servicesDeleteResource = (orgSlug, id, options) => {
|
|
112
|
+
return axiosInstance.post(
|
|
113
|
+
`/v3/${orgSlug}/services/resources/${id}/delete`,
|
|
114
|
+
void 0,
|
|
115
|
+
options
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
const servicesCreateBooking = (orgSlug, createBookingDto, options) => {
|
|
119
|
+
return axiosInstance.post(
|
|
120
|
+
`/v3/${orgSlug}/services/bookings`,
|
|
121
|
+
createBookingDto,
|
|
122
|
+
options
|
|
123
|
+
);
|
|
124
|
+
};
|
|
125
|
+
const servicesGetBookings = (orgSlug, options) => {
|
|
126
|
+
return axiosInstance.get(
|
|
127
|
+
`/v3/${orgSlug}/services/bookings`,
|
|
128
|
+
options
|
|
129
|
+
);
|
|
130
|
+
};
|
|
131
|
+
const servicesGetBooking = (orgSlug, id, options) => {
|
|
132
|
+
return axiosInstance.get(
|
|
133
|
+
`/v3/${orgSlug}/services/bookings/${id}`,
|
|
134
|
+
options
|
|
135
|
+
);
|
|
136
|
+
};
|
|
137
|
+
const servicesUpdateBookingStatus = (orgSlug, id, servicesUpdateBookingStatusBody, options) => {
|
|
138
|
+
return axiosInstance.patch(
|
|
139
|
+
`/v3/${orgSlug}/services/bookings/${id}/status`,
|
|
140
|
+
servicesUpdateBookingStatusBody,
|
|
141
|
+
options
|
|
142
|
+
);
|
|
143
|
+
};
|
|
144
|
+
const servicesCompleteBooking = (orgSlug, id, completeBookingDto, options) => {
|
|
145
|
+
return axiosInstance.patch(
|
|
146
|
+
`/v3/${orgSlug}/services/bookings/${id}/complete`,
|
|
147
|
+
completeBookingDto,
|
|
148
|
+
options
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
const servicesCancelBookingSeries = (orgSlug, recurrenceId, options) => {
|
|
152
|
+
return axiosInstance.post(
|
|
153
|
+
`/v3/${orgSlug}/services/bookings/recurrence/${recurrenceId}/cancel`,
|
|
154
|
+
void 0,
|
|
155
|
+
options
|
|
156
|
+
);
|
|
157
|
+
};
|
|
158
|
+
const servicesCreateShift = (orgSlug, memberId, servicesCreateShiftBody, options) => {
|
|
159
|
+
return axiosInstance.post(
|
|
160
|
+
`/v3/${orgSlug}/services/staff/${memberId}/shifts`,
|
|
161
|
+
servicesCreateShiftBody,
|
|
162
|
+
options
|
|
163
|
+
);
|
|
164
|
+
};
|
|
165
|
+
const servicesGetStaffShifts = (orgSlug, memberId, options) => {
|
|
166
|
+
return axiosInstance.get(
|
|
167
|
+
`/v3/${orgSlug}/services/staff/${memberId}/shifts`,
|
|
168
|
+
options
|
|
169
|
+
);
|
|
170
|
+
};
|
|
171
|
+
const servicesAddBreak = (orgSlug, shiftId, servicesAddBreakBody, options) => {
|
|
172
|
+
return axiosInstance.post(
|
|
173
|
+
`/v3/${orgSlug}/services/shifts/${shiftId}/breaks`,
|
|
174
|
+
servicesAddBreakBody,
|
|
175
|
+
options
|
|
176
|
+
);
|
|
177
|
+
};
|
|
178
|
+
const servicesRegisterCustomerApp = (orgSlug, servicesRegisterCustomerAppBody, options) => {
|
|
179
|
+
return axiosInstance.post(
|
|
180
|
+
`/v3/${orgSlug}/services/register-customer-app`,
|
|
181
|
+
servicesRegisterCustomerAppBody,
|
|
182
|
+
options
|
|
183
|
+
);
|
|
184
|
+
};
|
|
185
|
+
const servicesGetUtilization = (orgSlug, params, options) => {
|
|
186
|
+
return axiosInstance.get(
|
|
187
|
+
`/v3/${orgSlug}/services/analytics/utilization`,
|
|
188
|
+
{
|
|
189
|
+
...options,
|
|
190
|
+
params: { ...params, ...options?.params }
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
};
|
|
194
|
+
const servicesGetPerformance = (orgSlug, params, options) => {
|
|
195
|
+
return axiosInstance.get(
|
|
196
|
+
`/v3/${orgSlug}/services/analytics/performance`,
|
|
197
|
+
{
|
|
198
|
+
...options,
|
|
199
|
+
params: { ...params, ...options?.params }
|
|
200
|
+
}
|
|
201
|
+
);
|
|
202
|
+
};
|
|
203
|
+
const servicesGetFunnel = (orgSlug, params, options) => {
|
|
204
|
+
return axiosInstance.get(
|
|
205
|
+
`/v3/${orgSlug}/services/analytics/funnel`,
|
|
206
|
+
{
|
|
207
|
+
...options,
|
|
208
|
+
params: { ...params, ...options?.params }
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
};
|
|
212
|
+
const publicServicesListServices = (orgSlug, options) => {
|
|
213
|
+
return axiosInstance.get(
|
|
214
|
+
`/v3/public/${orgSlug}/services`,
|
|
215
|
+
options
|
|
216
|
+
);
|
|
217
|
+
};
|
|
218
|
+
const publicServicesGetCategories = (orgSlug, options) => {
|
|
219
|
+
return axiosInstance.get(
|
|
220
|
+
`/v3/public/${orgSlug}/services/categories`,
|
|
221
|
+
options
|
|
222
|
+
);
|
|
223
|
+
};
|
|
224
|
+
const publicServicesGetService = (orgSlug, id, options) => {
|
|
225
|
+
return axiosInstance.get(
|
|
226
|
+
`/v3/public/${orgSlug}/services/${id}`,
|
|
227
|
+
options
|
|
228
|
+
);
|
|
229
|
+
};
|
|
230
|
+
const publicServicesGetAvailability = (orgSlug, id, params, options) => {
|
|
231
|
+
return axiosInstance.get(
|
|
232
|
+
`/v3/public/${orgSlug}/services/${id}/availability`,
|
|
233
|
+
{
|
|
234
|
+
...options,
|
|
235
|
+
params: { ...params, ...options?.params }
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
};
|
|
239
|
+
const publicServicesRequestOtp = (orgSlug, requestOtpDto, options) => {
|
|
240
|
+
return axiosInstance.post(
|
|
241
|
+
`/v3/public/${orgSlug}/services/otp/request`,
|
|
242
|
+
requestOtpDto,
|
|
243
|
+
options
|
|
244
|
+
);
|
|
245
|
+
};
|
|
246
|
+
const publicServicesVerifyOtp = (orgSlug, verifyOtpDto, options) => {
|
|
247
|
+
return axiosInstance.post(
|
|
248
|
+
`/v3/public/${orgSlug}/services/otp/verify`,
|
|
249
|
+
verifyOtpDto,
|
|
250
|
+
options
|
|
251
|
+
);
|
|
252
|
+
};
|
|
253
|
+
const publicServicesCreatePublicBooking = (orgSlug, publicBookingDto, options) => {
|
|
254
|
+
return axiosInstance.post(
|
|
255
|
+
`/v3/public/${orgSlug}/services/bookings`,
|
|
256
|
+
publicBookingDto,
|
|
257
|
+
options
|
|
258
|
+
);
|
|
259
|
+
};
|
|
7
260
|
const inventoryVerifyIntegrity = (orgSlug, options) => {
|
|
8
261
|
return axiosInstance.get(
|
|
9
262
|
`/v3/${orgSlug}/inventory/integrity/verify`,
|
|
@@ -370,571 +623,349 @@ var getScrymeV3API = (axiosInstance = axios) => {
|
|
|
370
623
|
options
|
|
371
624
|
);
|
|
372
625
|
};
|
|
373
|
-
const
|
|
374
|
-
return axiosInstance.get(
|
|
375
|
-
`/v3/auth/oauth2/${path}`,
|
|
376
|
-
options
|
|
377
|
-
);
|
|
378
|
-
};
|
|
379
|
-
const adminControllerGetStats = (options) => {
|
|
380
|
-
return axiosInstance.get(
|
|
381
|
-
`/v3/admin/stats`,
|
|
382
|
-
options
|
|
383
|
-
);
|
|
384
|
-
};
|
|
385
|
-
const adminControllerListOrganizations = (options) => {
|
|
386
|
-
return axiosInstance.get(
|
|
387
|
-
`/v3/admin/organizations`,
|
|
388
|
-
options
|
|
389
|
-
);
|
|
390
|
-
};
|
|
391
|
-
const adminControllerCreateOrganization = (createOrganizationDto, options) => {
|
|
392
|
-
return axiosInstance.post(
|
|
393
|
-
`/v3/admin/organizations`,
|
|
394
|
-
createOrganizationDto,
|
|
395
|
-
options
|
|
396
|
-
);
|
|
397
|
-
};
|
|
398
|
-
const adminControllerGetOrganizationDetails = (id, options) => {
|
|
399
|
-
return axiosInstance.get(
|
|
400
|
-
`/v3/admin/organizations/${id}`,
|
|
401
|
-
options
|
|
402
|
-
);
|
|
403
|
-
};
|
|
404
|
-
const adminControllerUpdateOrganization = (id, updateOrganizationDto, options) => {
|
|
405
|
-
return axiosInstance.patch(
|
|
406
|
-
`/v3/admin/organizations/${id}`,
|
|
407
|
-
updateOrganizationDto,
|
|
408
|
-
options
|
|
409
|
-
);
|
|
410
|
-
};
|
|
411
|
-
const adminControllerDeleteOrganization = (id, options) => {
|
|
412
|
-
return axiosInstance.delete(
|
|
413
|
-
`/v3/admin/organizations/${id}`,
|
|
414
|
-
options
|
|
415
|
-
);
|
|
416
|
-
};
|
|
417
|
-
const adminControllerListMembers = (params, options) => {
|
|
418
|
-
return axiosInstance.get(
|
|
419
|
-
`/v3/admin/members`,
|
|
420
|
-
{
|
|
421
|
-
...options,
|
|
422
|
-
params: { ...params, ...options?.params }
|
|
423
|
-
}
|
|
424
|
-
);
|
|
425
|
-
};
|
|
426
|
-
const adminControllerListUsers = (options) => {
|
|
427
|
-
return axiosInstance.get(
|
|
428
|
-
`/v3/admin/users`,
|
|
429
|
-
options
|
|
430
|
-
);
|
|
431
|
-
};
|
|
432
|
-
const adminControllerBanUser = (id, banUserDto, options) => {
|
|
626
|
+
const authCreateOAuthClient = (createOAuthClientDto, options) => {
|
|
433
627
|
return axiosInstance.post(
|
|
434
|
-
`/v3/
|
|
435
|
-
|
|
436
|
-
options
|
|
437
|
-
);
|
|
438
|
-
};
|
|
439
|
-
const adminControllerUnbanUser = (id, options) => {
|
|
440
|
-
return axiosInstance.post(
|
|
441
|
-
`/v3/admin/users/${id}/unban`,
|
|
442
|
-
void 0,
|
|
443
|
-
options
|
|
444
|
-
);
|
|
445
|
-
};
|
|
446
|
-
const adminControllerListConnectedApps = (options) => {
|
|
447
|
-
return axiosInstance.get(
|
|
448
|
-
`/v3/admin/connected-apps`,
|
|
628
|
+
`/v3/auth/oauth/clients`,
|
|
629
|
+
createOAuthClientDto,
|
|
449
630
|
options
|
|
450
631
|
);
|
|
451
632
|
};
|
|
452
|
-
const
|
|
633
|
+
const authListOAuthClients = (options) => {
|
|
453
634
|
return axiosInstance.get(
|
|
454
|
-
`/v3/
|
|
635
|
+
`/v3/auth/oauth/clients`,
|
|
455
636
|
options
|
|
456
637
|
);
|
|
457
638
|
};
|
|
458
|
-
const
|
|
639
|
+
const authGetOAuthClient = (id, options) => {
|
|
459
640
|
return axiosInstance.get(
|
|
460
|
-
`/v3/
|
|
641
|
+
`/v3/auth/oauth/clients/${id}`,
|
|
461
642
|
options
|
|
462
643
|
);
|
|
463
644
|
};
|
|
464
|
-
const
|
|
465
|
-
return axiosInstance.
|
|
466
|
-
`/v3/
|
|
467
|
-
|
|
645
|
+
const authUpdateOAuthClient = (id, updateOAuthClientDto, options) => {
|
|
646
|
+
return axiosInstance.put(
|
|
647
|
+
`/v3/auth/oauth/clients/${id}`,
|
|
648
|
+
updateOAuthClientDto,
|
|
468
649
|
options
|
|
469
650
|
);
|
|
470
651
|
};
|
|
471
|
-
const
|
|
652
|
+
const authDeleteOAuthClient = (id, options) => {
|
|
472
653
|
return axiosInstance.delete(
|
|
473
|
-
`/v3/
|
|
654
|
+
`/v3/auth/oauth/clients/${id}`,
|
|
474
655
|
options
|
|
475
656
|
);
|
|
476
657
|
};
|
|
477
|
-
const
|
|
658
|
+
const authControllerHandleOAuth2 = (path, options) => {
|
|
478
659
|
return axiosInstance.get(
|
|
479
|
-
`/v3/
|
|
480
|
-
options
|
|
481
|
-
);
|
|
482
|
-
};
|
|
483
|
-
const adminControllerDefineTier = (defineTierDto, options) => {
|
|
484
|
-
return axiosInstance.post(
|
|
485
|
-
`/v3/admin/tiers`,
|
|
486
|
-
defineTierDto,
|
|
487
|
-
options
|
|
488
|
-
);
|
|
489
|
-
};
|
|
490
|
-
const adminControllerDeleteTier = (slug, options) => {
|
|
491
|
-
return axiosInstance.delete(
|
|
492
|
-
`/v3/admin/tiers/${slug}`,
|
|
660
|
+
`/v3/auth/oauth2/${path}`,
|
|
493
661
|
options
|
|
494
662
|
);
|
|
495
663
|
};
|
|
496
|
-
const
|
|
664
|
+
const adminControllerGetStats = (options) => {
|
|
497
665
|
return axiosInstance.get(
|
|
498
|
-
`/v3/admin/
|
|
499
|
-
options
|
|
500
|
-
);
|
|
501
|
-
};
|
|
502
|
-
const adminControllerUpdateOrganizationSubscription = (id, updateSubscriptionDto, options) => {
|
|
503
|
-
return axiosInstance.put(
|
|
504
|
-
`/v3/admin/organizations/${id}/subscription`,
|
|
505
|
-
updateSubscriptionDto,
|
|
666
|
+
`/v3/admin/stats`,
|
|
506
667
|
options
|
|
507
668
|
);
|
|
508
669
|
};
|
|
509
|
-
const
|
|
670
|
+
const adminControllerListOrganizations = (options) => {
|
|
510
671
|
return axiosInstance.get(
|
|
511
|
-
`/v3/admin/
|
|
672
|
+
`/v3/admin/organizations`,
|
|
512
673
|
options
|
|
513
674
|
);
|
|
514
675
|
};
|
|
515
|
-
const
|
|
676
|
+
const adminControllerCreateOrganization = (createOrganizationDto, options) => {
|
|
516
677
|
return axiosInstance.post(
|
|
517
|
-
`/v3/admin/
|
|
518
|
-
|
|
678
|
+
`/v3/admin/organizations`,
|
|
679
|
+
createOrganizationDto,
|
|
519
680
|
options
|
|
520
681
|
);
|
|
521
682
|
};
|
|
522
|
-
const
|
|
683
|
+
const adminControllerGetOrganizationDetails = (id, options) => {
|
|
523
684
|
return axiosInstance.get(
|
|
524
|
-
`/v3/admin/
|
|
525
|
-
options
|
|
526
|
-
);
|
|
527
|
-
};
|
|
528
|
-
const adminControllerCreateIntegrationDefinition = (createIntegrationDefinitionDto, options) => {
|
|
529
|
-
return axiosInstance.post(
|
|
530
|
-
`/v3/admin/integrations/definitions`,
|
|
531
|
-
createIntegrationDefinitionDto,
|
|
685
|
+
`/v3/admin/organizations/${id}`,
|
|
532
686
|
options
|
|
533
687
|
);
|
|
534
688
|
};
|
|
535
|
-
const
|
|
689
|
+
const adminControllerUpdateOrganization = (id, updateOrganizationDto, options) => {
|
|
536
690
|
return axiosInstance.patch(
|
|
537
|
-
`/v3/admin/
|
|
538
|
-
|
|
539
|
-
options
|
|
540
|
-
);
|
|
541
|
-
};
|
|
542
|
-
const adminControllerDeleteIntegrationDefinition = (id, options) => {
|
|
543
|
-
return axiosInstance.delete(
|
|
544
|
-
`/v3/admin/integrations/definitions/${id}`,
|
|
545
|
-
options
|
|
546
|
-
);
|
|
547
|
-
};
|
|
548
|
-
const adminControllerListActiveOrganizationIntegrations = (options) => {
|
|
549
|
-
return axiosInstance.get(
|
|
550
|
-
`/v3/admin/integrations/active`,
|
|
551
|
-
options
|
|
552
|
-
);
|
|
553
|
-
};
|
|
554
|
-
const webhooksCreate = (orgSlug, createWebhookDto, options) => {
|
|
555
|
-
return axiosInstance.post(
|
|
556
|
-
`/v3/${orgSlug}/webhooks`,
|
|
557
|
-
createWebhookDto,
|
|
558
|
-
options
|
|
559
|
-
);
|
|
560
|
-
};
|
|
561
|
-
const webhooksList = (orgSlug, options) => {
|
|
562
|
-
return axiosInstance.get(
|
|
563
|
-
`/v3/${orgSlug}/webhooks`,
|
|
691
|
+
`/v3/admin/organizations/${id}`,
|
|
692
|
+
updateOrganizationDto,
|
|
564
693
|
options
|
|
565
694
|
);
|
|
566
695
|
};
|
|
567
|
-
const
|
|
696
|
+
const adminControllerDeleteOrganization = (id, options) => {
|
|
568
697
|
return axiosInstance.delete(
|
|
569
|
-
`/v3
|
|
570
|
-
options
|
|
571
|
-
);
|
|
572
|
-
};
|
|
573
|
-
const windmillCallbackControllerHandleCallback = (options) => {
|
|
574
|
-
return axiosInstance.post(
|
|
575
|
-
`/v3/webhooks/windmill`,
|
|
576
|
-
void 0,
|
|
577
|
-
options
|
|
578
|
-
);
|
|
579
|
-
};
|
|
580
|
-
const windmillCallbackControllerHandleApprovalCallback = (options) => {
|
|
581
|
-
return axiosInstance.post(
|
|
582
|
-
`/v3/webhooks/windmill/approval`,
|
|
583
|
-
void 0,
|
|
698
|
+
`/v3/admin/organizations/${id}`,
|
|
584
699
|
options
|
|
585
700
|
);
|
|
586
701
|
};
|
|
587
|
-
const
|
|
702
|
+
const adminControllerSuspendOrganization = (id, suspendOrganizationDto, options) => {
|
|
588
703
|
return axiosInstance.post(
|
|
589
|
-
`/v3/
|
|
590
|
-
|
|
704
|
+
`/v3/admin/organizations/${id}/suspend`,
|
|
705
|
+
suspendOrganizationDto,
|
|
591
706
|
options
|
|
592
707
|
);
|
|
593
708
|
};
|
|
594
|
-
const
|
|
709
|
+
const adminControllerReactivateOrganization = (id, options) => {
|
|
595
710
|
return axiosInstance.post(
|
|
596
|
-
`/v3/
|
|
711
|
+
`/v3/admin/organizations/${id}/reactivate`,
|
|
597
712
|
void 0,
|
|
598
713
|
options
|
|
599
714
|
);
|
|
600
715
|
};
|
|
601
|
-
const
|
|
602
|
-
return axiosInstance.get(
|
|
603
|
-
`/v3/${orgSlug}/catalog/products`,
|
|
604
|
-
{
|
|
605
|
-
...options,
|
|
606
|
-
params: { ...params, ...options?.params }
|
|
607
|
-
}
|
|
608
|
-
);
|
|
609
|
-
};
|
|
610
|
-
const catalogCreateProduct = (orgSlug, createProductDto, options) => {
|
|
611
|
-
return axiosInstance.post(
|
|
612
|
-
`/v3/${orgSlug}/catalog/products`,
|
|
613
|
-
createProductDto,
|
|
614
|
-
options
|
|
615
|
-
);
|
|
616
|
-
};
|
|
617
|
-
const catalogGetProduct = (orgSlug, idOrSlug, options) => {
|
|
716
|
+
const adminControllerGetEffectiveQuota = (id, options) => {
|
|
618
717
|
return axiosInstance.get(
|
|
619
|
-
`/v3
|
|
718
|
+
`/v3/admin/organizations/${id}/quota`,
|
|
620
719
|
options
|
|
621
720
|
);
|
|
622
721
|
};
|
|
623
|
-
const
|
|
624
|
-
return axiosInstance.
|
|
625
|
-
`/v3/${
|
|
626
|
-
|
|
627
|
-
...options,
|
|
628
|
-
params: { ...params, ...options?.params }
|
|
629
|
-
}
|
|
630
|
-
);
|
|
631
|
-
};
|
|
632
|
-
const catalogUpdateProduct = (orgSlug, id, updateProductDto, options) => {
|
|
633
|
-
return axiosInstance.patch(
|
|
634
|
-
`/v3/${orgSlug}/catalog/products/${id}`,
|
|
635
|
-
updateProductDto,
|
|
636
|
-
options
|
|
637
|
-
);
|
|
638
|
-
};
|
|
639
|
-
const catalogUpdateSupplierVariant = (orgSlug, supplierId, variantId, updateSupplierProductDto, options) => {
|
|
640
|
-
return axiosInstance.patch(
|
|
641
|
-
`/v3/${orgSlug}/catalog/suppliers/${supplierId}/variants/${variantId}`,
|
|
642
|
-
updateSupplierProductDto,
|
|
722
|
+
const adminControllerSetQuotaOverrides = (id, setQuotaOverridesDto, options) => {
|
|
723
|
+
return axiosInstance.put(
|
|
724
|
+
`/v3/admin/organizations/${id}/quota-overrides`,
|
|
725
|
+
setQuotaOverridesDto,
|
|
643
726
|
options
|
|
644
727
|
);
|
|
645
728
|
};
|
|
646
|
-
const
|
|
729
|
+
const adminControllerListMembers = (params, options) => {
|
|
647
730
|
return axiosInstance.get(
|
|
648
|
-
`/v3
|
|
649
|
-
{
|
|
650
|
-
...options,
|
|
651
|
-
params: { ...params, ...options?.params }
|
|
652
|
-
}
|
|
653
|
-
);
|
|
654
|
-
};
|
|
655
|
-
const catalogReviewPriceChangeRequest = (orgSlug, id, reviewPriceChangeDto, options) => {
|
|
656
|
-
return axiosInstance.post(
|
|
657
|
-
`/v3/${orgSlug}/catalog/price-change-requests/${id}/review`,
|
|
658
|
-
reviewPriceChangeDto,
|
|
659
|
-
options
|
|
660
|
-
);
|
|
661
|
-
};
|
|
662
|
-
const catalogCreateReview = (orgSlug, productId, createProductReviewDto, options) => {
|
|
663
|
-
return axiosInstance.post(
|
|
664
|
-
`/v3/${orgSlug}/catalog/products/${productId}/reviews`,
|
|
665
|
-
createProductReviewDto,
|
|
666
|
-
options
|
|
667
|
-
);
|
|
668
|
-
};
|
|
669
|
-
const catalogUpdateReview = (orgSlug, reviewId, updateProductReviewDto, options) => {
|
|
670
|
-
return axiosInstance.patch(
|
|
671
|
-
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
672
|
-
updateProductReviewDto,
|
|
673
|
-
options
|
|
674
|
-
);
|
|
675
|
-
};
|
|
676
|
-
const catalogDeleteReview = (orgSlug, reviewId, params, options) => {
|
|
677
|
-
return axiosInstance.delete(
|
|
678
|
-
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
731
|
+
`/v3/admin/members`,
|
|
679
732
|
{
|
|
680
733
|
...options,
|
|
681
734
|
params: { ...params, ...options?.params }
|
|
682
|
-
}
|
|
683
|
-
);
|
|
684
|
-
};
|
|
685
|
-
const
|
|
686
|
-
return axiosInstance.
|
|
687
|
-
`/v3
|
|
688
|
-
createServiceCategoryDto,
|
|
689
|
-
options
|
|
690
|
-
);
|
|
691
|
-
};
|
|
692
|
-
const servicesGetCategories = (orgSlug, options) => {
|
|
693
|
-
return axiosInstance.get(
|
|
694
|
-
`/v3/${orgSlug}/services/categories`,
|
|
695
|
-
options
|
|
696
|
-
);
|
|
697
|
-
};
|
|
698
|
-
const servicesUpdateCategory = (orgSlug, id, updateServiceCategoryDto, options) => {
|
|
699
|
-
return axiosInstance.patch(
|
|
700
|
-
`/v3/${orgSlug}/services/categories/${id}`,
|
|
701
|
-
updateServiceCategoryDto,
|
|
735
|
+
}
|
|
736
|
+
);
|
|
737
|
+
};
|
|
738
|
+
const adminControllerListUsers = (options) => {
|
|
739
|
+
return axiosInstance.get(
|
|
740
|
+
`/v3/admin/users`,
|
|
702
741
|
options
|
|
703
742
|
);
|
|
704
743
|
};
|
|
705
|
-
const
|
|
744
|
+
const adminControllerBanUser = (id, banUserDto, options) => {
|
|
706
745
|
return axiosInstance.post(
|
|
707
|
-
`/v3
|
|
708
|
-
|
|
746
|
+
`/v3/admin/users/${id}/ban`,
|
|
747
|
+
banUserDto,
|
|
709
748
|
options
|
|
710
749
|
);
|
|
711
750
|
};
|
|
712
|
-
const
|
|
751
|
+
const adminControllerUnbanUser = (id, options) => {
|
|
713
752
|
return axiosInstance.post(
|
|
714
|
-
`/v3/${
|
|
715
|
-
|
|
753
|
+
`/v3/admin/users/${id}/unban`,
|
|
754
|
+
void 0,
|
|
716
755
|
options
|
|
717
756
|
);
|
|
718
757
|
};
|
|
719
|
-
const
|
|
758
|
+
const adminControllerListConnectedApps = (options) => {
|
|
720
759
|
return axiosInstance.get(
|
|
721
|
-
`/v3
|
|
760
|
+
`/v3/admin/connected-apps`,
|
|
722
761
|
options
|
|
723
762
|
);
|
|
724
763
|
};
|
|
725
|
-
const
|
|
764
|
+
const adminControllerListSystemLogs = (options) => {
|
|
726
765
|
return axiosInstance.get(
|
|
727
|
-
`/v3
|
|
766
|
+
`/v3/admin/system-logs`,
|
|
728
767
|
options
|
|
729
768
|
);
|
|
730
769
|
};
|
|
731
|
-
const
|
|
770
|
+
const adminControllerListGlobalSettings = (options) => {
|
|
732
771
|
return axiosInstance.get(
|
|
733
|
-
`/v3
|
|
734
|
-
|
|
735
|
-
...options,
|
|
736
|
-
params: { ...params, ...options?.params }
|
|
737
|
-
}
|
|
772
|
+
`/v3/admin/settings`,
|
|
773
|
+
options
|
|
738
774
|
);
|
|
739
775
|
};
|
|
740
|
-
const
|
|
741
|
-
return axiosInstance.
|
|
742
|
-
`/v3
|
|
776
|
+
const adminControllerSetGlobalSetting = (setGlobalSettingDto, options) => {
|
|
777
|
+
return axiosInstance.post(
|
|
778
|
+
`/v3/admin/settings`,
|
|
779
|
+
setGlobalSettingDto,
|
|
743
780
|
options
|
|
744
781
|
);
|
|
745
782
|
};
|
|
746
|
-
const
|
|
747
|
-
return axiosInstance.
|
|
748
|
-
`/v3
|
|
749
|
-
updateServiceDto,
|
|
783
|
+
const adminControllerDeleteGlobalSetting = (key, options) => {
|
|
784
|
+
return axiosInstance.delete(
|
|
785
|
+
`/v3/admin/settings/${key}`,
|
|
750
786
|
options
|
|
751
787
|
);
|
|
752
788
|
};
|
|
753
|
-
const
|
|
789
|
+
const adminControllerListTiers = (options) => {
|
|
754
790
|
return axiosInstance.get(
|
|
755
|
-
`/v3
|
|
756
|
-
|
|
757
|
-
...options,
|
|
758
|
-
params: { ...params, ...options?.params }
|
|
759
|
-
}
|
|
791
|
+
`/v3/admin/tiers`,
|
|
792
|
+
options
|
|
760
793
|
);
|
|
761
794
|
};
|
|
762
|
-
const
|
|
795
|
+
const adminControllerDefineTier = (defineTierDto, options) => {
|
|
763
796
|
return axiosInstance.post(
|
|
764
|
-
`/v3
|
|
765
|
-
|
|
797
|
+
`/v3/admin/tiers`,
|
|
798
|
+
defineTierDto,
|
|
766
799
|
options
|
|
767
800
|
);
|
|
768
801
|
};
|
|
769
|
-
const
|
|
770
|
-
return axiosInstance.
|
|
771
|
-
`/v3/${
|
|
772
|
-
createServiceResourceDto,
|
|
802
|
+
const adminControllerDeleteTier = (slug, options) => {
|
|
803
|
+
return axiosInstance.delete(
|
|
804
|
+
`/v3/admin/tiers/${slug}`,
|
|
773
805
|
options
|
|
774
806
|
);
|
|
775
807
|
};
|
|
776
|
-
const
|
|
808
|
+
const adminControllerGetOrganizationSubscription = (id, options) => {
|
|
777
809
|
return axiosInstance.get(
|
|
778
|
-
`/v3/${
|
|
810
|
+
`/v3/admin/organizations/${id}/subscription`,
|
|
779
811
|
options
|
|
780
812
|
);
|
|
781
813
|
};
|
|
782
|
-
const
|
|
783
|
-
return axiosInstance.
|
|
784
|
-
`/v3
|
|
785
|
-
|
|
814
|
+
const adminControllerUpdateOrganizationSubscription = (id, updateSubscriptionDto, options) => {
|
|
815
|
+
return axiosInstance.put(
|
|
816
|
+
`/v3/admin/organizations/${id}/subscription`,
|
|
817
|
+
updateSubscriptionDto,
|
|
786
818
|
options
|
|
787
819
|
);
|
|
788
820
|
};
|
|
789
|
-
const
|
|
790
|
-
return axiosInstance.
|
|
791
|
-
`/v3
|
|
792
|
-
void 0,
|
|
821
|
+
const adminControllerListSystemPayments = (options) => {
|
|
822
|
+
return axiosInstance.get(
|
|
823
|
+
`/v3/admin/payments`,
|
|
793
824
|
options
|
|
794
825
|
);
|
|
795
826
|
};
|
|
796
|
-
const
|
|
827
|
+
const adminControllerRecordCustomPayment = (recordCustomPaymentDto, options) => {
|
|
797
828
|
return axiosInstance.post(
|
|
798
|
-
`/v3
|
|
799
|
-
|
|
829
|
+
`/v3/admin/payments/record`,
|
|
830
|
+
recordCustomPaymentDto,
|
|
800
831
|
options
|
|
801
832
|
);
|
|
802
833
|
};
|
|
803
|
-
const
|
|
834
|
+
const adminControllerListIntegrationDefinitions = (options) => {
|
|
804
835
|
return axiosInstance.get(
|
|
805
|
-
`/v3
|
|
836
|
+
`/v3/admin/integrations/definitions`,
|
|
806
837
|
options
|
|
807
838
|
);
|
|
808
839
|
};
|
|
809
|
-
const
|
|
810
|
-
return axiosInstance.
|
|
811
|
-
`/v3
|
|
840
|
+
const adminControllerCreateIntegrationDefinition = (createIntegrationDefinitionDto, options) => {
|
|
841
|
+
return axiosInstance.post(
|
|
842
|
+
`/v3/admin/integrations/definitions`,
|
|
843
|
+
createIntegrationDefinitionDto,
|
|
812
844
|
options
|
|
813
845
|
);
|
|
814
846
|
};
|
|
815
|
-
const
|
|
847
|
+
const adminControllerUpdateIntegrationDefinition = (id, updateIntegrationDefinitionDto, options) => {
|
|
816
848
|
return axiosInstance.patch(
|
|
817
|
-
`/v3
|
|
818
|
-
|
|
849
|
+
`/v3/admin/integrations/definitions/${id}`,
|
|
850
|
+
updateIntegrationDefinitionDto,
|
|
819
851
|
options
|
|
820
852
|
);
|
|
821
853
|
};
|
|
822
|
-
const
|
|
823
|
-
return axiosInstance.
|
|
824
|
-
`/v3
|
|
825
|
-
completeBookingDto,
|
|
854
|
+
const adminControllerDeleteIntegrationDefinition = (id, options) => {
|
|
855
|
+
return axiosInstance.delete(
|
|
856
|
+
`/v3/admin/integrations/definitions/${id}`,
|
|
826
857
|
options
|
|
827
858
|
);
|
|
828
859
|
};
|
|
829
|
-
const
|
|
830
|
-
return axiosInstance.
|
|
831
|
-
`/v3
|
|
832
|
-
void 0,
|
|
860
|
+
const adminControllerListActiveOrganizationIntegrations = (options) => {
|
|
861
|
+
return axiosInstance.get(
|
|
862
|
+
`/v3/admin/integrations/active`,
|
|
833
863
|
options
|
|
834
864
|
);
|
|
835
865
|
};
|
|
836
|
-
const
|
|
866
|
+
const webhooksCreate = (orgSlug, createWebhookDto, options) => {
|
|
837
867
|
return axiosInstance.post(
|
|
838
|
-
`/v3/${orgSlug}/
|
|
839
|
-
|
|
868
|
+
`/v3/${orgSlug}/webhooks`,
|
|
869
|
+
createWebhookDto,
|
|
840
870
|
options
|
|
841
871
|
);
|
|
842
872
|
};
|
|
843
|
-
const
|
|
873
|
+
const webhooksList = (orgSlug, options) => {
|
|
844
874
|
return axiosInstance.get(
|
|
845
|
-
`/v3/${orgSlug}/
|
|
846
|
-
options
|
|
847
|
-
);
|
|
848
|
-
};
|
|
849
|
-
const servicesAddBreak = (orgSlug, shiftId, servicesAddBreakBody, options) => {
|
|
850
|
-
return axiosInstance.post(
|
|
851
|
-
`/v3/${orgSlug}/services/shifts/${shiftId}/breaks`,
|
|
852
|
-
servicesAddBreakBody,
|
|
875
|
+
`/v3/${orgSlug}/webhooks`,
|
|
853
876
|
options
|
|
854
877
|
);
|
|
855
878
|
};
|
|
856
|
-
const
|
|
857
|
-
return axiosInstance.
|
|
858
|
-
`/v3/${orgSlug}/
|
|
859
|
-
servicesRegisterCustomerAppBody,
|
|
879
|
+
const webhooksDelete = (orgSlug, id, options) => {
|
|
880
|
+
return axiosInstance.delete(
|
|
881
|
+
`/v3/${orgSlug}/webhooks/${id}`,
|
|
860
882
|
options
|
|
861
883
|
);
|
|
862
884
|
};
|
|
863
|
-
const
|
|
885
|
+
const catalogGetProducts = (orgSlug, params, options) => {
|
|
864
886
|
return axiosInstance.get(
|
|
865
|
-
`/v3/${orgSlug}/
|
|
887
|
+
`/v3/${orgSlug}/catalog/products`,
|
|
866
888
|
{
|
|
867
889
|
...options,
|
|
868
890
|
params: { ...params, ...options?.params }
|
|
869
891
|
}
|
|
870
892
|
);
|
|
871
893
|
};
|
|
872
|
-
const
|
|
894
|
+
const catalogCreateProduct = (orgSlug, createProductDto, options) => {
|
|
895
|
+
return axiosInstance.post(
|
|
896
|
+
`/v3/${orgSlug}/catalog/products`,
|
|
897
|
+
createProductDto,
|
|
898
|
+
options
|
|
899
|
+
);
|
|
900
|
+
};
|
|
901
|
+
const catalogGetProduct = (orgSlug, idOrSlug, options) => {
|
|
873
902
|
return axiosInstance.get(
|
|
874
|
-
`/v3/${orgSlug}/
|
|
875
|
-
|
|
876
|
-
...options,
|
|
877
|
-
params: { ...params, ...options?.params }
|
|
878
|
-
}
|
|
903
|
+
`/v3/${orgSlug}/catalog/products/${idOrSlug}`,
|
|
904
|
+
options
|
|
879
905
|
);
|
|
880
906
|
};
|
|
881
|
-
const
|
|
907
|
+
const catalogGetServices = (orgSlug, params, options) => {
|
|
882
908
|
return axiosInstance.get(
|
|
883
|
-
`/v3/${orgSlug}/services
|
|
909
|
+
`/v3/${orgSlug}/catalog/services`,
|
|
884
910
|
{
|
|
885
911
|
...options,
|
|
886
912
|
params: { ...params, ...options?.params }
|
|
887
913
|
}
|
|
888
914
|
);
|
|
889
915
|
};
|
|
890
|
-
const
|
|
891
|
-
return axiosInstance.
|
|
892
|
-
`/v3
|
|
893
|
-
|
|
894
|
-
);
|
|
895
|
-
};
|
|
896
|
-
const publicServicesGetCategories = (orgSlug, options) => {
|
|
897
|
-
return axiosInstance.get(
|
|
898
|
-
`/v3/public/${orgSlug}/services/categories`,
|
|
916
|
+
const catalogUpdateProduct = (orgSlug, id, updateProductDto, options) => {
|
|
917
|
+
return axiosInstance.patch(
|
|
918
|
+
`/v3/${orgSlug}/catalog/products/${id}`,
|
|
919
|
+
updateProductDto,
|
|
899
920
|
options
|
|
900
921
|
);
|
|
901
922
|
};
|
|
902
|
-
const
|
|
903
|
-
return axiosInstance.
|
|
904
|
-
`/v3
|
|
923
|
+
const catalogUpdateSupplierVariant = (orgSlug, supplierId, variantId, updateSupplierProductDto, options) => {
|
|
924
|
+
return axiosInstance.patch(
|
|
925
|
+
`/v3/${orgSlug}/catalog/suppliers/${supplierId}/variants/${variantId}`,
|
|
926
|
+
updateSupplierProductDto,
|
|
905
927
|
options
|
|
906
928
|
);
|
|
907
929
|
};
|
|
908
|
-
const
|
|
930
|
+
const catalogGetPriceChangeRequests = (orgSlug, params, options) => {
|
|
909
931
|
return axiosInstance.get(
|
|
910
|
-
`/v3
|
|
932
|
+
`/v3/${orgSlug}/catalog/price-change-requests`,
|
|
911
933
|
{
|
|
912
934
|
...options,
|
|
913
935
|
params: { ...params, ...options?.params }
|
|
914
936
|
}
|
|
915
937
|
);
|
|
916
938
|
};
|
|
917
|
-
const
|
|
939
|
+
const catalogReviewPriceChangeRequest = (orgSlug, id, reviewPriceChangeDto, options) => {
|
|
918
940
|
return axiosInstance.post(
|
|
919
|
-
`/v3
|
|
920
|
-
|
|
941
|
+
`/v3/${orgSlug}/catalog/price-change-requests/${id}/review`,
|
|
942
|
+
reviewPriceChangeDto,
|
|
921
943
|
options
|
|
922
944
|
);
|
|
923
945
|
};
|
|
924
|
-
const
|
|
946
|
+
const catalogCreateReview = (orgSlug, productId, createProductReviewDto, options) => {
|
|
925
947
|
return axiosInstance.post(
|
|
926
|
-
`/v3
|
|
927
|
-
|
|
948
|
+
`/v3/${orgSlug}/catalog/products/${productId}/reviews`,
|
|
949
|
+
createProductReviewDto,
|
|
928
950
|
options
|
|
929
951
|
);
|
|
930
952
|
};
|
|
931
|
-
const
|
|
932
|
-
return axiosInstance.
|
|
933
|
-
`/v3
|
|
934
|
-
|
|
953
|
+
const catalogUpdateReview = (orgSlug, reviewId, updateProductReviewDto, options) => {
|
|
954
|
+
return axiosInstance.patch(
|
|
955
|
+
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
956
|
+
updateProductReviewDto,
|
|
935
957
|
options
|
|
936
958
|
);
|
|
937
959
|
};
|
|
960
|
+
const catalogDeleteReview = (orgSlug, reviewId, params, options) => {
|
|
961
|
+
return axiosInstance.delete(
|
|
962
|
+
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
963
|
+
{
|
|
964
|
+
...options,
|
|
965
|
+
params: { ...params, ...options?.params }
|
|
966
|
+
}
|
|
967
|
+
);
|
|
968
|
+
};
|
|
938
969
|
const customersGetCustomers = (orgSlug, params, options) => {
|
|
939
970
|
return axiosInstance.get(
|
|
940
971
|
`/v3/${orgSlug}/customers`,
|
|
@@ -1199,6 +1230,13 @@ var getScrymeV3API = (axiosInstance = axios) => {
|
|
|
1199
1230
|
options
|
|
1200
1231
|
);
|
|
1201
1232
|
};
|
|
1233
|
+
const paymentsCheckout = (orgSlug, checkoutDto, options) => {
|
|
1234
|
+
return axiosInstance.post(
|
|
1235
|
+
`/v3/${orgSlug}/payments/checkout`,
|
|
1236
|
+
checkoutDto,
|
|
1237
|
+
options
|
|
1238
|
+
);
|
|
1239
|
+
};
|
|
1202
1240
|
const paymentsControllerHandleStkCallback = (orgSlug, paymentId, options) => {
|
|
1203
1241
|
return axiosInstance.post(
|
|
1204
1242
|
`/v3/${orgSlug}/payments/webhooks/mpesa/stkpush/${paymentId}`,
|
|
@@ -1267,6 +1305,26 @@ var getScrymeV3API = (axiosInstance = axios) => {
|
|
|
1267
1305
|
}
|
|
1268
1306
|
);
|
|
1269
1307
|
};
|
|
1308
|
+
const pOSCreatePairingSession = (options) => {
|
|
1309
|
+
return axiosInstance.post(
|
|
1310
|
+
`/v3/pos/pairing/session`,
|
|
1311
|
+
void 0,
|
|
1312
|
+
options
|
|
1313
|
+
);
|
|
1314
|
+
};
|
|
1315
|
+
const pOSGetPairingSessionStatus = (sessionId, options) => {
|
|
1316
|
+
return axiosInstance.get(
|
|
1317
|
+
`/v3/pos/pairing/session/${sessionId}/status`,
|
|
1318
|
+
options
|
|
1319
|
+
);
|
|
1320
|
+
};
|
|
1321
|
+
const pOSAuthorizePairingSession = (sessionId, options) => {
|
|
1322
|
+
return axiosInstance.post(
|
|
1323
|
+
`/v3/pos/pairing/session/${sessionId}/authorize`,
|
|
1324
|
+
void 0,
|
|
1325
|
+
options
|
|
1326
|
+
);
|
|
1327
|
+
};
|
|
1270
1328
|
const membersControllerGetMembers = (orgSlug, params, options) => {
|
|
1271
1329
|
return axiosInstance.get(
|
|
1272
1330
|
`/v3/${orgSlug}/members`,
|
|
@@ -1910,14 +1968,7 @@ var getScrymeV3API = (axiosInstance = axios) => {
|
|
|
1910
1968
|
}
|
|
1911
1969
|
);
|
|
1912
1970
|
};
|
|
1913
|
-
|
|
1914
|
-
return axiosInstance.post(
|
|
1915
|
-
`/v3/${orgSlug}/payments/checkout`,
|
|
1916
|
-
checkoutDto,
|
|
1917
|
-
options
|
|
1918
|
-
);
|
|
1919
|
-
};
|
|
1920
|
-
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 };
|
|
1971
|
+
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 };
|
|
1921
1972
|
};
|
|
1922
1973
|
|
|
1923
1974
|
// src/generated/model/addDepartmentMemberDtoRole.ts
|
|
@@ -2527,6 +2578,11 @@ var catalogMapping = {
|
|
|
2527
2578
|
};
|
|
2528
2579
|
var authMapping = {
|
|
2529
2580
|
exchangeToken: "authExchangeToken",
|
|
2581
|
+
createOAuthClient: "authCreateOAuthClient",
|
|
2582
|
+
listOAuthClients: "authListOAuthClients",
|
|
2583
|
+
getOAuthClient: "authGetOAuthClient",
|
|
2584
|
+
updateOAuthClient: "authUpdateOAuthClient",
|
|
2585
|
+
deleteOAuthClient: "authDeleteOAuthClient",
|
|
2530
2586
|
handleOAuth2: "authControllerHandleOAuth2"
|
|
2531
2587
|
};
|
|
2532
2588
|
var inventoryMapping = {
|
|
@@ -2769,6 +2825,10 @@ var adminMapping = {
|
|
|
2769
2825
|
getOrganizationDetails: "adminControllerGetOrganizationDetails",
|
|
2770
2826
|
updateOrganization: "adminControllerUpdateOrganization",
|
|
2771
2827
|
deleteOrganization: "adminControllerDeleteOrganization",
|
|
2828
|
+
suspendOrganization: "adminControllerSuspendOrganization",
|
|
2829
|
+
reactivateOrganization: "adminControllerReactivateOrganization",
|
|
2830
|
+
getEffectiveQuota: "adminControllerGetEffectiveQuota",
|
|
2831
|
+
setQuotaOverrides: "adminControllerSetQuotaOverrides",
|
|
2772
2832
|
listMembers: "adminControllerListMembers",
|
|
2773
2833
|
listUsers: "adminControllerListUsers",
|
|
2774
2834
|
banUser: "adminControllerBanUser",
|
|
@@ -2793,10 +2853,6 @@ var adminMapping = {
|
|
|
2793
2853
|
createWebhook: "webhooksCreate",
|
|
2794
2854
|
listWebhooks: "webhooksList",
|
|
2795
2855
|
deleteWebhook: "webhooksDelete",
|
|
2796
|
-
handleWindmillCallback: "windmillCallbackControllerHandleCallback",
|
|
2797
|
-
handleWindmillApprovalCallback: "windmillCallbackControllerHandleApprovalCallback",
|
|
2798
|
-
handleWindmillBakeryDisposalCallback: "windmillCallbackControllerHandleBakeryDisposalCallback",
|
|
2799
|
-
handleWindmillOutcomeCallback: "windmillCallbackControllerHandleOutcomeCallback",
|
|
2800
2856
|
getCustomers: "customersGetCustomers",
|
|
2801
2857
|
registerCustomer: "customersRegister",
|
|
2802
2858
|
updateCustomer: "customersUpdate",
|