@wix/auto_sdk_bookings_booking-policies 1.0.41 → 1.0.43
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/index.d.ts +17 -10
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +0 -8
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +17 -10
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +0 -8
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +17 -10
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +0 -8
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +17 -10
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +0 -8
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
2
|
import { BookingPolicy, CreateBookingPolicyValidationErrors, GetStrictestBookingPolicyResponse, UpdateBookingPolicy, UpdateBookingPolicyValidationErrors, SetDefaultBookingPolicyResponse, DeleteBookingPolicyApplicationErrors, BookingPoliciesQueryBuilder, CountBookingPoliciesOptions, CountBookingPoliciesResponse, BookingPolicyCreatedEnvelope, BookingPolicyDefaultBookingPolicySetEnvelope, BookingPolicyDeletedEnvelope, BookingPolicyUpdatedEnvelope } from './index.typings.mjs';
|
|
3
3
|
export { ActionEvent, Address, AddressHint, Asset, BaseEventMetadata, BookAfterStartPolicy, BookingPoliciesQueryResult, BusinessSchedule, CancellationFeePolicy, CancellationPolicy, CancellationWindow, CancellationWindowFeeOneOf, Categories, ChangeContext, ChangeContextPayloadOneOf, ConsentPolicy, CountBookingPoliciesRequest, CreateBookingPolicyRequest, CreateBookingPolicyResponse, CreateMissingDefaultPolicyRequest, CreateMissingDefaultPolicyResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DayOfWeek, DefaultBookingPolicySet, DeleteBookingPolicyRequest, DeleteBookingPolicyResponse, DeleteContext, DeleteStatus, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExtendedFields, GeoCoordinates, GetBookingPolicyRequest, GetBookingPolicyResponse, GetStrictestBookingPolicyRequest, IdentificationData, IdentificationDataIdOneOf, LimitEarlyBookingPolicy, LimitLateBookingPolicy, Locale, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Money, Multilingual, Namespace, NamespaceChanged, OdeditorAssigned, OdeditorUnassigned, ParticipantsPolicy, PicassoAssigned, PicassoUnassigned, PlacementType, PolicyDescription, Properties, PropertiesChange, QueryBookingPoliciesRequest, QueryBookingPoliciesResponse, ReschedulePolicy, ResolutionMethod, ResourcesPolicy, RestoreInfo, SaveCreditCardPolicy, ServiceProvisioned, ServiceRemoved, SetDefaultBookingPolicyRequest, SiteCloned, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePropertiesEvent, SitePropertiesNotification, SitePublished, SitePurgedExternally, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, SiteUrlChanged, SortOrder, Sorting, SpecialHourPeriod, State, StudioAssigned, StudioUnassigned, SupportedLanguage, TimePeriod, Translation, UpdateAllPoliciesRequest, UpdateAllPoliciesResponse, UpdateBookingPolicyRequest, UpdateBookingPolicyResponse, V4SiteCreated, WaitlistPolicy, WebhookIdentityType } from './index.typings.mjs';
|
|
4
4
|
|
|
5
|
+
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`;
|
|
5
6
|
declare function createBookingPolicy$1(httpClient: HttpClient): CreateBookingPolicySignature;
|
|
6
7
|
interface CreateBookingPolicySignature {
|
|
7
8
|
/**
|
|
@@ -9,8 +10,8 @@ interface CreateBookingPolicySignature {
|
|
|
9
10
|
* @param - Booking policy to create.
|
|
10
11
|
* @returns Created booking policy.
|
|
11
12
|
*/
|
|
12
|
-
(bookingPolicy: BookingPolicy): Promise<BookingPolicy & {
|
|
13
|
-
__validationErrorsType?: CreateBookingPolicyValidationErrors
|
|
13
|
+
(bookingPolicy: BookingPolicy): Promise<NonNullablePaths<BookingPolicy, BookingPolicyNonNullablePaths> & {
|
|
14
|
+
__validationErrorsType?: CreateBookingPolicyValidationErrors;
|
|
14
15
|
}>;
|
|
15
16
|
}
|
|
16
17
|
declare function getBookingPolicy$1(httpClient: HttpClient): GetBookingPolicySignature;
|
|
@@ -20,7 +21,7 @@ interface GetBookingPolicySignature {
|
|
|
20
21
|
* @param - ID of the booking policy to retrieve.
|
|
21
22
|
* @returns Retrieved booking policy.
|
|
22
23
|
*/
|
|
23
|
-
(bookingPolicyId: string): Promise<BookingPolicy
|
|
24
|
+
(bookingPolicyId: string): Promise<NonNullablePaths<BookingPolicy, BookingPolicyNonNullablePaths>>;
|
|
24
25
|
}
|
|
25
26
|
declare function getStrictestBookingPolicy$1(httpClient: HttpClient): GetStrictestBookingPolicySignature;
|
|
26
27
|
interface GetStrictestBookingPolicySignature {
|
|
@@ -36,7 +37,9 @@ interface GetStrictestBookingPolicySignature {
|
|
|
36
37
|
* ([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)).
|
|
37
38
|
* @param - IDs of the booking policies for which to retrieve the strictest rules for.
|
|
38
39
|
*/
|
|
39
|
-
(bookingPolicyIds: string[]): Promise<GetStrictestBookingPolicyResponse
|
|
40
|
+
(bookingPolicyIds: string[]): Promise<NonNullablePaths<GetStrictestBookingPolicyResponse, {
|
|
41
|
+
[P in BookingPolicyNonNullablePaths]: `bookingPolicy.${P}`;
|
|
42
|
+
}[BookingPolicyNonNullablePaths]>>;
|
|
40
43
|
}
|
|
41
44
|
declare function updateBookingPolicy$1(httpClient: HttpClient): UpdateBookingPolicySignature;
|
|
42
45
|
interface UpdateBookingPolicySignature {
|
|
@@ -50,8 +53,8 @@ interface UpdateBookingPolicySignature {
|
|
|
50
53
|
* @param - ID of the booking policy.
|
|
51
54
|
* @returns Updated booking policy.
|
|
52
55
|
*/
|
|
53
|
-
(_id: string, bookingPolicy: UpdateBookingPolicy): Promise<BookingPolicy & {
|
|
54
|
-
__validationErrorsType?: UpdateBookingPolicyValidationErrors
|
|
56
|
+
(_id: string, bookingPolicy: NonNullablePaths<UpdateBookingPolicy, `revision`>): Promise<NonNullablePaths<BookingPolicy, BookingPolicyNonNullablePaths> & {
|
|
57
|
+
__validationErrorsType?: UpdateBookingPolicyValidationErrors;
|
|
55
58
|
}>;
|
|
56
59
|
}
|
|
57
60
|
declare function setDefaultBookingPolicy$1(httpClient: HttpClient): SetDefaultBookingPolicySignature;
|
|
@@ -65,7 +68,11 @@ interface SetDefaultBookingPolicySignature {
|
|
|
65
68
|
* default, the call succeeds without changing any `bookingPolicy` object.
|
|
66
69
|
* @param - ID of the booking policy that's set as default.
|
|
67
70
|
*/
|
|
68
|
-
(bookingPolicyId: string): Promise<SetDefaultBookingPolicyResponse
|
|
71
|
+
(bookingPolicyId: string): Promise<NonNullablePaths<SetDefaultBookingPolicyResponse, {
|
|
72
|
+
[P in BookingPolicyNonNullablePaths]: `currentDefaultBookingPolicy.${P}`;
|
|
73
|
+
}[BookingPolicyNonNullablePaths] | {
|
|
74
|
+
[P in BookingPolicyNonNullablePaths]: `previousDefaultBookingPolicy.${P}`;
|
|
75
|
+
}[BookingPolicyNonNullablePaths]>>;
|
|
69
76
|
}
|
|
70
77
|
declare function deleteBookingPolicy$1(httpClient: HttpClient): DeleteBookingPolicySignature;
|
|
71
78
|
interface DeleteBookingPolicySignature {
|
|
@@ -78,7 +85,7 @@ interface DeleteBookingPolicySignature {
|
|
|
78
85
|
* @param - ID of the booking policy to delete.
|
|
79
86
|
*/
|
|
80
87
|
(bookingPolicyId: string): Promise<void & {
|
|
81
|
-
__applicationErrorsType?: DeleteBookingPolicyApplicationErrors
|
|
88
|
+
__applicationErrorsType?: DeleteBookingPolicyApplicationErrors;
|
|
82
89
|
}>;
|
|
83
90
|
}
|
|
84
91
|
declare function queryBookingPolicies$1(httpClient: HttpClient): QueryBookingPoliciesSignature;
|
|
@@ -113,7 +120,7 @@ interface CountBookingPoliciesSignature {
|
|
|
113
120
|
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
114
121
|
* for a complete list of supported filters.
|
|
115
122
|
*/
|
|
116
|
-
(options?: CountBookingPoliciesOptions
|
|
123
|
+
(options?: CountBookingPoliciesOptions): Promise<NonNullablePaths<CountBookingPoliciesResponse, `count`>>;
|
|
117
124
|
}
|
|
118
125
|
declare const onBookingPolicyCreated$1: EventDefinition<BookingPolicyCreatedEnvelope, "wix.bookings.v1.booking_policy_created">;
|
|
119
126
|
declare const onBookingPolicyDefaultBookingPolicySet$1: EventDefinition<BookingPolicyDefaultBookingPolicySetEnvelope, "wix.bookings.v1.booking_policy_default_booking_policy_set">;
|