@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.js';
|
|
1
|
+
import { cy as CursorSearch, x as SearchServicesResponse } from './bookings-services-v2-service-services.universal-2oircAIS.js';
|
|
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.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -26,6 +26,7 @@ __export(index_typings_exports, {
|
|
|
26
26
|
BenefitType: () => BenefitType,
|
|
27
27
|
CategoryNotificationEvent: () => CategoryNotificationEvent,
|
|
28
28
|
CloneErrors: () => CloneErrors,
|
|
29
|
+
CompletionRequirement: () => CompletionRequirement,
|
|
29
30
|
CrudType: () => CrudType,
|
|
30
31
|
DayOfWeek: () => DayOfWeek,
|
|
31
32
|
Event: () => Event,
|
|
@@ -48,6 +49,7 @@ __export(index_typings_exports, {
|
|
|
48
49
|
SortingMethodType: () => SortingMethodType,
|
|
49
50
|
Status: () => Status,
|
|
50
51
|
TaxableAddressType: () => TaxableAddressType,
|
|
52
|
+
Timing: () => Timing,
|
|
51
53
|
V2RequestedFields: () => V2RequestedFields,
|
|
52
54
|
WebhookIdentityType: () => WebhookIdentityType,
|
|
53
55
|
bulkCreateServices: () => bulkCreateServices2,
|
|
@@ -94,7 +96,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
94
96
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
95
97
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
96
98
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
97
|
-
function
|
|
99
|
+
function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
98
100
|
const domainToMappings = {
|
|
99
101
|
"*.dev.wix-code.com": [
|
|
100
102
|
{
|
|
@@ -209,7 +211,7 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
|
209
211
|
};
|
|
210
212
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
211
213
|
}
|
|
212
|
-
function
|
|
214
|
+
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
213
215
|
const domainToMappings = {
|
|
214
216
|
"*.dev.wix-code.com": [
|
|
215
217
|
{
|
|
@@ -325,6 +327,117 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
325
327
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
326
328
|
}
|
|
327
329
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
|
|
330
|
+
function createAddOnGroup(payload) {
|
|
331
|
+
function __createAddOnGroup({ host }) {
|
|
332
|
+
const metadata = {
|
|
333
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
334
|
+
method: "POST",
|
|
335
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
336
|
+
packageName: PACKAGE_NAME,
|
|
337
|
+
migrationOptions: {
|
|
338
|
+
optInTransformResponse: true
|
|
339
|
+
},
|
|
340
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
341
|
+
protoPath: "/v2/services/add-on-groups/create",
|
|
342
|
+
data: payload,
|
|
343
|
+
host
|
|
344
|
+
}),
|
|
345
|
+
data: payload
|
|
346
|
+
};
|
|
347
|
+
return metadata;
|
|
348
|
+
}
|
|
349
|
+
return __createAddOnGroup;
|
|
350
|
+
}
|
|
351
|
+
function deleteAddOnGroup(payload) {
|
|
352
|
+
function __deleteAddOnGroup({ host }) {
|
|
353
|
+
const metadata = {
|
|
354
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
355
|
+
method: "POST",
|
|
356
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
357
|
+
packageName: PACKAGE_NAME,
|
|
358
|
+
migrationOptions: {
|
|
359
|
+
optInTransformResponse: true
|
|
360
|
+
},
|
|
361
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
362
|
+
protoPath: "/v2/services/add-on-groups/delete",
|
|
363
|
+
data: payload,
|
|
364
|
+
host
|
|
365
|
+
}),
|
|
366
|
+
data: payload
|
|
367
|
+
};
|
|
368
|
+
return metadata;
|
|
369
|
+
}
|
|
370
|
+
return __deleteAddOnGroup;
|
|
371
|
+
}
|
|
372
|
+
function updateAddOnGroup(payload) {
|
|
373
|
+
function __updateAddOnGroup({ host }) {
|
|
374
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
375
|
+
{
|
|
376
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
377
|
+
paths: [{ path: "mask" }]
|
|
378
|
+
}
|
|
379
|
+
]);
|
|
380
|
+
const metadata = {
|
|
381
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
382
|
+
method: "POST",
|
|
383
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
384
|
+
packageName: PACKAGE_NAME,
|
|
385
|
+
migrationOptions: {
|
|
386
|
+
optInTransformResponse: true
|
|
387
|
+
},
|
|
388
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
389
|
+
protoPath: "/v2/services/add-on-groups/update",
|
|
390
|
+
data: serializedData,
|
|
391
|
+
host
|
|
392
|
+
}),
|
|
393
|
+
data: serializedData
|
|
394
|
+
};
|
|
395
|
+
return metadata;
|
|
396
|
+
}
|
|
397
|
+
return __updateAddOnGroup;
|
|
398
|
+
}
|
|
399
|
+
function listAddOnGroupsByServiceId(payload) {
|
|
400
|
+
function __listAddOnGroupsByServiceId({ host }) {
|
|
401
|
+
const metadata = {
|
|
402
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
403
|
+
method: "POST",
|
|
404
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
405
|
+
packageName: PACKAGE_NAME,
|
|
406
|
+
migrationOptions: {
|
|
407
|
+
optInTransformResponse: true
|
|
408
|
+
},
|
|
409
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
410
|
+
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
411
|
+
data: payload,
|
|
412
|
+
host
|
|
413
|
+
}),
|
|
414
|
+
data: payload
|
|
415
|
+
};
|
|
416
|
+
return metadata;
|
|
417
|
+
}
|
|
418
|
+
return __listAddOnGroupsByServiceId;
|
|
419
|
+
}
|
|
420
|
+
function setAddOnsForGroup(payload) {
|
|
421
|
+
function __setAddOnsForGroup({ host }) {
|
|
422
|
+
const metadata = {
|
|
423
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
424
|
+
method: "POST",
|
|
425
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
426
|
+
packageName: PACKAGE_NAME,
|
|
427
|
+
migrationOptions: {
|
|
428
|
+
optInTransformResponse: true
|
|
429
|
+
},
|
|
430
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
431
|
+
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
432
|
+
data: payload,
|
|
433
|
+
host
|
|
434
|
+
}),
|
|
435
|
+
data: payload
|
|
436
|
+
};
|
|
437
|
+
return metadata;
|
|
438
|
+
}
|
|
439
|
+
return __setAddOnsForGroup;
|
|
440
|
+
}
|
|
328
441
|
function createService(payload) {
|
|
329
442
|
function __createService({ host }) {
|
|
330
443
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1674,117 +1787,6 @@ function cloneService(payload) {
|
|
|
1674
1787
|
}
|
|
1675
1788
|
return __cloneService;
|
|
1676
1789
|
}
|
|
1677
|
-
function createAddOnGroup(payload) {
|
|
1678
|
-
function __createAddOnGroup({ host }) {
|
|
1679
|
-
const metadata = {
|
|
1680
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1681
|
-
method: "POST",
|
|
1682
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
1683
|
-
packageName: PACKAGE_NAME,
|
|
1684
|
-
migrationOptions: {
|
|
1685
|
-
optInTransformResponse: true
|
|
1686
|
-
},
|
|
1687
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1688
|
-
protoPath: "/v2/services/add-on-groups/create",
|
|
1689
|
-
data: payload,
|
|
1690
|
-
host
|
|
1691
|
-
}),
|
|
1692
|
-
data: payload
|
|
1693
|
-
};
|
|
1694
|
-
return metadata;
|
|
1695
|
-
}
|
|
1696
|
-
return __createAddOnGroup;
|
|
1697
|
-
}
|
|
1698
|
-
function deleteAddOnGroup(payload) {
|
|
1699
|
-
function __deleteAddOnGroup({ host }) {
|
|
1700
|
-
const metadata = {
|
|
1701
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1702
|
-
method: "POST",
|
|
1703
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
1704
|
-
packageName: PACKAGE_NAME,
|
|
1705
|
-
migrationOptions: {
|
|
1706
|
-
optInTransformResponse: true
|
|
1707
|
-
},
|
|
1708
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1709
|
-
protoPath: "/v2/services/add-on-groups/delete",
|
|
1710
|
-
data: payload,
|
|
1711
|
-
host
|
|
1712
|
-
}),
|
|
1713
|
-
data: payload
|
|
1714
|
-
};
|
|
1715
|
-
return metadata;
|
|
1716
|
-
}
|
|
1717
|
-
return __deleteAddOnGroup;
|
|
1718
|
-
}
|
|
1719
|
-
function updateAddOnGroup(payload) {
|
|
1720
|
-
function __updateAddOnGroup({ host }) {
|
|
1721
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1722
|
-
{
|
|
1723
|
-
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1724
|
-
paths: [{ path: "mask" }]
|
|
1725
|
-
}
|
|
1726
|
-
]);
|
|
1727
|
-
const metadata = {
|
|
1728
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1729
|
-
method: "POST",
|
|
1730
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
1731
|
-
packageName: PACKAGE_NAME,
|
|
1732
|
-
migrationOptions: {
|
|
1733
|
-
optInTransformResponse: true
|
|
1734
|
-
},
|
|
1735
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1736
|
-
protoPath: "/v2/services/add-on-groups/update",
|
|
1737
|
-
data: serializedData,
|
|
1738
|
-
host
|
|
1739
|
-
}),
|
|
1740
|
-
data: serializedData
|
|
1741
|
-
};
|
|
1742
|
-
return metadata;
|
|
1743
|
-
}
|
|
1744
|
-
return __updateAddOnGroup;
|
|
1745
|
-
}
|
|
1746
|
-
function listAddOnGroupsByServiceId(payload) {
|
|
1747
|
-
function __listAddOnGroupsByServiceId({ host }) {
|
|
1748
|
-
const metadata = {
|
|
1749
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1750
|
-
method: "POST",
|
|
1751
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
1752
|
-
packageName: PACKAGE_NAME,
|
|
1753
|
-
migrationOptions: {
|
|
1754
|
-
optInTransformResponse: true
|
|
1755
|
-
},
|
|
1756
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1757
|
-
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
1758
|
-
data: payload,
|
|
1759
|
-
host
|
|
1760
|
-
}),
|
|
1761
|
-
data: payload
|
|
1762
|
-
};
|
|
1763
|
-
return metadata;
|
|
1764
|
-
}
|
|
1765
|
-
return __listAddOnGroupsByServiceId;
|
|
1766
|
-
}
|
|
1767
|
-
function setAddOnsForGroup(payload) {
|
|
1768
|
-
function __setAddOnsForGroup({ host }) {
|
|
1769
|
-
const metadata = {
|
|
1770
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1771
|
-
method: "POST",
|
|
1772
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
1773
|
-
packageName: PACKAGE_NAME,
|
|
1774
|
-
migrationOptions: {
|
|
1775
|
-
optInTransformResponse: true
|
|
1776
|
-
},
|
|
1777
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1778
|
-
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
1779
|
-
data: payload,
|
|
1780
|
-
host
|
|
1781
|
-
}),
|
|
1782
|
-
data: payload
|
|
1783
|
-
};
|
|
1784
|
-
return metadata;
|
|
1785
|
-
}
|
|
1786
|
-
return __setAddOnsForGroup;
|
|
1787
|
-
}
|
|
1788
1790
|
|
|
1789
1791
|
// src/bookings-services-v2-service-services.universal.ts
|
|
1790
1792
|
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
@@ -1848,6 +1850,18 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1848
1850
|
WebhookIdentityType2["APP"] = "APP";
|
|
1849
1851
|
return WebhookIdentityType2;
|
|
1850
1852
|
})(WebhookIdentityType || {});
|
|
1853
|
+
var Timing = /* @__PURE__ */ ((Timing2) => {
|
|
1854
|
+
Timing2["UNKNOWN_TIMING"] = "UNKNOWN_TIMING";
|
|
1855
|
+
Timing2["AFTER_BOOKING"] = "AFTER_BOOKING";
|
|
1856
|
+
Timing2["BEFORE_BOOKING"] = "BEFORE_BOOKING";
|
|
1857
|
+
return Timing2;
|
|
1858
|
+
})(Timing || {});
|
|
1859
|
+
var CompletionRequirement = /* @__PURE__ */ ((CompletionRequirement2) => {
|
|
1860
|
+
CompletionRequirement2["UNKNOWN_COMPLETION_REQUIREMENT"] = "UNKNOWN_COMPLETION_REQUIREMENT";
|
|
1861
|
+
CompletionRequirement2["OPTIONAL"] = "OPTIONAL";
|
|
1862
|
+
CompletionRequirement2["REQUIRED_BEFORE_BOOKING"] = "REQUIRED_BEFORE_BOOKING";
|
|
1863
|
+
return CompletionRequirement2;
|
|
1864
|
+
})(CompletionRequirement || {});
|
|
1851
1865
|
var V2RequestedFields = /* @__PURE__ */ ((V2RequestedFields2) => {
|
|
1852
1866
|
V2RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
1853
1867
|
V2RequestedFields2["STAFF_MEMBER_DETAILS"] = "STAFF_MEMBER_DETAILS";
|
|
@@ -1990,21 +2004,168 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
1990
2004
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
1991
2005
|
return ResolutionMethod2;
|
|
1992
2006
|
})(ResolutionMethod || {});
|
|
1993
|
-
async function
|
|
1994
|
-
const { httpClient, sideEffects } = arguments[
|
|
1995
|
-
const payload = (0,
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2007
|
+
async function createAddOnGroup2(addOnGroup, options) {
|
|
2008
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2009
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2010
|
+
addOnGroup,
|
|
2011
|
+
serviceId: options?.serviceId
|
|
2012
|
+
});
|
|
2013
|
+
const reqOpts = createAddOnGroup(payload);
|
|
2014
|
+
sideEffects?.onSiteCall?.();
|
|
2015
|
+
try {
|
|
2016
|
+
const result = await httpClient.request(reqOpts);
|
|
2017
|
+
sideEffects?.onSuccess?.(result);
|
|
2018
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2019
|
+
} catch (err) {
|
|
2020
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2021
|
+
err,
|
|
2022
|
+
{
|
|
2023
|
+
spreadPathsToArguments: {},
|
|
2024
|
+
explicitPathsToArguments: {
|
|
2025
|
+
addOnGroup: "$[0]",
|
|
2026
|
+
serviceId: "$[1].serviceId"
|
|
2027
|
+
},
|
|
2028
|
+
singleArgumentUnchanged: false
|
|
2029
|
+
},
|
|
2030
|
+
["addOnGroup", "options"]
|
|
2031
|
+
);
|
|
2032
|
+
sideEffects?.onError?.(err);
|
|
2033
|
+
throw transformedError;
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
2037
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2038
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2039
|
+
addOnGroupId,
|
|
2040
|
+
serviceId: options?.serviceId
|
|
2041
|
+
});
|
|
2042
|
+
const reqOpts = deleteAddOnGroup(payload);
|
|
2043
|
+
sideEffects?.onSiteCall?.();
|
|
2044
|
+
try {
|
|
2045
|
+
const result = await httpClient.request(reqOpts);
|
|
2046
|
+
sideEffects?.onSuccess?.(result);
|
|
2047
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2048
|
+
} catch (err) {
|
|
2049
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2050
|
+
err,
|
|
2051
|
+
{
|
|
2052
|
+
spreadPathsToArguments: {},
|
|
2053
|
+
explicitPathsToArguments: {
|
|
2054
|
+
addOnGroupId: "$[0]",
|
|
2055
|
+
serviceId: "$[1].serviceId"
|
|
2056
|
+
},
|
|
2057
|
+
singleArgumentUnchanged: false
|
|
2058
|
+
},
|
|
2059
|
+
["addOnGroupId", "options"]
|
|
2060
|
+
);
|
|
2061
|
+
sideEffects?.onError?.(err);
|
|
2062
|
+
throw transformedError;
|
|
2063
|
+
}
|
|
2064
|
+
}
|
|
2065
|
+
async function updateAddOnGroup2(addOnGroup, options) {
|
|
2066
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2067
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2068
|
+
addOnGroup,
|
|
2069
|
+
serviceId: options?.serviceId
|
|
2070
|
+
});
|
|
2071
|
+
const reqOpts = updateAddOnGroup(payload);
|
|
2072
|
+
sideEffects?.onSiteCall?.();
|
|
2073
|
+
try {
|
|
2074
|
+
const result = await httpClient.request(reqOpts);
|
|
2075
|
+
sideEffects?.onSuccess?.(result);
|
|
2076
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2077
|
+
} catch (err) {
|
|
2078
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2079
|
+
err,
|
|
2080
|
+
{
|
|
2081
|
+
spreadPathsToArguments: {},
|
|
2082
|
+
explicitPathsToArguments: {
|
|
2083
|
+
addOnGroup: "$[0]",
|
|
2084
|
+
serviceId: "$[1].serviceId"
|
|
2085
|
+
},
|
|
2086
|
+
singleArgumentUnchanged: false
|
|
2087
|
+
},
|
|
2088
|
+
["addOnGroup", "options"]
|
|
2089
|
+
);
|
|
2090
|
+
sideEffects?.onError?.(err);
|
|
2091
|
+
throw transformedError;
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
2095
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2096
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2097
|
+
serviceId,
|
|
2098
|
+
groupIds: options?.groupIds
|
|
2099
|
+
});
|
|
2100
|
+
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
2101
|
+
sideEffects?.onSiteCall?.();
|
|
2102
|
+
try {
|
|
2103
|
+
const result = await httpClient.request(reqOpts);
|
|
2104
|
+
sideEffects?.onSuccess?.(result);
|
|
2105
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2106
|
+
} catch (err) {
|
|
2107
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2108
|
+
err,
|
|
2109
|
+
{
|
|
2110
|
+
spreadPathsToArguments: {},
|
|
2111
|
+
explicitPathsToArguments: {
|
|
2112
|
+
serviceId: "$[0]",
|
|
2113
|
+
groupIds: "$[1].groupIds"
|
|
2114
|
+
},
|
|
2115
|
+
singleArgumentUnchanged: false
|
|
2116
|
+
},
|
|
2117
|
+
["serviceId", "options"]
|
|
2118
|
+
);
|
|
2119
|
+
sideEffects?.onError?.(err);
|
|
2120
|
+
throw transformedError;
|
|
2121
|
+
}
|
|
2122
|
+
}
|
|
2123
|
+
async function setAddOnsForGroup2(serviceId, options) {
|
|
2124
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2125
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2126
|
+
serviceId,
|
|
2127
|
+
groupId: options?.groupId,
|
|
2128
|
+
addOnIds: options?.addOnIds
|
|
2129
|
+
});
|
|
2130
|
+
const reqOpts = setAddOnsForGroup(payload);
|
|
2131
|
+
sideEffects?.onSiteCall?.();
|
|
2132
|
+
try {
|
|
2133
|
+
const result = await httpClient.request(reqOpts);
|
|
2134
|
+
sideEffects?.onSuccess?.(result);
|
|
2135
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2136
|
+
} catch (err) {
|
|
2137
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2138
|
+
err,
|
|
2139
|
+
{
|
|
2140
|
+
spreadPathsToArguments: {},
|
|
2141
|
+
explicitPathsToArguments: {
|
|
2142
|
+
serviceId: "$[0]",
|
|
2143
|
+
groupId: "$[1].groupId",
|
|
2144
|
+
addOnIds: "$[1].addOnIds"
|
|
2145
|
+
},
|
|
2146
|
+
singleArgumentUnchanged: false
|
|
2147
|
+
},
|
|
2148
|
+
["serviceId", "options"]
|
|
2149
|
+
);
|
|
2150
|
+
sideEffects?.onError?.(err);
|
|
2151
|
+
throw transformedError;
|
|
2152
|
+
}
|
|
2153
|
+
}
|
|
2154
|
+
async function createService2(service) {
|
|
2155
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2156
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2157
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ service }),
|
|
2158
|
+
[
|
|
2159
|
+
{
|
|
2160
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2161
|
+
paths: [
|
|
2162
|
+
{ path: "service.media.items.image" },
|
|
2163
|
+
{ path: "service.media.mainMedia.image" },
|
|
2164
|
+
{ path: "service.media.coverMedia.image" },
|
|
2165
|
+
{ path: "service.staffMembers.mainMedia.image" },
|
|
2166
|
+
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2167
|
+
]
|
|
2168
|
+
},
|
|
2008
2169
|
{
|
|
2009
2170
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2010
2171
|
paths: [
|
|
@@ -3222,153 +3383,6 @@ async function cloneService2(sourceServiceId) {
|
|
|
3222
3383
|
throw transformedError;
|
|
3223
3384
|
}
|
|
3224
3385
|
}
|
|
3225
|
-
async function createAddOnGroup2(addOnGroup, options) {
|
|
3226
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3227
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3228
|
-
addOnGroup,
|
|
3229
|
-
serviceId: options?.serviceId
|
|
3230
|
-
});
|
|
3231
|
-
const reqOpts = createAddOnGroup(payload);
|
|
3232
|
-
sideEffects?.onSiteCall?.();
|
|
3233
|
-
try {
|
|
3234
|
-
const result = await httpClient.request(reqOpts);
|
|
3235
|
-
sideEffects?.onSuccess?.(result);
|
|
3236
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3237
|
-
} catch (err) {
|
|
3238
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
3239
|
-
err,
|
|
3240
|
-
{
|
|
3241
|
-
spreadPathsToArguments: {},
|
|
3242
|
-
explicitPathsToArguments: {
|
|
3243
|
-
addOnGroup: "$[0]",
|
|
3244
|
-
serviceId: "$[1].serviceId"
|
|
3245
|
-
},
|
|
3246
|
-
singleArgumentUnchanged: false
|
|
3247
|
-
},
|
|
3248
|
-
["addOnGroup", "options"]
|
|
3249
|
-
);
|
|
3250
|
-
sideEffects?.onError?.(err);
|
|
3251
|
-
throw transformedError;
|
|
3252
|
-
}
|
|
3253
|
-
}
|
|
3254
|
-
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
3255
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3256
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3257
|
-
addOnGroupId,
|
|
3258
|
-
serviceId: options?.serviceId
|
|
3259
|
-
});
|
|
3260
|
-
const reqOpts = deleteAddOnGroup(payload);
|
|
3261
|
-
sideEffects?.onSiteCall?.();
|
|
3262
|
-
try {
|
|
3263
|
-
const result = await httpClient.request(reqOpts);
|
|
3264
|
-
sideEffects?.onSuccess?.(result);
|
|
3265
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3266
|
-
} catch (err) {
|
|
3267
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
3268
|
-
err,
|
|
3269
|
-
{
|
|
3270
|
-
spreadPathsToArguments: {},
|
|
3271
|
-
explicitPathsToArguments: {
|
|
3272
|
-
addOnGroupId: "$[0]",
|
|
3273
|
-
serviceId: "$[1].serviceId"
|
|
3274
|
-
},
|
|
3275
|
-
singleArgumentUnchanged: false
|
|
3276
|
-
},
|
|
3277
|
-
["addOnGroupId", "options"]
|
|
3278
|
-
);
|
|
3279
|
-
sideEffects?.onError?.(err);
|
|
3280
|
-
throw transformedError;
|
|
3281
|
-
}
|
|
3282
|
-
}
|
|
3283
|
-
async function updateAddOnGroup2(addOnGroup, options) {
|
|
3284
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3285
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3286
|
-
addOnGroup,
|
|
3287
|
-
serviceId: options?.serviceId
|
|
3288
|
-
});
|
|
3289
|
-
const reqOpts = updateAddOnGroup(payload);
|
|
3290
|
-
sideEffects?.onSiteCall?.();
|
|
3291
|
-
try {
|
|
3292
|
-
const result = await httpClient.request(reqOpts);
|
|
3293
|
-
sideEffects?.onSuccess?.(result);
|
|
3294
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3295
|
-
} catch (err) {
|
|
3296
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
3297
|
-
err,
|
|
3298
|
-
{
|
|
3299
|
-
spreadPathsToArguments: {},
|
|
3300
|
-
explicitPathsToArguments: {
|
|
3301
|
-
addOnGroup: "$[0]",
|
|
3302
|
-
serviceId: "$[1].serviceId"
|
|
3303
|
-
},
|
|
3304
|
-
singleArgumentUnchanged: false
|
|
3305
|
-
},
|
|
3306
|
-
["addOnGroup", "options"]
|
|
3307
|
-
);
|
|
3308
|
-
sideEffects?.onError?.(err);
|
|
3309
|
-
throw transformedError;
|
|
3310
|
-
}
|
|
3311
|
-
}
|
|
3312
|
-
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
3313
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3314
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3315
|
-
serviceId,
|
|
3316
|
-
groupIds: options?.groupIds
|
|
3317
|
-
});
|
|
3318
|
-
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
3319
|
-
sideEffects?.onSiteCall?.();
|
|
3320
|
-
try {
|
|
3321
|
-
const result = await httpClient.request(reqOpts);
|
|
3322
|
-
sideEffects?.onSuccess?.(result);
|
|
3323
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3324
|
-
} catch (err) {
|
|
3325
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
3326
|
-
err,
|
|
3327
|
-
{
|
|
3328
|
-
spreadPathsToArguments: {},
|
|
3329
|
-
explicitPathsToArguments: {
|
|
3330
|
-
serviceId: "$[0]",
|
|
3331
|
-
groupIds: "$[1].groupIds"
|
|
3332
|
-
},
|
|
3333
|
-
singleArgumentUnchanged: false
|
|
3334
|
-
},
|
|
3335
|
-
["serviceId", "options"]
|
|
3336
|
-
);
|
|
3337
|
-
sideEffects?.onError?.(err);
|
|
3338
|
-
throw transformedError;
|
|
3339
|
-
}
|
|
3340
|
-
}
|
|
3341
|
-
async function setAddOnsForGroup2(serviceId, options) {
|
|
3342
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3343
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3344
|
-
serviceId,
|
|
3345
|
-
groupId: options?.groupId,
|
|
3346
|
-
addOnIds: options?.addOnIds
|
|
3347
|
-
});
|
|
3348
|
-
const reqOpts = setAddOnsForGroup(payload);
|
|
3349
|
-
sideEffects?.onSiteCall?.();
|
|
3350
|
-
try {
|
|
3351
|
-
const result = await httpClient.request(reqOpts);
|
|
3352
|
-
sideEffects?.onSuccess?.(result);
|
|
3353
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3354
|
-
} catch (err) {
|
|
3355
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
3356
|
-
err,
|
|
3357
|
-
{
|
|
3358
|
-
spreadPathsToArguments: {},
|
|
3359
|
-
explicitPathsToArguments: {
|
|
3360
|
-
serviceId: "$[0]",
|
|
3361
|
-
groupId: "$[1].groupId",
|
|
3362
|
-
addOnIds: "$[1].addOnIds"
|
|
3363
|
-
},
|
|
3364
|
-
singleArgumentUnchanged: false
|
|
3365
|
-
},
|
|
3366
|
-
["serviceId", "options"]
|
|
3367
|
-
);
|
|
3368
|
-
sideEffects?.onError?.(err);
|
|
3369
|
-
throw transformedError;
|
|
3370
|
-
}
|
|
3371
|
-
}
|
|
3372
3386
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3373
3387
|
0 && (module.exports = {
|
|
3374
3388
|
Action,
|
|
@@ -3377,6 +3391,7 @@ async function setAddOnsForGroup2(serviceId, options) {
|
|
|
3377
3391
|
BenefitType,
|
|
3378
3392
|
CategoryNotificationEvent,
|
|
3379
3393
|
CloneErrors,
|
|
3394
|
+
CompletionRequirement,
|
|
3380
3395
|
CrudType,
|
|
3381
3396
|
DayOfWeek,
|
|
3382
3397
|
Event,
|
|
@@ -3399,6 +3414,7 @@ async function setAddOnsForGroup2(serviceId, options) {
|
|
|
3399
3414
|
SortingMethodType,
|
|
3400
3415
|
Status,
|
|
3401
3416
|
TaxableAddressType,
|
|
3417
|
+
Timing,
|
|
3402
3418
|
V2RequestedFields,
|
|
3403
3419
|
WebhookIdentityType,
|
|
3404
3420
|
bulkCreateServices,
|