@wix/auto_sdk_bookings_services 1.0.147 → 1.0.149
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-vH2KMOVN.d.ts → bookings-services-v2-service-services.universal-Bmp_SJXU.d.ts} +298 -288
- package/build/cjs/index.d.ts +77 -77
- package/build/cjs/index.js +312 -312
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +275 -275
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +166 -156
- package/build/cjs/meta.js +203 -203
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-vH2KMOVN.d.mts → bookings-services-v2-service-services.universal-Bmp_SJXU.d.mts} +298 -288
- package/build/es/index.d.mts +77 -77
- package/build/es/index.mjs +312 -312
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +275 -275
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +166 -156
- 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-vH2KMOVN.d.ts → bookings-services-v2-service-services.universal-Bmp_SJXU.d.ts} +298 -288
- package/build/internal/cjs/index.d.ts +77 -77
- package/build/internal/cjs/index.js +312 -312
- 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 +275 -275
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +166 -156
- 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-vH2KMOVN.d.mts → bookings-services-v2-service-services.universal-Bmp_SJXU.d.mts} +298 -288
- package/build/internal/es/index.d.mts +77 -77
- package/build/internal/es/index.mjs +312 -312
- 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 +275 -275
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +166 -156
- 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 { ar as Action, bO as ActionEvent, ew as ActionWithLiterals, e3 as AddOn, e4 as AddOnAddOnInfoOneOf, by as AddOnDetails, O as AddOnGroup, e5 as AddOnGroupDetail, a8 as AddOnPaymentOptions, ed as AddOnPaymentOptionsWithLiterals, dL as Address, dM as AddressHint, aV as AddressLocation, cs as Aggregation, cI as AggregationData, ct as AggregationKindOneOf, c$ as AggregationResults, d0 as AggregationResultsResultOneOf, cP as AggregationResultsScalarResult, ao as AggregationType, et as AggregationTypeWithLiterals, b_ as ApplicationError, bg as AvailabilityConstraints, e7 as BaseEventMetadata, dB as Behavior, dC as BehaviorBehaviorOneOf, dx as Benefit, dw as BenefitNotification, aw as BenefitType, eB as BenefitTypeWithLiterals, b0 as BookAfterStartPolicy, d5 as BookingForm, aY as BookingPolicy, d3 as BookingPolicyWithServices, b$ as BulkActionMetadata, B as BulkCreateServicesOptions, bX as BulkCreateServicesRequest, a as BulkCreateServicesResponse, i as BulkDeleteServicesByFilterOptions, cf as BulkDeleteServicesByFilterRequest, j as BulkDeleteServicesByFilterResponse, g as BulkDeleteServicesOptions, ce as BulkDeleteServicesRequest, h as BulkDeleteServicesResponse, bY as BulkServiceResult, e as BulkUpdateServicesByFilterOptions, ca as BulkUpdateServicesByFilterRequest, f as BulkUpdateServicesByFilterResponse, c as BulkUpdateServicesOptions, c8 as BulkUpdateServicesRequest, d as BulkUpdateServicesResponse, aW as BusinessLocationOptions, db as BusinessLocations, dO as BusinessSchedule, b6 as CancellationFeePolicy, b1 as CancellationPolicy, b7 as CancellationWindow, b8 as CancellationWindowFeeOneOf, dJ as Categories, du as Category, dt as CategoryNotification, av as CategoryNotificationEvent, eA as CategoryNotificationEventWithLiterals, dV as ChangeContext, dW as ChangeContextPayloadOneOf, at as CloneErrors, ey as CloneErrorsWithLiterals, ds as CloneServiceRequest, N as CloneServiceResponse, aS as CommonAddress, aT as CommonAddressStreetOneOf, eH as CommonSearchWithEntityContext, ad as CompletionRequirement, ei as CompletionRequirementWithLiterals, aQ as Conferencing, d7 as ConnectedService, dT as ConsentPolicy, r as CountServicesOptions, d8 as CountServicesRequest, s as CountServicesResponse, P as CreateAddOnGroupOptions, d_ as CreateAddOnGroupRequest, R as CreateAddOnGroupResponse, bS as CreateServiceRequest, bT as CreateServiceResponse, C as CreateServiceValidationErrors, ay as CrudType, eD as CrudTypeWithLiterals, cl as CursorPaging, cH as CursorPagingMetadata, n as CursorQuery, d2 as CursorQueryPagingMethodOneOf, cr as CursorSearchPagingMethodOneOf, co as Cursors, aX as CustomLocationOptions, dc as CustomLocations, bd as CustomOptions, aM as CustomPayment, dd as CustomerLocations, cA as DateHistogramAggregation, cX as DateHistogramResult, cZ as DateHistogramResults, aA as DayOfWeek, eF as DayOfWeekWithLiterals, bE as Delete, W as DeleteAddOnGroupApplicationErrors, T as DeleteAddOnGroupOptions, d$ as DeleteAddOnGroupRequest, e0 as DeleteAddOnGroupResponse, D as DeleteServiceOptions, cb as DeleteServiceRequest, cd as DeleteServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, dp as DisablePricingPlansForServiceRequest, F as DisablePricingPlansForServiceResponse, dz as Discount, dA as DiscountDiscountOneOf, bI as DomainEvent, bJ as DomainEventBodyOneOf, bh as Duration, dv as Empty, z as EnablePricingPlansForServiceApplicationErrors, dm as EnablePricingPlansForServiceRequest, E as EnablePricingPlansForServiceResponse, bK as EntityCreatedEvent, bN as EntityDeletedEvent, bM as EntityUpdatedEvent, dy as EntryPass, ax as Event, e8 as EventMetadata, eC as EventWithLiterals, bt as ExtendedFields, bW as FieldViolation, aK as FixedPayment, aG as Form, d6 as FormDetails, aH as FormSettings, dN as GeoCoordinates, c2 as GetServiceAvailabilityConstraintsRequest, c3 as GetServiceAvailabilityConstraintsResponse, c0 as GetServiceRequest, c1 as GetServiceResponse, cE as GroupByAggregation, cF as GroupByAggregationKindOneOf, cY as GroupByValueResults, dE as HtmlSitePublished, bQ as IdentificationData, bR as IdentificationDataIdOneOf, cv as IncludeMissingValuesOptions, be as IntakeFormPolicy, an as Interval, es as IntervalWithLiterals, dn as InvalidPricingPlan, as as InvalidSlugError, ex as InvalidSlugErrorWithLiterals, bZ as ItemMetadata, bv as Keyword, a_ as LimitEarlyBookingPolicy, a$ as LimitLateBookingPolicy, _ as ListAddOnGroupsByServiceIdOptions, e2 as ListAddOnGroupsByServiceIdRequest, $ as ListAddOnGroupsByServiceIdResponse, dK as Locale, L as Location, aR as LocationOptionsOneOf, a9 as LocationType, ee as LocationTypeWithLiterals, c9 as MaskedService, aC as Media, aD as MediaItem, aE as MediaItemItemOneOf, bP as MessageEnvelope, ak as MissingValues, ep as MissingValuesWithLiterals, ap as Mode, eu as ModeWithLiterals, aL as Money, dl as MoveToNewLocationsOptions, dR as Multilingual, cD as NestedAggregation, cB as NestedAggregationItem, cC as NestedAggregationItemKindOneOf, cL as NestedAggregationResults, cM as NestedAggregationResultsResultOneOf, am as NestedAggregationType, er as NestedAggregationTypeWithLiterals, cU as NestedResultValue, cV as NestedResultValueResultOneOf, c_ as NestedResults, cQ as NestedValueAggregationResult, aP as OnlineBooking, dF as Page, ck as Paging, cn as PagingMetadataV2, cc as ParticipantNotification, b4 as ParticipantsPolicy, aI as Payment, aO as PaymentOptions, aJ as PaymentRateOneOf, bA as PhoneCall, az as PlacementType, eE as PlacementTypeWithLiterals, aZ as PolicyDescription, dI as Properties, dX as PropertiesChange, q as QueryBookingFormsApplicationErrors, o as QueryBookingFormsOptions, d4 as QueryBookingFormsRequest, p as QueryBookingFormsResponse, df as QueryCategoriesFilter, v as QueryCategoriesOptions, de as QueryCategoriesRequest, w as QueryCategoriesResponse, da as QueryLocationsFilter, t as QueryLocationsOptions, d9 as QueryLocationsRequest, u as QueryLocationsResponse, d1 as QueryPoliciesRequest, Q as QueryPoliciesResponse, dg as QueryServicesMultiLanguageRequest, dh as QueryServicesMultiLanguageResponse, cg as QueryServicesRequest, cm as QueryServicesResponse, ch as QueryV2, ci as QueryV2PagingMethodOneOf, cy as RangeAggregation, cK as RangeAggregationResult, cu as RangeBucket, cS as RangeResult, cO as RangeResults, bc as RankingOptions, aa as RankingOrder, ef as RankingOrderWithLiterals, a7 as RateType, ec as RateTypeWithLiterals, bB as ReindexMessage, bC as ReindexMessageActionOneOf, dj as RemovedLocationSessionsAction, dk as RemovedLocationSessionsActionActionOptionsOneOf, aq as RequestedFields, ev as RequestedFieldsWithLiterals, b2 as ReschedulePolicy, aB as ResolutionMethod, eG as ResolutionMethodWithLiterals, bm as ResourceGroup, bn as ResourceIds, bq as ResourceType, b5 as ResourcesPolicy, bL as RestoreInfo, cW as Results, b9 as SaveCreditCardPolicy, cz as ScalarAggregation, cT as ScalarResult, al as ScalarType, eq as ScalarTypeWithLiterals, bf as Schedule, bF as Schema, cG as SearchDetails, cp as SearchServicesRequest, bu as SeoSchema, S as Service, c4 as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, bo as ServiceResource, bp as ServiceResourceSelectionOneOf, ea as ServiceSearchSpec, a6 as ServiceType, eb as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, k as ServicesQueryBuilder, e9 as ServicesQueryResult, bH as ServicesUrlsChanged, a2 as SetAddOnsForGroupApplicationErrors, a0 as SetAddOnsForGroupOptions, e6 as SetAddOnsForGroupRequest, a1 as SetAddOnsForGroupResponse, J as SetCustomSlugApplicationErrors, bG as SetCustomSlugEvent, H as SetCustomSlugOptions, dq as SetCustomSlugRequest, I as SetCustomSlugResponse, K as SetCustomSlugValidationErrors, x as SetServiceLocationsOptions, di as SetServiceLocationsRequest, y as SetServiceLocationsResponse, bx as Settings, dZ as SiteCloned, dY as SiteCreated, dH as SitePropertiesEvent, dG as SitePropertiesNotification, br as Slug, aj as SortDirection, eo as SortDirectionWithLiterals, ah as SortOrder, em as SortOrderWithLiterals, ai as SortType, en as SortTypeWithLiterals, cj as Sorting, ab as SortingMethodType, eg as SortingMethodTypeWithLiterals, dQ as SpecialHourPeriod, c5 as SplitInterval, bj as StaffMediaItem, bk as StaffMediaItemItemOneOf, bi as StaffMember, bl as StaffMemberDetails, ba as StaffSortingPolicy, bb as StaffSortingPolicyOptionsOneOf, au as Status, ez as StatusWithLiterals, aU as StreetAddress, dS as SupportedLanguage, bw as Tag, bz as TaxableAddress, ae as TaxableAddressType, ej as TaxableAddressTypeWithLiterals, dP as TimePeriod, ac as Timing, eh as TimingWithLiterals, dU as Translation, bs as URLs, Z as UpdateAddOnGroupApplicationErrors, X as UpdateAddOnGroupOptions, e1 as UpdateAddOnGroupRequest, Y as UpdateAddOnGroupResponse, U as UpdateService, c6 as UpdateServiceRequest, c7 as UpdateServiceResponse, b as UpdateServiceValidationErrors, bD as Upsert, dD as UserDomainInfoChangedEvent, aF as V2Category, ag as V2RequestedFields, el as V2RequestedFieldsWithLiterals, bU as ValidateServiceRequest, bV as ValidateServiceResponse, V as ValidateSlugOptions, dr as ValidateSlugRequest, M as ValidateSlugResponse, cw as ValueAggregation, cx as ValueAggregationOptionsOneOf, cJ as ValueAggregationResult, cR as ValueResult, cN as ValueResults, aN as VariedPayment, b3 as WaitlistPolicy, af as WebhookIdentityType, ek as WebhookIdentityTypeWithLiterals, eM as bulkCreateServices, eS as bulkDeleteServices, eT as bulkDeleteServicesByFilter, eP as bulkUpdateServices, eQ as bulkUpdateServicesByFilter, f3 as cloneService, eX as countServices, f4 as createAddOnGroup, eL as createService, f5 as deleteAddOnGroup, eR as deleteService, f0 as disablePricingPlansForService, e$ as enablePricingPlansForService, eN as getService, f7 as listAddOnGroupsByServiceId, eI as onServiceCreated, eJ as onServiceDeleted, eK as onServiceUpdated, eW as queryBookingForms, eZ as queryCategories, eY as queryLocations, eV as queryPolicies, eU as queryServices, f8 as setAddOnsForGroup, f1 as setCustomSlug, e_ as setServiceLocations, f6 as updateAddOnGroup, eO as updateService, f2 as validateSlug } from './bookings-services-v2-service-services.universal-vH2KMOVN.mjs';
|
|
1
|
+
import { cz as CursorSearch, x as SearchServicesResponse } from './bookings-services-v2-service-services.universal-Bmp_SJXU.mjs';
|
|
2
|
+
export { ar as Action, bO as ActionEvent, ew as ActionWithLiterals, bX as AddOn, bY as AddOnAddOnInfoOneOf, by as AddOnDetails, A as AddOnGroup, bZ as AddOnGroupDetail, a8 as AddOnPaymentOptions, ed as AddOnPaymentOptionsWithLiterals, dU as Address, dV as AddressHint, aV as AddressLocation, cB as Aggregation, cR as AggregationData, cC as AggregationKindOneOf, d8 as AggregationResults, d9 as AggregationResultsResultOneOf, cY as AggregationResultsScalarResult, ao as AggregationType, et as AggregationTypeWithLiterals, c7 as ApplicationError, bg as AvailabilityConstraints, e7 as BaseEventMetadata, dK as Behavior, dL as BehaviorBehaviorOneOf, dG as Benefit, dF as BenefitNotification, aw as BenefitType, eB as BenefitTypeWithLiterals, b0 as BookAfterStartPolicy, de as BookingForm, aY as BookingPolicy, dc as BookingPolicyWithServices, c8 as BulkActionMetadata, B as BulkCreateServicesOptions, c4 as BulkCreateServicesRequest, j as BulkCreateServicesResponse, t as BulkDeleteServicesByFilterOptions, co as BulkDeleteServicesByFilterRequest, u as BulkDeleteServicesByFilterResponse, r as BulkDeleteServicesOptions, cn as BulkDeleteServicesRequest, s as BulkDeleteServicesResponse, c5 as BulkServiceResult, o as BulkUpdateServicesByFilterOptions, cj as BulkUpdateServicesByFilterRequest, p as BulkUpdateServicesByFilterResponse, m as BulkUpdateServicesOptions, ch as BulkUpdateServicesRequest, n as BulkUpdateServicesResponse, aW as BusinessLocationOptions, dk as BusinessLocations, dX as BusinessSchedule, b6 as CancellationFeePolicy, b1 as CancellationPolicy, b7 as CancellationWindow, b8 as CancellationWindowFeeOneOf, dS as Categories, dD as Category, dC as CategoryNotification, av as CategoryNotificationEvent, eA as CategoryNotificationEventWithLiterals, e2 as ChangeContext, e3 as ChangeContextPayloadOneOf, at as CloneErrors, ey as CloneErrorsWithLiterals, dB as CloneServiceRequest, a2 as CloneServiceResponse, aS as CommonAddress, aT as CommonAddressStreetOneOf, eH as CommonSearchWithEntityContext, ad as CompletionRequirement, ei as CompletionRequirementWithLiterals, aQ as Conferencing, dg as ConnectedService, e0 as ConsentPolicy, G as CountServicesOptions, dh as CountServicesRequest, H as CountServicesResponse, C as CreateAddOnGroupOptions, bS as CreateAddOnGroupRequest, a as CreateAddOnGroupResponse, b$ as CreateServiceRequest, c0 as CreateServiceResponse, i as CreateServiceValidationErrors, ay as CrudType, eD as CrudTypeWithLiterals, cu as CursorPaging, cQ as CursorPagingMetadata, y as CursorQuery, db as CursorQueryPagingMethodOneOf, cA as CursorSearchPagingMethodOneOf, cx as Cursors, aX as CustomLocationOptions, dl as CustomLocations, bd as CustomOptions, aM as CustomPayment, dm as CustomerLocations, cJ as DateHistogramAggregation, d4 as DateHistogramResult, d6 as DateHistogramResults, aA as DayOfWeek, eF as DayOfWeekWithLiterals, bE as Delete, b as DeleteAddOnGroupApplicationErrors, D as DeleteAddOnGroupOptions, bT as DeleteAddOnGroupRequest, bU as DeleteAddOnGroupResponse, q as DeleteServiceOptions, ck as DeleteServiceRequest, cm as DeleteServiceResponse, X as DisablePricingPlansForServiceApplicationErrors, V as DisablePricingPlansForServiceOptions, dy as DisablePricingPlansForServiceRequest, W as DisablePricingPlansForServiceResponse, dI as Discount, dJ as DiscountDiscountOneOf, bI as DomainEvent, bJ as DomainEventBodyOneOf, bh as Duration, dE as Empty, T as EnablePricingPlansForServiceApplicationErrors, dw as EnablePricingPlansForServiceRequest, R as EnablePricingPlansForServiceResponse, bK as EntityCreatedEvent, bN as EntityDeletedEvent, bM as EntityUpdatedEvent, dH as EntryPass, ax as Event, e8 as EventMetadata, eC as EventWithLiterals, bt as ExtendedFields, c3 as FieldViolation, aK as FixedPayment, aG as Form, df as FormDetails, aH as FormSettings, dW as GeoCoordinates, cb as GetServiceAvailabilityConstraintsRequest, cc as GetServiceAvailabilityConstraintsResponse, c9 as GetServiceRequest, ca as GetServiceResponse, cN as GroupByAggregation, cO as GroupByAggregationKindOneOf, d5 as GroupByValueResults, dN as HtmlSitePublished, bQ as IdentificationData, bR as IdentificationDataIdOneOf, cE as IncludeMissingValuesOptions, be as IntakeFormPolicy, an as Interval, es as IntervalWithLiterals, dx as InvalidPricingPlan, as as InvalidSlugError, ex as InvalidSlugErrorWithLiterals, c6 as ItemMetadata, bv as Keyword, a_ as LimitEarlyBookingPolicy, a$ as LimitLateBookingPolicy, L as ListAddOnGroupsByServiceIdOptions, bW as ListAddOnGroupsByServiceIdRequest, e as ListAddOnGroupsByServiceIdResponse, dT as Locale, N as Location, aR as LocationOptionsOneOf, a9 as LocationType, ee as LocationTypeWithLiterals, ci as MaskedService, aC as Media, aD as MediaItem, aE as MediaItemItemOneOf, bP as MessageEnvelope, ak as MissingValues, ep as MissingValuesWithLiterals, ap as Mode, eu as ModeWithLiterals, aL as Money, dv as MoveToNewLocationsOptions, d_ as Multilingual, cM as NestedAggregation, cK as NestedAggregationItem, cL as NestedAggregationItemKindOneOf, cU as NestedAggregationResults, cV as NestedAggregationResultsResultOneOf, am as NestedAggregationType, er as NestedAggregationTypeWithLiterals, d1 as NestedResultValue, d2 as NestedResultValueResultOneOf, d7 as NestedResults, cZ as NestedValueAggregationResult, aP as OnlineBooking, dO as Page, ct as Paging, cw as PagingMetadataV2, cl as ParticipantNotification, b4 as ParticipantsPolicy, aI as Payment, aO as PaymentOptions, aJ as PaymentRateOneOf, bA as PhoneCall, az as PlacementType, eE as PlacementTypeWithLiterals, aZ as PolicyDescription, dR as Properties, e4 as PropertiesChange, F as QueryBookingFormsApplicationErrors, z as QueryBookingFormsOptions, dd as QueryBookingFormsRequest, E as QueryBookingFormsResponse, dp as QueryCategoriesFilter, K as QueryCategoriesOptions, dn as QueryCategoriesRequest, M as QueryCategoriesResponse, dj as QueryLocationsFilter, I as QueryLocationsOptions, di as QueryLocationsRequest, J as QueryLocationsResponse, da as QueryPoliciesRequest, Q as QueryPoliciesResponse, dq as QueryServicesMultiLanguageRequest, dr as QueryServicesMultiLanguageResponse, cp as QueryServicesRequest, cv as QueryServicesResponse, cq as QueryV2, cr as QueryV2PagingMethodOneOf, cH as RangeAggregation, cT as RangeAggregationResult, cD as RangeBucket, c$ as RangeResult, cX as RangeResults, bc as RankingOptions, aa as RankingOrder, ef as RankingOrderWithLiterals, a7 as RateType, ec as RateTypeWithLiterals, bB as ReindexMessage, bC as ReindexMessageActionOneOf, dt as RemovedLocationSessionsAction, du as RemovedLocationSessionsActionActionOptionsOneOf, aq as RequestedFields, ev as RequestedFieldsWithLiterals, b2 as ReschedulePolicy, aB as ResolutionMethod, eG as ResolutionMethodWithLiterals, bm as ResourceGroup, bn as ResourceIds, bq as ResourceType, b5 as ResourcesPolicy, bL as RestoreInfo, d3 as Results, b9 as SaveCreditCardPolicy, cI as ScalarAggregation, d0 as ScalarResult, al as ScalarType, eq as ScalarTypeWithLiterals, bf as Schedule, bF as Schema, cP as SearchDetails, cy as SearchServicesRequest, bu as SeoSchema, h as Service, cd as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, bo as ServiceResource, bp as ServiceResourceSelectionOneOf, ea as ServiceSearchSpec, a6 as ServiceType, eb as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, v as ServicesQueryBuilder, e9 as ServicesQueryResult, bH as ServicesUrlsChanged, g as SetAddOnsForGroupApplicationErrors, S as SetAddOnsForGroupOptions, b_ as SetAddOnsForGroupRequest, f as SetAddOnsForGroupResponse, _ as SetCustomSlugApplicationErrors, bG as SetCustomSlugEvent, Y as SetCustomSlugOptions, dz as SetCustomSlugRequest, Z as SetCustomSlugResponse, $ as SetCustomSlugValidationErrors, O as SetServiceLocationsOptions, ds as SetServiceLocationsRequest, P as SetServiceLocationsResponse, bx as Settings, e6 as SiteCloned, e5 as SiteCreated, dQ as SitePropertiesEvent, dP as SitePropertiesNotification, br as Slug, aj as SortDirection, eo as SortDirectionWithLiterals, ah as SortOrder, em as SortOrderWithLiterals, ai as SortType, en as SortTypeWithLiterals, cs as Sorting, ab as SortingMethodType, eg as SortingMethodTypeWithLiterals, dZ as SpecialHourPeriod, ce as SplitInterval, bj as StaffMediaItem, bk as StaffMediaItemItemOneOf, bi as StaffMember, bl as StaffMemberDetails, ba as StaffSortingPolicy, bb as StaffSortingPolicyOptionsOneOf, au as Status, ez as StatusWithLiterals, aU as StreetAddress, d$ as SupportedLanguage, bw as Tag, bz as TaxableAddress, ae as TaxableAddressType, ej as TaxableAddressTypeWithLiterals, dY as TimePeriod, ac as Timing, eh as TimingWithLiterals, e1 as Translation, bs as URLs, d as UpdateAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, bV as UpdateAddOnGroupRequest, c as UpdateAddOnGroupResponse, k as UpdateService, cf as UpdateServiceRequest, cg as UpdateServiceResponse, l as UpdateServiceValidationErrors, bD as Upsert, dM as UserDomainInfoChangedEvent, aF as V2Category, ag as V2RequestedFields, el as V2RequestedFieldsWithLiterals, c1 as ValidateServiceRequest, c2 as ValidateServiceResponse, a0 as ValidateSlugOptions, dA as ValidateSlugRequest, a1 as ValidateSlugResponse, cF as ValueAggregation, cG as ValueAggregationOptionsOneOf, cS as ValueAggregationResult, c_ as ValueResult, cW as ValueResults, aN as VariedPayment, b3 as WaitlistPolicy, af as WebhookIdentityType, ek as WebhookIdentityTypeWithLiterals, eR as bulkCreateServices, eX as bulkDeleteServices, eY as bulkDeleteServicesByFilter, eU as bulkUpdateServices, eV as bulkUpdateServicesByFilter, f8 as cloneService, f0 as countServices, eL as createAddOnGroup, eQ as createService, eM as deleteAddOnGroup, eW as deleteService, f5 as disablePricingPlansForService, f4 as enablePricingPlansForService, eS as getService, eO as listAddOnGroupsByServiceId, eI as onServiceCreated, eJ as onServiceDeleted, eK as onServiceUpdated, e$ as queryBookingForms, f2 as queryCategories, f1 as queryLocations, e_ as queryPolicies, eZ as queryServices, eP as setAddOnsForGroup, f6 as setCustomSlug, f3 as setServiceLocations, eN as updateAddOnGroup, eT as updateService, f7 as validateSlug } from './bookings-services-v2-service-services.universal-Bmp_SJXU.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: [
|
|
@@ -3155,153 +3302,6 @@ async function cloneService2(sourceServiceId) {
|
|
|
3155
3302
|
throw transformedError;
|
|
3156
3303
|
}
|
|
3157
3304
|
}
|
|
3158
|
-
async function createAddOnGroup2(addOnGroup, options) {
|
|
3159
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3160
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3161
|
-
addOnGroup,
|
|
3162
|
-
serviceId: options?.serviceId
|
|
3163
|
-
});
|
|
3164
|
-
const reqOpts = createAddOnGroup(payload);
|
|
3165
|
-
sideEffects?.onSiteCall?.();
|
|
3166
|
-
try {
|
|
3167
|
-
const result = await httpClient.request(reqOpts);
|
|
3168
|
-
sideEffects?.onSuccess?.(result);
|
|
3169
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3170
|
-
} catch (err) {
|
|
3171
|
-
const transformedError = sdkTransformError(
|
|
3172
|
-
err,
|
|
3173
|
-
{
|
|
3174
|
-
spreadPathsToArguments: {},
|
|
3175
|
-
explicitPathsToArguments: {
|
|
3176
|
-
addOnGroup: "$[0]",
|
|
3177
|
-
serviceId: "$[1].serviceId"
|
|
3178
|
-
},
|
|
3179
|
-
singleArgumentUnchanged: false
|
|
3180
|
-
},
|
|
3181
|
-
["addOnGroup", "options"]
|
|
3182
|
-
);
|
|
3183
|
-
sideEffects?.onError?.(err);
|
|
3184
|
-
throw transformedError;
|
|
3185
|
-
}
|
|
3186
|
-
}
|
|
3187
|
-
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
3188
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3189
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3190
|
-
addOnGroupId,
|
|
3191
|
-
serviceId: options?.serviceId
|
|
3192
|
-
});
|
|
3193
|
-
const reqOpts = deleteAddOnGroup(payload);
|
|
3194
|
-
sideEffects?.onSiteCall?.();
|
|
3195
|
-
try {
|
|
3196
|
-
const result = await httpClient.request(reqOpts);
|
|
3197
|
-
sideEffects?.onSuccess?.(result);
|
|
3198
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3199
|
-
} catch (err) {
|
|
3200
|
-
const transformedError = sdkTransformError(
|
|
3201
|
-
err,
|
|
3202
|
-
{
|
|
3203
|
-
spreadPathsToArguments: {},
|
|
3204
|
-
explicitPathsToArguments: {
|
|
3205
|
-
addOnGroupId: "$[0]",
|
|
3206
|
-
serviceId: "$[1].serviceId"
|
|
3207
|
-
},
|
|
3208
|
-
singleArgumentUnchanged: false
|
|
3209
|
-
},
|
|
3210
|
-
["addOnGroupId", "options"]
|
|
3211
|
-
);
|
|
3212
|
-
sideEffects?.onError?.(err);
|
|
3213
|
-
throw transformedError;
|
|
3214
|
-
}
|
|
3215
|
-
}
|
|
3216
|
-
async function updateAddOnGroup2(addOnGroup, options) {
|
|
3217
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3218
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3219
|
-
addOnGroup,
|
|
3220
|
-
serviceId: options?.serviceId
|
|
3221
|
-
});
|
|
3222
|
-
const reqOpts = updateAddOnGroup(payload);
|
|
3223
|
-
sideEffects?.onSiteCall?.();
|
|
3224
|
-
try {
|
|
3225
|
-
const result = await httpClient.request(reqOpts);
|
|
3226
|
-
sideEffects?.onSuccess?.(result);
|
|
3227
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3228
|
-
} catch (err) {
|
|
3229
|
-
const transformedError = sdkTransformError(
|
|
3230
|
-
err,
|
|
3231
|
-
{
|
|
3232
|
-
spreadPathsToArguments: {},
|
|
3233
|
-
explicitPathsToArguments: {
|
|
3234
|
-
addOnGroup: "$[0]",
|
|
3235
|
-
serviceId: "$[1].serviceId"
|
|
3236
|
-
},
|
|
3237
|
-
singleArgumentUnchanged: false
|
|
3238
|
-
},
|
|
3239
|
-
["addOnGroup", "options"]
|
|
3240
|
-
);
|
|
3241
|
-
sideEffects?.onError?.(err);
|
|
3242
|
-
throw transformedError;
|
|
3243
|
-
}
|
|
3244
|
-
}
|
|
3245
|
-
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
3246
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3247
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3248
|
-
serviceId,
|
|
3249
|
-
groupIds: options?.groupIds
|
|
3250
|
-
});
|
|
3251
|
-
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
3252
|
-
sideEffects?.onSiteCall?.();
|
|
3253
|
-
try {
|
|
3254
|
-
const result = await httpClient.request(reqOpts);
|
|
3255
|
-
sideEffects?.onSuccess?.(result);
|
|
3256
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3257
|
-
} catch (err) {
|
|
3258
|
-
const transformedError = sdkTransformError(
|
|
3259
|
-
err,
|
|
3260
|
-
{
|
|
3261
|
-
spreadPathsToArguments: {},
|
|
3262
|
-
explicitPathsToArguments: {
|
|
3263
|
-
serviceId: "$[0]",
|
|
3264
|
-
groupIds: "$[1].groupIds"
|
|
3265
|
-
},
|
|
3266
|
-
singleArgumentUnchanged: false
|
|
3267
|
-
},
|
|
3268
|
-
["serviceId", "options"]
|
|
3269
|
-
);
|
|
3270
|
-
sideEffects?.onError?.(err);
|
|
3271
|
-
throw transformedError;
|
|
3272
|
-
}
|
|
3273
|
-
}
|
|
3274
|
-
async function setAddOnsForGroup2(serviceId, options) {
|
|
3275
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3276
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3277
|
-
serviceId,
|
|
3278
|
-
groupId: options?.groupId,
|
|
3279
|
-
addOnIds: options?.addOnIds
|
|
3280
|
-
});
|
|
3281
|
-
const reqOpts = setAddOnsForGroup(payload);
|
|
3282
|
-
sideEffects?.onSiteCall?.();
|
|
3283
|
-
try {
|
|
3284
|
-
const result = await httpClient.request(reqOpts);
|
|
3285
|
-
sideEffects?.onSuccess?.(result);
|
|
3286
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3287
|
-
} catch (err) {
|
|
3288
|
-
const transformedError = sdkTransformError(
|
|
3289
|
-
err,
|
|
3290
|
-
{
|
|
3291
|
-
spreadPathsToArguments: {},
|
|
3292
|
-
explicitPathsToArguments: {
|
|
3293
|
-
serviceId: "$[0]",
|
|
3294
|
-
groupId: "$[1].groupId",
|
|
3295
|
-
addOnIds: "$[1].addOnIds"
|
|
3296
|
-
},
|
|
3297
|
-
singleArgumentUnchanged: false
|
|
3298
|
-
},
|
|
3299
|
-
["serviceId", "options"]
|
|
3300
|
-
);
|
|
3301
|
-
sideEffects?.onError?.(err);
|
|
3302
|
-
throw transformedError;
|
|
3303
|
-
}
|
|
3304
|
-
}
|
|
3305
3305
|
export {
|
|
3306
3306
|
Action,
|
|
3307
3307
|
AddOnPaymentOptions,
|