@wix/auto_sdk_bookings_services 1.0.131 → 1.0.133
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-CyRaI-DD.d.ts → bookings-services-v2-service-services.universal-BdI6PnqP.d.ts} +285 -271
- package/build/cjs/index.d.ts +60 -60
- package/build/cjs/index.js +312 -312
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +275 -275
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +138 -138
- package/build/cjs/meta.js +200 -200
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-CyRaI-DD.d.mts → bookings-services-v2-service-services.universal-BdI6PnqP.d.mts} +285 -271
- package/build/es/index.d.mts +60 -60
- package/build/es/index.mjs +312 -312
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +275 -275
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +138 -138
- package/build/es/meta.mjs +200 -200
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-CyRaI-DD.d.ts → bookings-services-v2-service-services.universal-BdI6PnqP.d.ts} +285 -271
- package/build/internal/cjs/index.d.ts +60 -60
- package/build/internal/cjs/index.js +312 -312
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +275 -275
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +138 -138
- package/build/internal/cjs/meta.js +200 -200
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-CyRaI-DD.d.mts → bookings-services-v2-service-services.universal-BdI6PnqP.d.mts} +285 -271
- package/build/internal/es/index.d.mts +60 -60
- package/build/internal/es/index.mjs +312 -312
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +275 -275
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +138 -138
- package/build/internal/es/meta.mjs +200 -200
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ap as Action, bK as ActionEvent, eq as ActionWithLiterals, d$ as AddOn, e0 as AddOnAddOnInfoOneOf, bv as AddOnDetails, O as AddOnGroup, e1 as AddOnGroupDetail, a8 as AddOnPaymentOptions, e9 as AddOnPaymentOptionsWithLiterals, dH as Address, dI as AddressHint, aT as AddressLocation, co as Aggregation, cE as AggregationData, cp as AggregationKindOneOf, cX as AggregationResults, cY as AggregationResultsResultOneOf, cL as AggregationResultsScalarResult, am as AggregationType, en as AggregationTypeWithLiterals, bW as ApplicationError, bd as AvailabilityConstraints, e3 as BaseEventMetadata, dx as Behavior, dy as BehaviorBehaviorOneOf, dt as Benefit, ds as BenefitNotification, au as BenefitType, ev as BenefitTypeWithLiterals, a_ as BookAfterStartPolicy, d1 as BookingForm, aW as BookingPolicy, c$ as BookingPolicyWithServices, bX as BulkActionMetadata, B as BulkCreateServicesOptions, bT as BulkCreateServicesRequest, a as BulkCreateServicesResponse, i as BulkDeleteServicesByFilterOptions, cb as BulkDeleteServicesByFilterRequest, j as BulkDeleteServicesByFilterResponse, g as BulkDeleteServicesOptions, ca as BulkDeleteServicesRequest, h as BulkDeleteServicesResponse, bU as BulkServiceResult, e as BulkUpdateServicesByFilterOptions, c6 as BulkUpdateServicesByFilterRequest, f as BulkUpdateServicesByFilterResponse, c as BulkUpdateServicesOptions, c4 as BulkUpdateServicesRequest, d as BulkUpdateServicesResponse, aU as BusinessLocationOptions, d7 as BusinessLocations, dK as BusinessSchedule, b4 as CancellationFeePolicy, a$ as CancellationPolicy, b5 as CancellationWindow, b6 as CancellationWindowFeeOneOf, dF as Categories, dq as Category, dp as CategoryNotification, at as CategoryNotificationEvent, eu as CategoryNotificationEventWithLiterals, dR as ChangeContext, dS as ChangeContextPayloadOneOf, ar as CloneErrors, es as CloneErrorsWithLiterals, dn as CloneServiceRequest, N as CloneServiceResponse, aQ as CommonAddress, aR as CommonAddressStreetOneOf, eB as CommonSearchWithEntityContext, aO as Conferencing, d3 as ConnectedService, dP as ConsentPolicy, r as CountServicesOptions, d4 as CountServicesRequest, s as CountServicesResponse, P as CreateAddOnGroupOptions, dW as CreateAddOnGroupRequest, R as CreateAddOnGroupResponse, bO as CreateServiceRequest, bP as CreateServiceResponse, C as CreateServiceValidationErrors, aw as CrudType, ex as CrudTypeWithLiterals, ch as CursorPaging, cD as CursorPagingMetadata, n as CursorQuery, c_ as CursorQueryPagingMethodOneOf, cn as CursorSearchPagingMethodOneOf, ck as Cursors, aV as CustomLocationOptions, d8 as CustomLocations, bb as CustomOptions, aK as CustomPayment, d9 as CustomerLocations, cw as DateHistogramAggregation, cT as DateHistogramResult, cV as DateHistogramResults, ay as DayOfWeek, ez as DayOfWeekWithLiterals, bA as Delete, W as DeleteAddOnGroupApplicationErrors, T as DeleteAddOnGroupOptions, dX as DeleteAddOnGroupRequest, dY as DeleteAddOnGroupResponse, D as DeleteServiceOptions, c7 as DeleteServiceRequest, c9 as DeleteServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, dk as DisablePricingPlansForServiceRequest, F as DisablePricingPlansForServiceResponse, dv as Discount, dw as DiscountDiscountOneOf, bE as DomainEvent, bF as DomainEventBodyOneOf, be as Duration, dr as Empty, z as EnablePricingPlansForServiceApplicationErrors, di as EnablePricingPlansForServiceRequest, E as EnablePricingPlansForServiceResponse, bG as EntityCreatedEvent, bJ as EntityDeletedEvent, bI as EntityUpdatedEvent, du as EntryPass, av as Event, e4 as EventMetadata, ew as EventWithLiterals, bq as ExtendedFields, bS as FieldViolation, aI as FixedPayment, aE as Form, d2 as FormDetails, aF as FormSettings, dJ as GeoCoordinates, b_ as GetServiceAvailabilityConstraintsRequest, b$ as GetServiceAvailabilityConstraintsResponse, bY as GetServiceRequest, bZ as GetServiceResponse, cA as GroupByAggregation, cB as GroupByAggregationKindOneOf, cU as GroupByValueResults, dA as HtmlSitePublished, bM as IdentificationData, bN as IdentificationDataIdOneOf, cr as IncludeMissingValuesOptions, al as Interval, em as IntervalWithLiterals, dj as InvalidPricingPlan, aq as InvalidSlugError, er as InvalidSlugErrorWithLiterals, bV as ItemMetadata, bs as Keyword, aY as LimitEarlyBookingPolicy, aZ as LimitLateBookingPolicy, _ as ListAddOnGroupsByServiceIdOptions, d_ as ListAddOnGroupsByServiceIdRequest, $ as ListAddOnGroupsByServiceIdResponse, dG as Locale, L as Location, aP as LocationOptionsOneOf, a9 as LocationType, ea as LocationTypeWithLiterals, c5 as MaskedService, aA as Media, aB as MediaItem, aC as MediaItemItemOneOf, bL as MessageEnvelope, ai as MissingValues, ej as MissingValuesWithLiterals, an as Mode, eo as ModeWithLiterals, aJ as Money, dh as MoveToNewLocationsOptions, dN as Multilingual, cz as NestedAggregation, cx as NestedAggregationItem, cy as NestedAggregationItemKindOneOf, cH as NestedAggregationResults, cI as NestedAggregationResultsResultOneOf, ak as NestedAggregationType, el as NestedAggregationTypeWithLiterals, cQ as NestedResultValue, cR as NestedResultValueResultOneOf, cW as NestedResults, cM as NestedValueAggregationResult, aN as OnlineBooking, dB as Page, cg as Paging, cj as PagingMetadataV2, c8 as ParticipantNotification, b2 as ParticipantsPolicy, aG as Payment, aM as PaymentOptions, aH as PaymentRateOneOf, ax as PlacementType, ey as PlacementTypeWithLiterals, aX as PolicyDescription, dE as Properties, dT as PropertiesChange, q as QueryBookingFormsApplicationErrors, o as QueryBookingFormsOptions, d0 as QueryBookingFormsRequest, p as QueryBookingFormsResponse, db as QueryCategoriesFilter, v as QueryCategoriesOptions, da as QueryCategoriesRequest, w as QueryCategoriesResponse, d6 as QueryLocationsFilter, t as QueryLocationsOptions, d5 as QueryLocationsRequest, u as QueryLocationsResponse, cZ as QueryPoliciesRequest, Q as QueryPoliciesResponse, dc as QueryServicesMultiLanguageRequest, dd as QueryServicesMultiLanguageResponse, cc as QueryServicesRequest, ci as QueryServicesResponse, cd as QueryV2, ce as QueryV2PagingMethodOneOf, cu as RangeAggregation, cG as RangeAggregationResult, cq as RangeBucket, cO as RangeResult, cK as RangeResults, ba as RankingOptions, aa as RankingOrder, eb as RankingOrderWithLiterals, a7 as RateType, e8 as RateTypeWithLiterals, bx as ReindexMessage, by as ReindexMessageActionOneOf, df as RemovedLocationSessionsAction, dg 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, bH as RestoreInfo, cS as Results, b7 as SaveCreditCardPolicy, cv as ScalarAggregation, cP as ScalarResult, aj as ScalarType, ek as ScalarTypeWithLiterals, bc as Schedule, bB as Schema, cC as SearchDetails, cl as SearchServicesRequest, br as SeoSchema, S as Service, c0 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, k as ServicesQueryBuilder, e5 as ServicesQueryResult, bD as ServicesUrlsChanged, a2 as SetAddOnsForGroupApplicationErrors, a0 as SetAddOnsForGroupOptions, e2 as SetAddOnsForGroupRequest, a1 as SetAddOnsForGroupResponse, J as SetCustomSlugApplicationErrors, bC as SetCustomSlugEvent, H as SetCustomSlugOptions, dl as SetCustomSlugRequest, I as SetCustomSlugResponse, K as SetCustomSlugValidationErrors, x as SetServiceLocationsOptions, de as SetServiceLocationsRequest, y as SetServiceLocationsResponse, bu as Settings, dV as SiteCloned, dU as SiteCreated, dD as SitePropertiesEvent, dC as SitePropertiesNotification, bo as Slug, ah as SortDirection, ei as SortDirectionWithLiterals, af as SortOrder, eg as SortOrderWithLiterals, ag as SortType, eh as SortTypeWithLiterals, cf as Sorting, ab as SortingMethodType, ec as SortingMethodTypeWithLiterals, dM as SpecialHourPeriod, c1 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, dO as SupportedLanguage, bt as Tag, bw as TaxableAddress, ac as TaxableAddressType, ed as TaxableAddressTypeWithLiterals, dL as TimePeriod, dQ as Translation, bp as URLs, Z as UpdateAddOnGroupApplicationErrors, X as UpdateAddOnGroupOptions, dZ as UpdateAddOnGroupRequest, Y as UpdateAddOnGroupResponse, U as UpdateService, c2 as UpdateServiceRequest, c3 as UpdateServiceResponse, b as UpdateServiceValidationErrors, bz as Upsert, dz as UserDomainInfoChangedEvent, aD as V2Category, ae as V2RequestedFields, ef as V2RequestedFieldsWithLiterals, bQ as ValidateServiceRequest, bR as ValidateServiceResponse, V as ValidateSlugOptions, dm as ValidateSlugRequest, M as ValidateSlugResponse, cs as ValueAggregation, ct as ValueAggregationOptionsOneOf, cF as ValueAggregationResult, cN as ValueResult, cJ as ValueResults, aL as VariedPayment, b1 as WaitlistPolicy, ad as WebhookIdentityType, ee as WebhookIdentityTypeWithLiterals, eG as bulkCreateServices, eM as bulkDeleteServices, eN as bulkDeleteServicesByFilter, eJ as bulkUpdateServices, eK as bulkUpdateServicesByFilter, eZ as cloneService, eR as countServices, e_ as createAddOnGroup, eF as createService, e$ as deleteAddOnGroup, eL as deleteService, eW as disablePricingPlansForService, eV as enablePricingPlansForService, eH as getService, f1 as listAddOnGroupsByServiceId, eC as onServiceCreated, eD as onServiceDeleted, eE as onServiceUpdated, eQ as queryBookingForms, eT as queryCategories, eS as queryLocations, eP as queryPolicies, eO as queryServices, f2 as setAddOnsForGroup, eX as setCustomSlug, eU as setServiceLocations, f0 as updateAddOnGroup, eI as updateService, eY as validateSlug } from './bookings-services-v2-service-services.universal-CyRaI-DD.js';
|
|
1
|
+
import { cw as CursorSearch, x as SearchServicesResponse } from './bookings-services-v2-service-services.universal-BdI6PnqP.js';
|
|
2
|
+
export { ap as Action, bL as ActionEvent, er as ActionWithLiterals, bU as AddOn, bV as AddOnAddOnInfoOneOf, bw as AddOnDetails, A as AddOnGroup, bW as AddOnGroupDetail, a8 as AddOnPaymentOptions, ea as AddOnPaymentOptionsWithLiterals, dR as Address, dS as AddressHint, aT as AddressLocation, cy as Aggregation, cO as AggregationData, cz as AggregationKindOneOf, d5 as AggregationResults, d6 as AggregationResultsResultOneOf, cV as AggregationResultsScalarResult, am as AggregationType, eo as AggregationTypeWithLiterals, c4 as ApplicationError, be as AvailabilityConstraints, e4 as BaseEventMetadata, dH as Behavior, dI as BehaviorBehaviorOneOf, dD as Benefit, dC as BenefitNotification, au as BenefitType, ew as BenefitTypeWithLiterals, a_ as BookAfterStartPolicy, db as BookingForm, aW as BookingPolicy, d9 as BookingPolicyWithServices, c5 as BulkActionMetadata, B as BulkCreateServicesOptions, c1 as BulkCreateServicesRequest, j as BulkCreateServicesResponse, t as BulkDeleteServicesByFilterOptions, cl as BulkDeleteServicesByFilterRequest, u as BulkDeleteServicesByFilterResponse, r as BulkDeleteServicesOptions, ck as BulkDeleteServicesRequest, s as BulkDeleteServicesResponse, c2 as BulkServiceResult, o as BulkUpdateServicesByFilterOptions, cg as BulkUpdateServicesByFilterRequest, p as BulkUpdateServicesByFilterResponse, m as BulkUpdateServicesOptions, ce as BulkUpdateServicesRequest, n as BulkUpdateServicesResponse, aU as BusinessLocationOptions, dh as BusinessLocations, dU as BusinessSchedule, b4 as CancellationFeePolicy, a$ as CancellationPolicy, b5 as CancellationWindow, b6 as CancellationWindowFeeOneOf, dP as Categories, dA as Category, dz as CategoryNotification, at as CategoryNotificationEvent, ev as CategoryNotificationEventWithLiterals, d$ as ChangeContext, e0 as ChangeContextPayloadOneOf, ar as CloneErrors, et as CloneErrorsWithLiterals, dy as CloneServiceRequest, a2 as CloneServiceResponse, aQ as CommonAddress, aR as CommonAddressStreetOneOf, eC as CommonSearchWithEntityContext, aO as Conferencing, dd as ConnectedService, dZ as ConsentPolicy, G as CountServicesOptions, de as CountServicesRequest, H as CountServicesResponse, C as CreateAddOnGroupOptions, bP as CreateAddOnGroupRequest, a as CreateAddOnGroupResponse, bY as CreateServiceRequest, bZ as CreateServiceResponse, i as CreateServiceValidationErrors, aw as CrudType, ey as CrudTypeWithLiterals, cr as CursorPaging, cN as CursorPagingMetadata, y as CursorQuery, d8 as CursorQueryPagingMethodOneOf, cx as CursorSearchPagingMethodOneOf, cu as Cursors, aV as CustomLocationOptions, di as CustomLocations, bb as CustomOptions, aK as CustomPayment, dj as CustomerLocations, cG as DateHistogramAggregation, d1 as DateHistogramResult, d3 as DateHistogramResults, ay as DayOfWeek, eA as DayOfWeekWithLiterals, bB as Delete, b as DeleteAddOnGroupApplicationErrors, D as DeleteAddOnGroupOptions, bQ as DeleteAddOnGroupRequest, bR as DeleteAddOnGroupResponse, q as DeleteServiceOptions, ch as DeleteServiceRequest, cj as DeleteServiceResponse, X as DisablePricingPlansForServiceApplicationErrors, V as DisablePricingPlansForServiceOptions, dv as DisablePricingPlansForServiceRequest, W as DisablePricingPlansForServiceResponse, dF as Discount, dG as DiscountDiscountOneOf, bF as DomainEvent, bG as DomainEventBodyOneOf, bf as Duration, dB as Empty, T as EnablePricingPlansForServiceApplicationErrors, dt as EnablePricingPlansForServiceRequest, R as EnablePricingPlansForServiceResponse, bH as EntityCreatedEvent, bK as EntityDeletedEvent, bJ as EntityUpdatedEvent, dE as EntryPass, av as Event, e5 as EventMetadata, ex as EventWithLiterals, br as ExtendedFields, c0 as FieldViolation, aI as FixedPayment, aE as Form, dc as FormDetails, aF as FormSettings, dT as GeoCoordinates, c8 as GetServiceAvailabilityConstraintsRequest, c9 as GetServiceAvailabilityConstraintsResponse, c6 as GetServiceRequest, c7 as GetServiceResponse, cK as GroupByAggregation, cL as GroupByAggregationKindOneOf, d2 as GroupByValueResults, dK as HtmlSitePublished, bN as IdentificationData, bO as IdentificationDataIdOneOf, cB as IncludeMissingValuesOptions, bc as IntakeFormPolicy, al as Interval, en as IntervalWithLiterals, du as InvalidPricingPlan, aq as InvalidSlugError, es as InvalidSlugErrorWithLiterals, c3 as ItemMetadata, bt as Keyword, aY as LimitEarlyBookingPolicy, aZ as LimitLateBookingPolicy, L as ListAddOnGroupsByServiceIdOptions, bT as ListAddOnGroupsByServiceIdRequest, e as ListAddOnGroupsByServiceIdResponse, dQ as Locale, N as Location, aP as LocationOptionsOneOf, a9 as LocationType, eb as LocationTypeWithLiterals, cf as MaskedService, aA as Media, aB as MediaItem, aC as MediaItemItemOneOf, bM as MessageEnvelope, ai as MissingValues, ek as MissingValuesWithLiterals, an as Mode, ep as ModeWithLiterals, aJ as Money, ds as MoveToNewLocationsOptions, dX as Multilingual, cJ as NestedAggregation, cH as NestedAggregationItem, cI as NestedAggregationItemKindOneOf, cR as NestedAggregationResults, cS as NestedAggregationResultsResultOneOf, ak as NestedAggregationType, em as NestedAggregationTypeWithLiterals, c_ as NestedResultValue, c$ as NestedResultValueResultOneOf, d4 as NestedResults, cW as NestedValueAggregationResult, aN as OnlineBooking, dL as Page, cq as Paging, ct as PagingMetadataV2, ci as ParticipantNotification, b2 as ParticipantsPolicy, aG as Payment, aM as PaymentOptions, aH as PaymentRateOneOf, ax as PlacementType, ez as PlacementTypeWithLiterals, aX as PolicyDescription, dO as Properties, e1 as PropertiesChange, F as QueryBookingFormsApplicationErrors, z as QueryBookingFormsOptions, da as QueryBookingFormsRequest, E as QueryBookingFormsResponse, dl as QueryCategoriesFilter, K as QueryCategoriesOptions, dk as QueryCategoriesRequest, M as QueryCategoriesResponse, dg as QueryLocationsFilter, I as QueryLocationsOptions, df as QueryLocationsRequest, J as QueryLocationsResponse, d7 as QueryPoliciesRequest, Q as QueryPoliciesResponse, dm as QueryServicesMultiLanguageRequest, dn as QueryServicesMultiLanguageResponse, cm as QueryServicesRequest, cs as QueryServicesResponse, cn as QueryV2, co as QueryV2PagingMethodOneOf, cE as RangeAggregation, cQ as RangeAggregationResult, cA as RangeBucket, cY as RangeResult, cU as RangeResults, ba as RankingOptions, aa as RankingOrder, ec as RankingOrderWithLiterals, a7 as RateType, e9 as RateTypeWithLiterals, by as ReindexMessage, bz as ReindexMessageActionOneOf, dq as RemovedLocationSessionsAction, dr as RemovedLocationSessionsActionActionOptionsOneOf, ao as RequestedFields, eq as RequestedFieldsWithLiterals, b0 as ReschedulePolicy, az as ResolutionMethod, eB as ResolutionMethodWithLiterals, bk as ResourceGroup, bl as ResourceIds, bo as ResourceType, b3 as ResourcesPolicy, bI as RestoreInfo, d0 as Results, b7 as SaveCreditCardPolicy, cF as ScalarAggregation, cZ as ScalarResult, aj as ScalarType, el as ScalarTypeWithLiterals, bd as Schedule, bC as Schema, cM as SearchDetails, cv as SearchServicesRequest, bs as SeoSchema, h as Service, ca as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, bm as ServiceResource, bn as ServiceResourceSelectionOneOf, e7 as ServiceSearchSpec, a6 as ServiceType, e8 as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, v as ServicesQueryBuilder, e6 as ServicesQueryResult, bE as ServicesUrlsChanged, g as SetAddOnsForGroupApplicationErrors, S as SetAddOnsForGroupOptions, bX as SetAddOnsForGroupRequest, f as SetAddOnsForGroupResponse, _ as SetCustomSlugApplicationErrors, bD as SetCustomSlugEvent, Y as SetCustomSlugOptions, dw as SetCustomSlugRequest, Z as SetCustomSlugResponse, $ as SetCustomSlugValidationErrors, O as SetServiceLocationsOptions, dp as SetServiceLocationsRequest, P as SetServiceLocationsResponse, bv as Settings, e3 as SiteCloned, e2 as SiteCreated, dN as SitePropertiesEvent, dM as SitePropertiesNotification, bp as Slug, ah as SortDirection, ej as SortDirectionWithLiterals, af as SortOrder, eh as SortOrderWithLiterals, ag as SortType, ei as SortTypeWithLiterals, cp as Sorting, ab as SortingMethodType, ed as SortingMethodTypeWithLiterals, dW as SpecialHourPeriod, cb as SplitInterval, bh as StaffMediaItem, bi as StaffMediaItemItemOneOf, bg as StaffMember, bj as StaffMemberDetails, b8 as StaffSortingPolicy, b9 as StaffSortingPolicyOptionsOneOf, as as Status, eu as StatusWithLiterals, aS as StreetAddress, dY as SupportedLanguage, bu as Tag, bx as TaxableAddress, ac as TaxableAddressType, ee as TaxableAddressTypeWithLiterals, dV as TimePeriod, d_ as Translation, bq as URLs, d as UpdateAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, bS as UpdateAddOnGroupRequest, c as UpdateAddOnGroupResponse, k as UpdateService, cc as UpdateServiceRequest, cd as UpdateServiceResponse, l as UpdateServiceValidationErrors, bA as Upsert, dJ as UserDomainInfoChangedEvent, aD as V2Category, ae as V2RequestedFields, eg as V2RequestedFieldsWithLiterals, b_ as ValidateServiceRequest, b$ as ValidateServiceResponse, a0 as ValidateSlugOptions, dx as ValidateSlugRequest, a1 as ValidateSlugResponse, cC as ValueAggregation, cD as ValueAggregationOptionsOneOf, cP as ValueAggregationResult, cX as ValueResult, cT as ValueResults, aL as VariedPayment, b1 as WaitlistPolicy, ad as WebhookIdentityType, ef as WebhookIdentityTypeWithLiterals, eM as bulkCreateServices, eS as bulkDeleteServices, eT as bulkDeleteServicesByFilter, eP as bulkUpdateServices, eQ as bulkUpdateServicesByFilter, f3 as cloneService, eX as countServices, eG as createAddOnGroup, eL as createService, eH as deleteAddOnGroup, eR as deleteService, f0 as disablePricingPlansForService, e$ as enablePricingPlansForService, eN as getService, eJ as listAddOnGroupsByServiceId, eD as onServiceCreated, eE as onServiceDeleted, eF as onServiceUpdated, eW as queryBookingForms, eZ as queryCategories, eY as queryLocations, eV as queryPolicies, eU as queryServices, eK as setAddOnsForGroup, f1 as setCustomSlug, e_ as setServiceLocations, eI as updateAddOnGroup, eO as updateService, f2 as validateSlug } from './bookings-services-v2-service-services.universal-BdI6PnqP.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -94,7 +94,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
94
94
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
95
95
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
96
96
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
97
|
-
function
|
|
97
|
+
function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
98
98
|
const domainToMappings = {
|
|
99
99
|
"*.dev.wix-code.com": [
|
|
100
100
|
{
|
|
@@ -209,7 +209,7 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
|
209
209
|
};
|
|
210
210
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
213
213
|
const domainToMappings = {
|
|
214
214
|
"*.dev.wix-code.com": [
|
|
215
215
|
{
|
|
@@ -325,6 +325,117 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
325
325
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
326
326
|
}
|
|
327
327
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
|
|
328
|
+
function createAddOnGroup(payload) {
|
|
329
|
+
function __createAddOnGroup({ host }) {
|
|
330
|
+
const metadata = {
|
|
331
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
332
|
+
method: "POST",
|
|
333
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
334
|
+
packageName: PACKAGE_NAME,
|
|
335
|
+
migrationOptions: {
|
|
336
|
+
optInTransformResponse: true
|
|
337
|
+
},
|
|
338
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
339
|
+
protoPath: "/v2/services/add-on-groups/create",
|
|
340
|
+
data: payload,
|
|
341
|
+
host
|
|
342
|
+
}),
|
|
343
|
+
data: payload
|
|
344
|
+
};
|
|
345
|
+
return metadata;
|
|
346
|
+
}
|
|
347
|
+
return __createAddOnGroup;
|
|
348
|
+
}
|
|
349
|
+
function deleteAddOnGroup(payload) {
|
|
350
|
+
function __deleteAddOnGroup({ host }) {
|
|
351
|
+
const metadata = {
|
|
352
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
353
|
+
method: "POST",
|
|
354
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
355
|
+
packageName: PACKAGE_NAME,
|
|
356
|
+
migrationOptions: {
|
|
357
|
+
optInTransformResponse: true
|
|
358
|
+
},
|
|
359
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
360
|
+
protoPath: "/v2/services/add-on-groups/delete",
|
|
361
|
+
data: payload,
|
|
362
|
+
host
|
|
363
|
+
}),
|
|
364
|
+
data: payload
|
|
365
|
+
};
|
|
366
|
+
return metadata;
|
|
367
|
+
}
|
|
368
|
+
return __deleteAddOnGroup;
|
|
369
|
+
}
|
|
370
|
+
function updateAddOnGroup(payload) {
|
|
371
|
+
function __updateAddOnGroup({ host }) {
|
|
372
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
373
|
+
{
|
|
374
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
375
|
+
paths: [{ path: "mask" }]
|
|
376
|
+
}
|
|
377
|
+
]);
|
|
378
|
+
const metadata = {
|
|
379
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
380
|
+
method: "POST",
|
|
381
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
382
|
+
packageName: PACKAGE_NAME,
|
|
383
|
+
migrationOptions: {
|
|
384
|
+
optInTransformResponse: true
|
|
385
|
+
},
|
|
386
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
387
|
+
protoPath: "/v2/services/add-on-groups/update",
|
|
388
|
+
data: serializedData,
|
|
389
|
+
host
|
|
390
|
+
}),
|
|
391
|
+
data: serializedData
|
|
392
|
+
};
|
|
393
|
+
return metadata;
|
|
394
|
+
}
|
|
395
|
+
return __updateAddOnGroup;
|
|
396
|
+
}
|
|
397
|
+
function listAddOnGroupsByServiceId(payload) {
|
|
398
|
+
function __listAddOnGroupsByServiceId({ host }) {
|
|
399
|
+
const metadata = {
|
|
400
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
401
|
+
method: "POST",
|
|
402
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
403
|
+
packageName: PACKAGE_NAME,
|
|
404
|
+
migrationOptions: {
|
|
405
|
+
optInTransformResponse: true
|
|
406
|
+
},
|
|
407
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
408
|
+
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
409
|
+
data: payload,
|
|
410
|
+
host
|
|
411
|
+
}),
|
|
412
|
+
data: payload
|
|
413
|
+
};
|
|
414
|
+
return metadata;
|
|
415
|
+
}
|
|
416
|
+
return __listAddOnGroupsByServiceId;
|
|
417
|
+
}
|
|
418
|
+
function setAddOnsForGroup(payload) {
|
|
419
|
+
function __setAddOnsForGroup({ host }) {
|
|
420
|
+
const metadata = {
|
|
421
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
422
|
+
method: "POST",
|
|
423
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
424
|
+
packageName: PACKAGE_NAME,
|
|
425
|
+
migrationOptions: {
|
|
426
|
+
optInTransformResponse: true
|
|
427
|
+
},
|
|
428
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
429
|
+
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
430
|
+
data: payload,
|
|
431
|
+
host
|
|
432
|
+
}),
|
|
433
|
+
data: payload
|
|
434
|
+
};
|
|
435
|
+
return metadata;
|
|
436
|
+
}
|
|
437
|
+
return __setAddOnsForGroup;
|
|
438
|
+
}
|
|
328
439
|
function createService(payload) {
|
|
329
440
|
function __createService({ host }) {
|
|
330
441
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1674,117 +1785,6 @@ function cloneService(payload) {
|
|
|
1674
1785
|
}
|
|
1675
1786
|
return __cloneService;
|
|
1676
1787
|
}
|
|
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
1788
|
|
|
1789
1789
|
// src/bookings-services-v2-service-services.universal.ts
|
|
1790
1790
|
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
@@ -1990,21 +1990,168 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
1990
1990
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
1991
1991
|
return ResolutionMethod2;
|
|
1992
1992
|
})(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
|
-
|
|
1993
|
+
async function createAddOnGroup2(addOnGroup, options) {
|
|
1994
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1995
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1996
|
+
addOnGroup,
|
|
1997
|
+
serviceId: options?.serviceId
|
|
1998
|
+
});
|
|
1999
|
+
const reqOpts = createAddOnGroup(payload);
|
|
2000
|
+
sideEffects?.onSiteCall?.();
|
|
2001
|
+
try {
|
|
2002
|
+
const result = await httpClient.request(reqOpts);
|
|
2003
|
+
sideEffects?.onSuccess?.(result);
|
|
2004
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2005
|
+
} catch (err) {
|
|
2006
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2007
|
+
err,
|
|
2008
|
+
{
|
|
2009
|
+
spreadPathsToArguments: {},
|
|
2010
|
+
explicitPathsToArguments: {
|
|
2011
|
+
addOnGroup: "$[0]",
|
|
2012
|
+
serviceId: "$[1].serviceId"
|
|
2013
|
+
},
|
|
2014
|
+
singleArgumentUnchanged: false
|
|
2015
|
+
},
|
|
2016
|
+
["addOnGroup", "options"]
|
|
2017
|
+
);
|
|
2018
|
+
sideEffects?.onError?.(err);
|
|
2019
|
+
throw transformedError;
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
2023
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2024
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2025
|
+
addOnGroupId,
|
|
2026
|
+
serviceId: options?.serviceId
|
|
2027
|
+
});
|
|
2028
|
+
const reqOpts = deleteAddOnGroup(payload);
|
|
2029
|
+
sideEffects?.onSiteCall?.();
|
|
2030
|
+
try {
|
|
2031
|
+
const result = await httpClient.request(reqOpts);
|
|
2032
|
+
sideEffects?.onSuccess?.(result);
|
|
2033
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2034
|
+
} catch (err) {
|
|
2035
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2036
|
+
err,
|
|
2037
|
+
{
|
|
2038
|
+
spreadPathsToArguments: {},
|
|
2039
|
+
explicitPathsToArguments: {
|
|
2040
|
+
addOnGroupId: "$[0]",
|
|
2041
|
+
serviceId: "$[1].serviceId"
|
|
2042
|
+
},
|
|
2043
|
+
singleArgumentUnchanged: false
|
|
2044
|
+
},
|
|
2045
|
+
["addOnGroupId", "options"]
|
|
2046
|
+
);
|
|
2047
|
+
sideEffects?.onError?.(err);
|
|
2048
|
+
throw transformedError;
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
async function updateAddOnGroup2(addOnGroup, options) {
|
|
2052
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2053
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2054
|
+
addOnGroup,
|
|
2055
|
+
serviceId: options?.serviceId
|
|
2056
|
+
});
|
|
2057
|
+
const reqOpts = updateAddOnGroup(payload);
|
|
2058
|
+
sideEffects?.onSiteCall?.();
|
|
2059
|
+
try {
|
|
2060
|
+
const result = await httpClient.request(reqOpts);
|
|
2061
|
+
sideEffects?.onSuccess?.(result);
|
|
2062
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2063
|
+
} catch (err) {
|
|
2064
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2065
|
+
err,
|
|
2066
|
+
{
|
|
2067
|
+
spreadPathsToArguments: {},
|
|
2068
|
+
explicitPathsToArguments: {
|
|
2069
|
+
addOnGroup: "$[0]",
|
|
2070
|
+
serviceId: "$[1].serviceId"
|
|
2071
|
+
},
|
|
2072
|
+
singleArgumentUnchanged: false
|
|
2073
|
+
},
|
|
2074
|
+
["addOnGroup", "options"]
|
|
2075
|
+
);
|
|
2076
|
+
sideEffects?.onError?.(err);
|
|
2077
|
+
throw transformedError;
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
2081
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2082
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2083
|
+
serviceId,
|
|
2084
|
+
groupIds: options?.groupIds
|
|
2085
|
+
});
|
|
2086
|
+
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
2087
|
+
sideEffects?.onSiteCall?.();
|
|
2088
|
+
try {
|
|
2089
|
+
const result = await httpClient.request(reqOpts);
|
|
2090
|
+
sideEffects?.onSuccess?.(result);
|
|
2091
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2092
|
+
} catch (err) {
|
|
2093
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2094
|
+
err,
|
|
2095
|
+
{
|
|
2096
|
+
spreadPathsToArguments: {},
|
|
2097
|
+
explicitPathsToArguments: {
|
|
2098
|
+
serviceId: "$[0]",
|
|
2099
|
+
groupIds: "$[1].groupIds"
|
|
2100
|
+
},
|
|
2101
|
+
singleArgumentUnchanged: false
|
|
2102
|
+
},
|
|
2103
|
+
["serviceId", "options"]
|
|
2104
|
+
);
|
|
2105
|
+
sideEffects?.onError?.(err);
|
|
2106
|
+
throw transformedError;
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
async function setAddOnsForGroup2(serviceId, options) {
|
|
2110
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2111
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2112
|
+
serviceId,
|
|
2113
|
+
groupId: options?.groupId,
|
|
2114
|
+
addOnIds: options?.addOnIds
|
|
2115
|
+
});
|
|
2116
|
+
const reqOpts = setAddOnsForGroup(payload);
|
|
2117
|
+
sideEffects?.onSiteCall?.();
|
|
2118
|
+
try {
|
|
2119
|
+
const result = await httpClient.request(reqOpts);
|
|
2120
|
+
sideEffects?.onSuccess?.(result);
|
|
2121
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2122
|
+
} catch (err) {
|
|
2123
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2124
|
+
err,
|
|
2125
|
+
{
|
|
2126
|
+
spreadPathsToArguments: {},
|
|
2127
|
+
explicitPathsToArguments: {
|
|
2128
|
+
serviceId: "$[0]",
|
|
2129
|
+
groupId: "$[1].groupId",
|
|
2130
|
+
addOnIds: "$[1].addOnIds"
|
|
2131
|
+
},
|
|
2132
|
+
singleArgumentUnchanged: false
|
|
2133
|
+
},
|
|
2134
|
+
["serviceId", "options"]
|
|
2135
|
+
);
|
|
2136
|
+
sideEffects?.onError?.(err);
|
|
2137
|
+
throw transformedError;
|
|
2138
|
+
}
|
|
2139
|
+
}
|
|
2140
|
+
async function createService2(service) {
|
|
2141
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2142
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2143
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ service }),
|
|
2144
|
+
[
|
|
2145
|
+
{
|
|
2146
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2147
|
+
paths: [
|
|
2148
|
+
{ path: "service.media.items.image" },
|
|
2149
|
+
{ path: "service.media.mainMedia.image" },
|
|
2150
|
+
{ path: "service.media.coverMedia.image" },
|
|
2151
|
+
{ path: "service.staffMembers.mainMedia.image" },
|
|
2152
|
+
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2153
|
+
]
|
|
2154
|
+
},
|
|
2008
2155
|
{
|
|
2009
2156
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2010
2157
|
paths: [
|
|
@@ -3222,153 +3369,6 @@ async function cloneService2(sourceServiceId) {
|
|
|
3222
3369
|
throw transformedError;
|
|
3223
3370
|
}
|
|
3224
3371
|
}
|
|
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
3372
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3373
3373
|
0 && (module.exports = {
|
|
3374
3374
|
Action,
|