@wix/auto_sdk_bookings_services 1.0.132 → 1.0.134
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-C1G4Y8fa.d.ts → bookings-services-v2-service-services.universal-BdI6PnqP.d.ts} +279 -279
- package/build/cjs/index.d.ts +60 -60
- 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 +1238 -121
- package/build/cjs/meta.js +458 -200
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-C1G4Y8fa.d.mts → bookings-services-v2-service-services.universal-BdI6PnqP.d.mts} +279 -279
- package/build/es/index.d.mts +60 -60
- 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 +1238 -121
- package/build/es/meta.mjs +428 -200
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-C1G4Y8fa.d.ts → bookings-services-v2-service-services.universal-BdI6PnqP.d.ts} +279 -279
- package/build/internal/cjs/index.d.ts +60 -60
- 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 +1238 -121
- package/build/internal/cjs/meta.js +458 -200
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-C1G4Y8fa.d.mts → bookings-services-v2-service-services.universal-BdI6PnqP.d.mts} +279 -279
- package/build/internal/es/index.d.mts +60 -60
- 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 +1238 -121
- package/build/internal/es/meta.mjs +428 -200
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ap as Action, bK as ActionEvent, er as ActionWithLiterals, e0 as AddOn, e1 as AddOnAddOnInfoOneOf, bv as AddOnDetails, O as AddOnGroup, e2 as AddOnGroupDetail, a8 as AddOnPaymentOptions, ea as AddOnPaymentOptionsWithLiterals, dI as Address, dJ as AddressHint, aT as AddressLocation, cp as Aggregation, cF as AggregationData, cq as AggregationKindOneOf, cY as AggregationResults, cZ as AggregationResultsResultOneOf, cM as AggregationResultsScalarResult, am as AggregationType, eo as AggregationTypeWithLiterals, bX as ApplicationError, bd as AvailabilityConstraints, e4 as BaseEventMetadata, dy as Behavior, dz as BehaviorBehaviorOneOf, du as Benefit, dt as BenefitNotification, au as BenefitType, ew as BenefitTypeWithLiterals, a_ as BookAfterStartPolicy, d2 as BookingForm, aW as BookingPolicy, d0 as BookingPolicyWithServices, bY as BulkActionMetadata, B as BulkCreateServicesOptions, bU as BulkCreateServicesRequest, a as BulkCreateServicesResponse, i as BulkDeleteServicesByFilterOptions, cc as BulkDeleteServicesByFilterRequest, j as BulkDeleteServicesByFilterResponse, g as BulkDeleteServicesOptions, cb as BulkDeleteServicesRequest, h as BulkDeleteServicesResponse, bV as BulkServiceResult, e as BulkUpdateServicesByFilterOptions, c7 as BulkUpdateServicesByFilterRequest, f as BulkUpdateServicesByFilterResponse, c as BulkUpdateServicesOptions, c5 as BulkUpdateServicesRequest, d as BulkUpdateServicesResponse, aU as BusinessLocationOptions, d8 as BusinessLocations, dL as BusinessSchedule, b4 as CancellationFeePolicy, a$ as CancellationPolicy, b5 as CancellationWindow, b6 as CancellationWindowFeeOneOf, dG as Categories, dr as Category, dq as CategoryNotification, at as CategoryNotificationEvent, ev as CategoryNotificationEventWithLiterals, dS as ChangeContext, dT as ChangeContextPayloadOneOf, ar as CloneErrors, et as CloneErrorsWithLiterals, dp as CloneServiceRequest, N as CloneServiceResponse, aQ as CommonAddress, aR as CommonAddressStreetOneOf, eC as CommonSearchWithEntityContext, aO as Conferencing, d4 as ConnectedService, dQ as ConsentPolicy, r as CountServicesOptions, d5 as CountServicesRequest, s as CountServicesResponse, P as CreateAddOnGroupOptions, dX as CreateAddOnGroupRequest, R as CreateAddOnGroupResponse, bP as CreateServiceRequest, bQ as CreateServiceResponse, C as CreateServiceValidationErrors, aw as CrudType, ey as CrudTypeWithLiterals, ci as CursorPaging, cE as CursorPagingMetadata, n as CursorQuery, c$ as CursorQueryPagingMethodOneOf, co as CursorSearchPagingMethodOneOf, cl as Cursors, aV as CustomLocationOptions, d9 as CustomLocations, bb as CustomOptions, aK as CustomPayment, da as CustomerLocations, cx as DateHistogramAggregation, cU as DateHistogramResult, cW as DateHistogramResults, ay as DayOfWeek, eA as DayOfWeekWithLiterals, bA as Delete, W as DeleteAddOnGroupApplicationErrors, T as DeleteAddOnGroupOptions, dY as DeleteAddOnGroupRequest, dZ as DeleteAddOnGroupResponse, D as DeleteServiceOptions, c8 as DeleteServiceRequest, ca as DeleteServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, dl as DisablePricingPlansForServiceRequest, F as DisablePricingPlansForServiceResponse, dw as Discount, dx as DiscountDiscountOneOf, bE as DomainEvent, bF as DomainEventBodyOneOf, be as Duration, ds as Empty, z as EnablePricingPlansForServiceApplicationErrors, dj as EnablePricingPlansForServiceRequest, E as EnablePricingPlansForServiceResponse, bG as EntityCreatedEvent, bJ as EntityDeletedEvent, bI as EntityUpdatedEvent, dv as EntryPass, av as Event, e5 as EventMetadata, ex as EventWithLiterals, bq as ExtendedFields, bT as FieldViolation, aI as FixedPayment, aE as Form, d3 as FormDetails, aF as FormSettings, dK as GeoCoordinates, b$ as GetServiceAvailabilityConstraintsRequest, c0 as GetServiceAvailabilityConstraintsResponse, bZ as GetServiceRequest, b_ as GetServiceResponse, cB as GroupByAggregation, cC as GroupByAggregationKindOneOf, cV as GroupByValueResults, dB as HtmlSitePublished, bM as IdentificationData, bN as IdentificationDataIdOneOf, cs as IncludeMissingValuesOptions, bO as IntakeFormPolicy, al as Interval, en as IntervalWithLiterals, dk as InvalidPricingPlan, aq as InvalidSlugError, es as InvalidSlugErrorWithLiterals, bW as ItemMetadata, bs as Keyword, aY as LimitEarlyBookingPolicy, aZ as LimitLateBookingPolicy, _ as ListAddOnGroupsByServiceIdOptions, d$ as ListAddOnGroupsByServiceIdRequest, $ as ListAddOnGroupsByServiceIdResponse, dH as Locale, L as Location, aP as LocationOptionsOneOf, a9 as LocationType, eb as LocationTypeWithLiterals, c6 as MaskedService, aA as Media, aB as MediaItem, aC as MediaItemItemOneOf, bL as MessageEnvelope, ai as MissingValues, ek as MissingValuesWithLiterals, an as Mode, ep as ModeWithLiterals, aJ as Money, di as MoveToNewLocationsOptions, dO as Multilingual, cA as NestedAggregation, cy as NestedAggregationItem, cz as NestedAggregationItemKindOneOf, cI as NestedAggregationResults, cJ as NestedAggregationResultsResultOneOf, ak as NestedAggregationType, em as NestedAggregationTypeWithLiterals, cR as NestedResultValue, cS as NestedResultValueResultOneOf, cX as NestedResults, cN as NestedValueAggregationResult, aN as OnlineBooking, dC as Page, ch as Paging, ck as PagingMetadataV2, c9 as ParticipantNotification, b2 as ParticipantsPolicy, aG as Payment, aM as PaymentOptions, aH as PaymentRateOneOf, ax as PlacementType, ez as PlacementTypeWithLiterals, aX as PolicyDescription, dF as Properties, dU as PropertiesChange, q as QueryBookingFormsApplicationErrors, o as QueryBookingFormsOptions, d1 as QueryBookingFormsRequest, p as QueryBookingFormsResponse, dc as QueryCategoriesFilter, v as QueryCategoriesOptions, db as QueryCategoriesRequest, w as QueryCategoriesResponse, d7 as QueryLocationsFilter, t as QueryLocationsOptions, d6 as QueryLocationsRequest, u as QueryLocationsResponse, c_ as QueryPoliciesRequest, Q as QueryPoliciesResponse, dd as QueryServicesMultiLanguageRequest, de as QueryServicesMultiLanguageResponse, cd as QueryServicesRequest, cj as QueryServicesResponse, ce as QueryV2, cf as QueryV2PagingMethodOneOf, cv as RangeAggregation, cH as RangeAggregationResult, cr as RangeBucket, cP as RangeResult, cL as RangeResults, ba as RankingOptions, aa as RankingOrder, ec as RankingOrderWithLiterals, a7 as RateType, e9 as RateTypeWithLiterals, bx as ReindexMessage, by as ReindexMessageActionOneOf, dg as RemovedLocationSessionsAction, dh as RemovedLocationSessionsActionActionOptionsOneOf, ao as RequestedFields, eq as RequestedFieldsWithLiterals, b0 as ReschedulePolicy, az as ResolutionMethod, eB as ResolutionMethodWithLiterals, bj as ResourceGroup, bk as ResourceIds, bn as ResourceType, b3 as ResourcesPolicy, bH as RestoreInfo, cT as Results, b7 as SaveCreditCardPolicy, cw as ScalarAggregation, cQ as ScalarResult, aj as ScalarType, el as ScalarTypeWithLiterals, bc as Schedule, bB as Schema, cD as SearchDetails, cm as SearchServicesRequest, br as SeoSchema, S as Service, c1 as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, bl as ServiceResource, bm as ServiceResourceSelectionOneOf, e7 as ServiceSearchSpec, a6 as ServiceType, e8 as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, k as ServicesQueryBuilder, e6 as ServicesQueryResult, bD as ServicesUrlsChanged, a2 as SetAddOnsForGroupApplicationErrors, a0 as SetAddOnsForGroupOptions, e3 as SetAddOnsForGroupRequest, a1 as SetAddOnsForGroupResponse, J as SetCustomSlugApplicationErrors, bC as SetCustomSlugEvent, H as SetCustomSlugOptions, dm as SetCustomSlugRequest, I as SetCustomSlugResponse, K as SetCustomSlugValidationErrors, x as SetServiceLocationsOptions, df as SetServiceLocationsRequest, y as SetServiceLocationsResponse, bu as Settings, dW as SiteCloned, dV as SiteCreated, dE as SitePropertiesEvent, dD as SitePropertiesNotification, bo as Slug, ah as SortDirection, ej as SortDirectionWithLiterals, af as SortOrder, eh as SortOrderWithLiterals, ag as SortType, ei as SortTypeWithLiterals, cg as Sorting, ab as SortingMethodType, ed as SortingMethodTypeWithLiterals, dN as SpecialHourPeriod, c2 as SplitInterval, bg as StaffMediaItem, bh as StaffMediaItemItemOneOf, bf as StaffMember, bi as StaffMemberDetails, b8 as StaffSortingPolicy, b9 as StaffSortingPolicyOptionsOneOf, as as Status, eu as StatusWithLiterals, aS as StreetAddress, dP as SupportedLanguage, bt as Tag, bw as TaxableAddress, ac as TaxableAddressType, ee as TaxableAddressTypeWithLiterals, dM as TimePeriod, dR as Translation, bp as URLs, Z as UpdateAddOnGroupApplicationErrors, X as UpdateAddOnGroupOptions, d_ as UpdateAddOnGroupRequest, Y as UpdateAddOnGroupResponse, U as UpdateService, c3 as UpdateServiceRequest, c4 as UpdateServiceResponse, b as UpdateServiceValidationErrors, bz as Upsert, dA as UserDomainInfoChangedEvent, aD as V2Category, ae as V2RequestedFields, eg as V2RequestedFieldsWithLiterals, bR as ValidateServiceRequest, bS as ValidateServiceResponse, V as ValidateSlugOptions, dn as ValidateSlugRequest, M as ValidateSlugResponse, ct as ValueAggregation, cu as ValueAggregationOptionsOneOf, cG as ValueAggregationResult, cO as ValueResult, cK as ValueResults, aL as VariedPayment, b1 as WaitlistPolicy, ad as WebhookIdentityType, ef as WebhookIdentityTypeWithLiterals, eH as bulkCreateServices, eN as bulkDeleteServices, eO as bulkDeleteServicesByFilter, eK as bulkUpdateServices, eL as bulkUpdateServicesByFilter, e_ as cloneService, eS as countServices, e$ as createAddOnGroup, eG as createService, f0 as deleteAddOnGroup, eM as deleteService, eX as disablePricingPlansForService, eW as enablePricingPlansForService, eI as getService, f2 as listAddOnGroupsByServiceId, eD as onServiceCreated, eE as onServiceDeleted, eF as onServiceUpdated, eR as queryBookingForms, eU as queryCategories, eT as queryLocations, eQ as queryPolicies, eP as queryServices, f3 as setAddOnsForGroup, eY as setCustomSlug, eV as setServiceLocations, f1 as updateAddOnGroup, eJ as updateService, eZ as validateSlug } from './bookings-services-v2-service-services.universal-C1G4Y8fa.mjs';
|
|
1
|
+
import { cw as CursorSearch, x as SearchServicesResponse } from './bookings-services-v2-service-services.universal-BdI6PnqP.mjs';
|
|
2
|
+
export { ap as Action, bL as ActionEvent, er as ActionWithLiterals, bU as AddOn, bV as AddOnAddOnInfoOneOf, bw as AddOnDetails, A as AddOnGroup, bW as AddOnGroupDetail, a8 as AddOnPaymentOptions, ea as AddOnPaymentOptionsWithLiterals, dR as Address, dS as AddressHint, aT as AddressLocation, cy as Aggregation, cO as AggregationData, cz as AggregationKindOneOf, d5 as AggregationResults, d6 as AggregationResultsResultOneOf, cV as AggregationResultsScalarResult, am as AggregationType, eo as AggregationTypeWithLiterals, c4 as ApplicationError, be as AvailabilityConstraints, e4 as BaseEventMetadata, dH as Behavior, dI as BehaviorBehaviorOneOf, dD as Benefit, dC as BenefitNotification, au as BenefitType, ew as BenefitTypeWithLiterals, a_ as BookAfterStartPolicy, db as BookingForm, aW as BookingPolicy, d9 as BookingPolicyWithServices, c5 as BulkActionMetadata, B as BulkCreateServicesOptions, c1 as BulkCreateServicesRequest, j as BulkCreateServicesResponse, t as BulkDeleteServicesByFilterOptions, cl as BulkDeleteServicesByFilterRequest, u as BulkDeleteServicesByFilterResponse, r as BulkDeleteServicesOptions, ck as BulkDeleteServicesRequest, s as BulkDeleteServicesResponse, c2 as BulkServiceResult, o as BulkUpdateServicesByFilterOptions, cg as BulkUpdateServicesByFilterRequest, p as BulkUpdateServicesByFilterResponse, m as BulkUpdateServicesOptions, ce as BulkUpdateServicesRequest, n as BulkUpdateServicesResponse, aU as BusinessLocationOptions, dh as BusinessLocations, dU as BusinessSchedule, b4 as CancellationFeePolicy, a$ as CancellationPolicy, b5 as CancellationWindow, b6 as CancellationWindowFeeOneOf, dP as Categories, dA as Category, dz as CategoryNotification, at as CategoryNotificationEvent, ev as CategoryNotificationEventWithLiterals, d$ as ChangeContext, e0 as ChangeContextPayloadOneOf, ar as CloneErrors, et as CloneErrorsWithLiterals, dy as CloneServiceRequest, a2 as CloneServiceResponse, aQ as CommonAddress, aR as CommonAddressStreetOneOf, eC as CommonSearchWithEntityContext, aO as Conferencing, dd as ConnectedService, dZ as ConsentPolicy, G as CountServicesOptions, de as CountServicesRequest, H as CountServicesResponse, C as CreateAddOnGroupOptions, bP as CreateAddOnGroupRequest, a as CreateAddOnGroupResponse, bY as CreateServiceRequest, bZ as CreateServiceResponse, i as CreateServiceValidationErrors, aw as CrudType, ey as CrudTypeWithLiterals, cr as CursorPaging, cN as CursorPagingMetadata, y as CursorQuery, d8 as CursorQueryPagingMethodOneOf, cx as CursorSearchPagingMethodOneOf, cu as Cursors, aV as CustomLocationOptions, di as CustomLocations, bb as CustomOptions, aK as CustomPayment, dj as CustomerLocations, cG as DateHistogramAggregation, d1 as DateHistogramResult, d3 as DateHistogramResults, ay as DayOfWeek, eA as DayOfWeekWithLiterals, bB as Delete, b as DeleteAddOnGroupApplicationErrors, D as DeleteAddOnGroupOptions, bQ as DeleteAddOnGroupRequest, bR as DeleteAddOnGroupResponse, q as DeleteServiceOptions, ch as DeleteServiceRequest, cj as DeleteServiceResponse, X as DisablePricingPlansForServiceApplicationErrors, V as DisablePricingPlansForServiceOptions, dv as DisablePricingPlansForServiceRequest, W as DisablePricingPlansForServiceResponse, dF as Discount, dG as DiscountDiscountOneOf, bF as DomainEvent, bG as DomainEventBodyOneOf, bf as Duration, dB as Empty, T as EnablePricingPlansForServiceApplicationErrors, dt as EnablePricingPlansForServiceRequest, R as EnablePricingPlansForServiceResponse, bH as EntityCreatedEvent, bK as EntityDeletedEvent, bJ as EntityUpdatedEvent, dE as EntryPass, av as Event, e5 as EventMetadata, ex as EventWithLiterals, br as ExtendedFields, c0 as FieldViolation, aI as FixedPayment, aE as Form, dc as FormDetails, aF as FormSettings, dT as GeoCoordinates, c8 as GetServiceAvailabilityConstraintsRequest, c9 as GetServiceAvailabilityConstraintsResponse, c6 as GetServiceRequest, c7 as GetServiceResponse, cK as GroupByAggregation, cL as GroupByAggregationKindOneOf, d2 as GroupByValueResults, dK as HtmlSitePublished, bN as IdentificationData, bO as IdentificationDataIdOneOf, cB as IncludeMissingValuesOptions, bc as IntakeFormPolicy, al as Interval, en as IntervalWithLiterals, du as InvalidPricingPlan, aq as InvalidSlugError, es as InvalidSlugErrorWithLiterals, c3 as ItemMetadata, bt as Keyword, aY as LimitEarlyBookingPolicy, aZ as LimitLateBookingPolicy, L as ListAddOnGroupsByServiceIdOptions, bT as ListAddOnGroupsByServiceIdRequest, e as ListAddOnGroupsByServiceIdResponse, dQ as Locale, N as Location, aP as LocationOptionsOneOf, a9 as LocationType, eb as LocationTypeWithLiterals, cf as MaskedService, aA as Media, aB as MediaItem, aC as MediaItemItemOneOf, bM as MessageEnvelope, ai as MissingValues, ek as MissingValuesWithLiterals, an as Mode, ep as ModeWithLiterals, aJ as Money, ds as MoveToNewLocationsOptions, dX as Multilingual, cJ as NestedAggregation, cH as NestedAggregationItem, cI as NestedAggregationItemKindOneOf, cR as NestedAggregationResults, cS as NestedAggregationResultsResultOneOf, ak as NestedAggregationType, em as NestedAggregationTypeWithLiterals, c_ as NestedResultValue, c$ as NestedResultValueResultOneOf, d4 as NestedResults, cW as NestedValueAggregationResult, aN as OnlineBooking, dL as Page, cq as Paging, ct as PagingMetadataV2, ci as ParticipantNotification, b2 as ParticipantsPolicy, aG as Payment, aM as PaymentOptions, aH as PaymentRateOneOf, ax as PlacementType, ez as PlacementTypeWithLiterals, aX as PolicyDescription, dO as Properties, e1 as PropertiesChange, F as QueryBookingFormsApplicationErrors, z as QueryBookingFormsOptions, da as QueryBookingFormsRequest, E as QueryBookingFormsResponse, dl as QueryCategoriesFilter, K as QueryCategoriesOptions, dk as QueryCategoriesRequest, M as QueryCategoriesResponse, dg as QueryLocationsFilter, I as QueryLocationsOptions, df as QueryLocationsRequest, J as QueryLocationsResponse, d7 as QueryPoliciesRequest, Q as QueryPoliciesResponse, dm as QueryServicesMultiLanguageRequest, dn as QueryServicesMultiLanguageResponse, cm as QueryServicesRequest, cs as QueryServicesResponse, cn as QueryV2, co as QueryV2PagingMethodOneOf, cE as RangeAggregation, cQ as RangeAggregationResult, cA as RangeBucket, cY as RangeResult, cU as RangeResults, ba as RankingOptions, aa as RankingOrder, ec as RankingOrderWithLiterals, a7 as RateType, e9 as RateTypeWithLiterals, by as ReindexMessage, bz as ReindexMessageActionOneOf, dq as RemovedLocationSessionsAction, dr as RemovedLocationSessionsActionActionOptionsOneOf, ao as RequestedFields, eq as RequestedFieldsWithLiterals, b0 as ReschedulePolicy, az as ResolutionMethod, eB as ResolutionMethodWithLiterals, bk as ResourceGroup, bl as ResourceIds, bo as ResourceType, b3 as ResourcesPolicy, bI as RestoreInfo, d0 as Results, b7 as SaveCreditCardPolicy, cF as ScalarAggregation, cZ as ScalarResult, aj as ScalarType, el as ScalarTypeWithLiterals, bd as Schedule, bC as Schema, cM as SearchDetails, cv as SearchServicesRequest, bs as SeoSchema, h as Service, ca as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, bm as ServiceResource, bn as ServiceResourceSelectionOneOf, e7 as ServiceSearchSpec, a6 as ServiceType, e8 as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, v as ServicesQueryBuilder, e6 as ServicesQueryResult, bE as ServicesUrlsChanged, g as SetAddOnsForGroupApplicationErrors, S as SetAddOnsForGroupOptions, bX as SetAddOnsForGroupRequest, f as SetAddOnsForGroupResponse, _ as SetCustomSlugApplicationErrors, bD as SetCustomSlugEvent, Y as SetCustomSlugOptions, dw as SetCustomSlugRequest, Z as SetCustomSlugResponse, $ as SetCustomSlugValidationErrors, O as SetServiceLocationsOptions, dp as SetServiceLocationsRequest, P as SetServiceLocationsResponse, bv as Settings, e3 as SiteCloned, e2 as SiteCreated, dN as SitePropertiesEvent, dM as SitePropertiesNotification, bp as Slug, ah as SortDirection, ej as SortDirectionWithLiterals, af as SortOrder, eh as SortOrderWithLiterals, ag as SortType, ei as SortTypeWithLiterals, cp as Sorting, ab as SortingMethodType, ed as SortingMethodTypeWithLiterals, dW as SpecialHourPeriod, cb as SplitInterval, bh as StaffMediaItem, bi as StaffMediaItemItemOneOf, bg as StaffMember, bj as StaffMemberDetails, b8 as StaffSortingPolicy, b9 as StaffSortingPolicyOptionsOneOf, as as Status, eu as StatusWithLiterals, aS as StreetAddress, dY as SupportedLanguage, bu as Tag, bx as TaxableAddress, ac as TaxableAddressType, ee as TaxableAddressTypeWithLiterals, dV as TimePeriod, d_ as Translation, bq as URLs, d as UpdateAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, bS as UpdateAddOnGroupRequest, c as UpdateAddOnGroupResponse, k as UpdateService, cc as UpdateServiceRequest, cd as UpdateServiceResponse, l as UpdateServiceValidationErrors, bA as Upsert, dJ as UserDomainInfoChangedEvent, aD as V2Category, ae as V2RequestedFields, eg as V2RequestedFieldsWithLiterals, b_ as ValidateServiceRequest, b$ as ValidateServiceResponse, a0 as ValidateSlugOptions, dx as ValidateSlugRequest, a1 as ValidateSlugResponse, cC as ValueAggregation, cD as ValueAggregationOptionsOneOf, cP as ValueAggregationResult, cX as ValueResult, cT as ValueResults, aL as VariedPayment, b1 as WaitlistPolicy, ad as WebhookIdentityType, ef as WebhookIdentityTypeWithLiterals, eM as bulkCreateServices, eS as bulkDeleteServices, eT as bulkDeleteServicesByFilter, eP as bulkUpdateServices, eQ as bulkUpdateServicesByFilter, f3 as cloneService, eX as countServices, eG as createAddOnGroup, eL as createService, eH as deleteAddOnGroup, eR as deleteService, f0 as disablePricingPlansForService, e$ as enablePricingPlansForService, eN as getService, eJ as listAddOnGroupsByServiceId, eD as onServiceCreated, eE as onServiceDeleted, eF as onServiceUpdated, eW as queryBookingForms, eZ as queryCategories, eY as queryLocations, eV as queryPolicies, eU as queryServices, eK as setAddOnsForGroup, f1 as setCustomSlug, e_ as setServiceLocations, eI as updateAddOnGroup, eO as updateService, f2 as validateSlug } from './bookings-services-v2-service-services.universal-BdI6PnqP.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";
|
|
@@ -1911,21 +1911,168 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
1911
1911
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
1912
1912
|
return ResolutionMethod2;
|
|
1913
1913
|
})(ResolutionMethod || {});
|
|
1914
|
-
async function
|
|
1915
|
-
const { httpClient, sideEffects } = arguments[
|
|
1916
|
-
const payload =
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1914
|
+
async function createAddOnGroup2(addOnGroup, options) {
|
|
1915
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1916
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1917
|
+
addOnGroup,
|
|
1918
|
+
serviceId: options?.serviceId
|
|
1919
|
+
});
|
|
1920
|
+
const reqOpts = createAddOnGroup(payload);
|
|
1921
|
+
sideEffects?.onSiteCall?.();
|
|
1922
|
+
try {
|
|
1923
|
+
const result = await httpClient.request(reqOpts);
|
|
1924
|
+
sideEffects?.onSuccess?.(result);
|
|
1925
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1926
|
+
} catch (err) {
|
|
1927
|
+
const transformedError = sdkTransformError(
|
|
1928
|
+
err,
|
|
1929
|
+
{
|
|
1930
|
+
spreadPathsToArguments: {},
|
|
1931
|
+
explicitPathsToArguments: {
|
|
1932
|
+
addOnGroup: "$[0]",
|
|
1933
|
+
serviceId: "$[1].serviceId"
|
|
1934
|
+
},
|
|
1935
|
+
singleArgumentUnchanged: false
|
|
1936
|
+
},
|
|
1937
|
+
["addOnGroup", "options"]
|
|
1938
|
+
);
|
|
1939
|
+
sideEffects?.onError?.(err);
|
|
1940
|
+
throw transformedError;
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
1944
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1945
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1946
|
+
addOnGroupId,
|
|
1947
|
+
serviceId: options?.serviceId
|
|
1948
|
+
});
|
|
1949
|
+
const reqOpts = deleteAddOnGroup(payload);
|
|
1950
|
+
sideEffects?.onSiteCall?.();
|
|
1951
|
+
try {
|
|
1952
|
+
const result = await httpClient.request(reqOpts);
|
|
1953
|
+
sideEffects?.onSuccess?.(result);
|
|
1954
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1955
|
+
} catch (err) {
|
|
1956
|
+
const transformedError = sdkTransformError(
|
|
1957
|
+
err,
|
|
1958
|
+
{
|
|
1959
|
+
spreadPathsToArguments: {},
|
|
1960
|
+
explicitPathsToArguments: {
|
|
1961
|
+
addOnGroupId: "$[0]",
|
|
1962
|
+
serviceId: "$[1].serviceId"
|
|
1963
|
+
},
|
|
1964
|
+
singleArgumentUnchanged: false
|
|
1965
|
+
},
|
|
1966
|
+
["addOnGroupId", "options"]
|
|
1967
|
+
);
|
|
1968
|
+
sideEffects?.onError?.(err);
|
|
1969
|
+
throw transformedError;
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
async function updateAddOnGroup2(addOnGroup, options) {
|
|
1973
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1974
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1975
|
+
addOnGroup,
|
|
1976
|
+
serviceId: options?.serviceId
|
|
1977
|
+
});
|
|
1978
|
+
const reqOpts = updateAddOnGroup(payload);
|
|
1979
|
+
sideEffects?.onSiteCall?.();
|
|
1980
|
+
try {
|
|
1981
|
+
const result = await httpClient.request(reqOpts);
|
|
1982
|
+
sideEffects?.onSuccess?.(result);
|
|
1983
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1984
|
+
} catch (err) {
|
|
1985
|
+
const transformedError = sdkTransformError(
|
|
1986
|
+
err,
|
|
1987
|
+
{
|
|
1988
|
+
spreadPathsToArguments: {},
|
|
1989
|
+
explicitPathsToArguments: {
|
|
1990
|
+
addOnGroup: "$[0]",
|
|
1991
|
+
serviceId: "$[1].serviceId"
|
|
1992
|
+
},
|
|
1993
|
+
singleArgumentUnchanged: false
|
|
1994
|
+
},
|
|
1995
|
+
["addOnGroup", "options"]
|
|
1996
|
+
);
|
|
1997
|
+
sideEffects?.onError?.(err);
|
|
1998
|
+
throw transformedError;
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
2002
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2003
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2004
|
+
serviceId,
|
|
2005
|
+
groupIds: options?.groupIds
|
|
2006
|
+
});
|
|
2007
|
+
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
2008
|
+
sideEffects?.onSiteCall?.();
|
|
2009
|
+
try {
|
|
2010
|
+
const result = await httpClient.request(reqOpts);
|
|
2011
|
+
sideEffects?.onSuccess?.(result);
|
|
2012
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2013
|
+
} catch (err) {
|
|
2014
|
+
const transformedError = sdkTransformError(
|
|
2015
|
+
err,
|
|
2016
|
+
{
|
|
2017
|
+
spreadPathsToArguments: {},
|
|
2018
|
+
explicitPathsToArguments: {
|
|
2019
|
+
serviceId: "$[0]",
|
|
2020
|
+
groupIds: "$[1].groupIds"
|
|
2021
|
+
},
|
|
2022
|
+
singleArgumentUnchanged: false
|
|
2023
|
+
},
|
|
2024
|
+
["serviceId", "options"]
|
|
2025
|
+
);
|
|
2026
|
+
sideEffects?.onError?.(err);
|
|
2027
|
+
throw transformedError;
|
|
2028
|
+
}
|
|
2029
|
+
}
|
|
2030
|
+
async function setAddOnsForGroup2(serviceId, options) {
|
|
2031
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2032
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2033
|
+
serviceId,
|
|
2034
|
+
groupId: options?.groupId,
|
|
2035
|
+
addOnIds: options?.addOnIds
|
|
2036
|
+
});
|
|
2037
|
+
const reqOpts = setAddOnsForGroup(payload);
|
|
2038
|
+
sideEffects?.onSiteCall?.();
|
|
2039
|
+
try {
|
|
2040
|
+
const result = await httpClient.request(reqOpts);
|
|
2041
|
+
sideEffects?.onSuccess?.(result);
|
|
2042
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2043
|
+
} catch (err) {
|
|
2044
|
+
const transformedError = sdkTransformError(
|
|
2045
|
+
err,
|
|
2046
|
+
{
|
|
2047
|
+
spreadPathsToArguments: {},
|
|
2048
|
+
explicitPathsToArguments: {
|
|
2049
|
+
serviceId: "$[0]",
|
|
2050
|
+
groupId: "$[1].groupId",
|
|
2051
|
+
addOnIds: "$[1].addOnIds"
|
|
2052
|
+
},
|
|
2053
|
+
singleArgumentUnchanged: false
|
|
2054
|
+
},
|
|
2055
|
+
["serviceId", "options"]
|
|
2056
|
+
);
|
|
2057
|
+
sideEffects?.onError?.(err);
|
|
2058
|
+
throw transformedError;
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
async function createService2(service) {
|
|
2062
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2063
|
+
const payload = transformPaths2(
|
|
2064
|
+
renameKeysFromSDKRequestToRESTRequest({ service }),
|
|
2065
|
+
[
|
|
2066
|
+
{
|
|
2067
|
+
transformFn: transformSDKImageToRESTImage,
|
|
2068
|
+
paths: [
|
|
2069
|
+
{ path: "service.media.items.image" },
|
|
2070
|
+
{ path: "service.media.mainMedia.image" },
|
|
2071
|
+
{ path: "service.media.coverMedia.image" },
|
|
2072
|
+
{ path: "service.staffMembers.mainMedia.image" },
|
|
2073
|
+
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2074
|
+
]
|
|
2075
|
+
},
|
|
1929
2076
|
{
|
|
1930
2077
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1931
2078
|
paths: [
|
|
@@ -3143,153 +3290,6 @@ async function cloneService2(sourceServiceId) {
|
|
|
3143
3290
|
throw transformedError;
|
|
3144
3291
|
}
|
|
3145
3292
|
}
|
|
3146
|
-
async function createAddOnGroup2(addOnGroup, options) {
|
|
3147
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3148
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3149
|
-
addOnGroup,
|
|
3150
|
-
serviceId: options?.serviceId
|
|
3151
|
-
});
|
|
3152
|
-
const reqOpts = createAddOnGroup(payload);
|
|
3153
|
-
sideEffects?.onSiteCall?.();
|
|
3154
|
-
try {
|
|
3155
|
-
const result = await httpClient.request(reqOpts);
|
|
3156
|
-
sideEffects?.onSuccess?.(result);
|
|
3157
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3158
|
-
} catch (err) {
|
|
3159
|
-
const transformedError = sdkTransformError(
|
|
3160
|
-
err,
|
|
3161
|
-
{
|
|
3162
|
-
spreadPathsToArguments: {},
|
|
3163
|
-
explicitPathsToArguments: {
|
|
3164
|
-
addOnGroup: "$[0]",
|
|
3165
|
-
serviceId: "$[1].serviceId"
|
|
3166
|
-
},
|
|
3167
|
-
singleArgumentUnchanged: false
|
|
3168
|
-
},
|
|
3169
|
-
["addOnGroup", "options"]
|
|
3170
|
-
);
|
|
3171
|
-
sideEffects?.onError?.(err);
|
|
3172
|
-
throw transformedError;
|
|
3173
|
-
}
|
|
3174
|
-
}
|
|
3175
|
-
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
3176
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3177
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3178
|
-
addOnGroupId,
|
|
3179
|
-
serviceId: options?.serviceId
|
|
3180
|
-
});
|
|
3181
|
-
const reqOpts = deleteAddOnGroup(payload);
|
|
3182
|
-
sideEffects?.onSiteCall?.();
|
|
3183
|
-
try {
|
|
3184
|
-
const result = await httpClient.request(reqOpts);
|
|
3185
|
-
sideEffects?.onSuccess?.(result);
|
|
3186
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3187
|
-
} catch (err) {
|
|
3188
|
-
const transformedError = sdkTransformError(
|
|
3189
|
-
err,
|
|
3190
|
-
{
|
|
3191
|
-
spreadPathsToArguments: {},
|
|
3192
|
-
explicitPathsToArguments: {
|
|
3193
|
-
addOnGroupId: "$[0]",
|
|
3194
|
-
serviceId: "$[1].serviceId"
|
|
3195
|
-
},
|
|
3196
|
-
singleArgumentUnchanged: false
|
|
3197
|
-
},
|
|
3198
|
-
["addOnGroupId", "options"]
|
|
3199
|
-
);
|
|
3200
|
-
sideEffects?.onError?.(err);
|
|
3201
|
-
throw transformedError;
|
|
3202
|
-
}
|
|
3203
|
-
}
|
|
3204
|
-
async function updateAddOnGroup2(addOnGroup, options) {
|
|
3205
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3206
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3207
|
-
addOnGroup,
|
|
3208
|
-
serviceId: options?.serviceId
|
|
3209
|
-
});
|
|
3210
|
-
const reqOpts = updateAddOnGroup(payload);
|
|
3211
|
-
sideEffects?.onSiteCall?.();
|
|
3212
|
-
try {
|
|
3213
|
-
const result = await httpClient.request(reqOpts);
|
|
3214
|
-
sideEffects?.onSuccess?.(result);
|
|
3215
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3216
|
-
} catch (err) {
|
|
3217
|
-
const transformedError = sdkTransformError(
|
|
3218
|
-
err,
|
|
3219
|
-
{
|
|
3220
|
-
spreadPathsToArguments: {},
|
|
3221
|
-
explicitPathsToArguments: {
|
|
3222
|
-
addOnGroup: "$[0]",
|
|
3223
|
-
serviceId: "$[1].serviceId"
|
|
3224
|
-
},
|
|
3225
|
-
singleArgumentUnchanged: false
|
|
3226
|
-
},
|
|
3227
|
-
["addOnGroup", "options"]
|
|
3228
|
-
);
|
|
3229
|
-
sideEffects?.onError?.(err);
|
|
3230
|
-
throw transformedError;
|
|
3231
|
-
}
|
|
3232
|
-
}
|
|
3233
|
-
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
3234
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3235
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3236
|
-
serviceId,
|
|
3237
|
-
groupIds: options?.groupIds
|
|
3238
|
-
});
|
|
3239
|
-
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
3240
|
-
sideEffects?.onSiteCall?.();
|
|
3241
|
-
try {
|
|
3242
|
-
const result = await httpClient.request(reqOpts);
|
|
3243
|
-
sideEffects?.onSuccess?.(result);
|
|
3244
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3245
|
-
} catch (err) {
|
|
3246
|
-
const transformedError = sdkTransformError(
|
|
3247
|
-
err,
|
|
3248
|
-
{
|
|
3249
|
-
spreadPathsToArguments: {},
|
|
3250
|
-
explicitPathsToArguments: {
|
|
3251
|
-
serviceId: "$[0]",
|
|
3252
|
-
groupIds: "$[1].groupIds"
|
|
3253
|
-
},
|
|
3254
|
-
singleArgumentUnchanged: false
|
|
3255
|
-
},
|
|
3256
|
-
["serviceId", "options"]
|
|
3257
|
-
);
|
|
3258
|
-
sideEffects?.onError?.(err);
|
|
3259
|
-
throw transformedError;
|
|
3260
|
-
}
|
|
3261
|
-
}
|
|
3262
|
-
async function setAddOnsForGroup2(serviceId, options) {
|
|
3263
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3264
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3265
|
-
serviceId,
|
|
3266
|
-
groupId: options?.groupId,
|
|
3267
|
-
addOnIds: options?.addOnIds
|
|
3268
|
-
});
|
|
3269
|
-
const reqOpts = setAddOnsForGroup(payload);
|
|
3270
|
-
sideEffects?.onSiteCall?.();
|
|
3271
|
-
try {
|
|
3272
|
-
const result = await httpClient.request(reqOpts);
|
|
3273
|
-
sideEffects?.onSuccess?.(result);
|
|
3274
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3275
|
-
} catch (err) {
|
|
3276
|
-
const transformedError = sdkTransformError(
|
|
3277
|
-
err,
|
|
3278
|
-
{
|
|
3279
|
-
spreadPathsToArguments: {},
|
|
3280
|
-
explicitPathsToArguments: {
|
|
3281
|
-
serviceId: "$[0]",
|
|
3282
|
-
groupId: "$[1].groupId",
|
|
3283
|
-
addOnIds: "$[1].addOnIds"
|
|
3284
|
-
},
|
|
3285
|
-
singleArgumentUnchanged: false
|
|
3286
|
-
},
|
|
3287
|
-
["serviceId", "options"]
|
|
3288
|
-
);
|
|
3289
|
-
sideEffects?.onError?.(err);
|
|
3290
|
-
throw transformedError;
|
|
3291
|
-
}
|
|
3292
|
-
}
|
|
3293
3293
|
export {
|
|
3294
3294
|
Action,
|
|
3295
3295
|
AddOnPaymentOptions,
|