@wix/auto_sdk_bookings_services 1.0.154 → 1.0.156
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-MfJJvs54.d.ts → bookings-services-v2-service-services.universal-lzRAgT6-.d.ts} +488 -453
- package/build/cjs/index.d.ts +98 -88
- package/build/cjs/index.js +302 -302
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +265 -265
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +192 -180
- package/build/cjs/meta.js +203 -203
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-MfJJvs54.d.mts → bookings-services-v2-service-services.universal-lzRAgT6-.d.mts} +488 -453
- package/build/es/index.d.mts +98 -88
- package/build/es/index.mjs +302 -302
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +265 -265
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +192 -180
- 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-MfJJvs54.d.ts → bookings-services-v2-service-services.universal-lzRAgT6-.d.ts} +488 -453
- package/build/internal/cjs/index.d.ts +98 -88
- package/build/internal/cjs/index.js +302 -302
- 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 +265 -265
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +192 -180
- 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-MfJJvs54.d.mts → bookings-services-v2-service-services.universal-lzRAgT6-.d.mts} +488 -453
- package/build/internal/es/index.d.mts +98 -88
- package/build/internal/es/index.mjs +302 -302
- 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 +265 -265
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +192 -180
- 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 { au as Action, bR as ActionEvent, ey as ActionWithLiterals, b_ as AddOn, b$ as AddOnAddOnInfoOneOf, bB as AddOnDetails, A as AddOnGroup, c0 as AddOnGroupDetail, ab as AddOnPaymentOptions, ef as AddOnPaymentOptionsWithLiterals, dW as Address, dX as AddressHint, aY as AddressLocation, cD as Aggregation, cT as AggregationData, cE as AggregationKindOneOf, da as AggregationResults, db as AggregationResultsResultOneOf, c_ as AggregationResultsScalarResult, ar as AggregationType, ev as AggregationTypeWithLiterals, ca as ApplicationError, bj as AvailabilityConstraints, e9 as BaseEventMetadata, dM as Behavior, dN as BehaviorBehaviorOneOf, dI as Benefit, dH as BenefitNotification, az as BenefitType, eD as BenefitTypeWithLiterals, b3 as BookAfterStartPolicy, dg as BookingForm, a$ as BookingPolicy, de as BookingPolicyWithServices, cb as BulkActionMetadata, B as BulkCreateServicesOptions, c7 as BulkCreateServicesRequest, j as BulkCreateServicesResponse, t as BulkDeleteServicesByFilterOptions, cr as BulkDeleteServicesByFilterRequest, u as BulkDeleteServicesByFilterResponse, r as BulkDeleteServicesOptions, cq as BulkDeleteServicesRequest, s as BulkDeleteServicesResponse, c8 as BulkServiceResult, o as BulkUpdateServicesByFilterOptions, cm as BulkUpdateServicesByFilterRequest, p as BulkUpdateServicesByFilterResponse, m as BulkUpdateServicesOptions, ck as BulkUpdateServicesRequest, n as BulkUpdateServicesResponse, aZ as BusinessLocationOptions, dm as BusinessLocations, dZ as BusinessSchedule, b9 as CancellationFeePolicy, b4 as CancellationPolicy, ba as CancellationWindow, bb as CancellationWindowFeeOneOf, dU as Categories, dF as Category, dE as CategoryNotification, ay as CategoryNotificationEvent, eC as CategoryNotificationEventWithLiterals, e4 as ChangeContext, e5 as ChangeContextPayloadOneOf, aw as CloneErrors, eA as CloneErrorsWithLiterals, dD as CloneServiceRequest, a1 as CloneServiceResponse, aV as CommonAddress, aW as CommonAddressStreetOneOf, eJ as CommonSearchWithEntityContext, ag as CompletionRequirement, ek as CompletionRequirementWithLiterals, aT as Conferencing, di as ConnectedService, e2 as ConsentPolicy, F as CountServicesOptions, dj as CountServicesRequest, G as CountServicesResponse, C as CreateAddOnGroupOptions, bV as CreateAddOnGroupRequest, a as CreateAddOnGroupResponse, c2 as CreateServiceRequest, c3 as CreateServiceResponse, i as CreateServiceValidationErrors, aB as CrudType, eF as CrudTypeWithLiterals, cw as CursorPaging, cS as CursorPagingMetadata, x as CursorQuery, dd as CursorQueryPagingMethodOneOf, cC as CursorSearchPagingMethodOneOf, cz as Cursors, a_ as CustomLocationOptions, dn as CustomLocations, bg as CustomOptions, aP as CustomPayment, dp as CustomerLocations, cL as DateHistogramAggregation, d6 as DateHistogramResult, d8 as DateHistogramResults, aD as DayOfWeek, eH as DayOfWeekWithLiterals, bH as Delete, b as DeleteAddOnGroupApplicationErrors, D as DeleteAddOnGroupOptions, bW as DeleteAddOnGroupRequest, bX as DeleteAddOnGroupResponse, q as DeleteServiceOptions, cn as DeleteServiceRequest, cp as DeleteServiceResponse, W as DisablePricingPlansForServiceApplicationErrors, T as DisablePricingPlansForServiceOptions, dA as DisablePricingPlansForServiceRequest, V as DisablePricingPlansForServiceResponse, dK as Discount, dL as DiscountDiscountOneOf, bL as DomainEvent, bM as DomainEventBodyOneOf, bk as Duration, dG as Empty, R as EnablePricingPlansForServiceApplicationErrors, dy as EnablePricingPlansForServiceRequest, P as EnablePricingPlansForServiceResponse, bN as EntityCreatedEvent, bQ as EntityDeletedEvent, bP as EntityUpdatedEvent, dJ as EntryPass, aA as Event, ea as EventMetadata, eE as EventWithLiterals, bw as ExtendedFields, c6 as FieldViolation, aN as FixedPayment, aJ as Form, dh as FormDetails, aK as FormSettings, dY as GeoCoordinates, ce as GetServiceAvailabilityConstraintsRequest, cf as GetServiceAvailabilityConstraintsResponse, cc as GetServiceRequest, cd as GetServiceResponse, cP as GroupByAggregation, cQ as GroupByAggregationKindOneOf, d7 as GroupByValueResults, dP as HtmlSitePublished, bT as IdentificationData, bU as IdentificationDataIdOneOf, cG as IncludeMissingValuesOptions, bh as IntakeFormPolicy, aq as Interval, eu as IntervalWithLiterals, dz as InvalidPricingPlan, av as InvalidSlugError, ez as InvalidSlugErrorWithLiterals, c9 as ItemMetadata, by as Keyword, b1 as LimitEarlyBookingPolicy, b2 as LimitLateBookingPolicy, L as ListAddOnGroupsByServiceIdOptions, bZ as ListAddOnGroupsByServiceIdRequest, e as ListAddOnGroupsByServiceIdResponse, dV as Locale, M as Location, aU as LocationOptionsOneOf, ac as LocationType, eg as LocationTypeWithLiterals, cl as MaskedService, aF as Media, aG as MediaItem, aH as MediaItemItemOneOf, bS as MessageEnvelope, an as MissingValues, er as MissingValuesWithLiterals, as as Mode, ew as ModeWithLiterals, aO as Money, dx as MoveToNewLocationsOptions, e0 as Multilingual, cO as NestedAggregation, cM as NestedAggregationItem, cN as NestedAggregationItemKindOneOf, cW as NestedAggregationResults, cX as NestedAggregationResultsResultOneOf, ap as NestedAggregationType, et as NestedAggregationTypeWithLiterals, d3 as NestedResultValue, d4 as NestedResultValueResultOneOf, d9 as NestedResults, c$ as NestedValueAggregationResult, aS as OnlineBooking, dQ as Page, cv as Paging, cy as PagingMetadataV2, co as ParticipantNotification, b7 as ParticipantsPolicy, aL as Payment, aR as PaymentOptions, aM as PaymentRateOneOf, bD as PhoneCall, aC as PlacementType, eG as PlacementTypeWithLiterals, b0 as PolicyDescription, dT as Properties, e6 as PropertiesChange, E as QueryBookingFormsApplicationErrors, y as QueryBookingFormsOptions, df as QueryBookingFormsRequest, z as QueryBookingFormsResponse, dr as QueryCategoriesFilter, J as QueryCategoriesOptions, dq as QueryCategoriesRequest, K as QueryCategoriesResponse, dl as QueryLocationsFilter, H as QueryLocationsOptions, dk as QueryLocationsRequest, I as QueryLocationsResponse, dc as QueryPoliciesRequest, Q as QueryPoliciesResponse, ds as QueryServicesMultiLanguageRequest, dt as QueryServicesMultiLanguageResponse, a7 as QueryServicesOptions, cs as QueryServicesRequest, cx as QueryServicesResponse, a5 as QueryV2, ct as QueryV2PagingMethodOneOf, cJ as RangeAggregation, cV as RangeAggregationResult, cF as RangeBucket, d1 as RangeResult, cZ as RangeResults, bf as RankingOptions, ad as RankingOrder, eh as RankingOrderWithLiterals, aa as RateType, ee as RateTypeWithLiterals, bE as ReindexMessage, bF as ReindexMessageActionOneOf, dv as RemovedLocationSessionsAction, dw as RemovedLocationSessionsActionActionOptionsOneOf, at as RequestedFields, ex as RequestedFieldsWithLiterals, b5 as ReschedulePolicy, aE as ResolutionMethod, eI as ResolutionMethodWithLiterals, bp as ResourceGroup, bq as ResourceIds, bt as ResourceType, b8 as ResourcesPolicy, bO as RestoreInfo, d5 as Results, bc as SaveCreditCardPolicy, cK as ScalarAggregation, d2 as ScalarResult, ao as ScalarType, es as ScalarTypeWithLiterals, bi as Schedule, bI as Schema, cR as SearchDetails, cA as SearchServicesRequest, bx as SeoSchema, h as Service, cg as ServiceAvailabilityConstraints, a2 as ServiceCreatedEnvelope, a3 as ServiceDeletedEnvelope, br as ServiceResource, bs as ServiceResourceSelectionOneOf, ec as ServiceSearchSpec, a9 as ServiceType, ed as ServiceTypeWithLiterals, a4 as ServiceUpdatedEnvelope, a8 as ServicesQueryBuilder, eb as ServicesQueryResult, bK as ServicesUrlsChanged, g as SetAddOnsForGroupApplicationErrors, S as SetAddOnsForGroupOptions, c1 as SetAddOnsForGroupRequest, f as SetAddOnsForGroupResponse, Z as SetCustomSlugApplicationErrors, bJ as SetCustomSlugEvent, X as SetCustomSlugOptions, dB as SetCustomSlugRequest, Y as SetCustomSlugResponse, _ as SetCustomSlugValidationErrors, N as SetServiceLocationsOptions, du as SetServiceLocationsRequest, O as SetServiceLocationsResponse, bA as Settings, e8 as SiteCloned, e7 as SiteCreated, dS as SitePropertiesEvent, dR as SitePropertiesNotification, bu as Slug, am as SortDirection, eq as SortDirectionWithLiterals, ak as SortOrder, eo as SortOrderWithLiterals, al as SortType, ep as SortTypeWithLiterals, cu as Sorting, ae as SortingMethodType, ei as SortingMethodTypeWithLiterals, d$ as SpecialHourPeriod, ch as SplitInterval, bm as StaffMediaItem, bn as StaffMediaItemItemOneOf, bl as StaffMember, bo as StaffMemberDetails, bd as StaffSortingPolicy, be as StaffSortingPolicyOptionsOneOf, ax as Status, eB as StatusWithLiterals, aX as StreetAddress, e1 as SupportedLanguage, bz as Tag, bC as TaxableAddress, ah as TaxableAddressType, el as TaxableAddressTypeWithLiterals, d_ as TimePeriod, af as Timing, ej as TimingWithLiterals, e3 as Translation, bv as URLs, d as UpdateAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, bY as UpdateAddOnGroupRequest, c as UpdateAddOnGroupResponse, k as UpdateService, ci as UpdateServiceRequest, cj as UpdateServiceResponse, l as UpdateServiceValidationErrors, bG as Upsert, dO as UserDomainInfoChangedEvent, aI as V2Category, aj as V2RequestedFields, en as V2RequestedFieldsWithLiterals, c4 as ValidateServiceRequest, c5 as ValidateServiceResponse, $ as ValidateSlugOptions, dC as ValidateSlugRequest, a0 as ValidateSlugResponse, cH as ValueAggregation, cI as ValueAggregationOptionsOneOf, cU as ValueAggregationResult, d0 as ValueResult, cY as ValueResults, aQ as VariedPayment, b6 as WaitlistPolicy, ai as WebhookIdentityType, em as WebhookIdentityTypeWithLiterals, eT as bulkCreateServices, eZ as bulkDeleteServices, e_ as bulkDeleteServicesByFilter, eW as bulkUpdateServices, eX as bulkUpdateServicesByFilter, fa as cloneService, f2 as countServices, eN as createAddOnGroup, eS as createService, eO as deleteAddOnGroup, eY as deleteService, f7 as disablePricingPlansForService, f6 as enablePricingPlansForService, eU as getService, eQ as listAddOnGroupsByServiceId, eK as onServiceCreated, eL as onServiceDeleted, eM as onServiceUpdated, f1 as queryBookingForms, f4 as queryCategories, f3 as queryLocations, f0 as queryPolicies, e$ as queryServices, eR as setAddOnsForGroup, f8 as setCustomSlug, f5 as setServiceLocations, a6 as typedQueryServices, eP as updateAddOnGroup, eV as updateService, f9 as validateSlug } from './bookings-services-v2-service-services.universal-MfJJvs54.mjs';
|
|
1
|
+
import { cs as CursorSearch, l as SearchServicesResponse } from './bookings-services-v2-service-services.universal-lzRAgT6-.mjs';
|
|
2
|
+
export { au as Action, bR as ActionEvent, ey as ActionWithLiterals, e5 as AddOn, e6 as AddOnAddOnInfoOneOf, bB as AddOnDetails, N as AddOnGroup, e7 as AddOnGroupDetail, ab 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, ar 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, az 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, ay as CategoryNotificationEvent, eC as CategoryNotificationEventWithLiterals, dX as ChangeContext, dY as ChangeContextPayloadOneOf, aw as CloneErrors, eA as CloneErrorsWithLiterals, du as CloneServiceRequest, M as CloneServiceResponse, aV as CommonAddress, aW as CommonAddressStreetOneOf, eJ as CommonSearchWithEntityContext, ag as CompletionRequirement, ek as CompletionRequirementWithLiterals, aT as Conferencing, d9 as ConnectedService, dV as ConsentPolicy, q as CountServicesOptions, da as CountServicesRequest, r as CountServicesResponse, O as CreateAddOnGroupOptions, e0 as CreateAddOnGroupRequest, P as CreateAddOnGroupResponse, bV as CreateServiceRequest, bW as CreateServiceResponse, C as CreateServiceValidationErrors, aB 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, aP as CustomPayment, df as CustomerLocations, cC as DateHistogramAggregation, cZ as DateHistogramResult, c$ as DateHistogramResults, aD as DayOfWeek, eH as DayOfWeekWithLiterals, bH as Delete, T as DeleteAddOnGroupApplicationErrors, R 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, aA as Event, ea as EventMetadata, eE as EventWithLiterals, bw as ExtendedFields, bZ as FieldViolation, aN as FixedPayment, aJ as Form, d8 as FormDetails, aK 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, aq as Interval, eu as IntervalWithLiterals, dq as InvalidPricingPlan, av as InvalidSlugError, ez as InvalidSlugErrorWithLiterals, c0 as ItemMetadata, by as Keyword, b1 as LimitEarlyBookingPolicy, b2 as LimitLateBookingPolicy, Z as ListAddOnGroupsByServiceIdOptions, e4 as ListAddOnGroupsByServiceIdRequest, _ as ListAddOnGroupsByServiceIdResponse, dM as Locale, L as Location, aU as LocationOptionsOneOf, ac as LocationType, eg as LocationTypeWithLiterals, cc as MaskedService, aF as Media, aG as MediaItem, aH as MediaItemItemOneOf, bS as MessageEnvelope, an as MissingValues, er as MissingValuesWithLiterals, as as Mode, ew as ModeWithLiterals, aO as Money, dn as MoveToNewLocationsOptions, dT as Multilingual, cF as NestedAggregation, cD as NestedAggregationItem, cE as NestedAggregationItemKindOneOf, cN as NestedAggregationResults, cO as NestedAggregationResultsResultOneOf, ap as NestedAggregationType, et as NestedAggregationTypeWithLiterals, cW as NestedResultValue, cX as NestedResultValueResultOneOf, d0 as NestedResults, cS as NestedValueAggregationResult, aS as OnlineBooking, dH as Page, cm as Paging, cp as PagingMetadataV2, cf as ParticipantNotification, b7 as ParticipantsPolicy, aL as Payment, aR as PaymentOptions, aM as PaymentRateOneOf, bD as PhoneCall, aC 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, a7 as QueryServicesOptions, cj as QueryServicesRequest, co as QueryServicesResponse, a5 as QueryV2, ck as QueryV2PagingMethodOneOf, cA as RangeAggregation, cM as RangeAggregationResult, cw as RangeBucket, cU as RangeResult, cQ as RangeResults, bf as RankingOptions, ad as RankingOrder, eh as RankingOrderWithLiterals, aa as RateType, ee as RateTypeWithLiterals, bE as ReindexMessage, bF as ReindexMessageActionOneOf, dl as RemovedLocationSessionsAction, dm as RemovedLocationSessionsActionActionOptionsOneOf, at as RequestedFields, ex as RequestedFieldsWithLiterals, b5 as ReschedulePolicy, aE 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, ao 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, a2 as ServiceCreatedEnvelope, a3 as ServiceDeletedEnvelope, br as ServiceResource, bs as ServiceResourceSelectionOneOf, ec as ServiceSearchSpec, a9 as ServiceType, ed as ServiceTypeWithLiterals, a4 as ServiceUpdatedEnvelope, a8 as ServicesQueryBuilder, eb as ServicesQueryResult, bK as ServicesUrlsChanged, a1 as SetAddOnsForGroupApplicationErrors, $ as SetAddOnsForGroupOptions, e8 as SetAddOnsForGroupRequest, a0 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, am as SortDirection, eq as SortDirectionWithLiterals, ak as SortOrder, eo as SortOrderWithLiterals, al as SortType, ep as SortTypeWithLiterals, cl as Sorting, ae 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, ax as Status, eB as StatusWithLiterals, aX as StreetAddress, dU as SupportedLanguage, bz as Tag, bC as TaxableAddress, ah as TaxableAddressType, el as TaxableAddressTypeWithLiterals, dR as TimePeriod, af as Timing, ej as TimingWithLiterals, dW as Translation, bv as URLs, Y as UpdateAddOnGroupApplicationErrors, W as UpdateAddOnGroupOptions, e3 as UpdateAddOnGroupRequest, X as UpdateAddOnGroupResponse, U as UpdateService, c9 as UpdateServiceRequest, ca as UpdateServiceResponse, b as UpdateServiceValidationErrors, bG as Upsert, dF as UserDomainInfoChangedEvent, aI as V2Category, aj 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, aQ as VariedPayment, b6 as WaitlistPolicy, ai 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-lzRAgT6-.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 resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
19
19
|
const domainToMappings = {
|
|
20
20
|
"*.dev.wix-code.com": [
|
|
21
21
|
{
|
|
@@ -130,7 +130,7 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
130
130
|
};
|
|
131
131
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
134
134
|
const domainToMappings = {
|
|
135
135
|
"*.dev.wix-code.com": [
|
|
136
136
|
{
|
|
@@ -246,117 +246,6 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(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
|
-
}
|
|
360
249
|
function createService(payload) {
|
|
361
250
|
function __createService({ host }) {
|
|
362
251
|
const serializedData = transformPaths(payload, [
|
|
@@ -1706,6 +1595,117 @@ function cloneService(payload) {
|
|
|
1706
1595
|
}
|
|
1707
1596
|
return __cloneService;
|
|
1708
1597
|
}
|
|
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,158 +1923,11 @@ 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
|
-
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
|
-
[
|
|
1926
|
+
async function createService2(service) {
|
|
1927
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1928
|
+
const payload = transformPaths2(
|
|
1929
|
+
renameKeysFromSDKRequestToRESTRequest({ service }),
|
|
1930
|
+
[
|
|
2078
1931
|
{
|
|
2079
1932
|
transformFn: transformSDKImageToRESTImage,
|
|
2080
1933
|
paths: [
|
|
@@ -3362,6 +3215,153 @@ async function cloneService2(sourceServiceId) {
|
|
|
3362
3215
|
throw transformedError;
|
|
3363
3216
|
}
|
|
3364
3217
|
}
|
|
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
3365
|
export {
|
|
3366
3366
|
Action,
|
|
3367
3367
|
AddOnPaymentOptions,
|