@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,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { S as Service, C as CreateServiceValidationErrors, B as BulkCreateServicesOptions, a as BulkCreateServicesResponse, U as UpdateService, b as UpdateServiceValidationErrors, c as BulkUpdateServicesOptions, d as BulkUpdateServicesResponse, e as BulkUpdateServicesByFilterOptions, f as BulkUpdateServicesByFilterResponse, D as DeleteServiceOptions, g as BulkDeleteServicesOptions, h as BulkDeleteServicesResponse, i as BulkDeleteServicesByFilterOptions, j as BulkDeleteServicesByFilterResponse, k as ServicesQueryBuilder, l as ServiceSearch, m as SearchServicesResponse, n as CursorQuery, Q as QueryPoliciesResponse, o as QueryBookingFormsOptions, p as QueryBookingFormsResponse, q as QueryBookingFormsApplicationErrors, r as CountServicesOptions, s as CountServicesResponse, t as QueryLocationsOptions, u as QueryLocationsResponse, v as QueryCategoriesOptions, w as QueryCategoriesResponse, L as Location, x as SetServiceLocationsOptions, y as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, z as EnablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, F as DisablePricingPlansForServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, H as SetCustomSlugOptions, I as SetCustomSlugResponse, J as SetCustomSlugApplicationErrors, K as SetCustomSlugValidationErrors, V as ValidateSlugOptions, M as ValidateSlugResponse, N as CloneServiceResponse, O as ServiceCreatedEnvelope, P as ServiceDeletedEnvelope, R as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-DYRSxPXw.mjs';
3
- export { a8 as Action, bp as ActionEvent, bB as AddOn, bC as AddOnAddOnInfoOneOf, bb as AddOnDetails, ba as AddOnGroup, bD as AddOnGroupDetail, dC as Address, dD as AddressHint, aC as AddressLocation, cj as Aggregation, cz as AggregationData, ck as AggregationKindOneOf, cS as AggregationResults, cT as AggregationResultsResultOneOf, cG as AggregationResultsScalarResult, a5 as AggregationType, bR as ApplicationError, aU as AvailabilityConstraints, dR as BaseEventMetadata, ds as Behavior, dt as BehaviorBehaviorOneOf, dn as Benefit, dm as BenefitNotification, ad as BenefitType, aJ as BookAfterStartPolicy, cY as BookingForm, aF as BookingPolicy, cW as BookingPolicyWithServices, bS as BulkActionMetadata, bO as BulkCreateServicesRequest, c6 as BulkDeleteServicesByFilterRequest, c5 as BulkDeleteServicesRequest, bP as BulkServiceResult, c1 as BulkUpdateServicesByFilterRequest, b$ as BulkUpdateServicesRequest, aD as BusinessLocationOptions, d2 as BusinessLocations, dF as BusinessSchedule, aP as CancellationFeePolicy, aK as CancellationPolicy, aQ as CancellationWindow, aR as CancellationWindowFeeOneOf, dA as Categories, dk as Category, dj as CategoryNotification, ac as CategoryNotificationEvent, dM as ChangeContext, dN as ChangeContextPayloadOneOf, aa as CloneErrors, di as CloneServiceRequest, az as CommonAddress, aA as CommonAddressStreetOneOf, ax as Conferencing, c_ as ConnectedService, dK as ConsentPolicy, c$ as CountServicesRequest, bt as CreateAddOnGroupRequest, bu as CreateAddOnGroupResponse, bJ as CreateServiceRequest, bK as CreateServiceResponse, af as CrudType, cc as CursorPaging, cy as CursorPagingMetadata, cV as CursorQueryPagingMethodOneOf, ch as CursorSearch, ci as CursorSearchPagingMethodOneOf, cf as Cursors, aE as CustomLocationOptions, d3 as CustomLocations, at as CustomPayment, d4 as CustomerLocations, cr as DateHistogramAggregation, cO as DateHistogramResult, cQ as DateHistogramResults, ah as DayOfWeek, bf as Delete, bv as DeleteAddOnGroupRequest, bw as DeleteAddOnGroupResponse, c2 as DeleteServiceRequest, c4 as DeleteServiceResponse, df as DisablePricingPlansForServiceRequest, dq as Discount, dr as DiscountDiscountOneOf, bj as DomainEvent, bk as DomainEventBodyOneOf, aV as Duration, dl as Empty, dd as EnablePricingPlansForServiceRequest, bl as EntityCreatedEvent, bo as EntityDeletedEvent, bn as EntityUpdatedEvent, dp as EntryPass, ae as Event, dS as EventMetadata, b5 as ExtendedFields, bN as FieldViolation, ar as FixedPayment, an as Form, cZ as FormDetails, ao as FormSettings, dE as GeoCoordinates, bV as GetServiceAvailabilityConstraintsRequest, bW as GetServiceAvailabilityConstraintsResponse, bT as GetServiceRequest, bU as GetServiceResponse, cv as GroupByAggregation, cw as GroupByAggregationKindOneOf, cP as GroupByValueResults, dv as HtmlSitePublished, br as IdentificationData, bs as IdentificationDataIdOneOf, cm as IncludeMissingValuesOptions, a4 as Interval, de as InvalidPricingPlan, a9 as InvalidSlugError, bQ as ItemMetadata, b7 as Keyword, aH as LimitEarlyBookingPolicy, aI as LimitLateBookingPolicy, bz as ListAddOnGroupsByServiceIdRequest, bA as ListAddOnGroupsByServiceIdResponse, dB as Locale, ay as LocationOptionsOneOf, X as LocationType, c0 as MaskedService, aj as Media, ak as MediaItem, al as MediaItemItemOneOf, bq as MessageEnvelope, a1 as MissingValues, a6 as Mode, as as Money, dc as MoveToNewLocationsOptions, dI as Multilingual, cu as NestedAggregation, cs as NestedAggregationItem, ct as NestedAggregationItemKindOneOf, cC as NestedAggregationResults, cD as NestedAggregationResultsResultOneOf, a3 as NestedAggregationType, cL as NestedResultValue, cM as NestedResultValueResultOneOf, cR as NestedResults, cH as NestedValueAggregationResult, aw as OnlineBooking, dw as Page, cb as Paging, ce as PagingMetadataV2, c3 as ParticipantNotification, aN as ParticipantsPolicy, ap as Payment, av as PaymentOptions, aq as PaymentRateOneOf, ag as PlacementType, aG as PolicyDescription, dz as Properties, dO as PropertiesChange, cX as QueryBookingFormsRequest, d6 as QueryCategoriesFilter, d5 as QueryCategoriesRequest, d1 as QueryLocationsFilter, d0 as QueryLocationsRequest, cU as QueryPoliciesRequest, d7 as QueryServicesMultiLanguageRequest, d8 as QueryServicesMultiLanguageResponse, c7 as QueryServicesRequest, cd as QueryServicesResponse, c8 as QueryV2, c9 as QueryV2PagingMethodOneOf, cp as RangeAggregation, cB as RangeAggregationResult, cl as RangeBucket, cJ as RangeResult, cF as RangeResults, W as RateType, bc as ReindexMessage, bd as ReindexMessageActionOneOf, da as RemovedLocationSessionsAction, db as RemovedLocationSessionsActionActionOptionsOneOf, a7 as RequestedFields, aL as ReschedulePolicy, ai as ResolutionMethod, a_ as ResourceGroup, a$ as ResourceIds, b2 as ResourceType, aO as ResourcesPolicy, bm as RestoreInfo, cN as Results, aS as SaveCreditCardPolicy, cq as ScalarAggregation, cK as ScalarResult, a2 as ScalarType, aT as Schedule, bg as Schema, cx as SearchDetails, cg as SearchServicesRequest, b6 as SeoSchema, bX as ServiceAvailabilityConstraints, b0 as ServiceResource, b1 as ServiceResourceSelectionOneOf, dU as ServiceSearchSpec, T as ServiceType, dT as ServicesQueryResult, bi as ServicesUrlsChanged, bE as SetAddOnsForGroupRequest, bF as SetAddOnsForGroupResponse, bh as SetCustomSlugEvent, dg as SetCustomSlugRequest, d9 as SetServiceLocationsRequest, b9 as Settings, dQ as SiteCloned, dP as SiteCreated, dy as SitePropertiesEvent, dx as SitePropertiesNotification, b3 as Slug, a0 as SortDirection, _ as SortOrder, $ as SortType, ca as Sorting, dH as SpecialHourPeriod, bY as SplitInterval, aX as StaffMediaItem, aY as StaffMediaItemItemOneOf, aW as StaffMember, aZ as StaffMemberDetails, ab as Status, aB as StreetAddress, dJ as SupportedLanguage, b8 as Tag, dG as TimePeriod, dL as Translation, b4 as URLs, bx as UpdateAddOnGroupRequest, by as UpdateAddOnGroupResponse, bZ as UpdateServiceRequest, b_ as UpdateServiceResponse, be as Upsert, du as UserDomainInfoChangedEvent, am as V2Category, Z as V2RequestedFields, bG as ValidateAddOnsSelectionRequest, bH as ValidateAddOnsSelectionResponse, bL as ValidateServiceRequest, bM as ValidateServiceResponse, dh as ValidateSlugRequest, bI as ValidationResult, cn as ValueAggregation, co as ValueAggregationOptionsOneOf, cA as ValueAggregationResult, cI as ValueResult, cE as ValueResults, au as VariedPayment, aM as WaitlistPolicy, Y as WebhookIdentityType } from './bookings-services-v2-service-services.universal-DYRSxPXw.mjs';
2
+ import { S as Service, C as CreateServiceValidationErrors, B as BulkCreateServicesOptions, a as BulkCreateServicesResponse, U as UpdateService, b as UpdateServiceValidationErrors, c as BulkUpdateServicesOptions, d as BulkUpdateServicesResponse, e as BulkUpdateServicesByFilterOptions, f as BulkUpdateServicesByFilterResponse, D as DeleteServiceOptions, g as BulkDeleteServicesOptions, h as BulkDeleteServicesResponse, i as BulkDeleteServicesByFilterOptions, j as BulkDeleteServicesByFilterResponse, k as ServicesQueryBuilder, l as ServiceSearch, m as SearchServicesResponse, n as CursorQuery, Q as QueryPoliciesResponse, o as QueryBookingFormsOptions, p as QueryBookingFormsResponse, q as QueryBookingFormsApplicationErrors, r as CountServicesOptions, s as CountServicesResponse, t as QueryLocationsOptions, u as QueryLocationsResponse, v as QueryCategoriesOptions, w as QueryCategoriesResponse, L as Location, x as SetServiceLocationsOptions, y as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, z as EnablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, F as DisablePricingPlansForServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, H as SetCustomSlugOptions, I as SetCustomSlugResponse, J as SetCustomSlugApplicationErrors, K as SetCustomSlugValidationErrors, V as ValidateSlugOptions, M as ValidateSlugResponse, N as CloneServiceResponse, O as AddOnGroup, P as CreateAddOnGroupOptions, R as CreateAddOnGroupResponse, T as DeleteAddOnGroupOptions, W as DeleteAddOnGroupApplicationErrors, X as UpdateAddOnGroupOptions, Y as UpdateAddOnGroupResponse, Z as UpdateAddOnGroupApplicationErrors, _ as ListAddOnGroupsByServiceIdOptions, $ as ListAddOnGroupsByServiceIdResponse, a0 as SetAddOnsForGroupOptions, a1 as SetAddOnsForGroupResponse, a2 as SetAddOnsForGroupApplicationErrors, a3 as ValidateAddOnsSelectionOptions, a4 as ValidateAddOnsSelectionResponse, a5 as ServiceCreatedEnvelope, a6 as ServiceDeletedEnvelope, a7 as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-D6jEh8MN.mjs';
3
+ export { an as Action, bD as ActionEvent, dU as AddOn, dV as AddOnAddOnInfoOneOf, bp as AddOnDetails, dW as AddOnGroupDetail, dA as Address, dB as AddressHint, aR as AddressLocation, ch as Aggregation, cx as AggregationData, ci as AggregationKindOneOf, cQ as AggregationResults, cR as AggregationResultsResultOneOf, cE as AggregationResultsScalarResult, ak as AggregationType, bP as ApplicationError, b7 as AvailabilityConstraints, d_ as BaseEventMetadata, dq as Behavior, dr as BehaviorBehaviorOneOf, dl as Benefit, dk as BenefitNotification, as as BenefitType, aY as BookAfterStartPolicy, cW as BookingForm, aU as BookingPolicy, cU as BookingPolicyWithServices, bQ as BulkActionMetadata, bM as BulkCreateServicesRequest, c4 as BulkDeleteServicesByFilterRequest, c3 as BulkDeleteServicesRequest, bN as BulkServiceResult, b$ as BulkUpdateServicesByFilterRequest, bZ as BulkUpdateServicesRequest, aS as BusinessLocationOptions, d0 as BusinessLocations, dD as BusinessSchedule, b2 as CancellationFeePolicy, aZ as CancellationPolicy, b3 as CancellationWindow, b4 as CancellationWindowFeeOneOf, dy as Categories, di as Category, dh as CategoryNotification, ar as CategoryNotificationEvent, dK as ChangeContext, dL as ChangeContextPayloadOneOf, ap as CloneErrors, dg as CloneServiceRequest, aO as CommonAddress, aP as CommonAddressStreetOneOf, aM as Conferencing, cY as ConnectedService, dI as ConsentPolicy, cZ as CountServicesRequest, dP as CreateAddOnGroupRequest, bH as CreateServiceRequest, bI as CreateServiceResponse, au as CrudType, ca as CursorPaging, cw as CursorPagingMetadata, cT as CursorQueryPagingMethodOneOf, cf as CursorSearch, cg as CursorSearchPagingMethodOneOf, cd as Cursors, aT as CustomLocationOptions, d1 as CustomLocations, aI as CustomPayment, d2 as CustomerLocations, cp as DateHistogramAggregation, cM as DateHistogramResult, cO as DateHistogramResults, aw as DayOfWeek, bt as Delete, dQ as DeleteAddOnGroupRequest, dR as DeleteAddOnGroupResponse, c0 as DeleteServiceRequest, c2 as DeleteServiceResponse, dd as DisablePricingPlansForServiceRequest, dn as Discount, dp as DiscountDiscountOneOf, bx as DomainEvent, by as DomainEventBodyOneOf, b8 as Duration, dj as Empty, db as EnablePricingPlansForServiceRequest, bz as EntityCreatedEvent, bC as EntityDeletedEvent, bB as EntityUpdatedEvent, dm as EntryPass, at as Event, d$ as EventMetadata, bk as ExtendedFields, bL as FieldViolation, aG as FixedPayment, aC as Form, cX as FormDetails, aD as FormSettings, dC as GeoCoordinates, bT as GetServiceAvailabilityConstraintsRequest, bU as GetServiceAvailabilityConstraintsResponse, bR as GetServiceRequest, bS as GetServiceResponse, ct as GroupByAggregation, cu as GroupByAggregationKindOneOf, cN as GroupByValueResults, dt as HtmlSitePublished, bF as IdentificationData, bG as IdentificationDataIdOneOf, ck as IncludeMissingValuesOptions, aj as Interval, dc as InvalidPricingPlan, ao as InvalidSlugError, bO as ItemMetadata, bm as Keyword, aW as LimitEarlyBookingPolicy, aX as LimitLateBookingPolicy, dT as ListAddOnGroupsByServiceIdRequest, dz as Locale, aN as LocationOptionsOneOf, aa as LocationType, b_ as MaskedService, ay as Media, az as MediaItem, aA as MediaItemItemOneOf, bE as MessageEnvelope, ag as MissingValues, al as Mode, aH as Money, da as MoveToNewLocationsOptions, dG as Multilingual, cs as NestedAggregation, cq as NestedAggregationItem, cr as NestedAggregationItemKindOneOf, cA as NestedAggregationResults, cB as NestedAggregationResultsResultOneOf, ai as NestedAggregationType, cJ as NestedResultValue, cK as NestedResultValueResultOneOf, cP as NestedResults, cF as NestedValueAggregationResult, aL as OnlineBooking, du as Page, c9 as Paging, cc as PagingMetadataV2, c1 as ParticipantNotification, b0 as ParticipantsPolicy, aE as Payment, aK as PaymentOptions, aF as PaymentRateOneOf, av as PlacementType, aV as PolicyDescription, dx as Properties, dM as PropertiesChange, cV as QueryBookingFormsRequest, d4 as QueryCategoriesFilter, d3 as QueryCategoriesRequest, c$ as QueryLocationsFilter, c_ as QueryLocationsRequest, cS as QueryPoliciesRequest, d5 as QueryServicesMultiLanguageRequest, d6 as QueryServicesMultiLanguageResponse, c5 as QueryServicesRequest, cb as QueryServicesResponse, c6 as QueryV2, c7 as QueryV2PagingMethodOneOf, cn as RangeAggregation, cz as RangeAggregationResult, cj as RangeBucket, cH as RangeResult, cD as RangeResults, a9 as RateType, bq as ReindexMessage, br as ReindexMessageActionOneOf, d8 as RemovedLocationSessionsAction, d9 as RemovedLocationSessionsActionActionOptionsOneOf, am as RequestedFields, a_ as ReschedulePolicy, ax as ResolutionMethod, bd as ResourceGroup, be as ResourceIds, bh as ResourceType, b1 as ResourcesPolicy, bA as RestoreInfo, cL as Results, b5 as SaveCreditCardPolicy, co as ScalarAggregation, cI as ScalarResult, ah as ScalarType, b6 as Schedule, bu as Schema, cv as SearchDetails, ce as SearchServicesRequest, bl as SeoSchema, bV as ServiceAvailabilityConstraints, bf as ServiceResource, bg as ServiceResourceSelectionOneOf, e1 as ServiceSearchSpec, a8 as ServiceType, e0 as ServicesQueryResult, bw as ServicesUrlsChanged, dX as SetAddOnsForGroupRequest, bv as SetCustomSlugEvent, de as SetCustomSlugRequest, d7 as SetServiceLocationsRequest, bo as Settings, dO as SiteCloned, dN as SiteCreated, dw as SitePropertiesEvent, dv as SitePropertiesNotification, bi as Slug, af as SortDirection, ad as SortOrder, ae as SortType, c8 as Sorting, dF as SpecialHourPeriod, bW as SplitInterval, ba as StaffMediaItem, bb as StaffMediaItemItemOneOf, b9 as StaffMember, bc as StaffMemberDetails, aq as Status, aQ as StreetAddress, dH as SupportedLanguage, bn as Tag, dE as TimePeriod, dJ as Translation, bj as URLs, dS as UpdateAddOnGroupRequest, bX as UpdateServiceRequest, bY as UpdateServiceResponse, bs as Upsert, ds as UserDomainInfoChangedEvent, aB as V2Category, ac as V2RequestedFields, dY as ValidateAddOnsSelectionRequest, bJ as ValidateServiceRequest, bK as ValidateServiceResponse, df as ValidateSlugRequest, dZ as ValidationResult, cl as ValueAggregation, cm as ValueAggregationOptionsOneOf, cy as ValueAggregationResult, cG as ValueResult, cC as ValueResults, aJ as VariedPayment, a$ as WaitlistPolicy, ab as WebhookIdentityType } from './bookings-services-v2-service-services.universal-D6jEh8MN.mjs';
4
4
 
5
5
  type ServiceNonNullablePaths = `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.business.address.streetAddress.number` | `locations.${number}.business.address.streetAddress.name` | `locations.${number}.business.address.streetAddress.apt` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `mainSlug.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`;
6
6
  declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
@@ -633,6 +633,67 @@ interface CloneServiceSignature {
633
633
  [P in ServiceNonNullablePaths]: `service.${P}`;
634
634
  }[ServiceNonNullablePaths] | `errors`>>;
635
635
  }
636
+ declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
637
+ interface CreateAddOnGroupSignature {
638
+ /**
639
+ * Create a new AddOns group.
640
+ * An AddOns group defines a collection of AddOns that can be linked to a Service,
641
+ * with constraints such as minimum and maximum selections.
642
+ * @param - AddOnGroup to create.
643
+ */
644
+ (addOnGroup: NonNullablePaths<AddOnGroup, `name`>, options?: CreateAddOnGroupOptions): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`>>;
645
+ }
646
+ declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
647
+ interface DeleteAddOnGroupSignature {
648
+ /**
649
+ * Delete an existing AddOns group.
650
+ * This will remove the group and unlink all associated AddOns.
651
+ * @param - ID of the AddOnGroup to delete.
652
+ */
653
+ (addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`>): Promise<void & {
654
+ __applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
655
+ }>;
656
+ }
657
+ declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
658
+ interface UpdateAddOnGroupSignature {
659
+ /**
660
+ * Update an existing AddOns group.
661
+ * This allows modifying group settings such as its name, prompt, constraints, or associated AddOns.
662
+ * @param - AddOnGroup to update.
663
+ */
664
+ (addOnGroup: NonNullablePaths<AddOnGroup, `_id`>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`> & {
665
+ __applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
666
+ }>;
667
+ }
668
+ declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
669
+ interface ListAddOnGroupsByServiceIdSignature {
670
+ /**
671
+ * Retrieves a list of AddOnGroups including enriched AddOn details in the correct order.
672
+ * If the group_id is specified, only the AddOns for the specified group will be returned,
673
+ * otherwise all groups will be returned.
674
+ * @param - ID of the service to retrieve AddOnGroups for.
675
+ */
676
+ (serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`>>;
677
+ }
678
+ declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
679
+ interface SetAddOnsForGroupSignature {
680
+ /**
681
+ * Sets the AddOns for a specific group.
682
+ * The order of the AddOns in the list will be used to determine their display order.
683
+ * @param - The service ID to set AddOns for.
684
+ */
685
+ (serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`> & {
686
+ __applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
687
+ }>;
688
+ }
689
+ declare function validateAddOnsSelection$1(httpClient: HttpClient): ValidateAddOnsSelectionSignature;
690
+ interface ValidateAddOnsSelectionSignature {
691
+ /**
692
+ * Validates the selection of AddOns for a given group based on the group's settings.
693
+ * @param - The service ID to validate AddOns against.
694
+ */
695
+ (serviceId: string, options: NonNullablePaths<ValidateAddOnsSelectionOptions, `addOnIds` | `groupId`>): Promise<ValidateAddOnsSelectionResponse>;
696
+ }
636
697
  declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
637
698
  declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
638
699
  declare const onServiceUpdated$1: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
@@ -659,6 +720,12 @@ declare const disablePricingPlansForService: MaybeContext<BuildRESTFunction<type
659
720
  declare const setCustomSlug: MaybeContext<BuildRESTFunction<typeof setCustomSlug$1> & typeof setCustomSlug$1>;
660
721
  declare const validateSlug: MaybeContext<BuildRESTFunction<typeof validateSlug$1> & typeof validateSlug$1>;
661
722
  declare const cloneService: MaybeContext<BuildRESTFunction<typeof cloneService$1> & typeof cloneService$1>;
723
+ declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
724
+ declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
725
+ declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
726
+ declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
727
+ declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
728
+ declare const validateAddOnsSelection: MaybeContext<BuildRESTFunction<typeof validateAddOnsSelection$1> & typeof validateAddOnsSelection$1>;
662
729
  /**
663
730
  * Triggered when a service is created.
664
731
  */
@@ -672,4 +739,4 @@ declare const onServiceDeleted: BuildEventDefinition<typeof onServiceDeleted$1>;
672
739
  */
673
740
  declare const onServiceUpdated: BuildEventDefinition<typeof onServiceUpdated$1>;
674
741
 
675
- export { BulkCreateServicesOptions, BulkCreateServicesResponse, BulkDeleteServicesByFilterOptions, BulkDeleteServicesByFilterResponse, BulkDeleteServicesOptions, BulkDeleteServicesResponse, BulkUpdateServicesByFilterOptions, BulkUpdateServicesByFilterResponse, BulkUpdateServicesOptions, BulkUpdateServicesResponse, CloneServiceResponse, CountServicesOptions, CountServicesResponse, CursorQuery, DeleteServiceOptions, DisablePricingPlansForServiceOptions, DisablePricingPlansForServiceResponse, EnablePricingPlansForServiceResponse, Location, QueryBookingFormsOptions, QueryBookingFormsResponse, QueryCategoriesOptions, QueryCategoriesResponse, QueryLocationsOptions, QueryLocationsResponse, QueryPoliciesResponse, SearchServicesResponse, Service, ServiceCreatedEnvelope, ServiceDeletedEnvelope, ServiceUpdatedEnvelope, ServicesQueryBuilder, SetCustomSlugOptions, SetCustomSlugResponse, SetServiceLocationsOptions, SetServiceLocationsResponse, UpdateService, ValidateSlugOptions, ValidateSlugResponse, bulkCreateServices, bulkDeleteServices, bulkDeleteServicesByFilter, bulkUpdateServices, bulkUpdateServicesByFilter, cloneService, countServices, createService, deleteService, disablePricingPlansForService, enablePricingPlansForService, getService, onServiceCreated, onServiceDeleted, onServiceUpdated, queryBookingForms, queryCategories, queryLocations, queryPolicies, queryServices, searchServices, setCustomSlug, setServiceLocations, updateService, validateSlug };
742
+ export { AddOnGroup, BulkCreateServicesOptions, BulkCreateServicesResponse, BulkDeleteServicesByFilterOptions, BulkDeleteServicesByFilterResponse, BulkDeleteServicesOptions, BulkDeleteServicesResponse, BulkUpdateServicesByFilterOptions, BulkUpdateServicesByFilterResponse, BulkUpdateServicesOptions, BulkUpdateServicesResponse, CloneServiceResponse, CountServicesOptions, CountServicesResponse, CreateAddOnGroupOptions, CreateAddOnGroupResponse, CursorQuery, DeleteAddOnGroupOptions, DeleteServiceOptions, DisablePricingPlansForServiceOptions, DisablePricingPlansForServiceResponse, EnablePricingPlansForServiceResponse, ListAddOnGroupsByServiceIdOptions, ListAddOnGroupsByServiceIdResponse, Location, QueryBookingFormsOptions, QueryBookingFormsResponse, QueryCategoriesOptions, QueryCategoriesResponse, QueryLocationsOptions, QueryLocationsResponse, QueryPoliciesResponse, SearchServicesResponse, Service, ServiceCreatedEnvelope, ServiceDeletedEnvelope, ServiceUpdatedEnvelope, ServicesQueryBuilder, SetAddOnsForGroupOptions, SetAddOnsForGroupResponse, SetCustomSlugOptions, SetCustomSlugResponse, SetServiceLocationsOptions, SetServiceLocationsResponse, UpdateAddOnGroupOptions, UpdateAddOnGroupResponse, UpdateService, ValidateAddOnsSelectionOptions, ValidateAddOnsSelectionResponse, ValidateSlugOptions, ValidateSlugResponse, bulkCreateServices, bulkDeleteServices, bulkDeleteServicesByFilter, bulkUpdateServices, bulkUpdateServicesByFilter, cloneService, countServices, createAddOnGroup, createService, deleteAddOnGroup, deleteService, disablePricingPlansForService, enablePricingPlansForService, getService, listAddOnGroupsByServiceId, onServiceCreated, onServiceDeleted, onServiceUpdated, queryBookingForms, queryCategories, queryLocations, queryPolicies, queryServices, searchServices, setAddOnsForGroup, setCustomSlug, setServiceLocations, updateAddOnGroup, updateService, validateAddOnsSelection, validateSlug };
@@ -24,6 +24,117 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
24
24
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
25
25
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
26
26
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
27
+ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
28
+ const domainToMappings = {
29
+ "*.dev.wix-code.com": [
30
+ {
31
+ srcPath: "/_api/services-2",
32
+ destPath: ""
33
+ },
34
+ {
35
+ srcPath: "/_api/bookings/v2/services",
36
+ destPath: "/v2/services"
37
+ }
38
+ ],
39
+ "www.wixapis.com": [
40
+ {
41
+ srcPath: "/_api/bookings/v2/services",
42
+ destPath: "/v2/services"
43
+ },
44
+ {
45
+ srcPath: "/bookings/v2/services",
46
+ destPath: "/v2/services"
47
+ },
48
+ {
49
+ srcPath: "/bookings/v2/bulk/services",
50
+ destPath: "/v2/bulk/services"
51
+ }
52
+ ],
53
+ "manage._base_domain_": [
54
+ {
55
+ srcPath: "/_api/bookings/v2/services",
56
+ destPath: "/v2/services"
57
+ },
58
+ {
59
+ srcPath: "/_api/bookings/v2/bulk/services",
60
+ destPath: "/v2/bulk/services"
61
+ }
62
+ ],
63
+ "editor._base_domain_": [
64
+ {
65
+ srcPath: "/_api/bookings/v2/services",
66
+ destPath: "/v2/services"
67
+ },
68
+ {
69
+ srcPath: "/_api/bookings/v2/bulk/services",
70
+ destPath: "/v2/bulk/services"
71
+ }
72
+ ],
73
+ "blocks._base_domain_": [
74
+ {
75
+ srcPath: "/_api/bookings/v2/services",
76
+ destPath: "/v2/services"
77
+ },
78
+ {
79
+ srcPath: "/_api/bookings/v2/bulk/services",
80
+ destPath: "/v2/bulk/services"
81
+ }
82
+ ],
83
+ "create.editorx": [
84
+ {
85
+ srcPath: "/_api/bookings/v2/services",
86
+ destPath: "/v2/services"
87
+ },
88
+ {
89
+ srcPath: "/_api/bookings/v2/bulk/services",
90
+ destPath: "/v2/bulk/services"
91
+ }
92
+ ],
93
+ _: [
94
+ {
95
+ srcPath: "/_api/bookings/v2/services",
96
+ destPath: "/v2/services"
97
+ }
98
+ ],
99
+ "www._base_domain_": [
100
+ {
101
+ srcPath: "/_api/bookings/v2/services",
102
+ destPath: "/v2/services"
103
+ }
104
+ ],
105
+ "bo._base_domain_": [
106
+ {
107
+ srcPath: "/_api/bookings/v2/services",
108
+ destPath: "/v2/services"
109
+ }
110
+ ],
111
+ "wixbo.ai": [
112
+ {
113
+ srcPath: "/_api/bookings/v2/services",
114
+ destPath: "/v2/services"
115
+ }
116
+ ],
117
+ "wix-bo.com": [
118
+ {
119
+ srcPath: "/_api/bookings/v2/services",
120
+ destPath: "/v2/services"
121
+ }
122
+ ],
123
+ "editor.wixapps.net": [
124
+ {
125
+ srcPath: "/_api/bookings/v2/services",
126
+ destPath: "/v2/services"
127
+ }
128
+ ],
129
+ "api._api_base_domain_": [
130
+ {
131
+ srcPath: "/services-2",
132
+ destPath: ""
133
+ }
134
+ ]
135
+ };
136
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
137
+ }
27
138
  function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
28
139
  const domainToMappings = {
29
140
  "*.dev.wix-code.com": [
@@ -1419,6 +1530,120 @@ function cloneService(payload) {
1419
1530
  }
1420
1531
  return __cloneService;
1421
1532
  }
1533
+ function createAddOnGroup(payload) {
1534
+ function __createAddOnGroup({ host }) {
1535
+ const metadata = {
1536
+ entityFqdn: "wix.bookings.services.v2.service",
1537
+ method: "POST",
1538
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
1539
+ packageName: PACKAGE_NAME,
1540
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1541
+ protoPath: "/v2/services/add-on-groups/create",
1542
+ data: payload,
1543
+ host
1544
+ }),
1545
+ data: payload
1546
+ };
1547
+ return metadata;
1548
+ }
1549
+ return __createAddOnGroup;
1550
+ }
1551
+ function deleteAddOnGroup(payload) {
1552
+ function __deleteAddOnGroup({ host }) {
1553
+ const metadata = {
1554
+ entityFqdn: "wix.bookings.services.v2.service",
1555
+ method: "POST",
1556
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
1557
+ packageName: PACKAGE_NAME,
1558
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1559
+ protoPath: "/v2/services/add-on-groups/delete",
1560
+ data: payload,
1561
+ host
1562
+ }),
1563
+ data: payload
1564
+ };
1565
+ return metadata;
1566
+ }
1567
+ return __deleteAddOnGroup;
1568
+ }
1569
+ function updateAddOnGroup(payload) {
1570
+ function __updateAddOnGroup({ host }) {
1571
+ const serializedData = transformPaths(payload, [
1572
+ {
1573
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
1574
+ paths: [{ path: "mask" }]
1575
+ }
1576
+ ]);
1577
+ const metadata = {
1578
+ entityFqdn: "wix.bookings.services.v2.service",
1579
+ method: "POST",
1580
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
1581
+ packageName: PACKAGE_NAME,
1582
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1583
+ protoPath: "/v2/services/add-on-groups/update",
1584
+ data: serializedData,
1585
+ host
1586
+ }),
1587
+ data: serializedData
1588
+ };
1589
+ return metadata;
1590
+ }
1591
+ return __updateAddOnGroup;
1592
+ }
1593
+ function listAddOnGroupsByServiceId(payload) {
1594
+ function __listAddOnGroupsByServiceId({ host }) {
1595
+ const metadata = {
1596
+ entityFqdn: "wix.bookings.services.v2.service",
1597
+ method: "POST",
1598
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
1599
+ packageName: PACKAGE_NAME,
1600
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1601
+ protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
1602
+ data: payload,
1603
+ host
1604
+ }),
1605
+ data: payload
1606
+ };
1607
+ return metadata;
1608
+ }
1609
+ return __listAddOnGroupsByServiceId;
1610
+ }
1611
+ function setAddOnsForGroup(payload) {
1612
+ function __setAddOnsForGroup({ host }) {
1613
+ const metadata = {
1614
+ entityFqdn: "wix.bookings.services.v2.service",
1615
+ method: "POST",
1616
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
1617
+ packageName: PACKAGE_NAME,
1618
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1619
+ protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
1620
+ data: payload,
1621
+ host
1622
+ }),
1623
+ data: payload
1624
+ };
1625
+ return metadata;
1626
+ }
1627
+ return __setAddOnsForGroup;
1628
+ }
1629
+ function validateAddOnsSelection(payload) {
1630
+ function __validateAddOnsSelection({ host }) {
1631
+ const metadata = {
1632
+ entityFqdn: "wix.bookings.services.v2.service",
1633
+ method: "POST",
1634
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection",
1635
+ packageName: PACKAGE_NAME,
1636
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1637
+ protoPath: "/v2/services/add-on-groups/validate-add-ons-selection",
1638
+ data: payload,
1639
+ host
1640
+ }),
1641
+ data: payload
1642
+ };
1643
+ return metadata;
1644
+ }
1645
+ return __validateAddOnsSelection;
1646
+ }
1422
1647
 
1423
1648
  // src/bookings-services-v2-service-services.universal.ts
1424
1649
  import { transformSDKAddressToRESTAddress } from "@wix/sdk-runtime/transformations/address";
@@ -2831,6 +3056,184 @@ async function cloneService2(sourceServiceId) {
2831
3056
  throw transformedError;
2832
3057
  }
2833
3058
  }
3059
+ async function createAddOnGroup2(addOnGroup, options) {
3060
+ const { httpClient, sideEffects } = arguments[2];
3061
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3062
+ addOnGroup,
3063
+ serviceId: options?.serviceId
3064
+ });
3065
+ const reqOpts = createAddOnGroup(payload);
3066
+ sideEffects?.onSiteCall?.();
3067
+ try {
3068
+ const result = await httpClient.request(reqOpts);
3069
+ sideEffects?.onSuccess?.(result);
3070
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
3071
+ } catch (err) {
3072
+ const transformedError = sdkTransformError(
3073
+ err,
3074
+ {
3075
+ spreadPathsToArguments: {},
3076
+ explicitPathsToArguments: {
3077
+ addOnGroup: "$[0]",
3078
+ serviceId: "$[1].serviceId"
3079
+ },
3080
+ singleArgumentUnchanged: false
3081
+ },
3082
+ ["addOnGroup", "options"]
3083
+ );
3084
+ sideEffects?.onError?.(err);
3085
+ throw transformedError;
3086
+ }
3087
+ }
3088
+ async function deleteAddOnGroup2(addOnGroupId, options) {
3089
+ const { httpClient, sideEffects } = arguments[2];
3090
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3091
+ addOnGroupId,
3092
+ serviceId: options?.serviceId
3093
+ });
3094
+ const reqOpts = deleteAddOnGroup(payload);
3095
+ sideEffects?.onSiteCall?.();
3096
+ try {
3097
+ const result = await httpClient.request(reqOpts);
3098
+ sideEffects?.onSuccess?.(result);
3099
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
3100
+ } catch (err) {
3101
+ const transformedError = sdkTransformError(
3102
+ err,
3103
+ {
3104
+ spreadPathsToArguments: {},
3105
+ explicitPathsToArguments: {
3106
+ addOnGroupId: "$[0]",
3107
+ serviceId: "$[1].serviceId"
3108
+ },
3109
+ singleArgumentUnchanged: false
3110
+ },
3111
+ ["addOnGroupId", "options"]
3112
+ );
3113
+ sideEffects?.onError?.(err);
3114
+ throw transformedError;
3115
+ }
3116
+ }
3117
+ async function updateAddOnGroup2(addOnGroup, options) {
3118
+ const { httpClient, sideEffects } = arguments[2];
3119
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3120
+ addOnGroup,
3121
+ serviceId: options?.serviceId
3122
+ });
3123
+ const reqOpts = updateAddOnGroup(payload);
3124
+ sideEffects?.onSiteCall?.();
3125
+ try {
3126
+ const result = await httpClient.request(reqOpts);
3127
+ sideEffects?.onSuccess?.(result);
3128
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
3129
+ } catch (err) {
3130
+ const transformedError = sdkTransformError(
3131
+ err,
3132
+ {
3133
+ spreadPathsToArguments: {},
3134
+ explicitPathsToArguments: {
3135
+ addOnGroup: "$[0]",
3136
+ serviceId: "$[1].serviceId"
3137
+ },
3138
+ singleArgumentUnchanged: false
3139
+ },
3140
+ ["addOnGroup", "options"]
3141
+ );
3142
+ sideEffects?.onError?.(err);
3143
+ throw transformedError;
3144
+ }
3145
+ }
3146
+ async function listAddOnGroupsByServiceId2(serviceId, options) {
3147
+ const { httpClient, sideEffects } = arguments[2];
3148
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3149
+ serviceId,
3150
+ groupIds: options?.groupIds
3151
+ });
3152
+ const reqOpts = listAddOnGroupsByServiceId(payload);
3153
+ sideEffects?.onSiteCall?.();
3154
+ try {
3155
+ const result = await httpClient.request(reqOpts);
3156
+ sideEffects?.onSuccess?.(result);
3157
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
3158
+ } catch (err) {
3159
+ const transformedError = sdkTransformError(
3160
+ err,
3161
+ {
3162
+ spreadPathsToArguments: {},
3163
+ explicitPathsToArguments: {
3164
+ serviceId: "$[0]",
3165
+ groupIds: "$[1].groupIds"
3166
+ },
3167
+ singleArgumentUnchanged: false
3168
+ },
3169
+ ["serviceId", "options"]
3170
+ );
3171
+ sideEffects?.onError?.(err);
3172
+ throw transformedError;
3173
+ }
3174
+ }
3175
+ async function setAddOnsForGroup2(serviceId, options) {
3176
+ const { httpClient, sideEffects } = arguments[2];
3177
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3178
+ serviceId,
3179
+ groupId: options?.groupId,
3180
+ addOnIds: options?.addOnIds
3181
+ });
3182
+ const reqOpts = setAddOnsForGroup(payload);
3183
+ sideEffects?.onSiteCall?.();
3184
+ try {
3185
+ const result = await httpClient.request(reqOpts);
3186
+ sideEffects?.onSuccess?.(result);
3187
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
3188
+ } catch (err) {
3189
+ const transformedError = sdkTransformError(
3190
+ err,
3191
+ {
3192
+ spreadPathsToArguments: {},
3193
+ explicitPathsToArguments: {
3194
+ serviceId: "$[0]",
3195
+ groupId: "$[1].groupId",
3196
+ addOnIds: "$[1].addOnIds"
3197
+ },
3198
+ singleArgumentUnchanged: false
3199
+ },
3200
+ ["serviceId", "options"]
3201
+ );
3202
+ sideEffects?.onError?.(err);
3203
+ throw transformedError;
3204
+ }
3205
+ }
3206
+ async function validateAddOnsSelection2(serviceId, options) {
3207
+ const { httpClient, sideEffects } = arguments[2];
3208
+ const payload = renameKeysFromSDKRequestToRESTRequest({
3209
+ serviceId,
3210
+ groupId: options?.groupId,
3211
+ addOnIds: options?.addOnIds
3212
+ });
3213
+ const reqOpts = validateAddOnsSelection(payload);
3214
+ sideEffects?.onSiteCall?.();
3215
+ try {
3216
+ const result = await httpClient.request(reqOpts);
3217
+ sideEffects?.onSuccess?.(result);
3218
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
3219
+ } catch (err) {
3220
+ const transformedError = sdkTransformError(
3221
+ err,
3222
+ {
3223
+ spreadPathsToArguments: {},
3224
+ explicitPathsToArguments: {
3225
+ serviceId: "$[0]",
3226
+ groupId: "$[1].groupId",
3227
+ addOnIds: "$[1].addOnIds"
3228
+ },
3229
+ singleArgumentUnchanged: false
3230
+ },
3231
+ ["serviceId", "options"]
3232
+ );
3233
+ sideEffects?.onError?.(err);
3234
+ throw transformedError;
3235
+ }
3236
+ }
2834
3237
 
2835
3238
  // src/bookings-services-v2-service-services.public.ts
2836
3239
  function createService3(httpClient) {
@@ -2999,6 +3402,54 @@ function cloneService3(httpClient) {
2999
3402
  { httpClient }
3000
3403
  );
3001
3404
  }
3405
+ function createAddOnGroup3(httpClient) {
3406
+ return (addOnGroup, options) => createAddOnGroup2(
3407
+ addOnGroup,
3408
+ options,
3409
+ // @ts-ignore
3410
+ { httpClient }
3411
+ );
3412
+ }
3413
+ function deleteAddOnGroup3(httpClient) {
3414
+ return (addOnGroupId, options) => deleteAddOnGroup2(
3415
+ addOnGroupId,
3416
+ options,
3417
+ // @ts-ignore
3418
+ { httpClient }
3419
+ );
3420
+ }
3421
+ function updateAddOnGroup3(httpClient) {
3422
+ return (addOnGroup, options) => updateAddOnGroup2(
3423
+ addOnGroup,
3424
+ options,
3425
+ // @ts-ignore
3426
+ { httpClient }
3427
+ );
3428
+ }
3429
+ function listAddOnGroupsByServiceId3(httpClient) {
3430
+ return (serviceId, options) => listAddOnGroupsByServiceId2(
3431
+ serviceId,
3432
+ options,
3433
+ // @ts-ignore
3434
+ { httpClient }
3435
+ );
3436
+ }
3437
+ function setAddOnsForGroup3(httpClient) {
3438
+ return (serviceId, options) => setAddOnsForGroup2(
3439
+ serviceId,
3440
+ options,
3441
+ // @ts-ignore
3442
+ { httpClient }
3443
+ );
3444
+ }
3445
+ function validateAddOnsSelection3(httpClient) {
3446
+ return (serviceId, options) => validateAddOnsSelection2(
3447
+ serviceId,
3448
+ options,
3449
+ // @ts-ignore
3450
+ { httpClient }
3451
+ );
3452
+ }
3002
3453
  var onServiceCreated = EventDefinition(
3003
3454
  "wix.bookings.services.v2.service_created",
3004
3455
  true,
@@ -3169,6 +3620,12 @@ var disablePricingPlansForService4 = /* @__PURE__ */ createRESTModule(disablePri
3169
3620
  var setCustomSlug4 = /* @__PURE__ */ createRESTModule(setCustomSlug3);
3170
3621
  var validateSlug4 = /* @__PURE__ */ createRESTModule(validateSlug3);
3171
3622
  var cloneService4 = /* @__PURE__ */ createRESTModule(cloneService3);
3623
+ var createAddOnGroup4 = /* @__PURE__ */ createRESTModule(createAddOnGroup3);
3624
+ var deleteAddOnGroup4 = /* @__PURE__ */ createRESTModule(deleteAddOnGroup3);
3625
+ var updateAddOnGroup4 = /* @__PURE__ */ createRESTModule(updateAddOnGroup3);
3626
+ var listAddOnGroupsByServiceId4 = /* @__PURE__ */ createRESTModule(listAddOnGroupsByServiceId3);
3627
+ var setAddOnsForGroup4 = /* @__PURE__ */ createRESTModule(setAddOnsForGroup3);
3628
+ var validateAddOnsSelection4 = /* @__PURE__ */ createRESTModule(validateAddOnsSelection3);
3172
3629
  var onServiceCreated2 = createEventModule(onServiceCreated);
3173
3630
  var onServiceDeleted2 = createEventModule(onServiceDeleted);
3174
3631
  var onServiceUpdated2 = createEventModule(onServiceUpdated);
@@ -3206,11 +3663,14 @@ export {
3206
3663
  bulkUpdateServicesByFilter4 as bulkUpdateServicesByFilter,
3207
3664
  cloneService4 as cloneService,
3208
3665
  countServices4 as countServices,
3666
+ createAddOnGroup4 as createAddOnGroup,
3209
3667
  createService4 as createService,
3668
+ deleteAddOnGroup4 as deleteAddOnGroup,
3210
3669
  deleteService4 as deleteService,
3211
3670
  disablePricingPlansForService4 as disablePricingPlansForService,
3212
3671
  enablePricingPlansForService4 as enablePricingPlansForService,
3213
3672
  getService4 as getService,
3673
+ listAddOnGroupsByServiceId4 as listAddOnGroupsByServiceId,
3214
3674
  onServiceCreated2 as onServiceCreated,
3215
3675
  onServiceDeleted2 as onServiceDeleted,
3216
3676
  onServiceUpdated2 as onServiceUpdated,
@@ -3220,9 +3680,12 @@ export {
3220
3680
  queryPolicies4 as queryPolicies,
3221
3681
  queryServices4 as queryServices,
3222
3682
  searchServices4 as searchServices,
3683
+ setAddOnsForGroup4 as setAddOnsForGroup,
3223
3684
  setCustomSlug4 as setCustomSlug,
3224
3685
  setServiceLocations4 as setServiceLocations,
3686
+ updateAddOnGroup4 as updateAddOnGroup,
3225
3687
  updateService4 as updateService,
3688
+ validateAddOnsSelection4 as validateAddOnsSelection,
3226
3689
  validateSlug4 as validateSlug
3227
3690
  };
3228
3691
  //# sourceMappingURL=index.mjs.map