@wix/auto_sdk_bookings_services 1.0.164 → 1.0.167
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.
- package/build/cjs/{bookings-services-v2-service-services.universal-DXSJhFF0.d.ts → bookings-services-v2-service-services.universal-Cz3JDfGk.d.ts} +361 -313
- package/build/cjs/index.d.ts +85 -84
- package/build/cjs/index.js +328 -320
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +289 -282
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +203 -172
- package/build/cjs/meta.js +203 -203
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-DXSJhFF0.d.mts → bookings-services-v2-service-services.universal-Cz3JDfGk.d.mts} +361 -313
- package/build/es/index.d.mts +85 -84
- package/build/es/index.mjs +328 -320
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +289 -282
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +203 -172
- package/build/es/meta.mjs +203 -203
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-DXSJhFF0.d.ts → bookings-services-v2-service-services.universal-Cz3JDfGk.d.ts} +361 -313
- package/build/internal/cjs/index.d.ts +85 -84
- package/build/internal/cjs/index.js +328 -320
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +289 -282
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +203 -172
- package/build/internal/cjs/meta.js +203 -203
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-DXSJhFF0.d.mts → bookings-services-v2-service-services.universal-Cz3JDfGk.d.mts} +361 -313
- package/build/internal/es/index.d.mts +85 -84
- package/build/internal/es/index.mjs +328 -320
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +289 -282
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +203 -172
- package/build/internal/es/meta.mjs +203 -203
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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-DXSJhFF0.mjs';
|
|
1
|
+
import { cC as CursorSearch, w as SearchServicesResponse } from './bookings-services-v2-service-services.universal-Cz3JDfGk.mjs';
|
|
2
|
+
export { au as Action, bS as ActionEvent, eA as ActionWithLiterals, b$ as AddOn, c0 as AddOnAddOnInfoOneOf, bC as AddOnDetails, A as AddOnGroup, c1 as AddOnGroupDetail, ab as AddOnPaymentOptions, eh as AddOnPaymentOptionsWithLiterals, dY as Address, dZ as AddressHint, aZ as AddressLocation, cE as Aggregation, cU as AggregationData, cF as AggregationKindOneOf, db as AggregationResults, dc as AggregationResultsResultOneOf, c$ as AggregationResultsScalarResult, ar as AggregationType, ex as AggregationTypeWithLiterals, cb as ApplicationError, bk as AvailabilityConstraints, eb as BaseEventMetadata, dO as Behavior, dP as BehaviorBehaviorOneOf, dK as Benefit, dJ as BenefitNotification, az as BenefitType, eF as BenefitTypeWithLiterals, b4 as BookAfterStartPolicy, dh as BookingForm, b0 as BookingPolicy, df as BookingPolicyWithServices, cc as BulkActionMetadata, B as BulkCreateServicesOptions, c8 as BulkCreateServicesRequest, j as BulkCreateServicesResponse, t as BulkDeleteServicesByFilterOptions, cs as BulkDeleteServicesByFilterRequest, u as BulkDeleteServicesByFilterResponse, r as BulkDeleteServicesOptions, cr as BulkDeleteServicesRequest, s as BulkDeleteServicesResponse, c9 as BulkServiceResult, o as BulkUpdateServicesByFilterOptions, cn as BulkUpdateServicesByFilterRequest, p as BulkUpdateServicesByFilterResponse, m as BulkUpdateServicesOptions, cl as BulkUpdateServicesRequest, n as BulkUpdateServicesResponse, a_ as BusinessLocationOptions, dn as BusinessLocations, d$ as BusinessSchedule, ba as CancellationFeePolicy, b5 as CancellationPolicy, bb as CancellationWindow, bc as CancellationWindowFeeOneOf, dW as Categories, dH as Category, dG as CategoryNotification, ay as CategoryNotificationEvent, eE as CategoryNotificationEventWithLiterals, e6 as ChangeContext, e7 as ChangeContextPayloadOneOf, aw as CloneErrors, eC as CloneErrorsWithLiterals, dF as CloneServiceRequest, a1 as CloneServiceResponse, aW as CommonAddress, aX as CommonAddressStreetOneOf, eL as CommonSearchWithEntityContext, ag as CompletionRequirement, em as CompletionRequirementWithLiterals, aT as Conferencing, dj as ConnectedService, e4 as ConsentPolicy, F as CountServicesOptions, dk as CountServicesRequest, G as CountServicesResponse, C as CreateAddOnGroupOptions, bW as CreateAddOnGroupRequest, a as CreateAddOnGroupResponse, c3 as CreateServiceRequest, c4 as CreateServiceResponse, i as CreateServiceValidationErrors, aB as CrudType, eH as CrudTypeWithLiterals, cx as CursorPaging, cT as CursorPagingMetadata, x as CursorQuery, de as CursorQueryPagingMethodOneOf, cD as CursorSearchPagingMethodOneOf, cA as Cursors, a$ as CustomLocationOptions, dp as CustomLocations, bh as CustomOptions, aP as CustomPayment, dq as CustomerLocations, cM as DateHistogramAggregation, d7 as DateHistogramResult, d9 as DateHistogramResults, aD as DayOfWeek, eJ as DayOfWeekWithLiterals, bI as Delete, b as DeleteAddOnGroupApplicationErrors, D as DeleteAddOnGroupOptions, bX as DeleteAddOnGroupRequest, bY as DeleteAddOnGroupResponse, q as DeleteServiceOptions, co as DeleteServiceRequest, cq as DeleteServiceResponse, W as DisablePricingPlansForServiceApplicationErrors, T as DisablePricingPlansForServiceOptions, dC as DisablePricingPlansForServiceRequest, V as DisablePricingPlansForServiceResponse, dM as Discount, dN as DiscountDiscountOneOf, bM as DomainEvent, bN as DomainEventBodyOneOf, bl as Duration, dI as Empty, R as EnablePricingPlansForServiceApplicationErrors, O as EnablePricingPlansForServiceOptions, dz as EnablePricingPlansForServiceRequest, P as EnablePricingPlansForServiceResponse, bO as EntityCreatedEvent, bR as EntityDeletedEvent, bQ as EntityUpdatedEvent, dL as EntryPass, aA as Event, ec as EventMetadata, eG as EventWithLiterals, bx as ExtendedFields, c7 as FieldViolation, aN as FixedPayment, aJ as Form, di as FormDetails, aK as FormSettings, d_ as GeoCoordinates, cf as GetServiceAvailabilityConstraintsRequest, cg as GetServiceAvailabilityConstraintsResponse, cd as GetServiceRequest, ce as GetServiceResponse, cQ as GroupByAggregation, cR as GroupByAggregationKindOneOf, d8 as GroupByValueResults, dR as HtmlSitePublished, bU as IdentificationData, bV as IdentificationDataIdOneOf, cH as IncludeMissingValuesOptions, bi as IntakeFormPolicy, aq as Interval, ew as IntervalWithLiterals, dB as InvalidPricingPlan, av as InvalidSlugError, eB as InvalidSlugErrorWithLiterals, ca as ItemMetadata, bz as Keyword, b2 as LimitEarlyBookingPolicy, b3 as LimitLateBookingPolicy, L as ListAddOnGroupsByServiceIdOptions, b_ as ListAddOnGroupsByServiceIdRequest, e as ListAddOnGroupsByServiceIdResponse, dX as Locale, aU as Location, aV as LocationOptionsOneOf, ac as LocationType, ei as LocationTypeWithLiterals, cm as MaskedService, aF as Media, aG as MediaItem, aH as MediaItemItemOneOf, bT as MessageEnvelope, an as MissingValues, et as MissingValuesWithLiterals, as as Mode, ey as ModeWithLiterals, aO as Money, dy as MoveToNewLocationsOptions, e2 as Multilingual, cP as NestedAggregation, cN as NestedAggregationItem, cO as NestedAggregationItemKindOneOf, cX as NestedAggregationResults, cY as NestedAggregationResultsResultOneOf, ap as NestedAggregationType, ev as NestedAggregationTypeWithLiterals, d4 as NestedResultValue, d5 as NestedResultValueResultOneOf, da as NestedResults, d0 as NestedValueAggregationResult, aS as OnlineBooking, dS as Page, cw as Paging, cz as PagingMetadataV2, cp as ParticipantNotification, b8 as ParticipantsPolicy, aL as Payment, aR as PaymentOptions, aM as PaymentRateOneOf, bE as PhoneCall, aC as PlacementType, eI as PlacementTypeWithLiterals, b1 as PolicyDescription, dA as PricingPlanSelection, dV as Properties, e8 as PropertiesChange, E as QueryBookingFormsApplicationErrors, y as QueryBookingFormsOptions, dg as QueryBookingFormsRequest, z as QueryBookingFormsResponse, ds as QueryCategoriesFilter, J as QueryCategoriesOptions, dr as QueryCategoriesRequest, K as QueryCategoriesResponse, dm as QueryLocationsFilter, H as QueryLocationsOptions, dl as QueryLocationsRequest, I as QueryLocationsResponse, dd as QueryPoliciesRequest, Q as QueryPoliciesResponse, dt as QueryServicesMultiLanguageRequest, du as QueryServicesMultiLanguageResponse, a6 as QueryServicesOptions, ct as QueryServicesRequest, cy as QueryServicesResponse, a5 as QueryV2, cu as QueryV2PagingMethodOneOf, cK as RangeAggregation, cW as RangeAggregationResult, cG as RangeBucket, d2 as RangeResult, c_ as RangeResults, bg as RankingOptions, ad as RankingOrder, ej as RankingOrderWithLiterals, aa as RateType, eg as RateTypeWithLiterals, bF as ReindexMessage, bG as ReindexMessageActionOneOf, dw as RemovedLocationSessionsAction, dx as RemovedLocationSessionsActionActionOptionsOneOf, at as RequestedFields, ez as RequestedFieldsWithLiterals, b6 as ReschedulePolicy, aE as ResolutionMethod, eK as ResolutionMethodWithLiterals, bq as ResourceGroup, br as ResourceIds, bu as ResourceType, b9 as ResourcesPolicy, bP as RestoreInfo, d6 as Results, bd as SaveCreditCardPolicy, cL as ScalarAggregation, d3 as ScalarResult, ao as ScalarType, eu as ScalarTypeWithLiterals, bj as Schedule, bJ as Schema, cS as SearchDetails, cB as SearchServicesRequest, by as SeoSchema, h as Service, ch as ServiceAvailabilityConstraints, a2 as ServiceCreatedEnvelope, a3 as ServiceDeletedEnvelope, bs as ServiceResource, bt as ServiceResourceSelectionOneOf, ee as ServiceSearchSpec, a9 as ServiceType, ef as ServiceTypeWithLiterals, a4 as ServiceUpdatedEnvelope, a8 as ServicesQueryBuilder, ed as ServicesQueryResult, bL as ServicesUrlsChanged, g as SetAddOnsForGroupApplicationErrors, S as SetAddOnsForGroupOptions, c2 as SetAddOnsForGroupRequest, f as SetAddOnsForGroupResponse, Z as SetCustomSlugApplicationErrors, bK as SetCustomSlugEvent, X as SetCustomSlugOptions, dD as SetCustomSlugRequest, Y as SetCustomSlugResponse, _ as SetCustomSlugValidationErrors, M as SetServiceLocationsOptions, dv as SetServiceLocationsRequest, N as SetServiceLocationsResponse, bB as Settings, ea as SiteCloned, e9 as SiteCreated, dU as SitePropertiesEvent, dT as SitePropertiesNotification, bv as Slug, am as SortDirection, es as SortDirectionWithLiterals, ak as SortOrder, eq as SortOrderWithLiterals, al as SortType, er as SortTypeWithLiterals, cv as Sorting, ae as SortingMethodType, ek as SortingMethodTypeWithLiterals, e1 as SpecialHourPeriod, ci as SplitInterval, bn as StaffMediaItem, bo as StaffMediaItemItemOneOf, bm as StaffMember, bp as StaffMemberDetails, be as StaffSortingPolicy, bf as StaffSortingPolicyOptionsOneOf, ax as Status, eD as StatusWithLiterals, aY as StreetAddress, e3 as SupportedLanguage, bA as Tag, bD as TaxableAddress, ah as TaxableAddressType, en as TaxableAddressTypeWithLiterals, e0 as TimePeriod, af as Timing, el as TimingWithLiterals, e5 as Translation, bw as URLs, d as UpdateAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, bZ as UpdateAddOnGroupRequest, c as UpdateAddOnGroupResponse, k as UpdateService, cj as UpdateServiceRequest, ck as UpdateServiceResponse, l as UpdateServiceValidationErrors, bH as Upsert, dQ as UserDomainInfoChangedEvent, aI as V2Category, aj as V2RequestedFields, ep as V2RequestedFieldsWithLiterals, c5 as ValidateServiceRequest, c6 as ValidateServiceResponse, $ as ValidateSlugOptions, dE as ValidateSlugRequest, a0 as ValidateSlugResponse, cI as ValueAggregation, cJ as ValueAggregationOptionsOneOf, cV as ValueAggregationResult, d1 as ValueResult, cZ as ValueResults, aQ as VariedPayment, b7 as WaitlistPolicy, ai as WebhookIdentityType, eo as WebhookIdentityTypeWithLiterals, eV as bulkCreateServices, e$ as bulkDeleteServices, f0 as bulkDeleteServicesByFilter, eY as bulkUpdateServices, eZ as bulkUpdateServicesByFilter, fc as cloneService, f4 as countServices, eP as createAddOnGroup, eU as createService, eQ as deleteAddOnGroup, e_ as deleteService, f9 as disablePricingPlansForService, f8 as enablePricingPlansForService, eW as getService, eS as listAddOnGroupsByServiceId, eM as onServiceCreated, eN as onServiceDeleted, eO as onServiceUpdated, f3 as queryBookingForms, f6 as queryCategories, f5 as queryLocations, f2 as queryPolicies, f1 as queryServices, eT as setAddOnsForGroup, fa as setCustomSlug, f7 as setServiceLocations, a7 as typedQueryServices, eR as updateAddOnGroup, eX as updateService, fb as validateSlug } from './bookings-services-v2-service-services.universal-Cz3JDfGk.mjs';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -15,7 +15,7 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
15
15
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
16
16
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
17
17
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
18
|
-
function
|
|
18
|
+
function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
19
19
|
const domainToMappings = {
|
|
20
20
|
"*.dev.wix-code.com": [
|
|
21
21
|
{
|
|
@@ -130,7 +130,7 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
|
130
130
|
};
|
|
131
131
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
134
134
|
const domainToMappings = {
|
|
135
135
|
"*.dev.wix-code.com": [
|
|
136
136
|
{
|
|
@@ -246,6 +246,117 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
246
246
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
247
247
|
}
|
|
248
248
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
|
|
249
|
+
function createAddOnGroup(payload) {
|
|
250
|
+
function __createAddOnGroup({ host }) {
|
|
251
|
+
const metadata = {
|
|
252
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
253
|
+
method: "POST",
|
|
254
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
255
|
+
packageName: PACKAGE_NAME,
|
|
256
|
+
migrationOptions: {
|
|
257
|
+
optInTransformResponse: true
|
|
258
|
+
},
|
|
259
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
260
|
+
protoPath: "/v2/services/add-on-groups/create",
|
|
261
|
+
data: payload,
|
|
262
|
+
host
|
|
263
|
+
}),
|
|
264
|
+
data: payload
|
|
265
|
+
};
|
|
266
|
+
return metadata;
|
|
267
|
+
}
|
|
268
|
+
return __createAddOnGroup;
|
|
269
|
+
}
|
|
270
|
+
function deleteAddOnGroup(payload) {
|
|
271
|
+
function __deleteAddOnGroup({ host }) {
|
|
272
|
+
const metadata = {
|
|
273
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
274
|
+
method: "POST",
|
|
275
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
276
|
+
packageName: PACKAGE_NAME,
|
|
277
|
+
migrationOptions: {
|
|
278
|
+
optInTransformResponse: true
|
|
279
|
+
},
|
|
280
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
281
|
+
protoPath: "/v2/services/add-on-groups/delete",
|
|
282
|
+
data: payload,
|
|
283
|
+
host
|
|
284
|
+
}),
|
|
285
|
+
data: payload
|
|
286
|
+
};
|
|
287
|
+
return metadata;
|
|
288
|
+
}
|
|
289
|
+
return __deleteAddOnGroup;
|
|
290
|
+
}
|
|
291
|
+
function updateAddOnGroup(payload) {
|
|
292
|
+
function __updateAddOnGroup({ host }) {
|
|
293
|
+
const serializedData = transformPaths(payload, [
|
|
294
|
+
{
|
|
295
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
296
|
+
paths: [{ path: "mask" }]
|
|
297
|
+
}
|
|
298
|
+
]);
|
|
299
|
+
const metadata = {
|
|
300
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
301
|
+
method: "POST",
|
|
302
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
303
|
+
packageName: PACKAGE_NAME,
|
|
304
|
+
migrationOptions: {
|
|
305
|
+
optInTransformResponse: true
|
|
306
|
+
},
|
|
307
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
308
|
+
protoPath: "/v2/services/add-on-groups/update",
|
|
309
|
+
data: serializedData,
|
|
310
|
+
host
|
|
311
|
+
}),
|
|
312
|
+
data: serializedData
|
|
313
|
+
};
|
|
314
|
+
return metadata;
|
|
315
|
+
}
|
|
316
|
+
return __updateAddOnGroup;
|
|
317
|
+
}
|
|
318
|
+
function listAddOnGroupsByServiceId(payload) {
|
|
319
|
+
function __listAddOnGroupsByServiceId({ host }) {
|
|
320
|
+
const metadata = {
|
|
321
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
322
|
+
method: "POST",
|
|
323
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
324
|
+
packageName: PACKAGE_NAME,
|
|
325
|
+
migrationOptions: {
|
|
326
|
+
optInTransformResponse: true
|
|
327
|
+
},
|
|
328
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
329
|
+
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
330
|
+
data: payload,
|
|
331
|
+
host
|
|
332
|
+
}),
|
|
333
|
+
data: payload
|
|
334
|
+
};
|
|
335
|
+
return metadata;
|
|
336
|
+
}
|
|
337
|
+
return __listAddOnGroupsByServiceId;
|
|
338
|
+
}
|
|
339
|
+
function setAddOnsForGroup(payload) {
|
|
340
|
+
function __setAddOnsForGroup({ host }) {
|
|
341
|
+
const metadata = {
|
|
342
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
343
|
+
method: "POST",
|
|
344
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
345
|
+
packageName: PACKAGE_NAME,
|
|
346
|
+
migrationOptions: {
|
|
347
|
+
optInTransformResponse: true
|
|
348
|
+
},
|
|
349
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
350
|
+
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
351
|
+
data: payload,
|
|
352
|
+
host
|
|
353
|
+
}),
|
|
354
|
+
data: payload
|
|
355
|
+
};
|
|
356
|
+
return metadata;
|
|
357
|
+
}
|
|
358
|
+
return __setAddOnsForGroup;
|
|
359
|
+
}
|
|
249
360
|
function createService(payload) {
|
|
250
361
|
function __createService({ host }) {
|
|
251
362
|
const serializedData = transformPaths(payload, [
|
|
@@ -1595,117 +1706,6 @@ function cloneService(payload) {
|
|
|
1595
1706
|
}
|
|
1596
1707
|
return __cloneService;
|
|
1597
1708
|
}
|
|
1598
|
-
function createAddOnGroup(payload) {
|
|
1599
|
-
function __createAddOnGroup({ host }) {
|
|
1600
|
-
const metadata = {
|
|
1601
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1602
|
-
method: "POST",
|
|
1603
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
1604
|
-
packageName: PACKAGE_NAME,
|
|
1605
|
-
migrationOptions: {
|
|
1606
|
-
optInTransformResponse: true
|
|
1607
|
-
},
|
|
1608
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1609
|
-
protoPath: "/v2/services/add-on-groups/create",
|
|
1610
|
-
data: payload,
|
|
1611
|
-
host
|
|
1612
|
-
}),
|
|
1613
|
-
data: payload
|
|
1614
|
-
};
|
|
1615
|
-
return metadata;
|
|
1616
|
-
}
|
|
1617
|
-
return __createAddOnGroup;
|
|
1618
|
-
}
|
|
1619
|
-
function deleteAddOnGroup(payload) {
|
|
1620
|
-
function __deleteAddOnGroup({ host }) {
|
|
1621
|
-
const metadata = {
|
|
1622
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1623
|
-
method: "POST",
|
|
1624
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
1625
|
-
packageName: PACKAGE_NAME,
|
|
1626
|
-
migrationOptions: {
|
|
1627
|
-
optInTransformResponse: true
|
|
1628
|
-
},
|
|
1629
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1630
|
-
protoPath: "/v2/services/add-on-groups/delete",
|
|
1631
|
-
data: payload,
|
|
1632
|
-
host
|
|
1633
|
-
}),
|
|
1634
|
-
data: payload
|
|
1635
|
-
};
|
|
1636
|
-
return metadata;
|
|
1637
|
-
}
|
|
1638
|
-
return __deleteAddOnGroup;
|
|
1639
|
-
}
|
|
1640
|
-
function updateAddOnGroup(payload) {
|
|
1641
|
-
function __updateAddOnGroup({ host }) {
|
|
1642
|
-
const serializedData = transformPaths(payload, [
|
|
1643
|
-
{
|
|
1644
|
-
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1645
|
-
paths: [{ path: "mask" }]
|
|
1646
|
-
}
|
|
1647
|
-
]);
|
|
1648
|
-
const metadata = {
|
|
1649
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1650
|
-
method: "POST",
|
|
1651
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
1652
|
-
packageName: PACKAGE_NAME,
|
|
1653
|
-
migrationOptions: {
|
|
1654
|
-
optInTransformResponse: true
|
|
1655
|
-
},
|
|
1656
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1657
|
-
protoPath: "/v2/services/add-on-groups/update",
|
|
1658
|
-
data: serializedData,
|
|
1659
|
-
host
|
|
1660
|
-
}),
|
|
1661
|
-
data: serializedData
|
|
1662
|
-
};
|
|
1663
|
-
return metadata;
|
|
1664
|
-
}
|
|
1665
|
-
return __updateAddOnGroup;
|
|
1666
|
-
}
|
|
1667
|
-
function listAddOnGroupsByServiceId(payload) {
|
|
1668
|
-
function __listAddOnGroupsByServiceId({ host }) {
|
|
1669
|
-
const metadata = {
|
|
1670
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1671
|
-
method: "POST",
|
|
1672
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
1673
|
-
packageName: PACKAGE_NAME,
|
|
1674
|
-
migrationOptions: {
|
|
1675
|
-
optInTransformResponse: true
|
|
1676
|
-
},
|
|
1677
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1678
|
-
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
1679
|
-
data: payload,
|
|
1680
|
-
host
|
|
1681
|
-
}),
|
|
1682
|
-
data: payload
|
|
1683
|
-
};
|
|
1684
|
-
return metadata;
|
|
1685
|
-
}
|
|
1686
|
-
return __listAddOnGroupsByServiceId;
|
|
1687
|
-
}
|
|
1688
|
-
function setAddOnsForGroup(payload) {
|
|
1689
|
-
function __setAddOnsForGroup({ host }) {
|
|
1690
|
-
const metadata = {
|
|
1691
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1692
|
-
method: "POST",
|
|
1693
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
1694
|
-
packageName: PACKAGE_NAME,
|
|
1695
|
-
migrationOptions: {
|
|
1696
|
-
optInTransformResponse: true
|
|
1697
|
-
},
|
|
1698
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1699
|
-
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
1700
|
-
data: payload,
|
|
1701
|
-
host
|
|
1702
|
-
}),
|
|
1703
|
-
data: payload
|
|
1704
|
-
};
|
|
1705
|
-
return metadata;
|
|
1706
|
-
}
|
|
1707
|
-
return __setAddOnsForGroup;
|
|
1708
|
-
}
|
|
1709
1709
|
|
|
1710
1710
|
// src/bookings-services-v2-service-services.universal.ts
|
|
1711
1711
|
import { transformSDKAddressToRESTAddress } from "@wix/sdk-runtime/transformations/address";
|
|
@@ -1923,21 +1923,168 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
1923
1923
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
1924
1924
|
return ResolutionMethod2;
|
|
1925
1925
|
})(ResolutionMethod || {});
|
|
1926
|
-
async function
|
|
1927
|
-
const { httpClient, sideEffects } = arguments[
|
|
1928
|
-
const payload =
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1926
|
+
async function createAddOnGroup2(addOnGroup, options) {
|
|
1927
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1928
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1929
|
+
addOnGroup,
|
|
1930
|
+
serviceId: options?.serviceId
|
|
1931
|
+
});
|
|
1932
|
+
const reqOpts = createAddOnGroup(payload);
|
|
1933
|
+
sideEffects?.onSiteCall?.();
|
|
1934
|
+
try {
|
|
1935
|
+
const result = await httpClient.request(reqOpts);
|
|
1936
|
+
sideEffects?.onSuccess?.(result);
|
|
1937
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1938
|
+
} catch (err) {
|
|
1939
|
+
const transformedError = sdkTransformError(
|
|
1940
|
+
err,
|
|
1941
|
+
{
|
|
1942
|
+
spreadPathsToArguments: {},
|
|
1943
|
+
explicitPathsToArguments: {
|
|
1944
|
+
addOnGroup: "$[0]",
|
|
1945
|
+
serviceId: "$[1].serviceId"
|
|
1946
|
+
},
|
|
1947
|
+
singleArgumentUnchanged: false
|
|
1948
|
+
},
|
|
1949
|
+
["addOnGroup", "options"]
|
|
1950
|
+
);
|
|
1951
|
+
sideEffects?.onError?.(err);
|
|
1952
|
+
throw transformedError;
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
1956
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1957
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1958
|
+
addOnGroupId,
|
|
1959
|
+
serviceId: options?.serviceId
|
|
1960
|
+
});
|
|
1961
|
+
const reqOpts = deleteAddOnGroup(payload);
|
|
1962
|
+
sideEffects?.onSiteCall?.();
|
|
1963
|
+
try {
|
|
1964
|
+
const result = await httpClient.request(reqOpts);
|
|
1965
|
+
sideEffects?.onSuccess?.(result);
|
|
1966
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1967
|
+
} catch (err) {
|
|
1968
|
+
const transformedError = sdkTransformError(
|
|
1969
|
+
err,
|
|
1970
|
+
{
|
|
1971
|
+
spreadPathsToArguments: {},
|
|
1972
|
+
explicitPathsToArguments: {
|
|
1973
|
+
addOnGroupId: "$[0]",
|
|
1974
|
+
serviceId: "$[1].serviceId"
|
|
1975
|
+
},
|
|
1976
|
+
singleArgumentUnchanged: false
|
|
1977
|
+
},
|
|
1978
|
+
["addOnGroupId", "options"]
|
|
1979
|
+
);
|
|
1980
|
+
sideEffects?.onError?.(err);
|
|
1981
|
+
throw transformedError;
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
async function updateAddOnGroup2(addOnGroup, options) {
|
|
1985
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1986
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1987
|
+
addOnGroup,
|
|
1988
|
+
serviceId: options?.serviceId
|
|
1989
|
+
});
|
|
1990
|
+
const reqOpts = updateAddOnGroup(payload);
|
|
1991
|
+
sideEffects?.onSiteCall?.();
|
|
1992
|
+
try {
|
|
1993
|
+
const result = await httpClient.request(reqOpts);
|
|
1994
|
+
sideEffects?.onSuccess?.(result);
|
|
1995
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1996
|
+
} catch (err) {
|
|
1997
|
+
const transformedError = sdkTransformError(
|
|
1998
|
+
err,
|
|
1999
|
+
{
|
|
2000
|
+
spreadPathsToArguments: {},
|
|
2001
|
+
explicitPathsToArguments: {
|
|
2002
|
+
addOnGroup: "$[0]",
|
|
2003
|
+
serviceId: "$[1].serviceId"
|
|
2004
|
+
},
|
|
2005
|
+
singleArgumentUnchanged: false
|
|
2006
|
+
},
|
|
2007
|
+
["addOnGroup", "options"]
|
|
2008
|
+
);
|
|
2009
|
+
sideEffects?.onError?.(err);
|
|
2010
|
+
throw transformedError;
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
2014
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2015
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2016
|
+
serviceId,
|
|
2017
|
+
groupIds: options?.groupIds
|
|
2018
|
+
});
|
|
2019
|
+
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
2020
|
+
sideEffects?.onSiteCall?.();
|
|
2021
|
+
try {
|
|
2022
|
+
const result = await httpClient.request(reqOpts);
|
|
2023
|
+
sideEffects?.onSuccess?.(result);
|
|
2024
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2025
|
+
} catch (err) {
|
|
2026
|
+
const transformedError = sdkTransformError(
|
|
2027
|
+
err,
|
|
2028
|
+
{
|
|
2029
|
+
spreadPathsToArguments: {},
|
|
2030
|
+
explicitPathsToArguments: {
|
|
2031
|
+
serviceId: "$[0]",
|
|
2032
|
+
groupIds: "$[1].groupIds"
|
|
2033
|
+
},
|
|
2034
|
+
singleArgumentUnchanged: false
|
|
2035
|
+
},
|
|
2036
|
+
["serviceId", "options"]
|
|
2037
|
+
);
|
|
2038
|
+
sideEffects?.onError?.(err);
|
|
2039
|
+
throw transformedError;
|
|
2040
|
+
}
|
|
2041
|
+
}
|
|
2042
|
+
async function setAddOnsForGroup2(serviceId, options) {
|
|
2043
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2044
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2045
|
+
serviceId,
|
|
2046
|
+
groupId: options?.groupId,
|
|
2047
|
+
addOnIds: options?.addOnIds
|
|
2048
|
+
});
|
|
2049
|
+
const reqOpts = setAddOnsForGroup(payload);
|
|
2050
|
+
sideEffects?.onSiteCall?.();
|
|
2051
|
+
try {
|
|
2052
|
+
const result = await httpClient.request(reqOpts);
|
|
2053
|
+
sideEffects?.onSuccess?.(result);
|
|
2054
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2055
|
+
} catch (err) {
|
|
2056
|
+
const transformedError = sdkTransformError(
|
|
2057
|
+
err,
|
|
2058
|
+
{
|
|
2059
|
+
spreadPathsToArguments: {},
|
|
2060
|
+
explicitPathsToArguments: {
|
|
2061
|
+
serviceId: "$[0]",
|
|
2062
|
+
groupId: "$[1].groupId",
|
|
2063
|
+
addOnIds: "$[1].addOnIds"
|
|
2064
|
+
},
|
|
2065
|
+
singleArgumentUnchanged: false
|
|
2066
|
+
},
|
|
2067
|
+
["serviceId", "options"]
|
|
2068
|
+
);
|
|
2069
|
+
sideEffects?.onError?.(err);
|
|
2070
|
+
throw transformedError;
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
async function createService2(service) {
|
|
2074
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2075
|
+
const payload = transformPaths2(
|
|
2076
|
+
renameKeysFromSDKRequestToRESTRequest({ service }),
|
|
2077
|
+
[
|
|
2078
|
+
{
|
|
2079
|
+
transformFn: transformSDKImageToRESTImage,
|
|
2080
|
+
paths: [
|
|
2081
|
+
{ path: "service.media.items.image" },
|
|
2082
|
+
{ path: "service.media.mainMedia.image" },
|
|
2083
|
+
{ path: "service.media.coverMedia.image" },
|
|
2084
|
+
{ path: "service.staffMembers.mainMedia.image" },
|
|
2085
|
+
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2086
|
+
]
|
|
2087
|
+
},
|
|
1941
2088
|
{
|
|
1942
2089
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1943
2090
|
paths: [
|
|
@@ -2963,11 +3110,12 @@ async function setServiceLocations2(serviceId, options) {
|
|
|
2963
3110
|
throw transformedError;
|
|
2964
3111
|
}
|
|
2965
3112
|
}
|
|
2966
|
-
async function enablePricingPlansForService2(serviceId, pricingPlanIds) {
|
|
2967
|
-
const { httpClient, sideEffects } = arguments[
|
|
3113
|
+
async function enablePricingPlansForService2(serviceId, pricingPlanIds, options) {
|
|
3114
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2968
3115
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2969
3116
|
serviceId,
|
|
2970
|
-
pricingPlanIds
|
|
3117
|
+
pricingPlanIds,
|
|
3118
|
+
pricingPlanSelections: options?.pricingPlanSelections
|
|
2971
3119
|
});
|
|
2972
3120
|
const reqOpts = enablePricingPlansForService(
|
|
2973
3121
|
payload
|
|
@@ -3011,10 +3159,14 @@ async function enablePricingPlansForService2(serviceId, pricingPlanIds) {
|
|
|
3011
3159
|
err,
|
|
3012
3160
|
{
|
|
3013
3161
|
spreadPathsToArguments: {},
|
|
3014
|
-
explicitPathsToArguments: {
|
|
3162
|
+
explicitPathsToArguments: {
|
|
3163
|
+
serviceId: "$[0]",
|
|
3164
|
+
pricingPlanIds: "$[1]",
|
|
3165
|
+
pricingPlanSelections: "$[2].pricingPlanSelections"
|
|
3166
|
+
},
|
|
3015
3167
|
singleArgumentUnchanged: false
|
|
3016
3168
|
},
|
|
3017
|
-
["serviceId", "pricingPlanIds"]
|
|
3169
|
+
["serviceId", "pricingPlanIds", "options"]
|
|
3018
3170
|
);
|
|
3019
3171
|
sideEffects?.onError?.(err);
|
|
3020
3172
|
throw transformedError;
|
|
@@ -3024,7 +3176,8 @@ async function disablePricingPlansForService2(serviceId, options) {
|
|
|
3024
3176
|
const { httpClient, sideEffects } = arguments[2];
|
|
3025
3177
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3026
3178
|
serviceId,
|
|
3027
|
-
pricingPlanIds: options?.pricingPlanIds
|
|
3179
|
+
pricingPlanIds: options?.pricingPlanIds,
|
|
3180
|
+
pricingPlanSelections: options?.pricingPlanSelections
|
|
3028
3181
|
});
|
|
3029
3182
|
const reqOpts = disablePricingPlansForService(
|
|
3030
3183
|
payload
|
|
@@ -3070,7 +3223,8 @@ async function disablePricingPlansForService2(serviceId, options) {
|
|
|
3070
3223
|
spreadPathsToArguments: {},
|
|
3071
3224
|
explicitPathsToArguments: {
|
|
3072
3225
|
serviceId: "$[0]",
|
|
3073
|
-
pricingPlanIds: "$[1].pricingPlanIds"
|
|
3226
|
+
pricingPlanIds: "$[1].pricingPlanIds",
|
|
3227
|
+
pricingPlanSelections: "$[1].pricingPlanSelections"
|
|
3074
3228
|
},
|
|
3075
3229
|
singleArgumentUnchanged: false
|
|
3076
3230
|
},
|
|
@@ -3215,153 +3369,6 @@ async function cloneService2(sourceServiceId) {
|
|
|
3215
3369
|
throw transformedError;
|
|
3216
3370
|
}
|
|
3217
3371
|
}
|
|
3218
|
-
async function createAddOnGroup2(addOnGroup, options) {
|
|
3219
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3220
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3221
|
-
addOnGroup,
|
|
3222
|
-
serviceId: options?.serviceId
|
|
3223
|
-
});
|
|
3224
|
-
const reqOpts = createAddOnGroup(payload);
|
|
3225
|
-
sideEffects?.onSiteCall?.();
|
|
3226
|
-
try {
|
|
3227
|
-
const result = await httpClient.request(reqOpts);
|
|
3228
|
-
sideEffects?.onSuccess?.(result);
|
|
3229
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3230
|
-
} catch (err) {
|
|
3231
|
-
const transformedError = sdkTransformError(
|
|
3232
|
-
err,
|
|
3233
|
-
{
|
|
3234
|
-
spreadPathsToArguments: {},
|
|
3235
|
-
explicitPathsToArguments: {
|
|
3236
|
-
addOnGroup: "$[0]",
|
|
3237
|
-
serviceId: "$[1].serviceId"
|
|
3238
|
-
},
|
|
3239
|
-
singleArgumentUnchanged: false
|
|
3240
|
-
},
|
|
3241
|
-
["addOnGroup", "options"]
|
|
3242
|
-
);
|
|
3243
|
-
sideEffects?.onError?.(err);
|
|
3244
|
-
throw transformedError;
|
|
3245
|
-
}
|
|
3246
|
-
}
|
|
3247
|
-
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
3248
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3249
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3250
|
-
addOnGroupId,
|
|
3251
|
-
serviceId: options?.serviceId
|
|
3252
|
-
});
|
|
3253
|
-
const reqOpts = deleteAddOnGroup(payload);
|
|
3254
|
-
sideEffects?.onSiteCall?.();
|
|
3255
|
-
try {
|
|
3256
|
-
const result = await httpClient.request(reqOpts);
|
|
3257
|
-
sideEffects?.onSuccess?.(result);
|
|
3258
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3259
|
-
} catch (err) {
|
|
3260
|
-
const transformedError = sdkTransformError(
|
|
3261
|
-
err,
|
|
3262
|
-
{
|
|
3263
|
-
spreadPathsToArguments: {},
|
|
3264
|
-
explicitPathsToArguments: {
|
|
3265
|
-
addOnGroupId: "$[0]",
|
|
3266
|
-
serviceId: "$[1].serviceId"
|
|
3267
|
-
},
|
|
3268
|
-
singleArgumentUnchanged: false
|
|
3269
|
-
},
|
|
3270
|
-
["addOnGroupId", "options"]
|
|
3271
|
-
);
|
|
3272
|
-
sideEffects?.onError?.(err);
|
|
3273
|
-
throw transformedError;
|
|
3274
|
-
}
|
|
3275
|
-
}
|
|
3276
|
-
async function updateAddOnGroup2(addOnGroup, options) {
|
|
3277
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3278
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3279
|
-
addOnGroup,
|
|
3280
|
-
serviceId: options?.serviceId
|
|
3281
|
-
});
|
|
3282
|
-
const reqOpts = updateAddOnGroup(payload);
|
|
3283
|
-
sideEffects?.onSiteCall?.();
|
|
3284
|
-
try {
|
|
3285
|
-
const result = await httpClient.request(reqOpts);
|
|
3286
|
-
sideEffects?.onSuccess?.(result);
|
|
3287
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3288
|
-
} catch (err) {
|
|
3289
|
-
const transformedError = sdkTransformError(
|
|
3290
|
-
err,
|
|
3291
|
-
{
|
|
3292
|
-
spreadPathsToArguments: {},
|
|
3293
|
-
explicitPathsToArguments: {
|
|
3294
|
-
addOnGroup: "$[0]",
|
|
3295
|
-
serviceId: "$[1].serviceId"
|
|
3296
|
-
},
|
|
3297
|
-
singleArgumentUnchanged: false
|
|
3298
|
-
},
|
|
3299
|
-
["addOnGroup", "options"]
|
|
3300
|
-
);
|
|
3301
|
-
sideEffects?.onError?.(err);
|
|
3302
|
-
throw transformedError;
|
|
3303
|
-
}
|
|
3304
|
-
}
|
|
3305
|
-
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
3306
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3307
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3308
|
-
serviceId,
|
|
3309
|
-
groupIds: options?.groupIds
|
|
3310
|
-
});
|
|
3311
|
-
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
3312
|
-
sideEffects?.onSiteCall?.();
|
|
3313
|
-
try {
|
|
3314
|
-
const result = await httpClient.request(reqOpts);
|
|
3315
|
-
sideEffects?.onSuccess?.(result);
|
|
3316
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3317
|
-
} catch (err) {
|
|
3318
|
-
const transformedError = sdkTransformError(
|
|
3319
|
-
err,
|
|
3320
|
-
{
|
|
3321
|
-
spreadPathsToArguments: {},
|
|
3322
|
-
explicitPathsToArguments: {
|
|
3323
|
-
serviceId: "$[0]",
|
|
3324
|
-
groupIds: "$[1].groupIds"
|
|
3325
|
-
},
|
|
3326
|
-
singleArgumentUnchanged: false
|
|
3327
|
-
},
|
|
3328
|
-
["serviceId", "options"]
|
|
3329
|
-
);
|
|
3330
|
-
sideEffects?.onError?.(err);
|
|
3331
|
-
throw transformedError;
|
|
3332
|
-
}
|
|
3333
|
-
}
|
|
3334
|
-
async function setAddOnsForGroup2(serviceId, options) {
|
|
3335
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3336
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3337
|
-
serviceId,
|
|
3338
|
-
groupId: options?.groupId,
|
|
3339
|
-
addOnIds: options?.addOnIds
|
|
3340
|
-
});
|
|
3341
|
-
const reqOpts = setAddOnsForGroup(payload);
|
|
3342
|
-
sideEffects?.onSiteCall?.();
|
|
3343
|
-
try {
|
|
3344
|
-
const result = await httpClient.request(reqOpts);
|
|
3345
|
-
sideEffects?.onSuccess?.(result);
|
|
3346
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3347
|
-
} catch (err) {
|
|
3348
|
-
const transformedError = sdkTransformError(
|
|
3349
|
-
err,
|
|
3350
|
-
{
|
|
3351
|
-
spreadPathsToArguments: {},
|
|
3352
|
-
explicitPathsToArguments: {
|
|
3353
|
-
serviceId: "$[0]",
|
|
3354
|
-
groupId: "$[1].groupId",
|
|
3355
|
-
addOnIds: "$[1].addOnIds"
|
|
3356
|
-
},
|
|
3357
|
-
singleArgumentUnchanged: false
|
|
3358
|
-
},
|
|
3359
|
-
["serviceId", "options"]
|
|
3360
|
-
);
|
|
3361
|
-
sideEffects?.onError?.(err);
|
|
3362
|
-
throw transformedError;
|
|
3363
|
-
}
|
|
3364
|
-
}
|
|
3365
3372
|
export {
|
|
3366
3373
|
Action,
|
|
3367
3374
|
AddOnPaymentOptions,
|