@wix/auto_sdk_bookings_services 1.0.75 → 1.0.76
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-CEp6lBCA.d.ts → bookings-services-v2-service-services.universal-B0U0yEd2.d.ts} +1 -62
- package/build/cjs/index.d.ts +3 -12
- package/build/cjs/index.js +8 -60
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +8 -51
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -37
- package/build/cjs/meta.js +8 -38
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-CEp6lBCA.d.mts → bookings-services-v2-service-services.universal-B0U0yEd2.d.mts} +1 -62
- package/build/es/index.d.mts +3 -12
- package/build/es/index.mjs +8 -59
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +8 -50
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -37
- package/build/es/meta.mjs +8 -37
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-CEp6lBCA.d.ts → bookings-services-v2-service-services.universal-B0U0yEd2.d.ts} +1 -62
- package/build/internal/cjs/index.d.ts +3 -12
- package/build/internal/cjs/index.js +8 -60
- 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 +8 -51
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +2 -37
- package/build/internal/cjs/meta.js +8 -38
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-CEp6lBCA.d.mts → bookings-services-v2-service-services.universal-B0U0yEd2.d.mts} +1 -62
- package/build/internal/es/index.d.mts +3 -12
- package/build/internal/es/index.mjs +8 -59
- 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 +8 -50
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +2 -37
- package/build/internal/es/meta.mjs +8 -37
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1470,40 +1470,6 @@ interface SetAddOnsForGroupResponse {
|
|
|
1470
1470
|
/** The updated AddOnGroup. */
|
|
1471
1471
|
addOnGroup?: AddOnGroup;
|
|
1472
1472
|
}
|
|
1473
|
-
interface ValidateAddOnsSelectionRequest {
|
|
1474
|
-
/**
|
|
1475
|
-
* The service ID to validate AddOns against.
|
|
1476
|
-
* @format GUID
|
|
1477
|
-
*/
|
|
1478
|
-
serviceId: string | null;
|
|
1479
|
-
/**
|
|
1480
|
-
* The group ID to validate AddOns against.
|
|
1481
|
-
* @format GUID
|
|
1482
|
-
*/
|
|
1483
|
-
groupId: string | null;
|
|
1484
|
-
/**
|
|
1485
|
-
* The IDs of AddOns to validate.
|
|
1486
|
-
* @format GUID
|
|
1487
|
-
* @minSize 1
|
|
1488
|
-
* @maxSize 7
|
|
1489
|
-
*/
|
|
1490
|
-
addOnIds: string[] | null;
|
|
1491
|
-
}
|
|
1492
|
-
interface ValidateAddOnsSelectionResponse {
|
|
1493
|
-
/** The validation result. */
|
|
1494
|
-
result?: ValidationResult;
|
|
1495
|
-
}
|
|
1496
|
-
interface ValidationResult {
|
|
1497
|
-
/** Whether the AddOns selection is valid. */
|
|
1498
|
-
valid?: boolean | null;
|
|
1499
|
-
/**
|
|
1500
|
-
* A validation error message.
|
|
1501
|
-
* This field should populated when `valid` is `false`.
|
|
1502
|
-
* @minLength 1
|
|
1503
|
-
* @maxLength 300
|
|
1504
|
-
*/
|
|
1505
|
-
message?: string | null;
|
|
1506
|
-
}
|
|
1507
1473
|
interface CreateServiceRequest {
|
|
1508
1474
|
/** Service to create. */
|
|
1509
1475
|
service: Service;
|
|
@@ -3784,33 +3750,6 @@ interface SetAddOnsForGroupOptions {
|
|
|
3784
3750
|
*/
|
|
3785
3751
|
addOnIds: string[] | null;
|
|
3786
3752
|
}
|
|
3787
|
-
/**
|
|
3788
|
-
* Validates the selection of AddOns for a given group based on the group's settings.
|
|
3789
|
-
* @param serviceId - The service ID to validate AddOns against.
|
|
3790
|
-
* @public
|
|
3791
|
-
* @documentationMaturity preview
|
|
3792
|
-
* @requiredField options
|
|
3793
|
-
* @requiredField options.addOnIds
|
|
3794
|
-
* @requiredField options.groupId
|
|
3795
|
-
* @requiredField serviceId
|
|
3796
|
-
* @permissionId BOOKINGS.SERVICES_ADD_ON_GROUPS_VALIDATE
|
|
3797
|
-
* @fqn wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection
|
|
3798
|
-
*/
|
|
3799
|
-
declare function validateAddOnsSelection(serviceId: string, options: NonNullablePaths<ValidateAddOnsSelectionOptions, `addOnIds` | `groupId`>): Promise<ValidateAddOnsSelectionResponse>;
|
|
3800
|
-
interface ValidateAddOnsSelectionOptions {
|
|
3801
|
-
/**
|
|
3802
|
-
* The group ID to validate AddOns against.
|
|
3803
|
-
* @format GUID
|
|
3804
|
-
*/
|
|
3805
|
-
groupId: string | null;
|
|
3806
|
-
/**
|
|
3807
|
-
* The IDs of AddOns to validate.
|
|
3808
|
-
* @format GUID
|
|
3809
|
-
* @minSize 1
|
|
3810
|
-
* @maxSize 7
|
|
3811
|
-
*/
|
|
3812
|
-
addOnIds: string[] | null;
|
|
3813
|
-
}
|
|
3814
3753
|
/**
|
|
3815
3754
|
* Creates a service.
|
|
3816
3755
|
*
|
|
@@ -4968,4 +4907,4 @@ declare function cloneService(sourceServiceId: string): Promise<NonNullablePaths
|
|
|
4968
4907
|
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
4969
4908
|
}[ServiceNonNullablePaths] | `errors`>>;
|
|
4970
4909
|
|
|
4971
|
-
export { type SetCustomSlugResponse as $, type AddOnGroup as A, type BulkCreateServicesOptions as B, type CreateAddOnGroupOptions as C, type DeleteAddOnGroupOptions as D, type QueryBookingFormsOptions as E, type QueryBookingFormsResponse as F, type QueryBookingFormsApplicationErrors as G, type CountServicesOptions as H, type CountServicesResponse as I, type QueryLocationsOptions as J, type QueryLocationsResponse as K, type ListAddOnGroupsByServiceIdOptions as L, type QueryCategoriesOptions as M, type QueryCategoriesResponse as N, type Location as O, type SetServiceLocationsOptions as P, type QueryPoliciesResponse as Q, type SetServiceLocationsResponse as R, type SetAddOnsForGroupOptions as S, type EnablePricingPlansForServiceResponse as T, type UpdateAddOnGroupOptions as U, type ValidateAddOnsSelectionOptions as V, type EnablePricingPlansForServiceApplicationErrors as W, type DisablePricingPlansForServiceOptions as X, type DisablePricingPlansForServiceResponse as Y, type DisablePricingPlansForServiceApplicationErrors as Z, type SetCustomSlugOptions as _, type CreateAddOnGroupResponse as a, type WaitlistPolicy as a$, type SetCustomSlugApplicationErrors as a0, type SetCustomSlugValidationErrors as a1, type ValidateSlugOptions as a2, type ValidateSlugResponse as a3, type CloneServiceResponse as a4, type ServiceCreatedEnvelope as a5, type ServiceDeletedEnvelope as a6, type ServiceUpdatedEnvelope as a7, ServiceType as a8, RateType as a9, type MediaItemItemOneOf as aA, type V2Category as aB, type Form as aC, type FormSettings as aD, type Payment as aE, type PaymentRateOneOf as aF, type FixedPayment as aG, type Money as aH, type CustomPayment as aI, type VariedPayment as aJ, type PaymentOptions as aK, type OnlineBooking as aL, type Conferencing as aM, type LocationOptionsOneOf as aN, type CommonAddress as aO, type CommonAddressStreetOneOf as aP, type StreetAddress as aQ, type AddressLocation as aR, type BusinessLocationOptions as aS, type CustomLocationOptions as aT, type BookingPolicy as aU, type PolicyDescription as aV, type LimitEarlyBookingPolicy as aW, type LimitLateBookingPolicy as aX, type BookAfterStartPolicy as aY, type CancellationPolicy as aZ, type ReschedulePolicy as a_, LocationType as aa, WebhookIdentityType as ab, V2RequestedFields as ac, SortOrder as ad, SortType as ae, SortDirection as af, MissingValues as ag, ScalarType as ah, NestedAggregationType as ai, Interval as aj, AggregationType as ak, Mode as al, RequestedFields as am, Action as an, InvalidSlugError as ao, CloneErrors as ap, Status as aq, CategoryNotificationEvent as ar, BenefitType as as, Event as at, CrudType as au, PlacementType as av, DayOfWeek as aw, ResolutionMethod as ax, type Media as ay, type MediaItem as az, type DeleteAddOnGroupApplicationErrors as b, type BulkActionMetadata as b$, type ParticipantsPolicy as b0, type ResourcesPolicy as b1, type CancellationFeePolicy as b2, type CancellationWindow as b3, type CancellationWindowFeeOneOf as b4, type SaveCreditCardPolicy as b5, type Schedule as b6, type AvailabilityConstraints as b7, type Duration as b8, type StaffMember as b9, type RestoreInfo as bA, type EntityUpdatedEvent as bB, type EntityDeletedEvent as bC, type ActionEvent as bD, type MessageEnvelope as bE, type IdentificationData as bF, type IdentificationDataIdOneOf as bG, type CreateAddOnGroupRequest as bH, type DeleteAddOnGroupRequest as bI, type DeleteAddOnGroupResponse as bJ, type UpdateAddOnGroupRequest as bK, type ListAddOnGroupsByServiceIdRequest as bL, type AddOn as bM, type AddOnAddOnInfoOneOf as bN, type AddOnGroupDetail as bO, type SetAddOnsForGroupRequest as bP, type ValidateAddOnsSelectionRequest as bQ, type ValidationResult as bR, type CreateServiceRequest as bS, type CreateServiceResponse as bT, type ValidateServiceRequest as bU, type ValidateServiceResponse as bV, type FieldViolation as bW, type BulkCreateServicesRequest as bX, type BulkServiceResult as bY, type ItemMetadata as bZ, type ApplicationError as b_, type StaffMediaItem as ba, type StaffMediaItemItemOneOf as bb, type StaffMemberDetails as bc, type ResourceGroup as bd, type ResourceIds as be, type ServiceResource as bf, type ServiceResourceSelectionOneOf as bg, type ResourceType as bh, type Slug as bi, type URLs as bj, type ExtendedFields as bk, type SeoSchema as bl, type Keyword as bm, type Tag as bn, type Settings as bo, type AddOnDetails as bp, type ReindexMessage as bq, type ReindexMessageActionOneOf as br, type Upsert as bs, type Delete as bt, type Schema as bu, type SetCustomSlugEvent as bv, type ServicesUrlsChanged as bw, type DomainEvent as bx, type DomainEventBodyOneOf as by, type EntityCreatedEvent as bz, type UpdateAddOnGroupResponse as c, type AggregationResults as c$, type GetServiceRequest as c0, type GetServiceResponse as c1, type GetServiceAvailabilityConstraintsRequest as c2, type GetServiceAvailabilityConstraintsResponse as c3, type ServiceAvailabilityConstraints as c4, type SplitInterval as c5, type UpdateServiceRequest as c6, type UpdateServiceResponse as c7, type BulkUpdateServicesRequest as c8, type MaskedService as c9, type DateHistogramAggregation as cA, type NestedAggregationItem as cB, type NestedAggregationItemKindOneOf as cC, type NestedAggregation as cD, type GroupByAggregation as cE, type GroupByAggregationKindOneOf as cF, type SearchDetails as cG, type CursorPagingMetadata as cH, type AggregationData as cI, type ValueAggregationResult as cJ, type RangeAggregationResult as cK, type NestedAggregationResults as cL, type NestedAggregationResultsResultOneOf as cM, type ValueResults as cN, type RangeResults as cO, type AggregationResultsScalarResult as cP, type NestedValueAggregationResult as cQ, type ValueResult as cR, type RangeResult as cS, type ScalarResult as cT, type NestedResultValue as cU, type NestedResultValueResultOneOf as cV, type Results as cW, type DateHistogramResult as cX, type GroupByValueResults as cY, type DateHistogramResults as cZ, type NestedResults as c_, type BulkUpdateServicesByFilterRequest as ca, type DeleteServiceRequest as cb, type ParticipantNotification as cc, type DeleteServiceResponse as cd, type BulkDeleteServicesRequest as ce, type BulkDeleteServicesByFilterRequest as cf, type QueryServicesRequest as cg, type QueryV2 as ch, type QueryV2PagingMethodOneOf as ci, type Sorting as cj, type Paging as ck, type CursorPaging as cl, type QueryServicesResponse as cm, type PagingMetadataV2 as cn, type Cursors as co, type SearchServicesRequest as cp, type CursorSearch as cq, type CursorSearchPagingMethodOneOf as cr, type Aggregation as cs, type AggregationKindOneOf as ct, type RangeBucket as cu, type IncludeMissingValuesOptions as cv, type ValueAggregation as cw, type ValueAggregationOptionsOneOf as cx, type RangeAggregation as cy, type ScalarAggregation as cz, type UpdateAddOnGroupApplicationErrors as d, type EventMetadata as d$, type AggregationResultsResultOneOf as d0, type QueryPoliciesRequest as d1, type CursorQueryPagingMethodOneOf as d2, type BookingPolicyWithServices as d3, type QueryBookingFormsRequest as d4, type BookingForm as d5, type FormDetails as d6, type ConnectedService as d7, type CountServicesRequest as d8, type QueryLocationsRequest as d9, type DiscountDiscountOneOf as dA, type Behavior as dB, type BehaviorBehaviorOneOf as dC, type UserDomainInfoChangedEvent as dD, type HtmlSitePublished as dE, type Page as dF, type SitePropertiesNotification as dG, type SitePropertiesEvent as dH, type Properties as dI, type Categories as dJ, type Locale as dK, type Address as dL, type AddressHint as dM, type GeoCoordinates as dN, type BusinessSchedule as dO, type TimePeriod as dP, type SpecialHourPeriod as dQ, type Multilingual as dR, type SupportedLanguage as dS, type ConsentPolicy as dT, type Translation as dU, type ChangeContext as dV, type ChangeContextPayloadOneOf as dW, type PropertiesChange as dX, type SiteCreated as dY, type SiteCloned as dZ, type BaseEventMetadata as d_, type QueryLocationsFilter as da, type BusinessLocations as db, type CustomLocations as dc, type CustomerLocations as dd, type QueryCategoriesRequest as de, type QueryCategoriesFilter as df, type QueryServicesMultiLanguageRequest as dg, type QueryServicesMultiLanguageResponse as dh, type SetServiceLocationsRequest as di, type RemovedLocationSessionsAction as dj, type RemovedLocationSessionsActionActionOptionsOneOf as dk, type MoveToNewLocationsOptions as dl, type EnablePricingPlansForServiceRequest as dm, type InvalidPricingPlan as dn, type DisablePricingPlansForServiceRequest as dp, type SetCustomSlugRequest as dq, type ValidateSlugRequest as dr, type CloneServiceRequest as ds, type CategoryNotification as dt, type Category as du, type Empty as dv, type BenefitNotification as dw, type Benefit as dx, type EntryPass as dy, type Discount as dz, type ListAddOnGroupsByServiceIdResponse as e, type ServicesQueryResult as e0, type ServiceSearchSpec as e1, type ServiceTypeWithLiterals as e2, type RateTypeWithLiterals as e3, type LocationTypeWithLiterals as e4, type WebhookIdentityTypeWithLiterals as e5, type V2RequestedFieldsWithLiterals as e6, type SortOrderWithLiterals as e7, type SortTypeWithLiterals as e8, type SortDirectionWithLiterals as e9, validateAddOnsSelection as eA, createService as eB, bulkCreateServices as eC, getService as eD, updateService as eE, bulkUpdateServices as eF, bulkUpdateServicesByFilter as eG, deleteService as eH, bulkDeleteServices as eI, bulkDeleteServicesByFilter as eJ, queryServices as eK, type CommonSearchWithEntityContext as eL, queryPolicies as eM, queryBookingForms as eN, countServices as eO, queryLocations as eP, queryCategories as eQ, setServiceLocations as eR, enablePricingPlansForService as eS, disablePricingPlansForService as eT, setCustomSlug as eU, validateSlug as eV, cloneService as eW, type MissingValuesWithLiterals as ea, type ScalarTypeWithLiterals as eb, type NestedAggregationTypeWithLiterals as ec, type IntervalWithLiterals as ed, type AggregationTypeWithLiterals as ee, type ModeWithLiterals as ef, type RequestedFieldsWithLiterals as eg, type ActionWithLiterals as eh, type InvalidSlugErrorWithLiterals as ei, type CloneErrorsWithLiterals as ej, type StatusWithLiterals as ek, type CategoryNotificationEventWithLiterals as el, type BenefitTypeWithLiterals as em, type EventWithLiterals as en, type CrudTypeWithLiterals as eo, type PlacementTypeWithLiterals as ep, type DayOfWeekWithLiterals as eq, type ResolutionMethodWithLiterals as er, onServiceCreated as es, onServiceDeleted as et, onServiceUpdated as eu, createAddOnGroup as ev, deleteAddOnGroup as ew, updateAddOnGroup as ex, listAddOnGroupsByServiceId as ey, setAddOnsForGroup as ez, type SetAddOnsForGroupResponse as f, type SetAddOnsForGroupApplicationErrors as g, type ValidateAddOnsSelectionResponse as h, type Service as i, type CreateServiceValidationErrors as j, type BulkCreateServicesResponse as k, type UpdateService as l, type UpdateServiceValidationErrors as m, type BulkUpdateServicesOptions as n, type BulkUpdateServicesResponse as o, type BulkUpdateServicesByFilterOptions as p, type BulkUpdateServicesByFilterResponse as q, type DeleteServiceOptions as r, type BulkDeleteServicesOptions as s, type BulkDeleteServicesResponse as t, type BulkDeleteServicesByFilterOptions as u, type BulkDeleteServicesByFilterResponse as v, type ServicesQueryBuilder as w, type ServiceSearch as x, type SearchServicesResponse as y, type CursorQuery as z };
|
|
4910
|
+
export { type SetCustomSlugValidationErrors as $, type AddOnGroup as A, type BulkCreateServicesOptions as B, type CreateAddOnGroupOptions as C, type DeleteAddOnGroupOptions as D, type QueryBookingFormsResponse as E, type QueryBookingFormsApplicationErrors as F, type CountServicesOptions as G, type CountServicesResponse as H, type QueryLocationsOptions as I, type QueryLocationsResponse as J, type QueryCategoriesOptions as K, type ListAddOnGroupsByServiceIdOptions as L, type QueryCategoriesResponse as M, type Location as N, type SetServiceLocationsOptions as O, type SetServiceLocationsResponse as P, type QueryPoliciesResponse as Q, type EnablePricingPlansForServiceResponse as R, type SetAddOnsForGroupOptions as S, type EnablePricingPlansForServiceApplicationErrors as T, type UpdateAddOnGroupOptions as U, type DisablePricingPlansForServiceOptions as V, type DisablePricingPlansForServiceResponse as W, type DisablePricingPlansForServiceApplicationErrors as X, type SetCustomSlugOptions as Y, type SetCustomSlugResponse as Z, type SetCustomSlugApplicationErrors as _, type CreateAddOnGroupResponse as a, type ResourcesPolicy as a$, type ValidateSlugOptions as a0, type ValidateSlugResponse as a1, type CloneServiceResponse as a2, type ServiceCreatedEnvelope as a3, type ServiceDeletedEnvelope as a4, type ServiceUpdatedEnvelope as a5, ServiceType as a6, RateType as a7, LocationType as a8, WebhookIdentityType as a9, type Form as aA, type FormSettings as aB, type Payment as aC, type PaymentRateOneOf as aD, type FixedPayment as aE, type Money as aF, type CustomPayment as aG, type VariedPayment as aH, type PaymentOptions as aI, type OnlineBooking as aJ, type Conferencing as aK, type LocationOptionsOneOf as aL, type CommonAddress as aM, type CommonAddressStreetOneOf as aN, type StreetAddress as aO, type AddressLocation as aP, type BusinessLocationOptions as aQ, type CustomLocationOptions as aR, type BookingPolicy as aS, type PolicyDescription as aT, type LimitEarlyBookingPolicy as aU, type LimitLateBookingPolicy as aV, type BookAfterStartPolicy as aW, type CancellationPolicy as aX, type ReschedulePolicy as aY, type WaitlistPolicy as aZ, type ParticipantsPolicy as a_, V2RequestedFields as aa, SortOrder as ab, SortType as ac, SortDirection as ad, MissingValues as ae, ScalarType as af, NestedAggregationType as ag, Interval as ah, AggregationType as ai, Mode as aj, RequestedFields as ak, Action as al, InvalidSlugError as am, CloneErrors as an, Status as ao, CategoryNotificationEvent as ap, BenefitType as aq, Event as ar, CrudType as as, PlacementType as at, DayOfWeek as au, ResolutionMethod as av, type Media as aw, type MediaItem as ax, type MediaItemItemOneOf as ay, type V2Category as az, type DeleteAddOnGroupApplicationErrors as b, type GetServiceAvailabilityConstraintsResponse as b$, type CancellationFeePolicy as b0, type CancellationWindow as b1, type CancellationWindowFeeOneOf as b2, type SaveCreditCardPolicy as b3, type Schedule as b4, type AvailabilityConstraints as b5, type Duration as b6, type StaffMember as b7, type StaffMediaItem as b8, type StaffMediaItemItemOneOf as b9, type EntityDeletedEvent as bA, type ActionEvent as bB, type MessageEnvelope as bC, type IdentificationData as bD, type IdentificationDataIdOneOf as bE, type CreateAddOnGroupRequest as bF, type DeleteAddOnGroupRequest as bG, type DeleteAddOnGroupResponse as bH, type UpdateAddOnGroupRequest as bI, type ListAddOnGroupsByServiceIdRequest as bJ, type AddOn as bK, type AddOnAddOnInfoOneOf as bL, type AddOnGroupDetail as bM, type SetAddOnsForGroupRequest as bN, type CreateServiceRequest as bO, type CreateServiceResponse as bP, type ValidateServiceRequest as bQ, type ValidateServiceResponse as bR, type FieldViolation as bS, type BulkCreateServicesRequest as bT, type BulkServiceResult as bU, type ItemMetadata as bV, type ApplicationError as bW, type BulkActionMetadata as bX, type GetServiceRequest as bY, type GetServiceResponse as bZ, type GetServiceAvailabilityConstraintsRequest as b_, type StaffMemberDetails as ba, type ResourceGroup as bb, type ResourceIds as bc, type ServiceResource as bd, type ServiceResourceSelectionOneOf as be, type ResourceType as bf, type Slug as bg, type URLs as bh, type ExtendedFields as bi, type SeoSchema as bj, type Keyword as bk, type Tag as bl, type Settings as bm, type AddOnDetails as bn, type ReindexMessage as bo, type ReindexMessageActionOneOf as bp, type Upsert as bq, type Delete as br, type Schema as bs, type SetCustomSlugEvent as bt, type ServicesUrlsChanged as bu, type DomainEvent as bv, type DomainEventBodyOneOf as bw, type EntityCreatedEvent as bx, type RestoreInfo as by, type EntityUpdatedEvent as bz, type UpdateAddOnGroupResponse as c, type BookingPolicyWithServices as c$, type ServiceAvailabilityConstraints as c0, type SplitInterval as c1, type UpdateServiceRequest as c2, type UpdateServiceResponse as c3, type BulkUpdateServicesRequest as c4, type MaskedService as c5, type BulkUpdateServicesByFilterRequest as c6, type DeleteServiceRequest as c7, type ParticipantNotification as c8, type DeleteServiceResponse as c9, type GroupByAggregation as cA, type GroupByAggregationKindOneOf as cB, type SearchDetails as cC, type CursorPagingMetadata as cD, type AggregationData as cE, type ValueAggregationResult as cF, type RangeAggregationResult as cG, type NestedAggregationResults as cH, type NestedAggregationResultsResultOneOf as cI, type ValueResults as cJ, type RangeResults as cK, type AggregationResultsScalarResult as cL, type NestedValueAggregationResult as cM, type ValueResult as cN, type RangeResult as cO, type ScalarResult as cP, type NestedResultValue as cQ, type NestedResultValueResultOneOf as cR, type Results as cS, type DateHistogramResult as cT, type GroupByValueResults as cU, type DateHistogramResults as cV, type NestedResults as cW, type AggregationResults as cX, type AggregationResultsResultOneOf as cY, type QueryPoliciesRequest as cZ, type CursorQueryPagingMethodOneOf as c_, type BulkDeleteServicesRequest as ca, type BulkDeleteServicesByFilterRequest as cb, type QueryServicesRequest as cc, type QueryV2 as cd, type QueryV2PagingMethodOneOf as ce, type Sorting as cf, type Paging as cg, type CursorPaging as ch, type QueryServicesResponse as ci, type PagingMetadataV2 as cj, type Cursors as ck, type SearchServicesRequest as cl, type CursorSearch as cm, type CursorSearchPagingMethodOneOf as cn, type Aggregation as co, type AggregationKindOneOf as cp, type RangeBucket as cq, type IncludeMissingValuesOptions as cr, type ValueAggregation as cs, type ValueAggregationOptionsOneOf as ct, type RangeAggregation as cu, type ScalarAggregation as cv, type DateHistogramAggregation as cw, type NestedAggregationItem as cx, type NestedAggregationItemKindOneOf as cy, type NestedAggregation as cz, type UpdateAddOnGroupApplicationErrors as d, type RateTypeWithLiterals as d$, type QueryBookingFormsRequest as d0, type BookingForm as d1, type FormDetails as d2, type ConnectedService as d3, type CountServicesRequest as d4, type QueryLocationsRequest as d5, type QueryLocationsFilter as d6, type BusinessLocations as d7, type CustomLocations as d8, type CustomerLocations as d9, type HtmlSitePublished as dA, type Page as dB, type SitePropertiesNotification as dC, type SitePropertiesEvent as dD, type Properties as dE, type Categories as dF, type Locale as dG, type Address as dH, type AddressHint as dI, type GeoCoordinates as dJ, type BusinessSchedule as dK, type TimePeriod as dL, type SpecialHourPeriod as dM, type Multilingual as dN, type SupportedLanguage as dO, type ConsentPolicy as dP, type Translation as dQ, type ChangeContext as dR, type ChangeContextPayloadOneOf as dS, type PropertiesChange as dT, type SiteCreated as dU, type SiteCloned as dV, type BaseEventMetadata as dW, type EventMetadata as dX, type ServicesQueryResult as dY, type ServiceSearchSpec as dZ, type ServiceTypeWithLiterals as d_, type QueryCategoriesRequest as da, type QueryCategoriesFilter as db, type QueryServicesMultiLanguageRequest as dc, type QueryServicesMultiLanguageResponse as dd, type SetServiceLocationsRequest as de, type RemovedLocationSessionsAction as df, type RemovedLocationSessionsActionActionOptionsOneOf as dg, type MoveToNewLocationsOptions as dh, type EnablePricingPlansForServiceRequest as di, type InvalidPricingPlan as dj, type DisablePricingPlansForServiceRequest as dk, type SetCustomSlugRequest as dl, type ValidateSlugRequest as dm, type CloneServiceRequest as dn, type CategoryNotification as dp, type Category as dq, type Empty as dr, type BenefitNotification as ds, type Benefit as dt, type EntryPass as du, type Discount as dv, type DiscountDiscountOneOf as dw, type Behavior as dx, type BehaviorBehaviorOneOf as dy, type UserDomainInfoChangedEvent as dz, type ListAddOnGroupsByServiceIdResponse as e, type LocationTypeWithLiterals as e0, type WebhookIdentityTypeWithLiterals as e1, type V2RequestedFieldsWithLiterals as e2, type SortOrderWithLiterals as e3, type SortTypeWithLiterals as e4, type SortDirectionWithLiterals as e5, type MissingValuesWithLiterals as e6, type ScalarTypeWithLiterals as e7, type NestedAggregationTypeWithLiterals as e8, type IntervalWithLiterals as e9, bulkUpdateServices as eA, bulkUpdateServicesByFilter as eB, deleteService as eC, bulkDeleteServices as eD, bulkDeleteServicesByFilter as eE, queryServices as eF, type CommonSearchWithEntityContext as eG, queryPolicies as eH, queryBookingForms as eI, countServices as eJ, queryLocations as eK, queryCategories as eL, setServiceLocations as eM, enablePricingPlansForService as eN, disablePricingPlansForService as eO, setCustomSlug as eP, validateSlug as eQ, cloneService as eR, type AggregationTypeWithLiterals as ea, type ModeWithLiterals as eb, type RequestedFieldsWithLiterals as ec, type ActionWithLiterals as ed, type InvalidSlugErrorWithLiterals as ee, type CloneErrorsWithLiterals as ef, type StatusWithLiterals as eg, type CategoryNotificationEventWithLiterals as eh, type BenefitTypeWithLiterals as ei, type EventWithLiterals as ej, type CrudTypeWithLiterals as ek, type PlacementTypeWithLiterals as el, type DayOfWeekWithLiterals as em, type ResolutionMethodWithLiterals as en, onServiceCreated as eo, onServiceDeleted as ep, onServiceUpdated as eq, createAddOnGroup as er, deleteAddOnGroup as es, updateAddOnGroup as et, listAddOnGroupsByServiceId as eu, setAddOnsForGroup as ev, createService as ew, bulkCreateServices as ex, getService as ey, updateService as ez, type SetAddOnsForGroupResponse as f, type SetAddOnsForGroupApplicationErrors as g, type Service as h, type CreateServiceValidationErrors as i, type BulkCreateServicesResponse as j, type UpdateService as k, type UpdateServiceValidationErrors as l, type BulkUpdateServicesOptions as m, type BulkUpdateServicesResponse as n, type BulkUpdateServicesByFilterOptions as o, type BulkUpdateServicesByFilterResponse as p, type DeleteServiceOptions as q, type BulkDeleteServicesOptions as r, type BulkDeleteServicesResponse as s, type BulkDeleteServicesByFilterOptions as t, type BulkDeleteServicesByFilterResponse as u, type ServicesQueryBuilder as v, type ServiceSearch as w, type SearchServicesResponse as x, type CursorQuery as y, type QueryBookingFormsOptions as z };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { A as AddOnGroup, C as CreateAddOnGroupOptions, a as CreateAddOnGroupResponse, D as DeleteAddOnGroupOptions, b as DeleteAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, c as UpdateAddOnGroupResponse, d as UpdateAddOnGroupApplicationErrors, L as ListAddOnGroupsByServiceIdOptions, e as ListAddOnGroupsByServiceIdResponse, S as SetAddOnsForGroupOptions, f as SetAddOnsForGroupResponse, g as SetAddOnsForGroupApplicationErrors,
|
|
3
|
-
export {
|
|
2
|
+
import { A as AddOnGroup, C as CreateAddOnGroupOptions, a as CreateAddOnGroupResponse, D as DeleteAddOnGroupOptions, b as DeleteAddOnGroupApplicationErrors, U as UpdateAddOnGroupOptions, c as UpdateAddOnGroupResponse, d as UpdateAddOnGroupApplicationErrors, L as ListAddOnGroupsByServiceIdOptions, e as ListAddOnGroupsByServiceIdResponse, S as SetAddOnsForGroupOptions, f as SetAddOnsForGroupResponse, g as SetAddOnsForGroupApplicationErrors, h as Service, i as CreateServiceValidationErrors, B as BulkCreateServicesOptions, j as BulkCreateServicesResponse, k as UpdateService, l as UpdateServiceValidationErrors, m as BulkUpdateServicesOptions, n as BulkUpdateServicesResponse, o as BulkUpdateServicesByFilterOptions, p as BulkUpdateServicesByFilterResponse, q as DeleteServiceOptions, r as BulkDeleteServicesOptions, s as BulkDeleteServicesResponse, t as BulkDeleteServicesByFilterOptions, u as BulkDeleteServicesByFilterResponse, v as ServicesQueryBuilder, w as ServiceSearch, x as SearchServicesResponse, y as CursorQuery, Q as QueryPoliciesResponse, z as QueryBookingFormsOptions, E as QueryBookingFormsResponse, F as QueryBookingFormsApplicationErrors, G as CountServicesOptions, H as CountServicesResponse, I as QueryLocationsOptions, J as QueryLocationsResponse, K as QueryCategoriesOptions, M as QueryCategoriesResponse, N as Location, O as SetServiceLocationsOptions, P as SetServiceLocationsResponse, R as EnablePricingPlansForServiceResponse, T as EnablePricingPlansForServiceApplicationErrors, V as DisablePricingPlansForServiceOptions, W as DisablePricingPlansForServiceResponse, X as DisablePricingPlansForServiceApplicationErrors, Y as SetCustomSlugOptions, Z as SetCustomSlugResponse, _ as SetCustomSlugApplicationErrors, $ as SetCustomSlugValidationErrors, a0 as ValidateSlugOptions, a1 as ValidateSlugResponse, a2 as CloneServiceResponse, a3 as ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, a5 as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-B0U0yEd2.js';
|
|
3
|
+
export { al as Action, bB as ActionEvent, bK as AddOn, bL as AddOnAddOnInfoOneOf, bn as AddOnDetails, bM as AddOnGroupDetail, dH as Address, dI as AddressHint, aP as AddressLocation, co as Aggregation, cE as AggregationData, cp as AggregationKindOneOf, cX as AggregationResults, cY as AggregationResultsResultOneOf, cL as AggregationResultsScalarResult, ai as AggregationType, bW as ApplicationError, b5 as AvailabilityConstraints, dW as BaseEventMetadata, dx as Behavior, dy as BehaviorBehaviorOneOf, dt as Benefit, ds as BenefitNotification, aq as BenefitType, aW as BookAfterStartPolicy, d1 as BookingForm, aS as BookingPolicy, c$ as BookingPolicyWithServices, bX as BulkActionMetadata, bT as BulkCreateServicesRequest, cb as BulkDeleteServicesByFilterRequest, ca as BulkDeleteServicesRequest, bU as BulkServiceResult, c6 as BulkUpdateServicesByFilterRequest, c4 as BulkUpdateServicesRequest, aQ as BusinessLocationOptions, d7 as BusinessLocations, dK as BusinessSchedule, b0 as CancellationFeePolicy, aX as CancellationPolicy, b1 as CancellationWindow, b2 as CancellationWindowFeeOneOf, dF as Categories, dq as Category, dp as CategoryNotification, ap as CategoryNotificationEvent, dR as ChangeContext, dS as ChangeContextPayloadOneOf, an as CloneErrors, dn as CloneServiceRequest, aM as CommonAddress, aN as CommonAddressStreetOneOf, aK as Conferencing, d3 as ConnectedService, dP as ConsentPolicy, d4 as CountServicesRequest, bF as CreateAddOnGroupRequest, bO as CreateServiceRequest, bP as CreateServiceResponse, as as CrudType, ch as CursorPaging, cD as CursorPagingMetadata, c_ as CursorQueryPagingMethodOneOf, cm as CursorSearch, cn as CursorSearchPagingMethodOneOf, ck as Cursors, aR as CustomLocationOptions, d8 as CustomLocations, aG as CustomPayment, d9 as CustomerLocations, cw as DateHistogramAggregation, cT as DateHistogramResult, cV as DateHistogramResults, au as DayOfWeek, br as Delete, bG as DeleteAddOnGroupRequest, bH as DeleteAddOnGroupResponse, c7 as DeleteServiceRequest, c9 as DeleteServiceResponse, dk as DisablePricingPlansForServiceRequest, dv as Discount, dw as DiscountDiscountOneOf, bv as DomainEvent, bw as DomainEventBodyOneOf, b6 as Duration, dr as Empty, di as EnablePricingPlansForServiceRequest, bx as EntityCreatedEvent, bA as EntityDeletedEvent, bz as EntityUpdatedEvent, du as EntryPass, ar as Event, dX as EventMetadata, bi as ExtendedFields, bS as FieldViolation, aE as FixedPayment, aA as Form, d2 as FormDetails, aB 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, bD as IdentificationData, bE as IdentificationDataIdOneOf, cr as IncludeMissingValuesOptions, ah as Interval, dj as InvalidPricingPlan, am as InvalidSlugError, bV as ItemMetadata, bk as Keyword, aU as LimitEarlyBookingPolicy, aV as LimitLateBookingPolicy, bJ as ListAddOnGroupsByServiceIdRequest, dG as Locale, aL as LocationOptionsOneOf, a8 as LocationType, c5 as MaskedService, aw as Media, ax as MediaItem, ay as MediaItemItemOneOf, bC as MessageEnvelope, ae as MissingValues, aj as Mode, aF as Money, dh as MoveToNewLocationsOptions, dN as Multilingual, cz as NestedAggregation, cx as NestedAggregationItem, cy as NestedAggregationItemKindOneOf, cH as NestedAggregationResults, cI as NestedAggregationResultsResultOneOf, ag as NestedAggregationType, cQ as NestedResultValue, cR as NestedResultValueResultOneOf, cW as NestedResults, cM as NestedValueAggregationResult, aJ as OnlineBooking, dB as Page, cg as Paging, cj as PagingMetadataV2, c8 as ParticipantNotification, a_ as ParticipantsPolicy, aC as Payment, aI as PaymentOptions, aD as PaymentRateOneOf, at as PlacementType, aT as PolicyDescription, dE as Properties, dT as PropertiesChange, d0 as QueryBookingFormsRequest, db as QueryCategoriesFilter, da as QueryCategoriesRequest, d6 as QueryLocationsFilter, d5 as QueryLocationsRequest, cZ as QueryPoliciesRequest, 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, a7 as RateType, bo as ReindexMessage, bp as ReindexMessageActionOneOf, df as RemovedLocationSessionsAction, dg as RemovedLocationSessionsActionActionOptionsOneOf, ak as RequestedFields, aY as ReschedulePolicy, av as ResolutionMethod, bb as ResourceGroup, bc as ResourceIds, bf as ResourceType, a$ as ResourcesPolicy, by as RestoreInfo, cS as Results, b3 as SaveCreditCardPolicy, cv as ScalarAggregation, cP as ScalarResult, af as ScalarType, b4 as Schedule, bs as Schema, cC as SearchDetails, cl as SearchServicesRequest, bj as SeoSchema, c0 as ServiceAvailabilityConstraints, bd as ServiceResource, be as ServiceResourceSelectionOneOf, dZ as ServiceSearchSpec, a6 as ServiceType, dY as ServicesQueryResult, bu as ServicesUrlsChanged, bN as SetAddOnsForGroupRequest, bt as SetCustomSlugEvent, dl as SetCustomSlugRequest, de as SetServiceLocationsRequest, bm as Settings, dV as SiteCloned, dU as SiteCreated, dD as SitePropertiesEvent, dC as SitePropertiesNotification, bg as Slug, ad as SortDirection, ab as SortOrder, ac as SortType, cf as Sorting, dM as SpecialHourPeriod, c1 as SplitInterval, b8 as StaffMediaItem, b9 as StaffMediaItemItemOneOf, b7 as StaffMember, ba as StaffMemberDetails, ao as Status, aO as StreetAddress, dO as SupportedLanguage, bl as Tag, dL as TimePeriod, dQ as Translation, bh as URLs, bI as UpdateAddOnGroupRequest, c2 as UpdateServiceRequest, c3 as UpdateServiceResponse, bq as Upsert, dz as UserDomainInfoChangedEvent, az as V2Category, aa as V2RequestedFields, bQ as ValidateServiceRequest, bR as ValidateServiceResponse, dm as ValidateSlugRequest, cs as ValueAggregation, ct as ValueAggregationOptionsOneOf, cF as ValueAggregationResult, cN as ValueResult, cJ as ValueResults, aH as VariedPayment, aZ as WaitlistPolicy, a9 as WebhookIdentityType } from './bookings-services-v2-service-services.universal-B0U0yEd2.js';
|
|
4
4
|
|
|
5
5
|
type ServiceNonNullablePaths = `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.business.address.streetAddress.number` | `locations.${number}.business.address.streetAddress.name` | `locations.${number}.business.address.streetAddress.apt` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `mainSlug.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`;
|
|
6
6
|
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
@@ -56,14 +56,6 @@ interface SetAddOnsForGroupSignature {
|
|
|
56
56
|
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
57
57
|
}>;
|
|
58
58
|
}
|
|
59
|
-
declare function validateAddOnsSelection$1(httpClient: HttpClient): ValidateAddOnsSelectionSignature;
|
|
60
|
-
interface ValidateAddOnsSelectionSignature {
|
|
61
|
-
/**
|
|
62
|
-
* Validates the selection of AddOns for a given group based on the group's settings.
|
|
63
|
-
* @param - The service ID to validate AddOns against.
|
|
64
|
-
*/
|
|
65
|
-
(serviceId: string, options: NonNullablePaths<ValidateAddOnsSelectionOptions, `addOnIds` | `groupId`>): Promise<ValidateAddOnsSelectionResponse>;
|
|
66
|
-
}
|
|
67
59
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
68
60
|
interface CreateServiceSignature {
|
|
69
61
|
/**
|
|
@@ -703,7 +695,6 @@ declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddO
|
|
|
703
695
|
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
704
696
|
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
705
697
|
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
706
|
-
declare const validateAddOnsSelection: MaybeContext<BuildRESTFunction<typeof validateAddOnsSelection$1> & typeof validateAddOnsSelection$1>;
|
|
707
698
|
declare const createService: MaybeContext<BuildRESTFunction<typeof createService$1> & typeof createService$1>;
|
|
708
699
|
declare const bulkCreateServices: MaybeContext<BuildRESTFunction<typeof bulkCreateServices$1> & typeof bulkCreateServices$1>;
|
|
709
700
|
declare const getService: MaybeContext<BuildRESTFunction<typeof getService$1> & typeof getService$1>;
|
|
@@ -739,4 +730,4 @@ declare const onServiceDeleted: BuildEventDefinition<typeof onServiceDeleted$1>;
|
|
|
739
730
|
*/
|
|
740
731
|
declare const onServiceUpdated: BuildEventDefinition<typeof onServiceUpdated$1>;
|
|
741
732
|
|
|
742
|
-
export { AddOnGroup, BulkCreateServicesOptions, BulkCreateServicesResponse, BulkDeleteServicesByFilterOptions, BulkDeleteServicesByFilterResponse, BulkDeleteServicesOptions, BulkDeleteServicesResponse, BulkUpdateServicesByFilterOptions, BulkUpdateServicesByFilterResponse, BulkUpdateServicesOptions, BulkUpdateServicesResponse, CloneServiceResponse, CountServicesOptions, CountServicesResponse, CreateAddOnGroupOptions, CreateAddOnGroupResponse, CursorQuery, DeleteAddOnGroupOptions, DeleteServiceOptions, DisablePricingPlansForServiceOptions, DisablePricingPlansForServiceResponse, EnablePricingPlansForServiceResponse, ListAddOnGroupsByServiceIdOptions, ListAddOnGroupsByServiceIdResponse, Location, QueryBookingFormsOptions, QueryBookingFormsResponse, QueryCategoriesOptions, QueryCategoriesResponse, QueryLocationsOptions, QueryLocationsResponse, QueryPoliciesResponse, SearchServicesResponse, Service, ServiceCreatedEnvelope, ServiceDeletedEnvelope, ServiceUpdatedEnvelope, ServicesQueryBuilder, SetAddOnsForGroupOptions, SetAddOnsForGroupResponse, SetCustomSlugOptions, SetCustomSlugResponse, SetServiceLocationsOptions, SetServiceLocationsResponse, UpdateAddOnGroupOptions, UpdateAddOnGroupResponse, UpdateService,
|
|
733
|
+
export { AddOnGroup, BulkCreateServicesOptions, BulkCreateServicesResponse, BulkDeleteServicesByFilterOptions, BulkDeleteServicesByFilterResponse, BulkDeleteServicesOptions, BulkDeleteServicesResponse, BulkUpdateServicesByFilterOptions, BulkUpdateServicesByFilterResponse, BulkUpdateServicesOptions, BulkUpdateServicesResponse, CloneServiceResponse, CountServicesOptions, CountServicesResponse, CreateAddOnGroupOptions, CreateAddOnGroupResponse, CursorQuery, DeleteAddOnGroupOptions, DeleteServiceOptions, DisablePricingPlansForServiceOptions, DisablePricingPlansForServiceResponse, EnablePricingPlansForServiceResponse, ListAddOnGroupsByServiceIdOptions, ListAddOnGroupsByServiceIdResponse, Location, QueryBookingFormsOptions, QueryBookingFormsResponse, QueryCategoriesOptions, QueryCategoriesResponse, QueryLocationsOptions, QueryLocationsResponse, QueryPoliciesResponse, SearchServicesResponse, Service, ServiceCreatedEnvelope, ServiceDeletedEnvelope, ServiceUpdatedEnvelope, ServicesQueryBuilder, SetAddOnsForGroupOptions, SetAddOnsForGroupResponse, SetCustomSlugOptions, SetCustomSlugResponse, SetServiceLocationsOptions, SetServiceLocationsResponse, UpdateAddOnGroupOptions, UpdateAddOnGroupResponse, UpdateService, ValidateSlugOptions, ValidateSlugResponse, bulkCreateServices, bulkDeleteServices, bulkDeleteServicesByFilter, bulkUpdateServices, bulkUpdateServicesByFilter, cloneService, countServices, createAddOnGroup, createService, deleteAddOnGroup, deleteService, disablePricingPlansForService, enablePricingPlansForService, getService, listAddOnGroupsByServiceId, onServiceCreated, onServiceDeleted, onServiceUpdated, queryBookingForms, queryCategories, queryLocations, queryPolicies, queryServices, searchServices, setAddOnsForGroup, setCustomSlug, setServiceLocations, updateAddOnGroup, updateService, validateSlug };
|
package/build/cjs/index.js
CHANGED
|
@@ -75,7 +75,6 @@ __export(index_exports, {
|
|
|
75
75
|
setServiceLocations: () => setServiceLocations4,
|
|
76
76
|
updateAddOnGroup: () => updateAddOnGroup4,
|
|
77
77
|
updateService: () => updateService4,
|
|
78
|
-
validateAddOnsSelection: () => validateAddOnsSelection4,
|
|
79
78
|
validateSlug: () => validateSlug4
|
|
80
79
|
});
|
|
81
80
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -127,6 +126,10 @@ function resolveWixBookingsServicesV2ServicesServiceUrl(opts) {
|
|
|
127
126
|
{
|
|
128
127
|
srcPath: "/bookings/v2/bulk/services",
|
|
129
128
|
destPath: "/v2/bulk/services"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
srcPath: "/bookings/services/v2/bulk/services",
|
|
132
|
+
destPath: "/v2/bulk/services"
|
|
130
133
|
}
|
|
131
134
|
],
|
|
132
135
|
"manage._base_domain_": [
|
|
@@ -238,6 +241,10 @@ function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
|
238
241
|
{
|
|
239
242
|
srcPath: "/bookings/v2/bulk/services",
|
|
240
243
|
destPath: "/v2/bulk/services"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
srcPath: "/bookings/services/v2/bulk/services",
|
|
247
|
+
destPath: "/v2/bulk/services"
|
|
241
248
|
}
|
|
242
249
|
],
|
|
243
250
|
"manage._base_domain_": [
|
|
@@ -422,24 +429,6 @@ function setAddOnsForGroup(payload) {
|
|
|
422
429
|
}
|
|
423
430
|
return __setAddOnsForGroup;
|
|
424
431
|
}
|
|
425
|
-
function validateAddOnsSelection(payload) {
|
|
426
|
-
function __validateAddOnsSelection({ host }) {
|
|
427
|
-
const metadata = {
|
|
428
|
-
entityFqdn: "wix.bookings.services.v2.service",
|
|
429
|
-
method: "POST",
|
|
430
|
-
methodFqn: "wix.bookings.services.v2.AddOnGroupsService.ValidateAddOnsSelection",
|
|
431
|
-
packageName: PACKAGE_NAME,
|
|
432
|
-
url: resolveWixBookingsServicesV2AddOnGroupsServiceUrl({
|
|
433
|
-
protoPath: "/v2/services/add-on-groups/validate-add-ons-selection",
|
|
434
|
-
data: payload,
|
|
435
|
-
host
|
|
436
|
-
}),
|
|
437
|
-
data: payload
|
|
438
|
-
};
|
|
439
|
-
return metadata;
|
|
440
|
-
}
|
|
441
|
-
return __validateAddOnsSelection;
|
|
442
|
-
}
|
|
443
432
|
function createService(payload) {
|
|
444
433
|
function __createService({ host }) {
|
|
445
434
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -2050,37 +2039,6 @@ async function setAddOnsForGroup2(serviceId, options) {
|
|
|
2050
2039
|
throw transformedError;
|
|
2051
2040
|
}
|
|
2052
2041
|
}
|
|
2053
|
-
async function validateAddOnsSelection2(serviceId, options) {
|
|
2054
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
2055
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2056
|
-
serviceId,
|
|
2057
|
-
groupId: options?.groupId,
|
|
2058
|
-
addOnIds: options?.addOnIds
|
|
2059
|
-
});
|
|
2060
|
-
const reqOpts = validateAddOnsSelection(payload);
|
|
2061
|
-
sideEffects?.onSiteCall?.();
|
|
2062
|
-
try {
|
|
2063
|
-
const result = await httpClient.request(reqOpts);
|
|
2064
|
-
sideEffects?.onSuccess?.(result);
|
|
2065
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2066
|
-
} catch (err) {
|
|
2067
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
2068
|
-
err,
|
|
2069
|
-
{
|
|
2070
|
-
spreadPathsToArguments: {},
|
|
2071
|
-
explicitPathsToArguments: {
|
|
2072
|
-
serviceId: "$[0]",
|
|
2073
|
-
groupId: "$[1].groupId",
|
|
2074
|
-
addOnIds: "$[1].addOnIds"
|
|
2075
|
-
},
|
|
2076
|
-
singleArgumentUnchanged: false
|
|
2077
|
-
},
|
|
2078
|
-
["serviceId", "options"]
|
|
2079
|
-
);
|
|
2080
|
-
sideEffects?.onError?.(err);
|
|
2081
|
-
throw transformedError;
|
|
2082
|
-
}
|
|
2083
|
-
}
|
|
2084
2042
|
async function createService2(service) {
|
|
2085
2043
|
const { httpClient, sideEffects } = arguments[1];
|
|
2086
2044
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
@@ -3355,14 +3313,6 @@ function setAddOnsForGroup3(httpClient) {
|
|
|
3355
3313
|
{ httpClient }
|
|
3356
3314
|
);
|
|
3357
3315
|
}
|
|
3358
|
-
function validateAddOnsSelection3(httpClient) {
|
|
3359
|
-
return (serviceId, options) => validateAddOnsSelection2(
|
|
3360
|
-
serviceId,
|
|
3361
|
-
options,
|
|
3362
|
-
// @ts-ignore
|
|
3363
|
-
{ httpClient }
|
|
3364
|
-
);
|
|
3365
|
-
}
|
|
3366
3316
|
function createService3(httpClient) {
|
|
3367
3317
|
return (service) => createService2(
|
|
3368
3318
|
service,
|
|
@@ -3682,7 +3632,6 @@ var deleteAddOnGroup4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModul
|
|
|
3682
3632
|
var updateAddOnGroup4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAddOnGroup3);
|
|
3683
3633
|
var listAddOnGroupsByServiceId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listAddOnGroupsByServiceId3);
|
|
3684
3634
|
var setAddOnsForGroup4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setAddOnsForGroup3);
|
|
3685
|
-
var validateAddOnsSelection4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(validateAddOnsSelection3);
|
|
3686
3635
|
var createService4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createService3);
|
|
3687
3636
|
var bulkCreateServices4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateServices3);
|
|
3688
3637
|
var getService4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getService3);
|
|
@@ -3765,7 +3714,6 @@ var onServiceUpdated2 = (0, import_event_definition_modules.createEventModule)(o
|
|
|
3765
3714
|
setServiceLocations,
|
|
3766
3715
|
updateAddOnGroup,
|
|
3767
3716
|
updateService,
|
|
3768
|
-
validateAddOnsSelection,
|
|
3769
3717
|
validateSlug
|
|
3770
3718
|
});
|
|
3771
3719
|
//# sourceMappingURL=index.js.map
|