@wix/auto_sdk_bookings_services 1.0.163 → 1.0.165

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-CJowSSFh.d.ts → bookings-services-v2-service-services.universal-DiQuZWmG.d.ts} +315 -309
  2. package/build/cjs/index.d.ts +81 -81
  3. package/build/cjs/index.js +312 -312
  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 +275 -275
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +171 -171
  9. package/build/cjs/meta.js +203 -203
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/es/{bookings-services-v2-service-services.universal-CJowSSFh.d.mts → bookings-services-v2-service-services.universal-DiQuZWmG.d.mts} +315 -309
  12. package/build/es/index.d.mts +81 -81
  13. package/build/es/index.mjs +312 -312
  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 +275 -275
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +171 -171
  19. package/build/es/meta.mjs +203 -203
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/internal/cjs/{bookings-services-v2-service-services.universal-CJowSSFh.d.ts → bookings-services-v2-service-services.universal-DiQuZWmG.d.ts} +315 -309
  22. package/build/internal/cjs/index.d.ts +81 -81
  23. package/build/internal/cjs/index.js +312 -312
  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 +275 -275
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +171 -171
  29. package/build/internal/cjs/meta.js +203 -203
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/internal/es/{bookings-services-v2-service-services.universal-CJowSSFh.d.mts → bookings-services-v2-service-services.universal-DiQuZWmG.d.mts} +315 -309
  32. package/build/internal/es/index.d.mts +81 -81
  33. package/build/internal/es/index.mjs +312 -312
  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 +275 -275
  37. package/build/internal/es/index.typings.mjs.map +1 -1
  38. package/build/internal/es/meta.d.mts +171 -171
  39. package/build/internal/es/meta.mjs +203 -203
  40. package/build/internal/es/meta.mjs.map +1 -1
  41. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
- import { cs as CursorSearch, l as SearchServicesResponse } from './bookings-services-v2-service-services.universal-CJowSSFh.js';
2
- export { at as Action, bR as ActionEvent, ey as ActionWithLiterals, e5 as AddOn, e6 as AddOnAddOnInfoOneOf, bB as AddOnDetails, M as AddOnGroup, e7 as AddOnGroupDetail, aa as AddOnPaymentOptions, ef as AddOnPaymentOptionsWithLiterals, dN as Address, dO as AddressHint, aY as AddressLocation, cu as Aggregation, cK as AggregationData, cv as AggregationKindOneOf, d1 as AggregationResults, d2 as AggregationResultsResultOneOf, cR as AggregationResultsScalarResult, aq as AggregationType, ev as AggregationTypeWithLiterals, c1 as ApplicationError, bj as AvailabilityConstraints, e9 as BaseEventMetadata, dD as Behavior, dE as BehaviorBehaviorOneOf, dz as Benefit, dy as BenefitNotification, ay as BenefitType, eD as BenefitTypeWithLiterals, b3 as BookAfterStartPolicy, d7 as BookingForm, a$ as BookingPolicy, d5 as BookingPolicyWithServices, c2 as BulkActionMetadata, B as BulkCreateServicesOptions, b_ as BulkCreateServicesRequest, a as BulkCreateServicesResponse, i as BulkDeleteServicesByFilterOptions, ci as BulkDeleteServicesByFilterRequest, j as BulkDeleteServicesByFilterResponse, g as BulkDeleteServicesOptions, ch as BulkDeleteServicesRequest, h as BulkDeleteServicesResponse, b$ as BulkServiceResult, e as BulkUpdateServicesByFilterOptions, cd as BulkUpdateServicesByFilterRequest, f as BulkUpdateServicesByFilterResponse, c as BulkUpdateServicesOptions, cb as BulkUpdateServicesRequest, d as BulkUpdateServicesResponse, aZ as BusinessLocationOptions, dd as BusinessLocations, dQ as BusinessSchedule, b9 as CancellationFeePolicy, b4 as CancellationPolicy, ba as CancellationWindow, bb as CancellationWindowFeeOneOf, dL as Categories, dw as Category, dv as CategoryNotification, ax as CategoryNotificationEvent, eC as CategoryNotificationEventWithLiterals, dX as ChangeContext, dY as ChangeContextPayloadOneOf, av as CloneErrors, eA as CloneErrorsWithLiterals, du as CloneServiceRequest, L as CloneServiceResponse, aV as CommonAddress, aW as CommonAddressStreetOneOf, eJ as CommonSearchWithEntityContext, af as CompletionRequirement, ek as CompletionRequirementWithLiterals, aS as Conferencing, d9 as ConnectedService, dV as ConsentPolicy, q as CountServicesOptions, da as CountServicesRequest, r as CountServicesResponse, N as CreateAddOnGroupOptions, e0 as CreateAddOnGroupRequest, O as CreateAddOnGroupResponse, bV as CreateServiceRequest, bW as CreateServiceResponse, C as CreateServiceValidationErrors, aA as CrudType, eF as CrudTypeWithLiterals, cn as CursorPaging, cJ as CursorPagingMetadata, m as CursorQuery, d4 as CursorQueryPagingMethodOneOf, ct as CursorSearchPagingMethodOneOf, cq as Cursors, a_ as CustomLocationOptions, de as CustomLocations, bg as CustomOptions, aO as CustomPayment, df as CustomerLocations, cC as DateHistogramAggregation, cZ as DateHistogramResult, c$ as DateHistogramResults, aC as DayOfWeek, eH as DayOfWeekWithLiterals, bH as Delete, R as DeleteAddOnGroupApplicationErrors, P as DeleteAddOnGroupOptions, e1 as DeleteAddOnGroupRequest, e2 as DeleteAddOnGroupResponse, D as DeleteServiceOptions, ce as DeleteServiceRequest, cg as DeleteServiceResponse, F as DisablePricingPlansForServiceApplicationErrors, z as DisablePricingPlansForServiceOptions, dr as DisablePricingPlansForServiceRequest, A as DisablePricingPlansForServiceResponse, dB as Discount, dC as DiscountDiscountOneOf, bL as DomainEvent, bM as DomainEventBodyOneOf, bk as Duration, dx as Empty, y as EnablePricingPlansForServiceApplicationErrors, dp as EnablePricingPlansForServiceRequest, E as EnablePricingPlansForServiceResponse, bN as EntityCreatedEvent, bQ as EntityDeletedEvent, bP as EntityUpdatedEvent, dA as EntryPass, az as Event, ea as EventMetadata, eE as EventWithLiterals, bw as ExtendedFields, bZ as FieldViolation, aM as FixedPayment, aI as Form, d8 as FormDetails, aJ as FormSettings, dP as GeoCoordinates, c5 as GetServiceAvailabilityConstraintsRequest, c6 as GetServiceAvailabilityConstraintsResponse, c3 as GetServiceRequest, c4 as GetServiceResponse, cG as GroupByAggregation, cH as GroupByAggregationKindOneOf, c_ as GroupByValueResults, dG as HtmlSitePublished, bT as IdentificationData, bU as IdentificationDataIdOneOf, cx as IncludeMissingValuesOptions, bh as IntakeFormPolicy, ap as Interval, eu as IntervalWithLiterals, dq as InvalidPricingPlan, au as InvalidSlugError, ez as InvalidSlugErrorWithLiterals, c0 as ItemMetadata, by as Keyword, b1 as LimitEarlyBookingPolicy, b2 as LimitLateBookingPolicy, Y as ListAddOnGroupsByServiceIdOptions, e4 as ListAddOnGroupsByServiceIdRequest, Z as ListAddOnGroupsByServiceIdResponse, dM as Locale, aT as Location, aU as LocationOptionsOneOf, ab as LocationType, eg as LocationTypeWithLiterals, cc as MaskedService, aE as Media, aF as MediaItem, aG as MediaItemItemOneOf, bS as MessageEnvelope, am as MissingValues, er as MissingValuesWithLiterals, ar as Mode, ew as ModeWithLiterals, aN as Money, dn as MoveToNewLocationsOptions, dT as Multilingual, cF as NestedAggregation, cD as NestedAggregationItem, cE as NestedAggregationItemKindOneOf, cN as NestedAggregationResults, cO as NestedAggregationResultsResultOneOf, ao as NestedAggregationType, et as NestedAggregationTypeWithLiterals, cW as NestedResultValue, cX as NestedResultValueResultOneOf, d0 as NestedResults, cS as NestedValueAggregationResult, aR as OnlineBooking, dH as Page, cm as Paging, cp as PagingMetadataV2, cf as ParticipantNotification, b7 as ParticipantsPolicy, aK as Payment, aQ as PaymentOptions, aL as PaymentRateOneOf, bD as PhoneCall, aB as PlacementType, eG as PlacementTypeWithLiterals, b0 as PolicyDescription, dK as Properties, dZ as PropertiesChange, p as QueryBookingFormsApplicationErrors, n as QueryBookingFormsOptions, d6 as QueryBookingFormsRequest, o as QueryBookingFormsResponse, dh as QueryCategoriesFilter, u as QueryCategoriesOptions, dg as QueryCategoriesRequest, v as QueryCategoriesResponse, dc as QueryLocationsFilter, s as QueryLocationsOptions, db as QueryLocationsRequest, t as QueryLocationsResponse, d3 as QueryPoliciesRequest, Q as QueryPoliciesResponse, di as QueryServicesMultiLanguageRequest, dj as QueryServicesMultiLanguageResponse, a5 as QueryServicesOptions, cj as QueryServicesRequest, co as QueryServicesResponse, a4 as QueryV2, ck as QueryV2PagingMethodOneOf, cA as RangeAggregation, cM as RangeAggregationResult, cw as RangeBucket, cU as RangeResult, cQ as RangeResults, bf as RankingOptions, ac as RankingOrder, eh as RankingOrderWithLiterals, a9 as RateType, ee as RateTypeWithLiterals, bE as ReindexMessage, bF as ReindexMessageActionOneOf, dl as RemovedLocationSessionsAction, dm as RemovedLocationSessionsActionActionOptionsOneOf, as as RequestedFields, ex as RequestedFieldsWithLiterals, b5 as ReschedulePolicy, aD as ResolutionMethod, eI as ResolutionMethodWithLiterals, bp as ResourceGroup, bq as ResourceIds, bt as ResourceType, b8 as ResourcesPolicy, bO as RestoreInfo, cY as Results, bc as SaveCreditCardPolicy, cB as ScalarAggregation, cV as ScalarResult, an as ScalarType, es as ScalarTypeWithLiterals, bi as Schedule, bI as Schema, cI as SearchDetails, cr as SearchServicesRequest, bx as SeoSchema, S as Service, c7 as ServiceAvailabilityConstraints, a1 as ServiceCreatedEnvelope, a2 as ServiceDeletedEnvelope, br as ServiceResource, bs as ServiceResourceSelectionOneOf, ec as ServiceSearchSpec, a8 as ServiceType, ed as ServiceTypeWithLiterals, a3 as ServiceUpdatedEnvelope, a7 as ServicesQueryBuilder, eb as ServicesQueryResult, bK as ServicesUrlsChanged, a0 as SetAddOnsForGroupApplicationErrors, _ as SetAddOnsForGroupOptions, e8 as SetAddOnsForGroupRequest, $ as SetAddOnsForGroupResponse, I as SetCustomSlugApplicationErrors, bJ as SetCustomSlugEvent, G as SetCustomSlugOptions, ds as SetCustomSlugRequest, H as SetCustomSlugResponse, J as SetCustomSlugValidationErrors, w as SetServiceLocationsOptions, dk as SetServiceLocationsRequest, x as SetServiceLocationsResponse, bA as Settings, d$ as SiteCloned, d_ as SiteCreated, dJ as SitePropertiesEvent, dI as SitePropertiesNotification, bu as Slug, al as SortDirection, eq as SortDirectionWithLiterals, aj as SortOrder, eo as SortOrderWithLiterals, ak as SortType, ep as SortTypeWithLiterals, cl as Sorting, ad as SortingMethodType, ei as SortingMethodTypeWithLiterals, dS as SpecialHourPeriod, c8 as SplitInterval, bm as StaffMediaItem, bn as StaffMediaItemItemOneOf, bl as StaffMember, bo as StaffMemberDetails, bd as StaffSortingPolicy, be as StaffSortingPolicyOptionsOneOf, aw as Status, eB as StatusWithLiterals, aX as StreetAddress, dU as SupportedLanguage, bz as Tag, bC as TaxableAddress, ag as TaxableAddressType, el as TaxableAddressTypeWithLiterals, dR as TimePeriod, ae as Timing, ej as TimingWithLiterals, dW as Translation, bv as URLs, X as UpdateAddOnGroupApplicationErrors, T as UpdateAddOnGroupOptions, e3 as UpdateAddOnGroupRequest, W as UpdateAddOnGroupResponse, U as UpdateService, c9 as UpdateServiceRequest, ca as UpdateServiceResponse, b as UpdateServiceValidationErrors, bG as Upsert, dF as UserDomainInfoChangedEvent, aH as V2Category, ai as V2RequestedFields, en as V2RequestedFieldsWithLiterals, bX as ValidateServiceRequest, bY as ValidateServiceResponse, V as ValidateSlugOptions, dt as ValidateSlugRequest, K as ValidateSlugResponse, cy as ValueAggregation, cz as ValueAggregationOptionsOneOf, cL as ValueAggregationResult, cT as ValueResult, cP as ValueResults, aP as VariedPayment, b6 as WaitlistPolicy, ah as WebhookIdentityType, em as WebhookIdentityTypeWithLiterals, eO as bulkCreateServices, eU as bulkDeleteServices, eV as bulkDeleteServicesByFilter, eR as bulkUpdateServices, eS as bulkUpdateServicesByFilter, f5 as cloneService, eZ as countServices, f6 as createAddOnGroup, eN as createService, f7 as deleteAddOnGroup, eT as deleteService, f2 as disablePricingPlansForService, f1 as enablePricingPlansForService, eP as getService, f9 as listAddOnGroupsByServiceId, eK as onServiceCreated, eL as onServiceDeleted, eM as onServiceUpdated, eY as queryBookingForms, e$ as queryCategories, e_ as queryLocations, eX as queryPolicies, eW as queryServices, fa as setAddOnsForGroup, f3 as setCustomSlug, f0 as setServiceLocations, a6 as typedQueryServices, f8 as updateAddOnGroup, eQ as updateService, f4 as validateSlug } from './bookings-services-v2-service-services.universal-CJowSSFh.js';
1
+ import { cB as CursorSearch, w as SearchServicesResponse } from './bookings-services-v2-service-services.universal-DiQuZWmG.js';
2
+ export { at as Action, bR as ActionEvent, ey as ActionWithLiterals, b_ as AddOn, b$ as AddOnAddOnInfoOneOf, bB as AddOnDetails, A as AddOnGroup, c0 as AddOnGroupDetail, aa as AddOnPaymentOptions, ef as AddOnPaymentOptionsWithLiterals, dW as Address, dX as AddressHint, aY as AddressLocation, cD as Aggregation, cT as AggregationData, cE as AggregationKindOneOf, da as AggregationResults, db as AggregationResultsResultOneOf, c_ as AggregationResultsScalarResult, aq as AggregationType, ev as AggregationTypeWithLiterals, ca as ApplicationError, bj as AvailabilityConstraints, e9 as BaseEventMetadata, dM as Behavior, dN as BehaviorBehaviorOneOf, dI as Benefit, dH as BenefitNotification, ay as BenefitType, eD as BenefitTypeWithLiterals, b3 as BookAfterStartPolicy, dg as BookingForm, a$ as BookingPolicy, de as BookingPolicyWithServices, cb as BulkActionMetadata, B as BulkCreateServicesOptions, c7 as BulkCreateServicesRequest, j as BulkCreateServicesResponse, t as BulkDeleteServicesByFilterOptions, cr as BulkDeleteServicesByFilterRequest, u as BulkDeleteServicesByFilterResponse, r as BulkDeleteServicesOptions, cq as BulkDeleteServicesRequest, s as BulkDeleteServicesResponse, c8 as BulkServiceResult, o as BulkUpdateServicesByFilterOptions, cm as BulkUpdateServicesByFilterRequest, p as BulkUpdateServicesByFilterResponse, m as BulkUpdateServicesOptions, ck as BulkUpdateServicesRequest, n as BulkUpdateServicesResponse, aZ as BusinessLocationOptions, dm as BusinessLocations, dZ as BusinessSchedule, b9 as CancellationFeePolicy, b4 as CancellationPolicy, ba as CancellationWindow, bb as CancellationWindowFeeOneOf, dU as Categories, dF as Category, dE as CategoryNotification, ax as CategoryNotificationEvent, eC as CategoryNotificationEventWithLiterals, e4 as ChangeContext, e5 as ChangeContextPayloadOneOf, av as CloneErrors, eA as CloneErrorsWithLiterals, dD as CloneServiceRequest, a0 as CloneServiceResponse, aV as CommonAddress, aW as CommonAddressStreetOneOf, eJ as CommonSearchWithEntityContext, af as CompletionRequirement, ek as CompletionRequirementWithLiterals, aS as Conferencing, di as ConnectedService, e2 as ConsentPolicy, F as CountServicesOptions, dj as CountServicesRequest, G as CountServicesResponse, C as CreateAddOnGroupOptions, bV as CreateAddOnGroupRequest, a as CreateAddOnGroupResponse, c2 as CreateServiceRequest, c3 as CreateServiceResponse, i as CreateServiceValidationErrors, aA as CrudType, eF as CrudTypeWithLiterals, cw as CursorPaging, cS as CursorPagingMetadata, x as CursorQuery, dd as CursorQueryPagingMethodOneOf, cC as CursorSearchPagingMethodOneOf, cz as Cursors, a_ as CustomLocationOptions, dn as CustomLocations, bg as CustomOptions, aO as CustomPayment, dp as CustomerLocations, cL as DateHistogramAggregation, d6 as DateHistogramResult, d8 as DateHistogramResults, aC as DayOfWeek, eH as DayOfWeekWithLiterals, bH as Delete, b as DeleteAddOnGroupApplicationErrors, D as DeleteAddOnGroupOptions, bW as DeleteAddOnGroupRequest, bX as DeleteAddOnGroupResponse, q as DeleteServiceOptions, cn as DeleteServiceRequest, cp as DeleteServiceResponse, V as DisablePricingPlansForServiceApplicationErrors, R as DisablePricingPlansForServiceOptions, dA as DisablePricingPlansForServiceRequest, T as DisablePricingPlansForServiceResponse, dK as Discount, dL as DiscountDiscountOneOf, bL as DomainEvent, bM as DomainEventBodyOneOf, bk as Duration, dG as Empty, P as EnablePricingPlansForServiceApplicationErrors, dy as EnablePricingPlansForServiceRequest, O as EnablePricingPlansForServiceResponse, bN as EntityCreatedEvent, bQ as EntityDeletedEvent, bP as EntityUpdatedEvent, dJ as EntryPass, az as Event, ea as EventMetadata, eE as EventWithLiterals, bw as ExtendedFields, c6 as FieldViolation, aM as FixedPayment, aI as Form, dh as FormDetails, aJ as FormSettings, dY as GeoCoordinates, ce as GetServiceAvailabilityConstraintsRequest, cf as GetServiceAvailabilityConstraintsResponse, cc as GetServiceRequest, cd as GetServiceResponse, cP as GroupByAggregation, cQ as GroupByAggregationKindOneOf, d7 as GroupByValueResults, dP as HtmlSitePublished, bT as IdentificationData, bU as IdentificationDataIdOneOf, cG as IncludeMissingValuesOptions, bh as IntakeFormPolicy, ap as Interval, eu as IntervalWithLiterals, dz as InvalidPricingPlan, au as InvalidSlugError, ez as InvalidSlugErrorWithLiterals, c9 as ItemMetadata, by as Keyword, b1 as LimitEarlyBookingPolicy, b2 as LimitLateBookingPolicy, L as ListAddOnGroupsByServiceIdOptions, bZ as ListAddOnGroupsByServiceIdRequest, e as ListAddOnGroupsByServiceIdResponse, dV as Locale, aT as Location, aU as LocationOptionsOneOf, ab as LocationType, eg as LocationTypeWithLiterals, cl as MaskedService, aE as Media, aF as MediaItem, aG as MediaItemItemOneOf, bS as MessageEnvelope, am as MissingValues, er as MissingValuesWithLiterals, ar as Mode, ew as ModeWithLiterals, aN as Money, dx as MoveToNewLocationsOptions, e0 as Multilingual, cO as NestedAggregation, cM as NestedAggregationItem, cN as NestedAggregationItemKindOneOf, cW as NestedAggregationResults, cX as NestedAggregationResultsResultOneOf, ao as NestedAggregationType, et as NestedAggregationTypeWithLiterals, d3 as NestedResultValue, d4 as NestedResultValueResultOneOf, d9 as NestedResults, c$ as NestedValueAggregationResult, aR as OnlineBooking, dQ as Page, cv as Paging, cy as PagingMetadataV2, co as ParticipantNotification, b7 as ParticipantsPolicy, aK as Payment, aQ as PaymentOptions, aL as PaymentRateOneOf, bD as PhoneCall, aB as PlacementType, eG as PlacementTypeWithLiterals, b0 as PolicyDescription, dT as Properties, e6 as PropertiesChange, E as QueryBookingFormsApplicationErrors, y as QueryBookingFormsOptions, df as QueryBookingFormsRequest, z as QueryBookingFormsResponse, dr as QueryCategoriesFilter, J as QueryCategoriesOptions, dq as QueryCategoriesRequest, K as QueryCategoriesResponse, dl as QueryLocationsFilter, H as QueryLocationsOptions, dk as QueryLocationsRequest, I as QueryLocationsResponse, dc as QueryPoliciesRequest, Q as QueryPoliciesResponse, ds as QueryServicesMultiLanguageRequest, dt as QueryServicesMultiLanguageResponse, a5 as QueryServicesOptions, cs as QueryServicesRequest, cx as QueryServicesResponse, a4 as QueryV2, ct as QueryV2PagingMethodOneOf, cJ as RangeAggregation, cV as RangeAggregationResult, cF as RangeBucket, d1 as RangeResult, cZ as RangeResults, bf as RankingOptions, ac as RankingOrder, eh as RankingOrderWithLiterals, a9 as RateType, ee as RateTypeWithLiterals, bE as ReindexMessage, bF as ReindexMessageActionOneOf, dv as RemovedLocationSessionsAction, dw as RemovedLocationSessionsActionActionOptionsOneOf, as as RequestedFields, ex as RequestedFieldsWithLiterals, b5 as ReschedulePolicy, aD as ResolutionMethod, eI as ResolutionMethodWithLiterals, bp as ResourceGroup, bq as ResourceIds, bt as ResourceType, b8 as ResourcesPolicy, bO as RestoreInfo, d5 as Results, bc as SaveCreditCardPolicy, cK as ScalarAggregation, d2 as ScalarResult, an as ScalarType, es as ScalarTypeWithLiterals, bi as Schedule, bI as Schema, cR as SearchDetails, cA as SearchServicesRequest, bx as SeoSchema, h as Service, cg as ServiceAvailabilityConstraints, a1 as ServiceCreatedEnvelope, a2 as ServiceDeletedEnvelope, br as ServiceResource, bs as ServiceResourceSelectionOneOf, ec as ServiceSearchSpec, a8 as ServiceType, ed as ServiceTypeWithLiterals, a3 as ServiceUpdatedEnvelope, a7 as ServicesQueryBuilder, eb as ServicesQueryResult, bK as ServicesUrlsChanged, g as SetAddOnsForGroupApplicationErrors, S as SetAddOnsForGroupOptions, c1 as SetAddOnsForGroupRequest, f as SetAddOnsForGroupResponse, Y as SetCustomSlugApplicationErrors, bJ as SetCustomSlugEvent, W as SetCustomSlugOptions, dB as SetCustomSlugRequest, X as SetCustomSlugResponse, Z as SetCustomSlugValidationErrors, M as SetServiceLocationsOptions, du as SetServiceLocationsRequest, N as SetServiceLocationsResponse, bA as Settings, e8 as SiteCloned, e7 as SiteCreated, dS as SitePropertiesEvent, dR as SitePropertiesNotification, bu as Slug, al as SortDirection, eq as SortDirectionWithLiterals, aj as SortOrder, eo as SortOrderWithLiterals, ak as SortType, ep as SortTypeWithLiterals, cu as Sorting, ad as SortingMethodType, ei as SortingMethodTypeWithLiterals, d$ as SpecialHourPeriod, ch as SplitInterval, bm as StaffMediaItem, bn as StaffMediaItemItemOneOf, bl as StaffMember, bo as StaffMemberDetails, bd as StaffSortingPolicy, be as StaffSortingPolicyOptionsOneOf, aw as Status, eB as StatusWithLiterals, aX as StreetAddress, e1 as SupportedLanguage, bz as Tag, bC as TaxableAddress, ag as TaxableAddressType, el as TaxableAddressTypeWithLiterals, d_ as TimePeriod, ae as Timing, ej as TimingWithLiterals, e3 as Translation, bv as URLs, d as UpdateAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, bY as UpdateAddOnGroupRequest, c as UpdateAddOnGroupResponse, k as UpdateService, ci as UpdateServiceRequest, cj as UpdateServiceResponse, l as UpdateServiceValidationErrors, bG as Upsert, dO as UserDomainInfoChangedEvent, aH as V2Category, ai as V2RequestedFields, en as V2RequestedFieldsWithLiterals, c4 as ValidateServiceRequest, c5 as ValidateServiceResponse, _ as ValidateSlugOptions, dC as ValidateSlugRequest, $ as ValidateSlugResponse, cH as ValueAggregation, cI as ValueAggregationOptionsOneOf, cU as ValueAggregationResult, d0 as ValueResult, cY as ValueResults, aP as VariedPayment, b6 as WaitlistPolicy, ah as WebhookIdentityType, em as WebhookIdentityTypeWithLiterals, eT as bulkCreateServices, eZ as bulkDeleteServices, e_ as bulkDeleteServicesByFilter, eW as bulkUpdateServices, eX as bulkUpdateServicesByFilter, fa as cloneService, f2 as countServices, eN as createAddOnGroup, eS as createService, eO as deleteAddOnGroup, eY as deleteService, f7 as disablePricingPlansForService, f6 as enablePricingPlansForService, eU as getService, eQ as listAddOnGroupsByServiceId, eK as onServiceCreated, eL as onServiceDeleted, eM as onServiceUpdated, f1 as queryBookingForms, f4 as queryCategories, f3 as queryLocations, f0 as queryPolicies, e$ as queryServices, eR as setAddOnsForGroup, f8 as setCustomSlug, f5 as setServiceLocations, a6 as typedQueryServices, eP as updateAddOnGroup, eV as updateService, f9 as validateSlug } from './bookings-services-v2-service-services.universal-DiQuZWmG.js';
3
3
  import '@wix/sdk-types';
4
4
 
5
5
  /** @hidden */
@@ -97,7 +97,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
97
97
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
98
98
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
99
99
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
100
- function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
100
+ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
101
101
  const domainToMappings = {
102
102
  "*.dev.wix-code.com": [
103
103
  {
@@ -212,7 +212,7 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
212
212
  };
213
213
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
214
214
  }
215
- function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
215
+ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
216
216
  const domainToMappings = {
217
217
  "*.dev.wix-code.com": [
218
218
  {
@@ -328,6 +328,117 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
328
328
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
329
329
  }
330
330
  var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
331
+ function createAddOnGroup(payload) {
332
+ function __createAddOnGroup({ host }) {
333
+ const metadata = {
334
+ entityFqdn: "wix.bookings.services.v2.service",
335
+ method: "POST",
336
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
337
+ packageName: PACKAGE_NAME,
338
+ migrationOptions: {
339
+ optInTransformResponse: true
340
+ },
341
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
342
+ protoPath: "/v2/services/add-on-groups/create",
343
+ data: payload,
344
+ host
345
+ }),
346
+ data: payload
347
+ };
348
+ return metadata;
349
+ }
350
+ return __createAddOnGroup;
351
+ }
352
+ function deleteAddOnGroup(payload) {
353
+ function __deleteAddOnGroup({ host }) {
354
+ const metadata = {
355
+ entityFqdn: "wix.bookings.services.v2.service",
356
+ method: "POST",
357
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
358
+ packageName: PACKAGE_NAME,
359
+ migrationOptions: {
360
+ optInTransformResponse: true
361
+ },
362
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
363
+ protoPath: "/v2/services/add-on-groups/delete",
364
+ data: payload,
365
+ host
366
+ }),
367
+ data: payload
368
+ };
369
+ return metadata;
370
+ }
371
+ return __deleteAddOnGroup;
372
+ }
373
+ function updateAddOnGroup(payload) {
374
+ function __updateAddOnGroup({ host }) {
375
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
376
+ {
377
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
378
+ paths: [{ path: "mask" }]
379
+ }
380
+ ]);
381
+ const metadata = {
382
+ entityFqdn: "wix.bookings.services.v2.service",
383
+ method: "POST",
384
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
385
+ packageName: PACKAGE_NAME,
386
+ migrationOptions: {
387
+ optInTransformResponse: true
388
+ },
389
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
390
+ protoPath: "/v2/services/add-on-groups/update",
391
+ data: serializedData,
392
+ host
393
+ }),
394
+ data: serializedData
395
+ };
396
+ return metadata;
397
+ }
398
+ return __updateAddOnGroup;
399
+ }
400
+ function listAddOnGroupsByServiceId(payload) {
401
+ function __listAddOnGroupsByServiceId({ host }) {
402
+ const metadata = {
403
+ entityFqdn: "wix.bookings.services.v2.service",
404
+ method: "POST",
405
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
406
+ packageName: PACKAGE_NAME,
407
+ migrationOptions: {
408
+ optInTransformResponse: true
409
+ },
410
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
411
+ protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
412
+ data: payload,
413
+ host
414
+ }),
415
+ data: payload
416
+ };
417
+ return metadata;
418
+ }
419
+ return __listAddOnGroupsByServiceId;
420
+ }
421
+ function setAddOnsForGroup(payload) {
422
+ function __setAddOnsForGroup({ host }) {
423
+ const metadata = {
424
+ entityFqdn: "wix.bookings.services.v2.service",
425
+ method: "POST",
426
+ methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
427
+ packageName: PACKAGE_NAME,
428
+ migrationOptions: {
429
+ optInTransformResponse: true
430
+ },
431
+ url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
432
+ protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
433
+ data: payload,
434
+ host
435
+ }),
436
+ data: payload
437
+ };
438
+ return metadata;
439
+ }
440
+ return __setAddOnsForGroup;
441
+ }
331
442
  function createService(payload) {
332
443
  function __createService({ host }) {
333
444
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -1677,117 +1788,6 @@ function cloneService(payload) {
1677
1788
  }
1678
1789
  return __cloneService;
1679
1790
  }
1680
- function createAddOnGroup(payload) {
1681
- function __createAddOnGroup({ host }) {
1682
- const metadata = {
1683
- entityFqdn: "wix.bookings.services.v2.service",
1684
- method: "POST",
1685
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
1686
- packageName: PACKAGE_NAME,
1687
- migrationOptions: {
1688
- optInTransformResponse: true
1689
- },
1690
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1691
- protoPath: "/v2/services/add-on-groups/create",
1692
- data: payload,
1693
- host
1694
- }),
1695
- data: payload
1696
- };
1697
- return metadata;
1698
- }
1699
- return __createAddOnGroup;
1700
- }
1701
- function deleteAddOnGroup(payload) {
1702
- function __deleteAddOnGroup({ host }) {
1703
- const metadata = {
1704
- entityFqdn: "wix.bookings.services.v2.service",
1705
- method: "POST",
1706
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
1707
- packageName: PACKAGE_NAME,
1708
- migrationOptions: {
1709
- optInTransformResponse: true
1710
- },
1711
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1712
- protoPath: "/v2/services/add-on-groups/delete",
1713
- data: payload,
1714
- host
1715
- }),
1716
- data: payload
1717
- };
1718
- return metadata;
1719
- }
1720
- return __deleteAddOnGroup;
1721
- }
1722
- function updateAddOnGroup(payload) {
1723
- function __updateAddOnGroup({ host }) {
1724
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
1725
- {
1726
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
1727
- paths: [{ path: "mask" }]
1728
- }
1729
- ]);
1730
- const metadata = {
1731
- entityFqdn: "wix.bookings.services.v2.service",
1732
- method: "POST",
1733
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
1734
- packageName: PACKAGE_NAME,
1735
- migrationOptions: {
1736
- optInTransformResponse: true
1737
- },
1738
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1739
- protoPath: "/v2/services/add-on-groups/update",
1740
- data: serializedData,
1741
- host
1742
- }),
1743
- data: serializedData
1744
- };
1745
- return metadata;
1746
- }
1747
- return __updateAddOnGroup;
1748
- }
1749
- function listAddOnGroupsByServiceId(payload) {
1750
- function __listAddOnGroupsByServiceId({ host }) {
1751
- const metadata = {
1752
- entityFqdn: "wix.bookings.services.v2.service",
1753
- method: "POST",
1754
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
1755
- packageName: PACKAGE_NAME,
1756
- migrationOptions: {
1757
- optInTransformResponse: true
1758
- },
1759
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1760
- protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
1761
- data: payload,
1762
- host
1763
- }),
1764
- data: payload
1765
- };
1766
- return metadata;
1767
- }
1768
- return __listAddOnGroupsByServiceId;
1769
- }
1770
- function setAddOnsForGroup(payload) {
1771
- function __setAddOnsForGroup({ host }) {
1772
- const metadata = {
1773
- entityFqdn: "wix.bookings.services.v2.service",
1774
- method: "POST",
1775
- methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
1776
- packageName: PACKAGE_NAME,
1777
- migrationOptions: {
1778
- optInTransformResponse: true
1779
- },
1780
- url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
1781
- protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
1782
- data: payload,
1783
- host
1784
- }),
1785
- data: payload
1786
- };
1787
- return metadata;
1788
- }
1789
- return __setAddOnsForGroup;
1790
- }
1791
1791
 
1792
1792
  // src/bookings-services-v2-service-services.universal.ts
1793
1793
  var import_address = require("@wix/sdk-runtime/transformations/address");
@@ -2005,21 +2005,168 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
2005
2005
  ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
2006
2006
  return ResolutionMethod2;
2007
2007
  })(ResolutionMethod || {});
2008
- async function createService2(service) {
2009
- const { httpClient, sideEffects } = arguments[1];
2010
- const payload = (0, import_transform_paths2.transformPaths)(
2011
- (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ service }),
2012
- [
2013
- {
2014
- transformFn: import_image.transformSDKImageToRESTImage,
2015
- paths: [
2016
- { path: "service.media.items.image" },
2017
- { path: "service.media.mainMedia.image" },
2018
- { path: "service.media.coverMedia.image" },
2019
- { path: "service.staffMembers.mainMedia.image" },
2020
- { path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
2021
- ]
2022
- },
2008
+ async function createAddOnGroup2(addOnGroup, options) {
2009
+ const { httpClient, sideEffects } = arguments[2];
2010
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2011
+ addOnGroup,
2012
+ serviceId: options?.serviceId
2013
+ });
2014
+ const reqOpts = createAddOnGroup(payload);
2015
+ sideEffects?.onSiteCall?.();
2016
+ try {
2017
+ const result = await httpClient.request(reqOpts);
2018
+ sideEffects?.onSuccess?.(result);
2019
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2020
+ } catch (err) {
2021
+ const transformedError = (0, import_transform_error.transformError)(
2022
+ err,
2023
+ {
2024
+ spreadPathsToArguments: {},
2025
+ explicitPathsToArguments: {
2026
+ addOnGroup: "$[0]",
2027
+ serviceId: "$[1].serviceId"
2028
+ },
2029
+ singleArgumentUnchanged: false
2030
+ },
2031
+ ["addOnGroup", "options"]
2032
+ );
2033
+ sideEffects?.onError?.(err);
2034
+ throw transformedError;
2035
+ }
2036
+ }
2037
+ async function deleteAddOnGroup2(addOnGroupId, options) {
2038
+ const { httpClient, sideEffects } = arguments[2];
2039
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2040
+ addOnGroupId,
2041
+ serviceId: options?.serviceId
2042
+ });
2043
+ const reqOpts = deleteAddOnGroup(payload);
2044
+ sideEffects?.onSiteCall?.();
2045
+ try {
2046
+ const result = await httpClient.request(reqOpts);
2047
+ sideEffects?.onSuccess?.(result);
2048
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2049
+ } catch (err) {
2050
+ const transformedError = (0, import_transform_error.transformError)(
2051
+ err,
2052
+ {
2053
+ spreadPathsToArguments: {},
2054
+ explicitPathsToArguments: {
2055
+ addOnGroupId: "$[0]",
2056
+ serviceId: "$[1].serviceId"
2057
+ },
2058
+ singleArgumentUnchanged: false
2059
+ },
2060
+ ["addOnGroupId", "options"]
2061
+ );
2062
+ sideEffects?.onError?.(err);
2063
+ throw transformedError;
2064
+ }
2065
+ }
2066
+ async function updateAddOnGroup2(addOnGroup, options) {
2067
+ const { httpClient, sideEffects } = arguments[2];
2068
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2069
+ addOnGroup,
2070
+ serviceId: options?.serviceId
2071
+ });
2072
+ const reqOpts = updateAddOnGroup(payload);
2073
+ sideEffects?.onSiteCall?.();
2074
+ try {
2075
+ const result = await httpClient.request(reqOpts);
2076
+ sideEffects?.onSuccess?.(result);
2077
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2078
+ } catch (err) {
2079
+ const transformedError = (0, import_transform_error.transformError)(
2080
+ err,
2081
+ {
2082
+ spreadPathsToArguments: {},
2083
+ explicitPathsToArguments: {
2084
+ addOnGroup: "$[0]",
2085
+ serviceId: "$[1].serviceId"
2086
+ },
2087
+ singleArgumentUnchanged: false
2088
+ },
2089
+ ["addOnGroup", "options"]
2090
+ );
2091
+ sideEffects?.onError?.(err);
2092
+ throw transformedError;
2093
+ }
2094
+ }
2095
+ async function listAddOnGroupsByServiceId2(serviceId, options) {
2096
+ const { httpClient, sideEffects } = arguments[2];
2097
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2098
+ serviceId,
2099
+ groupIds: options?.groupIds
2100
+ });
2101
+ const reqOpts = listAddOnGroupsByServiceId(payload);
2102
+ sideEffects?.onSiteCall?.();
2103
+ try {
2104
+ const result = await httpClient.request(reqOpts);
2105
+ sideEffects?.onSuccess?.(result);
2106
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2107
+ } catch (err) {
2108
+ const transformedError = (0, import_transform_error.transformError)(
2109
+ err,
2110
+ {
2111
+ spreadPathsToArguments: {},
2112
+ explicitPathsToArguments: {
2113
+ serviceId: "$[0]",
2114
+ groupIds: "$[1].groupIds"
2115
+ },
2116
+ singleArgumentUnchanged: false
2117
+ },
2118
+ ["serviceId", "options"]
2119
+ );
2120
+ sideEffects?.onError?.(err);
2121
+ throw transformedError;
2122
+ }
2123
+ }
2124
+ async function setAddOnsForGroup2(serviceId, options) {
2125
+ const { httpClient, sideEffects } = arguments[2];
2126
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2127
+ serviceId,
2128
+ groupId: options?.groupId,
2129
+ addOnIds: options?.addOnIds
2130
+ });
2131
+ const reqOpts = setAddOnsForGroup(payload);
2132
+ sideEffects?.onSiteCall?.();
2133
+ try {
2134
+ const result = await httpClient.request(reqOpts);
2135
+ sideEffects?.onSuccess?.(result);
2136
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
2137
+ } catch (err) {
2138
+ const transformedError = (0, import_transform_error.transformError)(
2139
+ err,
2140
+ {
2141
+ spreadPathsToArguments: {},
2142
+ explicitPathsToArguments: {
2143
+ serviceId: "$[0]",
2144
+ groupId: "$[1].groupId",
2145
+ addOnIds: "$[1].addOnIds"
2146
+ },
2147
+ singleArgumentUnchanged: false
2148
+ },
2149
+ ["serviceId", "options"]
2150
+ );
2151
+ sideEffects?.onError?.(err);
2152
+ throw transformedError;
2153
+ }
2154
+ }
2155
+ async function createService2(service) {
2156
+ const { httpClient, sideEffects } = arguments[1];
2157
+ const payload = (0, import_transform_paths2.transformPaths)(
2158
+ (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ service }),
2159
+ [
2160
+ {
2161
+ transformFn: import_image.transformSDKImageToRESTImage,
2162
+ paths: [
2163
+ { path: "service.media.items.image" },
2164
+ { path: "service.media.mainMedia.image" },
2165
+ { path: "service.media.coverMedia.image" },
2166
+ { path: "service.staffMembers.mainMedia.image" },
2167
+ { path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
2168
+ ]
2169
+ },
2023
2170
  {
2024
2171
  transformFn: import_address.transformSDKAddressToRESTAddress,
2025
2172
  paths: [
@@ -3297,153 +3444,6 @@ async function cloneService2(sourceServiceId) {
3297
3444
  throw transformedError;
3298
3445
  }
3299
3446
  }
3300
- async function createAddOnGroup2(addOnGroup, options) {
3301
- const { httpClient, sideEffects } = arguments[2];
3302
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3303
- addOnGroup,
3304
- serviceId: options?.serviceId
3305
- });
3306
- const reqOpts = createAddOnGroup(payload);
3307
- sideEffects?.onSiteCall?.();
3308
- try {
3309
- const result = await httpClient.request(reqOpts);
3310
- sideEffects?.onSuccess?.(result);
3311
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
3312
- } catch (err) {
3313
- const transformedError = (0, import_transform_error.transformError)(
3314
- err,
3315
- {
3316
- spreadPathsToArguments: {},
3317
- explicitPathsToArguments: {
3318
- addOnGroup: "$[0]",
3319
- serviceId: "$[1].serviceId"
3320
- },
3321
- singleArgumentUnchanged: false
3322
- },
3323
- ["addOnGroup", "options"]
3324
- );
3325
- sideEffects?.onError?.(err);
3326
- throw transformedError;
3327
- }
3328
- }
3329
- async function deleteAddOnGroup2(addOnGroupId, options) {
3330
- const { httpClient, sideEffects } = arguments[2];
3331
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3332
- addOnGroupId,
3333
- serviceId: options?.serviceId
3334
- });
3335
- const reqOpts = deleteAddOnGroup(payload);
3336
- sideEffects?.onSiteCall?.();
3337
- try {
3338
- const result = await httpClient.request(reqOpts);
3339
- sideEffects?.onSuccess?.(result);
3340
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
3341
- } catch (err) {
3342
- const transformedError = (0, import_transform_error.transformError)(
3343
- err,
3344
- {
3345
- spreadPathsToArguments: {},
3346
- explicitPathsToArguments: {
3347
- addOnGroupId: "$[0]",
3348
- serviceId: "$[1].serviceId"
3349
- },
3350
- singleArgumentUnchanged: false
3351
- },
3352
- ["addOnGroupId", "options"]
3353
- );
3354
- sideEffects?.onError?.(err);
3355
- throw transformedError;
3356
- }
3357
- }
3358
- async function updateAddOnGroup2(addOnGroup, options) {
3359
- const { httpClient, sideEffects } = arguments[2];
3360
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3361
- addOnGroup,
3362
- serviceId: options?.serviceId
3363
- });
3364
- const reqOpts = updateAddOnGroup(payload);
3365
- sideEffects?.onSiteCall?.();
3366
- try {
3367
- const result = await httpClient.request(reqOpts);
3368
- sideEffects?.onSuccess?.(result);
3369
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
3370
- } catch (err) {
3371
- const transformedError = (0, import_transform_error.transformError)(
3372
- err,
3373
- {
3374
- spreadPathsToArguments: {},
3375
- explicitPathsToArguments: {
3376
- addOnGroup: "$[0]",
3377
- serviceId: "$[1].serviceId"
3378
- },
3379
- singleArgumentUnchanged: false
3380
- },
3381
- ["addOnGroup", "options"]
3382
- );
3383
- sideEffects?.onError?.(err);
3384
- throw transformedError;
3385
- }
3386
- }
3387
- async function listAddOnGroupsByServiceId2(serviceId, options) {
3388
- const { httpClient, sideEffects } = arguments[2];
3389
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3390
- serviceId,
3391
- groupIds: options?.groupIds
3392
- });
3393
- const reqOpts = listAddOnGroupsByServiceId(payload);
3394
- sideEffects?.onSiteCall?.();
3395
- try {
3396
- const result = await httpClient.request(reqOpts);
3397
- sideEffects?.onSuccess?.(result);
3398
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
3399
- } catch (err) {
3400
- const transformedError = (0, import_transform_error.transformError)(
3401
- err,
3402
- {
3403
- spreadPathsToArguments: {},
3404
- explicitPathsToArguments: {
3405
- serviceId: "$[0]",
3406
- groupIds: "$[1].groupIds"
3407
- },
3408
- singleArgumentUnchanged: false
3409
- },
3410
- ["serviceId", "options"]
3411
- );
3412
- sideEffects?.onError?.(err);
3413
- throw transformedError;
3414
- }
3415
- }
3416
- async function setAddOnsForGroup2(serviceId, options) {
3417
- const { httpClient, sideEffects } = arguments[2];
3418
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
3419
- serviceId,
3420
- groupId: options?.groupId,
3421
- addOnIds: options?.addOnIds
3422
- });
3423
- const reqOpts = setAddOnsForGroup(payload);
3424
- sideEffects?.onSiteCall?.();
3425
- try {
3426
- const result = await httpClient.request(reqOpts);
3427
- sideEffects?.onSuccess?.(result);
3428
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
3429
- } catch (err) {
3430
- const transformedError = (0, import_transform_error.transformError)(
3431
- err,
3432
- {
3433
- spreadPathsToArguments: {},
3434
- explicitPathsToArguments: {
3435
- serviceId: "$[0]",
3436
- groupId: "$[1].groupId",
3437
- addOnIds: "$[1].addOnIds"
3438
- },
3439
- singleArgumentUnchanged: false
3440
- },
3441
- ["serviceId", "options"]
3442
- );
3443
- sideEffects?.onError?.(err);
3444
- throw transformedError;
3445
- }
3446
- }
3447
3447
  // Annotate the CommonJS export names for ESM import in node:
3448
3448
  0 && (module.exports = {
3449
3449
  Action,