@wix/auto_sdk_bookings_services 1.0.225 → 1.0.226

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 (37) hide show
  1. package/build/cjs/{bookings-services-v2-service-services.universal-BA1jcBlH.d.ts → bookings-services-v2-service-services.universal-BAiX5P6U.d.ts} +10 -1
  2. package/build/cjs/index.d.ts +12 -3
  3. package/build/cjs/index.js +4 -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 +4 -0
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +1 -1
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/{bookings-services-v2-service-services.universal-BA1jcBlH.d.mts → bookings-services-v2-service-services.universal-BAiX5P6U.d.mts} +10 -1
  11. package/build/es/index.d.mts +12 -3
  12. package/build/es/index.mjs +4 -0
  13. package/build/es/index.mjs.map +1 -1
  14. package/build/es/index.typings.d.mts +2 -2
  15. package/build/es/index.typings.mjs +4 -0
  16. package/build/es/index.typings.mjs.map +1 -1
  17. package/build/es/meta.d.mts +1 -1
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/{bookings-services-v2-service-services.universal-DN9LGo8A.d.ts → bookings-services-v2-service-services.universal-BNKEB-jA.d.ts} +36 -3
  20. package/build/internal/cjs/index.d.ts +12 -3
  21. package/build/internal/cjs/index.js +4 -0
  22. package/build/internal/cjs/index.js.map +1 -1
  23. package/build/internal/cjs/index.typings.d.ts +2 -2
  24. package/build/internal/cjs/index.typings.js +4 -0
  25. package/build/internal/cjs/index.typings.js.map +1 -1
  26. package/build/internal/cjs/meta.d.ts +1 -1
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/{bookings-services-v2-service-services.universal-DN9LGo8A.d.mts → bookings-services-v2-service-services.universal-BNKEB-jA.d.mts} +36 -3
  29. package/build/internal/es/index.d.mts +12 -3
  30. package/build/internal/es/index.mjs +4 -0
  31. package/build/internal/es/index.mjs.map +1 -1
  32. package/build/internal/es/index.typings.d.mts +2 -2
  33. package/build/internal/es/index.typings.mjs +4 -0
  34. package/build/internal/es/index.typings.mjs.map +1 -1
  35. package/build/internal/es/meta.d.mts +1 -1
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -5004,7 +5004,9 @@ declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope) => vo
5004
5004
  * - `CUSTOM`: Set `payment.custom.description`.
5005
5005
  * - `NO_FEE`: No additional rate details required.
5006
5006
  *
5007
- * Configure `payment.options` to control how customers can pay:
5007
+ * Configure `payment.options` to control how customers can pay.
5008
+ * At least one of `inPerson` or `online` must be `true`, even for services with `rateType` of `NO_FEE`.
5009
+ *
5008
5010
  * - `online`: Customers can pay online. Requires `rateType` of `FIXED` or `VARIED`.
5009
5011
  * - `inPerson`: Customers can pay in person.
5010
5012
  * - `deposit`: A deposit is required to book. Requires `rateType` of `FIXED` or `VARIED` and a `deposit` amount in the rate details.
@@ -5036,6 +5038,13 @@ declare function onServiceUpdated(handler: (event: ServiceUpdatedEnvelope) => vo
5036
5038
  * - It is mandatory to specify `schedule.availabilityConstraints.sessionDurations`,
5037
5039
  * even though these values are ignored.
5038
5040
  *
5041
+ * ### Staff members
5042
+ *
5043
+ * For appointment-based services, at least one entry in `staffMemberIds` is required.
5044
+ * Set it to the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) IDs of the staff members who can provide the service.
5045
+ * Note that despite the field name, `staffMemberIds` contains resource IDs from `staffMember.resourceId`,
5046
+ * not staff member IDs. Query staff members with the `RESOURCE_DETAILS` field set to retrieve `resourceId`.
5047
+ *
5039
5048
  * ### Buffer time
5040
5049
  *
5041
5050
  * For appointment-based services, you can set `schedule.availabilityConstraints.timeBetweenSessions` to add buffer time between booked sessions.
@@ -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 ServiceSearch, l as SearchServicesResponse, m as CursorQuery, Q as QueryPoliciesResponse, n as QueryBookingFormsOptions, o as QueryBookingFormsResponse, p as QueryBookingFormsApplicationErrors, q as CountServicesOptions, r as CountServicesResponse, s as QueryLocationsOptions, t as QueryLocationsResponse, u as QueryCategoriesOptions, v as QueryCategoriesResponse, w as SetServiceLocationsOptions, x as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, y as EnablePricingPlansForServiceApplicationErrors, z as DisablePricingPlansForServiceOptions, A as DisablePricingPlansForServiceResponse, F as DisablePricingPlansForServiceApplicationErrors, G as SetCustomSlugOptions, H as SetCustomSlugResponse, I as SetCustomSlugApplicationErrors, J as SetCustomSlugValidationErrors, V as ValidateSlugOptions, K as ValidateSlugResponse, L as CloneServiceResponse, M as AddOnGroup, N as CreateAddOnGroupOptions, O as CreateAddOnGroupResponse, P as DeleteAddOnGroupOptions, R as DeleteAddOnGroupApplicationErrors, T as UpdateAddOnGroupOptions, W as UpdateAddOnGroupResponse, X as UpdateAddOnGroupApplicationErrors, Y as ListAddOnGroupsByServiceIdOptions, Z as ListAddOnGroupsByServiceIdResponse, _ as SetAddOnsForGroupOptions, $ as SetAddOnsForGroupResponse, a0 as SetAddOnsForGroupApplicationErrors, a1 as ServiceCreatedEnvelope, a2 as ServiceDeletedEnvelope, a3 as ServiceUpdatedEnvelope, a4 as ServiceQuery, a5 as QueryServicesOptions, a6 as typedQueryServices, a7 as ServicesQueryBuilder } from './bookings-services-v2-service-services.universal-BA1jcBlH.js';
3
- export { cE as AccountInfo, e$ as AccountInfoMetadata, aH as Action, cA as ActionEvent, fD as ActionWithLiterals, at as Actor, fp as ActorWithLiterals, eV as AddOn, eW as AddOnAddOnInfoOneOf, bW as AddOnDetails, eX as AddOnGroupDetail, ac as AddOnPaymentOptions, f8 as AddOnPaymentOptionsWithLiterals, cc as Address, eC as AddressHint, cf as AddressLocation, cd as AddressStreetOneOf, df as Aggregation, dw as AggregationData, dg as AggregationKindOneOf, dR as AggregationResults, dS as AggregationResultsResultOneOf, dQ as AggregationResultsScalarDateResult, dD as AggregationResultsScalarResult, aE as AggregationType, fA as AggregationTypeWithLiterals, cN as ApplicationError, bA as AvailabilityConstraints, eZ as BaseEventMetadata, er as Behavior, es as BehaviorBehaviorOneOf, en as Benefit, em as BenefitNotification, aM as BenefitType, fI as BenefitTypeWithLiterals, bk as BookAfterStartPolicy, ct as BookedAddOn, c3 as BookedEntity, c4 as BookedEntityItemOneOf, c6 as BookedResource, ca as BookedSchedule, c5 as BookedSlot, c1 as Booking, dX as BookingForm, c2 as BookingParticipantsInfoOneOf, bg as BookingPolicy, dV as BookingPolicyWithServices, ci as BookingSource, ap as BookingStatus, fl as BookingStatusWithLiterals, cO as BulkActionMetadata, cK as BulkCreateServicesRequest, d2 as BulkDeleteServicesByFilterRequest, d1 as BulkDeleteServicesRequest, cL as BulkServiceResult, cZ as BulkUpdateServicesByFilterRequest, cX as BulkUpdateServicesRequest, be as BusinessLocationOptions, e1 as BusinessLocations, eE as BusinessSchedule, bq as CancellationFeePolicy, bl as CancellationPolicy, br as CancellationWindow, bs as CancellationWindowFeeOneOf, ez as Categories, ek as Category, ej as CategoryNotification, aL as CategoryNotificationEvent, fH as CategoryNotificationEventWithLiterals, eL as ChangeContext, eM as ChangeContextPayloadOneOf, aJ as CloneErrors, fF as CloneErrorsWithLiterals, ei as CloneServiceRequest, ba as CommonAddress, bd as CommonAddressLocation, bb as CommonAddressStreetOneOf, ck as CommonIdentificationData, cl as CommonIdentificationDataIdOneOf, fO as CommonQueryWithEntityContext, fP as CommonSearchWithEntityContext, bc as CommonStreetAddress, ah as CompletionRequirement, fd as CompletionRequirementWithLiterals, b7 as Conferencing, dZ as ConnectedService, eJ as ConsentPolicy, cb as ContactDetails, d_ as CountServicesRequest, eQ as CreateAddOnGroupRequest, cF as CreateServiceRequest, cG as CreateServiceResponse, aO as CrudType, fK as CrudTypeWithLiterals, d8 as CursorPaging, dv as CursorPagingMetadata, dU as CursorQueryPagingMethodOneOf, dd as CursorSearch, de as CursorSearchPagingMethodOneOf, db as Cursors, ch as CustomFormField, bf as CustomLocationOptions, e2 as CustomLocations, bx as CustomOptions, b0 as CustomPayment, e3 as CustomerLocations, bF as DailyConfig, dn as DateHistogramAggregation, dM as DateHistogramResult, dO as DateHistogramResults, aQ as DayOfWeek, fM as DayOfWeekWithLiterals, eR as DeleteAddOnGroupRequest, eS as DeleteAddOnGroupResponse, c_ as DeleteServiceRequest, d0 as DeleteServiceResponse, ef as DisablePricingPlansForServiceRequest, ep as Discount, eq as DiscountDiscountOneOf, b5 as DiscountInfo, cu as DomainEvent, cv as DomainEventBodyOneOf, b$ as DummyRequest, c0 as DummyResponse, cr as Duration, bC as DurationRange, bD as DurationRangeConfigOneOf, el as Empty, ec as EnablePricingPlansForServiceRequest, cw as EntityCreatedEvent, cz as EntityDeletedEvent, cy as EntityUpdatedEvent, eo as EntryPass, aN as Event, e_ as EventMetadata, fJ as EventWithLiterals, bR as ExtendedFields, cJ as FieldViolation, ab as FirstChargeDateType, f7 as FirstChargeDateTypeWithLiterals, a_ as FixedPayment, cm as FlowControlSettings, aW as Form, dY as FormDetails, aX as FormSettings, aa as FrequencyType, f6 as FrequencyTypeWithLiterals, b3 as FullUpfrontPayment, eD as GeoCoordinates, cR as GetServiceAvailabilityConstraintsRequest, cS as GetServiceAvailabilityConstraintsResponse, cP as GetServiceRequest, cQ as GetServiceResponse, ds as GroupByAggregation, dt as GroupByAggregationKindOneOf, dN as GroupByValueResults, bE as HourlyConfig, eu as HtmlSitePublished, cC as IdentificationData, cD as IdentificationDataIdOneOf, au as IdentityType, fq as IdentityTypeWithLiterals, di as IncludeMissingValuesOptions, by as IntakeFormPolicy, aD as Interval, fz as IntervalWithLiterals, ee as InvalidPricingPlan, aI as InvalidSlugError, fE as InvalidSlugErrorWithLiterals, cM as ItemMetadata, bT as Keyword, bi as LimitEarlyBookingPolicy, bj as LimitLateBookingPolicy, eU as ListAddOnGroupsByServiceIdRequest, eA as Locale, c7 as Location, am as LocationType, ad as LocationTypeEnumLocationType, f9 as LocationTypeEnumLocationTypeWithLiterals, fi as LocationTypeWithLiterals, cY as MaskedService, aS as Media, aT as MediaItem, aU as MediaItemItemOneOf, cB as MessageEnvelope, aA as MissingValues, fw as MissingValuesWithLiterals, aF as Mode, fB as ModeWithLiterals, a$ as Money, eb as MoveToNewLocationsOptions, cs as MultiServiceBookingInfo, ak as MultiServiceBookingType, fg as MultiServiceBookingTypeWithLiterals, eH as Multilingual, dr as NestedAggregation, dp as NestedAggregationItem, dq as NestedAggregationItemKindOneOf, dz as NestedAggregationResults, dA as NestedAggregationResultsResultOneOf, aC as NestedAggregationType, fy as NestedAggregationTypeWithLiterals, dJ as NestedResultValue, dK as NestedResultValueResultOneOf, dP as NestedResults, dE as NestedValueAggregationResult, b6 as OnlineBooking, ev as Page, d7 as Paging, da as PagingMetadataV2, cn as ParticipantChoices, cj as ParticipantNotification, bo as ParticipantsPolicy, aY as Payment, b4 as PaymentOptions, aZ as PaymentRateOneOf, aq as PaymentStatus, fm as PaymentStatusWithLiterals, c8 as PhoneCall, aP as PlacementType, fL as PlacementTypeWithLiterals, as as Platform, fo as PlatformWithLiterals, bh as PolicyDescription, ed as PricingPlanSelection, ey as Properties, eN as PropertiesChange, dW as QueryBookingFormsRequest, e5 as QueryCategoriesFilter, e4 as QueryCategoriesRequest, e0 as QueryLocationsFilter, d$ as QueryLocationsRequest, dT as QueryPoliciesRequest, e6 as QueryServicesMultiLanguageRequest, e7 as QueryServicesMultiLanguageResponse, d3 as QueryServicesRequest, d9 as QueryServicesResponse, d4 as QueryV2, d5 as QueryV2PagingMethodOneOf, dl as RangeAggregation, dy as RangeAggregationResult, dh as RangeBucket, dG as RangeResult, dC as RangeResults, bw as RankingOptions, ae as RankingOrder, fa as RankingOrderWithLiterals, a9 as RateType, f5 as RateTypeWithLiterals, e9 as RemovedLocationSessionsAction, ea as RemovedLocationSessionsActionActionOptionsOneOf, aG as RequestedFields, fC as RequestedFieldsWithLiterals, bm as ReschedulePolicy, aR as ResolutionMethod, fN as ResolutionMethodWithLiterals, bK as ResourceGroup, bL as ResourceIds, c9 as ResourceSelection, al as ResourceTransparency, fh as ResourceTransparencyWithLiterals, bO as ResourceType, bp as ResourcesPolicy, cx as RestoreInfo, dL as Results, bt as SaveCreditCardPolicy, dm as ScalarAggregation, dI as ScalarDateResult, dH as ScalarResult, aB as ScalarType, fx as ScalarTypeWithLiterals, bz as Schedule, du as SearchDetails, dc as SearchServicesRequest, ar as SelectedPaymentOption, fn as SelectedPaymentOptionWithLiterals, an as SelectionMethod, fj as SelectionMethodWithLiterals, bS as SeoSchema, cT as ServiceAvailabilityConstraints, cp as ServiceChoice, cq as ServiceChoiceChoiceOneOf, co as ServiceChoices, f1 as ServiceQuerySpec, bM as ServiceResource, bN as ServiceResourceSelectionOneOf, f2 as ServiceSearchSpec, a8 as ServiceType, f4 as ServiceTypeWithLiterals, f0 as ServicesQueryResult, b_ as ServicesUrlsChanged, eY as SetAddOnsForGroupRequest, bZ as SetCustomSlugEvent, eg as SetCustomSlugRequest, e8 as SetServiceLocationsRequest, bV as Settings, eP as SiteCloned, eO as SiteCreated, ex as SitePropertiesEvent, ew as SitePropertiesNotification, bP as Slug, az as SortDirection, fv as SortDirectionWithLiterals, ax as SortOrder, ft as SortOrderWithLiterals, ay as SortType, fu as SortTypeWithLiterals, d6 as Sorting, af as SortingMethodType, fb as SortingMethodTypeWithLiterals, eG as SpecialHourPeriod, cU as SplitInterval, bH as StaffMediaItem, bI as StaffMediaItemItemOneOf, bG as StaffMember, bJ as StaffMemberDetails, bu as StaffSortingPolicy, bv as StaffSortingPolicyOptionsOneOf, aK as Status, fG as StatusWithLiterals, ce as StreetAddress, cg as Subdivision, b2 as SubscriptionPayment, eI as SupportedLanguage, bU as Tag, bX as TaxableAddress, aj as TaxableAddressType, ff as TaxableAddressTypeWithLiterals, eF as TimePeriod, ag as Timing, fc as TimingWithLiterals, eK as Translation, bQ as URLs, ai as UnitType, fe as UnitTypeWithLiterals, eT as UpdateAddOnGroupRequest, cV as UpdateServiceRequest, cW as UpdateServiceResponse, et as UserDomainInfoChangedEvent, aV as V2Category, bB as V2Duration, b8 as V2Location, b9 as V2LocationOptionsOneOf, c$ as V2ParticipantNotification, bY as V2PhoneCall, aw as V2RequestedFields, fs as V2RequestedFieldsWithLiterals, eB as V4Address, cH as ValidateServiceRequest, cI as ValidateServiceResponse, eh as ValidateSlugRequest, dj as ValueAggregation, dk as ValueAggregationOptionsOneOf, dx as ValueAggregationResult, dF as ValueResult, dB as ValueResults, ao as ValueType, fk as ValueTypeWithLiterals, b1 as VariedPayment, bn as WaitlistPolicy, av as WebhookIdentityType, fr as WebhookIdentityTypeWithLiterals, f3 as utils } from './bookings-services-v2-service-services.universal-BA1jcBlH.js';
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 ServiceSearch, l as SearchServicesResponse, m as CursorQuery, Q as QueryPoliciesResponse, n as QueryBookingFormsOptions, o as QueryBookingFormsResponse, p as QueryBookingFormsApplicationErrors, q as CountServicesOptions, r as CountServicesResponse, s as QueryLocationsOptions, t as QueryLocationsResponse, u as QueryCategoriesOptions, v as QueryCategoriesResponse, w as SetServiceLocationsOptions, x as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, y as EnablePricingPlansForServiceApplicationErrors, z as DisablePricingPlansForServiceOptions, A as DisablePricingPlansForServiceResponse, F as DisablePricingPlansForServiceApplicationErrors, G as SetCustomSlugOptions, H as SetCustomSlugResponse, I as SetCustomSlugApplicationErrors, J as SetCustomSlugValidationErrors, V as ValidateSlugOptions, K as ValidateSlugResponse, L as CloneServiceResponse, M as AddOnGroup, N as CreateAddOnGroupOptions, O as CreateAddOnGroupResponse, P as DeleteAddOnGroupOptions, R as DeleteAddOnGroupApplicationErrors, T as UpdateAddOnGroupOptions, W as UpdateAddOnGroupResponse, X as UpdateAddOnGroupApplicationErrors, Y as ListAddOnGroupsByServiceIdOptions, Z as ListAddOnGroupsByServiceIdResponse, _ as SetAddOnsForGroupOptions, $ as SetAddOnsForGroupResponse, a0 as SetAddOnsForGroupApplicationErrors, a1 as ServiceCreatedEnvelope, a2 as ServiceDeletedEnvelope, a3 as ServiceUpdatedEnvelope, a4 as ServiceQuery, a5 as QueryServicesOptions, a6 as typedQueryServices, a7 as ServicesQueryBuilder } from './bookings-services-v2-service-services.universal-BAiX5P6U.js';
3
+ export { cE as AccountInfo, e$ as AccountInfoMetadata, aH as Action, cA as ActionEvent, fD as ActionWithLiterals, at as Actor, fp as ActorWithLiterals, eV as AddOn, eW as AddOnAddOnInfoOneOf, bW as AddOnDetails, eX as AddOnGroupDetail, ac as AddOnPaymentOptions, f8 as AddOnPaymentOptionsWithLiterals, cc as Address, eC as AddressHint, cf as AddressLocation, cd as AddressStreetOneOf, df as Aggregation, dw as AggregationData, dg as AggregationKindOneOf, dR as AggregationResults, dS as AggregationResultsResultOneOf, dQ as AggregationResultsScalarDateResult, dD as AggregationResultsScalarResult, aE as AggregationType, fA as AggregationTypeWithLiterals, cN as ApplicationError, bA as AvailabilityConstraints, eZ as BaseEventMetadata, er as Behavior, es as BehaviorBehaviorOneOf, en as Benefit, em as BenefitNotification, aM as BenefitType, fI as BenefitTypeWithLiterals, bk as BookAfterStartPolicy, ct as BookedAddOn, c3 as BookedEntity, c4 as BookedEntityItemOneOf, c6 as BookedResource, ca as BookedSchedule, c5 as BookedSlot, c1 as Booking, dX as BookingForm, c2 as BookingParticipantsInfoOneOf, bg as BookingPolicy, dV as BookingPolicyWithServices, ci as BookingSource, ap as BookingStatus, fl as BookingStatusWithLiterals, cO as BulkActionMetadata, cK as BulkCreateServicesRequest, d2 as BulkDeleteServicesByFilterRequest, d1 as BulkDeleteServicesRequest, cL as BulkServiceResult, cZ as BulkUpdateServicesByFilterRequest, cX as BulkUpdateServicesRequest, be as BusinessLocationOptions, e1 as BusinessLocations, eE as BusinessSchedule, bq as CancellationFeePolicy, bl as CancellationPolicy, br as CancellationWindow, bs as CancellationWindowFeeOneOf, ez as Categories, ek as Category, ej as CategoryNotification, aL as CategoryNotificationEvent, fH as CategoryNotificationEventWithLiterals, eL as ChangeContext, eM as ChangeContextPayloadOneOf, aJ as CloneErrors, fF as CloneErrorsWithLiterals, ei as CloneServiceRequest, ba as CommonAddress, bd as CommonAddressLocation, bb as CommonAddressStreetOneOf, ck as CommonIdentificationData, cl as CommonIdentificationDataIdOneOf, fO as CommonQueryWithEntityContext, fP as CommonSearchWithEntityContext, bc as CommonStreetAddress, ah as CompletionRequirement, fd as CompletionRequirementWithLiterals, b7 as Conferencing, dZ as ConnectedService, eJ as ConsentPolicy, cb as ContactDetails, d_ as CountServicesRequest, eQ as CreateAddOnGroupRequest, cF as CreateServiceRequest, cG as CreateServiceResponse, aO as CrudType, fK as CrudTypeWithLiterals, d8 as CursorPaging, dv as CursorPagingMetadata, dU as CursorQueryPagingMethodOneOf, dd as CursorSearch, de as CursorSearchPagingMethodOneOf, db as Cursors, ch as CustomFormField, bf as CustomLocationOptions, e2 as CustomLocations, bx as CustomOptions, b0 as CustomPayment, e3 as CustomerLocations, bF as DailyConfig, dn as DateHistogramAggregation, dM as DateHistogramResult, dO as DateHistogramResults, aQ as DayOfWeek, fM as DayOfWeekWithLiterals, eR as DeleteAddOnGroupRequest, eS as DeleteAddOnGroupResponse, c_ as DeleteServiceRequest, d0 as DeleteServiceResponse, ef as DisablePricingPlansForServiceRequest, ep as Discount, eq as DiscountDiscountOneOf, b5 as DiscountInfo, cu as DomainEvent, cv as DomainEventBodyOneOf, b$ as DummyRequest, c0 as DummyResponse, cr as Duration, bC as DurationRange, bD as DurationRangeConfigOneOf, el as Empty, ec as EnablePricingPlansForServiceRequest, cw as EntityCreatedEvent, cz as EntityDeletedEvent, cy as EntityUpdatedEvent, eo as EntryPass, aN as Event, e_ as EventMetadata, fJ as EventWithLiterals, bR as ExtendedFields, cJ as FieldViolation, ab as FirstChargeDateType, f7 as FirstChargeDateTypeWithLiterals, a_ as FixedPayment, cm as FlowControlSettings, aW as Form, dY as FormDetails, aX as FormSettings, aa as FrequencyType, f6 as FrequencyTypeWithLiterals, b3 as FullUpfrontPayment, eD as GeoCoordinates, cR as GetServiceAvailabilityConstraintsRequest, cS as GetServiceAvailabilityConstraintsResponse, cP as GetServiceRequest, cQ as GetServiceResponse, ds as GroupByAggregation, dt as GroupByAggregationKindOneOf, dN as GroupByValueResults, bE as HourlyConfig, eu as HtmlSitePublished, cC as IdentificationData, cD as IdentificationDataIdOneOf, au as IdentityType, fq as IdentityTypeWithLiterals, di as IncludeMissingValuesOptions, by as IntakeFormPolicy, aD as Interval, fz as IntervalWithLiterals, ee as InvalidPricingPlan, aI as InvalidSlugError, fE as InvalidSlugErrorWithLiterals, cM as ItemMetadata, bT as Keyword, bi as LimitEarlyBookingPolicy, bj as LimitLateBookingPolicy, eU as ListAddOnGroupsByServiceIdRequest, eA as Locale, c7 as Location, am as LocationType, ad as LocationTypeEnumLocationType, f9 as LocationTypeEnumLocationTypeWithLiterals, fi as LocationTypeWithLiterals, cY as MaskedService, aS as Media, aT as MediaItem, aU as MediaItemItemOneOf, cB as MessageEnvelope, aA as MissingValues, fw as MissingValuesWithLiterals, aF as Mode, fB as ModeWithLiterals, a$ as Money, eb as MoveToNewLocationsOptions, cs as MultiServiceBookingInfo, ak as MultiServiceBookingType, fg as MultiServiceBookingTypeWithLiterals, eH as Multilingual, dr as NestedAggregation, dp as NestedAggregationItem, dq as NestedAggregationItemKindOneOf, dz as NestedAggregationResults, dA as NestedAggregationResultsResultOneOf, aC as NestedAggregationType, fy as NestedAggregationTypeWithLiterals, dJ as NestedResultValue, dK as NestedResultValueResultOneOf, dP as NestedResults, dE as NestedValueAggregationResult, b6 as OnlineBooking, ev as Page, d7 as Paging, da as PagingMetadataV2, cn as ParticipantChoices, cj as ParticipantNotification, bo as ParticipantsPolicy, aY as Payment, b4 as PaymentOptions, aZ as PaymentRateOneOf, aq as PaymentStatus, fm as PaymentStatusWithLiterals, c8 as PhoneCall, aP as PlacementType, fL as PlacementTypeWithLiterals, as as Platform, fo as PlatformWithLiterals, bh as PolicyDescription, ed as PricingPlanSelection, ey as Properties, eN as PropertiesChange, dW as QueryBookingFormsRequest, e5 as QueryCategoriesFilter, e4 as QueryCategoriesRequest, e0 as QueryLocationsFilter, d$ as QueryLocationsRequest, dT as QueryPoliciesRequest, e6 as QueryServicesMultiLanguageRequest, e7 as QueryServicesMultiLanguageResponse, d3 as QueryServicesRequest, d9 as QueryServicesResponse, d4 as QueryV2, d5 as QueryV2PagingMethodOneOf, dl as RangeAggregation, dy as RangeAggregationResult, dh as RangeBucket, dG as RangeResult, dC as RangeResults, bw as RankingOptions, ae as RankingOrder, fa as RankingOrderWithLiterals, a9 as RateType, f5 as RateTypeWithLiterals, e9 as RemovedLocationSessionsAction, ea as RemovedLocationSessionsActionActionOptionsOneOf, aG as RequestedFields, fC as RequestedFieldsWithLiterals, bm as ReschedulePolicy, aR as ResolutionMethod, fN as ResolutionMethodWithLiterals, bK as ResourceGroup, bL as ResourceIds, c9 as ResourceSelection, al as ResourceTransparency, fh as ResourceTransparencyWithLiterals, bO as ResourceType, bp as ResourcesPolicy, cx as RestoreInfo, dL as Results, bt as SaveCreditCardPolicy, dm as ScalarAggregation, dI as ScalarDateResult, dH as ScalarResult, aB as ScalarType, fx as ScalarTypeWithLiterals, bz as Schedule, du as SearchDetails, dc as SearchServicesRequest, ar as SelectedPaymentOption, fn as SelectedPaymentOptionWithLiterals, an as SelectionMethod, fj as SelectionMethodWithLiterals, bS as SeoSchema, cT as ServiceAvailabilityConstraints, cp as ServiceChoice, cq as ServiceChoiceChoiceOneOf, co as ServiceChoices, f1 as ServiceQuerySpec, bM as ServiceResource, bN as ServiceResourceSelectionOneOf, f2 as ServiceSearchSpec, a8 as ServiceType, f4 as ServiceTypeWithLiterals, f0 as ServicesQueryResult, b_ as ServicesUrlsChanged, eY as SetAddOnsForGroupRequest, bZ as SetCustomSlugEvent, eg as SetCustomSlugRequest, e8 as SetServiceLocationsRequest, bV as Settings, eP as SiteCloned, eO as SiteCreated, ex as SitePropertiesEvent, ew as SitePropertiesNotification, bP as Slug, az as SortDirection, fv as SortDirectionWithLiterals, ax as SortOrder, ft as SortOrderWithLiterals, ay as SortType, fu as SortTypeWithLiterals, d6 as Sorting, af as SortingMethodType, fb as SortingMethodTypeWithLiterals, eG as SpecialHourPeriod, cU as SplitInterval, bH as StaffMediaItem, bI as StaffMediaItemItemOneOf, bG as StaffMember, bJ as StaffMemberDetails, bu as StaffSortingPolicy, bv as StaffSortingPolicyOptionsOneOf, aK as Status, fG as StatusWithLiterals, ce as StreetAddress, cg as Subdivision, b2 as SubscriptionPayment, eI as SupportedLanguage, bU as Tag, bX as TaxableAddress, aj as TaxableAddressType, ff as TaxableAddressTypeWithLiterals, eF as TimePeriod, ag as Timing, fc as TimingWithLiterals, eK as Translation, bQ as URLs, ai as UnitType, fe as UnitTypeWithLiterals, eT as UpdateAddOnGroupRequest, cV as UpdateServiceRequest, cW as UpdateServiceResponse, et as UserDomainInfoChangedEvent, aV as V2Category, bB as V2Duration, b8 as V2Location, b9 as V2LocationOptionsOneOf, c$ as V2ParticipantNotification, bY as V2PhoneCall, aw as V2RequestedFields, fs as V2RequestedFieldsWithLiterals, eB as V4Address, cH as ValidateServiceRequest, cI as ValidateServiceResponse, eh as ValidateSlugRequest, dj as ValueAggregation, dk as ValueAggregationOptionsOneOf, dx as ValueAggregationResult, dF as ValueResult, dB as ValueResults, ao as ValueType, fk as ValueTypeWithLiterals, b1 as VariedPayment, bn as WaitlistPolicy, av as WebhookIdentityType, fr as WebhookIdentityTypeWithLiterals, f3 as utils } from './bookings-services-v2-service-services.universal-BAiX5P6U.js';
4
4
 
5
5
  declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
6
6
  interface CreateServiceSignature {
@@ -49,7 +49,9 @@ interface CreateServiceSignature {
49
49
  * - `CUSTOM`: Set `payment.custom.description`.
50
50
  * - `NO_FEE`: No additional rate details required.
51
51
  *
52
- * Configure `payment.options` to control how customers can pay:
52
+ * Configure `payment.options` to control how customers can pay.
53
+ * At least one of `inPerson` or `online` must be `true`, even for services with `rateType` of `NO_FEE`.
54
+ *
53
55
  * - `online`: Customers can pay online. Requires `rateType` of `FIXED` or `VARIED`.
54
56
  * - `inPerson`: Customers can pay in person.
55
57
  * - `deposit`: A deposit is required to book. Requires `rateType` of `FIXED` or `VARIED` and a `deposit` amount in the rate details.
@@ -81,6 +83,13 @@ interface CreateServiceSignature {
81
83
  * - It is mandatory to specify `schedule.availabilityConstraints.sessionDurations`,
82
84
  * even though these values are ignored.
83
85
  *
86
+ * ### Staff members
87
+ *
88
+ * For appointment-based services, at least one entry in `staffMemberIds` is required.
89
+ * Set it to the [resource](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resources-v2/introduction) IDs of the staff members who can provide the service.
90
+ * Note that despite the field name, `staffMemberIds` contains resource IDs from `staffMember.resourceId`,
91
+ * not staff member IDs. Query staff members with the `RESOURCE_DETAILS` field set to retrieve `resourceId`.
92
+ *
84
93
  * ### Buffer time
85
94
  *
86
95
  * For appointment-based services, you can set `schedule.availabilityConstraints.timeBetweenSessions` to add buffer time between booked sessions.
@@ -1860,6 +1860,7 @@ var RateType = /* @__PURE__ */ ((RateType2) => {
1860
1860
  RateType2["CUSTOM"] = "CUSTOM";
1861
1861
  RateType2["VARIED"] = "VARIED";
1862
1862
  RateType2["NO_FEE"] = "NO_FEE";
1863
+ RateType2["SUBSCRIPTION"] = "SUBSCRIPTION";
1863
1864
  return RateType2;
1864
1865
  })(RateType || {});
1865
1866
  var FrequencyType = /* @__PURE__ */ ((FrequencyType2) => {
@@ -1904,6 +1905,8 @@ var CompletionRequirement = /* @__PURE__ */ ((CompletionRequirement2) => {
1904
1905
  return CompletionRequirement2;
1905
1906
  })(CompletionRequirement || {});
1906
1907
  var UnitType = /* @__PURE__ */ ((UnitType2) => {
1908
+ UnitType2["HOUR"] = "HOUR";
1909
+ UnitType2["DAY"] = "DAY";
1907
1910
  return UnitType2;
1908
1911
  })(UnitType || {});
1909
1912
  var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
@@ -1957,6 +1960,7 @@ var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
1957
1960
  PaymentStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
1958
1961
  PaymentStatus2["REFUNDED"] = "REFUNDED";
1959
1962
  PaymentStatus2["EXEMPT"] = "EXEMPT";
1963
+ PaymentStatus2["FAILED"] = "FAILED";
1960
1964
  return PaymentStatus2;
1961
1965
  })(PaymentStatus || {});
1962
1966
  var SelectedPaymentOption = /* @__PURE__ */ ((SelectedPaymentOption2) => {