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