@wix/auto_sdk_bookings_booking-policies 1.0.35 → 1.0.36
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-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.ts → bookings-v1-booking-policy-booking-policies.universal-DyKOkpmg.d.ts} +2 -1
- package/build/cjs/index.d.ts +15 -9
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/es/{bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.mts → bookings-v1-booking-policy-booking-policies.universal-DyKOkpmg.d.mts} +2 -1
- package/build/es/index.d.mts +15 -9
- package/build/es/index.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/internal/cjs/{bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.ts → bookings-v1-booking-policy-booking-policies.universal-DyKOkpmg.d.ts} +2 -1
- package/build/internal/cjs/index.d.ts +15 -9
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/es/{bookings-v1-booking-policy-booking-policies.universal-Dn-27NDP.d.mts → bookings-v1-booking-policy-booking-policies.universal-DyKOkpmg.d.mts} +2 -1
- package/build/internal/es/index.d.mts +15 -9
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as CreateBookingPolicyRequest$1, z as CreateBookingPolicyResponse$1, A as GetBookingPolicyRequest$1, F as GetBookingPolicyResponse$1, H as GetStrictestBookingPolicyRequest$1, G as GetStrictestBookingPolicyResponse$1, I as UpdateBookingPolicyRequest$1, J as UpdateBookingPolicyResponse$1, K as SetDefaultBookingPolicyRequest$1, S as SetDefaultBookingPolicyResponse$1, O as DeleteBookingPolicyRequest$1, Q as DeleteBookingPolicyResponse$1, T as QueryBookingPoliciesRequest$1, _ as QueryBookingPoliciesResponse$1, a1 as CountBookingPoliciesRequest$1, c as CountBookingPoliciesResponse$1 } from './bookings-v1-booking-policy-booking-policies.universal-DyKOkpmg.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A booking policy is a set of rules that determine how customers can book a
|
|
@@ -1493,6 +1493,7 @@ interface BookingPolicyUpdatedEnvelope {
|
|
|
1493
1493
|
entity: BookingPolicy;
|
|
1494
1494
|
metadata: EventMetadata;
|
|
1495
1495
|
}
|
|
1496
|
+
type BookingPolicyNonNullablePaths = `customPolicyDescription.enabled` | `customPolicyDescription.description` | `limitEarlyBookingPolicy.enabled` | `limitEarlyBookingPolicy.earliestBookingInMinutes` | `limitLateBookingPolicy.enabled` | `limitLateBookingPolicy.latestBookingInMinutes` | `bookAfterStartPolicy.enabled` | `cancellationPolicy.enabled` | `cancellationPolicy.limitLatestCancellation` | `cancellationPolicy.latestCancellationInMinutes` | `reschedulePolicy.enabled` | `reschedulePolicy.limitLatestReschedule` | `reschedulePolicy.latestRescheduleInMinutes` | `waitlistPolicy.enabled` | `waitlistPolicy.capacity` | `waitlistPolicy.reservationTimeInMinutes` | `participantsPolicy.maxParticipantsPerBooking` | `cancellationFeePolicy.enabled` | `cancellationFeePolicy.cancellationWindows` | `cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `cancellationFeePolicy.cancellationWindows.${number}.percentage` | `saveCreditCardPolicy.enabled`;
|
|
1496
1497
|
interface UpdateBookingPolicy {
|
|
1497
1498
|
/**
|
|
1498
1499
|
* ID of the booking policy.
|
|
@@ -1622,4 +1623,4 @@ interface CountBookingPoliciesOptions {
|
|
|
1622
1623
|
filter?: Record<string, any> | null;
|
|
1623
1624
|
}
|
|
1624
1625
|
|
|
1625
|
-
export { type
|
|
1626
|
+
export { type CursorPagingMetadata as $, type GetBookingPolicyRequest as A, type BookingPolicy as B, type CountBookingPoliciesOptions as C, DayOfWeek as D, type ExtendedFields as E, type GetBookingPolicyResponse as F, type GetStrictestBookingPolicyResponse as G, type GetStrictestBookingPolicyRequest as H, type UpdateBookingPolicyRequest as I, type UpdateBookingPolicyResponse as J, type SetDefaultBookingPolicyRequest as K, type LimitEarlyBookingPolicy as L, type Money as M, Namespace as N, type DeleteBookingPolicyRequest as O, PlacementType as P, type DeleteBookingPolicyResponse as Q, ResolutionMethod as R, type SetDefaultBookingPolicyResponse as S, type QueryBookingPoliciesRequest as T, type UpdateBookingPolicy as U, type CursorQuery as V, WebhookIdentityType as W, type CursorQueryPagingMethodOneOf as X, type Sorting as Y, type CursorPaging as Z, type QueryBookingPoliciesResponse as _, type BookingPolicyNonNullablePaths as a, type EventMetadata as a$, type Cursors as a0, type CountBookingPoliciesRequest as a1, type UpdateAllPoliciesRequest as a2, type UpdateAllPoliciesResponse as a3, type CreateMissingDefaultPolicyRequest as a4, type CreateMissingDefaultPolicyResponse as a5, type DomainEvent as a6, type DomainEventBodyOneOf as a7, type EntityCreatedEvent as a8, type RestoreInfo as a9, type Asset as aA, type SiteCreated as aB, type SiteTransferred as aC, type SiteDeleted as aD, type DeleteContext as aE, type SiteUndeleted as aF, type SitePublished as aG, type SiteUnpublished as aH, type SiteMarkedAsTemplate as aI, type SiteMarkedAsWixSite as aJ, type ServiceProvisioned as aK, type ServiceRemoved as aL, type SiteRenamed as aM, type SiteHardDeleted as aN, type NamespaceChanged as aO, type StudioAssigned as aP, type StudioUnassigned as aQ, type SiteUrlChanged as aR, type SitePurgedExternally as aS, type OdeditorAssigned as aT, type OdeditorUnassigned as aU, type PicassoAssigned as aV, type PicassoUnassigned as aW, type MessageEnvelope as aX, type IdentificationData as aY, type IdentificationDataIdOneOf as aZ, type BaseEventMetadata as a_, type EntityUpdatedEvent as aa, type EntityDeletedEvent as ab, type ActionEvent as ac, type Empty as ad, type SitePropertiesNotification as ae, type SitePropertiesEvent as af, type Properties as ag, type Categories as ah, type Locale as ai, type Address as aj, type AddressHint as ak, type GeoCoordinates as al, type BusinessSchedule as am, type TimePeriod as an, type SpecialHourPeriod as ao, type Multilingual as ap, type SupportedLanguage as aq, type ConsentPolicy as ar, type Translation as as, type ChangeContext as at, type ChangeContextPayloadOneOf as au, type PropertiesChange as av, type V4SiteCreated as aw, type SiteCloned as ax, type MetaSiteSpecialEvent as ay, type MetaSiteSpecialEventPayloadOneOf as az, type BookingPoliciesQueryBuilder as b, type BookingPoliciesQueryResult as b0, type CountBookingPoliciesResponse as c, type BookingPolicyCreatedEnvelope as d, type BookingPolicyDefaultBookingPolicySetEnvelope as e, type BookingPolicyDeletedEnvelope as f, type BookingPolicyUpdatedEnvelope as g, SortOrder as h, State as i, SiteCreatedContext as j, DeleteStatus as k, type PolicyDescription as l, type LimitLateBookingPolicy as m, type BookAfterStartPolicy as n, type CancellationPolicy as o, type ReschedulePolicy as p, type WaitlistPolicy as q, type ParticipantsPolicy as r, type ResourcesPolicy as s, type CancellationFeePolicy as t, type CancellationWindow as u, type CancellationWindowFeeOneOf as v, type SaveCreditCardPolicy as w, type DefaultBookingPolicySet as x, type CreateBookingPolicyRequest as y, type CreateBookingPolicyResponse as z };
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import { B as BookingPolicy, G as GetStrictestBookingPolicyResponse, U as UpdateBookingPolicy, S as SetDefaultBookingPolicyResponse,
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { B as BookingPolicy, a as BookingPolicyNonNullablePaths, G as GetStrictestBookingPolicyResponse, U as UpdateBookingPolicy, S as SetDefaultBookingPolicyResponse, b as BookingPoliciesQueryBuilder, C as CountBookingPoliciesOptions, c as CountBookingPoliciesResponse, d as BookingPolicyCreatedEnvelope, e as BookingPolicyDefaultBookingPolicySetEnvelope, f as BookingPolicyDeletedEnvelope, g as BookingPolicyUpdatedEnvelope } from './bookings-v1-booking-policy-booking-policies.universal-DyKOkpmg.mjs';
|
|
3
|
+
export { ac as ActionEvent, aj as Address, ak as AddressHint, aA as Asset, a_ as BaseEventMetadata, n as BookAfterStartPolicy, b0 as BookingPoliciesQueryResult, am as BusinessSchedule, t as CancellationFeePolicy, o as CancellationPolicy, u as CancellationWindow, v as CancellationWindowFeeOneOf, ah as Categories, at as ChangeContext, au as ChangeContextPayloadOneOf, ar as ConsentPolicy, a1 as CountBookingPoliciesRequest, y as CreateBookingPolicyRequest, z as CreateBookingPolicyResponse, a4 as CreateMissingDefaultPolicyRequest, a5 as CreateMissingDefaultPolicyResponse, Z as CursorPaging, $ as CursorPagingMetadata, V as CursorQuery, X as CursorQueryPagingMethodOneOf, a0 as Cursors, D as DayOfWeek, x as DefaultBookingPolicySet, O as DeleteBookingPolicyRequest, Q as DeleteBookingPolicyResponse, aE as DeleteContext, k as DeleteStatus, a6 as DomainEvent, a7 as DomainEventBodyOneOf, ad as Empty, a8 as EntityCreatedEvent, ab as EntityDeletedEvent, aa as EntityUpdatedEvent, a$ as EventMetadata, E as ExtendedFields, al as GeoCoordinates, A as GetBookingPolicyRequest, F as GetBookingPolicyResponse, H as GetStrictestBookingPolicyRequest, aY as IdentificationData, aZ as IdentificationDataIdOneOf, L as LimitEarlyBookingPolicy, m as LimitLateBookingPolicy, ai as Locale, aX as MessageEnvelope, ay as MetaSiteSpecialEvent, az as MetaSiteSpecialEventPayloadOneOf, M as Money, ap as Multilingual, N as Namespace, aO as NamespaceChanged, aT as OdeditorAssigned, aU as OdeditorUnassigned, r as ParticipantsPolicy, aV as PicassoAssigned, aW as PicassoUnassigned, P as PlacementType, l as PolicyDescription, ag as Properties, av as PropertiesChange, T as QueryBookingPoliciesRequest, _ as QueryBookingPoliciesResponse, p as ReschedulePolicy, R as ResolutionMethod, s as ResourcesPolicy, a9 as RestoreInfo, w as SaveCreditCardPolicy, aK as ServiceProvisioned, aL as ServiceRemoved, K as SetDefaultBookingPolicyRequest, ax as SiteCloned, aB as SiteCreated, j as SiteCreatedContext, aD as SiteDeleted, aN as SiteHardDeleted, aI as SiteMarkedAsTemplate, aJ as SiteMarkedAsWixSite, af as SitePropertiesEvent, ae as SitePropertiesNotification, aG as SitePublished, aS as SitePurgedExternally, aM as SiteRenamed, aC as SiteTransferred, aF as SiteUndeleted, aH as SiteUnpublished, aR as SiteUrlChanged, h as SortOrder, Y as Sorting, ao as SpecialHourPeriod, i as State, aP as StudioAssigned, aQ as StudioUnassigned, aq as SupportedLanguage, an as TimePeriod, as as Translation, a2 as UpdateAllPoliciesRequest, a3 as UpdateAllPoliciesResponse, I as UpdateBookingPolicyRequest, J as UpdateBookingPolicyResponse, aw as V4SiteCreated, q as WaitlistPolicy, W as WebhookIdentityType } from './bookings-v1-booking-policy-booking-policies.universal-DyKOkpmg.mjs';
|
|
4
4
|
|
|
5
5
|
declare function createBookingPolicy$1(httpClient: HttpClient): CreateBookingPolicySignature;
|
|
6
6
|
interface CreateBookingPolicySignature {
|
|
@@ -9,7 +9,7 @@ interface CreateBookingPolicySignature {
|
|
|
9
9
|
* @param - Booking policy to create.
|
|
10
10
|
* @returns Created booking policy.
|
|
11
11
|
*/
|
|
12
|
-
(bookingPolicy: BookingPolicy): Promise<BookingPolicy
|
|
12
|
+
(bookingPolicy: BookingPolicy): Promise<NonNullablePaths<BookingPolicy, BookingPolicyNonNullablePaths>>;
|
|
13
13
|
}
|
|
14
14
|
declare function getBookingPolicy$1(httpClient: HttpClient): GetBookingPolicySignature;
|
|
15
15
|
interface GetBookingPolicySignature {
|
|
@@ -18,7 +18,7 @@ interface GetBookingPolicySignature {
|
|
|
18
18
|
* @param - ID of the booking policy to retrieve.
|
|
19
19
|
* @returns Retrieved booking policy.
|
|
20
20
|
*/
|
|
21
|
-
(bookingPolicyId: string): Promise<BookingPolicy
|
|
21
|
+
(bookingPolicyId: string): Promise<NonNullablePaths<BookingPolicy, BookingPolicyNonNullablePaths>>;
|
|
22
22
|
}
|
|
23
23
|
declare function getStrictestBookingPolicy$1(httpClient: HttpClient): GetStrictestBookingPolicySignature;
|
|
24
24
|
interface GetStrictestBookingPolicySignature {
|
|
@@ -34,7 +34,9 @@ interface GetStrictestBookingPolicySignature {
|
|
|
34
34
|
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/create-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy)).
|
|
35
35
|
* @param - IDs of the booking policies for which to retrieve the strictest rules for.
|
|
36
36
|
*/
|
|
37
|
-
(bookingPolicyIds: string[]): Promise<GetStrictestBookingPolicyResponse
|
|
37
|
+
(bookingPolicyIds: string[]): Promise<NonNullablePaths<GetStrictestBookingPolicyResponse, {
|
|
38
|
+
[P in BookingPolicyNonNullablePaths]: `bookingPolicy.${P}`;
|
|
39
|
+
}[BookingPolicyNonNullablePaths]>>;
|
|
38
40
|
}
|
|
39
41
|
declare function updateBookingPolicy$1(httpClient: HttpClient): UpdateBookingPolicySignature;
|
|
40
42
|
interface UpdateBookingPolicySignature {
|
|
@@ -48,7 +50,7 @@ interface UpdateBookingPolicySignature {
|
|
|
48
50
|
* @param - ID of the booking policy.
|
|
49
51
|
* @returns Updated booking policy.
|
|
50
52
|
*/
|
|
51
|
-
(_id: string, bookingPolicy: UpdateBookingPolicy): Promise<BookingPolicy
|
|
53
|
+
(_id: string, bookingPolicy: NonNullablePaths<UpdateBookingPolicy, `revision`>): Promise<NonNullablePaths<BookingPolicy, BookingPolicyNonNullablePaths>>;
|
|
52
54
|
}
|
|
53
55
|
declare function setDefaultBookingPolicy$1(httpClient: HttpClient): SetDefaultBookingPolicySignature;
|
|
54
56
|
interface SetDefaultBookingPolicySignature {
|
|
@@ -61,7 +63,11 @@ interface SetDefaultBookingPolicySignature {
|
|
|
61
63
|
* default, the call succeeds without changing any `bookingPolicy` object.
|
|
62
64
|
* @param - ID of the booking policy that's set as default.
|
|
63
65
|
*/
|
|
64
|
-
(bookingPolicyId: string): Promise<SetDefaultBookingPolicyResponse
|
|
66
|
+
(bookingPolicyId: string): Promise<NonNullablePaths<SetDefaultBookingPolicyResponse, {
|
|
67
|
+
[P in BookingPolicyNonNullablePaths]: `currentDefaultBookingPolicy.${P}`;
|
|
68
|
+
}[BookingPolicyNonNullablePaths] | {
|
|
69
|
+
[P in BookingPolicyNonNullablePaths]: `previousDefaultBookingPolicy.${P}`;
|
|
70
|
+
}[BookingPolicyNonNullablePaths]>>;
|
|
65
71
|
}
|
|
66
72
|
declare function deleteBookingPolicy$1(httpClient: HttpClient): DeleteBookingPolicySignature;
|
|
67
73
|
interface DeleteBookingPolicySignature {
|
|
@@ -107,7 +113,7 @@ interface CountBookingPoliciesSignature {
|
|
|
107
113
|
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
108
114
|
* for a complete list of supported filters.
|
|
109
115
|
*/
|
|
110
|
-
(options?: CountBookingPoliciesOptions
|
|
116
|
+
(options?: CountBookingPoliciesOptions): Promise<NonNullablePaths<CountBookingPoliciesResponse, `count`>>;
|
|
111
117
|
}
|
|
112
118
|
declare const onBookingPolicyCreated$1: EventDefinition<BookingPolicyCreatedEnvelope, "wix.bookings.v1.booking_policy_created">;
|
|
113
119
|
declare const onBookingPolicyDefaultBookingPolicySet$1: EventDefinition<BookingPolicyDefaultBookingPolicySetEnvelope, "wix.bookings.v1.booking_policy_default_booking_policy_set">;
|