@wix/auto_sdk_bookings_services 1.0.155 → 1.0.156
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-DD3nGMfL.d.ts → bookings-services-v2-service-services.universal-lzRAgT6-.d.ts} +452 -452
- package/build/cjs/index.d.ts +81 -81
- package/build/cjs/index.js +302 -302
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +265 -265
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +171 -171
- package/build/cjs/meta.js +203 -203
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-DD3nGMfL.d.mts → bookings-services-v2-service-services.universal-lzRAgT6-.d.mts} +452 -452
- package/build/es/index.d.mts +81 -81
- package/build/es/index.mjs +302 -302
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +265 -265
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +171 -171
- 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-DD3nGMfL.d.ts → bookings-services-v2-service-services.universal-lzRAgT6-.d.ts} +452 -452
- package/build/internal/cjs/index.d.ts +81 -81
- package/build/internal/cjs/index.js +302 -302
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js +265 -265
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +171 -171
- 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-DD3nGMfL.d.mts → bookings-services-v2-service-services.universal-lzRAgT6-.d.mts} +452 -452
- package/build/internal/es/index.d.mts +81 -81
- package/build/internal/es/index.mjs +302 -302
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs +265 -265
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +171 -171
- 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,81 +1,7 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export { au as Action, bR as ActionEvent, ey as ActionWithLiterals,
|
|
2
|
+
import { S as Service, C as CreateServiceValidationErrors, B as BulkCreateServicesOptions, a as BulkCreateServicesResponse, U as UpdateService, b as UpdateServiceValidationErrors, c as BulkUpdateServicesOptions, d as BulkUpdateServicesResponse, e as BulkUpdateServicesByFilterOptions, f as BulkUpdateServicesByFilterResponse, D as DeleteServiceOptions, g as BulkDeleteServicesOptions, h as BulkDeleteServicesResponse, i as BulkDeleteServicesByFilterOptions, j as BulkDeleteServicesByFilterResponse, k as ServiceSearch, l as SearchServicesResponse, m as CursorQuery, Q as QueryPoliciesResponse, n as QueryBookingFormsOptions, o as QueryBookingFormsResponse, p as QueryBookingFormsApplicationErrors, q as CountServicesOptions, r as CountServicesResponse, s as QueryLocationsOptions, t as QueryLocationsResponse, u as QueryCategoriesOptions, v as QueryCategoriesResponse, L as Location, w as SetServiceLocationsOptions, x as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, y as EnablePricingPlansForServiceApplicationErrors, z as DisablePricingPlansForServiceOptions, A as DisablePricingPlansForServiceResponse, F as DisablePricingPlansForServiceApplicationErrors, G as SetCustomSlugOptions, H as SetCustomSlugResponse, I as SetCustomSlugApplicationErrors, J as SetCustomSlugValidationErrors, V as ValidateSlugOptions, K as ValidateSlugResponse, M as CloneServiceResponse, N as AddOnGroup, O as CreateAddOnGroupOptions, P as CreateAddOnGroupResponse, R as DeleteAddOnGroupOptions, T as DeleteAddOnGroupApplicationErrors, W as UpdateAddOnGroupOptions, X as UpdateAddOnGroupResponse, Y as UpdateAddOnGroupApplicationErrors, Z as ListAddOnGroupsByServiceIdOptions, _ as ListAddOnGroupsByServiceIdResponse, $ as SetAddOnsForGroupOptions, a0 as SetAddOnsForGroupResponse, a1 as SetAddOnsForGroupApplicationErrors, a2 as ServiceCreatedEnvelope, a3 as ServiceDeletedEnvelope, a4 as ServiceUpdatedEnvelope, a5 as QueryV2, a6 as typedQueryServices, a7 as QueryServicesOptions, a8 as ServicesQueryBuilder } from './bookings-services-v2-service-services.universal-lzRAgT6-.mjs';
|
|
3
|
+
export { au as Action, bR as ActionEvent, ey as ActionWithLiterals, e5 as AddOn, e6 as AddOnAddOnInfoOneOf, bB as AddOnDetails, e7 as AddOnGroupDetail, ab as AddOnPaymentOptions, ef as AddOnPaymentOptionsWithLiterals, dN as Address, dO as AddressHint, aY as AddressLocation, cu as Aggregation, cK as AggregationData, cv as AggregationKindOneOf, d1 as AggregationResults, d2 as AggregationResultsResultOneOf, cR as AggregationResultsScalarResult, ar as AggregationType, ev as AggregationTypeWithLiterals, c1 as ApplicationError, bj as AvailabilityConstraints, e9 as BaseEventMetadata, dD as Behavior, dE as BehaviorBehaviorOneOf, dz as Benefit, dy as BenefitNotification, az as BenefitType, eD as BenefitTypeWithLiterals, b3 as BookAfterStartPolicy, d7 as BookingForm, a$ as BookingPolicy, d5 as BookingPolicyWithServices, c2 as BulkActionMetadata, b_ as BulkCreateServicesRequest, ci as BulkDeleteServicesByFilterRequest, ch as BulkDeleteServicesRequest, b$ as BulkServiceResult, cd as BulkUpdateServicesByFilterRequest, cb as BulkUpdateServicesRequest, aZ as BusinessLocationOptions, dd as BusinessLocations, dQ as BusinessSchedule, b9 as CancellationFeePolicy, b4 as CancellationPolicy, ba as CancellationWindow, bb as CancellationWindowFeeOneOf, dL as Categories, dw as Category, dv as CategoryNotification, ay as CategoryNotificationEvent, eC as CategoryNotificationEventWithLiterals, dX as ChangeContext, dY as ChangeContextPayloadOneOf, aw as CloneErrors, eA as CloneErrorsWithLiterals, du as CloneServiceRequest, aV as CommonAddress, aW as CommonAddressStreetOneOf, eJ as CommonSearchWithEntityContext, ag as CompletionRequirement, ek as CompletionRequirementWithLiterals, aT as Conferencing, d9 as ConnectedService, dV as ConsentPolicy, da as CountServicesRequest, e0 as CreateAddOnGroupRequest, bV as CreateServiceRequest, bW as CreateServiceResponse, aB as CrudType, eF as CrudTypeWithLiterals, cn as CursorPaging, cJ as CursorPagingMetadata, d4 as CursorQueryPagingMethodOneOf, cs as CursorSearch, ct as CursorSearchPagingMethodOneOf, cq as Cursors, a_ as CustomLocationOptions, de as CustomLocations, bg as CustomOptions, aP as CustomPayment, df as CustomerLocations, cC as DateHistogramAggregation, cZ as DateHistogramResult, c$ as DateHistogramResults, aD as DayOfWeek, eH as DayOfWeekWithLiterals, bH as Delete, e1 as DeleteAddOnGroupRequest, e2 as DeleteAddOnGroupResponse, ce as DeleteServiceRequest, cg as DeleteServiceResponse, dr as DisablePricingPlansForServiceRequest, dB as Discount, dC as DiscountDiscountOneOf, bL as DomainEvent, bM as DomainEventBodyOneOf, bk as Duration, dx as Empty, dp as EnablePricingPlansForServiceRequest, bN as EntityCreatedEvent, bQ as EntityDeletedEvent, bP as EntityUpdatedEvent, dA as EntryPass, aA as Event, ea as EventMetadata, eE as EventWithLiterals, bw as ExtendedFields, bZ as FieldViolation, aN as FixedPayment, aJ as Form, d8 as FormDetails, aK as FormSettings, dP as GeoCoordinates, c5 as GetServiceAvailabilityConstraintsRequest, c6 as GetServiceAvailabilityConstraintsResponse, c3 as GetServiceRequest, c4 as GetServiceResponse, cG as GroupByAggregation, cH as GroupByAggregationKindOneOf, c_ as GroupByValueResults, dG as HtmlSitePublished, bT as IdentificationData, bU as IdentificationDataIdOneOf, cx as IncludeMissingValuesOptions, bh as IntakeFormPolicy, aq as Interval, eu as IntervalWithLiterals, dq as InvalidPricingPlan, av as InvalidSlugError, ez as InvalidSlugErrorWithLiterals, c0 as ItemMetadata, by as Keyword, b1 as LimitEarlyBookingPolicy, b2 as LimitLateBookingPolicy, e4 as ListAddOnGroupsByServiceIdRequest, dM as Locale, aU as LocationOptionsOneOf, ac as LocationType, eg as LocationTypeWithLiterals, cc as MaskedService, aF as Media, aG as MediaItem, aH as MediaItemItemOneOf, bS as MessageEnvelope, an as MissingValues, er as MissingValuesWithLiterals, as as Mode, ew as ModeWithLiterals, aO as Money, dn as MoveToNewLocationsOptions, dT as Multilingual, cF as NestedAggregation, cD as NestedAggregationItem, cE as NestedAggregationItemKindOneOf, cN as NestedAggregationResults, cO as NestedAggregationResultsResultOneOf, ap as NestedAggregationType, et as NestedAggregationTypeWithLiterals, cW as NestedResultValue, cX as NestedResultValueResultOneOf, d0 as NestedResults, cS as NestedValueAggregationResult, aS as OnlineBooking, dH as Page, cm as Paging, cp as PagingMetadataV2, cf as ParticipantNotification, b7 as ParticipantsPolicy, aL as Payment, aR as PaymentOptions, aM as PaymentRateOneOf, bD as PhoneCall, aC as PlacementType, eG as PlacementTypeWithLiterals, b0 as PolicyDescription, dK as Properties, dZ as PropertiesChange, d6 as QueryBookingFormsRequest, dh as QueryCategoriesFilter, dg as QueryCategoriesRequest, dc as QueryLocationsFilter, db as QueryLocationsRequest, d3 as QueryPoliciesRequest, di as QueryServicesMultiLanguageRequest, dj as QueryServicesMultiLanguageResponse, cj as QueryServicesRequest, co as QueryServicesResponse, ck as QueryV2PagingMethodOneOf, cA as RangeAggregation, cM as RangeAggregationResult, cw as RangeBucket, cU as RangeResult, cQ as RangeResults, bf as RankingOptions, ad as RankingOrder, eh as RankingOrderWithLiterals, aa as RateType, ee as RateTypeWithLiterals, bE as ReindexMessage, bF as ReindexMessageActionOneOf, dl as RemovedLocationSessionsAction, dm as RemovedLocationSessionsActionActionOptionsOneOf, at as RequestedFields, ex as RequestedFieldsWithLiterals, b5 as ReschedulePolicy, aE as ResolutionMethod, eI as ResolutionMethodWithLiterals, bp as ResourceGroup, bq as ResourceIds, bt as ResourceType, b8 as ResourcesPolicy, bO as RestoreInfo, cY as Results, bc as SaveCreditCardPolicy, cB as ScalarAggregation, cV as ScalarResult, ao as ScalarType, es as ScalarTypeWithLiterals, bi as Schedule, bI as Schema, cI as SearchDetails, cr as SearchServicesRequest, bx as SeoSchema, c7 as ServiceAvailabilityConstraints, br as ServiceResource, bs as ServiceResourceSelectionOneOf, ec as ServiceSearchSpec, a9 as ServiceType, ed as ServiceTypeWithLiterals, eb as ServicesQueryResult, bK as ServicesUrlsChanged, e8 as SetAddOnsForGroupRequest, bJ as SetCustomSlugEvent, ds as SetCustomSlugRequest, dk as SetServiceLocationsRequest, bA as Settings, d$ as SiteCloned, d_ as SiteCreated, dJ as SitePropertiesEvent, dI as SitePropertiesNotification, bu as Slug, am as SortDirection, eq as SortDirectionWithLiterals, ak as SortOrder, eo as SortOrderWithLiterals, al as SortType, ep as SortTypeWithLiterals, cl as Sorting, ae as SortingMethodType, ei as SortingMethodTypeWithLiterals, dS as SpecialHourPeriod, c8 as SplitInterval, bm as StaffMediaItem, bn as StaffMediaItemItemOneOf, bl as StaffMember, bo as StaffMemberDetails, bd as StaffSortingPolicy, be as StaffSortingPolicyOptionsOneOf, ax as Status, eB as StatusWithLiterals, aX as StreetAddress, dU as SupportedLanguage, bz as Tag, bC as TaxableAddress, ah as TaxableAddressType, el as TaxableAddressTypeWithLiterals, dR as TimePeriod, af as Timing, ej as TimingWithLiterals, dW as Translation, bv as URLs, e3 as UpdateAddOnGroupRequest, c9 as UpdateServiceRequest, ca as UpdateServiceResponse, bG as Upsert, dF as UserDomainInfoChangedEvent, aI as V2Category, aj as V2RequestedFields, en as V2RequestedFieldsWithLiterals, bX as ValidateServiceRequest, bY as ValidateServiceResponse, dt as ValidateSlugRequest, cy as ValueAggregation, cz as ValueAggregationOptionsOneOf, cL as ValueAggregationResult, cT as ValueResult, cP as ValueResults, aQ as VariedPayment, b6 as WaitlistPolicy, ai as WebhookIdentityType, em as WebhookIdentityTypeWithLiterals } from './bookings-services-v2-service-services.universal-lzRAgT6-.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: 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
|
-
}
|
|
79
5
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
80
6
|
interface CreateServiceSignature {
|
|
81
7
|
/**
|
|
@@ -630,6 +556,80 @@ interface CloneServiceSignature {
|
|
|
630
556
|
*/
|
|
631
557
|
(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>>;
|
|
632
558
|
}
|
|
559
|
+
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
560
|
+
interface CreateAddOnGroupSignature {
|
|
561
|
+
/**
|
|
562
|
+
* Creates a new add-on group for a service and updates the service's `addOnGroups` array.
|
|
563
|
+
* @param - Add-on group to create.
|
|
564
|
+
*/
|
|
565
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options: NonNullablePaths<CreateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
566
|
+
}
|
|
567
|
+
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
568
|
+
interface DeleteAddOnGroupSignature {
|
|
569
|
+
/**
|
|
570
|
+
* Deletes an add-on group.
|
|
571
|
+
*
|
|
572
|
+
*
|
|
573
|
+
* Deleting the group doesn't delete individual add-ons.
|
|
574
|
+
* Any add-on not associated with another group isn't available for customers to book.
|
|
575
|
+
* @param - ID of the add-on group to delete.
|
|
576
|
+
*/
|
|
577
|
+
(addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`, 2>): Promise<void & {
|
|
578
|
+
__applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
|
|
579
|
+
}>;
|
|
580
|
+
}
|
|
581
|
+
declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
|
|
582
|
+
interface UpdateAddOnGroupSignature {
|
|
583
|
+
/**
|
|
584
|
+
* Updates an add-on group.
|
|
585
|
+
*
|
|
586
|
+
*
|
|
587
|
+
* 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.
|
|
588
|
+
*
|
|
589
|
+
* You can't change which service an add-on group belongs to.
|
|
590
|
+
* Each add-on group is permanently associated with the service it was created for.
|
|
591
|
+
* To use the same add-ons with a different service, create a new add-on group for that service.
|
|
592
|
+
* @param - Add-on group to update.
|
|
593
|
+
*/
|
|
594
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
595
|
+
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
596
|
+
}>;
|
|
597
|
+
}
|
|
598
|
+
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
599
|
+
interface ListAddOnGroupsByServiceIdSignature {
|
|
600
|
+
/**
|
|
601
|
+
* Retrieves add-on groups for a service with enriched add-on details.
|
|
602
|
+
*
|
|
603
|
+
*
|
|
604
|
+
* Add-on details are returned based on their display order.
|
|
605
|
+
*
|
|
606
|
+
* If you specify `groupIds`, only those groups are returned.
|
|
607
|
+
* By default, all groups associated with the service are returned.
|
|
608
|
+
* @param - ID of the service to retrieve add-on groups for.
|
|
609
|
+
*/
|
|
610
|
+
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
611
|
+
}
|
|
612
|
+
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
613
|
+
interface SetAddOnsForGroupSignature {
|
|
614
|
+
/**
|
|
615
|
+
* Sets the add-ons for a specific group, replacing any existing add-ons in the group.
|
|
616
|
+
*
|
|
617
|
+
*
|
|
618
|
+
* Call this method when you want to:
|
|
619
|
+
* - Add new add-ons to a group.
|
|
620
|
+
* - Remove add-ons from a group.
|
|
621
|
+
* - Reorder existing add-ons for optimal customer presentation.
|
|
622
|
+
*
|
|
623
|
+
* The order of add-ons in the request determines their display sequence to customers.
|
|
624
|
+
* All specified add-ons must already exist before adding them to a group.
|
|
625
|
+
*
|
|
626
|
+
* 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.
|
|
627
|
+
* @param - Service ID containing the group.
|
|
628
|
+
*/
|
|
629
|
+
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`, 2>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
630
|
+
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
631
|
+
}>;
|
|
632
|
+
}
|
|
633
633
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
634
634
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|
|
635
635
|
declare const onServiceUpdated$1: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
|
|
@@ -640,11 +640,6 @@ declare function customQueryServices(httpClient: HttpClient): {
|
|
|
640
640
|
(): ServicesQueryBuilder;
|
|
641
641
|
(options: QueryServicesOptions): ServicesQueryBuilder;
|
|
642
642
|
};
|
|
643
|
-
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
644
|
-
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
645
|
-
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
646
|
-
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
647
|
-
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
648
643
|
declare const createService: MaybeContext<BuildRESTFunction<typeof createService$1> & typeof createService$1>;
|
|
649
644
|
declare const bulkCreateServices: MaybeContext<BuildRESTFunction<typeof bulkCreateServices$1> & typeof bulkCreateServices$1>;
|
|
650
645
|
declare const getService: MaybeContext<BuildRESTFunction<typeof getService$1> & typeof getService$1>;
|
|
@@ -666,6 +661,11 @@ declare const disablePricingPlansForService: MaybeContext<BuildRESTFunction<type
|
|
|
666
661
|
declare const setCustomSlug: MaybeContext<BuildRESTFunction<typeof setCustomSlug$1> & typeof setCustomSlug$1>;
|
|
667
662
|
declare const validateSlug: MaybeContext<BuildRESTFunction<typeof validateSlug$1> & typeof validateSlug$1>;
|
|
668
663
|
declare const cloneService: MaybeContext<BuildRESTFunction<typeof cloneService$1> & typeof cloneService$1>;
|
|
664
|
+
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
665
|
+
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
666
|
+
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
667
|
+
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
668
|
+
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
669
669
|
declare const queryServices: MaybeContext<BuildRESTFunction<typeof customQueryServices> & typeof customQueryServices>;
|
|
670
670
|
/**
|
|
671
671
|
* Triggered when a service is created.
|