@wix/auto_sdk_bookings_services 1.0.146 → 1.0.147
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-RXOrb8s-.d.ts → bookings-services-v2-service-services.universal-vH2KMOVN.d.ts} +443 -443
- package/build/cjs/index.d.ts +77 -77
- package/build/cjs/index.js +302 -302
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +265 -265
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +156 -156
- package/build/cjs/meta.js +203 -203
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-RXOrb8s-.d.mts → bookings-services-v2-service-services.universal-vH2KMOVN.d.mts} +443 -443
- package/build/es/index.d.mts +77 -77
- package/build/es/index.mjs +302 -302
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +265 -265
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +156 -156
- package/build/es/meta.mjs +203 -203
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-RXOrb8s-.d.ts → bookings-services-v2-service-services.universal-vH2KMOVN.d.ts} +443 -443
- package/build/internal/cjs/index.d.ts +77 -77
- package/build/internal/cjs/index.js +302 -302
- 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 +265 -265
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +156 -156
- package/build/internal/cjs/meta.js +203 -203
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-RXOrb8s-.d.mts → bookings-services-v2-service-services.universal-vH2KMOVN.d.mts} +443 -443
- package/build/internal/es/index.d.mts +77 -77
- package/build/internal/es/index.mjs +302 -302
- 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 +265 -265
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +156 -156
- package/build/internal/es/meta.mjs +203 -203
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ar as Action, bO as ActionEvent, ew as ActionWithLiterals, bX as AddOn, bY as AddOnAddOnInfoOneOf, by as AddOnDetails, A as AddOnGroup, bZ as AddOnGroupDetail, a8 as AddOnPaymentOptions, ed as AddOnPaymentOptionsWithLiterals, dU as Address, dV as AddressHint, aV as AddressLocation, cB as Aggregation, cR as AggregationData, cC as AggregationKindOneOf, d8 as AggregationResults, d9 as AggregationResultsResultOneOf, cY as AggregationResultsScalarResult, ao as AggregationType, et as AggregationTypeWithLiterals, c7 as ApplicationError, bg as AvailabilityConstraints, e7 as BaseEventMetadata, dK as Behavior, dL as BehaviorBehaviorOneOf, dG as Benefit, dF as BenefitNotification, aw as BenefitType, eB as BenefitTypeWithLiterals, b0 as BookAfterStartPolicy, de as BookingForm, aY as BookingPolicy, dc as BookingPolicyWithServices, c8 as BulkActionMetadata, B as BulkCreateServicesOptions, c4 as BulkCreateServicesRequest, j as BulkCreateServicesResponse, t as BulkDeleteServicesByFilterOptions, co as BulkDeleteServicesByFilterRequest, u as BulkDeleteServicesByFilterResponse, r as BulkDeleteServicesOptions, cn as BulkDeleteServicesRequest, s as BulkDeleteServicesResponse, c5 as BulkServiceResult, o as BulkUpdateServicesByFilterOptions, cj as BulkUpdateServicesByFilterRequest, p as BulkUpdateServicesByFilterResponse, m as BulkUpdateServicesOptions, ch as BulkUpdateServicesRequest, n as BulkUpdateServicesResponse, aW as BusinessLocationOptions, dk as BusinessLocations, dX as BusinessSchedule, b6 as CancellationFeePolicy, b1 as CancellationPolicy, b7 as CancellationWindow, b8 as CancellationWindowFeeOneOf, dS as Categories, dD as Category, dC as CategoryNotification, av as CategoryNotificationEvent, eA as CategoryNotificationEventWithLiterals, e2 as ChangeContext, e3 as ChangeContextPayloadOneOf, at as CloneErrors, ey as CloneErrorsWithLiterals, dB as CloneServiceRequest, a2 as CloneServiceResponse, aS as CommonAddress, aT as CommonAddressStreetOneOf, eH as CommonSearchWithEntityContext, ad as CompletionRequirement, ei as CompletionRequirementWithLiterals, aQ as Conferencing, dg as ConnectedService, e0 as ConsentPolicy, G as CountServicesOptions, dh as CountServicesRequest, H as CountServicesResponse, C as CreateAddOnGroupOptions, bS as CreateAddOnGroupRequest, a as CreateAddOnGroupResponse, b$ as CreateServiceRequest, c0 as CreateServiceResponse, i as CreateServiceValidationErrors, ay as CrudType, eD as CrudTypeWithLiterals, cu as CursorPaging, cQ as CursorPagingMetadata, y as CursorQuery, db as CursorQueryPagingMethodOneOf, cA as CursorSearchPagingMethodOneOf, cx as Cursors, aX as CustomLocationOptions, dl as CustomLocations, bd as CustomOptions, aM as CustomPayment, dm as CustomerLocations, cJ as DateHistogramAggregation, d4 as DateHistogramResult, d6 as DateHistogramResults, aA as DayOfWeek, eF as DayOfWeekWithLiterals, bE as Delete, b as DeleteAddOnGroupApplicationErrors, D as DeleteAddOnGroupOptions, bT as DeleteAddOnGroupRequest, bU as DeleteAddOnGroupResponse, q as DeleteServiceOptions, ck as DeleteServiceRequest, cm as DeleteServiceResponse, X as DisablePricingPlansForServiceApplicationErrors, V as DisablePricingPlansForServiceOptions, dy as DisablePricingPlansForServiceRequest, W as DisablePricingPlansForServiceResponse, dI as Discount, dJ as DiscountDiscountOneOf, bI as DomainEvent, bJ as DomainEventBodyOneOf, bh as Duration, dE as Empty, T as EnablePricingPlansForServiceApplicationErrors, dw as EnablePricingPlansForServiceRequest, R as EnablePricingPlansForServiceResponse, bK as EntityCreatedEvent, bN as EntityDeletedEvent, bM as EntityUpdatedEvent, dH as EntryPass, ax as Event, e8 as EventMetadata, eC as EventWithLiterals, bt as ExtendedFields, c3 as FieldViolation, aK as FixedPayment, aG as Form, df as FormDetails, aH as FormSettings, dW as GeoCoordinates, cb as GetServiceAvailabilityConstraintsRequest, cc as GetServiceAvailabilityConstraintsResponse, c9 as GetServiceRequest, ca as GetServiceResponse, cN as GroupByAggregation, cO as GroupByAggregationKindOneOf, d5 as GroupByValueResults, dN as HtmlSitePublished, bQ as IdentificationData, bR as IdentificationDataIdOneOf, cE as IncludeMissingValuesOptions, be as IntakeFormPolicy, an as Interval, es as IntervalWithLiterals, dx as InvalidPricingPlan, as as InvalidSlugError, ex as InvalidSlugErrorWithLiterals, c6 as ItemMetadata, bv as Keyword, a_ as LimitEarlyBookingPolicy, a$ as LimitLateBookingPolicy, L as ListAddOnGroupsByServiceIdOptions, bW as ListAddOnGroupsByServiceIdRequest, e as ListAddOnGroupsByServiceIdResponse, dT as Locale, N as Location, aR as LocationOptionsOneOf, a9 as LocationType, ee as LocationTypeWithLiterals, ci as MaskedService, aC as Media, aD as MediaItem, aE as MediaItemItemOneOf, bP as MessageEnvelope, ak as MissingValues, ep as MissingValuesWithLiterals, ap as Mode, eu as ModeWithLiterals, aL as Money, dv as MoveToNewLocationsOptions, d_ as Multilingual, cM as NestedAggregation, cK as NestedAggregationItem, cL as NestedAggregationItemKindOneOf, cU as NestedAggregationResults, cV as NestedAggregationResultsResultOneOf, am as NestedAggregationType, er as NestedAggregationTypeWithLiterals, d1 as NestedResultValue, d2 as NestedResultValueResultOneOf, d7 as NestedResults, cZ as NestedValueAggregationResult, aP as OnlineBooking, dO as Page, ct as Paging, cw as PagingMetadataV2, cl as ParticipantNotification, b4 as ParticipantsPolicy, aI as Payment, aO as PaymentOptions, aJ as PaymentRateOneOf, bA as PhoneCall, az as PlacementType, eE as PlacementTypeWithLiterals, aZ as PolicyDescription, dR as Properties, e4 as PropertiesChange, F as QueryBookingFormsApplicationErrors, z as QueryBookingFormsOptions, dd as QueryBookingFormsRequest, E as QueryBookingFormsResponse, dp as QueryCategoriesFilter, K as QueryCategoriesOptions, dn as QueryCategoriesRequest, M as QueryCategoriesResponse, dj as QueryLocationsFilter, I as QueryLocationsOptions, di as QueryLocationsRequest, J as QueryLocationsResponse, da as QueryPoliciesRequest, Q as QueryPoliciesResponse, dq as QueryServicesMultiLanguageRequest, dr as QueryServicesMultiLanguageResponse, cp as QueryServicesRequest, cv as QueryServicesResponse, cq as QueryV2, cr as QueryV2PagingMethodOneOf, cH as RangeAggregation, cT as RangeAggregationResult, cD as RangeBucket, c$ as RangeResult, cX as RangeResults, bc as RankingOptions, aa as RankingOrder, ef as RankingOrderWithLiterals, a7 as RateType, ec as RateTypeWithLiterals, bB as ReindexMessage, bC as ReindexMessageActionOneOf, dt as RemovedLocationSessionsAction, du as RemovedLocationSessionsActionActionOptionsOneOf, aq as RequestedFields, ev as RequestedFieldsWithLiterals, b2 as ReschedulePolicy, aB as ResolutionMethod, eG as ResolutionMethodWithLiterals, bm as ResourceGroup, bn as ResourceIds, bq as ResourceType, b5 as ResourcesPolicy, bL as RestoreInfo, d3 as Results, b9 as SaveCreditCardPolicy, cI as ScalarAggregation, d0 as ScalarResult, al as ScalarType, eq as ScalarTypeWithLiterals, bf as Schedule, bF as Schema, cP as SearchDetails, cy as SearchServicesRequest, bu as SeoSchema, h as Service, cd as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, bo as ServiceResource, bp as ServiceResourceSelectionOneOf, ea as ServiceSearchSpec, a6 as ServiceType, eb as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, v as ServicesQueryBuilder, e9 as ServicesQueryResult, bH as ServicesUrlsChanged, g as SetAddOnsForGroupApplicationErrors, S as SetAddOnsForGroupOptions, b_ as SetAddOnsForGroupRequest, f as SetAddOnsForGroupResponse, _ as SetCustomSlugApplicationErrors, bG as SetCustomSlugEvent, Y as SetCustomSlugOptions, dz as SetCustomSlugRequest, Z as SetCustomSlugResponse, $ as SetCustomSlugValidationErrors, O as SetServiceLocationsOptions, ds as SetServiceLocationsRequest, P as SetServiceLocationsResponse, bx as Settings, e6 as SiteCloned, e5 as SiteCreated, dQ as SitePropertiesEvent, dP as SitePropertiesNotification, br as Slug, aj as SortDirection, eo as SortDirectionWithLiterals, ah as SortOrder, em as SortOrderWithLiterals, ai as SortType, en as SortTypeWithLiterals, cs as Sorting, ab as SortingMethodType, eg as SortingMethodTypeWithLiterals, dZ as SpecialHourPeriod, ce as SplitInterval, bj as StaffMediaItem, bk as StaffMediaItemItemOneOf, bi as StaffMember, bl as StaffMemberDetails, ba as StaffSortingPolicy, bb as StaffSortingPolicyOptionsOneOf, au as Status, ez as StatusWithLiterals, aU as StreetAddress, d$ as SupportedLanguage, bw as Tag, bz as TaxableAddress, ae as TaxableAddressType, ej as TaxableAddressTypeWithLiterals, dY as TimePeriod, ac as Timing, eh as TimingWithLiterals, e1 as Translation, bs as URLs, d as UpdateAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, bV as UpdateAddOnGroupRequest, c as UpdateAddOnGroupResponse, k as UpdateService, cf as UpdateServiceRequest, cg as UpdateServiceResponse, l as UpdateServiceValidationErrors, bD as Upsert, dM as UserDomainInfoChangedEvent, aF as V2Category, ag as V2RequestedFields, el as V2RequestedFieldsWithLiterals, c1 as ValidateServiceRequest, c2 as ValidateServiceResponse, a0 as ValidateSlugOptions, dA as ValidateSlugRequest, a1 as ValidateSlugResponse, cF as ValueAggregation, cG as ValueAggregationOptionsOneOf, cS as ValueAggregationResult, c_ as ValueResult, cW as ValueResults, aN as VariedPayment, b3 as WaitlistPolicy, af as WebhookIdentityType, ek as WebhookIdentityTypeWithLiterals, eR as bulkCreateServices, eX as bulkDeleteServices, eY as bulkDeleteServicesByFilter, eU as bulkUpdateServices, eV as bulkUpdateServicesByFilter, f8 as cloneService, f0 as countServices, eL as createAddOnGroup, eQ as createService, eM as deleteAddOnGroup, eW as deleteService, f5 as disablePricingPlansForService, f4 as enablePricingPlansForService, eS as getService, eO as listAddOnGroupsByServiceId, eI as onServiceCreated, eJ as onServiceDeleted, eK as onServiceUpdated, e$ as queryBookingForms, f2 as queryCategories, f1 as queryLocations, e_ as queryPolicies, eZ as queryServices, eP as setAddOnsForGroup, f6 as setCustomSlug, f3 as setServiceLocations, eN as updateAddOnGroup, eT as updateService, f7 as validateSlug } from './bookings-services-v2-service-services.universal-RXOrb8s-.js';
|
|
1
|
+
import { cq as CursorSearch, m as SearchServicesResponse } from './bookings-services-v2-service-services.universal-vH2KMOVN.js';
|
|
2
|
+
export { ar as Action, bO as ActionEvent, ew as ActionWithLiterals, e3 as AddOn, e4 as AddOnAddOnInfoOneOf, by as AddOnDetails, O as AddOnGroup, e5 as AddOnGroupDetail, a8 as AddOnPaymentOptions, ed as AddOnPaymentOptionsWithLiterals, dL as Address, dM as AddressHint, aV as AddressLocation, cs as Aggregation, cI as AggregationData, ct as AggregationKindOneOf, c$ as AggregationResults, d0 as AggregationResultsResultOneOf, cP as AggregationResultsScalarResult, ao as AggregationType, et as AggregationTypeWithLiterals, b_ as ApplicationError, bg as AvailabilityConstraints, e7 as BaseEventMetadata, dB as Behavior, dC as BehaviorBehaviorOneOf, dx as Benefit, dw as BenefitNotification, aw as BenefitType, eB as BenefitTypeWithLiterals, b0 as BookAfterStartPolicy, d5 as BookingForm, aY as BookingPolicy, d3 as BookingPolicyWithServices, b$ as BulkActionMetadata, B as BulkCreateServicesOptions, bX as BulkCreateServicesRequest, a as BulkCreateServicesResponse, i as BulkDeleteServicesByFilterOptions, cf as BulkDeleteServicesByFilterRequest, j as BulkDeleteServicesByFilterResponse, g as BulkDeleteServicesOptions, ce as BulkDeleteServicesRequest, h as BulkDeleteServicesResponse, bY as BulkServiceResult, e as BulkUpdateServicesByFilterOptions, ca as BulkUpdateServicesByFilterRequest, f as BulkUpdateServicesByFilterResponse, c as BulkUpdateServicesOptions, c8 as BulkUpdateServicesRequest, d as BulkUpdateServicesResponse, aW as BusinessLocationOptions, db as BusinessLocations, dO as BusinessSchedule, b6 as CancellationFeePolicy, b1 as CancellationPolicy, b7 as CancellationWindow, b8 as CancellationWindowFeeOneOf, dJ as Categories, du as Category, dt as CategoryNotification, av as CategoryNotificationEvent, eA as CategoryNotificationEventWithLiterals, dV as ChangeContext, dW as ChangeContextPayloadOneOf, at as CloneErrors, ey as CloneErrorsWithLiterals, ds as CloneServiceRequest, N as CloneServiceResponse, aS as CommonAddress, aT as CommonAddressStreetOneOf, eH as CommonSearchWithEntityContext, ad as CompletionRequirement, ei as CompletionRequirementWithLiterals, aQ as Conferencing, d7 as ConnectedService, dT as ConsentPolicy, r as CountServicesOptions, d8 as CountServicesRequest, s as CountServicesResponse, P as CreateAddOnGroupOptions, d_ as CreateAddOnGroupRequest, R as CreateAddOnGroupResponse, bS as CreateServiceRequest, bT as CreateServiceResponse, C as CreateServiceValidationErrors, ay as CrudType, eD as CrudTypeWithLiterals, cl as CursorPaging, cH as CursorPagingMetadata, n as CursorQuery, d2 as CursorQueryPagingMethodOneOf, cr as CursorSearchPagingMethodOneOf, co as Cursors, aX as CustomLocationOptions, dc as CustomLocations, bd as CustomOptions, aM as CustomPayment, dd as CustomerLocations, cA as DateHistogramAggregation, cX as DateHistogramResult, cZ as DateHistogramResults, aA as DayOfWeek, eF as DayOfWeekWithLiterals, bE as Delete, W as DeleteAddOnGroupApplicationErrors, T as DeleteAddOnGroupOptions, d$ as DeleteAddOnGroupRequest, e0 as DeleteAddOnGroupResponse, D as DeleteServiceOptions, cb as DeleteServiceRequest, cd as DeleteServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, dp as DisablePricingPlansForServiceRequest, F as DisablePricingPlansForServiceResponse, dz as Discount, dA as DiscountDiscountOneOf, bI as DomainEvent, bJ as DomainEventBodyOneOf, bh as Duration, dv as Empty, z as EnablePricingPlansForServiceApplicationErrors, dm as EnablePricingPlansForServiceRequest, E as EnablePricingPlansForServiceResponse, bK as EntityCreatedEvent, bN as EntityDeletedEvent, bM as EntityUpdatedEvent, dy as EntryPass, ax as Event, e8 as EventMetadata, eC as EventWithLiterals, bt as ExtendedFields, bW as FieldViolation, aK as FixedPayment, aG as Form, d6 as FormDetails, aH as FormSettings, dN as GeoCoordinates, c2 as GetServiceAvailabilityConstraintsRequest, c3 as GetServiceAvailabilityConstraintsResponse, c0 as GetServiceRequest, c1 as GetServiceResponse, cE as GroupByAggregation, cF as GroupByAggregationKindOneOf, cY as GroupByValueResults, dE as HtmlSitePublished, bQ as IdentificationData, bR as IdentificationDataIdOneOf, cv as IncludeMissingValuesOptions, be as IntakeFormPolicy, an as Interval, es as IntervalWithLiterals, dn as InvalidPricingPlan, as as InvalidSlugError, ex as InvalidSlugErrorWithLiterals, bZ as ItemMetadata, bv as Keyword, a_ as LimitEarlyBookingPolicy, a$ as LimitLateBookingPolicy, _ as ListAddOnGroupsByServiceIdOptions, e2 as ListAddOnGroupsByServiceIdRequest, $ as ListAddOnGroupsByServiceIdResponse, dK as Locale, L as Location, aR as LocationOptionsOneOf, a9 as LocationType, ee as LocationTypeWithLiterals, c9 as MaskedService, aC as Media, aD as MediaItem, aE as MediaItemItemOneOf, bP as MessageEnvelope, ak as MissingValues, ep as MissingValuesWithLiterals, ap as Mode, eu as ModeWithLiterals, aL as Money, dl as MoveToNewLocationsOptions, dR as Multilingual, cD as NestedAggregation, cB as NestedAggregationItem, cC as NestedAggregationItemKindOneOf, cL as NestedAggregationResults, cM as NestedAggregationResultsResultOneOf, am as NestedAggregationType, er as NestedAggregationTypeWithLiterals, cU as NestedResultValue, cV as NestedResultValueResultOneOf, c_ as NestedResults, cQ as NestedValueAggregationResult, aP as OnlineBooking, dF as Page, ck as Paging, cn as PagingMetadataV2, cc as ParticipantNotification, b4 as ParticipantsPolicy, aI as Payment, aO as PaymentOptions, aJ as PaymentRateOneOf, bA as PhoneCall, az as PlacementType, eE as PlacementTypeWithLiterals, aZ as PolicyDescription, dI as Properties, dX as PropertiesChange, q as QueryBookingFormsApplicationErrors, o as QueryBookingFormsOptions, d4 as QueryBookingFormsRequest, p as QueryBookingFormsResponse, df as QueryCategoriesFilter, v as QueryCategoriesOptions, de as QueryCategoriesRequest, w as QueryCategoriesResponse, da as QueryLocationsFilter, t as QueryLocationsOptions, d9 as QueryLocationsRequest, u as QueryLocationsResponse, d1 as QueryPoliciesRequest, Q as QueryPoliciesResponse, dg as QueryServicesMultiLanguageRequest, dh as QueryServicesMultiLanguageResponse, cg as QueryServicesRequest, cm as QueryServicesResponse, ch as QueryV2, ci as QueryV2PagingMethodOneOf, cy as RangeAggregation, cK as RangeAggregationResult, cu as RangeBucket, cS as RangeResult, cO as RangeResults, bc as RankingOptions, aa as RankingOrder, ef as RankingOrderWithLiterals, a7 as RateType, ec as RateTypeWithLiterals, bB as ReindexMessage, bC as ReindexMessageActionOneOf, dj as RemovedLocationSessionsAction, dk as RemovedLocationSessionsActionActionOptionsOneOf, aq as RequestedFields, ev as RequestedFieldsWithLiterals, b2 as ReschedulePolicy, aB as ResolutionMethod, eG as ResolutionMethodWithLiterals, bm as ResourceGroup, bn as ResourceIds, bq as ResourceType, b5 as ResourcesPolicy, bL as RestoreInfo, cW as Results, b9 as SaveCreditCardPolicy, cz as ScalarAggregation, cT as ScalarResult, al as ScalarType, eq as ScalarTypeWithLiterals, bf as Schedule, bF as Schema, cG as SearchDetails, cp as SearchServicesRequest, bu as SeoSchema, S as Service, c4 as ServiceAvailabilityConstraints, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, bo as ServiceResource, bp as ServiceResourceSelectionOneOf, ea as ServiceSearchSpec, a6 as ServiceType, eb as ServiceTypeWithLiterals, a5 as ServiceUpdatedEnvelope, k as ServicesQueryBuilder, e9 as ServicesQueryResult, bH as ServicesUrlsChanged, a2 as SetAddOnsForGroupApplicationErrors, a0 as SetAddOnsForGroupOptions, e6 as SetAddOnsForGroupRequest, a1 as SetAddOnsForGroupResponse, J as SetCustomSlugApplicationErrors, bG as SetCustomSlugEvent, H as SetCustomSlugOptions, dq as SetCustomSlugRequest, I as SetCustomSlugResponse, K as SetCustomSlugValidationErrors, x as SetServiceLocationsOptions, di as SetServiceLocationsRequest, y as SetServiceLocationsResponse, bx as Settings, dZ as SiteCloned, dY as SiteCreated, dH as SitePropertiesEvent, dG as SitePropertiesNotification, br as Slug, aj as SortDirection, eo as SortDirectionWithLiterals, ah as SortOrder, em as SortOrderWithLiterals, ai as SortType, en as SortTypeWithLiterals, cj as Sorting, ab as SortingMethodType, eg as SortingMethodTypeWithLiterals, dQ as SpecialHourPeriod, c5 as SplitInterval, bj as StaffMediaItem, bk as StaffMediaItemItemOneOf, bi as StaffMember, bl as StaffMemberDetails, ba as StaffSortingPolicy, bb as StaffSortingPolicyOptionsOneOf, au as Status, ez as StatusWithLiterals, aU as StreetAddress, dS as SupportedLanguage, bw as Tag, bz as TaxableAddress, ae as TaxableAddressType, ej as TaxableAddressTypeWithLiterals, dP as TimePeriod, ac as Timing, eh as TimingWithLiterals, dU as Translation, bs as URLs, Z as UpdateAddOnGroupApplicationErrors, X as UpdateAddOnGroupOptions, e1 as UpdateAddOnGroupRequest, Y as UpdateAddOnGroupResponse, U as UpdateService, c6 as UpdateServiceRequest, c7 as UpdateServiceResponse, b as UpdateServiceValidationErrors, bD as Upsert, dD as UserDomainInfoChangedEvent, aF as V2Category, ag as V2RequestedFields, el as V2RequestedFieldsWithLiterals, bU as ValidateServiceRequest, bV as ValidateServiceResponse, V as ValidateSlugOptions, dr as ValidateSlugRequest, M as ValidateSlugResponse, cw as ValueAggregation, cx as ValueAggregationOptionsOneOf, cJ as ValueAggregationResult, cR as ValueResult, cN as ValueResults, aN as VariedPayment, b3 as WaitlistPolicy, af as WebhookIdentityType, ek as WebhookIdentityTypeWithLiterals, eM as bulkCreateServices, eS as bulkDeleteServices, eT as bulkDeleteServicesByFilter, eP as bulkUpdateServices, eQ as bulkUpdateServicesByFilter, f3 as cloneService, eX as countServices, f4 as createAddOnGroup, eL as createService, f5 as deleteAddOnGroup, eR as deleteService, f0 as disablePricingPlansForService, e$ as enablePricingPlansForService, eN as getService, f7 as listAddOnGroupsByServiceId, eI as onServiceCreated, eJ as onServiceDeleted, eK as onServiceUpdated, eW as queryBookingForms, eZ as queryCategories, eY as queryLocations, eV as queryPolicies, eU as queryServices, f8 as setAddOnsForGroup, f1 as setCustomSlug, e_ as setServiceLocations, f6 as updateAddOnGroup, eO as updateService, f2 as validateSlug } from './bookings-services-v2-service-services.universal-vH2KMOVN.js';
|
|
3
3
|
import '@wix/sdk-types';
|
|
4
4
|
|
|
5
5
|
/** @hidden */
|
|
@@ -96,7 +96,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
96
96
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
97
97
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
98
98
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
99
|
-
function
|
|
99
|
+
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
100
100
|
const domainToMappings = {
|
|
101
101
|
"*.dev.wix-code.com": [
|
|
102
102
|
{
|
|
@@ -211,7 +211,7 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
211
211
|
};
|
|
212
212
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
215
215
|
const domainToMappings = {
|
|
216
216
|
"*.dev.wix-code.com": [
|
|
217
217
|
{
|
|
@@ -327,117 +327,6 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
|
327
327
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
328
328
|
}
|
|
329
329
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_services";
|
|
330
|
-
function createAddOnGroup(payload) {
|
|
331
|
-
function __createAddOnGroup({ host }) {
|
|
332
|
-
const metadata = {
|
|
333
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
334
|
-
method: "POST",
|
|
335
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
336
|
-
packageName: PACKAGE_NAME,
|
|
337
|
-
migrationOptions: {
|
|
338
|
-
optInTransformResponse: true
|
|
339
|
-
},
|
|
340
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
341
|
-
protoPath: "/v2/services/add-on-groups/create",
|
|
342
|
-
data: payload,
|
|
343
|
-
host
|
|
344
|
-
}),
|
|
345
|
-
data: payload
|
|
346
|
-
};
|
|
347
|
-
return metadata;
|
|
348
|
-
}
|
|
349
|
-
return __createAddOnGroup;
|
|
350
|
-
}
|
|
351
|
-
function deleteAddOnGroup(payload) {
|
|
352
|
-
function __deleteAddOnGroup({ host }) {
|
|
353
|
-
const metadata = {
|
|
354
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
355
|
-
method: "POST",
|
|
356
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
357
|
-
packageName: PACKAGE_NAME,
|
|
358
|
-
migrationOptions: {
|
|
359
|
-
optInTransformResponse: true
|
|
360
|
-
},
|
|
361
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
362
|
-
protoPath: "/v2/services/add-on-groups/delete",
|
|
363
|
-
data: payload,
|
|
364
|
-
host
|
|
365
|
-
}),
|
|
366
|
-
data: payload
|
|
367
|
-
};
|
|
368
|
-
return metadata;
|
|
369
|
-
}
|
|
370
|
-
return __deleteAddOnGroup;
|
|
371
|
-
}
|
|
372
|
-
function updateAddOnGroup(payload) {
|
|
373
|
-
function __updateAddOnGroup({ host }) {
|
|
374
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
375
|
-
{
|
|
376
|
-
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
377
|
-
paths: [{ path: "mask" }]
|
|
378
|
-
}
|
|
379
|
-
]);
|
|
380
|
-
const metadata = {
|
|
381
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
382
|
-
method: "POST",
|
|
383
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
384
|
-
packageName: PACKAGE_NAME,
|
|
385
|
-
migrationOptions: {
|
|
386
|
-
optInTransformResponse: true
|
|
387
|
-
},
|
|
388
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
389
|
-
protoPath: "/v2/services/add-on-groups/update",
|
|
390
|
-
data: serializedData,
|
|
391
|
-
host
|
|
392
|
-
}),
|
|
393
|
-
data: serializedData
|
|
394
|
-
};
|
|
395
|
-
return metadata;
|
|
396
|
-
}
|
|
397
|
-
return __updateAddOnGroup;
|
|
398
|
-
}
|
|
399
|
-
function listAddOnGroupsByServiceId(payload) {
|
|
400
|
-
function __listAddOnGroupsByServiceId({ host }) {
|
|
401
|
-
const metadata = {
|
|
402
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
403
|
-
method: "POST",
|
|
404
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
405
|
-
packageName: PACKAGE_NAME,
|
|
406
|
-
migrationOptions: {
|
|
407
|
-
optInTransformResponse: true
|
|
408
|
-
},
|
|
409
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
410
|
-
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
411
|
-
data: payload,
|
|
412
|
-
host
|
|
413
|
-
}),
|
|
414
|
-
data: payload
|
|
415
|
-
};
|
|
416
|
-
return metadata;
|
|
417
|
-
}
|
|
418
|
-
return __listAddOnGroupsByServiceId;
|
|
419
|
-
}
|
|
420
|
-
function setAddOnsForGroup(payload) {
|
|
421
|
-
function __setAddOnsForGroup({ host }) {
|
|
422
|
-
const metadata = {
|
|
423
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
424
|
-
method: "POST",
|
|
425
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
426
|
-
packageName: PACKAGE_NAME,
|
|
427
|
-
migrationOptions: {
|
|
428
|
-
optInTransformResponse: true
|
|
429
|
-
},
|
|
430
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
431
|
-
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
432
|
-
data: payload,
|
|
433
|
-
host
|
|
434
|
-
}),
|
|
435
|
-
data: payload
|
|
436
|
-
};
|
|
437
|
-
return metadata;
|
|
438
|
-
}
|
|
439
|
-
return __setAddOnsForGroup;
|
|
440
|
-
}
|
|
441
330
|
function createService(payload) {
|
|
442
331
|
function __createService({ host }) {
|
|
443
332
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1787,6 +1676,117 @@ function cloneService(payload) {
|
|
|
1787
1676
|
}
|
|
1788
1677
|
return __cloneService;
|
|
1789
1678
|
}
|
|
1679
|
+
function createAddOnGroup(payload) {
|
|
1680
|
+
function __createAddOnGroup({ host }) {
|
|
1681
|
+
const metadata = {
|
|
1682
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1683
|
+
method: "POST",
|
|
1684
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.CreateAddOnGroup",
|
|
1685
|
+
packageName: PACKAGE_NAME,
|
|
1686
|
+
migrationOptions: {
|
|
1687
|
+
optInTransformResponse: true
|
|
1688
|
+
},
|
|
1689
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1690
|
+
protoPath: "/v2/services/add-on-groups/create",
|
|
1691
|
+
data: payload,
|
|
1692
|
+
host
|
|
1693
|
+
}),
|
|
1694
|
+
data: payload
|
|
1695
|
+
};
|
|
1696
|
+
return metadata;
|
|
1697
|
+
}
|
|
1698
|
+
return __createAddOnGroup;
|
|
1699
|
+
}
|
|
1700
|
+
function deleteAddOnGroup(payload) {
|
|
1701
|
+
function __deleteAddOnGroup({ host }) {
|
|
1702
|
+
const metadata = {
|
|
1703
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1704
|
+
method: "POST",
|
|
1705
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.DeleteAddOnGroup",
|
|
1706
|
+
packageName: PACKAGE_NAME,
|
|
1707
|
+
migrationOptions: {
|
|
1708
|
+
optInTransformResponse: true
|
|
1709
|
+
},
|
|
1710
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1711
|
+
protoPath: "/v2/services/add-on-groups/delete",
|
|
1712
|
+
data: payload,
|
|
1713
|
+
host
|
|
1714
|
+
}),
|
|
1715
|
+
data: payload
|
|
1716
|
+
};
|
|
1717
|
+
return metadata;
|
|
1718
|
+
}
|
|
1719
|
+
return __deleteAddOnGroup;
|
|
1720
|
+
}
|
|
1721
|
+
function updateAddOnGroup(payload) {
|
|
1722
|
+
function __updateAddOnGroup({ host }) {
|
|
1723
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1724
|
+
{
|
|
1725
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1726
|
+
paths: [{ path: "mask" }]
|
|
1727
|
+
}
|
|
1728
|
+
]);
|
|
1729
|
+
const metadata = {
|
|
1730
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1731
|
+
method: "POST",
|
|
1732
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.UpdateAddOnGroup",
|
|
1733
|
+
packageName: PACKAGE_NAME,
|
|
1734
|
+
migrationOptions: {
|
|
1735
|
+
optInTransformResponse: true
|
|
1736
|
+
},
|
|
1737
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1738
|
+
protoPath: "/v2/services/add-on-groups/update",
|
|
1739
|
+
data: serializedData,
|
|
1740
|
+
host
|
|
1741
|
+
}),
|
|
1742
|
+
data: serializedData
|
|
1743
|
+
};
|
|
1744
|
+
return metadata;
|
|
1745
|
+
}
|
|
1746
|
+
return __updateAddOnGroup;
|
|
1747
|
+
}
|
|
1748
|
+
function listAddOnGroupsByServiceId(payload) {
|
|
1749
|
+
function __listAddOnGroupsByServiceId({ host }) {
|
|
1750
|
+
const metadata = {
|
|
1751
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1752
|
+
method: "POST",
|
|
1753
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ListAddOnGroupsByServiceId",
|
|
1754
|
+
packageName: PACKAGE_NAME,
|
|
1755
|
+
migrationOptions: {
|
|
1756
|
+
optInTransformResponse: true
|
|
1757
|
+
},
|
|
1758
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1759
|
+
protoPath: "/v2/services/add-on-groups/list-add-on-groups-by-service-id",
|
|
1760
|
+
data: payload,
|
|
1761
|
+
host
|
|
1762
|
+
}),
|
|
1763
|
+
data: payload
|
|
1764
|
+
};
|
|
1765
|
+
return metadata;
|
|
1766
|
+
}
|
|
1767
|
+
return __listAddOnGroupsByServiceId;
|
|
1768
|
+
}
|
|
1769
|
+
function setAddOnsForGroup(payload) {
|
|
1770
|
+
function __setAddOnsForGroup({ host }) {
|
|
1771
|
+
const metadata = {
|
|
1772
|
+
entityFqdn: "wix.bookings.services.v2.service",
|
|
1773
|
+
method: "POST",
|
|
1774
|
+
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.SetAddOnsForGroup",
|
|
1775
|
+
packageName: PACKAGE_NAME,
|
|
1776
|
+
migrationOptions: {
|
|
1777
|
+
optInTransformResponse: true
|
|
1778
|
+
},
|
|
1779
|
+
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
1780
|
+
protoPath: "/v2/services/add-on-groups/set-add-ons-for-group",
|
|
1781
|
+
data: payload,
|
|
1782
|
+
host
|
|
1783
|
+
}),
|
|
1784
|
+
data: payload
|
|
1785
|
+
};
|
|
1786
|
+
return metadata;
|
|
1787
|
+
}
|
|
1788
|
+
return __setAddOnsForGroup;
|
|
1789
|
+
}
|
|
1790
1790
|
|
|
1791
1791
|
// src/bookings-services-v2-service-services.universal.ts
|
|
1792
1792
|
var import_address = require("@wix/sdk-runtime/transformations/address");
|
|
@@ -2004,158 +2004,11 @@ var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
|
2004
2004
|
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
2005
2005
|
return ResolutionMethod2;
|
|
2006
2006
|
})(ResolutionMethod || {});
|
|
2007
|
-
async function
|
|
2008
|
-
const { httpClient, sideEffects } = arguments[
|
|
2009
|
-
const payload = (0,
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
});
|
|
2013
|
-
const reqOpts = createAddOnGroup(payload);
|
|
2014
|
-
sideEffects?.onSiteCall?.();
|
|
2015
|
-
try {
|
|
2016
|
-
const result = await httpClient.request(reqOpts);
|
|
2017
|
-
sideEffects?.onSuccess?.(result);
|
|
2018
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2019
|
-
} catch (err) {
|
|
2020
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2021
|
-
err,
|
|
2022
|
-
{
|
|
2023
|
-
spreadPathsToArguments: {},
|
|
2024
|
-
explicitPathsToArguments: {
|
|
2025
|
-
addOnGroup: "$[0]",
|
|
2026
|
-
serviceId: "$[1].serviceId"
|
|
2027
|
-
},
|
|
2028
|
-
singleArgumentUnchanged: false
|
|
2029
|
-
},
|
|
2030
|
-
["addOnGroup", "options"]
|
|
2031
|
-
);
|
|
2032
|
-
sideEffects?.onError?.(err);
|
|
2033
|
-
throw transformedError;
|
|
2034
|
-
}
|
|
2035
|
-
}
|
|
2036
|
-
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
2037
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2038
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2039
|
-
addOnGroupId,
|
|
2040
|
-
serviceId: options?.serviceId
|
|
2041
|
-
});
|
|
2042
|
-
const reqOpts = deleteAddOnGroup(payload);
|
|
2043
|
-
sideEffects?.onSiteCall?.();
|
|
2044
|
-
try {
|
|
2045
|
-
const result = await httpClient.request(reqOpts);
|
|
2046
|
-
sideEffects?.onSuccess?.(result);
|
|
2047
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2048
|
-
} catch (err) {
|
|
2049
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2050
|
-
err,
|
|
2051
|
-
{
|
|
2052
|
-
spreadPathsToArguments: {},
|
|
2053
|
-
explicitPathsToArguments: {
|
|
2054
|
-
addOnGroupId: "$[0]",
|
|
2055
|
-
serviceId: "$[1].serviceId"
|
|
2056
|
-
},
|
|
2057
|
-
singleArgumentUnchanged: false
|
|
2058
|
-
},
|
|
2059
|
-
["addOnGroupId", "options"]
|
|
2060
|
-
);
|
|
2061
|
-
sideEffects?.onError?.(err);
|
|
2062
|
-
throw transformedError;
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
async function updateAddOnGroup2(addOnGroup, options) {
|
|
2066
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2067
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2068
|
-
addOnGroup,
|
|
2069
|
-
serviceId: options?.serviceId
|
|
2070
|
-
});
|
|
2071
|
-
const reqOpts = updateAddOnGroup(payload);
|
|
2072
|
-
sideEffects?.onSiteCall?.();
|
|
2073
|
-
try {
|
|
2074
|
-
const result = await httpClient.request(reqOpts);
|
|
2075
|
-
sideEffects?.onSuccess?.(result);
|
|
2076
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2077
|
-
} catch (err) {
|
|
2078
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2079
|
-
err,
|
|
2080
|
-
{
|
|
2081
|
-
spreadPathsToArguments: {},
|
|
2082
|
-
explicitPathsToArguments: {
|
|
2083
|
-
addOnGroup: "$[0]",
|
|
2084
|
-
serviceId: "$[1].serviceId"
|
|
2085
|
-
},
|
|
2086
|
-
singleArgumentUnchanged: false
|
|
2087
|
-
},
|
|
2088
|
-
["addOnGroup", "options"]
|
|
2089
|
-
);
|
|
2090
|
-
sideEffects?.onError?.(err);
|
|
2091
|
-
throw transformedError;
|
|
2092
|
-
}
|
|
2093
|
-
}
|
|
2094
|
-
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
2095
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2096
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2097
|
-
serviceId,
|
|
2098
|
-
groupIds: options?.groupIds
|
|
2099
|
-
});
|
|
2100
|
-
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
2101
|
-
sideEffects?.onSiteCall?.();
|
|
2102
|
-
try {
|
|
2103
|
-
const result = await httpClient.request(reqOpts);
|
|
2104
|
-
sideEffects?.onSuccess?.(result);
|
|
2105
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2106
|
-
} catch (err) {
|
|
2107
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2108
|
-
err,
|
|
2109
|
-
{
|
|
2110
|
-
spreadPathsToArguments: {},
|
|
2111
|
-
explicitPathsToArguments: {
|
|
2112
|
-
serviceId: "$[0]",
|
|
2113
|
-
groupIds: "$[1].groupIds"
|
|
2114
|
-
},
|
|
2115
|
-
singleArgumentUnchanged: false
|
|
2116
|
-
},
|
|
2117
|
-
["serviceId", "options"]
|
|
2118
|
-
);
|
|
2119
|
-
sideEffects?.onError?.(err);
|
|
2120
|
-
throw transformedError;
|
|
2121
|
-
}
|
|
2122
|
-
}
|
|
2123
|
-
async function setAddOnsForGroup2(serviceId, options) {
|
|
2124
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2125
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2126
|
-
serviceId,
|
|
2127
|
-
groupId: options?.groupId,
|
|
2128
|
-
addOnIds: options?.addOnIds
|
|
2129
|
-
});
|
|
2130
|
-
const reqOpts = setAddOnsForGroup(payload);
|
|
2131
|
-
sideEffects?.onSiteCall?.();
|
|
2132
|
-
try {
|
|
2133
|
-
const result = await httpClient.request(reqOpts);
|
|
2134
|
-
sideEffects?.onSuccess?.(result);
|
|
2135
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2136
|
-
} catch (err) {
|
|
2137
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2138
|
-
err,
|
|
2139
|
-
{
|
|
2140
|
-
spreadPathsToArguments: {},
|
|
2141
|
-
explicitPathsToArguments: {
|
|
2142
|
-
serviceId: "$[0]",
|
|
2143
|
-
groupId: "$[1].groupId",
|
|
2144
|
-
addOnIds: "$[1].addOnIds"
|
|
2145
|
-
},
|
|
2146
|
-
singleArgumentUnchanged: false
|
|
2147
|
-
},
|
|
2148
|
-
["serviceId", "options"]
|
|
2149
|
-
);
|
|
2150
|
-
sideEffects?.onError?.(err);
|
|
2151
|
-
throw transformedError;
|
|
2152
|
-
}
|
|
2153
|
-
}
|
|
2154
|
-
async function createService2(service) {
|
|
2155
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2156
|
-
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2157
|
-
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ service }),
|
|
2158
|
-
[
|
|
2007
|
+
async function createService2(service) {
|
|
2008
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2009
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
2010
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ service }),
|
|
2011
|
+
[
|
|
2159
2012
|
{
|
|
2160
2013
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2161
2014
|
paths: [
|
|
@@ -3383,6 +3236,153 @@ async function cloneService2(sourceServiceId) {
|
|
|
3383
3236
|
throw transformedError;
|
|
3384
3237
|
}
|
|
3385
3238
|
}
|
|
3239
|
+
async function createAddOnGroup2(addOnGroup, options) {
|
|
3240
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3241
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3242
|
+
addOnGroup,
|
|
3243
|
+
serviceId: options?.serviceId
|
|
3244
|
+
});
|
|
3245
|
+
const reqOpts = createAddOnGroup(payload);
|
|
3246
|
+
sideEffects?.onSiteCall?.();
|
|
3247
|
+
try {
|
|
3248
|
+
const result = await httpClient.request(reqOpts);
|
|
3249
|
+
sideEffects?.onSuccess?.(result);
|
|
3250
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3251
|
+
} catch (err) {
|
|
3252
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3253
|
+
err,
|
|
3254
|
+
{
|
|
3255
|
+
spreadPathsToArguments: {},
|
|
3256
|
+
explicitPathsToArguments: {
|
|
3257
|
+
addOnGroup: "$[0]",
|
|
3258
|
+
serviceId: "$[1].serviceId"
|
|
3259
|
+
},
|
|
3260
|
+
singleArgumentUnchanged: false
|
|
3261
|
+
},
|
|
3262
|
+
["addOnGroup", "options"]
|
|
3263
|
+
);
|
|
3264
|
+
sideEffects?.onError?.(err);
|
|
3265
|
+
throw transformedError;
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
async function deleteAddOnGroup2(addOnGroupId, options) {
|
|
3269
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3270
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3271
|
+
addOnGroupId,
|
|
3272
|
+
serviceId: options?.serviceId
|
|
3273
|
+
});
|
|
3274
|
+
const reqOpts = deleteAddOnGroup(payload);
|
|
3275
|
+
sideEffects?.onSiteCall?.();
|
|
3276
|
+
try {
|
|
3277
|
+
const result = await httpClient.request(reqOpts);
|
|
3278
|
+
sideEffects?.onSuccess?.(result);
|
|
3279
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3280
|
+
} catch (err) {
|
|
3281
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3282
|
+
err,
|
|
3283
|
+
{
|
|
3284
|
+
spreadPathsToArguments: {},
|
|
3285
|
+
explicitPathsToArguments: {
|
|
3286
|
+
addOnGroupId: "$[0]",
|
|
3287
|
+
serviceId: "$[1].serviceId"
|
|
3288
|
+
},
|
|
3289
|
+
singleArgumentUnchanged: false
|
|
3290
|
+
},
|
|
3291
|
+
["addOnGroupId", "options"]
|
|
3292
|
+
);
|
|
3293
|
+
sideEffects?.onError?.(err);
|
|
3294
|
+
throw transformedError;
|
|
3295
|
+
}
|
|
3296
|
+
}
|
|
3297
|
+
async function updateAddOnGroup2(addOnGroup, options) {
|
|
3298
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3299
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3300
|
+
addOnGroup,
|
|
3301
|
+
serviceId: options?.serviceId
|
|
3302
|
+
});
|
|
3303
|
+
const reqOpts = updateAddOnGroup(payload);
|
|
3304
|
+
sideEffects?.onSiteCall?.();
|
|
3305
|
+
try {
|
|
3306
|
+
const result = await httpClient.request(reqOpts);
|
|
3307
|
+
sideEffects?.onSuccess?.(result);
|
|
3308
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3309
|
+
} catch (err) {
|
|
3310
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3311
|
+
err,
|
|
3312
|
+
{
|
|
3313
|
+
spreadPathsToArguments: {},
|
|
3314
|
+
explicitPathsToArguments: {
|
|
3315
|
+
addOnGroup: "$[0]",
|
|
3316
|
+
serviceId: "$[1].serviceId"
|
|
3317
|
+
},
|
|
3318
|
+
singleArgumentUnchanged: false
|
|
3319
|
+
},
|
|
3320
|
+
["addOnGroup", "options"]
|
|
3321
|
+
);
|
|
3322
|
+
sideEffects?.onError?.(err);
|
|
3323
|
+
throw transformedError;
|
|
3324
|
+
}
|
|
3325
|
+
}
|
|
3326
|
+
async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
3327
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3328
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3329
|
+
serviceId,
|
|
3330
|
+
groupIds: options?.groupIds
|
|
3331
|
+
});
|
|
3332
|
+
const reqOpts = listAddOnGroupsByServiceId(payload);
|
|
3333
|
+
sideEffects?.onSiteCall?.();
|
|
3334
|
+
try {
|
|
3335
|
+
const result = await httpClient.request(reqOpts);
|
|
3336
|
+
sideEffects?.onSuccess?.(result);
|
|
3337
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3338
|
+
} catch (err) {
|
|
3339
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3340
|
+
err,
|
|
3341
|
+
{
|
|
3342
|
+
spreadPathsToArguments: {},
|
|
3343
|
+
explicitPathsToArguments: {
|
|
3344
|
+
serviceId: "$[0]",
|
|
3345
|
+
groupIds: "$[1].groupIds"
|
|
3346
|
+
},
|
|
3347
|
+
singleArgumentUnchanged: false
|
|
3348
|
+
},
|
|
3349
|
+
["serviceId", "options"]
|
|
3350
|
+
);
|
|
3351
|
+
sideEffects?.onError?.(err);
|
|
3352
|
+
throw transformedError;
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
async function setAddOnsForGroup2(serviceId, options) {
|
|
3356
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
3357
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
3358
|
+
serviceId,
|
|
3359
|
+
groupId: options?.groupId,
|
|
3360
|
+
addOnIds: options?.addOnIds
|
|
3361
|
+
});
|
|
3362
|
+
const reqOpts = setAddOnsForGroup(payload);
|
|
3363
|
+
sideEffects?.onSiteCall?.();
|
|
3364
|
+
try {
|
|
3365
|
+
const result = await httpClient.request(reqOpts);
|
|
3366
|
+
sideEffects?.onSuccess?.(result);
|
|
3367
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
3368
|
+
} catch (err) {
|
|
3369
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
3370
|
+
err,
|
|
3371
|
+
{
|
|
3372
|
+
spreadPathsToArguments: {},
|
|
3373
|
+
explicitPathsToArguments: {
|
|
3374
|
+
serviceId: "$[0]",
|
|
3375
|
+
groupId: "$[1].groupId",
|
|
3376
|
+
addOnIds: "$[1].addOnIds"
|
|
3377
|
+
},
|
|
3378
|
+
singleArgumentUnchanged: false
|
|
3379
|
+
},
|
|
3380
|
+
["serviceId", "options"]
|
|
3381
|
+
);
|
|
3382
|
+
sideEffects?.onError?.(err);
|
|
3383
|
+
throw transformedError;
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
3386
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3387
3387
|
0 && (module.exports = {
|
|
3388
3388
|
Action,
|