@wix/auto_sdk_bookings_services 1.0.73 → 1.0.74
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-B_To7DFS.d.ts → bookings-services-v2-service-services.universal-D6jEh8MN.d.ts} +486 -486
- package/build/cjs/index.d.ts +69 -69
- package/build/cjs/index.js +343 -343
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +299 -299
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +174 -174
- package/build/cjs/meta.js +220 -220
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-B_To7DFS.d.mts → bookings-services-v2-service-services.universal-D6jEh8MN.d.mts} +486 -486
- package/build/es/index.d.mts +69 -69
- package/build/es/index.mjs +343 -343
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +299 -299
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +174 -174
- package/build/es/meta.mjs +220 -220
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-B_To7DFS.d.ts → bookings-services-v2-service-services.universal-D6jEh8MN.d.ts} +486 -486
- package/build/internal/cjs/index.d.ts +69 -69
- package/build/internal/cjs/index.js +343 -343
- 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 +299 -299
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +174 -174
- package/build/internal/cjs/meta.js +220 -220
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-B_To7DFS.d.mts → bookings-services-v2-service-services.universal-D6jEh8MN.d.mts} +486 -486
- package/build/internal/es/index.d.mts +69 -69
- package/build/internal/es/index.mjs +343 -343
- 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 +299 -299
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +174 -174
- package/build/internal/es/meta.mjs +220 -220
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,69 +1,8 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export { an as Action, bD as ActionEvent,
|
|
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 ServicesQueryBuilder, l as ServiceSearch, m as SearchServicesResponse, n as CursorQuery, Q as QueryPoliciesResponse, o as QueryBookingFormsOptions, p as QueryBookingFormsResponse, q as QueryBookingFormsApplicationErrors, r as CountServicesOptions, s as CountServicesResponse, t as QueryLocationsOptions, u as QueryLocationsResponse, v as QueryCategoriesOptions, w as QueryCategoriesResponse, L as Location, x as SetServiceLocationsOptions, y as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, z as EnablePricingPlansForServiceApplicationErrors, A as DisablePricingPlansForServiceOptions, F as DisablePricingPlansForServiceResponse, G as DisablePricingPlansForServiceApplicationErrors, H as SetCustomSlugOptions, I as SetCustomSlugResponse, J as SetCustomSlugApplicationErrors, K as SetCustomSlugValidationErrors, V as ValidateSlugOptions, M as ValidateSlugResponse, N as CloneServiceResponse, O as AddOnGroup, P as CreateAddOnGroupOptions, R as CreateAddOnGroupResponse, T as DeleteAddOnGroupOptions, W as DeleteAddOnGroupApplicationErrors, X as UpdateAddOnGroupOptions, Y as UpdateAddOnGroupResponse, Z as UpdateAddOnGroupApplicationErrors, _ as ListAddOnGroupsByServiceIdOptions, $ as ListAddOnGroupsByServiceIdResponse, a0 as SetAddOnsForGroupOptions, a1 as SetAddOnsForGroupResponse, a2 as SetAddOnsForGroupApplicationErrors, a3 as ValidateAddOnsSelectionOptions, a4 as ValidateAddOnsSelectionResponse, a5 as ServiceCreatedEnvelope, a6 as ServiceDeletedEnvelope, a7 as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-D6jEh8MN.js';
|
|
3
|
+
export { an as Action, bD as ActionEvent, dU as AddOn, dV as AddOnAddOnInfoOneOf, bp as AddOnDetails, dW as AddOnGroupDetail, dA as Address, dB as AddressHint, aR as AddressLocation, ch as Aggregation, cx as AggregationData, ci as AggregationKindOneOf, cQ as AggregationResults, cR as AggregationResultsResultOneOf, cE as AggregationResultsScalarResult, ak as AggregationType, bP as ApplicationError, b7 as AvailabilityConstraints, d_ as BaseEventMetadata, dq as Behavior, dr as BehaviorBehaviorOneOf, dl as Benefit, dk as BenefitNotification, as as BenefitType, aY as BookAfterStartPolicy, cW as BookingForm, aU as BookingPolicy, cU as BookingPolicyWithServices, bQ as BulkActionMetadata, bM as BulkCreateServicesRequest, c4 as BulkDeleteServicesByFilterRequest, c3 as BulkDeleteServicesRequest, bN as BulkServiceResult, b$ as BulkUpdateServicesByFilterRequest, bZ as BulkUpdateServicesRequest, aS as BusinessLocationOptions, d0 as BusinessLocations, dD as BusinessSchedule, b2 as CancellationFeePolicy, aZ as CancellationPolicy, b3 as CancellationWindow, b4 as CancellationWindowFeeOneOf, dy as Categories, di as Category, dh as CategoryNotification, ar as CategoryNotificationEvent, dK as ChangeContext, dL as ChangeContextPayloadOneOf, ap as CloneErrors, dg as CloneServiceRequest, aO as CommonAddress, aP as CommonAddressStreetOneOf, aM as Conferencing, cY as ConnectedService, dI as ConsentPolicy, cZ as CountServicesRequest, dP as CreateAddOnGroupRequest, bH as CreateServiceRequest, bI as CreateServiceResponse, au as CrudType, ca as CursorPaging, cw as CursorPagingMetadata, cT as CursorQueryPagingMethodOneOf, cf as CursorSearch, cg as CursorSearchPagingMethodOneOf, cd as Cursors, aT as CustomLocationOptions, d1 as CustomLocations, aI as CustomPayment, d2 as CustomerLocations, cp as DateHistogramAggregation, cM as DateHistogramResult, cO as DateHistogramResults, aw as DayOfWeek, bt as Delete, dQ as DeleteAddOnGroupRequest, dR as DeleteAddOnGroupResponse, c0 as DeleteServiceRequest, c2 as DeleteServiceResponse, dd as DisablePricingPlansForServiceRequest, dn as Discount, dp as DiscountDiscountOneOf, bx as DomainEvent, by as DomainEventBodyOneOf, b8 as Duration, dj as Empty, db as EnablePricingPlansForServiceRequest, bz as EntityCreatedEvent, bC as EntityDeletedEvent, bB as EntityUpdatedEvent, dm as EntryPass, at as Event, d$ as EventMetadata, bk as ExtendedFields, bL as FieldViolation, aG as FixedPayment, aC as Form, cX as FormDetails, aD as FormSettings, dC as GeoCoordinates, bT as GetServiceAvailabilityConstraintsRequest, bU as GetServiceAvailabilityConstraintsResponse, bR as GetServiceRequest, bS as GetServiceResponse, ct as GroupByAggregation, cu as GroupByAggregationKindOneOf, cN as GroupByValueResults, dt as HtmlSitePublished, bF as IdentificationData, bG as IdentificationDataIdOneOf, ck as IncludeMissingValuesOptions, aj as Interval, dc as InvalidPricingPlan, ao as InvalidSlugError, bO as ItemMetadata, bm as Keyword, aW as LimitEarlyBookingPolicy, aX as LimitLateBookingPolicy, dT as ListAddOnGroupsByServiceIdRequest, dz as Locale, aN as LocationOptionsOneOf, aa as LocationType, b_ as MaskedService, ay as Media, az as MediaItem, aA as MediaItemItemOneOf, bE as MessageEnvelope, ag as MissingValues, al as Mode, aH as Money, da as MoveToNewLocationsOptions, dG as Multilingual, cs as NestedAggregation, cq as NestedAggregationItem, cr as NestedAggregationItemKindOneOf, cA as NestedAggregationResults, cB as NestedAggregationResultsResultOneOf, ai as NestedAggregationType, cJ as NestedResultValue, cK as NestedResultValueResultOneOf, cP as NestedResults, cF as NestedValueAggregationResult, aL as OnlineBooking, du as Page, c9 as Paging, cc as PagingMetadataV2, c1 as ParticipantNotification, b0 as ParticipantsPolicy, aE as Payment, aK as PaymentOptions, aF as PaymentRateOneOf, av as PlacementType, aV as PolicyDescription, dx as Properties, dM as PropertiesChange, cV as QueryBookingFormsRequest, d4 as QueryCategoriesFilter, d3 as QueryCategoriesRequest, c$ as QueryLocationsFilter, c_ as QueryLocationsRequest, cS as QueryPoliciesRequest, d5 as QueryServicesMultiLanguageRequest, d6 as QueryServicesMultiLanguageResponse, c5 as QueryServicesRequest, cb as QueryServicesResponse, c6 as QueryV2, c7 as QueryV2PagingMethodOneOf, cn as RangeAggregation, cz as RangeAggregationResult, cj as RangeBucket, cH as RangeResult, cD as RangeResults, a9 as RateType, bq as ReindexMessage, br as ReindexMessageActionOneOf, d8 as RemovedLocationSessionsAction, d9 as RemovedLocationSessionsActionActionOptionsOneOf, am as RequestedFields, a_ as ReschedulePolicy, ax as ResolutionMethod, bd as ResourceGroup, be as ResourceIds, bh as ResourceType, b1 as ResourcesPolicy, bA as RestoreInfo, cL as Results, b5 as SaveCreditCardPolicy, co as ScalarAggregation, cI as ScalarResult, ah as ScalarType, b6 as Schedule, bu as Schema, cv as SearchDetails, ce as SearchServicesRequest, bl as SeoSchema, bV as ServiceAvailabilityConstraints, bf as ServiceResource, bg as ServiceResourceSelectionOneOf, e1 as ServiceSearchSpec, a8 as ServiceType, e0 as ServicesQueryResult, bw as ServicesUrlsChanged, dX as SetAddOnsForGroupRequest, bv as SetCustomSlugEvent, de as SetCustomSlugRequest, d7 as SetServiceLocationsRequest, bo as Settings, dO as SiteCloned, dN as SiteCreated, dw as SitePropertiesEvent, dv as SitePropertiesNotification, bi as Slug, af as SortDirection, ad as SortOrder, ae as SortType, c8 as Sorting, dF as SpecialHourPeriod, bW as SplitInterval, ba as StaffMediaItem, bb as StaffMediaItemItemOneOf, b9 as StaffMember, bc as StaffMemberDetails, aq as Status, aQ as StreetAddress, dH as SupportedLanguage, bn as Tag, dE as TimePeriod, dJ as Translation, bj as URLs, dS as UpdateAddOnGroupRequest, bX as UpdateServiceRequest, bY as UpdateServiceResponse, bs as Upsert, ds as UserDomainInfoChangedEvent, aB as V2Category, ac as V2RequestedFields, dY as ValidateAddOnsSelectionRequest, bJ as ValidateServiceRequest, bK as ValidateServiceResponse, df as ValidateSlugRequest, dZ as ValidationResult, cl as ValueAggregation, cm as ValueAggregationOptionsOneOf, cy as ValueAggregationResult, cG as ValueResult, cC as ValueResults, aJ as VariedPayment, a$ as WaitlistPolicy, ab as WebhookIdentityType } from './bookings-services-v2-service-services.universal-D6jEh8MN.js';
|
|
4
4
|
|
|
5
5
|
type ServiceNonNullablePaths = `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.business.address.streetAddress.number` | `locations.${number}.business.address.streetAddress.name` | `locations.${number}.business.address.streetAddress.apt` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `mainSlug.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`;
|
|
6
|
-
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
7
|
-
interface CreateAddOnGroupSignature {
|
|
8
|
-
/**
|
|
9
|
-
* Create a new AddOns group.
|
|
10
|
-
* An AddOns group defines a collection of AddOns that can be linked to a Service,
|
|
11
|
-
* with constraints such as minimum and maximum selections.
|
|
12
|
-
* @param - AddOnGroup to create.
|
|
13
|
-
*/
|
|
14
|
-
(addOnGroup: NonNullablePaths<AddOnGroup, `name`>, options?: CreateAddOnGroupOptions): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`>>;
|
|
15
|
-
}
|
|
16
|
-
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
17
|
-
interface DeleteAddOnGroupSignature {
|
|
18
|
-
/**
|
|
19
|
-
* Delete an existing AddOns group.
|
|
20
|
-
* This will remove the group and unlink all associated AddOns.
|
|
21
|
-
* @param - ID of the AddOnGroup to delete.
|
|
22
|
-
*/
|
|
23
|
-
(addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`>): Promise<void & {
|
|
24
|
-
__applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
|
|
25
|
-
}>;
|
|
26
|
-
}
|
|
27
|
-
declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
|
|
28
|
-
interface UpdateAddOnGroupSignature {
|
|
29
|
-
/**
|
|
30
|
-
* Update an existing AddOns group.
|
|
31
|
-
* This allows modifying group settings such as its name, prompt, constraints, or associated AddOns.
|
|
32
|
-
* @param - AddOnGroup to update.
|
|
33
|
-
*/
|
|
34
|
-
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`> & {
|
|
35
|
-
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
36
|
-
}>;
|
|
37
|
-
}
|
|
38
|
-
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
39
|
-
interface ListAddOnGroupsByServiceIdSignature {
|
|
40
|
-
/**
|
|
41
|
-
* Retrieves a list of AddOnGroups including enriched AddOn details in the correct order.
|
|
42
|
-
* If the group_id is specified, only the AddOns for the specified group will be returned,
|
|
43
|
-
* otherwise all groups will be returned.
|
|
44
|
-
* @param - ID of the service to retrieve AddOnGroups for.
|
|
45
|
-
*/
|
|
46
|
-
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`>>;
|
|
47
|
-
}
|
|
48
|
-
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
49
|
-
interface SetAddOnsForGroupSignature {
|
|
50
|
-
/**
|
|
51
|
-
* Sets the AddOns for a specific group.
|
|
52
|
-
* The order of the AddOns in the list will be used to determine their display order.
|
|
53
|
-
* @param - The service ID to set AddOns for.
|
|
54
|
-
*/
|
|
55
|
-
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`> & {
|
|
56
|
-
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
57
|
-
}>;
|
|
58
|
-
}
|
|
59
|
-
declare function validateAddOnsSelection$1(httpClient: HttpClient): ValidateAddOnsSelectionSignature;
|
|
60
|
-
interface ValidateAddOnsSelectionSignature {
|
|
61
|
-
/**
|
|
62
|
-
* Validates the selection of AddOns for a given group based on the group's settings.
|
|
63
|
-
* @param - The service ID to validate AddOns against.
|
|
64
|
-
*/
|
|
65
|
-
(serviceId: string, options: NonNullablePaths<ValidateAddOnsSelectionOptions, `addOnIds` | `groupId`>): Promise<ValidateAddOnsSelectionResponse>;
|
|
66
|
-
}
|
|
67
6
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
68
7
|
interface CreateServiceSignature {
|
|
69
8
|
/**
|
|
@@ -694,16 +633,71 @@ interface CloneServiceSignature {
|
|
|
694
633
|
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
695
634
|
}[ServiceNonNullablePaths] | `errors`>>;
|
|
696
635
|
}
|
|
636
|
+
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
637
|
+
interface CreateAddOnGroupSignature {
|
|
638
|
+
/**
|
|
639
|
+
* Create a new AddOns group.
|
|
640
|
+
* An AddOns group defines a collection of AddOns that can be linked to a Service,
|
|
641
|
+
* with constraints such as minimum and maximum selections.
|
|
642
|
+
* @param - AddOnGroup to create.
|
|
643
|
+
*/
|
|
644
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `name`>, options?: CreateAddOnGroupOptions): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`>>;
|
|
645
|
+
}
|
|
646
|
+
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
647
|
+
interface DeleteAddOnGroupSignature {
|
|
648
|
+
/**
|
|
649
|
+
* Delete an existing AddOns group.
|
|
650
|
+
* This will remove the group and unlink all associated AddOns.
|
|
651
|
+
* @param - ID of the AddOnGroup to delete.
|
|
652
|
+
*/
|
|
653
|
+
(addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`>): Promise<void & {
|
|
654
|
+
__applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
|
|
655
|
+
}>;
|
|
656
|
+
}
|
|
657
|
+
declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
|
|
658
|
+
interface UpdateAddOnGroupSignature {
|
|
659
|
+
/**
|
|
660
|
+
* Update an existing AddOns group.
|
|
661
|
+
* This allows modifying group settings such as its name, prompt, constraints, or associated AddOns.
|
|
662
|
+
* @param - AddOnGroup to update.
|
|
663
|
+
*/
|
|
664
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`> & {
|
|
665
|
+
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
666
|
+
}>;
|
|
667
|
+
}
|
|
668
|
+
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
669
|
+
interface ListAddOnGroupsByServiceIdSignature {
|
|
670
|
+
/**
|
|
671
|
+
* Retrieves a list of AddOnGroups including enriched AddOn details in the correct order.
|
|
672
|
+
* If the group_id is specified, only the AddOns for the specified group will be returned,
|
|
673
|
+
* otherwise all groups will be returned.
|
|
674
|
+
* @param - ID of the service to retrieve AddOnGroups for.
|
|
675
|
+
*/
|
|
676
|
+
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`>>;
|
|
677
|
+
}
|
|
678
|
+
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
679
|
+
interface SetAddOnsForGroupSignature {
|
|
680
|
+
/**
|
|
681
|
+
* Sets the AddOns for a specific group.
|
|
682
|
+
* The order of the AddOns in the list will be used to determine their display order.
|
|
683
|
+
* @param - The service ID to set AddOns for.
|
|
684
|
+
*/
|
|
685
|
+
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`> & {
|
|
686
|
+
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
687
|
+
}>;
|
|
688
|
+
}
|
|
689
|
+
declare function validateAddOnsSelection$1(httpClient: HttpClient): ValidateAddOnsSelectionSignature;
|
|
690
|
+
interface ValidateAddOnsSelectionSignature {
|
|
691
|
+
/**
|
|
692
|
+
* Validates the selection of AddOns for a given group based on the group's settings.
|
|
693
|
+
* @param - The service ID to validate AddOns against.
|
|
694
|
+
*/
|
|
695
|
+
(serviceId: string, options: NonNullablePaths<ValidateAddOnsSelectionOptions, `addOnIds` | `groupId`>): Promise<ValidateAddOnsSelectionResponse>;
|
|
696
|
+
}
|
|
697
697
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
698
698
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|
|
699
699
|
declare const onServiceUpdated$1: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
|
|
700
700
|
|
|
701
|
-
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
702
|
-
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
703
|
-
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
704
|
-
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
705
|
-
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
706
|
-
declare const validateAddOnsSelection: MaybeContext<BuildRESTFunction<typeof validateAddOnsSelection$1> & typeof validateAddOnsSelection$1>;
|
|
707
701
|
declare const createService: MaybeContext<BuildRESTFunction<typeof createService$1> & typeof createService$1>;
|
|
708
702
|
declare const bulkCreateServices: MaybeContext<BuildRESTFunction<typeof bulkCreateServices$1> & typeof bulkCreateServices$1>;
|
|
709
703
|
declare const getService: MaybeContext<BuildRESTFunction<typeof getService$1> & typeof getService$1>;
|
|
@@ -726,6 +720,12 @@ declare const disablePricingPlansForService: MaybeContext<BuildRESTFunction<type
|
|
|
726
720
|
declare const setCustomSlug: MaybeContext<BuildRESTFunction<typeof setCustomSlug$1> & typeof setCustomSlug$1>;
|
|
727
721
|
declare const validateSlug: MaybeContext<BuildRESTFunction<typeof validateSlug$1> & typeof validateSlug$1>;
|
|
728
722
|
declare const cloneService: MaybeContext<BuildRESTFunction<typeof cloneService$1> & typeof cloneService$1>;
|
|
723
|
+
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
724
|
+
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
725
|
+
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
726
|
+
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
727
|
+
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
728
|
+
declare const validateAddOnsSelection: MaybeContext<BuildRESTFunction<typeof validateAddOnsSelection$1> & typeof validateAddOnsSelection$1>;
|
|
729
729
|
/**
|
|
730
730
|
* Triggered when a service is created.
|
|
731
731
|
*/
|