@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/index.js
CHANGED
|
@@ -104,6 +104,259 @@ module.exports = __toCommonJS(index_exports);
|
|
|
104
104
|
// src/generated/scryme.ts
|
|
105
105
|
var import_axios = __toESM(require("axios"));
|
|
106
106
|
var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
107
|
+
const servicesCreateCategory = (orgSlug, createServiceCategoryDto, options) => {
|
|
108
|
+
return axiosInstance.post(
|
|
109
|
+
`/v3/${orgSlug}/services/categories`,
|
|
110
|
+
createServiceCategoryDto,
|
|
111
|
+
options
|
|
112
|
+
);
|
|
113
|
+
};
|
|
114
|
+
const servicesGetCategories = (orgSlug, options) => {
|
|
115
|
+
return axiosInstance.get(
|
|
116
|
+
`/v3/${orgSlug}/services/categories`,
|
|
117
|
+
options
|
|
118
|
+
);
|
|
119
|
+
};
|
|
120
|
+
const servicesUpdateCategory = (orgSlug, id, updateServiceCategoryDto, options) => {
|
|
121
|
+
return axiosInstance.patch(
|
|
122
|
+
`/v3/${orgSlug}/services/categories/${id}`,
|
|
123
|
+
updateServiceCategoryDto,
|
|
124
|
+
options
|
|
125
|
+
);
|
|
126
|
+
};
|
|
127
|
+
const servicesDeleteCategory = (orgSlug, id, options) => {
|
|
128
|
+
return axiosInstance.post(
|
|
129
|
+
`/v3/${orgSlug}/services/categories/${id}/delete`,
|
|
130
|
+
void 0,
|
|
131
|
+
options
|
|
132
|
+
);
|
|
133
|
+
};
|
|
134
|
+
const servicesCreateService = (orgSlug, createServiceDto, options) => {
|
|
135
|
+
return axiosInstance.post(
|
|
136
|
+
`/v3/${orgSlug}/services`,
|
|
137
|
+
createServiceDto,
|
|
138
|
+
options
|
|
139
|
+
);
|
|
140
|
+
};
|
|
141
|
+
const servicesGetServices = (orgSlug, options) => {
|
|
142
|
+
return axiosInstance.get(
|
|
143
|
+
`/v3/${orgSlug}/services`,
|
|
144
|
+
options
|
|
145
|
+
);
|
|
146
|
+
};
|
|
147
|
+
const servicesGetCurrentMemberShifts = (orgSlug, options) => {
|
|
148
|
+
return axiosInstance.get(
|
|
149
|
+
`/v3/${orgSlug}/services/shifts/me`,
|
|
150
|
+
options
|
|
151
|
+
);
|
|
152
|
+
};
|
|
153
|
+
const servicesGetShifts = (orgSlug, params, options) => {
|
|
154
|
+
return axiosInstance.get(
|
|
155
|
+
`/v3/${orgSlug}/services/shifts`,
|
|
156
|
+
{
|
|
157
|
+
...options,
|
|
158
|
+
params: { ...params, ...options?.params }
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
const servicesGetService = (orgSlug, id, options) => {
|
|
163
|
+
return axiosInstance.get(
|
|
164
|
+
`/v3/${orgSlug}/services/${id}`,
|
|
165
|
+
options
|
|
166
|
+
);
|
|
167
|
+
};
|
|
168
|
+
const servicesUpdateService = (orgSlug, id, updateServiceDto, options) => {
|
|
169
|
+
return axiosInstance.patch(
|
|
170
|
+
`/v3/${orgSlug}/services/${id}`,
|
|
171
|
+
updateServiceDto,
|
|
172
|
+
options
|
|
173
|
+
);
|
|
174
|
+
};
|
|
175
|
+
const servicesGetAvailability = (orgSlug, id, params, options) => {
|
|
176
|
+
return axiosInstance.get(
|
|
177
|
+
`/v3/${orgSlug}/services/${id}/availability`,
|
|
178
|
+
{
|
|
179
|
+
...options,
|
|
180
|
+
params: { ...params, ...options?.params }
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
};
|
|
184
|
+
const servicesDeleteService = (orgSlug, id, options) => {
|
|
185
|
+
return axiosInstance.post(
|
|
186
|
+
`/v3/${orgSlug}/services/${id}/delete`,
|
|
187
|
+
void 0,
|
|
188
|
+
options
|
|
189
|
+
);
|
|
190
|
+
};
|
|
191
|
+
const servicesCreateResource = (orgSlug, createServiceResourceDto, options) => {
|
|
192
|
+
return axiosInstance.post(
|
|
193
|
+
`/v3/${orgSlug}/services/resources`,
|
|
194
|
+
createServiceResourceDto,
|
|
195
|
+
options
|
|
196
|
+
);
|
|
197
|
+
};
|
|
198
|
+
const servicesGetResources = (orgSlug, options) => {
|
|
199
|
+
return axiosInstance.get(
|
|
200
|
+
`/v3/${orgSlug}/services/resources`,
|
|
201
|
+
options
|
|
202
|
+
);
|
|
203
|
+
};
|
|
204
|
+
const servicesUpdateResource = (orgSlug, id, updateServiceResourceDto, options) => {
|
|
205
|
+
return axiosInstance.patch(
|
|
206
|
+
`/v3/${orgSlug}/services/resources/${id}`,
|
|
207
|
+
updateServiceResourceDto,
|
|
208
|
+
options
|
|
209
|
+
);
|
|
210
|
+
};
|
|
211
|
+
const servicesDeleteResource = (orgSlug, id, options) => {
|
|
212
|
+
return axiosInstance.post(
|
|
213
|
+
`/v3/${orgSlug}/services/resources/${id}/delete`,
|
|
214
|
+
void 0,
|
|
215
|
+
options
|
|
216
|
+
);
|
|
217
|
+
};
|
|
218
|
+
const servicesCreateBooking = (orgSlug, createBookingDto, options) => {
|
|
219
|
+
return axiosInstance.post(
|
|
220
|
+
`/v3/${orgSlug}/services/bookings`,
|
|
221
|
+
createBookingDto,
|
|
222
|
+
options
|
|
223
|
+
);
|
|
224
|
+
};
|
|
225
|
+
const servicesGetBookings = (orgSlug, options) => {
|
|
226
|
+
return axiosInstance.get(
|
|
227
|
+
`/v3/${orgSlug}/services/bookings`,
|
|
228
|
+
options
|
|
229
|
+
);
|
|
230
|
+
};
|
|
231
|
+
const servicesGetBooking = (orgSlug, id, options) => {
|
|
232
|
+
return axiosInstance.get(
|
|
233
|
+
`/v3/${orgSlug}/services/bookings/${id}`,
|
|
234
|
+
options
|
|
235
|
+
);
|
|
236
|
+
};
|
|
237
|
+
const servicesUpdateBookingStatus = (orgSlug, id, servicesUpdateBookingStatusBody, options) => {
|
|
238
|
+
return axiosInstance.patch(
|
|
239
|
+
`/v3/${orgSlug}/services/bookings/${id}/status`,
|
|
240
|
+
servicesUpdateBookingStatusBody,
|
|
241
|
+
options
|
|
242
|
+
);
|
|
243
|
+
};
|
|
244
|
+
const servicesCompleteBooking = (orgSlug, id, completeBookingDto, options) => {
|
|
245
|
+
return axiosInstance.patch(
|
|
246
|
+
`/v3/${orgSlug}/services/bookings/${id}/complete`,
|
|
247
|
+
completeBookingDto,
|
|
248
|
+
options
|
|
249
|
+
);
|
|
250
|
+
};
|
|
251
|
+
const servicesCancelBookingSeries = (orgSlug, recurrenceId, options) => {
|
|
252
|
+
return axiosInstance.post(
|
|
253
|
+
`/v3/${orgSlug}/services/bookings/recurrence/${recurrenceId}/cancel`,
|
|
254
|
+
void 0,
|
|
255
|
+
options
|
|
256
|
+
);
|
|
257
|
+
};
|
|
258
|
+
const servicesCreateShift = (orgSlug, memberId, servicesCreateShiftBody, options) => {
|
|
259
|
+
return axiosInstance.post(
|
|
260
|
+
`/v3/${orgSlug}/services/staff/${memberId}/shifts`,
|
|
261
|
+
servicesCreateShiftBody,
|
|
262
|
+
options
|
|
263
|
+
);
|
|
264
|
+
};
|
|
265
|
+
const servicesGetStaffShifts = (orgSlug, memberId, options) => {
|
|
266
|
+
return axiosInstance.get(
|
|
267
|
+
`/v3/${orgSlug}/services/staff/${memberId}/shifts`,
|
|
268
|
+
options
|
|
269
|
+
);
|
|
270
|
+
};
|
|
271
|
+
const servicesAddBreak = (orgSlug, shiftId, servicesAddBreakBody, options) => {
|
|
272
|
+
return axiosInstance.post(
|
|
273
|
+
`/v3/${orgSlug}/services/shifts/${shiftId}/breaks`,
|
|
274
|
+
servicesAddBreakBody,
|
|
275
|
+
options
|
|
276
|
+
);
|
|
277
|
+
};
|
|
278
|
+
const servicesRegisterCustomerApp = (orgSlug, servicesRegisterCustomerAppBody, options) => {
|
|
279
|
+
return axiosInstance.post(
|
|
280
|
+
`/v3/${orgSlug}/services/register-customer-app`,
|
|
281
|
+
servicesRegisterCustomerAppBody,
|
|
282
|
+
options
|
|
283
|
+
);
|
|
284
|
+
};
|
|
285
|
+
const servicesGetUtilization = (orgSlug, params, options) => {
|
|
286
|
+
return axiosInstance.get(
|
|
287
|
+
`/v3/${orgSlug}/services/analytics/utilization`,
|
|
288
|
+
{
|
|
289
|
+
...options,
|
|
290
|
+
params: { ...params, ...options?.params }
|
|
291
|
+
}
|
|
292
|
+
);
|
|
293
|
+
};
|
|
294
|
+
const servicesGetPerformance = (orgSlug, params, options) => {
|
|
295
|
+
return axiosInstance.get(
|
|
296
|
+
`/v3/${orgSlug}/services/analytics/performance`,
|
|
297
|
+
{
|
|
298
|
+
...options,
|
|
299
|
+
params: { ...params, ...options?.params }
|
|
300
|
+
}
|
|
301
|
+
);
|
|
302
|
+
};
|
|
303
|
+
const servicesGetFunnel = (orgSlug, params, options) => {
|
|
304
|
+
return axiosInstance.get(
|
|
305
|
+
`/v3/${orgSlug}/services/analytics/funnel`,
|
|
306
|
+
{
|
|
307
|
+
...options,
|
|
308
|
+
params: { ...params, ...options?.params }
|
|
309
|
+
}
|
|
310
|
+
);
|
|
311
|
+
};
|
|
312
|
+
const publicServicesListServices = (orgSlug, options) => {
|
|
313
|
+
return axiosInstance.get(
|
|
314
|
+
`/v3/public/${orgSlug}/services`,
|
|
315
|
+
options
|
|
316
|
+
);
|
|
317
|
+
};
|
|
318
|
+
const publicServicesGetCategories = (orgSlug, options) => {
|
|
319
|
+
return axiosInstance.get(
|
|
320
|
+
`/v3/public/${orgSlug}/services/categories`,
|
|
321
|
+
options
|
|
322
|
+
);
|
|
323
|
+
};
|
|
324
|
+
const publicServicesGetService = (orgSlug, id, options) => {
|
|
325
|
+
return axiosInstance.get(
|
|
326
|
+
`/v3/public/${orgSlug}/services/${id}`,
|
|
327
|
+
options
|
|
328
|
+
);
|
|
329
|
+
};
|
|
330
|
+
const publicServicesGetAvailability = (orgSlug, id, params, options) => {
|
|
331
|
+
return axiosInstance.get(
|
|
332
|
+
`/v3/public/${orgSlug}/services/${id}/availability`,
|
|
333
|
+
{
|
|
334
|
+
...options,
|
|
335
|
+
params: { ...params, ...options?.params }
|
|
336
|
+
}
|
|
337
|
+
);
|
|
338
|
+
};
|
|
339
|
+
const publicServicesRequestOtp = (orgSlug, requestOtpDto, options) => {
|
|
340
|
+
return axiosInstance.post(
|
|
341
|
+
`/v3/public/${orgSlug}/services/otp/request`,
|
|
342
|
+
requestOtpDto,
|
|
343
|
+
options
|
|
344
|
+
);
|
|
345
|
+
};
|
|
346
|
+
const publicServicesVerifyOtp = (orgSlug, verifyOtpDto, options) => {
|
|
347
|
+
return axiosInstance.post(
|
|
348
|
+
`/v3/public/${orgSlug}/services/otp/verify`,
|
|
349
|
+
verifyOtpDto,
|
|
350
|
+
options
|
|
351
|
+
);
|
|
352
|
+
};
|
|
353
|
+
const publicServicesCreatePublicBooking = (orgSlug, publicBookingDto, options) => {
|
|
354
|
+
return axiosInstance.post(
|
|
355
|
+
`/v3/public/${orgSlug}/services/bookings`,
|
|
356
|
+
publicBookingDto,
|
|
357
|
+
options
|
|
358
|
+
);
|
|
359
|
+
};
|
|
107
360
|
const inventoryVerifyIntegrity = (orgSlug, options) => {
|
|
108
361
|
return axiosInstance.get(
|
|
109
362
|
`/v3/${orgSlug}/inventory/integrity/verify`,
|
|
@@ -470,571 +723,349 @@ var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
|
470
723
|
options
|
|
471
724
|
);
|
|
472
725
|
};
|
|
473
|
-
const
|
|
474
|
-
return axiosInstance.get(
|
|
475
|
-
`/v3/auth/oauth2/${path}`,
|
|
476
|
-
options
|
|
477
|
-
);
|
|
478
|
-
};
|
|
479
|
-
const adminControllerGetStats = (options) => {
|
|
480
|
-
return axiosInstance.get(
|
|
481
|
-
`/v3/admin/stats`,
|
|
482
|
-
options
|
|
483
|
-
);
|
|
484
|
-
};
|
|
485
|
-
const adminControllerListOrganizations = (options) => {
|
|
486
|
-
return axiosInstance.get(
|
|
487
|
-
`/v3/admin/organizations`,
|
|
488
|
-
options
|
|
489
|
-
);
|
|
490
|
-
};
|
|
491
|
-
const adminControllerCreateOrganization = (createOrganizationDto, options) => {
|
|
492
|
-
return axiosInstance.post(
|
|
493
|
-
`/v3/admin/organizations`,
|
|
494
|
-
createOrganizationDto,
|
|
495
|
-
options
|
|
496
|
-
);
|
|
497
|
-
};
|
|
498
|
-
const adminControllerGetOrganizationDetails = (id, options) => {
|
|
499
|
-
return axiosInstance.get(
|
|
500
|
-
`/v3/admin/organizations/${id}`,
|
|
501
|
-
options
|
|
502
|
-
);
|
|
503
|
-
};
|
|
504
|
-
const adminControllerUpdateOrganization = (id, updateOrganizationDto, options) => {
|
|
505
|
-
return axiosInstance.patch(
|
|
506
|
-
`/v3/admin/organizations/${id}`,
|
|
507
|
-
updateOrganizationDto,
|
|
508
|
-
options
|
|
509
|
-
);
|
|
510
|
-
};
|
|
511
|
-
const adminControllerDeleteOrganization = (id, options) => {
|
|
512
|
-
return axiosInstance.delete(
|
|
513
|
-
`/v3/admin/organizations/${id}`,
|
|
514
|
-
options
|
|
515
|
-
);
|
|
516
|
-
};
|
|
517
|
-
const adminControllerListMembers = (params, options) => {
|
|
518
|
-
return axiosInstance.get(
|
|
519
|
-
`/v3/admin/members`,
|
|
520
|
-
{
|
|
521
|
-
...options,
|
|
522
|
-
params: { ...params, ...options?.params }
|
|
523
|
-
}
|
|
524
|
-
);
|
|
525
|
-
};
|
|
526
|
-
const adminControllerListUsers = (options) => {
|
|
527
|
-
return axiosInstance.get(
|
|
528
|
-
`/v3/admin/users`,
|
|
529
|
-
options
|
|
530
|
-
);
|
|
531
|
-
};
|
|
532
|
-
const adminControllerBanUser = (id, banUserDto, options) => {
|
|
726
|
+
const authCreateOAuthClient = (createOAuthClientDto, options) => {
|
|
533
727
|
return axiosInstance.post(
|
|
534
|
-
`/v3/
|
|
535
|
-
|
|
536
|
-
options
|
|
537
|
-
);
|
|
538
|
-
};
|
|
539
|
-
const adminControllerUnbanUser = (id, options) => {
|
|
540
|
-
return axiosInstance.post(
|
|
541
|
-
`/v3/admin/users/${id}/unban`,
|
|
542
|
-
void 0,
|
|
543
|
-
options
|
|
544
|
-
);
|
|
545
|
-
};
|
|
546
|
-
const adminControllerListConnectedApps = (options) => {
|
|
547
|
-
return axiosInstance.get(
|
|
548
|
-
`/v3/admin/connected-apps`,
|
|
728
|
+
`/v3/auth/oauth/clients`,
|
|
729
|
+
createOAuthClientDto,
|
|
549
730
|
options
|
|
550
731
|
);
|
|
551
732
|
};
|
|
552
|
-
const
|
|
733
|
+
const authListOAuthClients = (options) => {
|
|
553
734
|
return axiosInstance.get(
|
|
554
|
-
`/v3/
|
|
735
|
+
`/v3/auth/oauth/clients`,
|
|
555
736
|
options
|
|
556
737
|
);
|
|
557
738
|
};
|
|
558
|
-
const
|
|
739
|
+
const authGetOAuthClient = (id, options) => {
|
|
559
740
|
return axiosInstance.get(
|
|
560
|
-
`/v3/
|
|
741
|
+
`/v3/auth/oauth/clients/${id}`,
|
|
561
742
|
options
|
|
562
743
|
);
|
|
563
744
|
};
|
|
564
|
-
const
|
|
565
|
-
return axiosInstance.
|
|
566
|
-
`/v3/
|
|
567
|
-
|
|
745
|
+
const authUpdateOAuthClient = (id, updateOAuthClientDto, options) => {
|
|
746
|
+
return axiosInstance.put(
|
|
747
|
+
`/v3/auth/oauth/clients/${id}`,
|
|
748
|
+
updateOAuthClientDto,
|
|
568
749
|
options
|
|
569
750
|
);
|
|
570
751
|
};
|
|
571
|
-
const
|
|
752
|
+
const authDeleteOAuthClient = (id, options) => {
|
|
572
753
|
return axiosInstance.delete(
|
|
573
|
-
`/v3/
|
|
754
|
+
`/v3/auth/oauth/clients/${id}`,
|
|
574
755
|
options
|
|
575
756
|
);
|
|
576
757
|
};
|
|
577
|
-
const
|
|
758
|
+
const authControllerHandleOAuth2 = (path, options) => {
|
|
578
759
|
return axiosInstance.get(
|
|
579
|
-
`/v3/
|
|
580
|
-
options
|
|
581
|
-
);
|
|
582
|
-
};
|
|
583
|
-
const adminControllerDefineTier = (defineTierDto, options) => {
|
|
584
|
-
return axiosInstance.post(
|
|
585
|
-
`/v3/admin/tiers`,
|
|
586
|
-
defineTierDto,
|
|
587
|
-
options
|
|
588
|
-
);
|
|
589
|
-
};
|
|
590
|
-
const adminControllerDeleteTier = (slug, options) => {
|
|
591
|
-
return axiosInstance.delete(
|
|
592
|
-
`/v3/admin/tiers/${slug}`,
|
|
760
|
+
`/v3/auth/oauth2/${path}`,
|
|
593
761
|
options
|
|
594
762
|
);
|
|
595
763
|
};
|
|
596
|
-
const
|
|
764
|
+
const adminControllerGetStats = (options) => {
|
|
597
765
|
return axiosInstance.get(
|
|
598
|
-
`/v3/admin/
|
|
599
|
-
options
|
|
600
|
-
);
|
|
601
|
-
};
|
|
602
|
-
const adminControllerUpdateOrganizationSubscription = (id, updateSubscriptionDto, options) => {
|
|
603
|
-
return axiosInstance.put(
|
|
604
|
-
`/v3/admin/organizations/${id}/subscription`,
|
|
605
|
-
updateSubscriptionDto,
|
|
766
|
+
`/v3/admin/stats`,
|
|
606
767
|
options
|
|
607
768
|
);
|
|
608
769
|
};
|
|
609
|
-
const
|
|
770
|
+
const adminControllerListOrganizations = (options) => {
|
|
610
771
|
return axiosInstance.get(
|
|
611
|
-
`/v3/admin/
|
|
772
|
+
`/v3/admin/organizations`,
|
|
612
773
|
options
|
|
613
774
|
);
|
|
614
775
|
};
|
|
615
|
-
const
|
|
776
|
+
const adminControllerCreateOrganization = (createOrganizationDto, options) => {
|
|
616
777
|
return axiosInstance.post(
|
|
617
|
-
`/v3/admin/
|
|
618
|
-
|
|
778
|
+
`/v3/admin/organizations`,
|
|
779
|
+
createOrganizationDto,
|
|
619
780
|
options
|
|
620
781
|
);
|
|
621
782
|
};
|
|
622
|
-
const
|
|
783
|
+
const adminControllerGetOrganizationDetails = (id, options) => {
|
|
623
784
|
return axiosInstance.get(
|
|
624
|
-
`/v3/admin/
|
|
625
|
-
options
|
|
626
|
-
);
|
|
627
|
-
};
|
|
628
|
-
const adminControllerCreateIntegrationDefinition = (createIntegrationDefinitionDto, options) => {
|
|
629
|
-
return axiosInstance.post(
|
|
630
|
-
`/v3/admin/integrations/definitions`,
|
|
631
|
-
createIntegrationDefinitionDto,
|
|
785
|
+
`/v3/admin/organizations/${id}`,
|
|
632
786
|
options
|
|
633
787
|
);
|
|
634
788
|
};
|
|
635
|
-
const
|
|
789
|
+
const adminControllerUpdateOrganization = (id, updateOrganizationDto, options) => {
|
|
636
790
|
return axiosInstance.patch(
|
|
637
|
-
`/v3/admin/
|
|
638
|
-
|
|
639
|
-
options
|
|
640
|
-
);
|
|
641
|
-
};
|
|
642
|
-
const adminControllerDeleteIntegrationDefinition = (id, options) => {
|
|
643
|
-
return axiosInstance.delete(
|
|
644
|
-
`/v3/admin/integrations/definitions/${id}`,
|
|
645
|
-
options
|
|
646
|
-
);
|
|
647
|
-
};
|
|
648
|
-
const adminControllerListActiveOrganizationIntegrations = (options) => {
|
|
649
|
-
return axiosInstance.get(
|
|
650
|
-
`/v3/admin/integrations/active`,
|
|
651
|
-
options
|
|
652
|
-
);
|
|
653
|
-
};
|
|
654
|
-
const webhooksCreate = (orgSlug, createWebhookDto, options) => {
|
|
655
|
-
return axiosInstance.post(
|
|
656
|
-
`/v3/${orgSlug}/webhooks`,
|
|
657
|
-
createWebhookDto,
|
|
658
|
-
options
|
|
659
|
-
);
|
|
660
|
-
};
|
|
661
|
-
const webhooksList = (orgSlug, options) => {
|
|
662
|
-
return axiosInstance.get(
|
|
663
|
-
`/v3/${orgSlug}/webhooks`,
|
|
791
|
+
`/v3/admin/organizations/${id}`,
|
|
792
|
+
updateOrganizationDto,
|
|
664
793
|
options
|
|
665
794
|
);
|
|
666
795
|
};
|
|
667
|
-
const
|
|
796
|
+
const adminControllerDeleteOrganization = (id, options) => {
|
|
668
797
|
return axiosInstance.delete(
|
|
669
|
-
`/v3
|
|
670
|
-
options
|
|
671
|
-
);
|
|
672
|
-
};
|
|
673
|
-
const windmillCallbackControllerHandleCallback = (options) => {
|
|
674
|
-
return axiosInstance.post(
|
|
675
|
-
`/v3/webhooks/windmill`,
|
|
676
|
-
void 0,
|
|
677
|
-
options
|
|
678
|
-
);
|
|
679
|
-
};
|
|
680
|
-
const windmillCallbackControllerHandleApprovalCallback = (options) => {
|
|
681
|
-
return axiosInstance.post(
|
|
682
|
-
`/v3/webhooks/windmill/approval`,
|
|
683
|
-
void 0,
|
|
798
|
+
`/v3/admin/organizations/${id}`,
|
|
684
799
|
options
|
|
685
800
|
);
|
|
686
801
|
};
|
|
687
|
-
const
|
|
802
|
+
const adminControllerSuspendOrganization = (id, suspendOrganizationDto, options) => {
|
|
688
803
|
return axiosInstance.post(
|
|
689
|
-
`/v3/
|
|
690
|
-
|
|
804
|
+
`/v3/admin/organizations/${id}/suspend`,
|
|
805
|
+
suspendOrganizationDto,
|
|
691
806
|
options
|
|
692
807
|
);
|
|
693
808
|
};
|
|
694
|
-
const
|
|
809
|
+
const adminControllerReactivateOrganization = (id, options) => {
|
|
695
810
|
return axiosInstance.post(
|
|
696
|
-
`/v3/
|
|
811
|
+
`/v3/admin/organizations/${id}/reactivate`,
|
|
697
812
|
void 0,
|
|
698
813
|
options
|
|
699
814
|
);
|
|
700
815
|
};
|
|
701
|
-
const
|
|
702
|
-
return axiosInstance.get(
|
|
703
|
-
`/v3/${orgSlug}/catalog/products`,
|
|
704
|
-
{
|
|
705
|
-
...options,
|
|
706
|
-
params: { ...params, ...options?.params }
|
|
707
|
-
}
|
|
708
|
-
);
|
|
709
|
-
};
|
|
710
|
-
const catalogCreateProduct = (orgSlug, createProductDto, options) => {
|
|
711
|
-
return axiosInstance.post(
|
|
712
|
-
`/v3/${orgSlug}/catalog/products`,
|
|
713
|
-
createProductDto,
|
|
714
|
-
options
|
|
715
|
-
);
|
|
716
|
-
};
|
|
717
|
-
const catalogGetProduct = (orgSlug, idOrSlug, options) => {
|
|
816
|
+
const adminControllerGetEffectiveQuota = (id, options) => {
|
|
718
817
|
return axiosInstance.get(
|
|
719
|
-
`/v3
|
|
818
|
+
`/v3/admin/organizations/${id}/quota`,
|
|
720
819
|
options
|
|
721
820
|
);
|
|
722
821
|
};
|
|
723
|
-
const
|
|
724
|
-
return axiosInstance.
|
|
725
|
-
`/v3/${
|
|
726
|
-
|
|
727
|
-
...options,
|
|
728
|
-
params: { ...params, ...options?.params }
|
|
729
|
-
}
|
|
730
|
-
);
|
|
731
|
-
};
|
|
732
|
-
const catalogUpdateProduct = (orgSlug, id, updateProductDto, options) => {
|
|
733
|
-
return axiosInstance.patch(
|
|
734
|
-
`/v3/${orgSlug}/catalog/products/${id}`,
|
|
735
|
-
updateProductDto,
|
|
736
|
-
options
|
|
737
|
-
);
|
|
738
|
-
};
|
|
739
|
-
const catalogUpdateSupplierVariant = (orgSlug, supplierId, variantId, updateSupplierProductDto, options) => {
|
|
740
|
-
return axiosInstance.patch(
|
|
741
|
-
`/v3/${orgSlug}/catalog/suppliers/${supplierId}/variants/${variantId}`,
|
|
742
|
-
updateSupplierProductDto,
|
|
822
|
+
const adminControllerSetQuotaOverrides = (id, setQuotaOverridesDto, options) => {
|
|
823
|
+
return axiosInstance.put(
|
|
824
|
+
`/v3/admin/organizations/${id}/quota-overrides`,
|
|
825
|
+
setQuotaOverridesDto,
|
|
743
826
|
options
|
|
744
827
|
);
|
|
745
828
|
};
|
|
746
|
-
const
|
|
829
|
+
const adminControllerListMembers = (params, options) => {
|
|
747
830
|
return axiosInstance.get(
|
|
748
|
-
`/v3
|
|
749
|
-
{
|
|
750
|
-
...options,
|
|
751
|
-
params: { ...params, ...options?.params }
|
|
752
|
-
}
|
|
753
|
-
);
|
|
754
|
-
};
|
|
755
|
-
const catalogReviewPriceChangeRequest = (orgSlug, id, reviewPriceChangeDto, options) => {
|
|
756
|
-
return axiosInstance.post(
|
|
757
|
-
`/v3/${orgSlug}/catalog/price-change-requests/${id}/review`,
|
|
758
|
-
reviewPriceChangeDto,
|
|
759
|
-
options
|
|
760
|
-
);
|
|
761
|
-
};
|
|
762
|
-
const catalogCreateReview = (orgSlug, productId, createProductReviewDto, options) => {
|
|
763
|
-
return axiosInstance.post(
|
|
764
|
-
`/v3/${orgSlug}/catalog/products/${productId}/reviews`,
|
|
765
|
-
createProductReviewDto,
|
|
766
|
-
options
|
|
767
|
-
);
|
|
768
|
-
};
|
|
769
|
-
const catalogUpdateReview = (orgSlug, reviewId, updateProductReviewDto, options) => {
|
|
770
|
-
return axiosInstance.patch(
|
|
771
|
-
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
772
|
-
updateProductReviewDto,
|
|
773
|
-
options
|
|
774
|
-
);
|
|
775
|
-
};
|
|
776
|
-
const catalogDeleteReview = (orgSlug, reviewId, params, options) => {
|
|
777
|
-
return axiosInstance.delete(
|
|
778
|
-
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
831
|
+
`/v3/admin/members`,
|
|
779
832
|
{
|
|
780
833
|
...options,
|
|
781
834
|
params: { ...params, ...options?.params }
|
|
782
|
-
}
|
|
783
|
-
);
|
|
784
|
-
};
|
|
785
|
-
const
|
|
786
|
-
return axiosInstance.
|
|
787
|
-
`/v3
|
|
788
|
-
createServiceCategoryDto,
|
|
789
|
-
options
|
|
790
|
-
);
|
|
791
|
-
};
|
|
792
|
-
const servicesGetCategories = (orgSlug, options) => {
|
|
793
|
-
return axiosInstance.get(
|
|
794
|
-
`/v3/${orgSlug}/services/categories`,
|
|
795
|
-
options
|
|
796
|
-
);
|
|
797
|
-
};
|
|
798
|
-
const servicesUpdateCategory = (orgSlug, id, updateServiceCategoryDto, options) => {
|
|
799
|
-
return axiosInstance.patch(
|
|
800
|
-
`/v3/${orgSlug}/services/categories/${id}`,
|
|
801
|
-
updateServiceCategoryDto,
|
|
835
|
+
}
|
|
836
|
+
);
|
|
837
|
+
};
|
|
838
|
+
const adminControllerListUsers = (options) => {
|
|
839
|
+
return axiosInstance.get(
|
|
840
|
+
`/v3/admin/users`,
|
|
802
841
|
options
|
|
803
842
|
);
|
|
804
843
|
};
|
|
805
|
-
const
|
|
844
|
+
const adminControllerBanUser = (id, banUserDto, options) => {
|
|
806
845
|
return axiosInstance.post(
|
|
807
|
-
`/v3
|
|
808
|
-
|
|
846
|
+
`/v3/admin/users/${id}/ban`,
|
|
847
|
+
banUserDto,
|
|
809
848
|
options
|
|
810
849
|
);
|
|
811
850
|
};
|
|
812
|
-
const
|
|
851
|
+
const adminControllerUnbanUser = (id, options) => {
|
|
813
852
|
return axiosInstance.post(
|
|
814
|
-
`/v3/${
|
|
815
|
-
|
|
853
|
+
`/v3/admin/users/${id}/unban`,
|
|
854
|
+
void 0,
|
|
816
855
|
options
|
|
817
856
|
);
|
|
818
857
|
};
|
|
819
|
-
const
|
|
858
|
+
const adminControllerListConnectedApps = (options) => {
|
|
820
859
|
return axiosInstance.get(
|
|
821
|
-
`/v3
|
|
860
|
+
`/v3/admin/connected-apps`,
|
|
822
861
|
options
|
|
823
862
|
);
|
|
824
863
|
};
|
|
825
|
-
const
|
|
864
|
+
const adminControllerListSystemLogs = (options) => {
|
|
826
865
|
return axiosInstance.get(
|
|
827
|
-
`/v3
|
|
866
|
+
`/v3/admin/system-logs`,
|
|
828
867
|
options
|
|
829
868
|
);
|
|
830
869
|
};
|
|
831
|
-
const
|
|
870
|
+
const adminControllerListGlobalSettings = (options) => {
|
|
832
871
|
return axiosInstance.get(
|
|
833
|
-
`/v3
|
|
834
|
-
|
|
835
|
-
...options,
|
|
836
|
-
params: { ...params, ...options?.params }
|
|
837
|
-
}
|
|
872
|
+
`/v3/admin/settings`,
|
|
873
|
+
options
|
|
838
874
|
);
|
|
839
875
|
};
|
|
840
|
-
const
|
|
841
|
-
return axiosInstance.
|
|
842
|
-
`/v3
|
|
876
|
+
const adminControllerSetGlobalSetting = (setGlobalSettingDto, options) => {
|
|
877
|
+
return axiosInstance.post(
|
|
878
|
+
`/v3/admin/settings`,
|
|
879
|
+
setGlobalSettingDto,
|
|
843
880
|
options
|
|
844
881
|
);
|
|
845
882
|
};
|
|
846
|
-
const
|
|
847
|
-
return axiosInstance.
|
|
848
|
-
`/v3
|
|
849
|
-
updateServiceDto,
|
|
883
|
+
const adminControllerDeleteGlobalSetting = (key, options) => {
|
|
884
|
+
return axiosInstance.delete(
|
|
885
|
+
`/v3/admin/settings/${key}`,
|
|
850
886
|
options
|
|
851
887
|
);
|
|
852
888
|
};
|
|
853
|
-
const
|
|
889
|
+
const adminControllerListTiers = (options) => {
|
|
854
890
|
return axiosInstance.get(
|
|
855
|
-
`/v3
|
|
856
|
-
|
|
857
|
-
...options,
|
|
858
|
-
params: { ...params, ...options?.params }
|
|
859
|
-
}
|
|
891
|
+
`/v3/admin/tiers`,
|
|
892
|
+
options
|
|
860
893
|
);
|
|
861
894
|
};
|
|
862
|
-
const
|
|
895
|
+
const adminControllerDefineTier = (defineTierDto, options) => {
|
|
863
896
|
return axiosInstance.post(
|
|
864
|
-
`/v3
|
|
865
|
-
|
|
897
|
+
`/v3/admin/tiers`,
|
|
898
|
+
defineTierDto,
|
|
866
899
|
options
|
|
867
900
|
);
|
|
868
901
|
};
|
|
869
|
-
const
|
|
870
|
-
return axiosInstance.
|
|
871
|
-
`/v3/${
|
|
872
|
-
createServiceResourceDto,
|
|
902
|
+
const adminControllerDeleteTier = (slug, options) => {
|
|
903
|
+
return axiosInstance.delete(
|
|
904
|
+
`/v3/admin/tiers/${slug}`,
|
|
873
905
|
options
|
|
874
906
|
);
|
|
875
907
|
};
|
|
876
|
-
const
|
|
908
|
+
const adminControllerGetOrganizationSubscription = (id, options) => {
|
|
877
909
|
return axiosInstance.get(
|
|
878
|
-
`/v3/${
|
|
910
|
+
`/v3/admin/organizations/${id}/subscription`,
|
|
879
911
|
options
|
|
880
912
|
);
|
|
881
913
|
};
|
|
882
|
-
const
|
|
883
|
-
return axiosInstance.
|
|
884
|
-
`/v3
|
|
885
|
-
|
|
914
|
+
const adminControllerUpdateOrganizationSubscription = (id, updateSubscriptionDto, options) => {
|
|
915
|
+
return axiosInstance.put(
|
|
916
|
+
`/v3/admin/organizations/${id}/subscription`,
|
|
917
|
+
updateSubscriptionDto,
|
|
886
918
|
options
|
|
887
919
|
);
|
|
888
920
|
};
|
|
889
|
-
const
|
|
890
|
-
return axiosInstance.
|
|
891
|
-
`/v3
|
|
892
|
-
void 0,
|
|
921
|
+
const adminControllerListSystemPayments = (options) => {
|
|
922
|
+
return axiosInstance.get(
|
|
923
|
+
`/v3/admin/payments`,
|
|
893
924
|
options
|
|
894
925
|
);
|
|
895
926
|
};
|
|
896
|
-
const
|
|
927
|
+
const adminControllerRecordCustomPayment = (recordCustomPaymentDto, options) => {
|
|
897
928
|
return axiosInstance.post(
|
|
898
|
-
`/v3
|
|
899
|
-
|
|
929
|
+
`/v3/admin/payments/record`,
|
|
930
|
+
recordCustomPaymentDto,
|
|
900
931
|
options
|
|
901
932
|
);
|
|
902
933
|
};
|
|
903
|
-
const
|
|
934
|
+
const adminControllerListIntegrationDefinitions = (options) => {
|
|
904
935
|
return axiosInstance.get(
|
|
905
|
-
`/v3
|
|
936
|
+
`/v3/admin/integrations/definitions`,
|
|
906
937
|
options
|
|
907
938
|
);
|
|
908
939
|
};
|
|
909
|
-
const
|
|
910
|
-
return axiosInstance.
|
|
911
|
-
`/v3
|
|
940
|
+
const adminControllerCreateIntegrationDefinition = (createIntegrationDefinitionDto, options) => {
|
|
941
|
+
return axiosInstance.post(
|
|
942
|
+
`/v3/admin/integrations/definitions`,
|
|
943
|
+
createIntegrationDefinitionDto,
|
|
912
944
|
options
|
|
913
945
|
);
|
|
914
946
|
};
|
|
915
|
-
const
|
|
947
|
+
const adminControllerUpdateIntegrationDefinition = (id, updateIntegrationDefinitionDto, options) => {
|
|
916
948
|
return axiosInstance.patch(
|
|
917
|
-
`/v3
|
|
918
|
-
|
|
949
|
+
`/v3/admin/integrations/definitions/${id}`,
|
|
950
|
+
updateIntegrationDefinitionDto,
|
|
919
951
|
options
|
|
920
952
|
);
|
|
921
953
|
};
|
|
922
|
-
const
|
|
923
|
-
return axiosInstance.
|
|
924
|
-
`/v3
|
|
925
|
-
completeBookingDto,
|
|
954
|
+
const adminControllerDeleteIntegrationDefinition = (id, options) => {
|
|
955
|
+
return axiosInstance.delete(
|
|
956
|
+
`/v3/admin/integrations/definitions/${id}`,
|
|
926
957
|
options
|
|
927
958
|
);
|
|
928
959
|
};
|
|
929
|
-
const
|
|
930
|
-
return axiosInstance.
|
|
931
|
-
`/v3
|
|
932
|
-
void 0,
|
|
960
|
+
const adminControllerListActiveOrganizationIntegrations = (options) => {
|
|
961
|
+
return axiosInstance.get(
|
|
962
|
+
`/v3/admin/integrations/active`,
|
|
933
963
|
options
|
|
934
964
|
);
|
|
935
965
|
};
|
|
936
|
-
const
|
|
966
|
+
const webhooksCreate = (orgSlug, createWebhookDto, options) => {
|
|
937
967
|
return axiosInstance.post(
|
|
938
|
-
`/v3/${orgSlug}/
|
|
939
|
-
|
|
968
|
+
`/v3/${orgSlug}/webhooks`,
|
|
969
|
+
createWebhookDto,
|
|
940
970
|
options
|
|
941
971
|
);
|
|
942
972
|
};
|
|
943
|
-
const
|
|
973
|
+
const webhooksList = (orgSlug, options) => {
|
|
944
974
|
return axiosInstance.get(
|
|
945
|
-
`/v3/${orgSlug}/
|
|
946
|
-
options
|
|
947
|
-
);
|
|
948
|
-
};
|
|
949
|
-
const servicesAddBreak = (orgSlug, shiftId, servicesAddBreakBody, options) => {
|
|
950
|
-
return axiosInstance.post(
|
|
951
|
-
`/v3/${orgSlug}/services/shifts/${shiftId}/breaks`,
|
|
952
|
-
servicesAddBreakBody,
|
|
975
|
+
`/v3/${orgSlug}/webhooks`,
|
|
953
976
|
options
|
|
954
977
|
);
|
|
955
978
|
};
|
|
956
|
-
const
|
|
957
|
-
return axiosInstance.
|
|
958
|
-
`/v3/${orgSlug}/
|
|
959
|
-
servicesRegisterCustomerAppBody,
|
|
979
|
+
const webhooksDelete = (orgSlug, id, options) => {
|
|
980
|
+
return axiosInstance.delete(
|
|
981
|
+
`/v3/${orgSlug}/webhooks/${id}`,
|
|
960
982
|
options
|
|
961
983
|
);
|
|
962
984
|
};
|
|
963
|
-
const
|
|
985
|
+
const catalogGetProducts = (orgSlug, params, options) => {
|
|
964
986
|
return axiosInstance.get(
|
|
965
|
-
`/v3/${orgSlug}/
|
|
987
|
+
`/v3/${orgSlug}/catalog/products`,
|
|
966
988
|
{
|
|
967
989
|
...options,
|
|
968
990
|
params: { ...params, ...options?.params }
|
|
969
991
|
}
|
|
970
992
|
);
|
|
971
993
|
};
|
|
972
|
-
const
|
|
994
|
+
const catalogCreateProduct = (orgSlug, createProductDto, options) => {
|
|
995
|
+
return axiosInstance.post(
|
|
996
|
+
`/v3/${orgSlug}/catalog/products`,
|
|
997
|
+
createProductDto,
|
|
998
|
+
options
|
|
999
|
+
);
|
|
1000
|
+
};
|
|
1001
|
+
const catalogGetProduct = (orgSlug, idOrSlug, options) => {
|
|
973
1002
|
return axiosInstance.get(
|
|
974
|
-
`/v3/${orgSlug}/
|
|
975
|
-
|
|
976
|
-
...options,
|
|
977
|
-
params: { ...params, ...options?.params }
|
|
978
|
-
}
|
|
1003
|
+
`/v3/${orgSlug}/catalog/products/${idOrSlug}`,
|
|
1004
|
+
options
|
|
979
1005
|
);
|
|
980
1006
|
};
|
|
981
|
-
const
|
|
1007
|
+
const catalogGetServices = (orgSlug, params, options) => {
|
|
982
1008
|
return axiosInstance.get(
|
|
983
|
-
`/v3/${orgSlug}/services
|
|
1009
|
+
`/v3/${orgSlug}/catalog/services`,
|
|
984
1010
|
{
|
|
985
1011
|
...options,
|
|
986
1012
|
params: { ...params, ...options?.params }
|
|
987
1013
|
}
|
|
988
1014
|
);
|
|
989
1015
|
};
|
|
990
|
-
const
|
|
991
|
-
return axiosInstance.
|
|
992
|
-
`/v3
|
|
993
|
-
|
|
994
|
-
);
|
|
995
|
-
};
|
|
996
|
-
const publicServicesGetCategories = (orgSlug, options) => {
|
|
997
|
-
return axiosInstance.get(
|
|
998
|
-
`/v3/public/${orgSlug}/services/categories`,
|
|
1016
|
+
const catalogUpdateProduct = (orgSlug, id, updateProductDto, options) => {
|
|
1017
|
+
return axiosInstance.patch(
|
|
1018
|
+
`/v3/${orgSlug}/catalog/products/${id}`,
|
|
1019
|
+
updateProductDto,
|
|
999
1020
|
options
|
|
1000
1021
|
);
|
|
1001
1022
|
};
|
|
1002
|
-
const
|
|
1003
|
-
return axiosInstance.
|
|
1004
|
-
`/v3
|
|
1023
|
+
const catalogUpdateSupplierVariant = (orgSlug, supplierId, variantId, updateSupplierProductDto, options) => {
|
|
1024
|
+
return axiosInstance.patch(
|
|
1025
|
+
`/v3/${orgSlug}/catalog/suppliers/${supplierId}/variants/${variantId}`,
|
|
1026
|
+
updateSupplierProductDto,
|
|
1005
1027
|
options
|
|
1006
1028
|
);
|
|
1007
1029
|
};
|
|
1008
|
-
const
|
|
1030
|
+
const catalogGetPriceChangeRequests = (orgSlug, params, options) => {
|
|
1009
1031
|
return axiosInstance.get(
|
|
1010
|
-
`/v3
|
|
1032
|
+
`/v3/${orgSlug}/catalog/price-change-requests`,
|
|
1011
1033
|
{
|
|
1012
1034
|
...options,
|
|
1013
1035
|
params: { ...params, ...options?.params }
|
|
1014
1036
|
}
|
|
1015
1037
|
);
|
|
1016
1038
|
};
|
|
1017
|
-
const
|
|
1039
|
+
const catalogReviewPriceChangeRequest = (orgSlug, id, reviewPriceChangeDto, options) => {
|
|
1018
1040
|
return axiosInstance.post(
|
|
1019
|
-
`/v3
|
|
1020
|
-
|
|
1041
|
+
`/v3/${orgSlug}/catalog/price-change-requests/${id}/review`,
|
|
1042
|
+
reviewPriceChangeDto,
|
|
1021
1043
|
options
|
|
1022
1044
|
);
|
|
1023
1045
|
};
|
|
1024
|
-
const
|
|
1046
|
+
const catalogCreateReview = (orgSlug, productId, createProductReviewDto, options) => {
|
|
1025
1047
|
return axiosInstance.post(
|
|
1026
|
-
`/v3
|
|
1027
|
-
|
|
1048
|
+
`/v3/${orgSlug}/catalog/products/${productId}/reviews`,
|
|
1049
|
+
createProductReviewDto,
|
|
1028
1050
|
options
|
|
1029
1051
|
);
|
|
1030
1052
|
};
|
|
1031
|
-
const
|
|
1032
|
-
return axiosInstance.
|
|
1033
|
-
`/v3
|
|
1034
|
-
|
|
1053
|
+
const catalogUpdateReview = (orgSlug, reviewId, updateProductReviewDto, options) => {
|
|
1054
|
+
return axiosInstance.patch(
|
|
1055
|
+
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
1056
|
+
updateProductReviewDto,
|
|
1035
1057
|
options
|
|
1036
1058
|
);
|
|
1037
1059
|
};
|
|
1060
|
+
const catalogDeleteReview = (orgSlug, reviewId, params, options) => {
|
|
1061
|
+
return axiosInstance.delete(
|
|
1062
|
+
`/v3/${orgSlug}/catalog/reviews/${reviewId}`,
|
|
1063
|
+
{
|
|
1064
|
+
...options,
|
|
1065
|
+
params: { ...params, ...options?.params }
|
|
1066
|
+
}
|
|
1067
|
+
);
|
|
1068
|
+
};
|
|
1038
1069
|
const customersGetCustomers = (orgSlug, params, options) => {
|
|
1039
1070
|
return axiosInstance.get(
|
|
1040
1071
|
`/v3/${orgSlug}/customers`,
|
|
@@ -1299,6 +1330,13 @@ var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
|
1299
1330
|
options
|
|
1300
1331
|
);
|
|
1301
1332
|
};
|
|
1333
|
+
const paymentsCheckout = (orgSlug, checkoutDto, options) => {
|
|
1334
|
+
return axiosInstance.post(
|
|
1335
|
+
`/v3/${orgSlug}/payments/checkout`,
|
|
1336
|
+
checkoutDto,
|
|
1337
|
+
options
|
|
1338
|
+
);
|
|
1339
|
+
};
|
|
1302
1340
|
const paymentsControllerHandleStkCallback = (orgSlug, paymentId, options) => {
|
|
1303
1341
|
return axiosInstance.post(
|
|
1304
1342
|
`/v3/${orgSlug}/payments/webhooks/mpesa/stkpush/${paymentId}`,
|
|
@@ -1367,6 +1405,26 @@ var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
|
1367
1405
|
}
|
|
1368
1406
|
);
|
|
1369
1407
|
};
|
|
1408
|
+
const pOSCreatePairingSession = (options) => {
|
|
1409
|
+
return axiosInstance.post(
|
|
1410
|
+
`/v3/pos/pairing/session`,
|
|
1411
|
+
void 0,
|
|
1412
|
+
options
|
|
1413
|
+
);
|
|
1414
|
+
};
|
|
1415
|
+
const pOSGetPairingSessionStatus = (sessionId, options) => {
|
|
1416
|
+
return axiosInstance.get(
|
|
1417
|
+
`/v3/pos/pairing/session/${sessionId}/status`,
|
|
1418
|
+
options
|
|
1419
|
+
);
|
|
1420
|
+
};
|
|
1421
|
+
const pOSAuthorizePairingSession = (sessionId, options) => {
|
|
1422
|
+
return axiosInstance.post(
|
|
1423
|
+
`/v3/pos/pairing/session/${sessionId}/authorize`,
|
|
1424
|
+
void 0,
|
|
1425
|
+
options
|
|
1426
|
+
);
|
|
1427
|
+
};
|
|
1370
1428
|
const membersControllerGetMembers = (orgSlug, params, options) => {
|
|
1371
1429
|
return axiosInstance.get(
|
|
1372
1430
|
`/v3/${orgSlug}/members`,
|
|
@@ -2010,14 +2068,7 @@ var getScrymeV3API = (axiosInstance = import_axios.default) => {
|
|
|
2010
2068
|
}
|
|
2011
2069
|
);
|
|
2012
2070
|
};
|
|
2013
|
-
|
|
2014
|
-
return axiosInstance.post(
|
|
2015
|
-
`/v3/${orgSlug}/payments/checkout`,
|
|
2016
|
-
checkoutDto,
|
|
2017
|
-
options
|
|
2018
|
-
);
|
|
2019
|
-
};
|
|
2020
|
-
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 };
|
|
2071
|
+
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 };
|
|
2021
2072
|
};
|
|
2022
2073
|
|
|
2023
2074
|
// src/generated/model/addDepartmentMemberDtoRole.ts
|
|
@@ -2627,6 +2678,11 @@ var catalogMapping = {
|
|
|
2627
2678
|
};
|
|
2628
2679
|
var authMapping = {
|
|
2629
2680
|
exchangeToken: "authExchangeToken",
|
|
2681
|
+
createOAuthClient: "authCreateOAuthClient",
|
|
2682
|
+
listOAuthClients: "authListOAuthClients",
|
|
2683
|
+
getOAuthClient: "authGetOAuthClient",
|
|
2684
|
+
updateOAuthClient: "authUpdateOAuthClient",
|
|
2685
|
+
deleteOAuthClient: "authDeleteOAuthClient",
|
|
2630
2686
|
handleOAuth2: "authControllerHandleOAuth2"
|
|
2631
2687
|
};
|
|
2632
2688
|
var inventoryMapping = {
|
|
@@ -2869,6 +2925,10 @@ var adminMapping = {
|
|
|
2869
2925
|
getOrganizationDetails: "adminControllerGetOrganizationDetails",
|
|
2870
2926
|
updateOrganization: "adminControllerUpdateOrganization",
|
|
2871
2927
|
deleteOrganization: "adminControllerDeleteOrganization",
|
|
2928
|
+
suspendOrganization: "adminControllerSuspendOrganization",
|
|
2929
|
+
reactivateOrganization: "adminControllerReactivateOrganization",
|
|
2930
|
+
getEffectiveQuota: "adminControllerGetEffectiveQuota",
|
|
2931
|
+
setQuotaOverrides: "adminControllerSetQuotaOverrides",
|
|
2872
2932
|
listMembers: "adminControllerListMembers",
|
|
2873
2933
|
listUsers: "adminControllerListUsers",
|
|
2874
2934
|
banUser: "adminControllerBanUser",
|
|
@@ -2893,10 +2953,6 @@ var adminMapping = {
|
|
|
2893
2953
|
createWebhook: "webhooksCreate",
|
|
2894
2954
|
listWebhooks: "webhooksList",
|
|
2895
2955
|
deleteWebhook: "webhooksDelete",
|
|
2896
|
-
handleWindmillCallback: "windmillCallbackControllerHandleCallback",
|
|
2897
|
-
handleWindmillApprovalCallback: "windmillCallbackControllerHandleApprovalCallback",
|
|
2898
|
-
handleWindmillBakeryDisposalCallback: "windmillCallbackControllerHandleBakeryDisposalCallback",
|
|
2899
|
-
handleWindmillOutcomeCallback: "windmillCallbackControllerHandleOutcomeCallback",
|
|
2900
2956
|
getCustomers: "customersGetCustomers",
|
|
2901
2957
|
registerCustomer: "customersRegister",
|
|
2902
2958
|
updateCustomer: "customersUpdate",
|