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