@wix/auto_sdk_bookings_services 1.0.164 → 1.0.167
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-DXSJhFF0.d.ts → bookings-services-v2-service-services.universal-Cz3JDfGk.d.ts} +361 -313
- package/build/cjs/index.d.ts +85 -84
- package/build/cjs/index.js +328 -320
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +289 -282
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +203 -172
- package/build/cjs/meta.js +203 -203
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-DXSJhFF0.d.mts → bookings-services-v2-service-services.universal-Cz3JDfGk.d.mts} +361 -313
- package/build/es/index.d.mts +85 -84
- package/build/es/index.mjs +328 -320
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +289 -282
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +203 -172
- 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-DXSJhFF0.d.ts → bookings-services-v2-service-services.universal-Cz3JDfGk.d.ts} +361 -313
- package/build/internal/cjs/index.d.ts +85 -84
- package/build/internal/cjs/index.js +328 -320
- 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 +289 -282
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +203 -172
- 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-DXSJhFF0.d.mts → bookings-services-v2-service-services.universal-Cz3JDfGk.d.mts} +361 -313
- package/build/internal/es/index.d.mts +85 -84
- package/build/internal/es/index.mjs +328 -320
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +289 -282
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +203 -172
- package/build/internal/es/meta.mjs +203 -203
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,81 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
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 ServiceSearch, w as SearchServicesResponse, x as CursorQuery, Q as QueryPoliciesResponse, y as QueryBookingFormsOptions, z as QueryBookingFormsResponse, E as QueryBookingFormsApplicationErrors, F as CountServicesOptions, G as CountServicesResponse, H as QueryLocationsOptions, I as QueryLocationsResponse, J as QueryCategoriesOptions, K as QueryCategoriesResponse, M as SetServiceLocationsOptions, N as SetServiceLocationsResponse, O as EnablePricingPlansForServiceOptions, P as EnablePricingPlansForServiceResponse, R as EnablePricingPlansForServiceApplicationErrors, T as DisablePricingPlansForServiceOptions, V as DisablePricingPlansForServiceResponse, W as DisablePricingPlansForServiceApplicationErrors, X as SetCustomSlugOptions, Y as SetCustomSlugResponse, Z as SetCustomSlugApplicationErrors, _ as SetCustomSlugValidationErrors, $ as ValidateSlugOptions, a0 as ValidateSlugResponse, a1 as CloneServiceResponse, a2 as ServiceCreatedEnvelope, a3 as ServiceDeletedEnvelope, a4 as ServiceUpdatedEnvelope, a5 as QueryV2, a6 as QueryServicesOptions, a7 as typedQueryServices, a8 as ServicesQueryBuilder } from './bookings-services-v2-service-services.universal-Cz3JDfGk.js';
|
|
3
|
+
export { au as Action, bS as ActionEvent, eA as ActionWithLiterals, b$ as AddOn, c0 as AddOnAddOnInfoOneOf, bC as AddOnDetails, c1 as AddOnGroupDetail, ab as AddOnPaymentOptions, eh as AddOnPaymentOptionsWithLiterals, dY as Address, dZ as AddressHint, aZ as AddressLocation, cE as Aggregation, cU as AggregationData, cF as AggregationKindOneOf, db as AggregationResults, dc as AggregationResultsResultOneOf, c$ as AggregationResultsScalarResult, ar as AggregationType, ex as AggregationTypeWithLiterals, cb as ApplicationError, bk as AvailabilityConstraints, eb as BaseEventMetadata, dO as Behavior, dP as BehaviorBehaviorOneOf, dK as Benefit, dJ as BenefitNotification, az as BenefitType, eF as BenefitTypeWithLiterals, b4 as BookAfterStartPolicy, dh as BookingForm, b0 as BookingPolicy, df as BookingPolicyWithServices, cc as BulkActionMetadata, c8 as BulkCreateServicesRequest, cs as BulkDeleteServicesByFilterRequest, cr as BulkDeleteServicesRequest, c9 as BulkServiceResult, cn as BulkUpdateServicesByFilterRequest, cl as BulkUpdateServicesRequest, a_ as BusinessLocationOptions, dn as BusinessLocations, d$ as BusinessSchedule, ba as CancellationFeePolicy, b5 as CancellationPolicy, bb as CancellationWindow, bc as CancellationWindowFeeOneOf, dW as Categories, dH as Category, dG as CategoryNotification, ay as CategoryNotificationEvent, eE as CategoryNotificationEventWithLiterals, e6 as ChangeContext, e7 as ChangeContextPayloadOneOf, aw as CloneErrors, eC as CloneErrorsWithLiterals, dF as CloneServiceRequest, aW as CommonAddress, aX as CommonAddressStreetOneOf, eL as CommonSearchWithEntityContext, ag as CompletionRequirement, em as CompletionRequirementWithLiterals, aT as Conferencing, dj as ConnectedService, e4 as ConsentPolicy, dk as CountServicesRequest, bW as CreateAddOnGroupRequest, c3 as CreateServiceRequest, c4 as CreateServiceResponse, aB as CrudType, eH as CrudTypeWithLiterals, cx as CursorPaging, cT as CursorPagingMetadata, de as CursorQueryPagingMethodOneOf, cC as CursorSearch, cD as CursorSearchPagingMethodOneOf, cA as Cursors, a$ as CustomLocationOptions, dp as CustomLocations, bh as CustomOptions, aP as CustomPayment, dq as CustomerLocations, cM as DateHistogramAggregation, d7 as DateHistogramResult, d9 as DateHistogramResults, aD as DayOfWeek, eJ as DayOfWeekWithLiterals, bI as Delete, bX as DeleteAddOnGroupRequest, bY as DeleteAddOnGroupResponse, co as DeleteServiceRequest, cq as DeleteServiceResponse, dC as DisablePricingPlansForServiceRequest, dM as Discount, dN as DiscountDiscountOneOf, bM as DomainEvent, bN as DomainEventBodyOneOf, bl as Duration, dI as Empty, dz as EnablePricingPlansForServiceRequest, bO as EntityCreatedEvent, bR as EntityDeletedEvent, bQ as EntityUpdatedEvent, dL as EntryPass, aA as Event, ec as EventMetadata, eG as EventWithLiterals, bx as ExtendedFields, c7 as FieldViolation, aN as FixedPayment, aJ as Form, di as FormDetails, aK as FormSettings, d_ as GeoCoordinates, cf as GetServiceAvailabilityConstraintsRequest, cg as GetServiceAvailabilityConstraintsResponse, cd as GetServiceRequest, ce as GetServiceResponse, cQ as GroupByAggregation, cR as GroupByAggregationKindOneOf, d8 as GroupByValueResults, dR as HtmlSitePublished, bU as IdentificationData, bV as IdentificationDataIdOneOf, cH as IncludeMissingValuesOptions, bi as IntakeFormPolicy, aq as Interval, ew as IntervalWithLiterals, dB as InvalidPricingPlan, av as InvalidSlugError, eB as InvalidSlugErrorWithLiterals, ca as ItemMetadata, bz as Keyword, b2 as LimitEarlyBookingPolicy, b3 as LimitLateBookingPolicy, b_ as ListAddOnGroupsByServiceIdRequest, dX as Locale, aU as Location, aV as LocationOptionsOneOf, ac as LocationType, ei as LocationTypeWithLiterals, cm as MaskedService, aF as Media, aG as MediaItem, aH as MediaItemItemOneOf, bT as MessageEnvelope, an as MissingValues, et as MissingValuesWithLiterals, as as Mode, ey as ModeWithLiterals, aO as Money, dy as MoveToNewLocationsOptions, e2 as Multilingual, cP as NestedAggregation, cN as NestedAggregationItem, cO as NestedAggregationItemKindOneOf, cX as NestedAggregationResults, cY as NestedAggregationResultsResultOneOf, ap as NestedAggregationType, ev as NestedAggregationTypeWithLiterals, d4 as NestedResultValue, d5 as NestedResultValueResultOneOf, da as NestedResults, d0 as NestedValueAggregationResult, aS as OnlineBooking, dS as Page, cw as Paging, cz as PagingMetadataV2, cp as ParticipantNotification, b8 as ParticipantsPolicy, aL as Payment, aR as PaymentOptions, aM as PaymentRateOneOf, bE as PhoneCall, aC as PlacementType, eI as PlacementTypeWithLiterals, b1 as PolicyDescription, dA as PricingPlanSelection, dV as Properties, e8 as PropertiesChange, dg as QueryBookingFormsRequest, ds as QueryCategoriesFilter, dr as QueryCategoriesRequest, dm as QueryLocationsFilter, dl as QueryLocationsRequest, dd as QueryPoliciesRequest, dt as QueryServicesMultiLanguageRequest, du as QueryServicesMultiLanguageResponse, ct as QueryServicesRequest, cy as QueryServicesResponse, cu as QueryV2PagingMethodOneOf, cK as RangeAggregation, cW as RangeAggregationResult, cG as RangeBucket, d2 as RangeResult, c_ as RangeResults, bg as RankingOptions, ad as RankingOrder, ej as RankingOrderWithLiterals, aa as RateType, eg as RateTypeWithLiterals, bF as ReindexMessage, bG as ReindexMessageActionOneOf, dw as RemovedLocationSessionsAction, dx as RemovedLocationSessionsActionActionOptionsOneOf, at as RequestedFields, ez as RequestedFieldsWithLiterals, b6 as ReschedulePolicy, aE as ResolutionMethod, eK as ResolutionMethodWithLiterals, bq as ResourceGroup, br as ResourceIds, bu as ResourceType, b9 as ResourcesPolicy, bP as RestoreInfo, d6 as Results, bd as SaveCreditCardPolicy, cL as ScalarAggregation, d3 as ScalarResult, ao as ScalarType, eu as ScalarTypeWithLiterals, bj as Schedule, bJ as Schema, cS as SearchDetails, cB as SearchServicesRequest, by as SeoSchema, ch as ServiceAvailabilityConstraints, bs as ServiceResource, bt as ServiceResourceSelectionOneOf, ee as ServiceSearchSpec, a9 as ServiceType, ef as ServiceTypeWithLiterals, ed as ServicesQueryResult, bL as ServicesUrlsChanged, c2 as SetAddOnsForGroupRequest, bK as SetCustomSlugEvent, dD as SetCustomSlugRequest, dv as SetServiceLocationsRequest, bB as Settings, ea as SiteCloned, e9 as SiteCreated, dU as SitePropertiesEvent, dT as SitePropertiesNotification, bv as Slug, am as SortDirection, es as SortDirectionWithLiterals, ak as SortOrder, eq as SortOrderWithLiterals, al as SortType, er as SortTypeWithLiterals, cv as Sorting, ae as SortingMethodType, ek as SortingMethodTypeWithLiterals, e1 as SpecialHourPeriod, ci as SplitInterval, bn as StaffMediaItem, bo as StaffMediaItemItemOneOf, bm as StaffMember, bp as StaffMemberDetails, be as StaffSortingPolicy, bf as StaffSortingPolicyOptionsOneOf, ax as Status, eD as StatusWithLiterals, aY as StreetAddress, e3 as SupportedLanguage, bA as Tag, bD as TaxableAddress, ah as TaxableAddressType, en as TaxableAddressTypeWithLiterals, e0 as TimePeriod, af as Timing, el as TimingWithLiterals, e5 as Translation, bw as URLs, bZ as UpdateAddOnGroupRequest, cj as UpdateServiceRequest, ck as UpdateServiceResponse, bH as Upsert, dQ as UserDomainInfoChangedEvent, aI as V2Category, aj as V2RequestedFields, ep as V2RequestedFieldsWithLiterals, c5 as ValidateServiceRequest, c6 as ValidateServiceResponse, dE as ValidateSlugRequest, cI as ValueAggregation, cJ as ValueAggregationOptionsOneOf, cV as ValueAggregationResult, d1 as ValueResult, cZ as ValueResults, aQ as VariedPayment, b7 as WaitlistPolicy, ai as WebhookIdentityType, eo as WebhookIdentityTypeWithLiterals } from './bookings-services-v2-service-services.universal-Cz3JDfGk.js';
|
|
4
4
|
|
|
5
|
+
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
6
|
+
interface CreateAddOnGroupSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new add-on group for a service and updates the service's `addOnGroups` array.
|
|
9
|
+
* @param - Add-on group to create.
|
|
10
|
+
*/
|
|
11
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options: NonNullablePaths<CreateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
12
|
+
}
|
|
13
|
+
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
14
|
+
interface DeleteAddOnGroupSignature {
|
|
15
|
+
/**
|
|
16
|
+
* Deletes an add-on group.
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* Deleting the group doesn't delete individual add-ons.
|
|
20
|
+
* Any add-on not associated with another group isn't available for customers to book.
|
|
21
|
+
* @param - ID of the add-on group to delete.
|
|
22
|
+
*/
|
|
23
|
+
(addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`, 2>): Promise<void & {
|
|
24
|
+
__applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
|
|
25
|
+
}>;
|
|
26
|
+
}
|
|
27
|
+
declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
|
|
28
|
+
interface UpdateAddOnGroupSignature {
|
|
29
|
+
/**
|
|
30
|
+
* Updates an add-on group.
|
|
31
|
+
*
|
|
32
|
+
*
|
|
33
|
+
* To update only the display order for add-ons, call [Set Add Ons For Group](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/set-add-ons-for-group) instead.
|
|
34
|
+
*
|
|
35
|
+
* You can't change which service an add-on group belongs to.
|
|
36
|
+
* Each add-on group is permanently associated with the service it was created for.
|
|
37
|
+
* To use the same add-ons with a different service, create a new add-on group for that service.
|
|
38
|
+
* @param - Add-on group to update.
|
|
39
|
+
*/
|
|
40
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
41
|
+
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
42
|
+
}>;
|
|
43
|
+
}
|
|
44
|
+
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
45
|
+
interface ListAddOnGroupsByServiceIdSignature {
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves add-on groups for a service with enriched add-on details.
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
* Add-on details are returned based on their display order.
|
|
51
|
+
*
|
|
52
|
+
* If you specify `groupIds`, only those groups are returned.
|
|
53
|
+
* By default, all groups associated with the service are returned.
|
|
54
|
+
* @param - ID of the service to retrieve add-on groups for.
|
|
55
|
+
*/
|
|
56
|
+
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
57
|
+
}
|
|
58
|
+
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
59
|
+
interface SetAddOnsForGroupSignature {
|
|
60
|
+
/**
|
|
61
|
+
* Sets the add-ons for a specific group, replacing any existing add-ons in the group.
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
* Call this method when you want to:
|
|
65
|
+
* - Add new add-ons to a group.
|
|
66
|
+
* - Remove add-ons from a group.
|
|
67
|
+
* - Reorder existing add-ons for optimal customer presentation.
|
|
68
|
+
*
|
|
69
|
+
* The order of add-ons in the request determines their display sequence to customers.
|
|
70
|
+
* All specified add-ons must already exist before adding them to a group.
|
|
71
|
+
*
|
|
72
|
+
* For updating other add-on group properties, for example `name`, `prompt`, or `constraints`, call [Update Add On Group](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/update-add-on-group) instead.
|
|
73
|
+
* @param - Service ID containing the group.
|
|
74
|
+
*/
|
|
75
|
+
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`, 2>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
76
|
+
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
77
|
+
}>;
|
|
78
|
+
}
|
|
5
79
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
6
80
|
interface CreateServiceSignature {
|
|
7
81
|
/**
|
|
@@ -50,7 +124,7 @@ interface CreateServiceSignature {
|
|
|
50
124
|
*
|
|
51
125
|
* Don't specify existing add-on groups when calling Create Service.
|
|
52
126
|
* Instead, use dedicated add-on group and add-on creation methods to ensure proper validation and maintain referential integrity between services and their optional extras.
|
|
53
|
-
* You can follow this sample flow
|
|
127
|
+
* You can follow this [sample flow](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/sample-flows#create-bookable-add-ons-for-a-new-group) to create bookable add-ons.
|
|
54
128
|
* @param - Service to create.
|
|
55
129
|
* @returns Created service.
|
|
56
130
|
*/
|
|
@@ -445,8 +519,9 @@ interface EnablePricingPlansForServiceSignature {
|
|
|
445
519
|
* @param - ID of the service to update.
|
|
446
520
|
* @param - IDs of the [pricing plans](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/plans/introduction)
|
|
447
521
|
* to add to the service's `payment.pricingPlanIds` array.
|
|
522
|
+
* Maintained for backward compatibility. Use `pricing_plan_selections` for explicit benefit selection.
|
|
448
523
|
*/
|
|
449
|
-
(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.staffMemberIds` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`, 7> & {
|
|
524
|
+
(serviceId: string, pricingPlanIds: string[], options?: EnablePricingPlansForServiceOptions): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.staffMemberIds` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType`, 7> & {
|
|
450
525
|
__applicationErrorsType?: EnablePricingPlansForServiceApplicationErrors;
|
|
451
526
|
}>;
|
|
452
527
|
}
|
|
@@ -555,80 +630,6 @@ interface CloneServiceSignature {
|
|
|
555
630
|
*/
|
|
556
631
|
(sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, `service.type` | `service.media.items` | `service.category._id` | `service.form._id` | `service.payment.fixed.price.value` | `service.payment.fixed.price.currency` | `service.payment.rateType` | `service.payment.pricingPlanIds` | `service.payment.addOnOption` | `service.locations` | `service.locations.${number}.business._id` | `service.locations.${number}.business.name` | `service.locations.${number}.custom._id` | `service.locations.${number}._id` | `service.locations.${number}.type` | `service.bookingPolicy._id` | `service.bookingPolicy.customPolicyDescription.enabled` | `service.bookingPolicy.customPolicyDescription.description` | `service.bookingPolicy.limitEarlyBookingPolicy.enabled` | `service.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `service.bookingPolicy.limitLateBookingPolicy.enabled` | `service.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `service.bookingPolicy.bookAfterStartPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.enabled` | `service.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `service.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `service.bookingPolicy.reschedulePolicy.enabled` | `service.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `service.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `service.bookingPolicy.waitlistPolicy.enabled` | `service.bookingPolicy.waitlistPolicy.capacity` | `service.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `service.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `service.bookingPolicy.resourcesPolicy.enabled` | `service.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `service.bookingPolicy.cancellationFeePolicy.enabled` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows` | `service.bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `service.bookingPolicy.saveCreditCardPolicy.enabled` | `service.schedule.availabilityConstraints.durations` | `service.schedule.availabilityConstraints.durations.${number}.minutes` | `service.schedule.availabilityConstraints.sessionDurations` | `service.schedule.availabilityConstraints.timeBetweenSessions` | `service.staffMemberIds` | `service.serviceResources` | `service.supportedSlugs` | `service.supportedSlugs.${number}.name` | `service.seoData.tags` | `service.seoData.tags.${number}.type` | `service.seoData.tags.${number}.children` | `service.seoData.tags.${number}.custom` | `service.seoData.tags.${number}.disabled` | `service.seoData.settings.preventAutoRedirect` | `service.seoData.settings.keywords` | `service.seoData.settings.keywords.${number}.term` | `service.seoData.settings.keywords.${number}.isMain` | `service.addOnGroups` | `service.addOnDetails` | `service.taxableAddress.taxableAddressType` | `errors`, 7>>;
|
|
557
632
|
}
|
|
558
|
-
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
559
|
-
interface CreateAddOnGroupSignature {
|
|
560
|
-
/**
|
|
561
|
-
* Creates a new add-on group for a service and updates the service's `addOnGroups` array.
|
|
562
|
-
* @param - Add-on group to create.
|
|
563
|
-
*/
|
|
564
|
-
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options: NonNullablePaths<CreateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
565
|
-
}
|
|
566
|
-
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
567
|
-
interface DeleteAddOnGroupSignature {
|
|
568
|
-
/**
|
|
569
|
-
* Deletes an add-on group.
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
* Deleting the group doesn't delete individual add-ons.
|
|
573
|
-
* Any add-on not associated with another group isn't available for customers to book.
|
|
574
|
-
* @param - ID of the add-on group to delete.
|
|
575
|
-
*/
|
|
576
|
-
(addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`, 2>): Promise<void & {
|
|
577
|
-
__applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
|
|
578
|
-
}>;
|
|
579
|
-
}
|
|
580
|
-
declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
|
|
581
|
-
interface UpdateAddOnGroupSignature {
|
|
582
|
-
/**
|
|
583
|
-
* Updates an add-on group.
|
|
584
|
-
*
|
|
585
|
-
*
|
|
586
|
-
* To update only the display order for add-ons, call [Set Add Ons For Group](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/set-add-ons-for-group) instead.
|
|
587
|
-
*
|
|
588
|
-
* You can't change which service an add-on group belongs to.
|
|
589
|
-
* Each add-on group is permanently associated with the service it was created for.
|
|
590
|
-
* To use the same add-ons with a different service, create a new add-on group for that service.
|
|
591
|
-
* @param - Add-on group to update.
|
|
592
|
-
*/
|
|
593
|
-
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
594
|
-
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
595
|
-
}>;
|
|
596
|
-
}
|
|
597
|
-
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
598
|
-
interface ListAddOnGroupsByServiceIdSignature {
|
|
599
|
-
/**
|
|
600
|
-
* Retrieves add-on groups for a service with enriched add-on details.
|
|
601
|
-
*
|
|
602
|
-
*
|
|
603
|
-
* Add-on details are returned based on their display order.
|
|
604
|
-
*
|
|
605
|
-
* If you specify `groupIds`, only those groups are returned.
|
|
606
|
-
* By default, all groups associated with the service are returned.
|
|
607
|
-
* @param - ID of the service to retrieve add-on groups for.
|
|
608
|
-
*/
|
|
609
|
-
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
610
|
-
}
|
|
611
|
-
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
612
|
-
interface SetAddOnsForGroupSignature {
|
|
613
|
-
/**
|
|
614
|
-
* Sets the add-ons for a specific group, replacing any existing add-ons in the group.
|
|
615
|
-
*
|
|
616
|
-
*
|
|
617
|
-
* Call this method when you want to:
|
|
618
|
-
* - Add new add-ons to a group.
|
|
619
|
-
* - Remove add-ons from a group.
|
|
620
|
-
* - Reorder existing add-ons for optimal customer presentation.
|
|
621
|
-
*
|
|
622
|
-
* The order of add-ons in the request determines their display sequence to customers.
|
|
623
|
-
* All specified add-ons must already exist before adding them to a group.
|
|
624
|
-
*
|
|
625
|
-
* For updating other add-on group properties, for example `name`, `prompt`, or `constraints`, call [Update Add On Group](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/update-add-on-group) instead.
|
|
626
|
-
* @param - Service ID containing the group.
|
|
627
|
-
*/
|
|
628
|
-
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`, 2>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
629
|
-
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
630
|
-
}>;
|
|
631
|
-
}
|
|
632
633
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
633
634
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|
|
634
635
|
declare const onServiceUpdated$1: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
|
|
@@ -637,6 +638,11 @@ declare function customQueryServices(httpClient: HttpClient): {
|
|
|
637
638
|
(query: QueryV2, options?: QueryServicesOptions): ReturnType<typeof typedQueryServices>;
|
|
638
639
|
(options?: QueryServicesOptions): ServicesQueryBuilder;
|
|
639
640
|
};
|
|
641
|
+
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
642
|
+
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
643
|
+
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
644
|
+
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
645
|
+
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
640
646
|
declare const createService: MaybeContext<BuildRESTFunction<typeof createService$1> & typeof createService$1>;
|
|
641
647
|
declare const bulkCreateServices: MaybeContext<BuildRESTFunction<typeof bulkCreateServices$1> & typeof bulkCreateServices$1>;
|
|
642
648
|
declare const getService: MaybeContext<BuildRESTFunction<typeof getService$1> & typeof getService$1>;
|
|
@@ -658,11 +664,6 @@ declare const disablePricingPlansForService: MaybeContext<BuildRESTFunction<type
|
|
|
658
664
|
declare const setCustomSlug: MaybeContext<BuildRESTFunction<typeof setCustomSlug$1> & typeof setCustomSlug$1>;
|
|
659
665
|
declare const validateSlug: MaybeContext<BuildRESTFunction<typeof validateSlug$1> & typeof validateSlug$1>;
|
|
660
666
|
declare const cloneService: MaybeContext<BuildRESTFunction<typeof cloneService$1> & typeof cloneService$1>;
|
|
661
|
-
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
662
|
-
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
663
|
-
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
664
|
-
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
665
|
-
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
666
667
|
declare const queryServices: MaybeContext<BuildRESTFunction<typeof customQueryServices> & typeof customQueryServices>;
|
|
667
668
|
/**
|
|
668
669
|
* Triggered when a service is created.
|
|
@@ -677,4 +678,4 @@ declare const onServiceDeleted: BuildEventDefinition<typeof onServiceDeleted$1>
|
|
|
677
678
|
*/
|
|
678
679
|
declare const onServiceUpdated: BuildEventDefinition<typeof onServiceUpdated$1> & typeof onServiceUpdated$1;
|
|
679
680
|
|
|
680
|
-
export { AddOnGroup, BulkCreateServicesOptions, BulkCreateServicesResponse, BulkDeleteServicesByFilterOptions, BulkDeleteServicesByFilterResponse, BulkDeleteServicesOptions, BulkDeleteServicesResponse, BulkUpdateServicesByFilterOptions, BulkUpdateServicesByFilterResponse, BulkUpdateServicesOptions, BulkUpdateServicesResponse, CloneServiceResponse, CountServicesOptions, CountServicesResponse, CreateAddOnGroupOptions, CreateAddOnGroupResponse, CreateServiceValidationErrors, CursorQuery, DeleteAddOnGroupApplicationErrors, DeleteAddOnGroupOptions, DeleteServiceOptions, DisablePricingPlansForServiceApplicationErrors, DisablePricingPlansForServiceOptions, DisablePricingPlansForServiceResponse, EnablePricingPlansForServiceApplicationErrors, EnablePricingPlansForServiceResponse, ListAddOnGroupsByServiceIdOptions, ListAddOnGroupsByServiceIdResponse, QueryBookingFormsApplicationErrors, QueryBookingFormsOptions, QueryBookingFormsResponse, QueryCategoriesOptions, QueryCategoriesResponse, QueryLocationsOptions, QueryLocationsResponse, QueryPoliciesResponse, QueryServicesOptions, QueryV2, SearchServicesResponse, Service, ServiceCreatedEnvelope, ServiceDeletedEnvelope, ServiceSearch, ServiceUpdatedEnvelope, ServicesQueryBuilder, SetAddOnsForGroupApplicationErrors, SetAddOnsForGroupOptions, SetAddOnsForGroupResponse, SetCustomSlugApplicationErrors, SetCustomSlugOptions, SetCustomSlugResponse, SetCustomSlugValidationErrors, SetServiceLocationsOptions, SetServiceLocationsResponse, UpdateAddOnGroupApplicationErrors, UpdateAddOnGroupOptions, UpdateAddOnGroupResponse, UpdateService, UpdateServiceValidationErrors, 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 };
|
|
681
|
+
export { AddOnGroup, BulkCreateServicesOptions, BulkCreateServicesResponse, BulkDeleteServicesByFilterOptions, BulkDeleteServicesByFilterResponse, BulkDeleteServicesOptions, BulkDeleteServicesResponse, BulkUpdateServicesByFilterOptions, BulkUpdateServicesByFilterResponse, BulkUpdateServicesOptions, BulkUpdateServicesResponse, CloneServiceResponse, CountServicesOptions, CountServicesResponse, CreateAddOnGroupOptions, CreateAddOnGroupResponse, CreateServiceValidationErrors, CursorQuery, DeleteAddOnGroupApplicationErrors, DeleteAddOnGroupOptions, DeleteServiceOptions, DisablePricingPlansForServiceApplicationErrors, DisablePricingPlansForServiceOptions, DisablePricingPlansForServiceResponse, EnablePricingPlansForServiceApplicationErrors, EnablePricingPlansForServiceOptions, EnablePricingPlansForServiceResponse, ListAddOnGroupsByServiceIdOptions, ListAddOnGroupsByServiceIdResponse, QueryBookingFormsApplicationErrors, QueryBookingFormsOptions, QueryBookingFormsResponse, QueryCategoriesOptions, QueryCategoriesResponse, QueryLocationsOptions, QueryLocationsResponse, QueryPoliciesResponse, QueryServicesOptions, QueryV2, SearchServicesResponse, Service, ServiceCreatedEnvelope, ServiceDeletedEnvelope, ServiceSearch, ServiceUpdatedEnvelope, ServicesQueryBuilder, SetAddOnsForGroupApplicationErrors, SetAddOnsForGroupOptions, SetAddOnsForGroupResponse, SetCustomSlugApplicationErrors, SetCustomSlugOptions, SetCustomSlugResponse, SetCustomSlugValidationErrors, SetServiceLocationsOptions, SetServiceLocationsResponse, UpdateAddOnGroupApplicationErrors, UpdateAddOnGroupOptions, UpdateAddOnGroupResponse, UpdateService, UpdateServiceValidationErrors, 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 };
|