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