@wix/auto_sdk_bookings_services 1.0.72 → 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 +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 +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 +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 +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 +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 +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 +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 +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.mjs';
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.mjs';
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/es/meta.mjs CHANGED
@@ -118,7 +118,232 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
118
118
  };
119
119
  return resolveUrl(Object.assign(opts, { domainToMappings }));
120
120
  }
121
+ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
122
+ const domainToMappings = {
123
+ "*.dev.wix-code.com": [
124
+ {
125
+ srcPath: "/_api/services-2",
126
+ destPath: ""
127
+ },
128
+ {
129
+ srcPath: "/_api/bookings/v2/services",
130
+ destPath: "/v2/services"
131
+ }
132
+ ],
133
+ "www.wixapis.com": [
134
+ {
135
+ srcPath: "/_api/bookings/v2/services",
136
+ destPath: "/v2/services"
137
+ },
138
+ {
139
+ srcPath: "/bookings/v2/services",
140
+ destPath: "/v2/services"
141
+ },
142
+ {
143
+ srcPath: "/bookings/v2/bulk/services",
144
+ destPath: "/v2/bulk/services"
145
+ }
146
+ ],
147
+ "manage._base_domain_": [
148
+ {
149
+ srcPath: "/_api/bookings/v2/services",
150
+ destPath: "/v2/services"
151
+ },
152
+ {
153
+ srcPath: "/_api/bookings/v2/bulk/services",
154
+ destPath: "/v2/bulk/services"
155
+ }
156
+ ],
157
+ "editor._base_domain_": [
158
+ {
159
+ srcPath: "/_api/bookings/v2/services",
160
+ destPath: "/v2/services"
161
+ },
162
+ {
163
+ srcPath: "/_api/bookings/v2/bulk/services",
164
+ destPath: "/v2/bulk/services"
165
+ }
166
+ ],
167
+ "blocks._base_domain_": [
168
+ {
169
+ srcPath: "/_api/bookings/v2/services",
170
+ destPath: "/v2/services"
171
+ },
172
+ {
173
+ srcPath: "/_api/bookings/v2/bulk/services",
174
+ destPath: "/v2/bulk/services"
175
+ }
176
+ ],
177
+ "create.editorx": [
178
+ {
179
+ srcPath: "/_api/bookings/v2/services",
180
+ destPath: "/v2/services"
181
+ },
182
+ {
183
+ srcPath: "/_api/bookings/v2/bulk/services",
184
+ destPath: "/v2/bulk/services"
185
+ }
186
+ ],
187
+ _: [
188
+ {
189
+ srcPath: "/_api/bookings/v2/services",
190
+ destPath: "/v2/services"
191
+ }
192
+ ],
193
+ "www._base_domain_": [
194
+ {
195
+ srcPath: "/_api/bookings/v2/services",
196
+ destPath: "/v2/services"
197
+ }
198
+ ],
199
+ "bo._base_domain_": [
200
+ {
201
+ srcPath: "/_api/bookings/v2/services",
202
+ destPath: "/v2/services"
203
+ }
204
+ ],
205
+ "wixbo.ai": [
206
+ {
207
+ srcPath: "/_api/bookings/v2/services",
208
+ destPath: "/v2/services"
209
+ }
210
+ ],
211
+ "wix-bo.com": [
212
+ {
213
+ srcPath: "/_api/bookings/v2/services",
214
+ destPath: "/v2/services"
215
+ }
216
+ ],
217
+ "editor.wixapps.net": [
218
+ {
219
+ srcPath: "/_api/bookings/v2/services",
220
+ destPath: "/v2/services"
221
+ }
222
+ ],
223
+ "api._api_base_domain_": [
224
+ {
225
+ srcPath: "/services-2",
226
+ destPath: ""
227
+ }
228
+ ]
229
+ };
230
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
231
+ }
121
232
  var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
233
+ function createAddOnGroup(payload) {
234
+ function __createAddOnGroup({ host }) {
235
+ const metadata = {
236
+ entityFqdn: "wix.bookings.services.v2.service",
237
+ method: "POST",
238
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
239
+ packageName: PACKAGE_NAME,
240
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
241
+ protoPath: "/v2/services/add-on-groups/create",
242
+ data: payload,
243
+ host
244
+ }),
245
+ data: payload
246
+ };
247
+ return metadata;
248
+ }
249
+ return __createAddOnGroup;
250
+ }
251
+ function deleteAddOnGroup(payload) {
252
+ function __deleteAddOnGroup({ host }) {
253
+ const metadata = {
254
+ entityFqdn: "wix.bookings.services.v2.service",
255
+ method: "POST",
256
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
257
+ packageName: PACKAGE_NAME,
258
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
259
+ protoPath: "/v2/services/add-on-groups/delete",
260
+ data: payload,
261
+ host
262
+ }),
263
+ data: payload
264
+ };
265
+ return metadata;
266
+ }
267
+ return __deleteAddOnGroup;
268
+ }
269
+ function updateAddOnGroup(payload) {
270
+ function __updateAddOnGroup({ host }) {
271
+ const serializedData = transformPaths(payload, [
272
+ {
273
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
274
+ paths: [{ path: "mask" }]
275
+ }
276
+ ]);
277
+ const metadata = {
278
+ entityFqdn: "wix.bookings.services.v2.service",
279
+ method: "POST",
280
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
281
+ packageName: PACKAGE_NAME,
282
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
283
+ protoPath: "/v2/services/add-on-groups/update",
284
+ data: serializedData,
285
+ host
286
+ }),
287
+ data: serializedData
288
+ };
289
+ return metadata;
290
+ }
291
+ return __updateAddOnGroup;
292
+ }
293
+ function listAddOnGroupsByServiceId(payload) {
294
+ function __listAddOnGroupsByServiceId({ host }) {
295
+ const metadata = {
296
+ entityFqdn: "wix.bookings.services.v2.service",
297
+ method: "POST",
298
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
299
+ packageName: PACKAGE_NAME,
300
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
301
+ protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
302
+ data: payload,
303
+ host
304
+ }),
305
+ data: payload
306
+ };
307
+ return metadata;
308
+ }
309
+ return __listAddOnGroupsByServiceId;
310
+ }
311
+ function setAddOnsForGroup(payload) {
312
+ function __setAddOnsForGroup({ host }) {
313
+ const metadata = {
314
+ entityFqdn: "wix.bookings.services.v2.service",
315
+ method: "POST",
316
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
317
+ packageName: PACKAGE_NAME,
318
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
319
+ protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
320
+ data: payload,
321
+ host
322
+ }),
323
+ data: payload
324
+ };
325
+ return metadata;
326
+ }
327
+ return __setAddOnsForGroup;
328
+ }
329
+ function validateAddOnsSelection(payload) {
330
+ function __validateAddOnsSelection({ host }) {
331
+ const metadata = {
332
+ entityFqdn: "wix.bookings.services.v2.service",
333
+ method: "POST",
334
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection",
335
+ packageName: PACKAGE_NAME,
336
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
337
+ protoPath: "/v2/services/add-on-groups/validate-add-ons-selection",
338
+ data: payload,
339
+ host
340
+ }),
341
+ data: payload
342
+ };
343
+ return metadata;
344
+ }
345
+ return __validateAddOnsSelection;
346
+ }
122
347
  function createService(payload) {
123
348
  function __createService({ host }) {
124
349
  const serializedData = transformPaths(payload, [
@@ -1404,6 +1629,114 @@ function cloneService(payload) {
1404
1629
  }
1405
1630
 
1406
1631
  // src/bookings-services-v2-service-services.meta.ts
1632
+ function createAddOnGroup2() {
1633
+ const payload = {};
1634
+ const getRequestOptions = createAddOnGroup(payload);
1635
+ const getUrl = (context) => {
1636
+ const { url } = getRequestOptions(context);
1637
+ return url;
1638
+ };
1639
+ return {
1640
+ getUrl,
1641
+ httpMethod: "POST",
1642
+ path: "/v2/services/add-on-groups/create",
1643
+ pathParams: {},
1644
+ __requestType: null,
1645
+ __originalRequestType: null,
1646
+ __responseType: null,
1647
+ __originalResponseType: null
1648
+ };
1649
+ }
1650
+ function deleteAddOnGroup2() {
1651
+ const payload = {};
1652
+ const getRequestOptions = deleteAddOnGroup(payload);
1653
+ const getUrl = (context) => {
1654
+ const { url } = getRequestOptions(context);
1655
+ return url;
1656
+ };
1657
+ return {
1658
+ getUrl,
1659
+ httpMethod: "POST",
1660
+ path: "/v2/services/add-on-groups/delete",
1661
+ pathParams: {},
1662
+ __requestType: null,
1663
+ __originalRequestType: null,
1664
+ __responseType: null,
1665
+ __originalResponseType: null
1666
+ };
1667
+ }
1668
+ function updateAddOnGroup2() {
1669
+ const payload = {};
1670
+ const getRequestOptions = updateAddOnGroup(payload);
1671
+ const getUrl = (context) => {
1672
+ const { url } = getRequestOptions(context);
1673
+ return url;
1674
+ };
1675
+ return {
1676
+ getUrl,
1677
+ httpMethod: "POST",
1678
+ path: "/v2/services/add-on-groups/update",
1679
+ pathParams: {},
1680
+ __requestType: null,
1681
+ __originalRequestType: null,
1682
+ __responseType: null,
1683
+ __originalResponseType: null
1684
+ };
1685
+ }
1686
+ function listAddOnGroupsByServiceId2() {
1687
+ const payload = {};
1688
+ const getRequestOptions = listAddOnGroupsByServiceId(payload);
1689
+ const getUrl = (context) => {
1690
+ const { url } = getRequestOptions(context);
1691
+ return url;
1692
+ };
1693
+ return {
1694
+ getUrl,
1695
+ httpMethod: "POST",
1696
+ path: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
1697
+ pathParams: {},
1698
+ __requestType: null,
1699
+ __originalRequestType: null,
1700
+ __responseType: null,
1701
+ __originalResponseType: null
1702
+ };
1703
+ }
1704
+ function setAddOnsForGroup2() {
1705
+ const payload = {};
1706
+ const getRequestOptions = setAddOnsForGroup(payload);
1707
+ const getUrl = (context) => {
1708
+ const { url } = getRequestOptions(context);
1709
+ return url;
1710
+ };
1711
+ return {
1712
+ getUrl,
1713
+ httpMethod: "POST",
1714
+ path: "/v2/services/add-on-groups/set-add-ons-for-group",
1715
+ pathParams: {},
1716
+ __requestType: null,
1717
+ __originalRequestType: null,
1718
+ __responseType: null,
1719
+ __originalResponseType: null
1720
+ };
1721
+ }
1722
+ function validateAddOnsSelection2() {
1723
+ const payload = {};
1724
+ const getRequestOptions = validateAddOnsSelection(payload);
1725
+ const getUrl = (context) => {
1726
+ const { url } = getRequestOptions(context);
1727
+ return url;
1728
+ };
1729
+ return {
1730
+ getUrl,
1731
+ httpMethod: "POST",
1732
+ path: "/v2/services/add-on-groups/validate-add-ons-selection",
1733
+ pathParams: {},
1734
+ __requestType: null,
1735
+ __originalRequestType: null,
1736
+ __responseType: null,
1737
+ __originalResponseType: null
1738
+ };
1739
+ }
1407
1740
  function createService2() {
1408
1741
  const payload = {};
1409
1742
  const getRequestOptions = createService(payload);
@@ -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