@wix/auto_sdk_bookings_services 1.0.71 → 1.0.73

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-B_To7DFS.d.ts} +176 -13
  2. package/build/cjs/index.d.ts +120 -32
  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 +203 -2
  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-B_To7DFS.d.mts} +176 -13
  12. package/build/es/index.d.mts +120 -32
  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 +203 -2
  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-B_To7DFS.d.ts} +176 -13
  22. package/build/internal/cjs/index.d.ts +120 -32
  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 +203 -2
  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-B_To7DFS.d.mts} +176 -13
  32. package/build/internal/es/index.d.mts +120 -32
  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 +203 -2
  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 CreateAddOnGroupRequest$1, a as CreateAddOnGroupResponse$1, bI as DeleteAddOnGroupRequest$1, bJ as DeleteAddOnGroupResponse$1, bK as UpdateAddOnGroupRequest$1, c as UpdateAddOnGroupResponse$1, bL as ListAddOnGroupsByServiceIdRequest$1, e as ListAddOnGroupsByServiceIdResponse$1, bP as SetAddOnsForGroupRequest$1, f as SetAddOnsForGroupResponse$1, bQ as ValidateAddOnsSelectionRequest$1, h as ValidateAddOnsSelectionResponse$1, bS as CreateServiceRequest$1, bT as CreateServiceResponse$1, bX as BulkCreateServicesRequest$1, k as BulkCreateServicesResponse$1, c0 as GetServiceRequest$1, c1 as GetServiceResponse$1, c6 as UpdateServiceRequest$1, c7 as UpdateServiceResponse$1, c8 as BulkUpdateServicesRequest$1, o as BulkUpdateServicesResponse$1, ca as BulkUpdateServicesByFilterRequest$1, q as BulkUpdateServicesByFilterResponse$1, cb as DeleteServiceRequest$1, cd as DeleteServiceResponse$1, ce as BulkDeleteServicesRequest$1, t as BulkDeleteServicesResponse$1, cf as BulkDeleteServicesByFilterRequest$1, v as BulkDeleteServicesByFilterResponse$1, cg as QueryServicesRequest$1, cm as QueryServicesResponse$1, cp as SearchServicesRequest$1, y as SearchServicesResponse$1, d1 as QueryPoliciesRequest$1, Q as QueryPoliciesResponse$1, d4 as QueryBookingFormsRequest$1, F as QueryBookingFormsResponse$1, d8 as CountServicesRequest$1, I as CountServicesResponse$1, d9 as QueryLocationsRequest$1, K as QueryLocationsResponse$1, de as QueryCategoriesRequest$1, N as QueryCategoriesResponse$1, di as SetServiceLocationsRequest$1, R as SetServiceLocationsResponse$1, dm as EnablePricingPlansForServiceRequest$1, T as EnablePricingPlansForServiceResponse$1, dp as DisablePricingPlansForServiceRequest$1, Y as DisablePricingPlansForServiceResponse$1, dq as SetCustomSlugRequest$1, $ as SetCustomSlugResponse$1, dr as ValidateSlugRequest$1, a3 as ValidateSlugResponse$1, ds as CloneServiceRequest$1, a4 as CloneServiceResponse$1 } from './bookings-services-v2-service-services.universal-B_To7DFS.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** The `service` object represents an offering that a business provides to its customers. */
@@ -1089,6 +1089,201 @@ 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
+ }
1121
+ interface CreateAddOnGroupRequest {
1122
+ /** AddOnGroup to create. */
1123
+ addOnGroup: AddOnGroup;
1124
+ /**
1125
+ * ID of the service to create the AddOnGroup for.
1126
+ * @format GUID
1127
+ */
1128
+ serviceId?: string | null;
1129
+ }
1130
+ interface CreateAddOnGroupResponse {
1131
+ /** Created AddOnGroup. */
1132
+ addOnGroup?: AddOnGroup;
1133
+ }
1134
+ interface DeleteAddOnGroupRequest {
1135
+ /**
1136
+ * ID of the AddOnGroup to delete.
1137
+ * @format GUID
1138
+ */
1139
+ addOnGroupId: string | null;
1140
+ /**
1141
+ * ID of the service from which to delete the AddOnGroup.
1142
+ * @format GUID
1143
+ */
1144
+ serviceId: string | null;
1145
+ }
1146
+ interface DeleteAddOnGroupResponse {
1147
+ }
1148
+ interface UpdateAddOnGroupRequest {
1149
+ /** AddOnGroup to update. */
1150
+ addOnGroup: AddOnGroup;
1151
+ /**
1152
+ * ID of the service that contains the AddOnGroup.
1153
+ * @format GUID
1154
+ */
1155
+ serviceId: string | null;
1156
+ }
1157
+ interface UpdateAddOnGroupResponse {
1158
+ /** Updated AddOnGroup */
1159
+ addOnGroup?: AddOnGroup;
1160
+ }
1161
+ interface ListAddOnGroupsByServiceIdRequest {
1162
+ /**
1163
+ * ID of the service to retrieve AddOnGroups for.
1164
+ * @format GUID
1165
+ */
1166
+ serviceId: string | null;
1167
+ /**
1168
+ * List of group ids to return. If not provided, all groups are returned.
1169
+ * @format GUID
1170
+ * @maxSize 3
1171
+ */
1172
+ groupIds?: string[] | null;
1173
+ }
1174
+ interface ListAddOnGroupsByServiceIdResponse {
1175
+ /**
1176
+ * List of group IDs and their linked AddOns.
1177
+ * @maxSize 3
1178
+ */
1179
+ addOnGroupsDetails?: AddOnGroupDetail[];
1180
+ }
1181
+ interface AddOn extends AddOnAddOnInfoOneOf {
1182
+ /** The AddOn description. */
1183
+ durationInMinutes?: number;
1184
+ /** The AddOn max quantity. */
1185
+ maxQuantity?: number;
1186
+ /**
1187
+ * The AddOn ID.
1188
+ * @format GUID
1189
+ */
1190
+ addOnId?: string | null;
1191
+ /**
1192
+ * The AddOn name.
1193
+ * @maxLength 100
1194
+ */
1195
+ name?: string | null;
1196
+ /** The AddOn price. */
1197
+ price?: Money;
1198
+ }
1199
+ /** @oneof */
1200
+ interface AddOnAddOnInfoOneOf {
1201
+ /** The AddOn description. */
1202
+ durationInMinutes?: number;
1203
+ /** The AddOn max quantity. */
1204
+ maxQuantity?: number;
1205
+ }
1206
+ interface AddOnGroupDetail {
1207
+ /**
1208
+ * The group ID.
1209
+ * @format GUID
1210
+ */
1211
+ groupId?: string | null;
1212
+ /** The group max number of AddOns. */
1213
+ maxNumberOfAddOns?: number | null;
1214
+ /**
1215
+ * The group name.
1216
+ * @maxLength 100
1217
+ */
1218
+ groupName?: string | null;
1219
+ /**
1220
+ * The AddOns information linked to the group.
1221
+ * @maxSize 7
1222
+ */
1223
+ addOns?: AddOn[];
1224
+ /**
1225
+ * The group prompt.
1226
+ * @maxLength 200
1227
+ */
1228
+ prompt?: string | null;
1229
+ }
1230
+ interface SetAddOnsForGroupRequest {
1231
+ /**
1232
+ * The service ID to set AddOns for.
1233
+ * @format GUID
1234
+ */
1235
+ serviceId: string | null;
1236
+ /**
1237
+ * The group ID to set AddOns for.
1238
+ * @format GUID
1239
+ */
1240
+ groupId: string | null;
1241
+ /**
1242
+ * The IDs of AddOns to set.
1243
+ * @format GUID
1244
+ * @minSize 1
1245
+ * @maxSize 7
1246
+ */
1247
+ addOnIds: string[] | null;
1248
+ }
1249
+ interface SetAddOnsForGroupResponse {
1250
+ /** The updated AddOnGroup. */
1251
+ addOnGroup?: AddOnGroup;
1252
+ }
1253
+ interface ValidateAddOnsSelectionRequest {
1254
+ /**
1255
+ * The service ID to validate AddOns against.
1256
+ * @format GUID
1257
+ */
1258
+ serviceId: string | null;
1259
+ /**
1260
+ * The group ID to validate AddOns against.
1261
+ * @format GUID
1262
+ */
1263
+ groupId: string | null;
1264
+ /**
1265
+ * The IDs of AddOns to validate.
1266
+ * @format GUID
1267
+ * @minSize 1
1268
+ * @maxSize 7
1269
+ */
1270
+ addOnIds: string[] | null;
1271
+ }
1272
+ interface ValidateAddOnsSelectionResponse {
1273
+ /** The validation result. */
1274
+ result?: ValidationResult;
1275
+ }
1276
+ interface ValidationResult {
1277
+ /** Whether the AddOns selection is valid. */
1278
+ valid?: boolean | null;
1279
+ /**
1280
+ * A validation error message.
1281
+ * This field should populated when `valid` is `false`.
1282
+ * @minLength 1
1283
+ * @maxLength 300
1284
+ */
1285
+ message?: string | null;
1286
+ }
1092
1287
  interface CreateServiceRequest {
1093
1288
  /** Service to create. */
1094
1289
  service: Service;
@@ -2378,6 +2573,12 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
2378
2573
  __responseType: Q;
2379
2574
  __originalResponseType: R;
2380
2575
  };
2576
+ declare function createAddOnGroup(): __PublicMethodMetaInfo<'POST', {}, CreateAddOnGroupRequest$1, CreateAddOnGroupRequest, CreateAddOnGroupResponse$1, CreateAddOnGroupResponse>;
2577
+ declare function deleteAddOnGroup(): __PublicMethodMetaInfo<'POST', {}, DeleteAddOnGroupRequest$1, DeleteAddOnGroupRequest, DeleteAddOnGroupResponse$1, DeleteAddOnGroupResponse>;
2578
+ declare function updateAddOnGroup(): __PublicMethodMetaInfo<'POST', {}, UpdateAddOnGroupRequest$1, UpdateAddOnGroupRequest, UpdateAddOnGroupResponse$1, UpdateAddOnGroupResponse>;
2579
+ declare function listAddOnGroupsByServiceId(): __PublicMethodMetaInfo<'POST', {}, ListAddOnGroupsByServiceIdRequest$1, ListAddOnGroupsByServiceIdRequest, ListAddOnGroupsByServiceIdResponse$1, ListAddOnGroupsByServiceIdResponse>;
2580
+ declare function setAddOnsForGroup(): __PublicMethodMetaInfo<'POST', {}, SetAddOnsForGroupRequest$1, SetAddOnsForGroupRequest, SetAddOnsForGroupResponse$1, SetAddOnsForGroupResponse>;
2581
+ declare function validateAddOnsSelection(): __PublicMethodMetaInfo<'POST', {}, ValidateAddOnsSelectionRequest$1, ValidateAddOnsSelectionRequest, ValidateAddOnsSelectionResponse$1, ValidateAddOnsSelectionResponse>;
2381
2582
  declare function createService(): __PublicMethodMetaInfo<'POST', {}, CreateServiceRequest$1, CreateServiceRequest, CreateServiceResponse$1, CreateServiceResponse>;
2382
2583
  declare function bulkCreateServices(): __PublicMethodMetaInfo<'POST', {}, BulkCreateServicesRequest$1, BulkCreateServicesRequest, BulkCreateServicesResponse$1, BulkCreateServicesResponse>;
2383
2584
  declare function getService(): __PublicMethodMetaInfo<'GET', {
@@ -2415,4 +2616,4 @@ declare function setCustomSlug(): __PublicMethodMetaInfo<'POST', {
2415
2616
  declare function validateSlug(): __PublicMethodMetaInfo<'POST', {}, ValidateSlugRequest$1, ValidateSlugRequest, ValidateSlugResponse$1, ValidateSlugResponse>;
2416
2617
  declare function cloneService(): __PublicMethodMetaInfo<'POST', {}, CloneServiceRequest$1, CloneServiceRequest, CloneServiceResponse$1, CloneServiceResponse>;
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 };
package/build/cjs/meta.js CHANGED
@@ -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);
@@ -165,7 +171,232 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
165
171
  };
166
172
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
167
173
  }
174
+ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
175
+ const domainToMappings = {
176
+ "*.dev.wix-code.com": [
177
+ {
178
+ srcPath: "/_api/services-2",
179
+ destPath: ""
180
+ },
181
+ {
182
+ srcPath: "/_api/bookings/v2/services",
183
+ destPath: "/v2/services"
184
+ }
185
+ ],
186
+ "www.wixapis.com": [
187
+ {
188
+ srcPath: "/_api/bookings/v2/services",
189
+ destPath: "/v2/services"
190
+ },
191
+ {
192
+ srcPath: "/bookings/v2/services",
193
+ destPath: "/v2/services"
194
+ },
195
+ {
196
+ srcPath: "/bookings/v2/bulk/services",
197
+ destPath: "/v2/bulk/services"
198
+ }
199
+ ],
200
+ "manage._base_domain_": [
201
+ {
202
+ srcPath: "/_api/bookings/v2/services",
203
+ destPath: "/v2/services"
204
+ },
205
+ {
206
+ srcPath: "/_api/bookings/v2/bulk/services",
207
+ destPath: "/v2/bulk/services"
208
+ }
209
+ ],
210
+ "editor._base_domain_": [
211
+ {
212
+ srcPath: "/_api/bookings/v2/services",
213
+ destPath: "/v2/services"
214
+ },
215
+ {
216
+ srcPath: "/_api/bookings/v2/bulk/services",
217
+ destPath: "/v2/bulk/services"
218
+ }
219
+ ],
220
+ "blocks._base_domain_": [
221
+ {
222
+ srcPath: "/_api/bookings/v2/services",
223
+ destPath: "/v2/services"
224
+ },
225
+ {
226
+ srcPath: "/_api/bookings/v2/bulk/services",
227
+ destPath: "/v2/bulk/services"
228
+ }
229
+ ],
230
+ "create.editorx": [
231
+ {
232
+ srcPath: "/_api/bookings/v2/services",
233
+ destPath: "/v2/services"
234
+ },
235
+ {
236
+ srcPath: "/_api/bookings/v2/bulk/services",
237
+ destPath: "/v2/bulk/services"
238
+ }
239
+ ],
240
+ _: [
241
+ {
242
+ srcPath: "/_api/bookings/v2/services",
243
+ destPath: "/v2/services"
244
+ }
245
+ ],
246
+ "www._base_domain_": [
247
+ {
248
+ srcPath: "/_api/bookings/v2/services",
249
+ destPath: "/v2/services"
250
+ }
251
+ ],
252
+ "bo._base_domain_": [
253
+ {
254
+ srcPath: "/_api/bookings/v2/services",
255
+ destPath: "/v2/services"
256
+ }
257
+ ],
258
+ "wixbo.ai": [
259
+ {
260
+ srcPath: "/_api/bookings/v2/services",
261
+ destPath: "/v2/services"
262
+ }
263
+ ],
264
+ "wix-bo.com": [
265
+ {
266
+ srcPath: "/_api/bookings/v2/services",
267
+ destPath: "/v2/services"
268
+ }
269
+ ],
270
+ "editor.wixapps.net": [
271
+ {
272
+ srcPath: "/_api/bookings/v2/services",
273
+ destPath: "/v2/services"
274
+ }
275
+ ],
276
+ "api._api_base_domain_": [
277
+ {
278
+ srcPath: "/services-2",
279
+ destPath: ""
280
+ }
281
+ ]
282
+ };
283
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
284
+ }
168
285
  var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
286
+ function createAddOnGroup(payload) {
287
+ function __createAddOnGroup({ host }) {
288
+ const metadata = {
289
+ entityFqdn: "wix.bookings.services.v2.service",
290
+ method: "POST",
291
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
292
+ packageName: PACKAGE_NAME,
293
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
294
+ protoPath: "/v2/services/add-on-groups/create",
295
+ data: payload,
296
+ host
297
+ }),
298
+ data: payload
299
+ };
300
+ return metadata;
301
+ }
302
+ return __createAddOnGroup;
303
+ }
304
+ function deleteAddOnGroup(payload) {
305
+ function __deleteAddOnGroup({ host }) {
306
+ const metadata = {
307
+ entityFqdn: "wix.bookings.services.v2.service",
308
+ method: "POST",
309
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
310
+ packageName: PACKAGE_NAME,
311
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
312
+ protoPath: "/v2/services/add-on-groups/delete",
313
+ data: payload,
314
+ host
315
+ }),
316
+ data: payload
317
+ };
318
+ return metadata;
319
+ }
320
+ return __deleteAddOnGroup;
321
+ }
322
+ function updateAddOnGroup(payload) {
323
+ function __updateAddOnGroup({ host }) {
324
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
325
+ {
326
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
327
+ paths: [{ path: "mask" }]
328
+ }
329
+ ]);
330
+ const metadata = {
331
+ entityFqdn: "wix.bookings.services.v2.service",
332
+ method: "POST",
333
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
334
+ packageName: PACKAGE_NAME,
335
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
336
+ protoPath: "/v2/services/add-on-groups/update",
337
+ data: serializedData,
338
+ host
339
+ }),
340
+ data: serializedData
341
+ };
342
+ return metadata;
343
+ }
344
+ return __updateAddOnGroup;
345
+ }
346
+ function listAddOnGroupsByServiceId(payload) {
347
+ function __listAddOnGroupsByServiceId({ host }) {
348
+ const metadata = {
349
+ entityFqdn: "wix.bookings.services.v2.service",
350
+ method: "POST",
351
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
352
+ packageName: PACKAGE_NAME,
353
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
354
+ protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
355
+ data: payload,
356
+ host
357
+ }),
358
+ data: payload
359
+ };
360
+ return metadata;
361
+ }
362
+ return __listAddOnGroupsByServiceId;
363
+ }
364
+ function setAddOnsForGroup(payload) {
365
+ function __setAddOnsForGroup({ host }) {
366
+ const metadata = {
367
+ entityFqdn: "wix.bookings.services.v2.service",
368
+ method: "POST",
369
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
370
+ packageName: PACKAGE_NAME,
371
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
372
+ protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
373
+ data: payload,
374
+ host
375
+ }),
376
+ data: payload
377
+ };
378
+ return metadata;
379
+ }
380
+ return __setAddOnsForGroup;
381
+ }
382
+ function validateAddOnsSelection(payload) {
383
+ function __validateAddOnsSelection({ host }) {
384
+ const metadata = {
385
+ entityFqdn: "wix.bookings.services.v2.service",
386
+ method: "POST",
387
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection",
388
+ packageName: PACKAGE_NAME,
389
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
390
+ protoPath: "/v2/services/add-on-groups/validate-add-ons-selection",
391
+ data: payload,
392
+ host
393
+ }),
394
+ data: payload
395
+ };
396
+ return metadata;
397
+ }
398
+ return __validateAddOnsSelection;
399
+ }
169
400
  function createService(payload) {
170
401
  function __createService({ host }) {
171
402
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1451,6 +1682,114 @@ function cloneService(payload) {
1451
1682
  }
1452
1683
 
1453
1684
  // src/bookings-services-v2-service-services.meta.ts
1685
+ function createAddOnGroup2() {
1686
+ const payload = {};
1687
+ const getRequestOptions = createAddOnGroup(payload);
1688
+ const getUrl = (context) => {
1689
+ const { url } = getRequestOptions(context);
1690
+ return url;
1691
+ };
1692
+ return {
1693
+ getUrl,
1694
+ httpMethod: "POST",
1695
+ path: "/v2/services/add-on-groups/create",
1696
+ pathParams: {},
1697
+ __requestType: null,
1698
+ __originalRequestType: null,
1699
+ __responseType: null,
1700
+ __originalResponseType: null
1701
+ };
1702
+ }
1703
+ function deleteAddOnGroup2() {
1704
+ const payload = {};
1705
+ const getRequestOptions = deleteAddOnGroup(payload);
1706
+ const getUrl = (context) => {
1707
+ const { url } = getRequestOptions(context);
1708
+ return url;
1709
+ };
1710
+ return {
1711
+ getUrl,
1712
+ httpMethod: "POST",
1713
+ path: "/v2/services/add-on-groups/delete",
1714
+ pathParams: {},
1715
+ __requestType: null,
1716
+ __originalRequestType: null,
1717
+ __responseType: null,
1718
+ __originalResponseType: null
1719
+ };
1720
+ }
1721
+ function updateAddOnGroup2() {
1722
+ const payload = {};
1723
+ const getRequestOptions = updateAddOnGroup(payload);
1724
+ const getUrl = (context) => {
1725
+ const { url } = getRequestOptions(context);
1726
+ return url;
1727
+ };
1728
+ return {
1729
+ getUrl,
1730
+ httpMethod: "POST",
1731
+ path: "/v2/services/add-on-groups/update",
1732
+ pathParams: {},
1733
+ __requestType: null,
1734
+ __originalRequestType: null,
1735
+ __responseType: null,
1736
+ __originalResponseType: null
1737
+ };
1738
+ }
1739
+ function listAddOnGroupsByServiceId2() {
1740
+ const payload = {};
1741
+ const getRequestOptions = listAddOnGroupsByServiceId(payload);
1742
+ const getUrl = (context) => {
1743
+ const { url } = getRequestOptions(context);
1744
+ return url;
1745
+ };
1746
+ return {
1747
+ getUrl,
1748
+ httpMethod: "POST",
1749
+ path: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
1750
+ pathParams: {},
1751
+ __requestType: null,
1752
+ __originalRequestType: null,
1753
+ __responseType: null,
1754
+ __originalResponseType: null
1755
+ };
1756
+ }
1757
+ function setAddOnsForGroup2() {
1758
+ const payload = {};
1759
+ const getRequestOptions = setAddOnsForGroup(payload);
1760
+ const getUrl = (context) => {
1761
+ const { url } = getRequestOptions(context);
1762
+ return url;
1763
+ };
1764
+ return {
1765
+ getUrl,
1766
+ httpMethod: "POST",
1767
+ path: "/v2/services/add-on-groups/set-add-ons-for-group",
1768
+ pathParams: {},
1769
+ __requestType: null,
1770
+ __originalRequestType: null,
1771
+ __responseType: null,
1772
+ __originalResponseType: null
1773
+ };
1774
+ }
1775
+ function validateAddOnsSelection2() {
1776
+ const payload = {};
1777
+ const getRequestOptions = validateAddOnsSelection(payload);
1778
+ const getUrl = (context) => {
1779
+ const { url } = getRequestOptions(context);
1780
+ return url;
1781
+ };
1782
+ return {
1783
+ getUrl,
1784
+ httpMethod: "POST",
1785
+ path: "/v2/services/add-on-groups/validate-add-ons-selection",
1786
+ pathParams: {},
1787
+ __requestType: null,
1788
+ __originalRequestType: null,
1789
+ __responseType: null,
1790
+ __originalResponseType: null
1791
+ };
1792
+ }
1454
1793
  function createService2() {
1455
1794
  const payload = {};
1456
1795
  const getRequestOptions = createService(payload);
@@ -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