@wix/auto_sdk_bookings_services 1.0.124 → 1.0.126
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-ITYqFvzY.d.ts → bookings-services-v2-service-services.universal-B6t2dBMg.d.ts} +298 -282
- package/build/cjs/index.d.ts +72 -72
- package/build/cjs/index.js +343 -335
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +253 -245
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +152 -138
- package/build/cjs/meta.js +185 -185
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-ITYqFvzY.d.mts → bookings-services-v2-service-services.universal-B6t2dBMg.d.mts} +298 -282
- package/build/es/index.d.mts +72 -72
- package/build/es/index.mjs +342 -335
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +252 -245
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +152 -138
- package/build/es/meta.mjs +185 -185
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-ITYqFvzY.d.ts → bookings-services-v2-service-services.universal-B6t2dBMg.d.ts} +298 -282
- package/build/internal/cjs/index.d.ts +72 -72
- package/build/internal/cjs/index.js +343 -335
- 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 +253 -245
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +152 -138
- package/build/internal/cjs/meta.js +185 -185
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-ITYqFvzY.d.mts → bookings-services-v2-service-services.universal-B6t2dBMg.d.mts} +298 -282
- package/build/internal/es/index.d.mts +72 -72
- package/build/internal/es/index.mjs +342 -335
- 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 +252 -245
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +152 -138
- package/build/internal/es/meta.mjs +185 -185
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ao as Action, bI as ActionEvent, en as ActionWithLiterals, dZ as AddOn, d_ as AddOnAddOnInfoOneOf, bu as AddOnDetails, O as AddOnGroup, d$ as AddOnGroupDetail, a8 as AddOnPaymentOptions, e7 as AddOnPaymentOptionsWithLiterals, dF as Address, dG as AddressHint, aS as AddressLocation, cm as Aggregation, cC as AggregationData, cn as AggregationKindOneOf, cV as AggregationResults, cW as AggregationResultsResultOneOf, cJ as AggregationResultsScalarResult, al as AggregationType, ek as AggregationTypeWithLiterals, bU as ApplicationError, bc as AvailabilityConstraints, e1 as BaseEventMetadata, dv as Behavior, dw as BehaviorBehaviorOneOf, dr as Benefit, dq as BenefitNotification, at as BenefitType, es as BenefitTypeWithLiterals, aZ as BookAfterStartPolicy, c$ as BookingForm, aV as BookingPolicy, cZ as BookingPolicyWithServices, bV as BulkActionMetadata, B as BulkCreateServicesOptions, bR as BulkCreateServicesRequest, a as BulkCreateServicesResponse, i as BulkDeleteServicesByFilterOptions, c9 as BulkDeleteServicesByFilterRequest, j as BulkDeleteServicesByFilterResponse, g as BulkDeleteServicesOptions, c8 as BulkDeleteServicesRequest, h as BulkDeleteServicesResponse, bS as BulkServiceResult, e as BulkUpdateServicesByFilterOptions, c4 as BulkUpdateServicesByFilterRequest, f as BulkUpdateServicesByFilterResponse, c as BulkUpdateServicesOptions, c2 as BulkUpdateServicesRequest, d as BulkUpdateServicesResponse, aT as BusinessLocationOptions, d5 as BusinessLocations, dI as BusinessSchedule, b3 as CancellationFeePolicy, a_ as CancellationPolicy, b4 as CancellationWindow, b5 as CancellationWindowFeeOneOf, dD as Categories, dn as Category, dm as CategoryNotification, as as CategoryNotificationEvent, er as CategoryNotificationEventWithLiterals, dP as ChangeContext, dQ as ChangeContextPayloadOneOf, aq as CloneErrors, ep as CloneErrorsWithLiterals, dl as CloneServiceRequest, N as CloneServiceResponse, aP as CommonAddress, aQ as CommonAddressStreetOneOf, ey as CommonSearchWithEntityContext, aN as Conferencing, d1 as ConnectedService, dN as ConsentPolicy, r as CountServicesOptions, d2 as CountServicesRequest, s as CountServicesResponse, P as CreateAddOnGroupOptions, dU as CreateAddOnGroupRequest, R as CreateAddOnGroupResponse, bM as CreateServiceRequest, bN as CreateServiceResponse, C as CreateServiceValidationErrors, av as CrudType, eu as CrudTypeWithLiterals, cf as CursorPaging, cB as CursorPagingMetadata, n as CursorQuery, cY as CursorQueryPagingMethodOneOf, cl as CursorSearchPagingMethodOneOf, ci as Cursors, aU as CustomLocationOptions, d6 as CustomLocations, ba as CustomOptions, aJ as CustomPayment, d7 as CustomerLocations, cu as DateHistogramAggregation, cR as DateHistogramResult, cT as DateHistogramResults, ax as DayOfWeek, ew as DayOfWeekWithLiterals, by as Delete, W as DeleteAddOnGroupApplicationErrors, T as DeleteAddOnGroupOptions, dV as DeleteAddOnGroupRequest, dW as DeleteAddOnGroupResponse, D as DeleteServiceOptions, c5 as DeleteServiceRequest, c7 as DeleteServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, di as DisablePricingPlansForServiceRequest, F as DisablePricingPlansForServiceResponse, dt as Discount, du as DiscountDiscountOneOf, bC as DomainEvent, bD as DomainEventBodyOneOf, bd as Duration, dp as Empty, z as EnablePricingPlansForServiceApplicationErrors, dg as EnablePricingPlansForServiceRequest, E as EnablePricingPlansForServiceResponse, bE as EntityCreatedEvent, bH as EntityDeletedEvent, bG as EntityUpdatedEvent, ds as EntryPass, au as Event, e2 as EventMetadata, et as EventWithLiterals, bp as ExtendedFields, bQ as FieldViolation, aH as FixedPayment, aD as Form, d0 as FormDetails, aE as FormSettings, dH as GeoCoordinates, bY as GetServiceAvailabilityConstraintsRequest, bZ as GetServiceAvailabilityConstraintsResponse, bW as GetServiceRequest, bX as GetServiceResponse, cy as GroupByAggregation, cz as GroupByAggregationKindOneOf, cS as GroupByValueResults, dy as HtmlSitePublished, bK as IdentificationData, bL as IdentificationDataIdOneOf, cp as IncludeMissingValuesOptions, ak as Interval, ej as IntervalWithLiterals, dh as InvalidPricingPlan, ap as InvalidSlugError, eo as InvalidSlugErrorWithLiterals, bT as ItemMetadata, br as Keyword, aX as LimitEarlyBookingPolicy, aY as LimitLateBookingPolicy, _ as ListAddOnGroupsByServiceIdOptions, dY as ListAddOnGroupsByServiceIdRequest, $ as ListAddOnGroupsByServiceIdResponse, dE as Locale, L as Location, aO as LocationOptionsOneOf, a9 as LocationType, e8 as LocationTypeWithLiterals, c3 as MaskedService, az as Media, aA as MediaItem, aB as MediaItemItemOneOf, bJ as MessageEnvelope, ah as MissingValues, eg as MissingValuesWithLiterals, am as Mode, el as ModeWithLiterals, aI as Money, df as MoveToNewLocationsOptions, dL as Multilingual, cx as NestedAggregation, cv as NestedAggregationItem, cw as NestedAggregationItemKindOneOf, cF as NestedAggregationResults, cG as NestedAggregationResultsResultOneOf, aj as NestedAggregationType, ei as NestedAggregationTypeWithLiterals, cO as NestedResultValue, cP as NestedResultValueResultOneOf, cU as NestedResults, cK as NestedValueAggregationResult, aM as OnlineBooking, dz as Page, ce as Paging, ch as PagingMetadataV2, c6 as ParticipantNotification, b1 as ParticipantsPolicy, aF as Payment, aL as PaymentOptions, aG as PaymentRateOneOf, aw as PlacementType, ev as PlacementTypeWithLiterals, aW as PolicyDescription, dC as Properties, dR as PropertiesChange, q as QueryBookingFormsApplicationErrors, o as QueryBookingFormsOptions, c_ as QueryBookingFormsRequest, p as QueryBookingFormsResponse, d9 as QueryCategoriesFilter, v as QueryCategoriesOptions, d8 as QueryCategoriesRequest, w as QueryCategoriesResponse, d4 as QueryLocationsFilter, t as QueryLocationsOptions, d3 as QueryLocationsRequest, u as QueryLocationsResponse, cX as QueryPoliciesRequest, Q as QueryPoliciesResponse, da as QueryServicesMultiLanguageRequest, db as QueryServicesMultiLanguageResponse, ca as QueryServicesRequest, cg as QueryServicesResponse, cb as QueryV2, cc as QueryV2PagingMethodOneOf, cs as RangeAggregation, cE as RangeAggregationResult, co as RangeBucket, cM as RangeResult, cI as RangeResults, b9 as RankingOptions, aa as RankingOrder, e9 as RankingOrderWithLiterals, a7 as RateType, e6 as RateTypeWithLiterals, bv as ReindexMessage, bw as ReindexMessageActionOneOf, dd as RemovedLocationSessionsAction, de as RemovedLocationSessionsActionActionOptionsOneOf, an as RequestedFields, em as RequestedFieldsWithLiterals, a$ as ReschedulePolicy, ay as ResolutionMethod, ex as ResolutionMethodWithLiterals, bi as ResourceGroup, bj as ResourceIds, bm as ResourceType, b2 as ResourcesPolicy, bF as RestoreInfo, cQ as Results, b6 as SaveCreditCardPolicy, ct as ScalarAggregation, cN as ScalarResult, ai as ScalarType, eh as ScalarTypeWithLiterals, bb as Schedule, bz as Schema, cA as SearchDetails, cj as SearchServicesRequest, bq as SeoSchema, S as Service, b_ as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, bk as ServiceResource, bl as ServiceResourceSelectionOneOf, e4 as ServiceSearchSpec, a6 as ServiceType, e5 as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, k as ServicesQueryBuilder, e3 as ServicesQueryResult, bB as ServicesUrlsChanged, a2 as SetAddOnsForGroupApplicationErrors, a0 as SetAddOnsForGroupOptions, e0 as SetAddOnsForGroupRequest, a1 as SetAddOnsForGroupResponse, J as SetCustomSlugApplicationErrors, bA as SetCustomSlugEvent, H as SetCustomSlugOptions, dj as SetCustomSlugRequest, I as SetCustomSlugResponse, K as SetCustomSlugValidationErrors, x as SetServiceLocationsOptions, dc as SetServiceLocationsRequest, y as SetServiceLocationsResponse, bt as Settings, dT as SiteCloned, dS as SiteCreated, dB as SitePropertiesEvent, dA as SitePropertiesNotification, bn as Slug, ag as SortDirection, ef as SortDirectionWithLiterals, ae as SortOrder, ed as SortOrderWithLiterals, af as SortType, ee as SortTypeWithLiterals, cd as Sorting, ab as SortingMethodType, ea as SortingMethodTypeWithLiterals, dK as SpecialHourPeriod, b$ as SplitInterval, bf as StaffMediaItem, bg as StaffMediaItemItemOneOf, be as StaffMember, bh as StaffMemberDetails, b7 as StaffSortingPolicy, b8 as StaffSortingPolicyOptionsOneOf, ar as Status, eq as StatusWithLiterals, aR as StreetAddress, dM as SupportedLanguage, bs as Tag, dJ as TimePeriod, dO as Translation, bo as URLs, Z as UpdateAddOnGroupApplicationErrors, X as UpdateAddOnGroupOptions, dX as UpdateAddOnGroupRequest, Y as UpdateAddOnGroupResponse, U as UpdateService, c0 as UpdateServiceRequest, c1 as UpdateServiceResponse, b as UpdateServiceValidationErrors, bx as Upsert, dx as UserDomainInfoChangedEvent, aC as V2Category, ad as V2RequestedFields, ec as V2RequestedFieldsWithLiterals, bO as ValidateServiceRequest, bP as ValidateServiceResponse, V as ValidateSlugOptions, dk as ValidateSlugRequest, M as ValidateSlugResponse, cq as ValueAggregation, cr as ValueAggregationOptionsOneOf, cD as ValueAggregationResult, cL as ValueResult, cH as ValueResults, aK as VariedPayment, b0 as WaitlistPolicy, ac as WebhookIdentityType, eb as WebhookIdentityTypeWithLiterals, eD as bulkCreateServices, eJ as bulkDeleteServices, eK as bulkDeleteServicesByFilter, eG as bulkUpdateServices, eH as bulkUpdateServicesByFilter, eW as cloneService, eO as countServices, eX as createAddOnGroup, eC as createService, eY as deleteAddOnGroup, eI as deleteService, eT as disablePricingPlansForService, eS as enablePricingPlansForService, eE as getService, e_ as listAddOnGroupsByServiceId, ez as onServiceCreated, eA as onServiceDeleted, eB as onServiceUpdated, eN as queryBookingForms, eQ as queryCategories, eP as queryLocations, eM as queryPolicies, eL as queryServices, e$ as setAddOnsForGroup, eU as setCustomSlug, eR as setServiceLocations, eZ as updateAddOnGroup, eF as updateService, eV as validateSlug } from './bookings-services-v2-service-services.universal-ITYqFvzY.mjs';
|
|
1
|
+
import { cv as CursorSearch, x as SearchServicesResponse } from './bookings-services-v2-service-services.universal-B6t2dBMg.mjs';
|
|
2
|
+
export { ap as Action, bJ as ActionEvent, eq as ActionWithLiterals, bT as AddOn, bU as AddOnAddOnInfoOneOf, bv as AddOnDetails, A as AddOnGroup, bV as AddOnGroupDetail, a8 as AddOnPaymentOptions, e9 as AddOnPaymentOptionsWithLiterals, dQ as Address, dR as AddressHint, aT as AddressLocation, cx as Aggregation, cN as AggregationData, cy as AggregationKindOneOf, d4 as AggregationResults, d5 as AggregationResultsResultOneOf, cU as AggregationResultsScalarResult, am as AggregationType, en as AggregationTypeWithLiterals, c3 as ApplicationError, bd as AvailabilityConstraints, e3 as BaseEventMetadata, dG as Behavior, dH as BehaviorBehaviorOneOf, dC as Benefit, dB as BenefitNotification, au as BenefitType, ev as BenefitTypeWithLiterals, a_ as BookAfterStartPolicy, da as BookingForm, aW as BookingPolicy, d8 as BookingPolicyWithServices, c4 as BulkActionMetadata, B as BulkCreateServicesOptions, c0 as BulkCreateServicesRequest, j as BulkCreateServicesResponse, t as BulkDeleteServicesByFilterOptions, ck as BulkDeleteServicesByFilterRequest, u as BulkDeleteServicesByFilterResponse, r as BulkDeleteServicesOptions, cj as BulkDeleteServicesRequest, s as BulkDeleteServicesResponse, c1 as BulkServiceResult, o as BulkUpdateServicesByFilterOptions, cf as BulkUpdateServicesByFilterRequest, p as BulkUpdateServicesByFilterResponse, m as BulkUpdateServicesOptions, cd as BulkUpdateServicesRequest, n as BulkUpdateServicesResponse, aU as BusinessLocationOptions, dg as BusinessLocations, dT as BusinessSchedule, b4 as CancellationFeePolicy, a$ as CancellationPolicy, b5 as CancellationWindow, b6 as CancellationWindowFeeOneOf, dO as Categories, dz as Category, dy as CategoryNotification, at as CategoryNotificationEvent, eu as CategoryNotificationEventWithLiterals, d_ as ChangeContext, d$ as ChangeContextPayloadOneOf, ar as CloneErrors, es as CloneErrorsWithLiterals, dx as CloneServiceRequest, a2 as CloneServiceResponse, aQ as CommonAddress, aR as CommonAddressStreetOneOf, eB as CommonSearchWithEntityContext, aO as Conferencing, dc as ConnectedService, dY as ConsentPolicy, G as CountServicesOptions, dd as CountServicesRequest, H as CountServicesResponse, C as CreateAddOnGroupOptions, bO as CreateAddOnGroupRequest, a as CreateAddOnGroupResponse, bX as CreateServiceRequest, bY as CreateServiceResponse, i as CreateServiceValidationErrors, aw as CrudType, ex as CrudTypeWithLiterals, cq as CursorPaging, cM as CursorPagingMetadata, y as CursorQuery, d7 as CursorQueryPagingMethodOneOf, cw as CursorSearchPagingMethodOneOf, ct as Cursors, aV as CustomLocationOptions, dh as CustomLocations, bb as CustomOptions, aK as CustomPayment, di as CustomerLocations, cF as DateHistogramAggregation, d0 as DateHistogramResult, d2 as DateHistogramResults, ay as DayOfWeek, ez as DayOfWeekWithLiterals, bz as Delete, b as DeleteAddOnGroupApplicationErrors, D as DeleteAddOnGroupOptions, bP as DeleteAddOnGroupRequest, bQ as DeleteAddOnGroupResponse, q as DeleteServiceOptions, cg as DeleteServiceRequest, ci as DeleteServiceResponse, X as DisablePricingPlansForServiceApplicationErrors, V as DisablePricingPlansForServiceOptions, du as DisablePricingPlansForServiceRequest, W as DisablePricingPlansForServiceResponse, dE as Discount, dF as DiscountDiscountOneOf, bD as DomainEvent, bE as DomainEventBodyOneOf, be as Duration, dA as Empty, T as EnablePricingPlansForServiceApplicationErrors, ds as EnablePricingPlansForServiceRequest, R as EnablePricingPlansForServiceResponse, bF as EntityCreatedEvent, bI as EntityDeletedEvent, bH as EntityUpdatedEvent, dD as EntryPass, av as Event, e4 as EventMetadata, ew as EventWithLiterals, bq as ExtendedFields, b$ as FieldViolation, aI as FixedPayment, aE as Form, db as FormDetails, aF as FormSettings, dS as GeoCoordinates, c7 as GetServiceAvailabilityConstraintsRequest, c8 as GetServiceAvailabilityConstraintsResponse, c5 as GetServiceRequest, c6 as GetServiceResponse, cJ as GroupByAggregation, cK as GroupByAggregationKindOneOf, d1 as GroupByValueResults, dJ as HtmlSitePublished, bL as IdentificationData, bM as IdentificationDataIdOneOf, cA as IncludeMissingValuesOptions, al as Interval, em as IntervalWithLiterals, dt as InvalidPricingPlan, aq as InvalidSlugError, er as InvalidSlugErrorWithLiterals, c2 as ItemMetadata, bs as Keyword, aY as LimitEarlyBookingPolicy, aZ as LimitLateBookingPolicy, L as ListAddOnGroupsByServiceIdOptions, bS as ListAddOnGroupsByServiceIdRequest, e as ListAddOnGroupsByServiceIdResponse, dP as Locale, N as Location, aP as LocationOptionsOneOf, a9 as LocationType, ea as LocationTypeWithLiterals, ce as MaskedService, aA as Media, aB as MediaItem, aC as MediaItemItemOneOf, bK as MessageEnvelope, ai as MissingValues, ej as MissingValuesWithLiterals, an as Mode, eo as ModeWithLiterals, aJ as Money, dr as MoveToNewLocationsOptions, dW as Multilingual, cI as NestedAggregation, cG as NestedAggregationItem, cH as NestedAggregationItemKindOneOf, cQ as NestedAggregationResults, cR as NestedAggregationResultsResultOneOf, ak as NestedAggregationType, el as NestedAggregationTypeWithLiterals, cZ as NestedResultValue, c_ as NestedResultValueResultOneOf, d3 as NestedResults, cV as NestedValueAggregationResult, aN as OnlineBooking, dK as Page, cp as Paging, cs as PagingMetadataV2, ch as ParticipantNotification, b2 as ParticipantsPolicy, aG as Payment, aM as PaymentOptions, aH as PaymentRateOneOf, ax as PlacementType, ey as PlacementTypeWithLiterals, aX as PolicyDescription, dN as Properties, e0 as PropertiesChange, F as QueryBookingFormsApplicationErrors, z as QueryBookingFormsOptions, d9 as QueryBookingFormsRequest, E as QueryBookingFormsResponse, dk as QueryCategoriesFilter, K as QueryCategoriesOptions, dj as QueryCategoriesRequest, M as QueryCategoriesResponse, df as QueryLocationsFilter, I as QueryLocationsOptions, de as QueryLocationsRequest, J as QueryLocationsResponse, d6 as QueryPoliciesRequest, Q as QueryPoliciesResponse, dl as QueryServicesMultiLanguageRequest, dm as QueryServicesMultiLanguageResponse, cl as QueryServicesRequest, cr as QueryServicesResponse, cm as QueryV2, cn as QueryV2PagingMethodOneOf, cD as RangeAggregation, cP as RangeAggregationResult, cz as RangeBucket, cX as RangeResult, cT as RangeResults, ba as RankingOptions, aa as RankingOrder, eb as RankingOrderWithLiterals, a7 as RateType, e8 as RateTypeWithLiterals, bw as ReindexMessage, bx as ReindexMessageActionOneOf, dp as RemovedLocationSessionsAction, dq as RemovedLocationSessionsActionActionOptionsOneOf, ao as RequestedFields, ep as RequestedFieldsWithLiterals, b0 as ReschedulePolicy, az as ResolutionMethod, eA as ResolutionMethodWithLiterals, bj as ResourceGroup, bk as ResourceIds, bn as ResourceType, b3 as ResourcesPolicy, bG as RestoreInfo, c$ as Results, b7 as SaveCreditCardPolicy, cE as ScalarAggregation, cY as ScalarResult, aj as ScalarType, ek as ScalarTypeWithLiterals, bc as Schedule, bA as Schema, cL as SearchDetails, cu as SearchServicesRequest, br as SeoSchema, h as Service, c9 as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, bl as ServiceResource, bm as ServiceResourceSelectionOneOf, e6 as ServiceSearchSpec, a6 as ServiceType, e7 as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, v as ServicesQueryBuilder, e5 as ServicesQueryResult, bC as ServicesUrlsChanged, g as SetAddOnsForGroupApplicationErrors, S as SetAddOnsForGroupOptions, bW as SetAddOnsForGroupRequest, f as SetAddOnsForGroupResponse, _ as SetCustomSlugApplicationErrors, bB as SetCustomSlugEvent, Y as SetCustomSlugOptions, dv as SetCustomSlugRequest, Z as SetCustomSlugResponse, $ as SetCustomSlugValidationErrors, O as SetServiceLocationsOptions, dn as SetServiceLocationsRequest, P as SetServiceLocationsResponse, bu as Settings, e2 as SiteCloned, e1 as SiteCreated, dM as SitePropertiesEvent, dL as SitePropertiesNotification, bo as Slug, ah as SortDirection, ei as SortDirectionWithLiterals, af as SortOrder, eg as SortOrderWithLiterals, ag as SortType, eh as SortTypeWithLiterals, co as Sorting, ab as SortingMethodType, ec as SortingMethodTypeWithLiterals, dV as SpecialHourPeriod, ca as SplitInterval, bg as StaffMediaItem, bh as StaffMediaItemItemOneOf, bf as StaffMember, bi as StaffMemberDetails, b8 as StaffSortingPolicy, b9 as StaffSortingPolicyOptionsOneOf, as as Status, et as StatusWithLiterals, aS as StreetAddress, dX as SupportedLanguage, bt as Tag, bN as TaxableAddress, ad as TaxableAddressType, ee as TaxableAddressTypeWithLiterals, dU as TimePeriod, dZ as Translation, bp as URLs, d as UpdateAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, bR as UpdateAddOnGroupRequest, c as UpdateAddOnGroupResponse, k as UpdateService, cb as UpdateServiceRequest, cc as UpdateServiceResponse, l as UpdateServiceValidationErrors, by as Upsert, dI as UserDomainInfoChangedEvent, aD as V2Category, ae as V2RequestedFields, ef as V2RequestedFieldsWithLiterals, bZ as ValidateServiceRequest, b_ as ValidateServiceResponse, a0 as ValidateSlugOptions, dw as ValidateSlugRequest, a1 as ValidateSlugResponse, cB as ValueAggregation, cC as ValueAggregationOptionsOneOf, cO as ValueAggregationResult, cW as ValueResult, cS as ValueResults, aL as VariedPayment, b1 as WaitlistPolicy, ac as WebhookIdentityType, ed as WebhookIdentityTypeWithLiterals, eL as bulkCreateServices, eR as bulkDeleteServices, eS as bulkDeleteServicesByFilter, eO as bulkUpdateServices, eP as bulkUpdateServicesByFilter, f2 as cloneService, eW as countServices, eF as createAddOnGroup, eK as createService, eG as deleteAddOnGroup, eQ as deleteService, e$ as disablePricingPlansForService, e_ as enablePricingPlansForService, eM as getService, eI as listAddOnGroupsByServiceId, eC as onServiceCreated, eD as onServiceDeleted, eE as onServiceUpdated, eV as queryBookingForms, eY as queryCategories, eX as queryLocations, eU as queryPolicies, eT as queryServices, eJ as setAddOnsForGroup, f0 as setCustomSlug, eZ as setServiceLocations, eH as updateAddOnGroup, eN as updateService, f1 as validateSlug } from './bookings-services-v2-service-services.universal-B6t2dBMg.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,102 @@ 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
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
257
|
+
protoPath: "/v2/services/add-on-groups/create",
|
|
258
|
+
data: payload,
|
|
259
|
+
host
|
|
260
|
+
}),
|
|
261
|
+
data: payload
|
|
262
|
+
};
|
|
263
|
+
return metadata;
|
|
264
|
+
}
|
|
265
|
+
return __createAddOnGroup;
|
|
266
|
+
}
|
|
267
|
+
function deleteAddOnGroup(payload) {
|
|
268
|
+
function __deleteAddOnGroup({ host }) {
|
|
269
|
+
const metadata = {
|
|
270
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
271
|
+
method: "POST",
|
|
272
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
273
|
+
packageName: PACKAGE_NAME,
|
|
274
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
275
|
+
protoPath: "/v2/services/add-on-groups/delete",
|
|
276
|
+
data: payload,
|
|
277
|
+
host
|
|
278
|
+
}),
|
|
279
|
+
data: payload
|
|
280
|
+
};
|
|
281
|
+
return metadata;
|
|
282
|
+
}
|
|
283
|
+
return __deleteAddOnGroup;
|
|
284
|
+
}
|
|
285
|
+
function updateAddOnGroup(payload) {
|
|
286
|
+
function __updateAddOnGroup({ host }) {
|
|
287
|
+
const serializedData = transformPaths(payload, [
|
|
288
|
+
{
|
|
289
|
+
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
290
|
+
paths: [{ path: "mask" }]
|
|
291
|
+
}
|
|
292
|
+
]);
|
|
293
|
+
const metadata = {
|
|
294
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
295
|
+
method: "POST",
|
|
296
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
297
|
+
packageName: PACKAGE_NAME,
|
|
298
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
299
|
+
protoPath: "/v2/services/add-on-groups/update",
|
|
300
|
+
data: serializedData,
|
|
301
|
+
host
|
|
302
|
+
}),
|
|
303
|
+
data: serializedData
|
|
304
|
+
};
|
|
305
|
+
return metadata;
|
|
306
|
+
}
|
|
307
|
+
return __updateAddOnGroup;
|
|
308
|
+
}
|
|
309
|
+
function listAddOnGroupsByServiceId(payload) {
|
|
310
|
+
function __listAddOnGroupsByServiceId({ host }) {
|
|
311
|
+
const metadata = {
|
|
312
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
313
|
+
method: "POST",
|
|
314
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
315
|
+
packageName: PACKAGE_NAME,
|
|
316
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
317
|
+
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
318
|
+
data: payload,
|
|
319
|
+
host
|
|
320
|
+
}),
|
|
321
|
+
data: payload
|
|
322
|
+
};
|
|
323
|
+
return metadata;
|
|
324
|
+
}
|
|
325
|
+
return __listAddOnGroupsByServiceId;
|
|
326
|
+
}
|
|
327
|
+
function setAddOnsForGroup(payload) {
|
|
328
|
+
function __setAddOnsForGroup({ host }) {
|
|
329
|
+
const metadata = {
|
|
330
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
331
|
+
method: "POST",
|
|
332
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
333
|
+
packageName: PACKAGE_NAME,
|
|
334
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
335
|
+
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
336
|
+
data: payload,
|
|
337
|
+
host
|
|
338
|
+
}),
|
|
339
|
+
data: payload
|
|
340
|
+
};
|
|
341
|
+
return metadata;
|
|
342
|
+
}
|
|
343
|
+
return __setAddOnsForGroup;
|
|
344
|
+
}
|
|
249
345
|
function createService(payload) {
|
|
250
346
|
function __createService({ host }) {
|
|
251
347
|
const serializedData = transformPaths(payload, [
|
|
@@ -1529,102 +1625,6 @@ function cloneService(payload) {
|
|
|
1529
1625
|
}
|
|
1530
1626
|
return __cloneService;
|
|
1531
1627
|
}
|
|
1532
|
-
function createAddOnGroup(payload) {
|
|
1533
|
-
function __createAddOnGroup({ host }) {
|
|
1534
|
-
const metadata = {
|
|
1535
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1536
|
-
method: "POST",
|
|
1537
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
1538
|
-
packageName: PACKAGE_NAME,
|
|
1539
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1540
|
-
protoPath: "/v2/services/add-on-groups/create",
|
|
1541
|
-
data: payload,
|
|
1542
|
-
host
|
|
1543
|
-
}),
|
|
1544
|
-
data: payload
|
|
1545
|
-
};
|
|
1546
|
-
return metadata;
|
|
1547
|
-
}
|
|
1548
|
-
return __createAddOnGroup;
|
|
1549
|
-
}
|
|
1550
|
-
function deleteAddOnGroup(payload) {
|
|
1551
|
-
function __deleteAddOnGroup({ host }) {
|
|
1552
|
-
const metadata = {
|
|
1553
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1554
|
-
method: "POST",
|
|
1555
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
1556
|
-
packageName: PACKAGE_NAME,
|
|
1557
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1558
|
-
protoPath: "/v2/services/add-on-groups/delete",
|
|
1559
|
-
data: payload,
|
|
1560
|
-
host
|
|
1561
|
-
}),
|
|
1562
|
-
data: payload
|
|
1563
|
-
};
|
|
1564
|
-
return metadata;
|
|
1565
|
-
}
|
|
1566
|
-
return __deleteAddOnGroup;
|
|
1567
|
-
}
|
|
1568
|
-
function updateAddOnGroup(payload) {
|
|
1569
|
-
function __updateAddOnGroup({ host }) {
|
|
1570
|
-
const serializedData = transformPaths(payload, [
|
|
1571
|
-
{
|
|
1572
|
-
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1573
|
-
paths: [{ path: "mask" }]
|
|
1574
|
-
}
|
|
1575
|
-
]);
|
|
1576
|
-
const metadata = {
|
|
1577
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1578
|
-
method: "POST",
|
|
1579
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
1580
|
-
packageName: PACKAGE_NAME,
|
|
1581
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1582
|
-
protoPath: "/v2/services/add-on-groups/update",
|
|
1583
|
-
data: serializedData,
|
|
1584
|
-
host
|
|
1585
|
-
}),
|
|
1586
|
-
data: serializedData
|
|
1587
|
-
};
|
|
1588
|
-
return metadata;
|
|
1589
|
-
}
|
|
1590
|
-
return __updateAddOnGroup;
|
|
1591
|
-
}
|
|
1592
|
-
function listAddOnGroupsByServiceId(payload) {
|
|
1593
|
-
function __listAddOnGroupsByServiceId({ host }) {
|
|
1594
|
-
const metadata = {
|
|
1595
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1596
|
-
method: "POST",
|
|
1597
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
1598
|
-
packageName: PACKAGE_NAME,
|
|
1599
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1600
|
-
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
1601
|
-
data: payload,
|
|
1602
|
-
host
|
|
1603
|
-
}),
|
|
1604
|
-
data: payload
|
|
1605
|
-
};
|
|
1606
|
-
return metadata;
|
|
1607
|
-
}
|
|
1608
|
-
return __listAddOnGroupsByServiceId;
|
|
1609
|
-
}
|
|
1610
|
-
function setAddOnsForGroup(payload) {
|
|
1611
|
-
function __setAddOnsForGroup({ host }) {
|
|
1612
|
-
const metadata = {
|
|
1613
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
1614
|
-
method: "POST",
|
|
1615
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
1616
|
-
packageName: PACKAGE_NAME,
|
|
1617
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1618
|
-
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
1619
|
-
data: payload,
|
|
1620
|
-
host
|
|
1621
|
-
}),
|
|
1622
|
-
data: payload
|
|
1623
|
-
};
|
|
1624
|
-
return metadata;
|
|
1625
|
-
}
|
|
1626
|
-
return __setAddOnsForGroup;
|
|
1627
|
-
}
|
|
1628
1628
|
|
|
1629
1629
|
// src/bookings-services-v2-service-services.universal.ts
|
|
1630
1630
|
import { transformSDKAddressToRESTAddress } from "@wix/sdk-runtime/transformations/address";
|
|
@@ -1682,6 +1682,12 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1682
1682
|
WebhookIdentityType2["APP"] = "APP";
|
|
1683
1683
|
return WebhookIdentityType2;
|
|
1684
1684
|
})(WebhookIdentityType || {});
|
|
1685
|
+
var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
|
|
1686
|
+
TaxableAddressType2["UNKNOWN_TAXABLE_ADDRESS_TYPE"] = "UNKNOWN_TAXABLE_ADDRESS_TYPE";
|
|
1687
|
+
TaxableAddressType2["BUSINESS"] = "BUSINESS";
|
|
1688
|
+
TaxableAddressType2["BILLING"] = "BILLING";
|
|
1689
|
+
return TaxableAddressType2;
|
|
1690
|
+
})(TaxableAddressType || {});
|
|
1685
1691
|
var V2RequestedFields = /* @__PURE__ */ ((V2RequestedFields2) => {
|
|
1686
1692
|
V2RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
1687
1693
|
V2RequestedFields2["STAFF_MEMBER_DETAILS"] = "STAFF_MEMBER_DETAILS";
|
|
@@ -1824,6 +1830,153 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
1824
1830
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
1825
1831
|
return ResolutionMethod2;
|
|
1826
1832
|
})(ResolutionMethod || {});
|
|
1833
|
+
async function createAddOnGroup2(addOnGroup, options) {
|
|
1834
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1835
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1836
|
+
addOnGroup,
|
|
1837
|
+
serviceId: options?.serviceId
|
|
1838
|
+
});
|
|
1839
|
+
const reqOpts = createAddOnGroup(payload);
|
|
1840
|
+
sideEffects?.onSiteCall?.();
|
|
1841
|
+
try {
|
|
1842
|
+
const result = await httpClient.request(reqOpts);
|
|
1843
|
+
sideEffects?.onSuccess?.(result);
|
|
1844
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1845
|
+
} catch (err) {
|
|
1846
|
+
const transformedError = sdkTransformError(
|
|
1847
|
+
err,
|
|
1848
|
+
{
|
|
1849
|
+
spreadPathsToArguments: {},
|
|
1850
|
+
explicitPathsToArguments: {
|
|
1851
|
+
addOnGroup: "$[0]",
|
|
1852
|
+
serviceId: "$[1].serviceId"
|
|
1853
|
+
},
|
|
1854
|
+
singleArgumentUnchanged: false
|
|
1855
|
+
},
|
|
1856
|
+
["addOnGroup", "options"]
|
|
1857
|
+
);
|
|
1858
|
+
sideEffects?.onError?.(err);
|
|
1859
|
+
throw transformedError;
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
1863
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1864
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1865
|
+
addOnGroupId,
|
|
1866
|
+
serviceId: options?.serviceId
|
|
1867
|
+
});
|
|
1868
|
+
const reqOpts = deleteAddOnGroup(payload);
|
|
1869
|
+
sideEffects?.onSiteCall?.();
|
|
1870
|
+
try {
|
|
1871
|
+
const result = await httpClient.request(reqOpts);
|
|
1872
|
+
sideEffects?.onSuccess?.(result);
|
|
1873
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1874
|
+
} catch (err) {
|
|
1875
|
+
const transformedError = sdkTransformError(
|
|
1876
|
+
err,
|
|
1877
|
+
{
|
|
1878
|
+
spreadPathsToArguments: {},
|
|
1879
|
+
explicitPathsToArguments: {
|
|
1880
|
+
addOnGroupId: "$[0]",
|
|
1881
|
+
serviceId: "$[1].serviceId"
|
|
1882
|
+
},
|
|
1883
|
+
singleArgumentUnchanged: false
|
|
1884
|
+
},
|
|
1885
|
+
["addOnGroupId", "options"]
|
|
1886
|
+
);
|
|
1887
|
+
sideEffects?.onError?.(err);
|
|
1888
|
+
throw transformedError;
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
async function updateAddOnGroup2(addOnGroup, options) {
|
|
1892
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1893
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1894
|
+
addOnGroup,
|
|
1895
|
+
serviceId: options?.serviceId
|
|
1896
|
+
});
|
|
1897
|
+
const reqOpts = updateAddOnGroup(payload);
|
|
1898
|
+
sideEffects?.onSiteCall?.();
|
|
1899
|
+
try {
|
|
1900
|
+
const result = await httpClient.request(reqOpts);
|
|
1901
|
+
sideEffects?.onSuccess?.(result);
|
|
1902
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1903
|
+
} catch (err) {
|
|
1904
|
+
const transformedError = sdkTransformError(
|
|
1905
|
+
err,
|
|
1906
|
+
{
|
|
1907
|
+
spreadPathsToArguments: {},
|
|
1908
|
+
explicitPathsToArguments: {
|
|
1909
|
+
addOnGroup: "$[0]",
|
|
1910
|
+
serviceId: "$[1].serviceId"
|
|
1911
|
+
},
|
|
1912
|
+
singleArgumentUnchanged: false
|
|
1913
|
+
},
|
|
1914
|
+
["addOnGroup", "options"]
|
|
1915
|
+
);
|
|
1916
|
+
sideEffects?.onError?.(err);
|
|
1917
|
+
throw transformedError;
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
1921
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1922
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1923
|
+
serviceId,
|
|
1924
|
+
groupIds: options?.groupIds
|
|
1925
|
+
});
|
|
1926
|
+
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
1927
|
+
sideEffects?.onSiteCall?.();
|
|
1928
|
+
try {
|
|
1929
|
+
const result = await httpClient.request(reqOpts);
|
|
1930
|
+
sideEffects?.onSuccess?.(result);
|
|
1931
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1932
|
+
} catch (err) {
|
|
1933
|
+
const transformedError = sdkTransformError(
|
|
1934
|
+
err,
|
|
1935
|
+
{
|
|
1936
|
+
spreadPathsToArguments: {},
|
|
1937
|
+
explicitPathsToArguments: {
|
|
1938
|
+
serviceId: "$[0]",
|
|
1939
|
+
groupIds: "$[1].groupIds"
|
|
1940
|
+
},
|
|
1941
|
+
singleArgumentUnchanged: false
|
|
1942
|
+
},
|
|
1943
|
+
["serviceId", "options"]
|
|
1944
|
+
);
|
|
1945
|
+
sideEffects?.onError?.(err);
|
|
1946
|
+
throw transformedError;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
async function setAddOnsForGroup2(serviceId, options) {
|
|
1950
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1951
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1952
|
+
serviceId,
|
|
1953
|
+
groupId: options?.groupId,
|
|
1954
|
+
addOnIds: options?.addOnIds
|
|
1955
|
+
});
|
|
1956
|
+
const reqOpts = setAddOnsForGroup(payload);
|
|
1957
|
+
sideEffects?.onSiteCall?.();
|
|
1958
|
+
try {
|
|
1959
|
+
const result = await httpClient.request(reqOpts);
|
|
1960
|
+
sideEffects?.onSuccess?.(result);
|
|
1961
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1962
|
+
} catch (err) {
|
|
1963
|
+
const transformedError = sdkTransformError(
|
|
1964
|
+
err,
|
|
1965
|
+
{
|
|
1966
|
+
spreadPathsToArguments: {},
|
|
1967
|
+
explicitPathsToArguments: {
|
|
1968
|
+
serviceId: "$[0]",
|
|
1969
|
+
groupId: "$[1].groupId",
|
|
1970
|
+
addOnIds: "$[1].addOnIds"
|
|
1971
|
+
},
|
|
1972
|
+
singleArgumentUnchanged: false
|
|
1973
|
+
},
|
|
1974
|
+
["serviceId", "options"]
|
|
1975
|
+
);
|
|
1976
|
+
sideEffects?.onError?.(err);
|
|
1977
|
+
throw transformedError;
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1827
1980
|
async function createService2(service) {
|
|
1828
1981
|
const { httpClient, sideEffects } = arguments[1];
|
|
1829
1982
|
const payload = transformPaths2(
|
|
@@ -3056,153 +3209,6 @@ async function cloneService2(sourceServiceId) {
|
|
|
3056
3209
|
throw transformedError;
|
|
3057
3210
|
}
|
|
3058
3211
|
}
|
|
3059
|
-
async function createAddOnGroup2(addOnGroup, options) {
|
|
3060
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3061
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3062
|
-
addOnGroup,
|
|
3063
|
-
serviceId: options?.serviceId
|
|
3064
|
-
});
|
|
3065
|
-
const reqOpts = createAddOnGroup(payload);
|
|
3066
|
-
sideEffects?.onSiteCall?.();
|
|
3067
|
-
try {
|
|
3068
|
-
const result = await httpClient.request(reqOpts);
|
|
3069
|
-
sideEffects?.onSuccess?.(result);
|
|
3070
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3071
|
-
} catch (err) {
|
|
3072
|
-
const transformedError = sdkTransformError(
|
|
3073
|
-
err,
|
|
3074
|
-
{
|
|
3075
|
-
spreadPathsToArguments: {},
|
|
3076
|
-
explicitPathsToArguments: {
|
|
3077
|
-
addOnGroup: "$[0]",
|
|
3078
|
-
serviceId: "$[1].serviceId"
|
|
3079
|
-
},
|
|
3080
|
-
singleArgumentUnchanged: false
|
|
3081
|
-
},
|
|
3082
|
-
["addOnGroup", "options"]
|
|
3083
|
-
);
|
|
3084
|
-
sideEffects?.onError?.(err);
|
|
3085
|
-
throw transformedError;
|
|
3086
|
-
}
|
|
3087
|
-
}
|
|
3088
|
-
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
3089
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3090
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3091
|
-
addOnGroupId,
|
|
3092
|
-
serviceId: options?.serviceId
|
|
3093
|
-
});
|
|
3094
|
-
const reqOpts = deleteAddOnGroup(payload);
|
|
3095
|
-
sideEffects?.onSiteCall?.();
|
|
3096
|
-
try {
|
|
3097
|
-
const result = await httpClient.request(reqOpts);
|
|
3098
|
-
sideEffects?.onSuccess?.(result);
|
|
3099
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3100
|
-
} catch (err) {
|
|
3101
|
-
const transformedError = sdkTransformError(
|
|
3102
|
-
err,
|
|
3103
|
-
{
|
|
3104
|
-
spreadPathsToArguments: {},
|
|
3105
|
-
explicitPathsToArguments: {
|
|
3106
|
-
addOnGroupId: "$[0]",
|
|
3107
|
-
serviceId: "$[1].serviceId"
|
|
3108
|
-
},
|
|
3109
|
-
singleArgumentUnchanged: false
|
|
3110
|
-
},
|
|
3111
|
-
["addOnGroupId", "options"]
|
|
3112
|
-
);
|
|
3113
|
-
sideEffects?.onError?.(err);
|
|
3114
|
-
throw transformedError;
|
|
3115
|
-
}
|
|
3116
|
-
}
|
|
3117
|
-
async function updateAddOnGroup2(addOnGroup, options) {
|
|
3118
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3119
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3120
|
-
addOnGroup,
|
|
3121
|
-
serviceId: options?.serviceId
|
|
3122
|
-
});
|
|
3123
|
-
const reqOpts = updateAddOnGroup(payload);
|
|
3124
|
-
sideEffects?.onSiteCall?.();
|
|
3125
|
-
try {
|
|
3126
|
-
const result = await httpClient.request(reqOpts);
|
|
3127
|
-
sideEffects?.onSuccess?.(result);
|
|
3128
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3129
|
-
} catch (err) {
|
|
3130
|
-
const transformedError = sdkTransformError(
|
|
3131
|
-
err,
|
|
3132
|
-
{
|
|
3133
|
-
spreadPathsToArguments: {},
|
|
3134
|
-
explicitPathsToArguments: {
|
|
3135
|
-
addOnGroup: "$[0]",
|
|
3136
|
-
serviceId: "$[1].serviceId"
|
|
3137
|
-
},
|
|
3138
|
-
singleArgumentUnchanged: false
|
|
3139
|
-
},
|
|
3140
|
-
["addOnGroup", "options"]
|
|
3141
|
-
);
|
|
3142
|
-
sideEffects?.onError?.(err);
|
|
3143
|
-
throw transformedError;
|
|
3144
|
-
}
|
|
3145
|
-
}
|
|
3146
|
-
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
3147
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3148
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3149
|
-
serviceId,
|
|
3150
|
-
groupIds: options?.groupIds
|
|
3151
|
-
});
|
|
3152
|
-
const reqOpts = listAddOnGroupsByServiceId(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
|
-
serviceId: "$[0]",
|
|
3165
|
-
groupIds: "$[1].groupIds"
|
|
3166
|
-
},
|
|
3167
|
-
singleArgumentUnchanged: false
|
|
3168
|
-
},
|
|
3169
|
-
["serviceId", "options"]
|
|
3170
|
-
);
|
|
3171
|
-
sideEffects?.onError?.(err);
|
|
3172
|
-
throw transformedError;
|
|
3173
|
-
}
|
|
3174
|
-
}
|
|
3175
|
-
async function setAddOnsForGroup2(serviceId, options) {
|
|
3176
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
3177
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
3178
|
-
serviceId,
|
|
3179
|
-
groupId: options?.groupId,
|
|
3180
|
-
addOnIds: options?.addOnIds
|
|
3181
|
-
});
|
|
3182
|
-
const reqOpts = setAddOnsForGroup(payload);
|
|
3183
|
-
sideEffects?.onSiteCall?.();
|
|
3184
|
-
try {
|
|
3185
|
-
const result = await httpClient.request(reqOpts);
|
|
3186
|
-
sideEffects?.onSuccess?.(result);
|
|
3187
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
3188
|
-
} catch (err) {
|
|
3189
|
-
const transformedError = sdkTransformError(
|
|
3190
|
-
err,
|
|
3191
|
-
{
|
|
3192
|
-
spreadPathsToArguments: {},
|
|
3193
|
-
explicitPathsToArguments: {
|
|
3194
|
-
serviceId: "$[0]",
|
|
3195
|
-
groupId: "$[1].groupId",
|
|
3196
|
-
addOnIds: "$[1].addOnIds"
|
|
3197
|
-
},
|
|
3198
|
-
singleArgumentUnchanged: false
|
|
3199
|
-
},
|
|
3200
|
-
["serviceId", "options"]
|
|
3201
|
-
);
|
|
3202
|
-
sideEffects?.onError?.(err);
|
|
3203
|
-
throw transformedError;
|
|
3204
|
-
}
|
|
3205
|
-
}
|
|
3206
3212
|
export {
|
|
3207
3213
|
Action,
|
|
3208
3214
|
AddOnPaymentOptions,
|
|
@@ -3231,6 +3237,7 @@ export {
|
|
|
3231
3237
|
SortType,
|
|
3232
3238
|
SortingMethodType,
|
|
3233
3239
|
Status,
|
|
3240
|
+
TaxableAddressType,
|
|
3234
3241
|
V2RequestedFields,
|
|
3235
3242
|
WebhookIdentityType,
|
|
3236
3243
|
bulkCreateServices2 as bulkCreateServices,
|