@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.mjs';
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.mjs';
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 };
@@ -7,6 +7,117 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
7
7
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
8
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
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
+ "manage._base_domain_": [
37
+ {
38
+ srcPath: "/_api/bookings/v2/services",
39
+ destPath: "/v2/services"
40
+ },
41
+ {
42
+ srcPath: "/_api/bookings/v2/bulk/services",
43
+ destPath: "/v2/bulk/services"
44
+ }
45
+ ],
46
+ "editor._base_domain_": [
47
+ {
48
+ srcPath: "/_api/bookings/v2/services",
49
+ destPath: "/v2/services"
50
+ },
51
+ {
52
+ srcPath: "/_api/bookings/v2/bulk/services",
53
+ destPath: "/v2/bulk/services"
54
+ }
55
+ ],
56
+ "blocks._base_domain_": [
57
+ {
58
+ srcPath: "/_api/bookings/v2/services",
59
+ destPath: "/v2/services"
60
+ },
61
+ {
62
+ srcPath: "/_api/bookings/v2/bulk/services",
63
+ destPath: "/v2/bulk/services"
64
+ }
65
+ ],
66
+ "create.editorx": [
67
+ {
68
+ srcPath: "/_api/bookings/v2/services",
69
+ destPath: "/v2/services"
70
+ },
71
+ {
72
+ srcPath: "/_api/bookings/v2/bulk/services",
73
+ destPath: "/v2/bulk/services"
74
+ }
75
+ ],
76
+ _: [
77
+ {
78
+ srcPath: "/_api/bookings/v2/services",
79
+ destPath: "/v2/services"
80
+ }
81
+ ],
82
+ "www._base_domain_": [
83
+ {
84
+ srcPath: "/_api/bookings/v2/services",
85
+ destPath: "/v2/services"
86
+ }
87
+ ],
88
+ "bo._base_domain_": [
89
+ {
90
+ srcPath: "/_api/bookings/v2/services",
91
+ destPath: "/v2/services"
92
+ }
93
+ ],
94
+ "wixbo.ai": [
95
+ {
96
+ srcPath: "/_api/bookings/v2/services",
97
+ destPath: "/v2/services"
98
+ }
99
+ ],
100
+ "wix-bo.com": [
101
+ {
102
+ srcPath: "/_api/bookings/v2/services",
103
+ destPath: "/v2/services"
104
+ }
105
+ ],
106
+ "editor.wixapps.net": [
107
+ {
108
+ srcPath: "/_api/bookings/v2/services",
109
+ destPath: "/v2/services"
110
+ }
111
+ ],
112
+ "api._api_base_domain_": [
113
+ {
114
+ srcPath: "/services-2",
115
+ destPath: ""
116
+ }
117
+ ]
118
+ };
119
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
120
+ }
10
121
  function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
11
122
  const domainToMappings = {
12
123
  "*.dev.wix-code.com": [
@@ -1402,6 +1513,120 @@ function cloneService(payload) {
1402
1513
  }
1403
1514
  return __cloneService;
1404
1515
  }
1516
+ function createAddOnGroup(payload) {
1517
+ function __createAddOnGroup({ host }) {
1518
+ const metadata = {
1519
+ entityFqdn: "wix.bookings.services.v2.service",
1520
+ method: "POST",
1521
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
1522
+ packageName: PACKAGE_NAME,
1523
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1524
+ protoPath: "/v2/services/add-on-groups/create",
1525
+ data: payload,
1526
+ host
1527
+ }),
1528
+ data: payload
1529
+ };
1530
+ return metadata;
1531
+ }
1532
+ return __createAddOnGroup;
1533
+ }
1534
+ function deleteAddOnGroup(payload) {
1535
+ function __deleteAddOnGroup({ host }) {
1536
+ const metadata = {
1537
+ entityFqdn: "wix.bookings.services.v2.service",
1538
+ method: "POST",
1539
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
1540
+ packageName: PACKAGE_NAME,
1541
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1542
+ protoPath: "/v2/services/add-on-groups/delete",
1543
+ data: payload,
1544
+ host
1545
+ }),
1546
+ data: payload
1547
+ };
1548
+ return metadata;
1549
+ }
1550
+ return __deleteAddOnGroup;
1551
+ }
1552
+ function updateAddOnGroup(payload) {
1553
+ function __updateAddOnGroup({ host }) {
1554
+ const serializedData = transformPaths(payload, [
1555
+ {
1556
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
1557
+ paths: [{ path: "mask" }]
1558
+ }
1559
+ ]);
1560
+ const metadata = {
1561
+ entityFqdn: "wix.bookings.services.v2.service",
1562
+ method: "POST",
1563
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
1564
+ packageName: PACKAGE_NAME,
1565
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1566
+ protoPath: "/v2/services/add-on-groups/update",
1567
+ data: serializedData,
1568
+ host
1569
+ }),
1570
+ data: serializedData
1571
+ };
1572
+ return metadata;
1573
+ }
1574
+ return __updateAddOnGroup;
1575
+ }
1576
+ function listAddOnGroupsByServiceId(payload) {
1577
+ function __listAddOnGroupsByServiceId({ host }) {
1578
+ const metadata = {
1579
+ entityFqdn: "wix.bookings.services.v2.service",
1580
+ method: "POST",
1581
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
1582
+ packageName: PACKAGE_NAME,
1583
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1584
+ protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
1585
+ data: payload,
1586
+ host
1587
+ }),
1588
+ data: payload
1589
+ };
1590
+ return metadata;
1591
+ }
1592
+ return __listAddOnGroupsByServiceId;
1593
+ }
1594
+ function setAddOnsForGroup(payload) {
1595
+ function __setAddOnsForGroup({ host }) {
1596
+ const metadata = {
1597
+ entityFqdn: "wix.bookings.services.v2.service",
1598
+ method: "POST",
1599
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
1600
+ packageName: PACKAGE_NAME,
1601
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1602
+ protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
1603
+ data: payload,
1604
+ host
1605
+ }),
1606
+ data: payload
1607
+ };
1608
+ return metadata;
1609
+ }
1610
+ return __setAddOnsForGroup;
1611
+ }
1612
+ function validateAddOnsSelection(payload) {
1613
+ function __validateAddOnsSelection({ host }) {
1614
+ const metadata = {
1615
+ entityFqdn: "wix.bookings.services.v2.service",
1616
+ method: "POST",
1617
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection",
1618
+ packageName: PACKAGE_NAME,
1619
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1620
+ protoPath: "/v2/services/add-on-groups/validate-add-ons-selection",
1621
+ data: payload,
1622
+ host
1623
+ }),
1624
+ data: payload
1625
+ };
1626
+ return metadata;
1627
+ }
1628
+ return __validateAddOnsSelection;
1629
+ }
1405
1630
 
1406
1631
  // src/bookings-services-v2-service-services.meta.ts
1407
1632
  function createService2() {
@@ -1804,6 +2029,114 @@ function cloneService2() {
1804
2029
  __originalResponseType: null
1805
2030
  };
1806
2031
  }
2032
+ function createAddOnGroup2() {
2033
+ const payload = {};
2034
+ const getRequestOptions = createAddOnGroup(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/add-on-groups/create",
2043
+ pathParams: {},
2044
+ __requestType: null,
2045
+ __originalRequestType: null,
2046
+ __responseType: null,
2047
+ __originalResponseType: null
2048
+ };
2049
+ }
2050
+ function deleteAddOnGroup2() {
2051
+ const payload = {};
2052
+ const getRequestOptions = deleteAddOnGroup(payload);
2053
+ const getUrl = (context) => {
2054
+ const { url } = getRequestOptions(context);
2055
+ return url;
2056
+ };
2057
+ return {
2058
+ getUrl,
2059
+ httpMethod: "POST",
2060
+ path: "/v2/services/add-on-groups/delete",
2061
+ pathParams: {},
2062
+ __requestType: null,
2063
+ __originalRequestType: null,
2064
+ __responseType: null,
2065
+ __originalResponseType: null
2066
+ };
2067
+ }
2068
+ function updateAddOnGroup2() {
2069
+ const payload = {};
2070
+ const getRequestOptions = updateAddOnGroup(payload);
2071
+ const getUrl = (context) => {
2072
+ const { url } = getRequestOptions(context);
2073
+ return url;
2074
+ };
2075
+ return {
2076
+ getUrl,
2077
+ httpMethod: "POST",
2078
+ path: "/v2/services/add-on-groups/update",
2079
+ pathParams: {},
2080
+ __requestType: null,
2081
+ __originalRequestType: null,
2082
+ __responseType: null,
2083
+ __originalResponseType: null
2084
+ };
2085
+ }
2086
+ function listAddOnGroupsByServiceId2() {
2087
+ const payload = {};
2088
+ const getRequestOptions = listAddOnGroupsByServiceId(payload);
2089
+ const getUrl = (context) => {
2090
+ const { url } = getRequestOptions(context);
2091
+ return url;
2092
+ };
2093
+ return {
2094
+ getUrl,
2095
+ httpMethod: "POST",
2096
+ path: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
2097
+ pathParams: {},
2098
+ __requestType: null,
2099
+ __originalRequestType: null,
2100
+ __responseType: null,
2101
+ __originalResponseType: null
2102
+ };
2103
+ }
2104
+ function setAddOnsForGroup2() {
2105
+ const payload = {};
2106
+ const getRequestOptions = setAddOnsForGroup(payload);
2107
+ const getUrl = (context) => {
2108
+ const { url } = getRequestOptions(context);
2109
+ return url;
2110
+ };
2111
+ return {
2112
+ getUrl,
2113
+ httpMethod: "POST",
2114
+ path: "/v2/services/add-on-groups/set-add-ons-for-group",
2115
+ pathParams: {},
2116
+ __requestType: null,
2117
+ __originalRequestType: null,
2118
+ __responseType: null,
2119
+ __originalResponseType: null
2120
+ };
2121
+ }
2122
+ function validateAddOnsSelection2() {
2123
+ const payload = {};
2124
+ const getRequestOptions = validateAddOnsSelection(payload);
2125
+ const getUrl = (context) => {
2126
+ const { url } = getRequestOptions(context);
2127
+ return url;
2128
+ };
2129
+ return {
2130
+ getUrl,
2131
+ httpMethod: "POST",
2132
+ path: "/v2/services/add-on-groups/validate-add-ons-selection",
2133
+ pathParams: {},
2134
+ __requestType: null,
2135
+ __originalRequestType: null,
2136
+ __responseType: null,
2137
+ __originalResponseType: null
2138
+ };
2139
+ }
1807
2140
  export {
1808
2141
  bulkCreateServices2 as bulkCreateServices,
1809
2142
  bulkDeleteServices2 as bulkDeleteServices,
@@ -1812,20 +2145,26 @@ export {
1812
2145
  bulkUpdateServicesByFilter2 as bulkUpdateServicesByFilter,
1813
2146
  cloneService2 as cloneService,
1814
2147
  countServices2 as countServices,
2148
+ createAddOnGroup2 as createAddOnGroup,
1815
2149
  createService2 as createService,
2150
+ deleteAddOnGroup2 as deleteAddOnGroup,
1816
2151
  deleteService2 as deleteService,
1817
2152
  disablePricingPlansForService2 as disablePricingPlansForService,
1818
2153
  enablePricingPlansForService2 as enablePricingPlansForService,
1819
2154
  getService2 as getService,
2155
+ listAddOnGroupsByServiceId2 as listAddOnGroupsByServiceId,
1820
2156
  queryBookingForms2 as queryBookingForms,
1821
2157
  queryCategories2 as queryCategories,
1822
2158
  queryLocations2 as queryLocations,
1823
2159
  queryPolicies2 as queryPolicies,
1824
2160
  queryServices2 as queryServices,
1825
2161
  searchServices2 as searchServices,
2162
+ setAddOnsForGroup2 as setAddOnsForGroup,
1826
2163
  setCustomSlug2 as setCustomSlug,
1827
2164
  setServiceLocations2 as setServiceLocations,
2165
+ updateAddOnGroup2 as updateAddOnGroup,
1828
2166
  updateService2 as updateService,
2167
+ validateAddOnsSelection2 as validateAddOnsSelection,
1829
2168
  validateSlug2 as validateSlug
1830
2169
  };
1831
2170
  //# sourceMappingURL=meta.mjs.map