@wix/auto_sdk_bookings_services 1.0.156 → 1.0.158
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-lzRAgT6-.d.ts → bookings-services-v2-service-services.universal-B5ggTFt2.d.ts} +316 -313
- package/build/cjs/index.d.ts +83 -84
- package/build/cjs/index.js +320 -321
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +282 -282
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +172 -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-lzRAgT6-.d.mts → bookings-services-v2-service-services.universal-B5ggTFt2.d.mts} +316 -313
- package/build/es/index.d.mts +83 -84
- package/build/es/index.mjs +320 -321
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +282 -282
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +172 -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-lzRAgT6-.d.ts → bookings-services-v2-service-services.universal-B5ggTFt2.d.ts} +316 -313
- package/build/internal/cjs/index.d.ts +83 -84
- package/build/internal/cjs/index.js +320 -321
- 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 +282 -282
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +172 -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-lzRAgT6-.d.mts → bookings-services-v2-service-services.universal-B5ggTFt2.d.mts} +316 -313
- package/build/internal/es/index.d.mts +83 -84
- package/build/internal/es/index.mjs +320 -321
- 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 +282 -282
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +172 -172
- package/build/internal/es/meta.mjs +203 -203
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/es/index.d.mts
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 EnablePricingPlansForServiceResponse, P as EnablePricingPlansForServiceApplicationErrors, R as DisablePricingPlansForServiceOptions, T as DisablePricingPlansForServiceResponse, V as DisablePricingPlansForServiceApplicationErrors, W as SetCustomSlugOptions, X as SetCustomSlugResponse, Y as SetCustomSlugApplicationErrors, Z as SetCustomSlugValidationErrors, _ as ValidateSlugOptions, $ as ValidateSlugResponse, a0 as CloneServiceResponse, a1 as ServiceCreatedEnvelope, a2 as ServiceDeletedEnvelope, a3 as ServiceUpdatedEnvelope, a4 as QueryV2, a5 as typedQueryServices, a6 as QueryServicesOptions, a7 as ServicesQueryBuilder } from './bookings-services-v2-service-services.universal-B5ggTFt2.mjs';
|
|
3
|
+
export { at as Action, bR as ActionEvent, ey as ActionWithLiterals, b_ as AddOn, b$ as AddOnAddOnInfoOneOf, bB as AddOnDetails, c0 as AddOnGroupDetail, aa as AddOnPaymentOptions, ef as AddOnPaymentOptionsWithLiterals, dW as Address, dX as AddressHint, aY as AddressLocation, cD as Aggregation, cT as AggregationData, cE as AggregationKindOneOf, da as AggregationResults, db as AggregationResultsResultOneOf, c_ as AggregationResultsScalarResult, aq as AggregationType, ev as AggregationTypeWithLiterals, ca as ApplicationError, bj as AvailabilityConstraints, e9 as BaseEventMetadata, dM as Behavior, dN as BehaviorBehaviorOneOf, dI as Benefit, dH as BenefitNotification, ay as BenefitType, eD as BenefitTypeWithLiterals, b3 as BookAfterStartPolicy, dg as BookingForm, a$ as BookingPolicy, de as BookingPolicyWithServices, cb as BulkActionMetadata, c7 as BulkCreateServicesRequest, cr as BulkDeleteServicesByFilterRequest, cq as BulkDeleteServicesRequest, c8 as BulkServiceResult, cm as BulkUpdateServicesByFilterRequest, ck as BulkUpdateServicesRequest, aZ as BusinessLocationOptions, dm as BusinessLocations, dZ as BusinessSchedule, b9 as CancellationFeePolicy, b4 as CancellationPolicy, ba as CancellationWindow, bb as CancellationWindowFeeOneOf, dU as Categories, dF as Category, dE as CategoryNotification, ax as CategoryNotificationEvent, eC as CategoryNotificationEventWithLiterals, e4 as ChangeContext, e5 as ChangeContextPayloadOneOf, av as CloneErrors, eA as CloneErrorsWithLiterals, dD as CloneServiceRequest, aV as CommonAddress, aW as CommonAddressStreetOneOf, eJ as CommonSearchWithEntityContext, af as CompletionRequirement, ek as CompletionRequirementWithLiterals, aS as Conferencing, di as ConnectedService, e2 as ConsentPolicy, dj as CountServicesRequest, bV as CreateAddOnGroupRequest, c2 as CreateServiceRequest, c3 as CreateServiceResponse, aA as CrudType, eF as CrudTypeWithLiterals, cw as CursorPaging, cS as CursorPagingMetadata, dd as CursorQueryPagingMethodOneOf, cB as CursorSearch, cC as CursorSearchPagingMethodOneOf, cz as Cursors, a_ as CustomLocationOptions, dn as CustomLocations, bg as CustomOptions, aO as CustomPayment, dp as CustomerLocations, cL as DateHistogramAggregation, d6 as DateHistogramResult, d8 as DateHistogramResults, aC as DayOfWeek, eH as DayOfWeekWithLiterals, bH as Delete, bW as DeleteAddOnGroupRequest, bX as DeleteAddOnGroupResponse, cn as DeleteServiceRequest, cp as DeleteServiceResponse, dA as DisablePricingPlansForServiceRequest, dK as Discount, dL as DiscountDiscountOneOf, bL as DomainEvent, bM as DomainEventBodyOneOf, bk as Duration, dG as Empty, dy as EnablePricingPlansForServiceRequest, bN as EntityCreatedEvent, bQ as EntityDeletedEvent, bP as EntityUpdatedEvent, dJ as EntryPass, az as Event, ea as EventMetadata, eE as EventWithLiterals, bw as ExtendedFields, c6 as FieldViolation, aM as FixedPayment, aI as Form, dh as FormDetails, aJ as FormSettings, dY as GeoCoordinates, ce as GetServiceAvailabilityConstraintsRequest, cf as GetServiceAvailabilityConstraintsResponse, cc as GetServiceRequest, cd as GetServiceResponse, cP as GroupByAggregation, cQ as GroupByAggregationKindOneOf, d7 as GroupByValueResults, dP as HtmlSitePublished, bT as IdentificationData, bU as IdentificationDataIdOneOf, cG as IncludeMissingValuesOptions, bh as IntakeFormPolicy, ap as Interval, eu as IntervalWithLiterals, dz as InvalidPricingPlan, au as InvalidSlugError, ez as InvalidSlugErrorWithLiterals, c9 as ItemMetadata, by as Keyword, b1 as LimitEarlyBookingPolicy, b2 as LimitLateBookingPolicy, bZ as ListAddOnGroupsByServiceIdRequest, dV as Locale, aT as Location, aU as LocationOptionsOneOf, ab as LocationType, eg as LocationTypeWithLiterals, cl as MaskedService, aE as Media, aF as MediaItem, aG as MediaItemItemOneOf, bS as MessageEnvelope, am as MissingValues, er as MissingValuesWithLiterals, ar as Mode, ew as ModeWithLiterals, aN as Money, dx as MoveToNewLocationsOptions, e0 as Multilingual, cO as NestedAggregation, cM as NestedAggregationItem, cN as NestedAggregationItemKindOneOf, cW as NestedAggregationResults, cX as NestedAggregationResultsResultOneOf, ao as NestedAggregationType, et as NestedAggregationTypeWithLiterals, d3 as NestedResultValue, d4 as NestedResultValueResultOneOf, d9 as NestedResults, c$ as NestedValueAggregationResult, aR as OnlineBooking, dQ as Page, cv as Paging, cy as PagingMetadataV2, co as ParticipantNotification, b7 as ParticipantsPolicy, aK as Payment, aQ as PaymentOptions, aL as PaymentRateOneOf, bD as PhoneCall, aB as PlacementType, eG as PlacementTypeWithLiterals, b0 as PolicyDescription, dT as Properties, e6 as PropertiesChange, df as QueryBookingFormsRequest, dr as QueryCategoriesFilter, dq as QueryCategoriesRequest, dl as QueryLocationsFilter, dk as QueryLocationsRequest, dc as QueryPoliciesRequest, ds as QueryServicesMultiLanguageRequest, dt as QueryServicesMultiLanguageResponse, cs as QueryServicesRequest, cx as QueryServicesResponse, ct as QueryV2PagingMethodOneOf, cJ as RangeAggregation, cV as RangeAggregationResult, cF as RangeBucket, d1 as RangeResult, cZ as RangeResults, bf as RankingOptions, ac as RankingOrder, eh as RankingOrderWithLiterals, a9 as RateType, ee as RateTypeWithLiterals, bE as ReindexMessage, bF as ReindexMessageActionOneOf, dv as RemovedLocationSessionsAction, dw as RemovedLocationSessionsActionActionOptionsOneOf, as as RequestedFields, ex as RequestedFieldsWithLiterals, b5 as ReschedulePolicy, aD as ResolutionMethod, eI as ResolutionMethodWithLiterals, bp as ResourceGroup, bq as ResourceIds, bt as ResourceType, b8 as ResourcesPolicy, bO as RestoreInfo, d5 as Results, bc as SaveCreditCardPolicy, cK as ScalarAggregation, d2 as ScalarResult, an as ScalarType, es as ScalarTypeWithLiterals, bi as Schedule, bI as Schema, cR as SearchDetails, cA as SearchServicesRequest, bx as SeoSchema, cg as ServiceAvailabilityConstraints, br as ServiceResource, bs as ServiceResourceSelectionOneOf, ec as ServiceSearchSpec, a8 as ServiceType, ed as ServiceTypeWithLiterals, eb as ServicesQueryResult, bK as ServicesUrlsChanged, c1 as SetAddOnsForGroupRequest, bJ as SetCustomSlugEvent, dB as SetCustomSlugRequest, du as SetServiceLocationsRequest, bA as Settings, e8 as SiteCloned, e7 as SiteCreated, dS as SitePropertiesEvent, dR as SitePropertiesNotification, bu as Slug, al as SortDirection, eq as SortDirectionWithLiterals, aj as SortOrder, eo as SortOrderWithLiterals, ak as SortType, ep as SortTypeWithLiterals, cu as Sorting, ad as SortingMethodType, ei as SortingMethodTypeWithLiterals, d$ as SpecialHourPeriod, ch as SplitInterval, bm as StaffMediaItem, bn as StaffMediaItemItemOneOf, bl as StaffMember, bo as StaffMemberDetails, bd as StaffSortingPolicy, be as StaffSortingPolicyOptionsOneOf, aw as Status, eB as StatusWithLiterals, aX as StreetAddress, e1 as SupportedLanguage, bz as Tag, bC as TaxableAddress, ag as TaxableAddressType, el as TaxableAddressTypeWithLiterals, d_ as TimePeriod, ae as Timing, ej as TimingWithLiterals, e3 as Translation, bv as URLs, bY as UpdateAddOnGroupRequest, ci as UpdateServiceRequest, cj as UpdateServiceResponse, bG as Upsert, dO as UserDomainInfoChangedEvent, aH as V2Category, ai as V2RequestedFields, en as V2RequestedFieldsWithLiterals, c4 as ValidateServiceRequest, c5 as ValidateServiceResponse, dC as ValidateSlugRequest, cH as ValueAggregation, cI as ValueAggregationOptionsOneOf, cU as ValueAggregationResult, d0 as ValueResult, cY as ValueResults, aP as VariedPayment, b6 as WaitlistPolicy, ah as WebhookIdentityType, em as WebhookIdentityTypeWithLiterals } from './bookings-services-v2-service-services.universal-B5ggTFt2.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
|
+
}
|
|
5
79
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
6
80
|
interface CreateServiceSignature {
|
|
7
81
|
/**
|
|
@@ -430,9 +504,8 @@ interface SetServiceLocationsSignature {
|
|
|
430
504
|
* `participantNotification.notifyParticipants` is set to `true` to send the
|
|
431
505
|
* message.
|
|
432
506
|
* @param - ID of the service.
|
|
433
|
-
* @param - List of locations replacing existing service locations. Omitting an existing location removes it from the service. Specify `removedLocationSessionsAction` to determine the handling of future sessions scheduled at that location.
|
|
434
507
|
*/
|
|
435
|
-
(serviceId: string,
|
|
508
|
+
(serviceId: string, options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, `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>>;
|
|
436
509
|
}
|
|
437
510
|
declare function enablePricingPlansForService$1(httpClient: HttpClient): EnablePricingPlansForServiceSignature;
|
|
438
511
|
interface EnablePricingPlansForServiceSignature {
|
|
@@ -556,80 +629,6 @@ interface CloneServiceSignature {
|
|
|
556
629
|
*/
|
|
557
630
|
(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>>;
|
|
558
631
|
}
|
|
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
632
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
634
633
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|
|
635
634
|
declare const onServiceUpdated$1: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
|
|
@@ -640,6 +639,11 @@ declare function customQueryServices(httpClient: HttpClient): {
|
|
|
640
639
|
(): ServicesQueryBuilder;
|
|
641
640
|
(options: QueryServicesOptions): ServicesQueryBuilder;
|
|
642
641
|
};
|
|
642
|
+
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
643
|
+
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
644
|
+
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
645
|
+
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
646
|
+
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
643
647
|
declare const createService: MaybeContext<BuildRESTFunction<typeof createService$1> & typeof createService$1>;
|
|
644
648
|
declare const bulkCreateServices: MaybeContext<BuildRESTFunction<typeof bulkCreateServices$1> & typeof bulkCreateServices$1>;
|
|
645
649
|
declare const getService: MaybeContext<BuildRESTFunction<typeof getService$1> & typeof getService$1>;
|
|
@@ -661,11 +665,6 @@ declare const disablePricingPlansForService: MaybeContext<BuildRESTFunction<type
|
|
|
661
665
|
declare const setCustomSlug: MaybeContext<BuildRESTFunction<typeof setCustomSlug$1> & typeof setCustomSlug$1>;
|
|
662
666
|
declare const validateSlug: MaybeContext<BuildRESTFunction<typeof validateSlug$1> & typeof validateSlug$1>;
|
|
663
667
|
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
668
|
declare const queryServices: MaybeContext<BuildRESTFunction<typeof customQueryServices> & typeof customQueryServices>;
|
|
670
669
|
/**
|
|
671
670
|
* Triggered when a service is created.
|
|
@@ -680,4 +679,4 @@ declare const onServiceDeleted: BuildEventDefinition<typeof onServiceDeleted$1>
|
|
|
680
679
|
*/
|
|
681
680
|
declare const onServiceUpdated: BuildEventDefinition<typeof onServiceUpdated$1> & typeof onServiceUpdated$1;
|
|
682
681
|
|
|
683
|
-
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,
|
|
682
|
+
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 };
|