@wix/auto_sdk_bookings_services 1.0.117 → 1.0.119
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-D4XsOFkA.d.ts → bookings-services-v2-service-services.universal-KorTqIDU.d.ts} +282 -309
- package/build/cjs/index.d.ts +61 -68
- package/build/cjs/index.js +335 -335
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +245 -245
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +138 -148
- package/build/cjs/meta.js +185 -185
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-D4XsOFkA.d.mts → bookings-services-v2-service-services.universal-KorTqIDU.d.mts} +282 -309
- package/build/es/index.d.mts +61 -68
- package/build/es/index.mjs +335 -335
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +245 -245
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +138 -148
- package/build/es/meta.mjs +185 -185
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-D4XsOFkA.d.ts → bookings-services-v2-service-services.universal-KorTqIDU.d.ts} +282 -309
- package/build/internal/cjs/index.d.ts +61 -68
- package/build/internal/cjs/index.js +335 -335
- 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 +245 -245
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +138 -148
- package/build/internal/cjs/meta.js +185 -185
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-D4XsOFkA.d.mts → bookings-services-v2-service-services.universal-KorTqIDU.d.mts} +282 -309
- package/build/internal/es/index.d.mts +61 -68
- package/build/internal/es/index.mjs +335 -335
- 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 +245 -245
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +138 -148
- package/build/internal/es/meta.mjs +185 -185
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,14 +1,67 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export { am as Action, bC as ActionEvent, ef 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-KorTqIDU.js';
|
|
3
|
+
export { am as Action, bC as ActionEvent, ef as ActionWithLiterals, bL as AddOn, bM as AddOnAddOnInfoOneOf, bo as AddOnDetails, bN as AddOnGroupDetail, a8 as AddOnPaymentOptions, e1 as AddOnPaymentOptionsWithLiterals, dI as Address, dJ as AddressHint, aQ as AddressLocation, cp as Aggregation, cF as AggregationData, cq as AggregationKindOneOf, cY as AggregationResults, cZ as AggregationResultsResultOneOf, cM as AggregationResultsScalarResult, aj as AggregationType, ec as AggregationTypeWithLiterals, bX as ApplicationError, b6 as AvailabilityConstraints, dX as BaseEventMetadata, dy as Behavior, dz as BehaviorBehaviorOneOf, du as Benefit, dt as BenefitNotification, ar as BenefitType, ek as BenefitTypeWithLiterals, aX as BookAfterStartPolicy, d2 as BookingForm, aT as BookingPolicy, d0 as BookingPolicyWithServices, bY as BulkActionMetadata, bU as BulkCreateServicesRequest, cc as BulkDeleteServicesByFilterRequest, cb as BulkDeleteServicesRequest, bV as BulkServiceResult, c7 as BulkUpdateServicesByFilterRequest, c5 as BulkUpdateServicesRequest, aR as BusinessLocationOptions, d8 as BusinessLocations, dL as BusinessSchedule, b1 as CancellationFeePolicy, aY as CancellationPolicy, b2 as CancellationWindow, b3 as CancellationWindowFeeOneOf, dG as Categories, dr as Category, dq as CategoryNotification, aq as CategoryNotificationEvent, ej as CategoryNotificationEventWithLiterals, dS as ChangeContext, dT as ChangeContextPayloadOneOf, ao as CloneErrors, eh as CloneErrorsWithLiterals, dp as CloneServiceRequest, aN as CommonAddress, aO as CommonAddressStreetOneOf, eq as CommonSearchWithEntityContext, aL as Conferencing, d4 as ConnectedService, dQ as ConsentPolicy, d5 as CountServicesRequest, bG as CreateAddOnGroupRequest, bP as CreateServiceRequest, bQ as CreateServiceResponse, at as CrudType, em as CrudTypeWithLiterals, ci as CursorPaging, cE as CursorPagingMetadata, c$ as CursorQueryPagingMethodOneOf, cn as CursorSearch, co as CursorSearchPagingMethodOneOf, cl as Cursors, aS as CustomLocationOptions, d9 as CustomLocations, aH as CustomPayment, da as CustomerLocations, cx as DateHistogramAggregation, cU as DateHistogramResult, cW as DateHistogramResults, av as DayOfWeek, eo as DayOfWeekWithLiterals, bs as Delete, bH as DeleteAddOnGroupRequest, bI as DeleteAddOnGroupResponse, c8 as DeleteServiceRequest, ca as DeleteServiceResponse, dl as DisablePricingPlansForServiceRequest, dw as Discount, dx as DiscountDiscountOneOf, bw as DomainEvent, bx as DomainEventBodyOneOf, b7 as Duration, ds as Empty, dj as EnablePricingPlansForServiceRequest, by as EntityCreatedEvent, bB as EntityDeletedEvent, bA as EntityUpdatedEvent, dv as EntryPass, as as Event, dY as EventMetadata, el as EventWithLiterals, bj as ExtendedFields, bT as FieldViolation, aF as FixedPayment, aB as Form, d3 as FormDetails, aC as FormSettings, dK as GeoCoordinates, b$ as GetServiceAvailabilityConstraintsRequest, c0 as GetServiceAvailabilityConstraintsResponse, bZ as GetServiceRequest, b_ as GetServiceResponse, cB as GroupByAggregation, cC as GroupByAggregationKindOneOf, cV as GroupByValueResults, dB as HtmlSitePublished, bE as IdentificationData, bF as IdentificationDataIdOneOf, cs as IncludeMissingValuesOptions, ai as Interval, eb as IntervalWithLiterals, dk as InvalidPricingPlan, an as InvalidSlugError, eg as InvalidSlugErrorWithLiterals, bW as ItemMetadata, bl as Keyword, aV as LimitEarlyBookingPolicy, aW as LimitLateBookingPolicy, bK as ListAddOnGroupsByServiceIdRequest, dH as Locale, aM as LocationOptionsOneOf, a9 as LocationType, e2 as LocationTypeWithLiterals, c6 as MaskedService, ax as Media, ay as MediaItem, az as MediaItemItemOneOf, bD as MessageEnvelope, af as MissingValues, e8 as MissingValuesWithLiterals, ak as Mode, ed as ModeWithLiterals, aG as Money, di as MoveToNewLocationsOptions, dO as Multilingual, cA as NestedAggregation, cy as NestedAggregationItem, cz as NestedAggregationItemKindOneOf, cI as NestedAggregationResults, cJ as NestedAggregationResultsResultOneOf, ah as NestedAggregationType, ea as NestedAggregationTypeWithLiterals, cR as NestedResultValue, cS as NestedResultValueResultOneOf, cX as NestedResults, cN as NestedValueAggregationResult, aK as OnlineBooking, dC as Page, ch as Paging, ck as PagingMetadataV2, c9 as ParticipantNotification, a$ as ParticipantsPolicy, aD as Payment, aJ as PaymentOptions, aE as PaymentRateOneOf, au as PlacementType, en as PlacementTypeWithLiterals, aU as PolicyDescription, dF as Properties, dU as PropertiesChange, d1 as QueryBookingFormsRequest, dc as QueryCategoriesFilter, db as QueryCategoriesRequest, d7 as QueryLocationsFilter, d6 as QueryLocationsRequest, c_ as QueryPoliciesRequest, dd as QueryServicesMultiLanguageRequest, de as QueryServicesMultiLanguageResponse, cd as QueryServicesRequest, cj as QueryServicesResponse, ce as QueryV2, cf as QueryV2PagingMethodOneOf, cv as RangeAggregation, cH as RangeAggregationResult, cr as RangeBucket, cP as RangeResult, cL as RangeResults, a7 as RateType, e0 as RateTypeWithLiterals, bp as ReindexMessage, bq as ReindexMessageActionOneOf, dg as RemovedLocationSessionsAction, dh as RemovedLocationSessionsActionActionOptionsOneOf, al as RequestedFields, ee as RequestedFieldsWithLiterals, aZ as ReschedulePolicy, aw as ResolutionMethod, ep as ResolutionMethodWithLiterals, bc as ResourceGroup, bd as ResourceIds, bg as ResourceType, b0 as ResourcesPolicy, bz as RestoreInfo, cT as Results, b4 as SaveCreditCardPolicy, cw as ScalarAggregation, cQ as ScalarResult, ag as ScalarType, e9 as ScalarTypeWithLiterals, b5 as Schedule, bt as Schema, cD as SearchDetails, cm as SearchServicesRequest, bk as SeoSchema, c1 as ServiceAvailabilityConstraints, be as ServiceResource, bf as ServiceResourceSelectionOneOf, d_ as ServiceSearchSpec, a6 as ServiceType, d$ as ServiceTypeWithLiterals, dZ as ServicesQueryResult, bv as ServicesUrlsChanged, bO as SetAddOnsForGroupRequest, bu as SetCustomSlugEvent, dm as SetCustomSlugRequest, df as SetServiceLocationsRequest, bn as Settings, dW as SiteCloned, dV as SiteCreated, dE as SitePropertiesEvent, dD as SitePropertiesNotification, bh as Slug, ae as SortDirection, e7 as SortDirectionWithLiterals, ac as SortOrder, e5 as SortOrderWithLiterals, ad as SortType, e6 as SortTypeWithLiterals, cg as Sorting, dN as SpecialHourPeriod, c2 as SplitInterval, b9 as StaffMediaItem, ba as StaffMediaItemItemOneOf, b8 as StaffMember, bb as StaffMemberDetails, ap as Status, ei as StatusWithLiterals, aP as StreetAddress, dP as SupportedLanguage, bm as Tag, dM as TimePeriod, dR as Translation, bi as URLs, bJ as UpdateAddOnGroupRequest, c3 as UpdateServiceRequest, c4 as UpdateServiceResponse, br as Upsert, dA as UserDomainInfoChangedEvent, aA as V2Category, ab as V2RequestedFields, e4 as V2RequestedFieldsWithLiterals, bR as ValidateServiceRequest, bS as ValidateServiceResponse, dn as ValidateSlugRequest, ct as ValueAggregation, cu as ValueAggregationOptionsOneOf, cG as ValueAggregationResult, cO as ValueResult, cK as ValueResults, aI as VariedPayment, a_ as WaitlistPolicy, aa as WebhookIdentityType, e3 as WebhookIdentityTypeWithLiterals } from './bookings-services-v2-service-services.universal-KorTqIDU.js';
|
|
4
4
|
|
|
5
|
+
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
6
|
+
interface CreateAddOnGroupSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Create a new AddOns group.
|
|
9
|
+
* An AddOns group defines a collection of AddOns that can be linked to a Service,
|
|
10
|
+
* with constraints such as minimum and maximum selections.
|
|
11
|
+
* @param - AddOnGroup to create.
|
|
12
|
+
*/
|
|
13
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options?: CreateAddOnGroupOptions): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
14
|
+
}
|
|
15
|
+
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
16
|
+
interface DeleteAddOnGroupSignature {
|
|
17
|
+
/**
|
|
18
|
+
* Delete an existing AddOns group.
|
|
19
|
+
* This will remove the group and unlink all associated AddOns.
|
|
20
|
+
* @param - ID of the AddOnGroup to delete.
|
|
21
|
+
*/
|
|
22
|
+
(addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`, 2>): Promise<void & {
|
|
23
|
+
__applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
|
|
24
|
+
}>;
|
|
25
|
+
}
|
|
26
|
+
declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
|
|
27
|
+
interface UpdateAddOnGroupSignature {
|
|
28
|
+
/**
|
|
29
|
+
* Update an existing AddOns group.
|
|
30
|
+
* This allows modifying group settings such as its name, prompt, constraints, or associated AddOns.
|
|
31
|
+
* @param - AddOnGroup to update.
|
|
32
|
+
*/
|
|
33
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
34
|
+
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
38
|
+
interface ListAddOnGroupsByServiceIdSignature {
|
|
39
|
+
/**
|
|
40
|
+
* Retrieves a list of AddOnGroups including enriched AddOn details in the correct order.
|
|
41
|
+
* If the group_id is specified, only the AddOns for the specified group will be returned,
|
|
42
|
+
* otherwise all groups will be returned.
|
|
43
|
+
* @param - ID of the service to retrieve AddOnGroups for.
|
|
44
|
+
*/
|
|
45
|
+
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
46
|
+
}
|
|
47
|
+
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
48
|
+
interface SetAddOnsForGroupSignature {
|
|
49
|
+
/**
|
|
50
|
+
* Sets the AddOns for a specific group.
|
|
51
|
+
* The order of the AddOns in the list will be used to determine their display order.
|
|
52
|
+
* @param - The service ID to set AddOns for.
|
|
53
|
+
*/
|
|
54
|
+
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`, 2>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
55
|
+
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
56
|
+
}>;
|
|
57
|
+
}
|
|
5
58
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
6
59
|
interface CreateServiceSignature {
|
|
7
60
|
/**
|
|
8
61
|
* Creates a service.
|
|
9
62
|
*
|
|
10
63
|
*
|
|
11
|
-
* ### Required fields
|
|
64
|
+
* ### Required fields
|
|
12
65
|
*
|
|
13
66
|
* When creating a service you must specify the following fields:
|
|
14
67
|
* - `type`
|
|
@@ -48,13 +101,6 @@ interface CreateServiceSignature {
|
|
|
48
101
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/service-options-and-variants/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/service-options-and-variants/introduction)).
|
|
49
102
|
* - It is mandatory to specify `schedule.availabilityConstraints.sessionDurations`,
|
|
50
103
|
* even though these values are ignored.
|
|
51
|
-
*
|
|
52
|
-
* ### App ID
|
|
53
|
-
*
|
|
54
|
-
* By default, services are associated with Wix Bookings `{"appId": "13d21c63-b5ec-5912-8397-c3a5ddb27a97}`. Only these services are displayed in Wix Bookings.
|
|
55
|
-
*
|
|
56
|
-
* You can specify a different app ID. For example, `{"appId": "cc552162-24a4-45e0-9695-230c4931ef40"}` for [Wix Services](https://support.wix.com/en/article/about-wix-services).
|
|
57
|
-
* Note that you can't update a service's `appId`.
|
|
58
104
|
* @param - Service to create.
|
|
59
105
|
* @returns Created service.
|
|
60
106
|
*/
|
|
@@ -621,63 +667,15 @@ interface CloneServiceSignature {
|
|
|
621
667
|
*/
|
|
622
668
|
(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` | `errors`, 7>>;
|
|
623
669
|
}
|
|
624
|
-
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
625
|
-
interface CreateAddOnGroupSignature {
|
|
626
|
-
/**
|
|
627
|
-
* Create a new AddOns group.
|
|
628
|
-
* An AddOns group defines a collection of AddOns that can be linked to a Service,
|
|
629
|
-
* with constraints such as minimum and maximum selections.
|
|
630
|
-
* @param - AddOnGroup to create.
|
|
631
|
-
*/
|
|
632
|
-
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options?: CreateAddOnGroupOptions): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
633
|
-
}
|
|
634
|
-
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
635
|
-
interface DeleteAddOnGroupSignature {
|
|
636
|
-
/**
|
|
637
|
-
* Delete an existing AddOns group.
|
|
638
|
-
* This will remove the group and unlink all associated AddOns.
|
|
639
|
-
* @param - ID of the AddOnGroup 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
|
-
* Update an existing AddOns group.
|
|
649
|
-
* This allows modifying group settings such as its name, prompt, constraints, or associated AddOns.
|
|
650
|
-
* @param - AddOnGroup to update.
|
|
651
|
-
*/
|
|
652
|
-
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
653
|
-
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
654
|
-
}>;
|
|
655
|
-
}
|
|
656
|
-
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
657
|
-
interface ListAddOnGroupsByServiceIdSignature {
|
|
658
|
-
/**
|
|
659
|
-
* Retrieves a list of AddOnGroups including enriched AddOn details in the correct order.
|
|
660
|
-
* If the group_id is specified, only the AddOns for the specified group will be returned,
|
|
661
|
-
* otherwise all groups will be returned.
|
|
662
|
-
* @param - ID of the service to retrieve AddOnGroups for.
|
|
663
|
-
*/
|
|
664
|
-
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
665
|
-
}
|
|
666
|
-
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
667
|
-
interface SetAddOnsForGroupSignature {
|
|
668
|
-
/**
|
|
669
|
-
* Sets the AddOns for a specific group.
|
|
670
|
-
* The order of the AddOns in the list will be used to determine their display order.
|
|
671
|
-
* @param - The service ID to set AddOns for.
|
|
672
|
-
*/
|
|
673
|
-
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`, 2>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
674
|
-
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
675
|
-
}>;
|
|
676
|
-
}
|
|
677
670
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
678
671
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|
|
679
672
|
declare const onServiceUpdated$1: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
|
|
680
673
|
|
|
674
|
+
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
675
|
+
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
676
|
+
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
677
|
+
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
678
|
+
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
681
679
|
declare const createService: MaybeContext<BuildRESTFunction<typeof createService$1> & typeof createService$1>;
|
|
682
680
|
declare const bulkCreateServices: MaybeContext<BuildRESTFunction<typeof bulkCreateServices$1> & typeof bulkCreateServices$1>;
|
|
683
681
|
declare const getService: MaybeContext<BuildRESTFunction<typeof getService$1> & typeof getService$1>;
|
|
@@ -700,11 +698,6 @@ declare const disablePricingPlansForService: MaybeContext<BuildRESTFunction<type
|
|
|
700
698
|
declare const setCustomSlug: MaybeContext<BuildRESTFunction<typeof setCustomSlug$1> & typeof setCustomSlug$1>;
|
|
701
699
|
declare const validateSlug: MaybeContext<BuildRESTFunction<typeof validateSlug$1> & typeof validateSlug$1>;
|
|
702
700
|
declare const cloneService: MaybeContext<BuildRESTFunction<typeof cloneService$1> & typeof cloneService$1>;
|
|
703
|
-
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
704
|
-
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
705
|
-
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
706
|
-
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
707
|
-
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
708
701
|
/**
|
|
709
702
|
* Triggered when a service is created.
|
|
710
703
|
*/
|