@wix/auto_sdk_bookings_services 1.0.113 → 1.0.114
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-KorTqIDU.d.ts → bookings-services-v2-service-services.universal-DKi7EvxV.d.ts} +377 -377
- package/build/cjs/index.d.ts +60 -60
- package/build/cjs/index.js +316 -316
- 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 -138
- package/build/cjs/meta.js +185 -185
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-KorTqIDU.d.mts → bookings-services-v2-service-services.universal-DKi7EvxV.d.mts} +377 -377
- package/build/es/index.d.mts +60 -60
- package/build/es/index.mjs +316 -316
- 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 -138
- 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-KorTqIDU.d.ts → bookings-services-v2-service-services.universal-DKi7EvxV.d.ts} +377 -377
- package/build/internal/cjs/index.d.ts +60 -60
- package/build/internal/cjs/index.js +316 -316
- 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 -138
- 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-KorTqIDU.d.mts → bookings-services-v2-service-services.universal-DKi7EvxV.d.mts} +377 -377
- package/build/internal/es/index.d.mts +60 -60
- package/build/internal/es/index.mjs +316 -316
- 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 -138
- package/build/internal/es/meta.mjs +185 -185
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -1,60 +1,7 @@
|
|
|
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 { 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 ServiceCreatedEnvelope, a4 as ServiceDeletedEnvelope, a5 as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-DKi7EvxV.mjs';
|
|
3
|
+
export { am as Action, bC as ActionEvent, ef as ActionWithLiterals, dT as AddOn, dU as AddOnAddOnInfoOneOf, bo as AddOnDetails, dV as AddOnGroupDetail, a8 as AddOnPaymentOptions, e1 as AddOnPaymentOptionsWithLiterals, dz as Address, dA as AddressHint, aQ as AddressLocation, cg as Aggregation, cw as AggregationData, ch as AggregationKindOneOf, cP as AggregationResults, cQ as AggregationResultsResultOneOf, cD as AggregationResultsScalarResult, aj as AggregationType, ec as AggregationTypeWithLiterals, bO as ApplicationError, b6 as AvailabilityConstraints, dX as BaseEventMetadata, dp as Behavior, dq as BehaviorBehaviorOneOf, dk as Benefit, dj as BenefitNotification, ar as BenefitType, ek as BenefitTypeWithLiterals, aX as BookAfterStartPolicy, cV as BookingForm, aT as BookingPolicy, cT as BookingPolicyWithServices, bP as BulkActionMetadata, bL as BulkCreateServicesRequest, c3 as BulkDeleteServicesByFilterRequest, c2 as BulkDeleteServicesRequest, bM as BulkServiceResult, b_ as BulkUpdateServicesByFilterRequest, bY as BulkUpdateServicesRequest, aR as BusinessLocationOptions, c$ as BusinessLocations, dC as BusinessSchedule, b1 as CancellationFeePolicy, aY as CancellationPolicy, b2 as CancellationWindow, b3 as CancellationWindowFeeOneOf, dx as Categories, dh as Category, dg as CategoryNotification, aq as CategoryNotificationEvent, ej as CategoryNotificationEventWithLiterals, dJ as ChangeContext, dK as ChangeContextPayloadOneOf, ao as CloneErrors, eh as CloneErrorsWithLiterals, df as CloneServiceRequest, aN as CommonAddress, aO as CommonAddressStreetOneOf, eq as CommonSearchWithEntityContext, aL as Conferencing, cX as ConnectedService, dH as ConsentPolicy, cY as CountServicesRequest, dO as CreateAddOnGroupRequest, bG as CreateServiceRequest, bH as CreateServiceResponse, at as CrudType, em as CrudTypeWithLiterals, c9 as CursorPaging, cv as CursorPagingMetadata, cS as CursorQueryPagingMethodOneOf, ce as CursorSearch, cf as CursorSearchPagingMethodOneOf, cc as Cursors, aS as CustomLocationOptions, d0 as CustomLocations, aH as CustomPayment, d1 as CustomerLocations, co as DateHistogramAggregation, cL as DateHistogramResult, cN as DateHistogramResults, av as DayOfWeek, eo as DayOfWeekWithLiterals, bs as Delete, dP as DeleteAddOnGroupRequest, dQ as DeleteAddOnGroupResponse, b$ as DeleteServiceRequest, c1 as DeleteServiceResponse, dc as DisablePricingPlansForServiceRequest, dm as Discount, dn as DiscountDiscountOneOf, bw as DomainEvent, bx as DomainEventBodyOneOf, b7 as Duration, di as Empty, da as EnablePricingPlansForServiceRequest, by as EntityCreatedEvent, bB as EntityDeletedEvent, bA as EntityUpdatedEvent, dl as EntryPass, as as Event, dY as EventMetadata, el as EventWithLiterals, bj as ExtendedFields, bK as FieldViolation, aF as FixedPayment, aB as Form, cW as FormDetails, aC as FormSettings, dB as GeoCoordinates, bS as GetServiceAvailabilityConstraintsRequest, bT as GetServiceAvailabilityConstraintsResponse, bQ as GetServiceRequest, bR as GetServiceResponse, cs as GroupByAggregation, ct as GroupByAggregationKindOneOf, cM as GroupByValueResults, ds as HtmlSitePublished, bE as IdentificationData, bF as IdentificationDataIdOneOf, cj as IncludeMissingValuesOptions, ai as Interval, eb as IntervalWithLiterals, db as InvalidPricingPlan, an as InvalidSlugError, eg as InvalidSlugErrorWithLiterals, bN as ItemMetadata, bl as Keyword, aV as LimitEarlyBookingPolicy, aW as LimitLateBookingPolicy, dS as ListAddOnGroupsByServiceIdRequest, dy as Locale, aM as LocationOptionsOneOf, a9 as LocationType, e2 as LocationTypeWithLiterals, bZ 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, d9 as MoveToNewLocationsOptions, dF as Multilingual, cr as NestedAggregation, cp as NestedAggregationItem, cq as NestedAggregationItemKindOneOf, cz as NestedAggregationResults, cA as NestedAggregationResultsResultOneOf, ah as NestedAggregationType, ea as NestedAggregationTypeWithLiterals, cI as NestedResultValue, cJ as NestedResultValueResultOneOf, cO as NestedResults, cE as NestedValueAggregationResult, aK as OnlineBooking, dt as Page, c8 as Paging, cb as PagingMetadataV2, c0 as ParticipantNotification, a$ as ParticipantsPolicy, aD as Payment, aJ as PaymentOptions, aE as PaymentRateOneOf, au as PlacementType, en as PlacementTypeWithLiterals, aU as PolicyDescription, dw as Properties, dL as PropertiesChange, cU as QueryBookingFormsRequest, d3 as QueryCategoriesFilter, d2 as QueryCategoriesRequest, c_ as QueryLocationsFilter, cZ as QueryLocationsRequest, cR as QueryPoliciesRequest, d4 as QueryServicesMultiLanguageRequest, d5 as QueryServicesMultiLanguageResponse, c4 as QueryServicesRequest, ca as QueryServicesResponse, c5 as QueryV2, c6 as QueryV2PagingMethodOneOf, cm as RangeAggregation, cy as RangeAggregationResult, ci as RangeBucket, cG as RangeResult, cC as RangeResults, a7 as RateType, e0 as RateTypeWithLiterals, bp as ReindexMessage, bq as ReindexMessageActionOneOf, d7 as RemovedLocationSessionsAction, d8 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, cK as Results, b4 as SaveCreditCardPolicy, cn as ScalarAggregation, cH as ScalarResult, ag as ScalarType, e9 as ScalarTypeWithLiterals, b5 as Schedule, bt as Schema, cu as SearchDetails, cd as SearchServicesRequest, bk as SeoSchema, bU as ServiceAvailabilityConstraints, be as ServiceResource, bf as ServiceResourceSelectionOneOf, d_ as ServiceSearchSpec, a6 as ServiceType, d$ as ServiceTypeWithLiterals, dZ as ServicesQueryResult, bv as ServicesUrlsChanged, dW as SetAddOnsForGroupRequest, bu as SetCustomSlugEvent, dd as SetCustomSlugRequest, d6 as SetServiceLocationsRequest, bn as Settings, dN as SiteCloned, dM as SiteCreated, dv as SitePropertiesEvent, du as SitePropertiesNotification, bh as Slug, ae as SortDirection, e7 as SortDirectionWithLiterals, ac as SortOrder, e5 as SortOrderWithLiterals, ad as SortType, e6 as SortTypeWithLiterals, c7 as Sorting, dE as SpecialHourPeriod, bV as SplitInterval, b9 as StaffMediaItem, ba as StaffMediaItemItemOneOf, b8 as StaffMember, bb as StaffMemberDetails, ap as Status, ei as StatusWithLiterals, aP as StreetAddress, dG as SupportedLanguage, bm as Tag, dD as TimePeriod, dI as Translation, bi as URLs, dR as UpdateAddOnGroupRequest, bW as UpdateServiceRequest, bX as UpdateServiceResponse, br as Upsert, dr as UserDomainInfoChangedEvent, aA as V2Category, ab as V2RequestedFields, e4 as V2RequestedFieldsWithLiterals, bI as ValidateServiceRequest, bJ as ValidateServiceResponse, de as ValidateSlugRequest, ck as ValueAggregation, cl as ValueAggregationOptionsOneOf, cx as ValueAggregationResult, cF as ValueResult, cB as ValueResults, aI as VariedPayment, a_ as WaitlistPolicy, aa as WebhookIdentityType, e3 as WebhookIdentityTypeWithLiterals } from './bookings-services-v2-service-services.universal-DKi7EvxV.mjs';
|
|
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
|
-
}
|
|
58
5
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
59
6
|
interface CreateServiceSignature {
|
|
60
7
|
/**
|
|
@@ -667,15 +614,63 @@ interface CloneServiceSignature {
|
|
|
667
614
|
*/
|
|
668
615
|
(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>>;
|
|
669
616
|
}
|
|
617
|
+
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
618
|
+
interface CreateAddOnGroupSignature {
|
|
619
|
+
/**
|
|
620
|
+
* Create a new AddOns group.
|
|
621
|
+
* An AddOns group defines a collection of AddOns that can be linked to a Service,
|
|
622
|
+
* with constraints such as minimum and maximum selections.
|
|
623
|
+
* @param - AddOnGroup to create.
|
|
624
|
+
*/
|
|
625
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options?: CreateAddOnGroupOptions): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
626
|
+
}
|
|
627
|
+
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
628
|
+
interface DeleteAddOnGroupSignature {
|
|
629
|
+
/**
|
|
630
|
+
* Delete an existing AddOns group.
|
|
631
|
+
* This will remove the group and unlink all associated AddOns.
|
|
632
|
+
* @param - ID of the AddOnGroup to delete.
|
|
633
|
+
*/
|
|
634
|
+
(addOnGroupId: string, options: NonNullablePaths<DeleteAddOnGroupOptions, `serviceId`, 2>): Promise<void & {
|
|
635
|
+
__applicationErrorsType?: DeleteAddOnGroupApplicationErrors;
|
|
636
|
+
}>;
|
|
637
|
+
}
|
|
638
|
+
declare function updateAddOnGroup$1(httpClient: HttpClient): UpdateAddOnGroupSignature;
|
|
639
|
+
interface UpdateAddOnGroupSignature {
|
|
640
|
+
/**
|
|
641
|
+
* Update an existing AddOns group.
|
|
642
|
+
* This allows modifying group settings such as its name, prompt, constraints, or associated AddOns.
|
|
643
|
+
* @param - AddOnGroup to update.
|
|
644
|
+
*/
|
|
645
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
646
|
+
__applicationErrorsType?: UpdateAddOnGroupApplicationErrors;
|
|
647
|
+
}>;
|
|
648
|
+
}
|
|
649
|
+
declare function listAddOnGroupsByServiceId$1(httpClient: HttpClient): ListAddOnGroupsByServiceIdSignature;
|
|
650
|
+
interface ListAddOnGroupsByServiceIdSignature {
|
|
651
|
+
/**
|
|
652
|
+
* Retrieves a list of AddOnGroups including enriched AddOn details in the correct order.
|
|
653
|
+
* If the group_id is specified, only the AddOns for the specified group will be returned,
|
|
654
|
+
* otherwise all groups will be returned.
|
|
655
|
+
* @param - ID of the service to retrieve AddOnGroups for.
|
|
656
|
+
*/
|
|
657
|
+
(serviceId: string, options?: ListAddOnGroupsByServiceIdOptions): Promise<NonNullablePaths<ListAddOnGroupsByServiceIdResponse, `addOnGroupsDetails`, 2>>;
|
|
658
|
+
}
|
|
659
|
+
declare function setAddOnsForGroup$1(httpClient: HttpClient): SetAddOnsForGroupSignature;
|
|
660
|
+
interface SetAddOnsForGroupSignature {
|
|
661
|
+
/**
|
|
662
|
+
* Sets the AddOns for a specific group.
|
|
663
|
+
* The order of the AddOns in the list will be used to determine their display order.
|
|
664
|
+
* @param - The service ID to set AddOns for.
|
|
665
|
+
*/
|
|
666
|
+
(serviceId: string, options: NonNullablePaths<SetAddOnsForGroupOptions, `addOnIds` | `groupId`, 2>): Promise<NonNullablePaths<SetAddOnsForGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
667
|
+
__applicationErrorsType?: SetAddOnsForGroupApplicationErrors;
|
|
668
|
+
}>;
|
|
669
|
+
}
|
|
670
670
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
671
671
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|
|
672
672
|
declare const onServiceUpdated$1: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
|
|
673
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>;
|
|
679
674
|
declare const createService: MaybeContext<BuildRESTFunction<typeof createService$1> & typeof createService$1>;
|
|
680
675
|
declare const bulkCreateServices: MaybeContext<BuildRESTFunction<typeof bulkCreateServices$1> & typeof bulkCreateServices$1>;
|
|
681
676
|
declare const getService: MaybeContext<BuildRESTFunction<typeof getService$1> & typeof getService$1>;
|
|
@@ -698,6 +693,11 @@ declare const disablePricingPlansForService: MaybeContext<BuildRESTFunction<type
|
|
|
698
693
|
declare const setCustomSlug: MaybeContext<BuildRESTFunction<typeof setCustomSlug$1> & typeof setCustomSlug$1>;
|
|
699
694
|
declare const validateSlug: MaybeContext<BuildRESTFunction<typeof validateSlug$1> & typeof validateSlug$1>;
|
|
700
695
|
declare const cloneService: MaybeContext<BuildRESTFunction<typeof cloneService$1> & typeof cloneService$1>;
|
|
696
|
+
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
697
|
+
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
698
|
+
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
699
|
+
declare const listAddOnGroupsByServiceId: MaybeContext<BuildRESTFunction<typeof listAddOnGroupsByServiceId$1> & typeof listAddOnGroupsByServiceId$1>;
|
|
700
|
+
declare const setAddOnsForGroup: MaybeContext<BuildRESTFunction<typeof setAddOnsForGroup$1> & typeof setAddOnsForGroup$1>;
|
|
701
701
|
/**
|
|
702
702
|
* Triggered when a service is created.
|
|
703
703
|
*/
|