@wix/auto_sdk_bookings_services 1.0.65 → 1.0.66
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-Cy9SqUQp.d.ts → bookings-services-v2-service-services.universal-o2tHvpTk.d.ts} +2 -1
- package/build/cjs/index.d.ts +44 -24
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-Cy9SqUQp.d.mts → bookings-services-v2-service-services.universal-o2tHvpTk.d.mts} +2 -1
- package/build/es/index.d.mts +44 -24
- package/build/es/index.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-Cy9SqUQp.d.ts → bookings-services-v2-service-services.universal-o2tHvpTk.d.ts} +2 -1
- package/build/internal/cjs/index.d.ts +44 -24
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-Cy9SqUQp.d.mts → bookings-services-v2-service-services.universal-o2tHvpTk.d.mts} +2 -1
- package/build/internal/es/index.d.mts +44 -24
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +2 -2
|
@@ -3466,6 +3466,7 @@ interface ServiceUpdatedEnvelope {
|
|
|
3466
3466
|
entity: Service;
|
|
3467
3467
|
metadata: EventMetadata;
|
|
3468
3468
|
}
|
|
3469
|
+
type ServiceNonNullablePaths = `type` | `media.items` | `category._id` | `form._id` | `payment.fixed.price.value` | `payment.fixed.price.currency` | `payment.rateType` | `payment.pricingPlanIds` | `locations` | `locations.${number}.business._id` | `locations.${number}.business.name` | `locations.${number}.business.address.streetAddress.number` | `locations.${number}.business.address.streetAddress.name` | `locations.${number}.business.address.streetAddress.apt` | `locations.${number}.custom._id` | `locations.${number}._id` | `locations.${number}.type` | `bookingPolicy._id` | `bookingPolicy.customPolicyDescription.enabled` | `bookingPolicy.customPolicyDescription.description` | `bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicy.cancellationPolicy.enabled` | `bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicy.reschedulePolicy.enabled` | `bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicy.waitlistPolicy.enabled` | `bookingPolicy.waitlistPolicy.capacity` | `bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicy.resourcesPolicy.enabled` | `bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicy.cancellationFeePolicy.cancellationWindows` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `bookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `bookingPolicy.saveCreditCardPolicy.enabled` | `schedule.availabilityConstraints.durations` | `schedule.availabilityConstraints.durations.${number}.minutes` | `schedule.availabilityConstraints.sessionDurations` | `schedule.availabilityConstraints.timeBetweenSessions` | `staffMemberIds` | `serviceResources` | `supportedSlugs` | `supportedSlugs.${number}.name` | `mainSlug.name` | `seoData.tags` | `seoData.tags.${number}.type` | `seoData.tags.${number}.children` | `seoData.tags.${number}.custom` | `seoData.tags.${number}.disabled` | `seoData.settings.preventAutoRedirect` | `seoData.settings.keywords` | `seoData.settings.keywords.${number}.term` | `seoData.settings.keywords.${number}.isMain`;
|
|
3469
3470
|
interface BulkCreateServicesOptions {
|
|
3470
3471
|
/** Whether to return the created service objects. */
|
|
3471
3472
|
returnEntity?: boolean;
|
|
@@ -3972,4 +3973,4 @@ interface ValidateSlugOptions {
|
|
|
3972
3973
|
slug?: string;
|
|
3973
3974
|
}
|
|
3974
3975
|
|
|
3975
|
-
export {
|
|
3976
|
+
export { AggregationType as $, type SetCustomSlugResponse as A, type BulkCreateServicesOptions as B, type CursorQuery as C, type DeleteServiceOptions as D, type EnablePricingPlansForServiceResponse as E, type ValidateSlugResponse as F, type CloneServiceResponse as G, type ServiceCreatedEnvelope as H, type ServiceDeletedEnvelope as I, type ServiceUpdatedEnvelope as J, ServiceType as K, type Location as L, LocationType as M, V2RequestedFields as N, SortOrder as O, SortType as P, type QueryPoliciesResponse as Q, RateType as R, type Service as S, SortDirection as T, type UpdateService as U, type ValidateSlugOptions as V, WebhookIdentityType as W, MissingValues as X, ScalarType as Y, NestedAggregationType as Z, Interval as _, type ServiceNonNullablePaths as a, type ExtendedFields as a$, Mode as a0, RequestedFields as a1, Action as a2, InvalidSlugError as a3, CloneErrors as a4, Status as a5, CategoryNotificationEvent as a6, BenefitType as a7, Event as a8, CrudType as a9, type PolicyDescription as aA, type LimitEarlyBookingPolicy as aB, type LimitLateBookingPolicy as aC, type BookAfterStartPolicy as aD, type CancellationPolicy as aE, type ReschedulePolicy as aF, type WaitlistPolicy as aG, type ParticipantsPolicy as aH, type ResourcesPolicy as aI, type CancellationFeePolicy as aJ, type CancellationWindow as aK, type CancellationWindowFeeOneOf as aL, type SaveCreditCardPolicy as aM, type Schedule as aN, type AvailabilityConstraints as aO, type Duration as aP, type StaffMember as aQ, type StaffMediaItem as aR, type StaffMediaItemItemOneOf as aS, type StaffMemberDetails as aT, type ResourceGroup as aU, type ResourceIds as aV, type ServiceResource as aW, type ServiceResourceSelectionOneOf as aX, type ResourceType as aY, type Slug as aZ, type URLs as a_, PlacementType as aa, DayOfWeek as ab, ResolutionMethod as ac, type Media as ad, type MediaItem as ae, type MediaItemItemOneOf as af, type V2Category as ag, type Form as ah, type FormSettings as ai, type Payment as aj, type PaymentRateOneOf as ak, type FixedPayment as al, type Money as am, type CustomPayment as an, type VariedPayment as ao, type PaymentOptions as ap, type OnlineBooking as aq, type Conferencing as ar, type LocationOptionsOneOf as as, type CommonAddress as at, type CommonAddressStreetOneOf as au, type StreetAddress as av, type AddressLocation as aw, type BusinessLocationOptions as ax, type CustomLocationOptions as ay, type BookingPolicy as az, type BulkCreateServicesResponse as b, type BulkDeleteServicesRequest as b$, type SeoSchema as b0, type Keyword as b1, type Tag as b2, type Settings as b3, type AddOnGroup as b4, type AddOnDetails as b5, type ReindexMessage as b6, type ReindexMessageActionOneOf as b7, type Upsert as b8, type Delete as b9, type ValidateAddOnsSelectionRequest as bA, type ValidateAddOnsSelectionResponse as bB, type ValidationResult as bC, type CreateServiceRequest as bD, type CreateServiceResponse as bE, type ValidateServiceRequest as bF, type ValidateServiceResponse as bG, type FieldViolation as bH, type BulkCreateServicesRequest as bI, type BulkServiceResult as bJ, type ItemMetadata as bK, type ApplicationError as bL, type BulkActionMetadata as bM, type GetServiceRequest as bN, type GetServiceResponse as bO, type GetServiceAvailabilityConstraintsRequest as bP, type GetServiceAvailabilityConstraintsResponse as bQ, type ServiceAvailabilityConstraints as bR, type SplitInterval as bS, type UpdateServiceRequest as bT, type UpdateServiceResponse as bU, type BulkUpdateServicesRequest as bV, type MaskedService as bW, type BulkUpdateServicesByFilterRequest as bX, type DeleteServiceRequest as bY, type ParticipantNotification as bZ, type DeleteServiceResponse as b_, type Schema as ba, type SetCustomSlugEvent as bb, type ServicesUrlsChanged as bc, type DomainEvent as bd, type DomainEventBodyOneOf as be, type EntityCreatedEvent as bf, type RestoreInfo as bg, type EntityUpdatedEvent as bh, type EntityDeletedEvent as bi, type ActionEvent as bj, type MessageEnvelope as bk, type IdentificationData as bl, type IdentificationDataIdOneOf as bm, type CreateAddOnGroupRequest as bn, type CreateAddOnGroupResponse as bo, type DeleteAddOnGroupRequest as bp, type DeleteAddOnGroupResponse as bq, type UpdateAddOnGroupRequest as br, type UpdateAddOnGroupResponse as bs, type ListAddOnGroupsByServiceIdRequest as bt, type ListAddOnGroupsByServiceIdResponse as bu, type AddOn as bv, type AddOnAddOnInfoOneOf as bw, type AddOnGroupDetail as bx, type SetAddOnsForGroupRequest as by, type SetAddOnsForGroupResponse as bz, type BulkUpdateServicesOptions as c, type QueryCategoriesRequest as c$, type BulkDeleteServicesByFilterRequest as c0, type QueryServicesRequest as c1, type QueryV2 as c2, type QueryV2PagingMethodOneOf as c3, type Sorting as c4, type Paging as c5, type CursorPaging as c6, type QueryServicesResponse as c7, type PagingMetadataV2 as c8, type Cursors as c9, type AggregationResultsScalarResult as cA, type NestedValueAggregationResult as cB, type ValueResult as cC, type RangeResult as cD, type ScalarResult as cE, type NestedResultValue as cF, type NestedResultValueResultOneOf as cG, type Results as cH, type DateHistogramResult as cI, type GroupByValueResults as cJ, type DateHistogramResults as cK, type NestedResults as cL, type AggregationResults as cM, type AggregationResultsResultOneOf as cN, type QueryPoliciesRequest as cO, type CursorQueryPagingMethodOneOf as cP, type BookingPolicyWithServices as cQ, type QueryBookingFormsRequest as cR, type BookingForm as cS, type FormDetails as cT, type ConnectedService as cU, type CountServicesRequest as cV, type QueryLocationsRequest as cW, type QueryLocationsFilter as cX, type BusinessLocations as cY, type CustomLocations as cZ, type CustomerLocations as c_, type SearchServicesRequest as ca, type CursorSearch as cb, type CursorSearchPagingMethodOneOf as cc, type Aggregation as cd, type AggregationKindOneOf as ce, type RangeBucket as cf, type IncludeMissingValuesOptions as cg, type ValueAggregation as ch, type ValueAggregationOptionsOneOf as ci, type RangeAggregation as cj, type ScalarAggregation as ck, type DateHistogramAggregation as cl, type NestedAggregationItem as cm, type NestedAggregationItemKindOneOf as cn, type NestedAggregation as co, type GroupByAggregation as cp, type GroupByAggregationKindOneOf as cq, type SearchDetails as cr, type CursorPagingMetadata as cs, type AggregationData as ct, type ValueAggregationResult as cu, type RangeAggregationResult as cv, type NestedAggregationResults as cw, type NestedAggregationResultsResultOneOf as cx, type ValueResults as cy, type RangeResults as cz, type BulkUpdateServicesResponse as d, type QueryCategoriesFilter as d0, type QueryServicesMultiLanguageRequest as d1, type QueryServicesMultiLanguageResponse as d2, type SetServiceLocationsRequest as d3, type RemovedLocationSessionsAction as d4, type RemovedLocationSessionsActionActionOptionsOneOf as d5, type MoveToNewLocationsOptions as d6, type EnablePricingPlansForServiceRequest as d7, type InvalidPricingPlan as d8, type DisablePricingPlansForServiceRequest as d9, type TimePeriod as dA, type SpecialHourPeriod as dB, type Multilingual as dC, type SupportedLanguage as dD, type ConsentPolicy as dE, type Translation as dF, type ChangeContext as dG, type ChangeContextPayloadOneOf as dH, type PropertiesChange as dI, type SiteCreated as dJ, type SiteCloned as dK, type BaseEventMetadata as dL, type EventMetadata as dM, type ServicesQueryResult as dN, type ServiceSearchSpec as dO, type SetCustomSlugRequest as da, type ValidateSlugRequest as db, type CloneServiceRequest as dc, type CategoryNotification as dd, type Category as de, type Empty as df, type BenefitNotification as dg, type Benefit as dh, type EntryPass as di, type Discount as dj, type DiscountDiscountOneOf as dk, type Behavior as dl, type BehaviorBehaviorOneOf as dm, type UserDomainInfoChangedEvent as dn, type HtmlSitePublished as dp, type Page as dq, type SitePropertiesNotification as dr, type SitePropertiesEvent as ds, type Properties as dt, type Categories as du, type Locale as dv, type Address as dw, type AddressHint as dx, type GeoCoordinates as dy, type BusinessSchedule as dz, type BulkUpdateServicesByFilterOptions as e, type BulkUpdateServicesByFilterResponse as f, type BulkDeleteServicesOptions as g, type BulkDeleteServicesResponse as h, type BulkDeleteServicesByFilterOptions as i, type BulkDeleteServicesByFilterResponse as j, type ServicesQueryBuilder as k, type ServiceSearch as l, type SearchServicesResponse as m, type QueryBookingFormsOptions as n, type QueryBookingFormsResponse as o, type CountServicesOptions as p, type CountServicesResponse as q, type QueryLocationsOptions as r, type QueryLocationsResponse as s, type QueryCategoriesOptions as t, type QueryCategoriesResponse as u, type SetServiceLocationsOptions as v, type SetServiceLocationsResponse as w, type DisablePricingPlansForServiceOptions as x, type DisablePricingPlansForServiceResponse as y, type SetCustomSlugOptions as z };
|
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { S as Service, B as BulkCreateServicesOptions,
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { S as Service, a as ServiceNonNullablePaths, B as BulkCreateServicesOptions, b as BulkCreateServicesResponse, U as UpdateService, 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, C as CursorQuery, Q as QueryPoliciesResponse, n as QueryBookingFormsOptions, o as QueryBookingFormsResponse, p as CountServicesOptions, q as CountServicesResponse, r as QueryLocationsOptions, s as QueryLocationsResponse, t as QueryCategoriesOptions, u as QueryCategoriesResponse, L as Location, v as SetServiceLocationsOptions, w as SetServiceLocationsResponse, E as EnablePricingPlansForServiceResponse, x as DisablePricingPlansForServiceOptions, y as DisablePricingPlansForServiceResponse, z as SetCustomSlugOptions, A as SetCustomSlugResponse, V as ValidateSlugOptions, F as ValidateSlugResponse, G as CloneServiceResponse, H as ServiceCreatedEnvelope, I as ServiceDeletedEnvelope, J as ServiceUpdatedEnvelope } from './bookings-services-v2-service-services.universal-o2tHvpTk.js';
|
|
3
|
+
export { a2 as Action, bj as ActionEvent, bv as AddOn, bw as AddOnAddOnInfoOneOf, b5 as AddOnDetails, b4 as AddOnGroup, bx as AddOnGroupDetail, dw as Address, dx as AddressHint, aw as AddressLocation, cd as Aggregation, ct as AggregationData, ce as AggregationKindOneOf, cM as AggregationResults, cN as AggregationResultsResultOneOf, cA as AggregationResultsScalarResult, $ as AggregationType, bL as ApplicationError, aO as AvailabilityConstraints, dL as BaseEventMetadata, dl as Behavior, dm as BehaviorBehaviorOneOf, dh as Benefit, dg as BenefitNotification, a7 as BenefitType, aD as BookAfterStartPolicy, cS as BookingForm, az as BookingPolicy, cQ as BookingPolicyWithServices, bM as BulkActionMetadata, bI as BulkCreateServicesRequest, c0 as BulkDeleteServicesByFilterRequest, b$ as BulkDeleteServicesRequest, bJ as BulkServiceResult, bX as BulkUpdateServicesByFilterRequest, bV as BulkUpdateServicesRequest, ax as BusinessLocationOptions, cY as BusinessLocations, dz as BusinessSchedule, aJ as CancellationFeePolicy, aE as CancellationPolicy, aK as CancellationWindow, aL as CancellationWindowFeeOneOf, du as Categories, de as Category, dd as CategoryNotification, a6 as CategoryNotificationEvent, dG as ChangeContext, dH as ChangeContextPayloadOneOf, a4 as CloneErrors, dc as CloneServiceRequest, at as CommonAddress, au as CommonAddressStreetOneOf, ar as Conferencing, cU as ConnectedService, dE as ConsentPolicy, cV as CountServicesRequest, bn as CreateAddOnGroupRequest, bo as CreateAddOnGroupResponse, bD as CreateServiceRequest, bE as CreateServiceResponse, a9 as CrudType, c6 as CursorPaging, cs as CursorPagingMetadata, cP as CursorQueryPagingMethodOneOf, cb as CursorSearch, cc as CursorSearchPagingMethodOneOf, c9 as Cursors, ay as CustomLocationOptions, cZ as CustomLocations, an as CustomPayment, c_ as CustomerLocations, cl as DateHistogramAggregation, cI as DateHistogramResult, cK as DateHistogramResults, ab as DayOfWeek, b9 as Delete, bp as DeleteAddOnGroupRequest, bq as DeleteAddOnGroupResponse, bY as DeleteServiceRequest, b_ as DeleteServiceResponse, d9 as DisablePricingPlansForServiceRequest, dj as Discount, dk as DiscountDiscountOneOf, bd as DomainEvent, be as DomainEventBodyOneOf, aP as Duration, df as Empty, d7 as EnablePricingPlansForServiceRequest, bf as EntityCreatedEvent, bi as EntityDeletedEvent, bh as EntityUpdatedEvent, di as EntryPass, a8 as Event, dM as EventMetadata, a$ as ExtendedFields, bH as FieldViolation, al as FixedPayment, ah as Form, cT as FormDetails, ai as FormSettings, dy as GeoCoordinates, bP as GetServiceAvailabilityConstraintsRequest, bQ as GetServiceAvailabilityConstraintsResponse, bN as GetServiceRequest, bO as GetServiceResponse, cp as GroupByAggregation, cq as GroupByAggregationKindOneOf, cJ as GroupByValueResults, dp as HtmlSitePublished, bl as IdentificationData, bm as IdentificationDataIdOneOf, cg as IncludeMissingValuesOptions, _ as Interval, d8 as InvalidPricingPlan, a3 as InvalidSlugError, bK as ItemMetadata, b1 as Keyword, aB as LimitEarlyBookingPolicy, aC as LimitLateBookingPolicy, bt as ListAddOnGroupsByServiceIdRequest, bu as ListAddOnGroupsByServiceIdResponse, dv as Locale, as as LocationOptionsOneOf, M as LocationType, bW as MaskedService, ad as Media, ae as MediaItem, af as MediaItemItemOneOf, bk as MessageEnvelope, X as MissingValues, a0 as Mode, am as Money, d6 as MoveToNewLocationsOptions, dC as Multilingual, co as NestedAggregation, cm as NestedAggregationItem, cn as NestedAggregationItemKindOneOf, cw as NestedAggregationResults, cx as NestedAggregationResultsResultOneOf, Z as NestedAggregationType, cF as NestedResultValue, cG as NestedResultValueResultOneOf, cL as NestedResults, cB as NestedValueAggregationResult, aq as OnlineBooking, dq as Page, c5 as Paging, c8 as PagingMetadataV2, bZ as ParticipantNotification, aH as ParticipantsPolicy, aj as Payment, ap as PaymentOptions, ak as PaymentRateOneOf, aa as PlacementType, aA as PolicyDescription, dt as Properties, dI as PropertiesChange, cR as QueryBookingFormsRequest, d0 as QueryCategoriesFilter, c$ as QueryCategoriesRequest, cX as QueryLocationsFilter, cW as QueryLocationsRequest, cO as QueryPoliciesRequest, d1 as QueryServicesMultiLanguageRequest, d2 as QueryServicesMultiLanguageResponse, c1 as QueryServicesRequest, c7 as QueryServicesResponse, c2 as QueryV2, c3 as QueryV2PagingMethodOneOf, cj as RangeAggregation, cv as RangeAggregationResult, cf as RangeBucket, cD as RangeResult, cz as RangeResults, R as RateType, b6 as ReindexMessage, b7 as ReindexMessageActionOneOf, d4 as RemovedLocationSessionsAction, d5 as RemovedLocationSessionsActionActionOptionsOneOf, a1 as RequestedFields, aF as ReschedulePolicy, ac as ResolutionMethod, aU as ResourceGroup, aV as ResourceIds, aY as ResourceType, aI as ResourcesPolicy, bg as RestoreInfo, cH as Results, aM as SaveCreditCardPolicy, ck as ScalarAggregation, cE as ScalarResult, Y as ScalarType, aN as Schedule, ba as Schema, cr as SearchDetails, ca as SearchServicesRequest, b0 as SeoSchema, bR as ServiceAvailabilityConstraints, aW as ServiceResource, aX as ServiceResourceSelectionOneOf, dO as ServiceSearchSpec, K as ServiceType, dN as ServicesQueryResult, bc as ServicesUrlsChanged, by as SetAddOnsForGroupRequest, bz as SetAddOnsForGroupResponse, bb as SetCustomSlugEvent, da as SetCustomSlugRequest, d3 as SetServiceLocationsRequest, b3 as Settings, dK as SiteCloned, dJ as SiteCreated, ds as SitePropertiesEvent, dr as SitePropertiesNotification, aZ as Slug, T as SortDirection, O as SortOrder, P as SortType, c4 as Sorting, dB as SpecialHourPeriod, bS as SplitInterval, aR as StaffMediaItem, aS as StaffMediaItemItemOneOf, aQ as StaffMember, aT as StaffMemberDetails, a5 as Status, av as StreetAddress, dD as SupportedLanguage, b2 as Tag, dA as TimePeriod, dF as Translation, a_ as URLs, br as UpdateAddOnGroupRequest, bs as UpdateAddOnGroupResponse, bT as UpdateServiceRequest, bU as UpdateServiceResponse, b8 as Upsert, dn as UserDomainInfoChangedEvent, ag as V2Category, N as V2RequestedFields, bA as ValidateAddOnsSelectionRequest, bB as ValidateAddOnsSelectionResponse, bF as ValidateServiceRequest, bG as ValidateServiceResponse, db as ValidateSlugRequest, bC as ValidationResult, ch as ValueAggregation, ci as ValueAggregationOptionsOneOf, cu as ValueAggregationResult, cC as ValueResult, cy as ValueResults, ao as VariedPayment, aG as WaitlistPolicy, W as WebhookIdentityType } from './bookings-services-v2-service-services.universal-o2tHvpTk.js';
|
|
4
4
|
|
|
5
5
|
declare function createService$1(httpClient: HttpClient): CreateServiceSignature;
|
|
6
6
|
interface CreateServiceSignature {
|
|
@@ -50,7 +50,7 @@ interface CreateServiceSignature {
|
|
|
50
50
|
* @param - Service to create.
|
|
51
51
|
* @returns Created service.
|
|
52
52
|
*/
|
|
53
|
-
(service: Service): Promise<Service
|
|
53
|
+
(service: Service): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
54
54
|
}
|
|
55
55
|
declare function bulkCreateServices$1(httpClient: HttpClient): BulkCreateServicesSignature;
|
|
56
56
|
interface BulkCreateServicesSignature {
|
|
@@ -63,7 +63,9 @@ interface BulkCreateServicesSignature {
|
|
|
63
63
|
* for more details.
|
|
64
64
|
* @param - Services to create.
|
|
65
65
|
*/
|
|
66
|
-
(services: Service[], options?: BulkCreateServicesOptions
|
|
66
|
+
(services: Service[], options?: BulkCreateServicesOptions): Promise<NonNullablePaths<BulkCreateServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
67
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
68
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
67
69
|
}
|
|
68
70
|
declare function getService$1(httpClient: HttpClient): GetServiceSignature;
|
|
69
71
|
interface GetServiceSignature {
|
|
@@ -72,7 +74,7 @@ interface GetServiceSignature {
|
|
|
72
74
|
* @param - ID of the service to retrieve.
|
|
73
75
|
* @returns Retrieved service.
|
|
74
76
|
*/
|
|
75
|
-
(serviceId: string): Promise<Service
|
|
77
|
+
(serviceId: string): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
76
78
|
}
|
|
77
79
|
declare function updateService$1(httpClient: HttpClient): UpdateServiceSignature;
|
|
78
80
|
interface UpdateServiceSignature {
|
|
@@ -96,7 +98,7 @@ interface UpdateServiceSignature {
|
|
|
96
98
|
* @param - Service ID.
|
|
97
99
|
* @returns Updated service.
|
|
98
100
|
*/
|
|
99
|
-
(_id: string, service: UpdateService): Promise<Service
|
|
101
|
+
(_id: string, service: NonNullablePaths<UpdateService, `revision`>): Promise<NonNullablePaths<Service, ServiceNonNullablePaths>>;
|
|
100
102
|
}
|
|
101
103
|
declare function bulkUpdateServices$1(httpClient: HttpClient): BulkUpdateServicesSignature;
|
|
102
104
|
interface BulkUpdateServicesSignature {
|
|
@@ -111,7 +113,9 @@ interface BulkUpdateServicesSignature {
|
|
|
111
113
|
* The call succeeds even if one or more individual services can't be updated.
|
|
112
114
|
* Information about failures is returned in `bulkActionMetadata`.
|
|
113
115
|
*/
|
|
114
|
-
(options?: BulkUpdateServicesOptions |
|
|
116
|
+
(options?: NonNullablePaths<BulkUpdateServicesOptions, `services.${number}.service` | `services.${number}.service._id` | `services.${number}.service.revision`>): Promise<NonNullablePaths<BulkUpdateServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
117
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
118
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
115
119
|
}
|
|
116
120
|
declare function bulkUpdateServicesByFilter$1(httpClient: HttpClient): BulkUpdateServicesByFilterSignature;
|
|
117
121
|
interface BulkUpdateServicesByFilterSignature {
|
|
@@ -131,7 +135,7 @@ interface BulkUpdateServicesByFilterSignature {
|
|
|
131
135
|
* Information about failures is returned in `bulkActionMetadata`.
|
|
132
136
|
* @param - Filter to identify the services to update.
|
|
133
137
|
*/
|
|
134
|
-
(filter: Record<string, any>, options: BulkUpdateServicesByFilterOptions): Promise<BulkUpdateServicesByFilterResponse
|
|
138
|
+
(filter: Record<string, any>, options: NonNullablePaths<BulkUpdateServicesByFilterOptions, `service`>): Promise<NonNullablePaths<BulkUpdateServicesByFilterResponse, `jobId`>>;
|
|
135
139
|
}
|
|
136
140
|
declare function deleteService$1(httpClient: HttpClient): DeleteServiceSignature;
|
|
137
141
|
interface DeleteServiceSignature {
|
|
@@ -144,7 +148,7 @@ interface DeleteServiceSignature {
|
|
|
144
148
|
* @param - ID of the service to delete.
|
|
145
149
|
* @param - Allows you to configure how to handle the deleted service's future sessions and how to notify the sessions participants.
|
|
146
150
|
*/
|
|
147
|
-
(serviceId: string, options?: DeleteServiceOptions
|
|
151
|
+
(serviceId: string, options?: DeleteServiceOptions): Promise<void>;
|
|
148
152
|
}
|
|
149
153
|
declare function bulkDeleteServices$1(httpClient: HttpClient): BulkDeleteServicesSignature;
|
|
150
154
|
interface BulkDeleteServicesSignature {
|
|
@@ -160,7 +164,9 @@ interface BulkDeleteServicesSignature {
|
|
|
160
164
|
* Information about failures is returned in `bulkActionMetadata`.
|
|
161
165
|
* @param - IDs of the services to delete.
|
|
162
166
|
*/
|
|
163
|
-
(ids: string[], options?: BulkDeleteServicesOptions
|
|
167
|
+
(ids: string[], options?: BulkDeleteServicesOptions): Promise<NonNullablePaths<BulkDeleteServicesResponse, `results` | `results.${number}.itemMetadata.originalIndex` | `results.${number}.itemMetadata.success` | `results.${number}.itemMetadata.error.code` | `results.${number}.itemMetadata.error.description` | {
|
|
168
|
+
[P in ServiceNonNullablePaths]: `results.${number}.item.${P}`;
|
|
169
|
+
}[ServiceNonNullablePaths] | `bulkActionMetadata.totalSuccesses` | `bulkActionMetadata.totalFailures` | `bulkActionMetadata.undetailedFailures`>>;
|
|
164
170
|
}
|
|
165
171
|
declare function bulkDeleteServicesByFilter$1(httpClient: HttpClient): BulkDeleteServicesByFilterSignature;
|
|
166
172
|
interface BulkDeleteServicesByFilterSignature {
|
|
@@ -183,7 +189,7 @@ interface BulkDeleteServicesByFilterSignature {
|
|
|
183
189
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).
|
|
184
190
|
* @param - Filter to identify the services that need to be deleted.
|
|
185
191
|
*/
|
|
186
|
-
(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions
|
|
192
|
+
(filter: Record<string, any>, options?: BulkDeleteServicesByFilterOptions): Promise<NonNullablePaths<BulkDeleteServicesByFilterResponse, `jobId`>>;
|
|
187
193
|
}
|
|
188
194
|
declare function queryServices$1(httpClient: HttpClient): QueryServicesSignature;
|
|
189
195
|
interface QueryServicesSignature {
|
|
@@ -241,7 +247,9 @@ interface SearchServicesSignature {
|
|
|
241
247
|
*
|
|
242
248
|
* Refer to the supported filters article ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/supported-filters) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/filtering-and-sorting)) for complete filter and sorting options.
|
|
243
249
|
*/
|
|
244
|
-
(search: ServiceSearch): Promise<SearchServicesResponse
|
|
250
|
+
(search: ServiceSearch): Promise<NonNullablePaths<SearchServicesResponse, {
|
|
251
|
+
[P in ServiceNonNullablePaths]: `services.${number}.${P}`;
|
|
252
|
+
}[ServiceNonNullablePaths] | `aggregationData.results` | `aggregationData.results.${number}.scalar.type` | `aggregationData.results.${number}.scalar.value` | `aggregationData.results.${number}.name` | `aggregationData.results.${number}.type` | `aggregationData.results.${number}.fieldPath`>>;
|
|
245
253
|
}
|
|
246
254
|
declare function queryPolicies$1(httpClient: HttpClient): QueryPoliciesSignature;
|
|
247
255
|
interface QueryPoliciesSignature {
|
|
@@ -285,7 +293,9 @@ interface QueryPoliciesSignature {
|
|
|
285
293
|
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
286
294
|
* for all supported filters and sorting options.
|
|
287
295
|
*/
|
|
288
|
-
(query: CursorQuery): Promise<QueryPoliciesResponse
|
|
296
|
+
(query: CursorQuery): Promise<NonNullablePaths<QueryPoliciesResponse, `bookingPolicies` | `bookingPolicies.${number}.bookingPolicy._id` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.enabled` | `bookingPolicies.${number}.bookingPolicy.customPolicyDescription.description` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `bookingPolicies.${number}.bookingPolicy.bookAfterStartPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.limitLatestCancellation` | `bookingPolicies.${number}.bookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.limitLatestReschedule` | `bookingPolicies.${number}.bookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.capacity` | `bookingPolicies.${number}.bookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `bookingPolicies.${number}.bookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.resourcesPolicy.autoAssignAllowed` | `bookingPolicies.${number}.bookingPolicy.cancellationFeePolicy.enabled` | `bookingPolicies.${number}.bookingPolicy.saveCreditCardPolicy.enabled` | {
|
|
297
|
+
[P in ServiceNonNullablePaths]: `bookingPolicies.${number}.connectedServices.${number}.${P}`;
|
|
298
|
+
}[ServiceNonNullablePaths] | `bookingPolicies.${number}.totalServiceCount`>>;
|
|
289
299
|
}
|
|
290
300
|
declare function queryBookingForms$1(httpClient: HttpClient): QueryBookingFormsSignature;
|
|
291
301
|
interface QueryBookingFormsSignature {
|
|
@@ -335,7 +345,7 @@ interface QueryBookingFormsSignature {
|
|
|
335
345
|
* form filters ([REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object))
|
|
336
346
|
* for all supported filters and sorting options.
|
|
337
347
|
*/
|
|
338
|
-
(query: CursorQuery, options?: QueryBookingFormsOptions
|
|
348
|
+
(query: CursorQuery, options?: QueryBookingFormsOptions): Promise<NonNullablePaths<QueryBookingFormsResponse, `bookingForms` | `bookingForms.${number}.formDetails.formId` | `bookingForms.${number}.totalServiceCount` | `defaultBookingForm.formDetails.formId` | `defaultBookingForm.connectedServices` | `defaultBookingForm.totalServiceCount`>>;
|
|
339
349
|
}
|
|
340
350
|
declare function countServices$1(httpClient: HttpClient): CountServicesSignature;
|
|
341
351
|
interface CountServicesSignature {
|
|
@@ -350,7 +360,7 @@ interface CountServicesSignature {
|
|
|
350
360
|
* To learn about working with filters in general, see
|
|
351
361
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters)
|
|
352
362
|
*/
|
|
353
|
-
(options?: CountServicesOptions
|
|
363
|
+
(options?: CountServicesOptions): Promise<NonNullablePaths<CountServicesResponse, `count`>>;
|
|
354
364
|
}
|
|
355
365
|
declare function queryLocations$1(httpClient: HttpClient): QueryLocationsSignature;
|
|
356
366
|
interface QueryLocationsSignature {
|
|
@@ -380,7 +390,7 @@ interface QueryLocationsSignature {
|
|
|
380
390
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
381
391
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
382
392
|
*/
|
|
383
|
-
(options?: QueryLocationsOptions
|
|
393
|
+
(options?: QueryLocationsOptions): Promise<NonNullablePaths<QueryLocationsResponse, `businessLocations.exists` | `businessLocations.locations` | `businessLocations.locations.${number}.business._id` | `businessLocations.locations.${number}.business.name` | `businessLocations.locations.${number}.business.address.streetAddress.number` | `businessLocations.locations.${number}.business.address.streetAddress.name` | `businessLocations.locations.${number}.business.address.streetAddress.apt` | `businessLocations.locations.${number}.custom._id` | `businessLocations.locations.${number}._id` | `businessLocations.locations.${number}.type` | `customLocations.exists` | `customerLocations.exists`>>;
|
|
384
394
|
}
|
|
385
395
|
declare function queryCategories$1(httpClient: HttpClient): QueryCategoriesSignature;
|
|
386
396
|
interface QueryCategoriesSignature {
|
|
@@ -409,7 +419,7 @@ interface QueryCategoriesSignature {
|
|
|
409
419
|
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
|
|
410
420
|
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
411
421
|
*/
|
|
412
|
-
(options?: QueryCategoriesOptions
|
|
422
|
+
(options?: QueryCategoriesOptions): Promise<NonNullablePaths<QueryCategoriesResponse, `categories` | `categories.${number}._id`>>;
|
|
413
423
|
}
|
|
414
424
|
declare function setServiceLocations$1(httpClient: HttpClient): SetServiceLocationsSignature;
|
|
415
425
|
interface SetServiceLocationsSignature {
|
|
@@ -465,7 +475,9 @@ interface SetServiceLocationsSignature {
|
|
|
465
475
|
* @param - ID of the service.
|
|
466
476
|
* @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.
|
|
467
477
|
*/
|
|
468
|
-
(serviceId: string, locations: Location[], options?: SetServiceLocationsOptions
|
|
478
|
+
(serviceId: string, locations: Location[], options?: SetServiceLocationsOptions): Promise<NonNullablePaths<SetServiceLocationsResponse, {
|
|
479
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
480
|
+
}[ServiceNonNullablePaths]>>;
|
|
469
481
|
}
|
|
470
482
|
declare function enablePricingPlansForService$1(httpClient: HttpClient): EnablePricingPlansForServiceSignature;
|
|
471
483
|
interface EnablePricingPlansForServiceSignature {
|
|
@@ -485,7 +497,9 @@ interface EnablePricingPlansForServiceSignature {
|
|
|
485
497
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/pricing-plans/plans/introduction) | [REST](https://dev.wix.com/api/rest/wix-pricing-plans/pricing-plans/plans/plan-object))
|
|
486
498
|
* to add to the service's `payment.pricingPlanIds` array.
|
|
487
499
|
*/
|
|
488
|
-
(serviceId: string, pricingPlanIds: string[]): Promise<EnablePricingPlansForServiceResponse
|
|
500
|
+
(serviceId: string, pricingPlanIds: string[]): Promise<NonNullablePaths<EnablePricingPlansForServiceResponse, {
|
|
501
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
502
|
+
}[ServiceNonNullablePaths]>>;
|
|
489
503
|
}
|
|
490
504
|
declare function disablePricingPlansForService$1(httpClient: HttpClient): DisablePricingPlansForServiceSignature;
|
|
491
505
|
interface DisablePricingPlansForServiceSignature {
|
|
@@ -500,7 +514,9 @@ interface DisablePricingPlansForServiceSignature {
|
|
|
500
514
|
* able to book the service, as they will have no payment options available.
|
|
501
515
|
* @param - ID of the service to update.
|
|
502
516
|
*/
|
|
503
|
-
(serviceId: string, options?: DisablePricingPlansForServiceOptions
|
|
517
|
+
(serviceId: string, options?: DisablePricingPlansForServiceOptions): Promise<NonNullablePaths<DisablePricingPlansForServiceResponse, {
|
|
518
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
519
|
+
}[ServiceNonNullablePaths]>>;
|
|
504
520
|
}
|
|
505
521
|
declare function setCustomSlug$1(httpClient: HttpClient): SetCustomSlugSignature;
|
|
506
522
|
interface SetCustomSlugSignature {
|
|
@@ -514,7 +530,9 @@ interface SetCustomSlugSignature {
|
|
|
514
530
|
* - Another service has used the slug in the past.
|
|
515
531
|
* @param - ID of the service for which to update the active slug.
|
|
516
532
|
*/
|
|
517
|
-
(serviceId: string, options?: SetCustomSlugOptions
|
|
533
|
+
(serviceId: string, options?: SetCustomSlugOptions): Promise<NonNullablePaths<SetCustomSlugResponse, `slug.name` | {
|
|
534
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
535
|
+
}[ServiceNonNullablePaths]>>;
|
|
518
536
|
}
|
|
519
537
|
declare function validateSlug$1(httpClient: HttpClient): ValidateSlugSignature;
|
|
520
538
|
interface ValidateSlugSignature {
|
|
@@ -530,7 +548,7 @@ interface ValidateSlugSignature {
|
|
|
530
548
|
* The call fails if at least one of the checks fails.
|
|
531
549
|
* @param - IO of the service to check custom slug validity for.
|
|
532
550
|
*/
|
|
533
|
-
(serviceId: string, options?: ValidateSlugOptions
|
|
551
|
+
(serviceId: string, options?: ValidateSlugOptions): Promise<NonNullablePaths<ValidateSlugResponse, `valid` | `errors`>>;
|
|
534
552
|
}
|
|
535
553
|
declare function cloneService$1(httpClient: HttpClient): CloneServiceSignature;
|
|
536
554
|
interface CloneServiceSignature {
|
|
@@ -597,7 +615,9 @@ interface CloneServiceSignature {
|
|
|
597
615
|
* after cloning the service, customers will be unable to book the service.
|
|
598
616
|
* @param - ID of the service to clone.
|
|
599
617
|
*/
|
|
600
|
-
(sourceServiceId: string): Promise<CloneServiceResponse
|
|
618
|
+
(sourceServiceId: string): Promise<NonNullablePaths<CloneServiceResponse, {
|
|
619
|
+
[P in ServiceNonNullablePaths]: `service.${P}`;
|
|
620
|
+
}[ServiceNonNullablePaths] | `errors`>>;
|
|
601
621
|
}
|
|
602
622
|
declare const onServiceCreated$1: EventDefinition<ServiceCreatedEnvelope, "wix.bookings.services.v2.service_created">;
|
|
603
623
|
declare const onServiceDeleted$1: EventDefinition<ServiceDeletedEnvelope, "wix.bookings.services.v2.service_deleted">;
|