@wix/auto_sdk_bookings_services 1.0.72 → 1.0.74

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 (41) hide show
  1. package/build/cjs/{bookings-services-v2-service-services.universal-DYRSxPXw.d.ts → bookings-services-v2-service-services.universal-D6jEh8MN.d.ts} +332 -169
  2. package/build/cjs/index.d.ts +70 -3
  3. package/build/cjs/index.js +469 -0
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +2 -2
  6. package/build/cjs/index.typings.js +415 -0
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +204 -3
  9. package/build/cjs/meta.js +345 -0
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/es/{bookings-services-v2-service-services.universal-DYRSxPXw.d.mts → bookings-services-v2-service-services.universal-D6jEh8MN.d.mts} +332 -169
  12. package/build/es/index.d.mts +70 -3
  13. package/build/es/index.mjs +463 -0
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +2 -2
  16. package/build/es/index.typings.mjs +409 -0
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +204 -3
  19. package/build/es/meta.mjs +339 -0
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/internal/cjs/{bookings-services-v2-service-services.universal-DYRSxPXw.d.ts → bookings-services-v2-service-services.universal-D6jEh8MN.d.ts} +332 -169
  22. package/build/internal/cjs/index.d.ts +70 -3
  23. package/build/internal/cjs/index.js +469 -0
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +2 -2
  26. package/build/internal/cjs/index.typings.js +415 -0
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +204 -3
  29. package/build/internal/cjs/meta.js +345 -0
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/es/{bookings-services-v2-service-services.universal-DYRSxPXw.d.mts → bookings-services-v2-service-services.universal-D6jEh8MN.d.mts} +332 -169
  32. package/build/internal/es/index.d.mts +70 -3
  33. package/build/internal/es/index.mjs +463 -0
  34. package/build/internal/es/index.mjs.map +1 -1
  35. package/build/internal/es/index.typings.d.mts +2 -2
  36. package/build/internal/es/index.typings.mjs +409 -0
  37. package/build/internal/es/index.typings.mjs.map +1 -1
  38. package/build/internal/es/meta.d.mts +204 -3
  39. package/build/internal/es/meta.mjs +339 -0
  40. package/build/internal/es/meta.mjs.map +1 -1
  41. package/package.json +3 -2
@@ -1,4 +1,4 @@
1
- import { bJ as CreateServiceRequest$1, bK as CreateServiceResponse$1, bO as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, bT as GetServiceRequest$1, bU as GetServiceResponse$1, bZ as UpdateServiceRequest$1, b_ as UpdateServiceResponse$1, b$ as BulkUpdateServicesRequest$1, d as BulkUpdateServicesResponse$1, c1 as BulkUpdateServicesByFilterRequest$1, f as BulkUpdateServicesByFilterResponse$1, c2 as DeleteServiceRequest$1, c4 as DeleteServiceResponse$1, c5 as BulkDeleteServicesRequest$1, h as BulkDeleteServicesResponse$1, c6 as BulkDeleteServicesByFilterRequest$1, j as BulkDeleteServicesByFilterResponse$1, c7 as QueryServicesRequest$1, cd as QueryServicesResponse$1, cg as SearchServicesRequest$1, m as SearchServicesResponse$1, cU as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, cX as QueryBookingFormsRequest$1, p as QueryBookingFormsResponse$1, c$ as CountServicesRequest$1, s as CountServicesResponse$1, d0 as QueryLocationsRequest$1, u as QueryLocationsResponse$1, d5 as QueryCategoriesRequest$1, w as QueryCategoriesResponse$1, d9 as SetServiceLocationsRequest$1, y as SetServiceLocationsResponse$1, dd as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, df as DisablePricingPlansForServiceRequest$1, F as DisablePricingPlansForServiceResponse$1, dg as SetCustomSlugRequest$1, I as SetCustomSlugResponse$1, dh as ValidateSlugRequest$1, M as ValidateSlugResponse$1, di as CloneServiceRequest$1, N as CloneServiceResponse$1 } from './bookings-services-v2-service-services.universal-DYRSxPXw.js';
1
+ import { bH as CreateServiceRequest$1, bI as CreateServiceResponse$1, bM as BulkCreateServicesRequest$1, a as BulkCreateServicesResponse$1, bR as GetServiceRequest$1, bS as GetServiceResponse$1, bX as UpdateServiceRequest$1, bY as UpdateServiceResponse$1, bZ as BulkUpdateServicesRequest$1, d as BulkUpdateServicesResponse$1, b$ as BulkUpdateServicesByFilterRequest$1, f as BulkUpdateServicesByFilterResponse$1, c0 as DeleteServiceRequest$1, c2 as DeleteServiceResponse$1, c3 as BulkDeleteServicesRequest$1, h as BulkDeleteServicesResponse$1, c4 as BulkDeleteServicesByFilterRequest$1, j as BulkDeleteServicesByFilterResponse$1, c5 as QueryServicesRequest$1, cb as QueryServicesResponse$1, ce as SearchServicesRequest$1, m as SearchServicesResponse$1, cS as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, cV as QueryBookingFormsRequest$1, p as QueryBookingFormsResponse$1, cZ as CountServicesRequest$1, s as CountServicesResponse$1, c_ as QueryLocationsRequest$1, u as QueryLocationsResponse$1, d3 as QueryCategoriesRequest$1, w as QueryCategoriesResponse$1, d7 as SetServiceLocationsRequest$1, y as SetServiceLocationsResponse$1, db as EnablePricingPlansForServiceRequest$1, E as EnablePricingPlansForServiceResponse$1, dd as DisablePricingPlansForServiceRequest$1, F as DisablePricingPlansForServiceResponse$1, de as SetCustomSlugRequest$1, I as SetCustomSlugResponse$1, df as ValidateSlugRequest$1, M as ValidateSlugResponse$1, dg as CloneServiceRequest$1, N as CloneServiceResponse$1, dP as CreateAddOnGroupRequest$1, R as CreateAddOnGroupResponse$1, dQ as DeleteAddOnGroupRequest$1, dR as DeleteAddOnGroupResponse$1, dS as UpdateAddOnGroupRequest$1, Y as UpdateAddOnGroupResponse$1, dT as ListAddOnGroupsByServiceIdRequest$1, $ as ListAddOnGroupsByServiceIdResponse$1, dX as SetAddOnsForGroupRequest$1, a1 as SetAddOnsForGroupResponse$1, dY as ValidateAddOnsSelectionRequest$1, a4 as ValidateAddOnsSelectionResponse$1 } from './bookings-services-v2-service-services.universal-D6jEh8MN.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** The `service` object represents an offering that a business provides to its customers. */
@@ -44,7 +44,7 @@ interface Service {
44
44
  defaultCapacity?: number | null;
45
45
  /** Media associated with the service. */
46
46
  media?: Media;
47
- /** Whether the service is hidden from the site. */
47
+ /** Whether the service is hidden from Wix Bookings pages and widgets. */
48
48
  hidden?: boolean | null;
49
49
  /**
50
50
  * _Category_
@@ -1089,6 +1089,35 @@ interface Settings {
1089
1089
  */
1090
1090
  keywords?: Keyword[];
1091
1091
  }
1092
+ interface AddOnGroup {
1093
+ /**
1094
+ * ID of the group.
1095
+ * @readonly
1096
+ * @format GUID
1097
+ */
1098
+ id?: string | null;
1099
+ /**
1100
+ * The name of the group.
1101
+ * @maxLength 100
1102
+ */
1103
+ name?: string | null;
1104
+ /**
1105
+ * The maximum number of AddOns that can be selected from this group.
1106
+ * If not set, there is no upper limit.
1107
+ */
1108
+ maxNumberOfAddOns?: number | null;
1109
+ /**
1110
+ * List of AddOn IDs that are part of this group.
1111
+ * @format GUID
1112
+ * @maxSize 7
1113
+ */
1114
+ addOnIds?: string[] | null;
1115
+ /**
1116
+ * The group prompt.
1117
+ * @maxLength 200
1118
+ */
1119
+ prompt?: string | null;
1120
+ }
1092
1121
  interface CreateServiceRequest {
1093
1122
  /** Service to create. */
1094
1123
  service: Service;
@@ -2367,6 +2396,172 @@ declare enum CloneErrors {
2367
2396
  }
2368
2397
  /** @enumType */
2369
2398
  type CloneErrorsWithLiterals = CloneErrors | 'OPTIONS_AND_VARIANTS' | 'FORM';
2399
+ interface CreateAddOnGroupRequest {
2400
+ /** AddOnGroup to create. */
2401
+ addOnGroup: AddOnGroup;
2402
+ /**
2403
+ * ID of the service to create the AddOnGroup for.
2404
+ * @format GUID
2405
+ */
2406
+ serviceId?: string | null;
2407
+ }
2408
+ interface CreateAddOnGroupResponse {
2409
+ /** Created AddOnGroup. */
2410
+ addOnGroup?: AddOnGroup;
2411
+ }
2412
+ interface DeleteAddOnGroupRequest {
2413
+ /**
2414
+ * ID of the AddOnGroup to delete.
2415
+ * @format GUID
2416
+ */
2417
+ addOnGroupId: string | null;
2418
+ /**
2419
+ * ID of the service from which to delete the AddOnGroup.
2420
+ * @format GUID
2421
+ */
2422
+ serviceId: string | null;
2423
+ }
2424
+ interface DeleteAddOnGroupResponse {
2425
+ }
2426
+ interface UpdateAddOnGroupRequest {
2427
+ /** AddOnGroup to update. */
2428
+ addOnGroup: AddOnGroup;
2429
+ /**
2430
+ * ID of the service that contains the AddOnGroup.
2431
+ * @format GUID
2432
+ */
2433
+ serviceId: string | null;
2434
+ }
2435
+ interface UpdateAddOnGroupResponse {
2436
+ /** Updated AddOnGroup */
2437
+ addOnGroup?: AddOnGroup;
2438
+ }
2439
+ interface ListAddOnGroupsByServiceIdRequest {
2440
+ /**
2441
+ * ID of the service to retrieve AddOnGroups for.
2442
+ * @format GUID
2443
+ */
2444
+ serviceId: string | null;
2445
+ /**
2446
+ * List of group ids to return. If not provided, all groups are returned.
2447
+ * @format GUID
2448
+ * @maxSize 3
2449
+ */
2450
+ groupIds?: string[] | null;
2451
+ }
2452
+ interface ListAddOnGroupsByServiceIdResponse {
2453
+ /**
2454
+ * List of group IDs and their linked AddOns.
2455
+ * @maxSize 3
2456
+ */
2457
+ addOnGroupsDetails?: AddOnGroupDetail[];
2458
+ }
2459
+ interface AddOn extends AddOnAddOnInfoOneOf {
2460
+ /** The AddOn description. */
2461
+ durationInMinutes?: number;
2462
+ /** The AddOn max quantity. */
2463
+ maxQuantity?: number;
2464
+ /**
2465
+ * The AddOn ID.
2466
+ * @format GUID
2467
+ */
2468
+ addOnId?: string | null;
2469
+ /**
2470
+ * The AddOn name.
2471
+ * @maxLength 100
2472
+ */
2473
+ name?: string | null;
2474
+ /** The AddOn price. */
2475
+ price?: Money;
2476
+ }
2477
+ /** @oneof */
2478
+ interface AddOnAddOnInfoOneOf {
2479
+ /** The AddOn description. */
2480
+ durationInMinutes?: number;
2481
+ /** The AddOn max quantity. */
2482
+ maxQuantity?: number;
2483
+ }
2484
+ interface AddOnGroupDetail {
2485
+ /**
2486
+ * The group ID.
2487
+ * @format GUID
2488
+ */
2489
+ groupId?: string | null;
2490
+ /** The group max number of AddOns. */
2491
+ maxNumberOfAddOns?: number | null;
2492
+ /**
2493
+ * The group name.
2494
+ * @maxLength 100
2495
+ */
2496
+ groupName?: string | null;
2497
+ /**
2498
+ * The AddOns information linked to the group.
2499
+ * @maxSize 7
2500
+ */
2501
+ addOns?: AddOn[];
2502
+ /**
2503
+ * The group prompt.
2504
+ * @maxLength 200
2505
+ */
2506
+ prompt?: string | null;
2507
+ }
2508
+ interface SetAddOnsForGroupRequest {
2509
+ /**
2510
+ * The service ID to set AddOns for.
2511
+ * @format GUID
2512
+ */
2513
+ serviceId: string | null;
2514
+ /**
2515
+ * The group ID to set AddOns for.
2516
+ * @format GUID
2517
+ */
2518
+ groupId: string | null;
2519
+ /**
2520
+ * The IDs of AddOns to set.
2521
+ * @format GUID
2522
+ * @minSize 1
2523
+ * @maxSize 7
2524
+ */
2525
+ addOnIds: string[] | null;
2526
+ }
2527
+ interface SetAddOnsForGroupResponse {
2528
+ /** The updated AddOnGroup. */
2529
+ addOnGroup?: AddOnGroup;
2530
+ }
2531
+ interface ValidateAddOnsSelectionRequest {
2532
+ /**
2533
+ * The service ID to validate AddOns against.
2534
+ * @format GUID
2535
+ */
2536
+ serviceId: string | null;
2537
+ /**
2538
+ * The group ID to validate AddOns against.
2539
+ * @format GUID
2540
+ */
2541
+ groupId: string | null;
2542
+ /**
2543
+ * The IDs of AddOns to validate.
2544
+ * @format GUID
2545
+ * @minSize 1
2546
+ * @maxSize 7
2547
+ */
2548
+ addOnIds: string[] | null;
2549
+ }
2550
+ interface ValidateAddOnsSelectionResponse {
2551
+ /** The validation result. */
2552
+ result?: ValidationResult;
2553
+ }
2554
+ interface ValidationResult {
2555
+ /** Whether the AddOns selection is valid. */
2556
+ valid?: boolean | null;
2557
+ /**
2558
+ * A validation error message.
2559
+ * This field should populated when `valid` is `false`.
2560
+ * @minLength 1
2561
+ * @maxLength 300
2562
+ */
2563
+ message?: string | null;
2564
+ }
2370
2565
 
2371
2566
  type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
2372
2567
  getUrl: (context: any) => string;
@@ -2414,5 +2609,11 @@ declare function setCustomSlug(): __PublicMethodMetaInfo<'POST', {
2414
2609
  }, SetCustomSlugRequest$1, SetCustomSlugRequest, SetCustomSlugResponse$1, SetCustomSlugResponse>;
2415
2610
  declare function validateSlug(): __PublicMethodMetaInfo<'POST', {}, ValidateSlugRequest$1, ValidateSlugRequest, ValidateSlugResponse$1, ValidateSlugResponse>;
2416
2611
  declare function cloneService(): __PublicMethodMetaInfo<'POST', {}, CloneServiceRequest$1, CloneServiceRequest, CloneServiceResponse$1, CloneServiceResponse>;
2612
+ declare function createAddOnGroup(): __PublicMethodMetaInfo<'POST', {}, CreateAddOnGroupRequest$1, CreateAddOnGroupRequest, CreateAddOnGroupResponse$1, CreateAddOnGroupResponse>;
2613
+ declare function deleteAddOnGroup(): __PublicMethodMetaInfo<'POST', {}, DeleteAddOnGroupRequest$1, DeleteAddOnGroupRequest, DeleteAddOnGroupResponse$1, DeleteAddOnGroupResponse>;
2614
+ declare function updateAddOnGroup(): __PublicMethodMetaInfo<'POST', {}, UpdateAddOnGroupRequest$1, UpdateAddOnGroupRequest, UpdateAddOnGroupResponse$1, UpdateAddOnGroupResponse>;
2615
+ declare function listAddOnGroupsByServiceId(): __PublicMethodMetaInfo<'POST', {}, ListAddOnGroupsByServiceIdRequest$1, ListAddOnGroupsByServiceIdRequest, ListAddOnGroupsByServiceIdResponse$1, ListAddOnGroupsByServiceIdResponse>;
2616
+ declare function setAddOnsForGroup(): __PublicMethodMetaInfo<'POST', {}, SetAddOnsForGroupRequest$1, SetAddOnsForGroupRequest, SetAddOnsForGroupResponse$1, SetAddOnsForGroupResponse>;
2617
+ declare function validateAddOnsSelection(): __PublicMethodMetaInfo<'POST', {}, ValidateAddOnsSelectionRequest$1, ValidateAddOnsSelectionRequest, ValidateAddOnsSelectionResponse$1, ValidateAddOnsSelectionResponse>;
2417
2618
 
2418
- export { type __PublicMethodMetaInfo, bulkCreateServices, bulkDeleteServices, bulkDeleteServicesByFilter, bulkUpdateServices, bulkUpdateServicesByFilter, cloneService, countServices, createService, deleteService, disablePricingPlansForService, enablePricingPlansForService, getService, queryBookingForms, queryCategories, queryLocations, queryPolicies, queryServices, searchServices, setCustomSlug, setServiceLocations, updateService, validateSlug };
2619
+ export { type __PublicMethodMetaInfo, bulkCreateServices, bulkDeleteServices, bulkDeleteServicesByFilter, bulkUpdateServices, bulkUpdateServicesByFilter, cloneService, countServices, createAddOnGroup, createService, deleteAddOnGroup, deleteService, disablePricingPlansForService, enablePricingPlansForService, getService, listAddOnGroupsByServiceId, queryBookingForms, queryCategories, queryLocations, queryPolicies, queryServices, searchServices, setAddOnsForGroup, setCustomSlug, setServiceLocations, updateAddOnGroup, updateService, validateAddOnsSelection, validateSlug };
@@ -27,20 +27,26 @@ __export(meta_exports, {
27
27
  bulkUpdateServicesByFilter: () => bulkUpdateServicesByFilter2,
28
28
  cloneService: () => cloneService2,
29
29
  countServices: () => countServices2,
30
+ createAddOnGroup: () => createAddOnGroup2,
30
31
  createService: () => createService2,
32
+ deleteAddOnGroup: () => deleteAddOnGroup2,
31
33
  deleteService: () => deleteService2,
32
34
  disablePricingPlansForService: () => disablePricingPlansForService2,
33
35
  enablePricingPlansForService: () => enablePricingPlansForService2,
34
36
  getService: () => getService2,
37
+ listAddOnGroupsByServiceId: () => listAddOnGroupsByServiceId2,
35
38
  queryBookingForms: () => queryBookingForms2,
36
39
  queryCategories: () => queryCategories2,
37
40
  queryLocations: () => queryLocations2,
38
41
  queryPolicies: () => queryPolicies2,
39
42
  queryServices: () => queryServices2,
40
43
  searchServices: () => searchServices2,
44
+ setAddOnsForGroup: () => setAddOnsForGroup2,
41
45
  setCustomSlug: () => setCustomSlug2,
42
46
  setServiceLocations: () => setServiceLocations2,
47
+ updateAddOnGroup: () => updateAddOnGroup2,
43
48
  updateService: () => updateService2,
49
+ validateAddOnsSelection: () => validateAddOnsSelection2,
44
50
  validateSlug: () => validateSlug2
45
51
  });
46
52
  module.exports = __toCommonJS(meta_exports);
@@ -54,6 +60,117 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
54
60
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
55
61
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
56
62
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
63
+ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
64
+ const domainToMappings = {
65
+ "*.dev.wix-code.com": [
66
+ {
67
+ srcPath: "/_api/services-2",
68
+ destPath: ""
69
+ },
70
+ {
71
+ srcPath: "/_api/bookings/v2/services",
72
+ destPath: "/v2/services"
73
+ }
74
+ ],
75
+ "www.wixapis.com": [
76
+ {
77
+ srcPath: "/_api/bookings/v2/services",
78
+ destPath: "/v2/services"
79
+ },
80
+ {
81
+ srcPath: "/bookings/v2/services",
82
+ destPath: "/v2/services"
83
+ },
84
+ {
85
+ srcPath: "/bookings/v2/bulk/services",
86
+ destPath: "/v2/bulk/services"
87
+ }
88
+ ],
89
+ "manage._base_domain_": [
90
+ {
91
+ srcPath: "/_api/bookings/v2/services",
92
+ destPath: "/v2/services"
93
+ },
94
+ {
95
+ srcPath: "/_api/bookings/v2/bulk/services",
96
+ destPath: "/v2/bulk/services"
97
+ }
98
+ ],
99
+ "editor._base_domain_": [
100
+ {
101
+ srcPath: "/_api/bookings/v2/services",
102
+ destPath: "/v2/services"
103
+ },
104
+ {
105
+ srcPath: "/_api/bookings/v2/bulk/services",
106
+ destPath: "/v2/bulk/services"
107
+ }
108
+ ],
109
+ "blocks._base_domain_": [
110
+ {
111
+ srcPath: "/_api/bookings/v2/services",
112
+ destPath: "/v2/services"
113
+ },
114
+ {
115
+ srcPath: "/_api/bookings/v2/bulk/services",
116
+ destPath: "/v2/bulk/services"
117
+ }
118
+ ],
119
+ "create.editorx": [
120
+ {
121
+ srcPath: "/_api/bookings/v2/services",
122
+ destPath: "/v2/services"
123
+ },
124
+ {
125
+ srcPath: "/_api/bookings/v2/bulk/services",
126
+ destPath: "/v2/bulk/services"
127
+ }
128
+ ],
129
+ _: [
130
+ {
131
+ srcPath: "/_api/bookings/v2/services",
132
+ destPath: "/v2/services"
133
+ }
134
+ ],
135
+ "www._base_domain_": [
136
+ {
137
+ srcPath: "/_api/bookings/v2/services",
138
+ destPath: "/v2/services"
139
+ }
140
+ ],
141
+ "bo._base_domain_": [
142
+ {
143
+ srcPath: "/_api/bookings/v2/services",
144
+ destPath: "/v2/services"
145
+ }
146
+ ],
147
+ "wixbo.ai": [
148
+ {
149
+ srcPath: "/_api/bookings/v2/services",
150
+ destPath: "/v2/services"
151
+ }
152
+ ],
153
+ "wix-bo.com": [
154
+ {
155
+ srcPath: "/_api/bookings/v2/services",
156
+ destPath: "/v2/services"
157
+ }
158
+ ],
159
+ "editor.wixapps.net": [
160
+ {
161
+ srcPath: "/_api/bookings/v2/services",
162
+ destPath: "/v2/services"
163
+ }
164
+ ],
165
+ "api._api_base_domain_": [
166
+ {
167
+ srcPath: "/services-2",
168
+ destPath: ""
169
+ }
170
+ ]
171
+ };
172
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
173
+ }
57
174
  function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
58
175
  const domainToMappings = {
59
176
  "*.dev.wix-code.com": [
@@ -1449,6 +1566,120 @@ function cloneService(payload) {
1449
1566
  }
1450
1567
  return __cloneService;
1451
1568
  }
1569
+ function createAddOnGroup(payload) {
1570
+ function __createAddOnGroup({ host }) {
1571
+ const metadata = {
1572
+ entityFqdn: "wix.bookings.services.v2.service",
1573
+ method: "POST",
1574
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
1575
+ packageName: PACKAGE_NAME,
1576
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1577
+ protoPath: "/v2/services/add-on-groups/create",
1578
+ data: payload,
1579
+ host
1580
+ }),
1581
+ data: payload
1582
+ };
1583
+ return metadata;
1584
+ }
1585
+ return __createAddOnGroup;
1586
+ }
1587
+ function deleteAddOnGroup(payload) {
1588
+ function __deleteAddOnGroup({ host }) {
1589
+ const metadata = {
1590
+ entityFqdn: "wix.bookings.services.v2.service",
1591
+ method: "POST",
1592
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
1593
+ packageName: PACKAGE_NAME,
1594
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1595
+ protoPath: "/v2/services/add-on-groups/delete",
1596
+ data: payload,
1597
+ host
1598
+ }),
1599
+ data: payload
1600
+ };
1601
+ return metadata;
1602
+ }
1603
+ return __deleteAddOnGroup;
1604
+ }
1605
+ function updateAddOnGroup(payload) {
1606
+ function __updateAddOnGroup({ host }) {
1607
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1608
+ {
1609
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
1610
+ paths: [{ path: "mask" }]
1611
+ }
1612
+ ]);
1613
+ const metadata = {
1614
+ entityFqdn: "wix.bookings.services.v2.service",
1615
+ method: "POST",
1616
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
1617
+ packageName: PACKAGE_NAME,
1618
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1619
+ protoPath: "/v2/services/add-on-groups/update",
1620
+ data: serializedData,
1621
+ host
1622
+ }),
1623
+ data: serializedData
1624
+ };
1625
+ return metadata;
1626
+ }
1627
+ return __updateAddOnGroup;
1628
+ }
1629
+ function listAddOnGroupsByServiceId(payload) {
1630
+ function __listAddOnGroupsByServiceId({ host }) {
1631
+ const metadata = {
1632
+ entityFqdn: "wix.bookings.services.v2.service",
1633
+ method: "POST",
1634
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
1635
+ packageName: PACKAGE_NAME,
1636
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1637
+ protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
1638
+ data: payload,
1639
+ host
1640
+ }),
1641
+ data: payload
1642
+ };
1643
+ return metadata;
1644
+ }
1645
+ return __listAddOnGroupsByServiceId;
1646
+ }
1647
+ function setAddOnsForGroup(payload) {
1648
+ function __setAddOnsForGroup({ host }) {
1649
+ const metadata = {
1650
+ entityFqdn: "wix.bookings.services.v2.service",
1651
+ method: "POST",
1652
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
1653
+ packageName: PACKAGE_NAME,
1654
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1655
+ protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
1656
+ data: payload,
1657
+ host
1658
+ }),
1659
+ data: payload
1660
+ };
1661
+ return metadata;
1662
+ }
1663
+ return __setAddOnsForGroup;
1664
+ }
1665
+ function validateAddOnsSelection(payload) {
1666
+ function __validateAddOnsSelection({ host }) {
1667
+ const metadata = {
1668
+ entityFqdn: "wix.bookings.services.v2.service",
1669
+ method: "POST",
1670
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection",
1671
+ packageName: PACKAGE_NAME,
1672
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1673
+ protoPath: "/v2/services/add-on-groups/validate-add-ons-selection",
1674
+ data: payload,
1675
+ host
1676
+ }),
1677
+ data: payload
1678
+ };
1679
+ return metadata;
1680
+ }
1681
+ return __validateAddOnsSelection;
1682
+ }
1452
1683
 
1453
1684
  // src/bookings-services-v2-service-services.meta.ts
1454
1685
  function createService2() {
@@ -1851,6 +2082,114 @@ function cloneService2() {
1851
2082
  __originalResponseType: null
1852
2083
  };
1853
2084
  }
2085
+ function createAddOnGroup2() {
2086
+ const payload = {};
2087
+ const getRequestOptions = createAddOnGroup(payload);
2088
+ const getUrl = (context) => {
2089
+ const { url } = getRequestOptions(context);
2090
+ return url;
2091
+ };
2092
+ return {
2093
+ getUrl,
2094
+ httpMethod: "POST",
2095
+ path: "/v2/services/add-on-groups/create",
2096
+ pathParams: {},
2097
+ __requestType: null,
2098
+ __originalRequestType: null,
2099
+ __responseType: null,
2100
+ __originalResponseType: null
2101
+ };
2102
+ }
2103
+ function deleteAddOnGroup2() {
2104
+ const payload = {};
2105
+ const getRequestOptions = deleteAddOnGroup(payload);
2106
+ const getUrl = (context) => {
2107
+ const { url } = getRequestOptions(context);
2108
+ return url;
2109
+ };
2110
+ return {
2111
+ getUrl,
2112
+ httpMethod: "POST",
2113
+ path: "/v2/services/add-on-groups/delete",
2114
+ pathParams: {},
2115
+ __requestType: null,
2116
+ __originalRequestType: null,
2117
+ __responseType: null,
2118
+ __originalResponseType: null
2119
+ };
2120
+ }
2121
+ function updateAddOnGroup2() {
2122
+ const payload = {};
2123
+ const getRequestOptions = updateAddOnGroup(payload);
2124
+ const getUrl = (context) => {
2125
+ const { url } = getRequestOptions(context);
2126
+ return url;
2127
+ };
2128
+ return {
2129
+ getUrl,
2130
+ httpMethod: "POST",
2131
+ path: "/v2/services/add-on-groups/update",
2132
+ pathParams: {},
2133
+ __requestType: null,
2134
+ __originalRequestType: null,
2135
+ __responseType: null,
2136
+ __originalResponseType: null
2137
+ };
2138
+ }
2139
+ function listAddOnGroupsByServiceId2() {
2140
+ const payload = {};
2141
+ const getRequestOptions = listAddOnGroupsByServiceId(payload);
2142
+ const getUrl = (context) => {
2143
+ const { url } = getRequestOptions(context);
2144
+ return url;
2145
+ };
2146
+ return {
2147
+ getUrl,
2148
+ httpMethod: "POST",
2149
+ path: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
2150
+ pathParams: {},
2151
+ __requestType: null,
2152
+ __originalRequestType: null,
2153
+ __responseType: null,
2154
+ __originalResponseType: null
2155
+ };
2156
+ }
2157
+ function setAddOnsForGroup2() {
2158
+ const payload = {};
2159
+ const getRequestOptions = setAddOnsForGroup(payload);
2160
+ const getUrl = (context) => {
2161
+ const { url } = getRequestOptions(context);
2162
+ return url;
2163
+ };
2164
+ return {
2165
+ getUrl,
2166
+ httpMethod: "POST",
2167
+ path: "/v2/services/add-on-groups/set-add-ons-for-group",
2168
+ pathParams: {},
2169
+ __requestType: null,
2170
+ __originalRequestType: null,
2171
+ __responseType: null,
2172
+ __originalResponseType: null
2173
+ };
2174
+ }
2175
+ function validateAddOnsSelection2() {
2176
+ const payload = {};
2177
+ const getRequestOptions = validateAddOnsSelection(payload);
2178
+ const getUrl = (context) => {
2179
+ const { url } = getRequestOptions(context);
2180
+ return url;
2181
+ };
2182
+ return {
2183
+ getUrl,
2184
+ httpMethod: "POST",
2185
+ path: "/v2/services/add-on-groups/validate-add-ons-selection",
2186
+ pathParams: {},
2187
+ __requestType: null,
2188
+ __originalRequestType: null,
2189
+ __responseType: null,
2190
+ __originalResponseType: null
2191
+ };
2192
+ }
1854
2193
  // Annotate the CommonJS export names for ESM import in node:
1855
2194
  0 && (module.exports = {
1856
2195
  bulkCreateServices,
@@ -1860,20 +2199,26 @@ function cloneService2() {
1860
2199
  bulkUpdateServicesByFilter,
1861
2200
  cloneService,
1862
2201
  countServices,
2202
+ createAddOnGroup,
1863
2203
  createService,
2204
+ deleteAddOnGroup,
1864
2205
  deleteService,
1865
2206
  disablePricingPlansForService,
1866
2207
  enablePricingPlansForService,
1867
2208
  getService,
2209
+ listAddOnGroupsByServiceId,
1868
2210
  queryBookingForms,
1869
2211
  queryCategories,
1870
2212
  queryLocations,
1871
2213
  queryPolicies,
1872
2214
  queryServices,
1873
2215
  searchServices,
2216
+ setAddOnsForGroup,
1874
2217
  setCustomSlug,
1875
2218
  setServiceLocations,
2219
+ updateAddOnGroup,
1876
2220
  updateService,
2221
+ validateAddOnsSelection,
1877
2222
  validateSlug
1878
2223
  });
1879
2224
  //# sourceMappingURL=meta.js.map