@wix/auto_sdk_bookings_services 1.0.148 → 1.0.149
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-aR6-LfxR.d.ts → bookings-services-v2-service-services.universal-Bmp_SJXU.d.ts} +298 -298
- package/build/cjs/index.d.ts +77 -77
- package/build/cjs/index.js +312 -312
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +275 -275
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +166 -166
- package/build/cjs/meta.js +203 -203
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-aR6-LfxR.d.mts → bookings-services-v2-service-services.universal-Bmp_SJXU.d.mts} +298 -298
- package/build/es/index.d.mts +77 -77
- package/build/es/index.mjs +312 -312
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +275 -275
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +166 -166
- 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-aR6-LfxR.d.ts → bookings-services-v2-service-services.universal-Bmp_SJXU.d.ts} +298 -298
- package/build/internal/cjs/index.d.ts +77 -77
- package/build/internal/cjs/index.js +312 -312
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +275 -275
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +166 -166
- 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-aR6-LfxR.d.mts → bookings-services-v2-service-services.universal-Bmp_SJXU.d.mts} +298 -298
- package/build/internal/es/index.d.mts +77 -77
- package/build/internal/es/index.mjs +312 -312
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +275 -275
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +166 -166
- package/build/internal/es/meta.mjs +203 -203
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -1,7 +1,77 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export { ar as Action, bO as ActionEvent, ew as ActionWithLiterals,
|
|
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-Bmp_SJXU.mjs';
|
|
3
|
+
export { ar as Action, bO as ActionEvent, ew as ActionWithLiterals, bX as AddOn, bY as AddOnAddOnInfoOneOf, by as AddOnDetails, 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, c4 as BulkCreateServicesRequest, co as BulkDeleteServicesByFilterRequest, cn as BulkDeleteServicesRequest, c5 as BulkServiceResult, cj as BulkUpdateServicesByFilterRequest, ch as BulkUpdateServicesRequest, 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, aS as CommonAddress, aT as CommonAddressStreetOneOf, eH as CommonSearchWithEntityContext, ad as CompletionRequirement, ei as CompletionRequirementWithLiterals, aQ as Conferencing, dg as ConnectedService, e0 as ConsentPolicy, dh as CountServicesRequest, bS as CreateAddOnGroupRequest, b$ as CreateServiceRequest, c0 as CreateServiceResponse, ay as CrudType, eD as CrudTypeWithLiterals, cu as CursorPaging, cQ as CursorPagingMetadata, db as CursorQueryPagingMethodOneOf, cz as CursorSearch, 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, bT as DeleteAddOnGroupRequest, bU as DeleteAddOnGroupResponse, ck as DeleteServiceRequest, cm as DeleteServiceResponse, dy as DisablePricingPlansForServiceRequest, dI as Discount, dJ as DiscountDiscountOneOf, bI as DomainEvent, bJ as DomainEventBodyOneOf, bh as Duration, dE as Empty, dw as EnablePricingPlansForServiceRequest, 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, bW as ListAddOnGroupsByServiceIdRequest, dT as Locale, 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, dd as QueryBookingFormsRequest, dp as QueryCategoriesFilter, dn as QueryCategoriesRequest, dj as QueryLocationsFilter, di as QueryLocationsRequest, da as QueryPoliciesRequest, 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, cd as ServiceAvailabilityConstraints, bo as ServiceResource, bp as ServiceResourceSelectionOneOf, ea as ServiceSearchSpec, a6 as ServiceType, eb as ServiceTypeWithLiterals, e9 as ServicesQueryResult, bH as ServicesUrlsChanged, b_ as SetAddOnsForGroupRequest, bG as SetCustomSlugEvent, dz as SetCustomSlugRequest, ds as SetServiceLocationsRequest, 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, bV as UpdateAddOnGroupRequest, cf as UpdateServiceRequest, cg as UpdateServiceResponse, bD as Upsert, dM as UserDomainInfoChangedEvent, aF as V2Category, ag as V2RequestedFields, el as V2RequestedFieldsWithLiterals, c1 as ValidateServiceRequest, c2 as ValidateServiceResponse, dA as ValidateSlugRequest, 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 } from './bookings-services-v2-service-services.universal-Bmp_SJXU.mjs';
|
|
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?: CreateAddOnGroupOptions): 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 add-on display order, 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
|
+
* @param - Add-on group to update.
|
|
35
|
+
*/
|
|
36
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
37
|
+
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
41
|
+
interface ListAddOnGroupsByServiceIdSignature {
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves add-on groups for a service with enriched add-on details.
|
|
44
|
+
*
|
|
45
|
+
*
|
|
46
|
+
* Add-on details are returned based on their display order.
|
|
47
|
+
*
|
|
48
|
+
* If you specify `groupIds`, only those groups are returned.
|
|
49
|
+
* By default, all groups associated with the service are returned.
|
|
50
|
+
* @param - ID of the service to retrieve add-on groups for.
|
|
51
|
+
*/
|
|
52
|
+
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
53
|
+
}
|
|
54
|
+
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
55
|
+
interface SetAddOnsForGroupSignature {
|
|
56
|
+
/**
|
|
57
|
+
* Sets the add-ons for a specific group, replacing any existing add-ons in the group.
|
|
58
|
+
*
|
|
59
|
+
*
|
|
60
|
+
* Call this method when you want to:
|
|
61
|
+
* - Add new add-ons to a group.
|
|
62
|
+
* - Remove add-ons from a group.
|
|
63
|
+
* - Reorder existing add-ons for optimal customer presentation.
|
|
64
|
+
*
|
|
65
|
+
* The order of add-ons in the request determines their display sequence to customers.
|
|
66
|
+
* All specified add-ons must already exist before adding them to a group.
|
|
67
|
+
*
|
|
68
|
+
* 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.
|
|
69
|
+
* @param - Service ID containing the group.
|
|
70
|
+
*/
|
|
71
|
+
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`, 2>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
72
|
+
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
73
|
+
}>;
|
|
74
|
+
}
|
|
5
75
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
6
76
|
interface CreateServiceSignature {
|
|
7
77
|
/**
|
|
@@ -620,80 +690,15 @@ interface CloneServiceSignature {
|
|
|
620
690
|
*/
|
|
621
691
|
(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.taxableAddress.taxableAddressType` | `errors`, 7>>;
|
|
622
692
|
}
|
|
623
|
-
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
624
|
-
interface CreateAddOnGroupSignature {
|
|
625
|
-
/**
|
|
626
|
-
* Creates a new add-on group for a service and updates the service's `addOnGroups` array.
|
|
627
|
-
* @param - Add-on group to create.
|
|
628
|
-
*/
|
|
629
|
-
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options?: CreateAddOnGroupOptions): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
630
|
-
}
|
|
631
|
-
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
632
|
-
interface DeleteAddOnGroupSignature {
|
|
633
|
-
/**
|
|
634
|
-
* Deletes an add-on group.
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
* Deleting the group doesn't delete individual add-ons.
|
|
638
|
-
* Any add-on not associated with another group isn't available for customers to book.
|
|
639
|
-
* @param - ID of the add-on group to delete.
|
|
640
|
-
*/
|
|
641
|
-
(addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`, 2>): Promise<void & {
|
|
642
|
-
__applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
|
|
643
|
-
}>;
|
|
644
|
-
}
|
|
645
|
-
declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
|
|
646
|
-
interface UpdateAddOnGroupSignature {
|
|
647
|
-
/**
|
|
648
|
-
* Updates an add-on group.
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
* To update only add-on display order, call [Set Add Ons For Group](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/set-add-ons-for-group) instead.
|
|
652
|
-
* @param - Add-on group to update.
|
|
653
|
-
*/
|
|
654
|
-
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
655
|
-
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
656
|
-
}>;
|
|
657
|
-
}
|
|
658
|
-
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
659
|
-
interface ListAddOnGroupsByServiceIdSignature {
|
|
660
|
-
/**
|
|
661
|
-
* Retrieves add-on groups for a service with enriched add-on details.
|
|
662
|
-
*
|
|
663
|
-
*
|
|
664
|
-
* Add-on details are returned based on their display order.
|
|
665
|
-
*
|
|
666
|
-
* If you specify `groupIds`, only those groups are returned.
|
|
667
|
-
* By default, all groups associated with the service are returned.
|
|
668
|
-
* @param - ID of the service to retrieve add-on groups for.
|
|
669
|
-
*/
|
|
670
|
-
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
671
|
-
}
|
|
672
|
-
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
673
|
-
interface SetAddOnsForGroupSignature {
|
|
674
|
-
/**
|
|
675
|
-
* Sets the add-ons for a specific group, replacing any existing add-ons in the group.
|
|
676
|
-
*
|
|
677
|
-
*
|
|
678
|
-
* Call this method when you want to:
|
|
679
|
-
* - Add new add-ons to a group.
|
|
680
|
-
* - Remove add-ons from a group.
|
|
681
|
-
* - Reorder existing add-ons for optimal customer presentation.
|
|
682
|
-
*
|
|
683
|
-
* The order of add-ons in the request determines their display sequence to customers.
|
|
684
|
-
* All specified add-ons must already exist before adding them to a group.
|
|
685
|
-
*
|
|
686
|
-
* 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.
|
|
687
|
-
* @param - Service ID containing the group.
|
|
688
|
-
*/
|
|
689
|
-
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`, 2>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
690
|
-
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
691
|
-
}>;
|
|
692
|
-
}
|
|
693
693
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
694
694
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|
|
695
695
|
declare const onServiceUpdated$1: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
|
|
696
696
|
|
|
697
|
+
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
698
|
+
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
699
|
+
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
700
|
+
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
701
|
+
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
697
702
|
declare const createService: MaybeContext<BuildRESTFunction<typeof createService$1> & typeof createService$1>;
|
|
698
703
|
declare const bulkCreateServices: MaybeContext<BuildRESTFunction<typeof bulkCreateServices$1> & typeof bulkCreateServices$1>;
|
|
699
704
|
declare const getService: MaybeContext<BuildRESTFunction<typeof getService$1> & typeof getService$1>;
|
|
@@ -716,11 +721,6 @@ declare const disablePricingPlansForService: MaybeContext<BuildRESTFunction<type
|
|
|
716
721
|
declare const setCustomSlug: MaybeContext<BuildRESTFunction<typeof setCustomSlug$1> & typeof setCustomSlug$1>;
|
|
717
722
|
declare const validateSlug: MaybeContext<BuildRESTFunction<typeof validateSlug$1> & typeof validateSlug$1>;
|
|
718
723
|
declare const cloneService: MaybeContext<BuildRESTFunction<typeof cloneService$1> & typeof cloneService$1>;
|
|
719
|
-
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
720
|
-
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
721
|
-
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
722
|
-
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
723
|
-
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
724
724
|
/**
|
|
725
725
|
* Triggered when a service is created.
|
|
726
726
|
*/
|