@wix/auto_sdk_bookings_services 1.0.277 → 1.0.279

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.
Files changed (43) hide show
  1. package/build/cjs/{bookings-services-v2-service-services.universal-C9w--XSp.d.ts → bookings-services-v2-service-services.universal-DM8OiYeR.d.ts} +5 -5
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +2 -2
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +6 -6
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/cjs/schemas.js +7701 -7334
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/{bookings-services-v2-service-services.universal-C9w--XSp.d.mts → bookings-services-v2-service-services.universal-DM8OiYeR.d.mts} +5 -5
  11. package/build/es/index.d.mts +2 -2
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +2 -2
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.d.mts +6 -6
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/es/schemas.mjs +7701 -7334
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/{bookings-services-v2-service-services.universal-DsaHtTHm.d.ts → bookings-services-v2-service-services.universal-D1GNa9Dd.d.ts} +5 -5
  20. package/build/internal/cjs/index.d.ts +2 -2
  21. package/build/internal/cjs/index.typings.d.ts +2 -2
  22. package/build/internal/cjs/meta.d.ts +6 -6
  23. package/build/internal/es/{bookings-services-v2-service-services.universal-DsaHtTHm.d.mts → bookings-services-v2-service-services.universal-D1GNa9Dd.d.mts} +5 -5
  24. package/build/internal/es/index.d.mts +2 -2
  25. package/build/internal/es/index.typings.d.mts +2 -2
  26. package/build/internal/es/meta.d.mts +6 -6
  27. package/package.json +2 -2
  28. package/build/internal/cjs/index.js +0 -4135
  29. package/build/internal/cjs/index.js.map +0 -1
  30. package/build/internal/cjs/index.typings.js +0 -3684
  31. package/build/internal/cjs/index.typings.js.map +0 -1
  32. package/build/internal/cjs/meta.js +0 -2698
  33. package/build/internal/cjs/meta.js.map +0 -1
  34. package/build/internal/cjs/schemas.js +0 -17303
  35. package/build/internal/cjs/schemas.js.map +0 -1
  36. package/build/internal/es/index.mjs +0 -4034
  37. package/build/internal/es/index.mjs.map +0 -1
  38. package/build/internal/es/index.typings.mjs +0 -3585
  39. package/build/internal/es/index.typings.mjs.map +0 -1
  40. package/build/internal/es/meta.mjs +0 -2598
  41. package/build/internal/es/meta.mjs.map +0 -1
  42. package/build/internal/es/schemas.mjs +0 -17213
  43. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,2598 +0,0 @@
1
- // src/bookings-services-v2-service-services.http.ts
2
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
- import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
- import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
- import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
- function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
11
- const domainToMappings = {
12
- "*.dev.wix-code.com": [
13
- {
14
- srcPath: "/_api/services-2",
15
- destPath: ""
16
- },
17
- {
18
- srcPath: "/_api/bookings/v2/services",
19
- destPath: "/v2/services"
20
- }
21
- ],
22
- "www.wixapis.com": [
23
- {
24
- srcPath: "/_api/bookings/v2/services",
25
- destPath: "/v2/services"
26
- },
27
- {
28
- srcPath: "/bookings/v2/services",
29
- destPath: "/v2/services"
30
- },
31
- {
32
- srcPath: "/bookings/v2/bulk/services",
33
- destPath: "/v2/bulk/services"
34
- },
35
- {
36
- srcPath: "/bookings/services/v2/bulk/services",
37
- destPath: "/v2/bulk/services"
38
- }
39
- ],
40
- "manage._base_domain_": [
41
- {
42
- srcPath: "/_api/bookings/v2/services",
43
- destPath: "/v2/services"
44
- },
45
- {
46
- srcPath: "/_api/bookings/v2/bulk/services",
47
- destPath: "/v2/bulk/services"
48
- }
49
- ],
50
- "editor._base_domain_": [
51
- {
52
- srcPath: "/_api/bookings/v2/services",
53
- destPath: "/v2/services"
54
- },
55
- {
56
- srcPath: "/_api/bookings/v2/bulk/services",
57
- destPath: "/v2/bulk/services"
58
- }
59
- ],
60
- "blocks._base_domain_": [
61
- {
62
- srcPath: "/_api/bookings/v2/services",
63
- destPath: "/v2/services"
64
- },
65
- {
66
- srcPath: "/_api/bookings/v2/bulk/services",
67
- destPath: "/v2/bulk/services"
68
- }
69
- ],
70
- "create.editorx": [
71
- {
72
- srcPath: "/_api/bookings/v2/services",
73
- destPath: "/v2/services"
74
- },
75
- {
76
- srcPath: "/_api/bookings/v2/bulk/services",
77
- destPath: "/v2/bulk/services"
78
- }
79
- ],
80
- _: [
81
- {
82
- srcPath: "/_api/bookings/v2/services",
83
- destPath: "/v2/services"
84
- }
85
- ],
86
- "www._base_domain_": [
87
- {
88
- srcPath: "/_api/bookings/v2/services",
89
- destPath: "/v2/services"
90
- }
91
- ],
92
- "bo._base_domain_": [
93
- {
94
- srcPath: "/_api/bookings/v2/services",
95
- destPath: "/v2/services"
96
- }
97
- ],
98
- "wixbo.ai": [
99
- {
100
- srcPath: "/_api/bookings/v2/services",
101
- destPath: "/v2/services"
102
- }
103
- ],
104
- "wix-bo.com": [
105
- {
106
- srcPath: "/_api/bookings/v2/services",
107
- destPath: "/v2/services"
108
- }
109
- ],
110
- "editor.wixapps.net": [
111
- {
112
- srcPath: "/_api/bookings/v2/services",
113
- destPath: "/v2/services"
114
- }
115
- ],
116
- "api._api_base_domain_": [
117
- {
118
- srcPath: "/services-2",
119
- destPath: ""
120
- }
121
- ]
122
- };
123
- return resolveUrl(Object.assign(opts, { domainToMappings }));
124
- }
125
- function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
126
- const domainToMappings = {
127
- "*.dev.wix-code.com": [
128
- {
129
- srcPath: "/_api/services-2",
130
- destPath: ""
131
- },
132
- {
133
- srcPath: "/_api/bookings/v2/services",
134
- destPath: "/v2/services"
135
- }
136
- ],
137
- "www.wixapis.com": [
138
- {
139
- srcPath: "/_api/bookings/v2/services",
140
- destPath: "/v2/services"
141
- },
142
- {
143
- srcPath: "/bookings/v2/services",
144
- destPath: "/v2/services"
145
- },
146
- {
147
- srcPath: "/bookings/v2/bulk/services",
148
- destPath: "/v2/bulk/services"
149
- },
150
- {
151
- srcPath: "/bookings/services/v2/bulk/services",
152
- destPath: "/v2/bulk/services"
153
- }
154
- ],
155
- "manage._base_domain_": [
156
- {
157
- srcPath: "/_api/bookings/v2/services",
158
- destPath: "/v2/services"
159
- },
160
- {
161
- srcPath: "/_api/bookings/v2/bulk/services",
162
- destPath: "/v2/bulk/services"
163
- }
164
- ],
165
- "editor._base_domain_": [
166
- {
167
- srcPath: "/_api/bookings/v2/services",
168
- destPath: "/v2/services"
169
- },
170
- {
171
- srcPath: "/_api/bookings/v2/bulk/services",
172
- destPath: "/v2/bulk/services"
173
- }
174
- ],
175
- "blocks._base_domain_": [
176
- {
177
- srcPath: "/_api/bookings/v2/services",
178
- destPath: "/v2/services"
179
- },
180
- {
181
- srcPath: "/_api/bookings/v2/bulk/services",
182
- destPath: "/v2/bulk/services"
183
- }
184
- ],
185
- "create.editorx": [
186
- {
187
- srcPath: "/_api/bookings/v2/services",
188
- destPath: "/v2/services"
189
- },
190
- {
191
- srcPath: "/_api/bookings/v2/bulk/services",
192
- destPath: "/v2/bulk/services"
193
- }
194
- ],
195
- _: [
196
- {
197
- srcPath: "/_api/bookings/v2/services",
198
- destPath: "/v2/services"
199
- }
200
- ],
201
- "www._base_domain_": [
202
- {
203
- srcPath: "/_api/bookings/v2/services",
204
- destPath: "/v2/services"
205
- }
206
- ],
207
- "bo._base_domain_": [
208
- {
209
- srcPath: "/_api/bookings/v2/services",
210
- destPath: "/v2/services"
211
- }
212
- ],
213
- "wixbo.ai": [
214
- {
215
- srcPath: "/_api/bookings/v2/services",
216
- destPath: "/v2/services"
217
- }
218
- ],
219
- "wix-bo.com": [
220
- {
221
- srcPath: "/_api/bookings/v2/services",
222
- destPath: "/v2/services"
223
- }
224
- ],
225
- "editor.wixapps.net": [
226
- {
227
- srcPath: "/_api/bookings/v2/services",
228
- destPath: "/v2/services"
229
- }
230
- ],
231
- "api._api_base_domain_": [
232
- {
233
- srcPath: "/services-2",
234
- destPath: ""
235
- }
236
- ]
237
- };
238
- return resolveUrl(Object.assign(opts, { domainToMappings }));
239
- }
240
- var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
241
- function createService(payload) {
242
- function __createService({ host }) {
243
- const serializedData = transformPaths(payload, [
244
- {
245
- transformFn: transformSDKTimestampToRESTTimestamp,
246
- paths: [
247
- { path: "service.createdDate" },
248
- { path: "service.updatedDate" },
249
- { path: "service.media.items.image.urlExpirationDate" },
250
- { path: "service.media.mainMedia.image.urlExpirationDate" },
251
- { path: "service.media.coverMedia.image.urlExpirationDate" },
252
- { path: "service.payment.subscription.recurringStartDate" },
253
- { path: "service.bookingPolicy.createdDate" },
254
- { path: "service.bookingPolicy.updatedDate" },
255
- { path: "service.schedule.firstSessionStart" },
256
- { path: "service.schedule.lastSessionEnd" },
257
- { path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
258
- {
259
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
260
- },
261
- { path: "service.supportedSlugs.createdDate" },
262
- { path: "service.mainSlug.createdDate" }
263
- ]
264
- },
265
- {
266
- transformFn: transformSDKFloatToRESTFloat,
267
- paths: [
268
- { path: "service.locations.business.address.geocode.latitude" },
269
- { path: "service.locations.business.address.geocode.longitude" },
270
- { path: "service.locations.custom.address.geocode.latitude" },
271
- { path: "service.locations.custom.address.geocode.longitude" },
272
- { path: "service.locations.calculatedAddress.geocode.latitude" },
273
- { path: "service.locations.calculatedAddress.geocode.longitude" }
274
- ]
275
- }
276
- ]);
277
- const metadata = {
278
- entityFqdn: "wix.bookings.services.v2.service",
279
- method: "POST",
280
- methodFqn: "wix.bookings.services.v2.ServicesService.CreateService",
281
- packageName: PACKAGE_NAME,
282
- migrationOptions: {
283
- optInTransformResponse: true
284
- },
285
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
286
- protoPath: "/v2/services",
287
- data: serializedData,
288
- host
289
- }),
290
- data: serializedData,
291
- transformResponse: (payload2) => transformPaths(payload2, [
292
- {
293
- transformFn: transformRESTTimestampToSDKTimestamp,
294
- paths: [
295
- { path: "service.createdDate" },
296
- { path: "service.updatedDate" },
297
- { path: "service.media.items.image.urlExpirationDate" },
298
- { path: "service.media.mainMedia.image.urlExpirationDate" },
299
- { path: "service.media.coverMedia.image.urlExpirationDate" },
300
- { path: "service.payment.subscription.recurringStartDate" },
301
- { path: "service.bookingPolicy.createdDate" },
302
- { path: "service.bookingPolicy.updatedDate" },
303
- { path: "service.schedule.firstSessionStart" },
304
- { path: "service.schedule.lastSessionEnd" },
305
- {
306
- path: "service.staffMembers.mainMedia.image.urlExpirationDate"
307
- },
308
- {
309
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
310
- },
311
- { path: "service.supportedSlugs.createdDate" },
312
- { path: "service.mainSlug.createdDate" }
313
- ]
314
- },
315
- {
316
- transformFn: transformRESTFloatToSDKFloat,
317
- paths: [
318
- { path: "service.locations.business.address.geocode.latitude" },
319
- { path: "service.locations.business.address.geocode.longitude" },
320
- { path: "service.locations.custom.address.geocode.latitude" },
321
- { path: "service.locations.custom.address.geocode.longitude" },
322
- { path: "service.locations.calculatedAddress.geocode.latitude" },
323
- { path: "service.locations.calculatedAddress.geocode.longitude" }
324
- ]
325
- }
326
- ])
327
- };
328
- return metadata;
329
- }
330
- return __createService;
331
- }
332
- function bulkCreateServices(payload) {
333
- function __bulkCreateServices({ host }) {
334
- const serializedData = transformPaths(payload, [
335
- {
336
- transformFn: transformSDKTimestampToRESTTimestamp,
337
- paths: [
338
- { path: "services.createdDate" },
339
- { path: "services.updatedDate" },
340
- { path: "services.media.items.image.urlExpirationDate" },
341
- { path: "services.media.mainMedia.image.urlExpirationDate" },
342
- { path: "services.media.coverMedia.image.urlExpirationDate" },
343
- { path: "services.payment.subscription.recurringStartDate" },
344
- { path: "services.bookingPolicy.createdDate" },
345
- { path: "services.bookingPolicy.updatedDate" },
346
- { path: "services.schedule.firstSessionStart" },
347
- { path: "services.schedule.lastSessionEnd" },
348
- { path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
349
- {
350
- path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
351
- },
352
- { path: "services.supportedSlugs.createdDate" },
353
- { path: "services.mainSlug.createdDate" }
354
- ]
355
- },
356
- {
357
- transformFn: transformSDKFloatToRESTFloat,
358
- paths: [
359
- { path: "services.locations.business.address.geocode.latitude" },
360
- { path: "services.locations.business.address.geocode.longitude" },
361
- { path: "services.locations.custom.address.geocode.latitude" },
362
- { path: "services.locations.custom.address.geocode.longitude" },
363
- { path: "services.locations.calculatedAddress.geocode.latitude" },
364
- { path: "services.locations.calculatedAddress.geocode.longitude" }
365
- ]
366
- }
367
- ]);
368
- const metadata = {
369
- entityFqdn: "wix.bookings.services.v2.service",
370
- method: "POST",
371
- methodFqn: "wix.bookings.services.v2.ServicesService.BulkCreateServices",
372
- packageName: PACKAGE_NAME,
373
- migrationOptions: {
374
- optInTransformResponse: true
375
- },
376
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
377
- protoPath: "/v2/bulk/services/create",
378
- data: serializedData,
379
- host
380
- }),
381
- data: serializedData,
382
- transformResponse: (payload2) => transformPaths(payload2, [
383
- {
384
- transformFn: transformRESTTimestampToSDKTimestamp,
385
- paths: [
386
- { path: "results.item.createdDate" },
387
- { path: "results.item.updatedDate" },
388
- { path: "results.item.media.items.image.urlExpirationDate" },
389
- { path: "results.item.media.mainMedia.image.urlExpirationDate" },
390
- { path: "results.item.media.coverMedia.image.urlExpirationDate" },
391
- { path: "results.item.payment.subscription.recurringStartDate" },
392
- { path: "results.item.bookingPolicy.createdDate" },
393
- { path: "results.item.bookingPolicy.updatedDate" },
394
- { path: "results.item.schedule.firstSessionStart" },
395
- { path: "results.item.schedule.lastSessionEnd" },
396
- {
397
- path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
398
- },
399
- {
400
- path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
401
- },
402
- { path: "results.item.supportedSlugs.createdDate" },
403
- { path: "results.item.mainSlug.createdDate" }
404
- ]
405
- },
406
- {
407
- transformFn: transformRESTFloatToSDKFloat,
408
- paths: [
409
- {
410
- path: "results.item.locations.business.address.geocode.latitude"
411
- },
412
- {
413
- path: "results.item.locations.business.address.geocode.longitude"
414
- },
415
- {
416
- path: "results.item.locations.custom.address.geocode.latitude"
417
- },
418
- {
419
- path: "results.item.locations.custom.address.geocode.longitude"
420
- },
421
- {
422
- path: "results.item.locations.calculatedAddress.geocode.latitude"
423
- },
424
- {
425
- path: "results.item.locations.calculatedAddress.geocode.longitude"
426
- }
427
- ]
428
- }
429
- ])
430
- };
431
- return metadata;
432
- }
433
- return __bulkCreateServices;
434
- }
435
- function getService(payload) {
436
- function __getService({ host }) {
437
- const metadata = {
438
- entityFqdn: "wix.bookings.services.v2.service",
439
- method: "GET",
440
- methodFqn: "wix.bookings.services.v2.ServicesService.GetService",
441
- packageName: PACKAGE_NAME,
442
- migrationOptions: {
443
- optInTransformResponse: true
444
- },
445
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
446
- protoPath: "/v2/services/{serviceId}",
447
- data: payload,
448
- host
449
- }),
450
- params: toURLSearchParams(payload),
451
- transformResponse: (payload2) => transformPaths(payload2, [
452
- {
453
- transformFn: transformRESTTimestampToSDKTimestamp,
454
- paths: [
455
- { path: "service.createdDate" },
456
- { path: "service.updatedDate" },
457
- { path: "service.media.items.image.urlExpirationDate" },
458
- { path: "service.media.mainMedia.image.urlExpirationDate" },
459
- { path: "service.media.coverMedia.image.urlExpirationDate" },
460
- { path: "service.payment.subscription.recurringStartDate" },
461
- { path: "service.bookingPolicy.createdDate" },
462
- { path: "service.bookingPolicy.updatedDate" },
463
- { path: "service.schedule.firstSessionStart" },
464
- { path: "service.schedule.lastSessionEnd" },
465
- {
466
- path: "service.staffMembers.mainMedia.image.urlExpirationDate"
467
- },
468
- {
469
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
470
- },
471
- { path: "service.supportedSlugs.createdDate" },
472
- { path: "service.mainSlug.createdDate" }
473
- ]
474
- },
475
- {
476
- transformFn: transformRESTFloatToSDKFloat,
477
- paths: [
478
- { path: "service.locations.business.address.geocode.latitude" },
479
- { path: "service.locations.business.address.geocode.longitude" },
480
- { path: "service.locations.custom.address.geocode.latitude" },
481
- { path: "service.locations.custom.address.geocode.longitude" },
482
- { path: "service.locations.calculatedAddress.geocode.latitude" },
483
- { path: "service.locations.calculatedAddress.geocode.longitude" }
484
- ]
485
- }
486
- ])
487
- };
488
- return metadata;
489
- }
490
- return __getService;
491
- }
492
- function updateService(payload) {
493
- function __updateService({ host }) {
494
- const serializedData = transformPaths(payload, [
495
- {
496
- transformFn: transformSDKFieldMaskToRESTFieldMask,
497
- paths: [{ path: "mask" }]
498
- },
499
- {
500
- transformFn: transformSDKTimestampToRESTTimestamp,
501
- paths: [
502
- { path: "service.createdDate" },
503
- { path: "service.updatedDate" },
504
- { path: "service.media.items.image.urlExpirationDate" },
505
- { path: "service.media.mainMedia.image.urlExpirationDate" },
506
- { path: "service.media.coverMedia.image.urlExpirationDate" },
507
- { path: "service.payment.subscription.recurringStartDate" },
508
- { path: "service.bookingPolicy.createdDate" },
509
- { path: "service.bookingPolicy.updatedDate" },
510
- { path: "service.schedule.firstSessionStart" },
511
- { path: "service.schedule.lastSessionEnd" },
512
- { path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
513
- {
514
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
515
- },
516
- { path: "service.supportedSlugs.createdDate" },
517
- { path: "service.mainSlug.createdDate" }
518
- ]
519
- },
520
- {
521
- transformFn: transformSDKFloatToRESTFloat,
522
- paths: [
523
- { path: "service.locations.business.address.geocode.latitude" },
524
- { path: "service.locations.business.address.geocode.longitude" },
525
- { path: "service.locations.custom.address.geocode.latitude" },
526
- { path: "service.locations.custom.address.geocode.longitude" },
527
- { path: "service.locations.calculatedAddress.geocode.latitude" },
528
- { path: "service.locations.calculatedAddress.geocode.longitude" }
529
- ]
530
- }
531
- ]);
532
- const metadata = {
533
- entityFqdn: "wix.bookings.services.v2.service",
534
- method: "PATCH",
535
- methodFqn: "wix.bookings.services.v2.ServicesService.UpdateService",
536
- packageName: PACKAGE_NAME,
537
- migrationOptions: {
538
- optInTransformResponse: true
539
- },
540
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
541
- protoPath: "/v2/services/{service.id}",
542
- data: serializedData,
543
- host
544
- }),
545
- data: serializedData,
546
- transformResponse: (payload2) => transformPaths(payload2, [
547
- {
548
- transformFn: transformRESTTimestampToSDKTimestamp,
549
- paths: [
550
- { path: "service.createdDate" },
551
- { path: "service.updatedDate" },
552
- { path: "service.media.items.image.urlExpirationDate" },
553
- { path: "service.media.mainMedia.image.urlExpirationDate" },
554
- { path: "service.media.coverMedia.image.urlExpirationDate" },
555
- { path: "service.payment.subscription.recurringStartDate" },
556
- { path: "service.bookingPolicy.createdDate" },
557
- { path: "service.bookingPolicy.updatedDate" },
558
- { path: "service.schedule.firstSessionStart" },
559
- { path: "service.schedule.lastSessionEnd" },
560
- {
561
- path: "service.staffMembers.mainMedia.image.urlExpirationDate"
562
- },
563
- {
564
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
565
- },
566
- { path: "service.supportedSlugs.createdDate" },
567
- { path: "service.mainSlug.createdDate" }
568
- ]
569
- },
570
- {
571
- transformFn: transformRESTFloatToSDKFloat,
572
- paths: [
573
- { path: "service.locations.business.address.geocode.latitude" },
574
- { path: "service.locations.business.address.geocode.longitude" },
575
- { path: "service.locations.custom.address.geocode.latitude" },
576
- { path: "service.locations.custom.address.geocode.longitude" },
577
- { path: "service.locations.calculatedAddress.geocode.latitude" },
578
- { path: "service.locations.calculatedAddress.geocode.longitude" }
579
- ]
580
- }
581
- ])
582
- };
583
- return metadata;
584
- }
585
- return __updateService;
586
- }
587
- function bulkUpdateServices(payload) {
588
- function __bulkUpdateServices({ host }) {
589
- const serializedData = transformPaths(payload, [
590
- {
591
- transformFn: transformSDKFieldMaskToRESTFieldMask,
592
- paths: [{ path: "services.mask" }]
593
- },
594
- {
595
- transformFn: transformSDKTimestampToRESTTimestamp,
596
- paths: [
597
- { path: "services.service.createdDate" },
598
- { path: "services.service.updatedDate" },
599
- { path: "services.service.media.items.image.urlExpirationDate" },
600
- { path: "services.service.media.mainMedia.image.urlExpirationDate" },
601
- { path: "services.service.media.coverMedia.image.urlExpirationDate" },
602
- { path: "services.service.payment.subscription.recurringStartDate" },
603
- { path: "services.service.bookingPolicy.createdDate" },
604
- { path: "services.service.bookingPolicy.updatedDate" },
605
- { path: "services.service.schedule.firstSessionStart" },
606
- { path: "services.service.schedule.lastSessionEnd" },
607
- {
608
- path: "services.service.staffMembers.mainMedia.image.urlExpirationDate"
609
- },
610
- {
611
- path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
612
- },
613
- { path: "services.service.supportedSlugs.createdDate" },
614
- { path: "services.service.mainSlug.createdDate" }
615
- ]
616
- },
617
- {
618
- transformFn: transformSDKFloatToRESTFloat,
619
- paths: [
620
- {
621
- path: "services.service.locations.business.address.geocode.latitude"
622
- },
623
- {
624
- path: "services.service.locations.business.address.geocode.longitude"
625
- },
626
- {
627
- path: "services.service.locations.custom.address.geocode.latitude"
628
- },
629
- {
630
- path: "services.service.locations.custom.address.geocode.longitude"
631
- },
632
- {
633
- path: "services.service.locations.calculatedAddress.geocode.latitude"
634
- },
635
- {
636
- path: "services.service.locations.calculatedAddress.geocode.longitude"
637
- }
638
- ]
639
- }
640
- ]);
641
- const metadata = {
642
- entityFqdn: "wix.bookings.services.v2.service",
643
- method: "POST",
644
- methodFqn: "wix.bookings.services.v2.ServicesService.BulkUpdateServices",
645
- packageName: PACKAGE_NAME,
646
- migrationOptions: {
647
- optInTransformResponse: true
648
- },
649
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
650
- protoPath: "/v2/bulk/services/update",
651
- data: serializedData,
652
- host
653
- }),
654
- data: serializedData,
655
- transformResponse: (payload2) => transformPaths(payload2, [
656
- {
657
- transformFn: transformRESTTimestampToSDKTimestamp,
658
- paths: [
659
- { path: "results.item.createdDate" },
660
- { path: "results.item.updatedDate" },
661
- { path: "results.item.media.items.image.urlExpirationDate" },
662
- { path: "results.item.media.mainMedia.image.urlExpirationDate" },
663
- { path: "results.item.media.coverMedia.image.urlExpirationDate" },
664
- { path: "results.item.payment.subscription.recurringStartDate" },
665
- { path: "results.item.bookingPolicy.createdDate" },
666
- { path: "results.item.bookingPolicy.updatedDate" },
667
- { path: "results.item.schedule.firstSessionStart" },
668
- { path: "results.item.schedule.lastSessionEnd" },
669
- {
670
- path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
671
- },
672
- {
673
- path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
674
- },
675
- { path: "results.item.supportedSlugs.createdDate" },
676
- { path: "results.item.mainSlug.createdDate" }
677
- ]
678
- },
679
- {
680
- transformFn: transformRESTFloatToSDKFloat,
681
- paths: [
682
- {
683
- path: "results.item.locations.business.address.geocode.latitude"
684
- },
685
- {
686
- path: "results.item.locations.business.address.geocode.longitude"
687
- },
688
- {
689
- path: "results.item.locations.custom.address.geocode.latitude"
690
- },
691
- {
692
- path: "results.item.locations.custom.address.geocode.longitude"
693
- },
694
- {
695
- path: "results.item.locations.calculatedAddress.geocode.latitude"
696
- },
697
- {
698
- path: "results.item.locations.calculatedAddress.geocode.longitude"
699
- }
700
- ]
701
- }
702
- ])
703
- };
704
- return metadata;
705
- }
706
- return __bulkUpdateServices;
707
- }
708
- function bulkUpdateServicesByFilter(payload) {
709
- function __bulkUpdateServicesByFilter({ host }) {
710
- const serializedData = transformPaths(payload, [
711
- {
712
- transformFn: transformSDKFieldMaskToRESTFieldMask,
713
- paths: [{ path: "mask" }]
714
- },
715
- {
716
- transformFn: transformSDKTimestampToRESTTimestamp,
717
- paths: [
718
- { path: "service.createdDate" },
719
- { path: "service.updatedDate" },
720
- { path: "service.media.items.image.urlExpirationDate" },
721
- { path: "service.media.mainMedia.image.urlExpirationDate" },
722
- { path: "service.media.coverMedia.image.urlExpirationDate" },
723
- { path: "service.payment.subscription.recurringStartDate" },
724
- { path: "service.bookingPolicy.createdDate" },
725
- { path: "service.bookingPolicy.updatedDate" },
726
- { path: "service.schedule.firstSessionStart" },
727
- { path: "service.schedule.lastSessionEnd" },
728
- { path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
729
- {
730
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
731
- },
732
- { path: "service.supportedSlugs.createdDate" },
733
- { path: "service.mainSlug.createdDate" }
734
- ]
735
- },
736
- {
737
- transformFn: transformSDKFloatToRESTFloat,
738
- paths: [
739
- { path: "service.locations.business.address.geocode.latitude" },
740
- { path: "service.locations.business.address.geocode.longitude" },
741
- { path: "service.locations.custom.address.geocode.latitude" },
742
- { path: "service.locations.custom.address.geocode.longitude" },
743
- { path: "service.locations.calculatedAddress.geocode.latitude" },
744
- { path: "service.locations.calculatedAddress.geocode.longitude" }
745
- ]
746
- }
747
- ]);
748
- const metadata = {
749
- entityFqdn: "wix.bookings.services.v2.service",
750
- method: "POST",
751
- methodFqn: "wix.bookings.services.v2.ServicesService.BulkUpdateServicesByFilter",
752
- packageName: PACKAGE_NAME,
753
- migrationOptions: {
754
- optInTransformResponse: true
755
- },
756
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
757
- protoPath: "/v2/bulk/services/update-by-filter",
758
- data: serializedData,
759
- host
760
- }),
761
- data: serializedData
762
- };
763
- return metadata;
764
- }
765
- return __bulkUpdateServicesByFilter;
766
- }
767
- function deleteService(payload) {
768
- function __deleteService({ host }) {
769
- const metadata = {
770
- entityFqdn: "wix.bookings.services.v2.service",
771
- method: "DELETE",
772
- methodFqn: "wix.bookings.services.v2.ServicesService.DeleteService",
773
- packageName: PACKAGE_NAME,
774
- migrationOptions: {
775
- optInTransformResponse: true
776
- },
777
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
778
- protoPath: "/v2/services/{serviceId}",
779
- data: payload,
780
- host
781
- }),
782
- params: toURLSearchParams(payload)
783
- };
784
- return metadata;
785
- }
786
- return __deleteService;
787
- }
788
- function bulkDeleteServices(payload) {
789
- function __bulkDeleteServices({ host }) {
790
- const metadata = {
791
- entityFqdn: "wix.bookings.services.v2.service",
792
- method: "POST",
793
- methodFqn: "wix.bookings.services.v2.ServicesService.BulkDeleteServices",
794
- packageName: PACKAGE_NAME,
795
- migrationOptions: {
796
- optInTransformResponse: true
797
- },
798
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
799
- protoPath: "/v2/bulk/services/delete",
800
- data: payload,
801
- host
802
- }),
803
- data: payload,
804
- transformResponse: (payload2) => transformPaths(payload2, [
805
- {
806
- transformFn: transformRESTTimestampToSDKTimestamp,
807
- paths: [
808
- { path: "results.item.createdDate" },
809
- { path: "results.item.updatedDate" },
810
- { path: "results.item.media.items.image.urlExpirationDate" },
811
- { path: "results.item.media.mainMedia.image.urlExpirationDate" },
812
- { path: "results.item.media.coverMedia.image.urlExpirationDate" },
813
- { path: "results.item.payment.subscription.recurringStartDate" },
814
- { path: "results.item.bookingPolicy.createdDate" },
815
- { path: "results.item.bookingPolicy.updatedDate" },
816
- { path: "results.item.schedule.firstSessionStart" },
817
- { path: "results.item.schedule.lastSessionEnd" },
818
- {
819
- path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
820
- },
821
- {
822
- path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
823
- },
824
- { path: "results.item.supportedSlugs.createdDate" },
825
- { path: "results.item.mainSlug.createdDate" }
826
- ]
827
- },
828
- {
829
- transformFn: transformRESTFloatToSDKFloat,
830
- paths: [
831
- {
832
- path: "results.item.locations.business.address.geocode.latitude"
833
- },
834
- {
835
- path: "results.item.locations.business.address.geocode.longitude"
836
- },
837
- {
838
- path: "results.item.locations.custom.address.geocode.latitude"
839
- },
840
- {
841
- path: "results.item.locations.custom.address.geocode.longitude"
842
- },
843
- {
844
- path: "results.item.locations.calculatedAddress.geocode.latitude"
845
- },
846
- {
847
- path: "results.item.locations.calculatedAddress.geocode.longitude"
848
- }
849
- ]
850
- }
851
- ])
852
- };
853
- return metadata;
854
- }
855
- return __bulkDeleteServices;
856
- }
857
- function bulkDeleteServicesByFilter(payload) {
858
- function __bulkDeleteServicesByFilter({ host }) {
859
- const metadata = {
860
- entityFqdn: "wix.bookings.services.v2.service",
861
- method: "POST",
862
- methodFqn: "wix.bookings.services.v2.ServicesService.BulkDeleteServicesByFilter",
863
- packageName: PACKAGE_NAME,
864
- migrationOptions: {
865
- optInTransformResponse: true
866
- },
867
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
868
- protoPath: "/v2/bulk/services/delete-by-filter",
869
- data: payload,
870
- host
871
- }),
872
- data: payload
873
- };
874
- return metadata;
875
- }
876
- return __bulkDeleteServicesByFilter;
877
- }
878
- function queryServices(payload) {
879
- function __queryServices({ host }) {
880
- const metadata = {
881
- entityFqdn: "wix.bookings.services.v2.service",
882
- method: "POST",
883
- methodFqn: "wix.bookings.services.v2.ServicesService.QueryServices",
884
- packageName: PACKAGE_NAME,
885
- migrationOptions: {
886
- optInTransformResponse: true
887
- },
888
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
889
- protoPath: "/v2/services/query",
890
- data: payload,
891
- host
892
- }),
893
- data: payload,
894
- transformResponse: (payload2) => transformPaths(payload2, [
895
- {
896
- transformFn: transformRESTTimestampToSDKTimestamp,
897
- paths: [
898
- { path: "services.createdDate" },
899
- { path: "services.updatedDate" },
900
- { path: "services.media.items.image.urlExpirationDate" },
901
- { path: "services.media.mainMedia.image.urlExpirationDate" },
902
- { path: "services.media.coverMedia.image.urlExpirationDate" },
903
- { path: "services.payment.subscription.recurringStartDate" },
904
- { path: "services.bookingPolicy.createdDate" },
905
- { path: "services.bookingPolicy.updatedDate" },
906
- { path: "services.schedule.firstSessionStart" },
907
- { path: "services.schedule.lastSessionEnd" },
908
- {
909
- path: "services.staffMembers.mainMedia.image.urlExpirationDate"
910
- },
911
- {
912
- path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
913
- },
914
- { path: "services.supportedSlugs.createdDate" },
915
- { path: "services.mainSlug.createdDate" }
916
- ]
917
- },
918
- {
919
- transformFn: transformRESTFloatToSDKFloat,
920
- paths: [
921
- { path: "services.locations.business.address.geocode.latitude" },
922
- { path: "services.locations.business.address.geocode.longitude" },
923
- { path: "services.locations.custom.address.geocode.latitude" },
924
- { path: "services.locations.custom.address.geocode.longitude" },
925
- { path: "services.locations.calculatedAddress.geocode.latitude" },
926
- {
927
- path: "services.locations.calculatedAddress.geocode.longitude"
928
- }
929
- ]
930
- }
931
- ])
932
- };
933
- return metadata;
934
- }
935
- return __queryServices;
936
- }
937
- function searchServices(payload) {
938
- function __searchServices({ host }) {
939
- const serializedData = transformPaths(payload, [
940
- {
941
- transformFn: transformSDKFloatToRESTFloat,
942
- paths: [
943
- { path: "search.aggregations.range.buckets.from" },
944
- { path: "search.aggregations.range.buckets.to" },
945
- {
946
- path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
947
- },
948
- {
949
- path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
950
- }
951
- ]
952
- }
953
- ]);
954
- const metadata = {
955
- entityFqdn: "wix.bookings.services.v2.service",
956
- method: "POST",
957
- methodFqn: "wix.bookings.services.v2.ServicesService.SearchServices",
958
- packageName: PACKAGE_NAME,
959
- migrationOptions: {
960
- optInTransformResponse: true
961
- },
962
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
963
- protoPath: "/v2/services/search",
964
- data: serializedData,
965
- host
966
- }),
967
- data: serializedData,
968
- transformResponse: (payload2) => transformPaths(payload2, [
969
- {
970
- transformFn: transformRESTTimestampToSDKTimestamp,
971
- paths: [
972
- { path: "services.createdDate" },
973
- { path: "services.updatedDate" },
974
- { path: "services.media.items.image.urlExpirationDate" },
975
- { path: "services.media.mainMedia.image.urlExpirationDate" },
976
- { path: "services.media.coverMedia.image.urlExpirationDate" },
977
- { path: "services.payment.subscription.recurringStartDate" },
978
- { path: "services.bookingPolicy.createdDate" },
979
- { path: "services.bookingPolicy.updatedDate" },
980
- { path: "services.schedule.firstSessionStart" },
981
- { path: "services.schedule.lastSessionEnd" },
982
- {
983
- path: "services.staffMembers.mainMedia.image.urlExpirationDate"
984
- },
985
- {
986
- path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
987
- },
988
- { path: "services.supportedSlugs.createdDate" },
989
- { path: "services.mainSlug.createdDate" }
990
- ]
991
- },
992
- {
993
- transformFn: transformRESTFloatToSDKFloat,
994
- paths: [
995
- { path: "services.locations.business.address.geocode.latitude" },
996
- { path: "services.locations.business.address.geocode.longitude" },
997
- { path: "services.locations.custom.address.geocode.latitude" },
998
- { path: "services.locations.custom.address.geocode.longitude" },
999
- { path: "services.locations.calculatedAddress.geocode.latitude" },
1000
- {
1001
- path: "services.locations.calculatedAddress.geocode.longitude"
1002
- },
1003
- { path: "aggregationData.results.ranges.results.from" },
1004
- { path: "aggregationData.results.ranges.results.to" },
1005
- {
1006
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
1007
- },
1008
- {
1009
- path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
1010
- },
1011
- {
1012
- path: "aggregationData.results.nested.results.results.*.range.from"
1013
- },
1014
- {
1015
- path: "aggregationData.results.nested.results.results.*.range.to"
1016
- },
1017
- { path: "aggregationData.results.scalar.value" },
1018
- {
1019
- path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
1020
- },
1021
- {
1022
- path: "aggregationData.results.nested.results.results.*.scalar.value"
1023
- }
1024
- ]
1025
- }
1026
- ])
1027
- };
1028
- return metadata;
1029
- }
1030
- return __searchServices;
1031
- }
1032
- function queryPolicies(payload) {
1033
- function __queryPolicies({ host }) {
1034
- const metadata = {
1035
- entityFqdn: "wix.bookings.services.v2.service",
1036
- method: "POST",
1037
- methodFqn: "wix.bookings.services.v2.ServicesService.QueryPolicies",
1038
- packageName: PACKAGE_NAME,
1039
- migrationOptions: {
1040
- optInTransformResponse: true
1041
- },
1042
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1043
- protoPath: "/v2/services/policies/query",
1044
- data: payload,
1045
- host
1046
- }),
1047
- data: payload,
1048
- transformResponse: (payload2) => transformPaths(payload2, [
1049
- {
1050
- transformFn: transformRESTTimestampToSDKTimestamp,
1051
- paths: [
1052
- { path: "bookingPolicies.bookingPolicy.createdDate" },
1053
- { path: "bookingPolicies.bookingPolicy.updatedDate" },
1054
- { path: "bookingPolicies.services.createdDate" },
1055
- { path: "bookingPolicies.services.updatedDate" },
1056
- {
1057
- path: "bookingPolicies.services.media.items.image.urlExpirationDate"
1058
- },
1059
- {
1060
- path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate"
1061
- },
1062
- {
1063
- path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate"
1064
- },
1065
- {
1066
- path: "bookingPolicies.services.payment.subscription.recurringStartDate"
1067
- },
1068
- { path: "bookingPolicies.services.bookingPolicy.createdDate" },
1069
- { path: "bookingPolicies.services.bookingPolicy.updatedDate" },
1070
- { path: "bookingPolicies.services.schedule.firstSessionStart" },
1071
- { path: "bookingPolicies.services.schedule.lastSessionEnd" },
1072
- {
1073
- path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
1074
- },
1075
- {
1076
- path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
1077
- },
1078
- { path: "bookingPolicies.services.supportedSlugs.createdDate" },
1079
- { path: "bookingPolicies.services.mainSlug.createdDate" },
1080
- { path: "bookingPolicies.connectedServices.createdDate" },
1081
- { path: "bookingPolicies.connectedServices.updatedDate" },
1082
- {
1083
- path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
1084
- },
1085
- {
1086
- path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
1087
- },
1088
- {
1089
- path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
1090
- },
1091
- {
1092
- path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
1093
- },
1094
- {
1095
- path: "bookingPolicies.connectedServices.bookingPolicy.createdDate"
1096
- },
1097
- {
1098
- path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate"
1099
- },
1100
- {
1101
- path: "bookingPolicies.connectedServices.schedule.firstSessionStart"
1102
- },
1103
- {
1104
- path: "bookingPolicies.connectedServices.schedule.lastSessionEnd"
1105
- },
1106
- {
1107
- path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
1108
- },
1109
- {
1110
- path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
1111
- },
1112
- {
1113
- path: "bookingPolicies.connectedServices.supportedSlugs.createdDate"
1114
- },
1115
- {
1116
- path: "bookingPolicies.connectedServices.mainSlug.createdDate"
1117
- }
1118
- ]
1119
- },
1120
- {
1121
- transformFn: transformRESTFloatToSDKFloat,
1122
- paths: [
1123
- {
1124
- path: "bookingPolicies.services.locations.business.address.geocode.latitude"
1125
- },
1126
- {
1127
- path: "bookingPolicies.services.locations.business.address.geocode.longitude"
1128
- },
1129
- {
1130
- path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
1131
- },
1132
- {
1133
- path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
1134
- },
1135
- {
1136
- path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
1137
- },
1138
- {
1139
- path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
1140
- },
1141
- {
1142
- path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
1143
- },
1144
- {
1145
- path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
1146
- },
1147
- {
1148
- path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
1149
- },
1150
- {
1151
- path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
1152
- },
1153
- {
1154
- path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
1155
- },
1156
- {
1157
- path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
1158
- }
1159
- ]
1160
- }
1161
- ])
1162
- };
1163
- return metadata;
1164
- }
1165
- return __queryPolicies;
1166
- }
1167
- function queryBookingForms(payload) {
1168
- function __queryBookingForms({ host }) {
1169
- const metadata = {
1170
- entityFqdn: "wix.bookings.services.v2.service",
1171
- method: "POST",
1172
- methodFqn: "wix.bookings.services.v2.ServicesService.QueryBookingForms",
1173
- packageName: PACKAGE_NAME,
1174
- migrationOptions: {
1175
- optInTransformResponse: true
1176
- },
1177
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1178
- protoPath: "/v2/services/booking-forms/query",
1179
- data: payload,
1180
- host
1181
- }),
1182
- data: payload
1183
- };
1184
- return metadata;
1185
- }
1186
- return __queryBookingForms;
1187
- }
1188
- function countServices(payload) {
1189
- function __countServices({ host }) {
1190
- const metadata = {
1191
- entityFqdn: "wix.bookings.services.v2.service",
1192
- method: "POST",
1193
- methodFqn: "wix.bookings.services.v2.ServicesService.CountServices",
1194
- packageName: PACKAGE_NAME,
1195
- migrationOptions: {
1196
- optInTransformResponse: true
1197
- },
1198
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1199
- protoPath: "/v2/services/count",
1200
- data: payload,
1201
- host
1202
- }),
1203
- data: payload
1204
- };
1205
- return metadata;
1206
- }
1207
- return __countServices;
1208
- }
1209
- function queryLocations(payload) {
1210
- function __queryLocations({ host }) {
1211
- const metadata = {
1212
- entityFqdn: "wix.bookings.services.v2.service",
1213
- method: "POST",
1214
- methodFqn: "wix.bookings.services.v2.ServicesService.QueryLocations",
1215
- packageName: PACKAGE_NAME,
1216
- migrationOptions: {
1217
- optInTransformResponse: true
1218
- },
1219
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1220
- protoPath: "/v2/services/locations/query",
1221
- data: payload,
1222
- host
1223
- }),
1224
- data: payload,
1225
- transformResponse: (payload2) => transformPaths(payload2, [
1226
- {
1227
- transformFn: transformRESTFloatToSDKFloat,
1228
- paths: [
1229
- {
1230
- path: "businessLocations.locations.business.address.geocode.latitude"
1231
- },
1232
- {
1233
- path: "businessLocations.locations.business.address.geocode.longitude"
1234
- },
1235
- {
1236
- path: "businessLocations.locations.custom.address.geocode.latitude"
1237
- },
1238
- {
1239
- path: "businessLocations.locations.custom.address.geocode.longitude"
1240
- },
1241
- {
1242
- path: "businessLocations.locations.calculatedAddress.geocode.latitude"
1243
- },
1244
- {
1245
- path: "businessLocations.locations.calculatedAddress.geocode.longitude"
1246
- }
1247
- ]
1248
- }
1249
- ])
1250
- };
1251
- return metadata;
1252
- }
1253
- return __queryLocations;
1254
- }
1255
- function queryCategories(payload) {
1256
- function __queryCategories({ host }) {
1257
- const metadata = {
1258
- entityFqdn: "wix.bookings.services.v2.service",
1259
- method: "POST",
1260
- methodFqn: "wix.bookings.services.v2.ServicesService.QueryCategories",
1261
- packageName: PACKAGE_NAME,
1262
- migrationOptions: {
1263
- optInTransformResponse: true
1264
- },
1265
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1266
- protoPath: "/v2/services/categories/query",
1267
- data: payload,
1268
- host
1269
- }),
1270
- data: payload
1271
- };
1272
- return metadata;
1273
- }
1274
- return __queryCategories;
1275
- }
1276
- function setServiceLocations(payload) {
1277
- function __setServiceLocations({ host }) {
1278
- const serializedData = transformPaths(payload, [
1279
- {
1280
- transformFn: transformSDKFloatToRESTFloat,
1281
- paths: [
1282
- { path: "locations.business.address.geocode.latitude" },
1283
- { path: "locations.business.address.geocode.longitude" },
1284
- { path: "locations.custom.address.geocode.latitude" },
1285
- { path: "locations.custom.address.geocode.longitude" },
1286
- { path: "locations.calculatedAddress.geocode.latitude" },
1287
- { path: "locations.calculatedAddress.geocode.longitude" },
1288
- {
1289
- path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
1290
- },
1291
- {
1292
- path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
1293
- },
1294
- {
1295
- path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
1296
- },
1297
- {
1298
- path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
1299
- },
1300
- {
1301
- path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
1302
- },
1303
- {
1304
- path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
1305
- }
1306
- ]
1307
- }
1308
- ]);
1309
- const metadata = {
1310
- entityFqdn: "wix.bookings.services.v2.service",
1311
- method: "POST",
1312
- methodFqn: "wix.bookings.services.v2.ServicesService.SetServiceLocations",
1313
- packageName: PACKAGE_NAME,
1314
- migrationOptions: {
1315
- optInTransformResponse: true
1316
- },
1317
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1318
- protoPath: "/v2/services/{serviceId}/locations",
1319
- data: serializedData,
1320
- host
1321
- }),
1322
- data: serializedData,
1323
- transformResponse: (payload2) => transformPaths(payload2, [
1324
- {
1325
- transformFn: transformRESTTimestampToSDKTimestamp,
1326
- paths: [
1327
- { path: "service.createdDate" },
1328
- { path: "service.updatedDate" },
1329
- { path: "service.media.items.image.urlExpirationDate" },
1330
- { path: "service.media.mainMedia.image.urlExpirationDate" },
1331
- { path: "service.media.coverMedia.image.urlExpirationDate" },
1332
- { path: "service.payment.subscription.recurringStartDate" },
1333
- { path: "service.bookingPolicy.createdDate" },
1334
- { path: "service.bookingPolicy.updatedDate" },
1335
- { path: "service.schedule.firstSessionStart" },
1336
- { path: "service.schedule.lastSessionEnd" },
1337
- {
1338
- path: "service.staffMembers.mainMedia.image.urlExpirationDate"
1339
- },
1340
- {
1341
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
1342
- },
1343
- { path: "service.supportedSlugs.createdDate" },
1344
- { path: "service.mainSlug.createdDate" }
1345
- ]
1346
- },
1347
- {
1348
- transformFn: transformRESTFloatToSDKFloat,
1349
- paths: [
1350
- { path: "service.locations.business.address.geocode.latitude" },
1351
- { path: "service.locations.business.address.geocode.longitude" },
1352
- { path: "service.locations.custom.address.geocode.latitude" },
1353
- { path: "service.locations.custom.address.geocode.longitude" },
1354
- { path: "service.locations.calculatedAddress.geocode.latitude" },
1355
- { path: "service.locations.calculatedAddress.geocode.longitude" }
1356
- ]
1357
- }
1358
- ])
1359
- };
1360
- return metadata;
1361
- }
1362
- return __setServiceLocations;
1363
- }
1364
- function enablePricingPlansForService(payload) {
1365
- function __enablePricingPlansForService({ host }) {
1366
- const metadata = {
1367
- entityFqdn: "wix.bookings.services.v2.service",
1368
- method: "POST",
1369
- methodFqn: "wix.bookings.services.v2.ServicesService.EnablePricingPlansForService",
1370
- packageName: PACKAGE_NAME,
1371
- migrationOptions: {
1372
- optInTransformResponse: true
1373
- },
1374
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1375
- protoPath: "/v2/services/{serviceId}/pricing-plans/add",
1376
- data: payload,
1377
- host
1378
- }),
1379
- data: payload,
1380
- transformResponse: (payload2) => transformPaths(payload2, [
1381
- {
1382
- transformFn: transformRESTTimestampToSDKTimestamp,
1383
- paths: [
1384
- { path: "service.createdDate" },
1385
- { path: "service.updatedDate" },
1386
- { path: "service.media.items.image.urlExpirationDate" },
1387
- { path: "service.media.mainMedia.image.urlExpirationDate" },
1388
- { path: "service.media.coverMedia.image.urlExpirationDate" },
1389
- { path: "service.payment.subscription.recurringStartDate" },
1390
- { path: "service.bookingPolicy.createdDate" },
1391
- { path: "service.bookingPolicy.updatedDate" },
1392
- { path: "service.schedule.firstSessionStart" },
1393
- { path: "service.schedule.lastSessionEnd" },
1394
- {
1395
- path: "service.staffMembers.mainMedia.image.urlExpirationDate"
1396
- },
1397
- {
1398
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
1399
- },
1400
- { path: "service.supportedSlugs.createdDate" },
1401
- { path: "service.mainSlug.createdDate" }
1402
- ]
1403
- },
1404
- {
1405
- transformFn: transformRESTFloatToSDKFloat,
1406
- paths: [
1407
- { path: "service.locations.business.address.geocode.latitude" },
1408
- { path: "service.locations.business.address.geocode.longitude" },
1409
- { path: "service.locations.custom.address.geocode.latitude" },
1410
- { path: "service.locations.custom.address.geocode.longitude" },
1411
- { path: "service.locations.calculatedAddress.geocode.latitude" },
1412
- { path: "service.locations.calculatedAddress.geocode.longitude" }
1413
- ]
1414
- }
1415
- ])
1416
- };
1417
- return metadata;
1418
- }
1419
- return __enablePricingPlansForService;
1420
- }
1421
- function disablePricingPlansForService(payload) {
1422
- function __disablePricingPlansForService({ host }) {
1423
- const metadata = {
1424
- entityFqdn: "wix.bookings.services.v2.service",
1425
- method: "POST",
1426
- methodFqn: "wix.bookings.services.v2.ServicesService.DisablePricingPlansForService",
1427
- packageName: PACKAGE_NAME,
1428
- migrationOptions: {
1429
- optInTransformResponse: true
1430
- },
1431
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1432
- protoPath: "/v2/services/{serviceId}/pricing-plans/remove",
1433
- data: payload,
1434
- host
1435
- }),
1436
- data: payload,
1437
- transformResponse: (payload2) => transformPaths(payload2, [
1438
- {
1439
- transformFn: transformRESTTimestampToSDKTimestamp,
1440
- paths: [
1441
- { path: "service.createdDate" },
1442
- { path: "service.updatedDate" },
1443
- { path: "service.media.items.image.urlExpirationDate" },
1444
- { path: "service.media.mainMedia.image.urlExpirationDate" },
1445
- { path: "service.media.coverMedia.image.urlExpirationDate" },
1446
- { path: "service.payment.subscription.recurringStartDate" },
1447
- { path: "service.bookingPolicy.createdDate" },
1448
- { path: "service.bookingPolicy.updatedDate" },
1449
- { path: "service.schedule.firstSessionStart" },
1450
- { path: "service.schedule.lastSessionEnd" },
1451
- {
1452
- path: "service.staffMembers.mainMedia.image.urlExpirationDate"
1453
- },
1454
- {
1455
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
1456
- },
1457
- { path: "service.supportedSlugs.createdDate" },
1458
- { path: "service.mainSlug.createdDate" }
1459
- ]
1460
- },
1461
- {
1462
- transformFn: transformRESTFloatToSDKFloat,
1463
- paths: [
1464
- { path: "service.locations.business.address.geocode.latitude" },
1465
- { path: "service.locations.business.address.geocode.longitude" },
1466
- { path: "service.locations.custom.address.geocode.latitude" },
1467
- { path: "service.locations.custom.address.geocode.longitude" },
1468
- { path: "service.locations.calculatedAddress.geocode.latitude" },
1469
- { path: "service.locations.calculatedAddress.geocode.longitude" }
1470
- ]
1471
- }
1472
- ])
1473
- };
1474
- return metadata;
1475
- }
1476
- return __disablePricingPlansForService;
1477
- }
1478
- function setCustomSlug(payload) {
1479
- function __setCustomSlug({ host }) {
1480
- const metadata = {
1481
- entityFqdn: "wix.bookings.services.v2.service",
1482
- method: "POST",
1483
- methodFqn: "wix.bookings.services.v2.ServicesService.SetCustomSlug",
1484
- packageName: PACKAGE_NAME,
1485
- migrationOptions: {
1486
- optInTransformResponse: true
1487
- },
1488
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1489
- protoPath: "/v2/services/{serviceId}/slugs/custom",
1490
- data: payload,
1491
- host
1492
- }),
1493
- data: payload,
1494
- transformResponse: (payload2) => transformPaths(payload2, [
1495
- {
1496
- transformFn: transformRESTTimestampToSDKTimestamp,
1497
- paths: [
1498
- { path: "slug.createdDate" },
1499
- { path: "service.createdDate" },
1500
- { path: "service.updatedDate" },
1501
- { path: "service.media.items.image.urlExpirationDate" },
1502
- { path: "service.media.mainMedia.image.urlExpirationDate" },
1503
- { path: "service.media.coverMedia.image.urlExpirationDate" },
1504
- { path: "service.payment.subscription.recurringStartDate" },
1505
- { path: "service.bookingPolicy.createdDate" },
1506
- { path: "service.bookingPolicy.updatedDate" },
1507
- { path: "service.schedule.firstSessionStart" },
1508
- { path: "service.schedule.lastSessionEnd" },
1509
- {
1510
- path: "service.staffMembers.mainMedia.image.urlExpirationDate"
1511
- },
1512
- {
1513
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
1514
- },
1515
- { path: "service.supportedSlugs.createdDate" },
1516
- { path: "service.mainSlug.createdDate" }
1517
- ]
1518
- },
1519
- {
1520
- transformFn: transformRESTFloatToSDKFloat,
1521
- paths: [
1522
- { path: "service.locations.business.address.geocode.latitude" },
1523
- { path: "service.locations.business.address.geocode.longitude" },
1524
- { path: "service.locations.custom.address.geocode.latitude" },
1525
- { path: "service.locations.custom.address.geocode.longitude" },
1526
- { path: "service.locations.calculatedAddress.geocode.latitude" },
1527
- { path: "service.locations.calculatedAddress.geocode.longitude" }
1528
- ]
1529
- }
1530
- ])
1531
- };
1532
- return metadata;
1533
- }
1534
- return __setCustomSlug;
1535
- }
1536
- function validateSlug(payload) {
1537
- function __validateSlug({ host }) {
1538
- const metadata = {
1539
- entityFqdn: "wix.bookings.services.v2.service",
1540
- method: "POST",
1541
- methodFqn: "wix.bookings.services.v2.ServicesService.ValidateSlug",
1542
- packageName: PACKAGE_NAME,
1543
- migrationOptions: {
1544
- optInTransformResponse: true
1545
- },
1546
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1547
- protoPath: "/v2/services/slugs/validate",
1548
- data: payload,
1549
- host
1550
- }),
1551
- data: payload
1552
- };
1553
- return metadata;
1554
- }
1555
- return __validateSlug;
1556
- }
1557
- function cloneService(payload) {
1558
- function __cloneService({ host }) {
1559
- const metadata = {
1560
- entityFqdn: "wix.bookings.services.v2.service",
1561
- method: "POST",
1562
- methodFqn: "wix.bookings.services.v2.ServicesService.CloneService",
1563
- packageName: PACKAGE_NAME,
1564
- migrationOptions: {
1565
- optInTransformResponse: true
1566
- },
1567
- url: resolveWixBookingsServicesV2ServicesServiceUrl({
1568
- protoPath: "/v2/services/clone",
1569
- data: payload,
1570
- host
1571
- }),
1572
- data: payload,
1573
- transformResponse: (payload2) => transformPaths(payload2, [
1574
- {
1575
- transformFn: transformRESTTimestampToSDKTimestamp,
1576
- paths: [
1577
- { path: "service.createdDate" },
1578
- { path: "service.updatedDate" },
1579
- { path: "service.media.items.image.urlExpirationDate" },
1580
- { path: "service.media.mainMedia.image.urlExpirationDate" },
1581
- { path: "service.media.coverMedia.image.urlExpirationDate" },
1582
- { path: "service.payment.subscription.recurringStartDate" },
1583
- { path: "service.bookingPolicy.createdDate" },
1584
- { path: "service.bookingPolicy.updatedDate" },
1585
- { path: "service.schedule.firstSessionStart" },
1586
- { path: "service.schedule.lastSessionEnd" },
1587
- {
1588
- path: "service.staffMembers.mainMedia.image.urlExpirationDate"
1589
- },
1590
- {
1591
- path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
1592
- },
1593
- { path: "service.supportedSlugs.createdDate" },
1594
- { path: "service.mainSlug.createdDate" }
1595
- ]
1596
- },
1597
- {
1598
- transformFn: transformRESTFloatToSDKFloat,
1599
- paths: [
1600
- { path: "service.locations.business.address.geocode.latitude" },
1601
- { path: "service.locations.business.address.geocode.longitude" },
1602
- { path: "service.locations.custom.address.geocode.latitude" },
1603
- { path: "service.locations.custom.address.geocode.longitude" },
1604
- { path: "service.locations.calculatedAddress.geocode.latitude" },
1605
- { path: "service.locations.calculatedAddress.geocode.longitude" }
1606
- ]
1607
- }
1608
- ])
1609
- };
1610
- return metadata;
1611
- }
1612
- return __cloneService;
1613
- }
1614
- function createAddOnGroup(payload) {
1615
- function __createAddOnGroup({ host }) {
1616
- const metadata = {
1617
- entityFqdn: "wix.bookings.services.v2.service",
1618
- method: "POST",
1619
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
1620
- packageName: PACKAGE_NAME,
1621
- migrationOptions: {
1622
- optInTransformResponse: true
1623
- },
1624
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1625
- protoPath: "/v2/services/add-on-groups/create",
1626
- data: payload,
1627
- host
1628
- }),
1629
- data: payload
1630
- };
1631
- return metadata;
1632
- }
1633
- return __createAddOnGroup;
1634
- }
1635
- function deleteAddOnGroup(payload) {
1636
- function __deleteAddOnGroup({ host }) {
1637
- const metadata = {
1638
- entityFqdn: "wix.bookings.services.v2.service",
1639
- method: "POST",
1640
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
1641
- packageName: PACKAGE_NAME,
1642
- migrationOptions: {
1643
- optInTransformResponse: true
1644
- },
1645
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1646
- protoPath: "/v2/services/add-on-groups/delete",
1647
- data: payload,
1648
- host
1649
- }),
1650
- data: payload
1651
- };
1652
- return metadata;
1653
- }
1654
- return __deleteAddOnGroup;
1655
- }
1656
- function updateAddOnGroup(payload) {
1657
- function __updateAddOnGroup({ host }) {
1658
- const serializedData = transformPaths(payload, [
1659
- {
1660
- transformFn: transformSDKFieldMaskToRESTFieldMask,
1661
- paths: [{ path: "mask" }]
1662
- }
1663
- ]);
1664
- const metadata = {
1665
- entityFqdn: "wix.bookings.services.v2.service",
1666
- method: "POST",
1667
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
1668
- packageName: PACKAGE_NAME,
1669
- migrationOptions: {
1670
- optInTransformResponse: true
1671
- },
1672
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1673
- protoPath: "/v2/services/add-on-groups/update",
1674
- data: serializedData,
1675
- host
1676
- }),
1677
- data: serializedData
1678
- };
1679
- return metadata;
1680
- }
1681
- return __updateAddOnGroup;
1682
- }
1683
- function listAddOnGroupsByServiceId(payload) {
1684
- function __listAddOnGroupsByServiceId({ host }) {
1685
- const metadata = {
1686
- entityFqdn: "wix.bookings.services.v2.service",
1687
- method: "POST",
1688
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
1689
- packageName: PACKAGE_NAME,
1690
- migrationOptions: {
1691
- optInTransformResponse: true
1692
- },
1693
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1694
- protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
1695
- data: payload,
1696
- host
1697
- }),
1698
- data: payload,
1699
- transformResponse: (payload2) => transformPaths(payload2, [
1700
- {
1701
- transformFn: transformRESTTimestampToSDKTimestamp,
1702
- paths: [
1703
- {
1704
- path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate"
1705
- }
1706
- ]
1707
- }
1708
- ])
1709
- };
1710
- return metadata;
1711
- }
1712
- return __listAddOnGroupsByServiceId;
1713
- }
1714
- function setAddOnsForGroup(payload) {
1715
- function __setAddOnsForGroup({ host }) {
1716
- const metadata = {
1717
- entityFqdn: "wix.bookings.services.v2.service",
1718
- method: "POST",
1719
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
1720
- packageName: PACKAGE_NAME,
1721
- migrationOptions: {
1722
- optInTransformResponse: true
1723
- },
1724
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1725
- protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
1726
- data: payload,
1727
- host
1728
- }),
1729
- data: payload
1730
- };
1731
- return metadata;
1732
- }
1733
- return __setAddOnsForGroup;
1734
- }
1735
-
1736
- // src/bookings-services-v2-service-services.types.ts
1737
- var ServiceType = /* @__PURE__ */ ((ServiceType2) => {
1738
- ServiceType2["APPOINTMENT"] = "APPOINTMENT";
1739
- ServiceType2["CLASS"] = "CLASS";
1740
- ServiceType2["COURSE"] = "COURSE";
1741
- return ServiceType2;
1742
- })(ServiceType || {});
1743
- var RateType = /* @__PURE__ */ ((RateType2) => {
1744
- RateType2["FIXED"] = "FIXED";
1745
- RateType2["CUSTOM"] = "CUSTOM";
1746
- RateType2["VARIED"] = "VARIED";
1747
- RateType2["NO_FEE"] = "NO_FEE";
1748
- RateType2["SUBSCRIPTION"] = "SUBSCRIPTION";
1749
- return RateType2;
1750
- })(RateType || {});
1751
- var FrequencyType = /* @__PURE__ */ ((FrequencyType2) => {
1752
- FrequencyType2["MONTHLY"] = "MONTHLY";
1753
- return FrequencyType2;
1754
- })(FrequencyType || {});
1755
- var FirstChargeDateType = /* @__PURE__ */ ((FirstChargeDateType2) => {
1756
- FirstChargeDateType2["CHECKOUT"] = "CHECKOUT";
1757
- FirstChargeDateType2["SCHEDULED"] = "SCHEDULED";
1758
- return FirstChargeDateType2;
1759
- })(FirstChargeDateType || {});
1760
- var AddOnPaymentOptions = /* @__PURE__ */ ((AddOnPaymentOptions2) => {
1761
- AddOnPaymentOptions2["ONLINE"] = "ONLINE";
1762
- AddOnPaymentOptions2["IN_PERSON"] = "IN_PERSON";
1763
- return AddOnPaymentOptions2;
1764
- })(AddOnPaymentOptions || {});
1765
- var LocationTypeEnumLocationType = /* @__PURE__ */ ((LocationTypeEnumLocationType2) => {
1766
- LocationTypeEnumLocationType2["CUSTOM"] = "CUSTOM";
1767
- LocationTypeEnumLocationType2["BUSINESS"] = "BUSINESS";
1768
- LocationTypeEnumLocationType2["CUSTOMER"] = "CUSTOMER";
1769
- return LocationTypeEnumLocationType2;
1770
- })(LocationTypeEnumLocationType || {});
1771
- var RankingOrder = /* @__PURE__ */ ((RankingOrder2) => {
1772
- RankingOrder2["LOWEST_TO_HIGHEST"] = "LOWEST_TO_HIGHEST";
1773
- RankingOrder2["HIGHEST_TO_LOWEST"] = "HIGHEST_TO_LOWEST";
1774
- return RankingOrder2;
1775
- })(RankingOrder || {});
1776
- var SortingMethodType = /* @__PURE__ */ ((SortingMethodType2) => {
1777
- SortingMethodType2["RANDOM"] = "RANDOM";
1778
- SortingMethodType2["RANKING"] = "RANKING";
1779
- SortingMethodType2["CUSTOM"] = "CUSTOM";
1780
- return SortingMethodType2;
1781
- })(SortingMethodType || {});
1782
- var Timing = /* @__PURE__ */ ((Timing2) => {
1783
- Timing2["AFTER_BOOKING"] = "AFTER_BOOKING";
1784
- Timing2["BEFORE_BOOKING"] = "BEFORE_BOOKING";
1785
- return Timing2;
1786
- })(Timing || {});
1787
- var CompletionRequirement = /* @__PURE__ */ ((CompletionRequirement2) => {
1788
- CompletionRequirement2["OPTIONAL"] = "OPTIONAL";
1789
- CompletionRequirement2["REQUIRED_BEFORE_BOOKING"] = "REQUIRED_BEFORE_BOOKING";
1790
- return CompletionRequirement2;
1791
- })(CompletionRequirement || {});
1792
- var UnitType = /* @__PURE__ */ ((UnitType2) => {
1793
- UnitType2["HOUR"] = "HOUR";
1794
- UnitType2["DAY"] = "DAY";
1795
- return UnitType2;
1796
- })(UnitType || {});
1797
- var WorkingHoursMode = /* @__PURE__ */ ((WorkingHoursMode2) => {
1798
- WorkingHoursMode2["INTERSECT_RESOURCE_HOURS"] = "INTERSECT_RESOURCE_HOURS";
1799
- WorkingHoursMode2["OVERRIDE_RESOURCE_HOURS"] = "OVERRIDE_RESOURCE_HOURS";
1800
- return WorkingHoursMode2;
1801
- })(WorkingHoursMode || {});
1802
- var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
1803
- TaxableAddressType2["BUSINESS"] = "BUSINESS";
1804
- TaxableAddressType2["BILLING"] = "BILLING";
1805
- return TaxableAddressType2;
1806
- })(TaxableAddressType || {});
1807
- var MultiServiceBookingType = /* @__PURE__ */ ((MultiServiceBookingType2) => {
1808
- MultiServiceBookingType2["SEQUENTIAL_BOOKINGS"] = "SEQUENTIAL_BOOKINGS";
1809
- MultiServiceBookingType2["SEPARATE_BOOKINGS"] = "SEPARATE_BOOKINGS";
1810
- MultiServiceBookingType2["PARALLEL_BOOKINGS"] = "PARALLEL_BOOKINGS";
1811
- return MultiServiceBookingType2;
1812
- })(MultiServiceBookingType || {});
1813
- var ResourceTransparency = /* @__PURE__ */ ((ResourceTransparency2) => {
1814
- ResourceTransparency2["OPAQUE"] = "OPAQUE";
1815
- ResourceTransparency2["TRANSPARENT"] = "TRANSPARENT";
1816
- return ResourceTransparency2;
1817
- })(ResourceTransparency || {});
1818
- var LocationType = /* @__PURE__ */ ((LocationType2) => {
1819
- LocationType2["UNDEFINED"] = "UNDEFINED";
1820
- LocationType2["OWNER_BUSINESS"] = "OWNER_BUSINESS";
1821
- LocationType2["OWNER_CUSTOM"] = "OWNER_CUSTOM";
1822
- LocationType2["CUSTOM"] = "CUSTOM";
1823
- return LocationType2;
1824
- })(LocationType || {});
1825
- var SelectionMethod = /* @__PURE__ */ ((SelectionMethod2) => {
1826
- SelectionMethod2["SPECIFIC_RESOURCE"] = "SPECIFIC_RESOURCE";
1827
- SelectionMethod2["ANY_RESOURCE"] = "ANY_RESOURCE";
1828
- SelectionMethod2["NO_SELECTION"] = "NO_SELECTION";
1829
- return SelectionMethod2;
1830
- })(SelectionMethod || {});
1831
- var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
1832
- RequestedGender2["ANY_MALE"] = "ANY_MALE";
1833
- RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
1834
- return RequestedGender2;
1835
- })(RequestedGender || {});
1836
- var DurationUnitType = /* @__PURE__ */ ((DurationUnitType2) => {
1837
- DurationUnitType2["HOUR"] = "HOUR";
1838
- DurationUnitType2["DAY"] = "DAY";
1839
- return DurationUnitType2;
1840
- })(DurationUnitType || {});
1841
- var ValueType = /* @__PURE__ */ ((ValueType2) => {
1842
- ValueType2["SHORT_TEXT"] = "SHORT_TEXT";
1843
- ValueType2["LONG_TEXT"] = "LONG_TEXT";
1844
- ValueType2["CHECK_BOX"] = "CHECK_BOX";
1845
- return ValueType2;
1846
- })(ValueType || {});
1847
- var BookingStatus = /* @__PURE__ */ ((BookingStatus2) => {
1848
- BookingStatus2["CREATED"] = "CREATED";
1849
- BookingStatus2["CONFIRMED"] = "CONFIRMED";
1850
- BookingStatus2["CANCELED"] = "CANCELED";
1851
- BookingStatus2["PENDING"] = "PENDING";
1852
- BookingStatus2["DECLINED"] = "DECLINED";
1853
- BookingStatus2["WAITING_LIST"] = "WAITING_LIST";
1854
- return BookingStatus2;
1855
- })(BookingStatus || {});
1856
- var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
1857
- PaymentStatus2["UNDEFINED"] = "UNDEFINED";
1858
- PaymentStatus2["NOT_PAID"] = "NOT_PAID";
1859
- PaymentStatus2["PAID"] = "PAID";
1860
- PaymentStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
1861
- PaymentStatus2["REFUNDED"] = "REFUNDED";
1862
- PaymentStatus2["EXEMPT"] = "EXEMPT";
1863
- PaymentStatus2["FAILED"] = "FAILED";
1864
- return PaymentStatus2;
1865
- })(PaymentStatus || {});
1866
- var SelectedPaymentOption = /* @__PURE__ */ ((SelectedPaymentOption2) => {
1867
- SelectedPaymentOption2["UNDEFINED"] = "UNDEFINED";
1868
- SelectedPaymentOption2["OFFLINE"] = "OFFLINE";
1869
- SelectedPaymentOption2["ONLINE"] = "ONLINE";
1870
- SelectedPaymentOption2["MEMBERSHIP"] = "MEMBERSHIP";
1871
- SelectedPaymentOption2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
1872
- return SelectedPaymentOption2;
1873
- })(SelectedPaymentOption || {});
1874
- var Platform = /* @__PURE__ */ ((Platform2) => {
1875
- Platform2["UNDEFINED_PLATFORM"] = "UNDEFINED_PLATFORM";
1876
- Platform2["WEB"] = "WEB";
1877
- Platform2["MOBILE_APP"] = "MOBILE_APP";
1878
- return Platform2;
1879
- })(Platform || {});
1880
- var Actor = /* @__PURE__ */ ((Actor2) => {
1881
- Actor2["UNDEFINED_ACTOR"] = "UNDEFINED_ACTOR";
1882
- Actor2["BUSINESS"] = "BUSINESS";
1883
- Actor2["CUSTOMER"] = "CUSTOMER";
1884
- return Actor2;
1885
- })(Actor || {});
1886
- var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
1887
- IdentityType2["UNKNOWN"] = "UNKNOWN";
1888
- IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1889
- IdentityType2["MEMBER"] = "MEMBER";
1890
- IdentityType2["WIX_USER"] = "WIX_USER";
1891
- IdentityType2["APP"] = "APP";
1892
- return IdentityType2;
1893
- })(IdentityType || {});
1894
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1895
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1896
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1897
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1898
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1899
- WebhookIdentityType2["APP"] = "APP";
1900
- return WebhookIdentityType2;
1901
- })(WebhookIdentityType || {});
1902
- var V2RequestedFields = /* @__PURE__ */ ((V2RequestedFields2) => {
1903
- V2RequestedFields2["STAFF_MEMBER_DETAILS"] = "STAFF_MEMBER_DETAILS";
1904
- V2RequestedFields2["RESOURCE_TYPE_DETAILS"] = "RESOURCE_TYPE_DETAILS";
1905
- V2RequestedFields2["DISCOUNT_INFO_DETAILS"] = "DISCOUNT_INFO_DETAILS";
1906
- V2RequestedFields2["STAFF_WORKING_HOURS_LOCATIONS"] = "STAFF_WORKING_HOURS_LOCATIONS";
1907
- V2RequestedFields2["RESOURCE_DETAILS"] = "RESOURCE_DETAILS";
1908
- return V2RequestedFields2;
1909
- })(V2RequestedFields || {});
1910
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1911
- SortOrder2["ASC"] = "ASC";
1912
- SortOrder2["DESC"] = "DESC";
1913
- return SortOrder2;
1914
- })(SortOrder || {});
1915
- var SortType = /* @__PURE__ */ ((SortType2) => {
1916
- SortType2["COUNT"] = "COUNT";
1917
- SortType2["VALUE"] = "VALUE";
1918
- return SortType2;
1919
- })(SortType || {});
1920
- var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
1921
- SortDirection2["DESC"] = "DESC";
1922
- SortDirection2["ASC"] = "ASC";
1923
- return SortDirection2;
1924
- })(SortDirection || {});
1925
- var MissingValues = /* @__PURE__ */ ((MissingValues2) => {
1926
- MissingValues2["EXCLUDE"] = "EXCLUDE";
1927
- MissingValues2["INCLUDE"] = "INCLUDE";
1928
- return MissingValues2;
1929
- })(MissingValues || {});
1930
- var ScalarType = /* @__PURE__ */ ((ScalarType2) => {
1931
- ScalarType2["COUNT_DISTINCT"] = "COUNT_DISTINCT";
1932
- ScalarType2["MIN"] = "MIN";
1933
- ScalarType2["MAX"] = "MAX";
1934
- ScalarType2["SUM"] = "SUM";
1935
- ScalarType2["AVG"] = "AVG";
1936
- return ScalarType2;
1937
- })(ScalarType || {});
1938
- var NestedAggregationType = /* @__PURE__ */ ((NestedAggregationType2) => {
1939
- NestedAggregationType2["VALUE"] = "VALUE";
1940
- NestedAggregationType2["RANGE"] = "RANGE";
1941
- NestedAggregationType2["SCALAR"] = "SCALAR";
1942
- NestedAggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
1943
- return NestedAggregationType2;
1944
- })(NestedAggregationType || {});
1945
- var Interval = /* @__PURE__ */ ((Interval2) => {
1946
- Interval2["YEAR"] = "YEAR";
1947
- Interval2["MONTH"] = "MONTH";
1948
- Interval2["WEEK"] = "WEEK";
1949
- Interval2["DAY"] = "DAY";
1950
- Interval2["HOUR"] = "HOUR";
1951
- Interval2["MINUTE"] = "MINUTE";
1952
- Interval2["SECOND"] = "SECOND";
1953
- return Interval2;
1954
- })(Interval || {});
1955
- var AggregationType = /* @__PURE__ */ ((AggregationType2) => {
1956
- AggregationType2["VALUE"] = "VALUE";
1957
- AggregationType2["RANGE"] = "RANGE";
1958
- AggregationType2["SCALAR"] = "SCALAR";
1959
- AggregationType2["DATE_HISTOGRAM"] = "DATE_HISTOGRAM";
1960
- AggregationType2["NESTED"] = "NESTED";
1961
- return AggregationType2;
1962
- })(AggregationType || {});
1963
- var Mode = /* @__PURE__ */ ((Mode2) => {
1964
- Mode2["OR"] = "OR";
1965
- Mode2["AND"] = "AND";
1966
- return Mode2;
1967
- })(Mode || {});
1968
- var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
1969
- RequestedFields2["DEFAULT_BOOKING_FORM"] = "DEFAULT_BOOKING_FORM";
1970
- return RequestedFields2;
1971
- })(RequestedFields || {});
1972
- var Action = /* @__PURE__ */ ((Action2) => {
1973
- Action2["KEEP_AT_CURRENT_LOCATION"] = "KEEP_AT_CURRENT_LOCATION";
1974
- Action2["MOVE_TO_LOCATION"] = "MOVE_TO_LOCATION";
1975
- return Action2;
1976
- })(Action || {});
1977
- var InvalidSlugError = /* @__PURE__ */ ((InvalidSlugError2) => {
1978
- InvalidSlugError2["SLUG_CONTAINS_ILLEGAL_CHARACTERS"] = "SLUG_CONTAINS_ILLEGAL_CHARACTERS";
1979
- InvalidSlugError2["SLUG_ALREADY_EXISTS"] = "SLUG_ALREADY_EXISTS";
1980
- return InvalidSlugError2;
1981
- })(InvalidSlugError || {});
1982
- var CloneErrors = /* @__PURE__ */ ((CloneErrors2) => {
1983
- CloneErrors2["SESSIONS"] = "SESSIONS";
1984
- CloneErrors2["OPTIONS_AND_VARIANTS"] = "OPTIONS_AND_VARIANTS";
1985
- CloneErrors2["FORM"] = "FORM";
1986
- CloneErrors2["PRICING_PLANS"] = "PRICING_PLANS";
1987
- return CloneErrors2;
1988
- })(CloneErrors || {});
1989
- var Status = /* @__PURE__ */ ((Status2) => {
1990
- Status2["CREATED"] = "CREATED";
1991
- Status2["DELETED"] = "DELETED";
1992
- return Status2;
1993
- })(Status || {});
1994
- var Event = /* @__PURE__ */ ((Event2) => {
1995
- Event2["Updated"] = "Updated";
1996
- Event2["Deleted"] = "Deleted";
1997
- Event2["Created"] = "Created";
1998
- return Event2;
1999
- })(Event || {});
2000
- var CrudType = /* @__PURE__ */ ((CrudType2) => {
2001
- CrudType2["INVALID_CRUD_TYPE"] = "INVALID_CRUD_TYPE";
2002
- CrudType2["CREATE"] = "CREATE";
2003
- CrudType2["UPDATE"] = "UPDATE";
2004
- CrudType2["DELETE"] = "DELETE";
2005
- CrudType2["CREATE_OR_UPDATE"] = "CREATE_OR_UPDATE";
2006
- return CrudType2;
2007
- })(CrudType || {});
2008
- var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
2009
- PlacementType2["BEFORE"] = "BEFORE";
2010
- PlacementType2["AFTER"] = "AFTER";
2011
- PlacementType2["REPLACE"] = "REPLACE";
2012
- return PlacementType2;
2013
- })(PlacementType || {});
2014
- var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
2015
- DayOfWeek2["MONDAY"] = "MONDAY";
2016
- DayOfWeek2["TUESDAY"] = "TUESDAY";
2017
- DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
2018
- DayOfWeek2["THURSDAY"] = "THURSDAY";
2019
- DayOfWeek2["FRIDAY"] = "FRIDAY";
2020
- DayOfWeek2["SATURDAY"] = "SATURDAY";
2021
- DayOfWeek2["SUNDAY"] = "SUNDAY";
2022
- return DayOfWeek2;
2023
- })(DayOfWeek || {});
2024
- var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
2025
- ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
2026
- ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
2027
- ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
2028
- return ResolutionMethod2;
2029
- })(ResolutionMethod || {});
2030
-
2031
- // src/bookings-services-v2-service-services.meta.ts
2032
- function createService2() {
2033
- const payload = {};
2034
- const getRequestOptions = createService(payload);
2035
- const getUrl = (context) => {
2036
- const { url } = getRequestOptions(context);
2037
- return url;
2038
- };
2039
- return {
2040
- getUrl,
2041
- httpMethod: "POST",
2042
- path: "/v2/services",
2043
- pathParams: {},
2044
- __requestType: null,
2045
- __originalRequestType: null,
2046
- __responseType: null,
2047
- __originalResponseType: null
2048
- };
2049
- }
2050
- function bulkCreateServices2() {
2051
- const payload = {};
2052
- const getRequestOptions = bulkCreateServices(payload);
2053
- const getUrl = (context) => {
2054
- const { url } = getRequestOptions(context);
2055
- return url;
2056
- };
2057
- return {
2058
- getUrl,
2059
- httpMethod: "POST",
2060
- path: "/v2/bulk/services/create",
2061
- pathParams: {},
2062
- __requestType: null,
2063
- __originalRequestType: null,
2064
- __responseType: null,
2065
- __originalResponseType: null
2066
- };
2067
- }
2068
- function getService2() {
2069
- const payload = { serviceId: ":serviceId" };
2070
- const getRequestOptions = getService(payload);
2071
- const getUrl = (context) => {
2072
- const { url } = getRequestOptions(context);
2073
- return url;
2074
- };
2075
- return {
2076
- getUrl,
2077
- httpMethod: "GET",
2078
- path: "/v2/services/{serviceId}",
2079
- pathParams: { serviceId: "serviceId" },
2080
- __requestType: null,
2081
- __originalRequestType: null,
2082
- __responseType: null,
2083
- __originalResponseType: null
2084
- };
2085
- }
2086
- function updateService2() {
2087
- const payload = { service: { id: ":serviceId" } };
2088
- const getRequestOptions = updateService(payload);
2089
- const getUrl = (context) => {
2090
- const { url } = getRequestOptions(context);
2091
- return url;
2092
- };
2093
- return {
2094
- getUrl,
2095
- httpMethod: "PATCH",
2096
- path: "/v2/services/{service.id}",
2097
- pathParams: { serviceId: "serviceId" },
2098
- __requestType: null,
2099
- __originalRequestType: null,
2100
- __responseType: null,
2101
- __originalResponseType: null
2102
- };
2103
- }
2104
- function bulkUpdateServices2() {
2105
- const payload = {};
2106
- const getRequestOptions = bulkUpdateServices(payload);
2107
- const getUrl = (context) => {
2108
- const { url } = getRequestOptions(context);
2109
- return url;
2110
- };
2111
- return {
2112
- getUrl,
2113
- httpMethod: "POST",
2114
- path: "/v2/bulk/services/update",
2115
- pathParams: {},
2116
- __requestType: null,
2117
- __originalRequestType: null,
2118
- __responseType: null,
2119
- __originalResponseType: null
2120
- };
2121
- }
2122
- function bulkUpdateServicesByFilter2() {
2123
- const payload = {};
2124
- const getRequestOptions = bulkUpdateServicesByFilter(payload);
2125
- const getUrl = (context) => {
2126
- const { url } = getRequestOptions(context);
2127
- return url;
2128
- };
2129
- return {
2130
- getUrl,
2131
- httpMethod: "POST",
2132
- path: "/v2/bulk/services/update-by-filter",
2133
- pathParams: {},
2134
- __requestType: null,
2135
- __originalRequestType: null,
2136
- __responseType: null,
2137
- __originalResponseType: null
2138
- };
2139
- }
2140
- function deleteService2() {
2141
- const payload = { serviceId: ":serviceId" };
2142
- const getRequestOptions = deleteService(payload);
2143
- const getUrl = (context) => {
2144
- const { url } = getRequestOptions(context);
2145
- return url;
2146
- };
2147
- return {
2148
- getUrl,
2149
- httpMethod: "DELETE",
2150
- path: "/v2/services/{serviceId}",
2151
- pathParams: { serviceId: "serviceId" },
2152
- __requestType: null,
2153
- __originalRequestType: null,
2154
- __responseType: null,
2155
- __originalResponseType: null
2156
- };
2157
- }
2158
- function bulkDeleteServices2() {
2159
- const payload = {};
2160
- const getRequestOptions = bulkDeleteServices(payload);
2161
- const getUrl = (context) => {
2162
- const { url } = getRequestOptions(context);
2163
- return url;
2164
- };
2165
- return {
2166
- getUrl,
2167
- httpMethod: "POST",
2168
- path: "/v2/bulk/services/delete",
2169
- pathParams: {},
2170
- __requestType: null,
2171
- __originalRequestType: null,
2172
- __responseType: null,
2173
- __originalResponseType: null
2174
- };
2175
- }
2176
- function bulkDeleteServicesByFilter2() {
2177
- const payload = {};
2178
- const getRequestOptions = bulkDeleteServicesByFilter(payload);
2179
- const getUrl = (context) => {
2180
- const { url } = getRequestOptions(context);
2181
- return url;
2182
- };
2183
- return {
2184
- getUrl,
2185
- httpMethod: "POST",
2186
- path: "/v2/bulk/services/delete-by-filter",
2187
- pathParams: {},
2188
- __requestType: null,
2189
- __originalRequestType: null,
2190
- __responseType: null,
2191
- __originalResponseType: null
2192
- };
2193
- }
2194
- function queryServices2() {
2195
- const payload = {};
2196
- const getRequestOptions = queryServices(payload);
2197
- const getUrl = (context) => {
2198
- const { url } = getRequestOptions(context);
2199
- return url;
2200
- };
2201
- return {
2202
- getUrl,
2203
- httpMethod: "POST",
2204
- path: "/v2/services/query",
2205
- pathParams: {},
2206
- __requestType: null,
2207
- __originalRequestType: null,
2208
- __responseType: null,
2209
- __originalResponseType: null
2210
- };
2211
- }
2212
- function searchServices2() {
2213
- const payload = {};
2214
- const getRequestOptions = searchServices(payload);
2215
- const getUrl = (context) => {
2216
- const { url } = getRequestOptions(context);
2217
- return url;
2218
- };
2219
- return {
2220
- getUrl,
2221
- httpMethod: "POST",
2222
- path: "/v2/services/search",
2223
- pathParams: {},
2224
- __requestType: null,
2225
- __originalRequestType: null,
2226
- __responseType: null,
2227
- __originalResponseType: null
2228
- };
2229
- }
2230
- function queryPolicies2() {
2231
- const payload = {};
2232
- const getRequestOptions = queryPolicies(payload);
2233
- const getUrl = (context) => {
2234
- const { url } = getRequestOptions(context);
2235
- return url;
2236
- };
2237
- return {
2238
- getUrl,
2239
- httpMethod: "POST",
2240
- path: "/v2/services/policies/query",
2241
- pathParams: {},
2242
- __requestType: null,
2243
- __originalRequestType: null,
2244
- __responseType: null,
2245
- __originalResponseType: null
2246
- };
2247
- }
2248
- function queryBookingForms2() {
2249
- const payload = {};
2250
- const getRequestOptions = queryBookingForms(payload);
2251
- const getUrl = (context) => {
2252
- const { url } = getRequestOptions(context);
2253
- return url;
2254
- };
2255
- return {
2256
- getUrl,
2257
- httpMethod: "POST",
2258
- path: "/v2/services/booking-forms/query",
2259
- pathParams: {},
2260
- __requestType: null,
2261
- __originalRequestType: null,
2262
- __responseType: null,
2263
- __originalResponseType: null
2264
- };
2265
- }
2266
- function countServices2() {
2267
- const payload = {};
2268
- const getRequestOptions = countServices(payload);
2269
- const getUrl = (context) => {
2270
- const { url } = getRequestOptions(context);
2271
- return url;
2272
- };
2273
- return {
2274
- getUrl,
2275
- httpMethod: "POST",
2276
- path: "/v2/services/count",
2277
- pathParams: {},
2278
- __requestType: null,
2279
- __originalRequestType: null,
2280
- __responseType: null,
2281
- __originalResponseType: null
2282
- };
2283
- }
2284
- function queryLocations2() {
2285
- const payload = {};
2286
- const getRequestOptions = queryLocations(payload);
2287
- const getUrl = (context) => {
2288
- const { url } = getRequestOptions(context);
2289
- return url;
2290
- };
2291
- return {
2292
- getUrl,
2293
- httpMethod: "POST",
2294
- path: "/v2/services/locations/query",
2295
- pathParams: {},
2296
- __requestType: null,
2297
- __originalRequestType: null,
2298
- __responseType: null,
2299
- __originalResponseType: null
2300
- };
2301
- }
2302
- function queryCategories2() {
2303
- const payload = {};
2304
- const getRequestOptions = queryCategories(payload);
2305
- const getUrl = (context) => {
2306
- const { url } = getRequestOptions(context);
2307
- return url;
2308
- };
2309
- return {
2310
- getUrl,
2311
- httpMethod: "POST",
2312
- path: "/v2/services/categories/query",
2313
- pathParams: {},
2314
- __requestType: null,
2315
- __originalRequestType: null,
2316
- __responseType: null,
2317
- __originalResponseType: null
2318
- };
2319
- }
2320
- function setServiceLocations2() {
2321
- const payload = { serviceId: ":serviceId" };
2322
- const getRequestOptions = setServiceLocations(payload);
2323
- const getUrl = (context) => {
2324
- const { url } = getRequestOptions(context);
2325
- return url;
2326
- };
2327
- return {
2328
- getUrl,
2329
- httpMethod: "POST",
2330
- path: "/v2/services/{serviceId}/locations",
2331
- pathParams: { serviceId: "serviceId" },
2332
- __requestType: null,
2333
- __originalRequestType: null,
2334
- __responseType: null,
2335
- __originalResponseType: null
2336
- };
2337
- }
2338
- function enablePricingPlansForService2() {
2339
- const payload = { serviceId: ":serviceId" };
2340
- const getRequestOptions = enablePricingPlansForService(
2341
- payload
2342
- );
2343
- const getUrl = (context) => {
2344
- const { url } = getRequestOptions(context);
2345
- return url;
2346
- };
2347
- return {
2348
- getUrl,
2349
- httpMethod: "POST",
2350
- path: "/v2/services/{serviceId}/pricing-plans/add",
2351
- pathParams: { serviceId: "serviceId" },
2352
- __requestType: null,
2353
- __originalRequestType: null,
2354
- __responseType: null,
2355
- __originalResponseType: null
2356
- };
2357
- }
2358
- function disablePricingPlansForService2() {
2359
- const payload = { serviceId: ":serviceId" };
2360
- const getRequestOptions = disablePricingPlansForService(
2361
- payload
2362
- );
2363
- const getUrl = (context) => {
2364
- const { url } = getRequestOptions(context);
2365
- return url;
2366
- };
2367
- return {
2368
- getUrl,
2369
- httpMethod: "POST",
2370
- path: "/v2/services/{serviceId}/pricing-plans/remove",
2371
- pathParams: { serviceId: "serviceId" },
2372
- __requestType: null,
2373
- __originalRequestType: null,
2374
- __responseType: null,
2375
- __originalResponseType: null
2376
- };
2377
- }
2378
- function setCustomSlug2() {
2379
- const payload = { serviceId: ":serviceId" };
2380
- const getRequestOptions = setCustomSlug(payload);
2381
- const getUrl = (context) => {
2382
- const { url } = getRequestOptions(context);
2383
- return url;
2384
- };
2385
- return {
2386
- getUrl,
2387
- httpMethod: "POST",
2388
- path: "/v2/services/{serviceId}/slugs/custom",
2389
- pathParams: { serviceId: "serviceId" },
2390
- __requestType: null,
2391
- __originalRequestType: null,
2392
- __responseType: null,
2393
- __originalResponseType: null
2394
- };
2395
- }
2396
- function validateSlug2() {
2397
- const payload = {};
2398
- const getRequestOptions = validateSlug(payload);
2399
- const getUrl = (context) => {
2400
- const { url } = getRequestOptions(context);
2401
- return url;
2402
- };
2403
- return {
2404
- getUrl,
2405
- httpMethod: "POST",
2406
- path: "/v2/services/slugs/validate",
2407
- pathParams: {},
2408
- __requestType: null,
2409
- __originalRequestType: null,
2410
- __responseType: null,
2411
- __originalResponseType: null
2412
- };
2413
- }
2414
- function cloneService2() {
2415
- const payload = {};
2416
- const getRequestOptions = cloneService(payload);
2417
- const getUrl = (context) => {
2418
- const { url } = getRequestOptions(context);
2419
- return url;
2420
- };
2421
- return {
2422
- getUrl,
2423
- httpMethod: "POST",
2424
- path: "/v2/services/clone",
2425
- pathParams: {},
2426
- __requestType: null,
2427
- __originalRequestType: null,
2428
- __responseType: null,
2429
- __originalResponseType: null
2430
- };
2431
- }
2432
- function createAddOnGroup2() {
2433
- const payload = {};
2434
- const getRequestOptions = createAddOnGroup(payload);
2435
- const getUrl = (context) => {
2436
- const { url } = getRequestOptions(context);
2437
- return url;
2438
- };
2439
- return {
2440
- getUrl,
2441
- httpMethod: "POST",
2442
- path: "/v2/services/add-on-groups/create",
2443
- pathParams: {},
2444
- __requestType: null,
2445
- __originalRequestType: null,
2446
- __responseType: null,
2447
- __originalResponseType: null
2448
- };
2449
- }
2450
- function deleteAddOnGroup2() {
2451
- const payload = {};
2452
- const getRequestOptions = deleteAddOnGroup(payload);
2453
- const getUrl = (context) => {
2454
- const { url } = getRequestOptions(context);
2455
- return url;
2456
- };
2457
- return {
2458
- getUrl,
2459
- httpMethod: "POST",
2460
- path: "/v2/services/add-on-groups/delete",
2461
- pathParams: {},
2462
- __requestType: null,
2463
- __originalRequestType: null,
2464
- __responseType: null,
2465
- __originalResponseType: null
2466
- };
2467
- }
2468
- function updateAddOnGroup2() {
2469
- const payload = {};
2470
- const getRequestOptions = updateAddOnGroup(payload);
2471
- const getUrl = (context) => {
2472
- const { url } = getRequestOptions(context);
2473
- return url;
2474
- };
2475
- return {
2476
- getUrl,
2477
- httpMethod: "POST",
2478
- path: "/v2/services/add-on-groups/update",
2479
- pathParams: {},
2480
- __requestType: null,
2481
- __originalRequestType: null,
2482
- __responseType: null,
2483
- __originalResponseType: null
2484
- };
2485
- }
2486
- function listAddOnGroupsByServiceId2() {
2487
- const payload = {};
2488
- const getRequestOptions = listAddOnGroupsByServiceId(payload);
2489
- const getUrl = (context) => {
2490
- const { url } = getRequestOptions(context);
2491
- return url;
2492
- };
2493
- return {
2494
- getUrl,
2495
- httpMethod: "POST",
2496
- path: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
2497
- pathParams: {},
2498
- __requestType: null,
2499
- __originalRequestType: null,
2500
- __responseType: null,
2501
- __originalResponseType: null
2502
- };
2503
- }
2504
- function setAddOnsForGroup2() {
2505
- const payload = {};
2506
- const getRequestOptions = setAddOnsForGroup(payload);
2507
- const getUrl = (context) => {
2508
- const { url } = getRequestOptions(context);
2509
- return url;
2510
- };
2511
- return {
2512
- getUrl,
2513
- httpMethod: "POST",
2514
- path: "/v2/services/add-on-groups/set-add-ons-for-group",
2515
- pathParams: {},
2516
- __requestType: null,
2517
- __originalRequestType: null,
2518
- __responseType: null,
2519
- __originalResponseType: null
2520
- };
2521
- }
2522
- export {
2523
- Action as ActionOriginal,
2524
- Actor as ActorOriginal,
2525
- AddOnPaymentOptions as AddOnPaymentOptionsOriginal,
2526
- AggregationType as AggregationTypeOriginal,
2527
- BookingStatus as BookingStatusOriginal,
2528
- CloneErrors as CloneErrorsOriginal,
2529
- CompletionRequirement as CompletionRequirementOriginal,
2530
- CrudType as CrudTypeOriginal,
2531
- DayOfWeek as DayOfWeekOriginal,
2532
- DurationUnitType as DurationUnitTypeOriginal,
2533
- Event as EventOriginal,
2534
- FirstChargeDateType as FirstChargeDateTypeOriginal,
2535
- FrequencyType as FrequencyTypeOriginal,
2536
- IdentityType as IdentityTypeOriginal,
2537
- Interval as IntervalOriginal,
2538
- InvalidSlugError as InvalidSlugErrorOriginal,
2539
- LocationTypeEnumLocationType as LocationTypeEnumLocationTypeOriginal,
2540
- LocationType as LocationTypeOriginal,
2541
- MissingValues as MissingValuesOriginal,
2542
- Mode as ModeOriginal,
2543
- MultiServiceBookingType as MultiServiceBookingTypeOriginal,
2544
- NestedAggregationType as NestedAggregationTypeOriginal,
2545
- PaymentStatus as PaymentStatusOriginal,
2546
- PlacementType as PlacementTypeOriginal,
2547
- Platform as PlatformOriginal,
2548
- RankingOrder as RankingOrderOriginal,
2549
- RateType as RateTypeOriginal,
2550
- RequestedFields as RequestedFieldsOriginal,
2551
- RequestedGender as RequestedGenderOriginal,
2552
- ResolutionMethod as ResolutionMethodOriginal,
2553
- ResourceTransparency as ResourceTransparencyOriginal,
2554
- ScalarType as ScalarTypeOriginal,
2555
- SelectedPaymentOption as SelectedPaymentOptionOriginal,
2556
- SelectionMethod as SelectionMethodOriginal,
2557
- ServiceType as ServiceTypeOriginal,
2558
- SortDirection as SortDirectionOriginal,
2559
- SortOrder as SortOrderOriginal,
2560
- SortType as SortTypeOriginal,
2561
- SortingMethodType as SortingMethodTypeOriginal,
2562
- Status as StatusOriginal,
2563
- TaxableAddressType as TaxableAddressTypeOriginal,
2564
- Timing as TimingOriginal,
2565
- UnitType as UnitTypeOriginal,
2566
- V2RequestedFields as V2RequestedFieldsOriginal,
2567
- ValueType as ValueTypeOriginal,
2568
- WebhookIdentityType as WebhookIdentityTypeOriginal,
2569
- WorkingHoursMode as WorkingHoursModeOriginal,
2570
- bulkCreateServices2 as bulkCreateServices,
2571
- bulkDeleteServices2 as bulkDeleteServices,
2572
- bulkDeleteServicesByFilter2 as bulkDeleteServicesByFilter,
2573
- bulkUpdateServices2 as bulkUpdateServices,
2574
- bulkUpdateServicesByFilter2 as bulkUpdateServicesByFilter,
2575
- cloneService2 as cloneService,
2576
- countServices2 as countServices,
2577
- createAddOnGroup2 as createAddOnGroup,
2578
- createService2 as createService,
2579
- deleteAddOnGroup2 as deleteAddOnGroup,
2580
- deleteService2 as deleteService,
2581
- disablePricingPlansForService2 as disablePricingPlansForService,
2582
- enablePricingPlansForService2 as enablePricingPlansForService,
2583
- getService2 as getService,
2584
- listAddOnGroupsByServiceId2 as listAddOnGroupsByServiceId,
2585
- queryBookingForms2 as queryBookingForms,
2586
- queryCategories2 as queryCategories,
2587
- queryLocations2 as queryLocations,
2588
- queryPolicies2 as queryPolicies,
2589
- queryServices2 as queryServices,
2590
- searchServices2 as searchServices,
2591
- setAddOnsForGroup2 as setAddOnsForGroup,
2592
- setCustomSlug2 as setCustomSlug,
2593
- setServiceLocations2 as setServiceLocations,
2594
- updateAddOnGroup2 as updateAddOnGroup,
2595
- updateService2 as updateService,
2596
- validateSlug2 as validateSlug
2597
- };
2598
- //# sourceMappingURL=meta.mjs.map