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