@wix/auto_sdk_bookings_services 1.0.153 → 1.0.155
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-D3Z_NCTa.d.ts → bookings-services-v2-service-services.universal-DD3nGMfL.d.ts} +71 -28
- package/build/cjs/index.d.ts +33 -39
- package/build/cjs/index.js +87 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +66 -4
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +23 -11
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-D3Z_NCTa.d.mts → bookings-services-v2-service-services.universal-DD3nGMfL.d.mts} +71 -28
- package/build/es/index.d.mts +33 -39
- package/build/es/index.mjs +87 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +65 -4
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +23 -11
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-D3Z_NCTa.d.ts → bookings-services-v2-service-services.universal-DD3nGMfL.d.ts} +71 -28
- package/build/internal/cjs/index.d.ts +33 -39
- package/build/internal/cjs/index.js +87 -6
- 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 +66 -4
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +23 -11
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-D3Z_NCTa.d.mts → bookings-services-v2-service-services.universal-DD3nGMfL.d.mts} +71 -28
- package/build/internal/es/index.d.mts +33 -39
- package/build/internal/es/index.mjs +87 -6
- 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 +65 -4
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +23 -11
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
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
|
|
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 Location, N as SetServiceLocationsOptions, O as SetServiceLocationsResponse, P as EnablePricingPlansForServiceResponse, R as EnablePricingPlansForServiceApplicationErrors, T as DisablePricingPlansForServiceOptions, V as DisablePricingPlansForServiceResponse, W as DisablePricingPlansForServiceApplicationErrors, X as SetCustomSlugOptions, Y as SetCustomSlugResponse, Z as SetCustomSlugApplicationErrors, _ as SetCustomSlugValidationErrors, $ as ValidateSlugOptions, a0 as ValidateSlugResponse, a1 as CloneServiceResponse, a2 as ServiceCreatedEnvelope, a3 as ServiceDeletedEnvelope, a4 as ServiceUpdatedEnvelope, a5 as QueryV2, a6 as typedQueryServices, a7 as QueryServicesOptions, a8 as ServicesQueryBuilder } from './bookings-services-v2-service-services.universal-DD3nGMfL.mjs';
|
|
3
|
+
export { au as Action, bR as ActionEvent, ey as ActionWithLiterals, b_ as AddOn, b$ as AddOnAddOnInfoOneOf, bB as AddOnDetails, c0 as AddOnGroupDetail, ab 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, ar 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, az 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, ay as CategoryNotificationEvent, eC as CategoryNotificationEventWithLiterals, e4 as ChangeContext, e5 as ChangeContextPayloadOneOf, aw as CloneErrors, eA as CloneErrorsWithLiterals, dD as CloneServiceRequest, aV as CommonAddress, aW as CommonAddressStreetOneOf, eJ as CommonSearchWithEntityContext, ag as CompletionRequirement, ek as CompletionRequirementWithLiterals, aT as Conferencing, di as ConnectedService, e2 as ConsentPolicy, dj as CountServicesRequest, bV as CreateAddOnGroupRequest, c2 as CreateServiceRequest, c3 as CreateServiceResponse, aB 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, aP as CustomPayment, dp as CustomerLocations, cL as DateHistogramAggregation, d6 as DateHistogramResult, d8 as DateHistogramResults, aD 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, aA as Event, ea as EventMetadata, eE as EventWithLiterals, bw as ExtendedFields, c6 as FieldViolation, aN as FixedPayment, aJ as Form, dh as FormDetails, aK 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, aq as Interval, eu as IntervalWithLiterals, dz as InvalidPricingPlan, av as InvalidSlugError, ez as InvalidSlugErrorWithLiterals, c9 as ItemMetadata, by as Keyword, b1 as LimitEarlyBookingPolicy, b2 as LimitLateBookingPolicy, bZ as ListAddOnGroupsByServiceIdRequest, dV as Locale, aU as LocationOptionsOneOf, ac as LocationType, eg as LocationTypeWithLiterals, cl as MaskedService, aF as Media, aG as MediaItem, aH as MediaItemItemOneOf, bS as MessageEnvelope, an as MissingValues, er as MissingValuesWithLiterals, as as Mode, ew as ModeWithLiterals, aO as Money, dx as MoveToNewLocationsOptions, e0 as Multilingual, cO as NestedAggregation, cM as NestedAggregationItem, cN as NestedAggregationItemKindOneOf, cW as NestedAggregationResults, cX as NestedAggregationResultsResultOneOf, ap as NestedAggregationType, et as NestedAggregationTypeWithLiterals, d3 as NestedResultValue, d4 as NestedResultValueResultOneOf, d9 as NestedResults, c$ as NestedValueAggregationResult, aS as OnlineBooking, dQ as Page, cv as Paging, cy as PagingMetadataV2, co as ParticipantNotification, b7 as ParticipantsPolicy, aL as Payment, aR as PaymentOptions, aM as PaymentRateOneOf, bD as PhoneCall, aC as PlacementType, eG as PlacementTypeWithLiterals, b0 as PolicyDescription, 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, ad as RankingOrder, eh as RankingOrderWithLiterals, aa as RateType, ee as RateTypeWithLiterals, bE as ReindexMessage, bF as ReindexMessageActionOneOf, dv as RemovedLocationSessionsAction, dw as RemovedLocationSessionsActionActionOptionsOneOf, at as RequestedFields, ex as RequestedFieldsWithLiterals, b5 as ReschedulePolicy, aE as ResolutionMethod, eI as ResolutionMethodWithLiterals, bp as ResourceGroup, bq as ResourceIds, bt as ResourceType, b8 as ResourcesPolicy, bO as RestoreInfo, d5 as Results, bc as SaveCreditCardPolicy, cK as ScalarAggregation, d2 as ScalarResult, ao 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, a9 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, am as SortDirection, eq as SortDirectionWithLiterals, ak as SortOrder, eo as SortOrderWithLiterals, al as SortType, ep as SortTypeWithLiterals, cu as Sorting, ae 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, ax as Status, eB as StatusWithLiterals, aX as StreetAddress, e1 as SupportedLanguage, bz as Tag, bC as TaxableAddress, ah as TaxableAddressType, el as TaxableAddressTypeWithLiterals, d_ as TimePeriod, af 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, aI as V2Category, aj 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, aQ as VariedPayment, b6 as WaitlistPolicy, ai as WebhookIdentityType, em as WebhookIdentityTypeWithLiterals } from './bookings-services-v2-service-services.universal-DD3nGMfL.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createAddOnGroup$1(httpClient: HttpClient): CreateAddOnGroupSignature;
|
|
6
6
|
interface CreateAddOnGroupSignature {
|
|
@@ -8,7 +8,7 @@ interface CreateAddOnGroupSignature {
|
|
|
8
8
|
* Creates a new add-on group for a service and updates the service's `addOnGroups` array.
|
|
9
9
|
* @param - Add-on group to create.
|
|
10
10
|
*/
|
|
11
|
-
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options
|
|
11
|
+
(addOnGroup: NonNullablePaths<AddOnGroup, `name`, 2>, options: NonNullablePaths<CreateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<CreateAddOnGroupResponse, `addOnGroup.addOnIds`, 3>>;
|
|
12
12
|
}
|
|
13
13
|
declare function deleteAddOnGroup$1(httpClient: HttpClient): DeleteAddOnGroupSignature;
|
|
14
14
|
interface DeleteAddOnGroupSignature {
|
|
@@ -30,7 +30,11 @@ interface UpdateAddOnGroupSignature {
|
|
|
30
30
|
* Updates an add-on group.
|
|
31
31
|
*
|
|
32
32
|
*
|
|
33
|
-
* To update only
|
|
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.
|
|
34
38
|
* @param - Add-on group to update.
|
|
35
39
|
*/
|
|
36
40
|
(addOnGroup: NonNullablePaths<AddOnGroup, `_id`, 2>, options: NonNullablePaths<UpdateAddOnGroupOptions, `serviceId`, 2>): Promise<NonNullablePaths<UpdateAddOnGroupResponse, `addOnGroup.addOnIds`, 3> & {
|
|
@@ -115,10 +119,16 @@ interface CreateServiceSignature {
|
|
|
115
119
|
* durations are retrieved from the relevant [service variants](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction).
|
|
116
120
|
* - It is mandatory to specify `schedule.availabilityConstraints.sessionDurations`,
|
|
117
121
|
* even though these values are ignored.
|
|
122
|
+
*
|
|
123
|
+
* ### Add-on groups
|
|
124
|
+
*
|
|
125
|
+
* Don't specify existing add-on groups when calling Create Service.
|
|
126
|
+
* Instead, use dedicated add-on group and add-on creation methods to ensure proper validation and maintain referential integrity between services and their optional extras.
|
|
127
|
+
* You can follow this sample flow ([SDK](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/sample-flows#create-bookable-add-ons-for-a-new-group?apiView=SDK) | [REST](https://dev. wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/sample-flows#create-bookable-add-ons-for-a-new-group)) to create bookable add-ons.
|
|
118
128
|
* @param - Service to create.
|
|
119
129
|
* @returns Created service.
|
|
120
130
|
*/
|
|
121
|
-
(service: Service): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `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}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.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` | `taxableAddress.taxableAddressType`, 6> & {
|
|
131
|
+
(service: Service): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `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}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.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` | `addOnGroups` | `addOnDetails` | `taxableAddress.taxableAddressType`, 6> & {
|
|
122
132
|
__validationErrorsType?: CreateServiceValidationErrors;
|
|
123
133
|
}>;
|
|
124
134
|
}
|
|
@@ -140,7 +150,7 @@ interface GetServiceSignature {
|
|
|
140
150
|
* @param - ID of the service to retrieve.
|
|
141
151
|
* @returns Retrieved service.
|
|
142
152
|
*/
|
|
143
|
-
(serviceId: string): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `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}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.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` | `taxableAddress.taxableAddressType`, 6>>;
|
|
153
|
+
(serviceId: string): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `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}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.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` | `addOnGroups` | `addOnDetails` | `taxableAddress.taxableAddressType`, 6>>;
|
|
144
154
|
}
|
|
145
155
|
declare function updateService$1(httpClient: HttpClient): UpdateServiceSignature;
|
|
146
156
|
interface UpdateServiceSignature {
|
|
@@ -164,15 +174,15 @@ interface UpdateServiceSignature {
|
|
|
164
174
|
*
|
|
165
175
|
* Don't call Update Service to adjust service locations, call [Set Service Locations](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/set-service-locations) instead.
|
|
166
176
|
*
|
|
167
|
-
*
|
|
177
|
+
* ### Add-on groups
|
|
168
178
|
*
|
|
169
179
|
* Don't use Update Service to modify service add-on groups. Use these dedicated methods instead:
|
|
170
|
-
* - **Update add-on group properties**: Call
|
|
171
|
-
* - **Update add-on display order**: Call
|
|
180
|
+
* - **Update add-on group properties**: Call Update Add On Group ([SDK](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/update-add-on-group?apiView=SDK) | [REST](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/update-add-on-group)).
|
|
181
|
+
* - **Update add-on display order**: Call Set Add Ons For Group ([SDK](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/set-add-ons-for-group?apiView=SDK) | [REST](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/set-add-ons-for-group)).
|
|
172
182
|
* @param - Service ID.
|
|
173
183
|
* @returns Updated service.
|
|
174
184
|
*/
|
|
175
|
-
(_id: string, service: NonNullablePaths<UpdateService, `revision`, 2>): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `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}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.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` | `taxableAddress.taxableAddressType`, 6> & {
|
|
185
|
+
(_id: string, service: NonNullablePaths<UpdateService, `revision`, 2>): Promise<NonNullablePaths<Service, `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `payment.addOnOption` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `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}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.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` | `addOnGroups` | `addOnDetails` | `taxableAddress.taxableAddressType`, 6> & {
|
|
176
186
|
__validationErrorsType?: UpdateServiceValidationErrors;
|
|
177
187
|
}>;
|
|
178
188
|
}
|
|
@@ -255,28 +265,6 @@ interface BulkDeleteServicesByFilterSignature {
|
|
|
255
265
|
*/
|
|
256
266
|
(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions): Promise<NonNullablePaths<BulkDeleteServicesByFilterResponse, `jobId`, 2>>;
|
|
257
267
|
}
|
|
258
|
-
declare function queryServices$1(httpClient: HttpClient): QueryServicesSignature;
|
|
259
|
-
interface QueryServicesSignature {
|
|
260
|
-
/**
|
|
261
|
-
* Creates a query to retrieve a list of `service` objects.
|
|
262
|
-
*
|
|
263
|
-
* The `queryServices()` function builds a query to retrieve a list of `service` objects and returns a `ServicesQueryBuilder` object.
|
|
264
|
-
*
|
|
265
|
-
* The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/services-query-builder/find) function.
|
|
266
|
-
*
|
|
267
|
-
* You can refine the query by chaining `ServicesQueryBuilder` functions onto the query. `ServicesQueryBuilder` functions enable you to sort, filter, and control the results that `queryServices()` returns.
|
|
268
|
-
*
|
|
269
|
-
* `queryServices()` runs with the following `ServicesQueryBuilder` defaults that you can override:
|
|
270
|
-
*
|
|
271
|
-
* + `limit` is `100`.
|
|
272
|
-
* + Sorted by `createdDate` in ascending order.
|
|
273
|
-
*
|
|
274
|
-
* The functions that are chained to `queryServices()` are applied in the order they are called. For example, if you apply `ascending("category.name")` and then `ascending("name")`, the results are sorted first by `category.name`, and then, if there are multiple results with the same `category.name`, the items are sorted by `name`.
|
|
275
|
-
*
|
|
276
|
-
* The following `ServicesQueryBuilder` functions are supported for the `queryServices()` function. For a full description of the `service` object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/services-query-result/items) property in `ServicesQueryResult`.
|
|
277
|
-
*/
|
|
278
|
-
(): ServicesQueryBuilder;
|
|
279
|
-
}
|
|
280
268
|
declare function searchServices$1(httpClient: HttpClient): SearchServicesSignature;
|
|
281
269
|
interface SearchServicesSignature {
|
|
282
270
|
/**
|
|
@@ -518,7 +506,7 @@ interface SetServiceLocationsSignature {
|
|
|
518
506
|
* @param - ID of the service.
|
|
519
507
|
* @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.
|
|
520
508
|
*/
|
|
521
|
-
(serviceId: string, locations: Location[], 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.taxableAddress.taxableAddressType`, 7>>;
|
|
509
|
+
(serviceId: string, locations: Location[], 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>>;
|
|
522
510
|
}
|
|
523
511
|
declare function enablePricingPlansForService$1(httpClient: HttpClient): EnablePricingPlansForServiceSignature;
|
|
524
512
|
interface EnablePricingPlansForServiceSignature {
|
|
@@ -533,7 +521,7 @@ interface EnablePricingPlansForServiceSignature {
|
|
|
533
521
|
* @param - IDs of the [pricing plans](https://dev.wix.com/docs/api-reference/business-solutions/pricing-plans/pricing-plans/plans/introduction)
|
|
534
522
|
* to add to the service's `payment.pricingPlanIds` array.
|
|
535
523
|
*/
|
|
536
|
-
(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, `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.taxableAddress.taxableAddressType`, 7> & {
|
|
524
|
+
(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, `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> & {
|
|
537
525
|
__applicationErrorsType?: EnablePricingPlansForServiceApplicationErrors;
|
|
538
526
|
}>;
|
|
539
527
|
}
|
|
@@ -548,7 +536,7 @@ interface DisablePricingPlansForServiceSignature {
|
|
|
548
536
|
* able to book the service, as they will have no payment options available.
|
|
549
537
|
* @param - ID of the service to update.
|
|
550
538
|
*/
|
|
551
|
-
(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, `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.taxableAddress.taxableAddressType`, 7> & {
|
|
539
|
+
(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, `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> & {
|
|
552
540
|
__applicationErrorsType?: DisablePricingPlansForServiceApplicationErrors;
|
|
553
541
|
}>;
|
|
554
542
|
}
|
|
@@ -564,7 +552,7 @@ interface SetCustomSlugSignature {
|
|
|
564
552
|
* - Another service has used the slug in the past.
|
|
565
553
|
* @param - ID of the service for which to update the active slug.
|
|
566
554
|
*/
|
|
567
|
-
(serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | `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.taxableAddress.taxableAddressType`, 7> & {
|
|
555
|
+
(serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | `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> & {
|
|
568
556
|
__applicationErrorsType?: SetCustomSlugApplicationErrors;
|
|
569
557
|
__validationErrorsType?: SetCustomSlugValidationErrors;
|
|
570
558
|
}>;
|
|
@@ -640,12 +628,18 @@ interface CloneServiceSignature {
|
|
|
640
628
|
* after cloning the service, customers will be unable to book the service.
|
|
641
629
|
* @param - ID of the service to clone.
|
|
642
630
|
*/
|
|
643
|
-
(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.taxableAddress.taxableAddressType` | `errors`, 7>>;
|
|
631
|
+
(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>>;
|
|
644
632
|
}
|
|
645
633
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
646
634
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|
|
647
635
|
declare const onServiceUpdated$1: EventDefinition<ServiceUpdatedEnvelope, "wix.bookings.services.v2.service_updated">;
|
|
648
636
|
|
|
637
|
+
declare function customQueryServices(httpClient: HttpClient): {
|
|
638
|
+
(query: QueryV2): ReturnType<typeof typedQueryServices>;
|
|
639
|
+
(query: QueryV2, options: QueryServicesOptions): ReturnType<typeof typedQueryServices>;
|
|
640
|
+
(): ServicesQueryBuilder;
|
|
641
|
+
(options: QueryServicesOptions): ServicesQueryBuilder;
|
|
642
|
+
};
|
|
649
643
|
declare const createAddOnGroup: MaybeContext<BuildRESTFunction<typeof createAddOnGroup$1> & typeof createAddOnGroup$1>;
|
|
650
644
|
declare const deleteAddOnGroup: MaybeContext<BuildRESTFunction<typeof deleteAddOnGroup$1> & typeof deleteAddOnGroup$1>;
|
|
651
645
|
declare const updateAddOnGroup: MaybeContext<BuildRESTFunction<typeof updateAddOnGroup$1> & typeof updateAddOnGroup$1>;
|
|
@@ -660,7 +654,6 @@ declare const bulkUpdateServicesByFilter: MaybeContext<BuildRESTFunction<typeof
|
|
|
660
654
|
declare const deleteService: MaybeContext<BuildRESTFunction<typeof deleteService$1> & typeof deleteService$1>;
|
|
661
655
|
declare const bulkDeleteServices: MaybeContext<BuildRESTFunction<typeof bulkDeleteServices$1> & typeof bulkDeleteServices$1>;
|
|
662
656
|
declare const bulkDeleteServicesByFilter: MaybeContext<BuildRESTFunction<typeof bulkDeleteServicesByFilter$1> & typeof bulkDeleteServicesByFilter$1>;
|
|
663
|
-
declare const queryServices: MaybeContext<BuildRESTFunction<typeof queryServices$1> & typeof queryServices$1>;
|
|
664
657
|
declare const searchServices: MaybeContext<BuildRESTFunction<typeof searchServices$1> & typeof searchServices$1>;
|
|
665
658
|
declare const queryPolicies: MaybeContext<BuildRESTFunction<typeof queryPolicies$1> & typeof queryPolicies$1>;
|
|
666
659
|
declare const queryBookingForms: MaybeContext<BuildRESTFunction<typeof queryBookingForms$1> & typeof queryBookingForms$1>;
|
|
@@ -673,6 +666,7 @@ declare const disablePricingPlansForService: MaybeContext<BuildRESTFunction<type
|
|
|
673
666
|
declare const setCustomSlug: MaybeContext<BuildRESTFunction<typeof setCustomSlug$1> & typeof setCustomSlug$1>;
|
|
674
667
|
declare const validateSlug: MaybeContext<BuildRESTFunction<typeof validateSlug$1> & typeof validateSlug$1>;
|
|
675
668
|
declare const cloneService: MaybeContext<BuildRESTFunction<typeof cloneService$1> & typeof cloneService$1>;
|
|
669
|
+
declare const queryServices: MaybeContext<BuildRESTFunction<typeof customQueryServices> & typeof customQueryServices>;
|
|
676
670
|
/**
|
|
677
671
|
* Triggered when a service is created.
|
|
678
672
|
*/
|
|
@@ -686,4 +680,4 @@ declare const onServiceDeleted: BuildEventDefinition<typeof onServiceDeleted$1>
|
|
|
686
680
|
*/
|
|
687
681
|
declare const onServiceUpdated: BuildEventDefinition<typeof onServiceUpdated$1> & typeof onServiceUpdated$1;
|
|
688
682
|
|
|
689
|
-
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, Location, QueryBookingFormsApplicationErrors, QueryBookingFormsOptions, QueryBookingFormsResponse, QueryCategoriesOptions, QueryCategoriesResponse, QueryLocationsOptions, QueryLocationsResponse, QueryPoliciesResponse, 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 };
|
|
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, Location, 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 };
|
package/build/es/index.mjs
CHANGED
|
@@ -2658,11 +2658,14 @@ async function bulkDeleteServicesByFilter2(filter, options) {
|
|
|
2658
2658
|
throw transformedError;
|
|
2659
2659
|
}
|
|
2660
2660
|
}
|
|
2661
|
-
function queryServices2() {
|
|
2662
|
-
const { httpClient, sideEffects } = arguments[
|
|
2661
|
+
function queryServices2(options) {
|
|
2662
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2663
2663
|
return queryBuilder({
|
|
2664
2664
|
func: async (payload) => {
|
|
2665
|
-
const reqOpts = queryServices(
|
|
2665
|
+
const reqOpts = queryServices({
|
|
2666
|
+
...payload,
|
|
2667
|
+
...options ?? {}
|
|
2668
|
+
});
|
|
2666
2669
|
sideEffects?.onSiteCall?.();
|
|
2667
2670
|
try {
|
|
2668
2671
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2674,7 +2677,7 @@ function queryServices2() {
|
|
|
2674
2677
|
}
|
|
2675
2678
|
},
|
|
2676
2679
|
requestTransformer: (query) => {
|
|
2677
|
-
const args = [query,
|
|
2680
|
+
const args = [query, options];
|
|
2678
2681
|
return renameKeysFromSDKRequestToRESTRequest({
|
|
2679
2682
|
...args?.[1],
|
|
2680
2683
|
query: args?.[0]
|
|
@@ -2730,6 +2733,63 @@ function queryServices2() {
|
|
|
2730
2733
|
transformationPaths: {}
|
|
2731
2734
|
});
|
|
2732
2735
|
}
|
|
2736
|
+
async function typedQueryServices(query, options) {
|
|
2737
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2738
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2739
|
+
query,
|
|
2740
|
+
...options
|
|
2741
|
+
});
|
|
2742
|
+
const reqOpts = queryServices(payload);
|
|
2743
|
+
sideEffects?.onSiteCall?.();
|
|
2744
|
+
try {
|
|
2745
|
+
const result = await httpClient.request(reqOpts);
|
|
2746
|
+
sideEffects?.onSuccess?.(result);
|
|
2747
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
2748
|
+
transformPaths2(result.data, [
|
|
2749
|
+
{
|
|
2750
|
+
transformFn: transformRESTImageToSDKImage,
|
|
2751
|
+
paths: [
|
|
2752
|
+
{ path: "services.media.items.image" },
|
|
2753
|
+
{ path: "services.media.mainMedia.image" },
|
|
2754
|
+
{ path: "services.media.coverMedia.image" },
|
|
2755
|
+
{ path: "services.staffMembers.mainMedia.image" },
|
|
2756
|
+
{
|
|
2757
|
+
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2758
|
+
}
|
|
2759
|
+
]
|
|
2760
|
+
},
|
|
2761
|
+
{
|
|
2762
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
2763
|
+
paths: [
|
|
2764
|
+
{ path: "services.locations.calculatedAddress" },
|
|
2765
|
+
{ path: "services.locations.business.address" },
|
|
2766
|
+
{ path: "services.locations.custom.address" }
|
|
2767
|
+
]
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2771
|
+
paths: [
|
|
2772
|
+
{ path: "services.urls.servicePage" },
|
|
2773
|
+
{ path: "services.urls.bookingPage" },
|
|
2774
|
+
{ path: "services.urls.calendarPage" }
|
|
2775
|
+
]
|
|
2776
|
+
}
|
|
2777
|
+
])
|
|
2778
|
+
);
|
|
2779
|
+
} catch (err) {
|
|
2780
|
+
const transformedError = sdkTransformError(
|
|
2781
|
+
err,
|
|
2782
|
+
{
|
|
2783
|
+
spreadPathsToArguments: {},
|
|
2784
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
2785
|
+
singleArgumentUnchanged: false
|
|
2786
|
+
},
|
|
2787
|
+
["query", "options"]
|
|
2788
|
+
);
|
|
2789
|
+
sideEffects?.onError?.(err);
|
|
2790
|
+
throw transformedError;
|
|
2791
|
+
}
|
|
2792
|
+
}
|
|
2733
2793
|
async function searchServices2(search) {
|
|
2734
2794
|
const { httpClient, sideEffects } = arguments[1];
|
|
2735
2795
|
const payload = renameKeysFromSDKRequestToRESTRequest({ search });
|
|
@@ -3423,7 +3483,16 @@ function bulkDeleteServicesByFilter3(httpClient) {
|
|
|
3423
3483
|
);
|
|
3424
3484
|
}
|
|
3425
3485
|
function queryServices3(httpClient) {
|
|
3426
|
-
return () => queryServices2(
|
|
3486
|
+
return (options) => queryServices2(
|
|
3487
|
+
options,
|
|
3488
|
+
// @ts-ignore
|
|
3489
|
+
{ httpClient }
|
|
3490
|
+
);
|
|
3491
|
+
}
|
|
3492
|
+
function typedQueryServices2(httpClient) {
|
|
3493
|
+
return (query, options) => typedQueryServices(
|
|
3494
|
+
query,
|
|
3495
|
+
options,
|
|
3427
3496
|
// @ts-ignore
|
|
3428
3497
|
{ httpClient }
|
|
3429
3498
|
);
|
|
@@ -3667,6 +3736,18 @@ var onServiceUpdated = EventDefinition(
|
|
|
3667
3736
|
// src/bookings-services-v2-service-services.context.ts
|
|
3668
3737
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
3669
3738
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
3739
|
+
import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
|
|
3740
|
+
function customQueryServices(httpClient) {
|
|
3741
|
+
const router = createQueryOverloadRouter({
|
|
3742
|
+
builderQueryFunction: (options) => queryServices3(httpClient)(options),
|
|
3743
|
+
typedQueryFunction: (query, options) => typedQueryServices2(httpClient)(query, options),
|
|
3744
|
+
hasOptionsParameter: true
|
|
3745
|
+
});
|
|
3746
|
+
function overloadedQuery(queryOrOptions, options) {
|
|
3747
|
+
return router(...arguments);
|
|
3748
|
+
}
|
|
3749
|
+
return overloadedQuery;
|
|
3750
|
+
}
|
|
3670
3751
|
var createAddOnGroup4 = /* @__PURE__ */ createRESTModule(createAddOnGroup3);
|
|
3671
3752
|
var deleteAddOnGroup4 = /* @__PURE__ */ createRESTModule(deleteAddOnGroup3);
|
|
3672
3753
|
var updateAddOnGroup4 = /* @__PURE__ */ createRESTModule(updateAddOnGroup3);
|
|
@@ -3681,7 +3762,6 @@ var bulkUpdateServicesByFilter4 = /* @__PURE__ */ createRESTModule(bulkUpdateSer
|
|
|
3681
3762
|
var deleteService4 = /* @__PURE__ */ createRESTModule(deleteService3);
|
|
3682
3763
|
var bulkDeleteServices4 = /* @__PURE__ */ createRESTModule(bulkDeleteServices3);
|
|
3683
3764
|
var bulkDeleteServicesByFilter4 = /* @__PURE__ */ createRESTModule(bulkDeleteServicesByFilter3);
|
|
3684
|
-
var queryServices4 = /* @__PURE__ */ createRESTModule(queryServices3);
|
|
3685
3765
|
var searchServices4 = /* @__PURE__ */ createRESTModule(searchServices3);
|
|
3686
3766
|
var queryPolicies4 = /* @__PURE__ */ createRESTModule(queryPolicies3);
|
|
3687
3767
|
var queryBookingForms4 = /* @__PURE__ */ createRESTModule(queryBookingForms3);
|
|
@@ -3694,6 +3774,7 @@ var disablePricingPlansForService4 = /* @__PURE__ */ createRESTModule(disablePri
|
|
|
3694
3774
|
var setCustomSlug4 = /* @__PURE__ */ createRESTModule(setCustomSlug3);
|
|
3695
3775
|
var validateSlug4 = /* @__PURE__ */ createRESTModule(validateSlug3);
|
|
3696
3776
|
var cloneService4 = /* @__PURE__ */ createRESTModule(cloneService3);
|
|
3777
|
+
var queryServices4 = /* @__PURE__ */ createRESTModule(customQueryServices);
|
|
3697
3778
|
var onServiceCreated2 = createEventModule(onServiceCreated);
|
|
3698
3779
|
var onServiceDeleted2 = createEventModule(onServiceDeleted);
|
|
3699
3780
|
var onServiceUpdated2 = createEventModule(onServiceUpdated);
|