@wix/auto_sdk_bookings_booking-policies 1.0.66 → 1.0.68
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 +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +29 -11
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +16 -0
- package/build/es/index.d.mts +6 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +29 -11
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +16 -0
- package/build/internal/cjs/index.d.ts +6 -6
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +29 -11
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +16 -0
- package/build/internal/es/index.d.mts +6 -6
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +29 -11
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +16 -0
- package/package.json +2 -2
|
@@ -67,6 +67,8 @@ interface BookingPolicy {
|
|
|
67
67
|
cancellationFeePolicy?: CancellationFeePolicy;
|
|
68
68
|
/** Rule for saving credit card details. */
|
|
69
69
|
saveCreditCardPolicy?: SaveCreditCardPolicy;
|
|
70
|
+
/** Rules for Intake form integration */
|
|
71
|
+
intakeFormPolicy?: IntakeFormPolicy;
|
|
70
72
|
/** Extensions enabling users to save custom data related to the booking policies. */
|
|
71
73
|
extendedFields?: ExtendedFields;
|
|
72
74
|
}
|
|
@@ -420,6 +422,20 @@ interface CustomOptions {
|
|
|
420
422
|
*/
|
|
421
423
|
appId?: string;
|
|
422
424
|
}
|
|
425
|
+
/** Policy for integrating with Intake form. Stores which form to use and when to present it. */
|
|
426
|
+
interface IntakeFormPolicy {
|
|
427
|
+
/**
|
|
428
|
+
* ID of the form used as an intake form for the service.
|
|
429
|
+
* @format GUID
|
|
430
|
+
*/
|
|
431
|
+
formId?: string | null;
|
|
432
|
+
/**
|
|
433
|
+
* Whether the waiver must be completed before bookings.
|
|
434
|
+
* If `false`, the waiver is handled after bookings.
|
|
435
|
+
* Default: `false`
|
|
436
|
+
*/
|
|
437
|
+
requireBeforeBook?: boolean;
|
|
438
|
+
}
|
|
423
439
|
interface ExtendedFields {
|
|
424
440
|
/**
|
|
425
441
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
@@ -1708,7 +1724,7 @@ declare function onBookingPolicyUpdated(handler: (event: BookingPolicyUpdatedEnv
|
|
|
1708
1724
|
* @returns Created booking policy.
|
|
1709
1725
|
* @fqn wix.bookings.v1.BookingPoliciesService.CreateBookingPolicy
|
|
1710
1726
|
*/
|
|
1711
|
-
declare function createBookingPolicy(bookingPolicy: BookingPolicy): Promise<NonNullablePaths<BookingPolicy, `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`, 6> & {
|
|
1727
|
+
declare function createBookingPolicy(bookingPolicy: BookingPolicy): Promise<NonNullablePaths<BookingPolicy, `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` | `intakeFormPolicy.requireBeforeBook`, 6> & {
|
|
1712
1728
|
__validationErrorsType?: CreateBookingPolicyValidationErrors;
|
|
1713
1729
|
}>;
|
|
1714
1730
|
/**
|
|
@@ -1721,7 +1737,7 @@ declare function createBookingPolicy(bookingPolicy: BookingPolicy): Promise<NonN
|
|
|
1721
1737
|
* @returns Retrieved booking policy.
|
|
1722
1738
|
* @fqn wix.bookings.v1.BookingPoliciesService.GetBookingPolicy
|
|
1723
1739
|
*/
|
|
1724
|
-
declare function getBookingPolicy(bookingPolicyId: string): Promise<NonNullablePaths<BookingPolicy, `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`, 6>>;
|
|
1740
|
+
declare function getBookingPolicy(bookingPolicyId: string): Promise<NonNullablePaths<BookingPolicy, `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` | `intakeFormPolicy.requireBeforeBook`, 6>>;
|
|
1725
1741
|
/**
|
|
1726
1742
|
* Retrieves the strictest version of each policy rule from a list of booking
|
|
1727
1743
|
* policies.
|
|
@@ -1739,7 +1755,7 @@ declare function getBookingPolicy(bookingPolicyId: string): Promise<NonNullableP
|
|
|
1739
1755
|
* @applicableIdentity APP
|
|
1740
1756
|
* @fqn wix.bookings.v1.BookingPoliciesService.GetStrictestBookingPolicy
|
|
1741
1757
|
*/
|
|
1742
|
-
declare function getStrictestBookingPolicy(bookingPolicyIds: string[]): Promise<NonNullablePaths<GetStrictestBookingPolicyResponse, `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.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`, 7>>;
|
|
1758
|
+
declare function getStrictestBookingPolicy(bookingPolicyIds: string[]): Promise<NonNullablePaths<GetStrictestBookingPolicyResponse, `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.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` | `bookingPolicy.intakeFormPolicy.requireBeforeBook`, 7>>;
|
|
1743
1759
|
/**
|
|
1744
1760
|
* Updates a booking policy.
|
|
1745
1761
|
*
|
|
@@ -1757,7 +1773,7 @@ declare function getStrictestBookingPolicy(bookingPolicyIds: string[]): Promise<
|
|
|
1757
1773
|
* @returns Updated booking policy.
|
|
1758
1774
|
* @fqn wix.bookings.v1.BookingPoliciesService.UpdateBookingPolicy
|
|
1759
1775
|
*/
|
|
1760
|
-
declare function updateBookingPolicy(_id: string, bookingPolicy: NonNullablePaths<UpdateBookingPolicy, `revision`, 2>): Promise<NonNullablePaths<BookingPolicy, `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`, 6> & {
|
|
1776
|
+
declare function updateBookingPolicy(_id: string, bookingPolicy: NonNullablePaths<UpdateBookingPolicy, `revision`, 2>): Promise<NonNullablePaths<BookingPolicy, `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` | `intakeFormPolicy.requireBeforeBook`, 6> & {
|
|
1761
1777
|
__validationErrorsType?: UpdateBookingPolicyValidationErrors;
|
|
1762
1778
|
}>;
|
|
1763
1779
|
interface UpdateBookingPolicy {
|
|
@@ -1823,6 +1839,8 @@ interface UpdateBookingPolicy {
|
|
|
1823
1839
|
cancellationFeePolicy?: CancellationFeePolicy;
|
|
1824
1840
|
/** Rule for saving credit card details. */
|
|
1825
1841
|
saveCreditCardPolicy?: SaveCreditCardPolicy;
|
|
1842
|
+
/** Rules for Intake form integration */
|
|
1843
|
+
intakeFormPolicy?: IntakeFormPolicy;
|
|
1826
1844
|
/** Extensions enabling users to save custom data related to the booking policies. */
|
|
1827
1845
|
extendedFields?: ExtendedFields;
|
|
1828
1846
|
}
|
|
@@ -1840,7 +1858,7 @@ interface UpdateBookingPolicy {
|
|
|
1840
1858
|
* @applicableIdentity APP
|
|
1841
1859
|
* @fqn wix.bookings.v1.BookingPoliciesService.SetDefaultBookingPolicy
|
|
1842
1860
|
*/
|
|
1843
|
-
declare function setDefaultBookingPolicy(bookingPolicyId: string): Promise<NonNullablePaths<SetDefaultBookingPolicyResponse, `currentDefaultBookingPolicy.customPolicyDescription.enabled` | `currentDefaultBookingPolicy.customPolicyDescription.description` | `currentDefaultBookingPolicy.limitEarlyBookingPolicy.enabled` | `currentDefaultBookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `currentDefaultBookingPolicy.limitLateBookingPolicy.enabled` | `currentDefaultBookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `currentDefaultBookingPolicy.bookAfterStartPolicy.enabled` | `currentDefaultBookingPolicy.cancellationPolicy.enabled` | `currentDefaultBookingPolicy.cancellationPolicy.limitLatestCancellation` | `currentDefaultBookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `currentDefaultBookingPolicy.reschedulePolicy.enabled` | `currentDefaultBookingPolicy.reschedulePolicy.limitLatestReschedule` | `currentDefaultBookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `currentDefaultBookingPolicy.waitlistPolicy.enabled` | `currentDefaultBookingPolicy.waitlistPolicy.capacity` | `currentDefaultBookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `currentDefaultBookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `currentDefaultBookingPolicy.cancellationFeePolicy.enabled` | `currentDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows` | `currentDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `currentDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `currentDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `currentDefaultBookingPolicy.saveCreditCardPolicy.enabled` | `previousDefaultBookingPolicy.customPolicyDescription.enabled` | `previousDefaultBookingPolicy.customPolicyDescription.description` | `previousDefaultBookingPolicy.limitEarlyBookingPolicy.enabled` | `previousDefaultBookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `previousDefaultBookingPolicy.limitLateBookingPolicy.enabled` | `previousDefaultBookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `previousDefaultBookingPolicy.bookAfterStartPolicy.enabled` | `previousDefaultBookingPolicy.cancellationPolicy.enabled` | `previousDefaultBookingPolicy.cancellationPolicy.limitLatestCancellation` | `previousDefaultBookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `previousDefaultBookingPolicy.reschedulePolicy.enabled` | `previousDefaultBookingPolicy.reschedulePolicy.limitLatestReschedule` | `previousDefaultBookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `previousDefaultBookingPolicy.waitlistPolicy.enabled` | `previousDefaultBookingPolicy.waitlistPolicy.capacity` | `previousDefaultBookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `previousDefaultBookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `previousDefaultBookingPolicy.cancellationFeePolicy.enabled` | `previousDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows` | `previousDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `previousDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `previousDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `previousDefaultBookingPolicy.saveCreditCardPolicy.enabled`, 7>>;
|
|
1861
|
+
declare function setDefaultBookingPolicy(bookingPolicyId: string): Promise<NonNullablePaths<SetDefaultBookingPolicyResponse, `currentDefaultBookingPolicy.customPolicyDescription.enabled` | `currentDefaultBookingPolicy.customPolicyDescription.description` | `currentDefaultBookingPolicy.limitEarlyBookingPolicy.enabled` | `currentDefaultBookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `currentDefaultBookingPolicy.limitLateBookingPolicy.enabled` | `currentDefaultBookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `currentDefaultBookingPolicy.bookAfterStartPolicy.enabled` | `currentDefaultBookingPolicy.cancellationPolicy.enabled` | `currentDefaultBookingPolicy.cancellationPolicy.limitLatestCancellation` | `currentDefaultBookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `currentDefaultBookingPolicy.reschedulePolicy.enabled` | `currentDefaultBookingPolicy.reschedulePolicy.limitLatestReschedule` | `currentDefaultBookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `currentDefaultBookingPolicy.waitlistPolicy.enabled` | `currentDefaultBookingPolicy.waitlistPolicy.capacity` | `currentDefaultBookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `currentDefaultBookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `currentDefaultBookingPolicy.cancellationFeePolicy.enabled` | `currentDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows` | `currentDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `currentDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `currentDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `currentDefaultBookingPolicy.saveCreditCardPolicy.enabled` | `currentDefaultBookingPolicy.intakeFormPolicy.requireBeforeBook` | `previousDefaultBookingPolicy.customPolicyDescription.enabled` | `previousDefaultBookingPolicy.customPolicyDescription.description` | `previousDefaultBookingPolicy.limitEarlyBookingPolicy.enabled` | `previousDefaultBookingPolicy.limitEarlyBookingPolicy.earliestBookingInMinutes` | `previousDefaultBookingPolicy.limitLateBookingPolicy.enabled` | `previousDefaultBookingPolicy.limitLateBookingPolicy.latestBookingInMinutes` | `previousDefaultBookingPolicy.bookAfterStartPolicy.enabled` | `previousDefaultBookingPolicy.cancellationPolicy.enabled` | `previousDefaultBookingPolicy.cancellationPolicy.limitLatestCancellation` | `previousDefaultBookingPolicy.cancellationPolicy.latestCancellationInMinutes` | `previousDefaultBookingPolicy.reschedulePolicy.enabled` | `previousDefaultBookingPolicy.reschedulePolicy.limitLatestReschedule` | `previousDefaultBookingPolicy.reschedulePolicy.latestRescheduleInMinutes` | `previousDefaultBookingPolicy.waitlistPolicy.enabled` | `previousDefaultBookingPolicy.waitlistPolicy.capacity` | `previousDefaultBookingPolicy.waitlistPolicy.reservationTimeInMinutes` | `previousDefaultBookingPolicy.participantsPolicy.maxParticipantsPerBooking` | `previousDefaultBookingPolicy.cancellationFeePolicy.enabled` | `previousDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows` | `previousDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.value` | `previousDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.amount.currency` | `previousDefaultBookingPolicy.cancellationFeePolicy.cancellationWindows.${number}.percentage` | `previousDefaultBookingPolicy.saveCreditCardPolicy.enabled` | `previousDefaultBookingPolicy.intakeFormPolicy.requireBeforeBook`, 7>>;
|
|
1844
1862
|
/**
|
|
1845
1863
|
* Deletes a booking policy.
|
|
1846
1864
|
*
|
|
@@ -1897,11 +1915,11 @@ interface BookingPoliciesQueryBuilder {
|
|
|
1897
1915
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1898
1916
|
* @param value - Value to compare against.
|
|
1899
1917
|
*/
|
|
1900
|
-
eq: (propertyName: '_id' | 'name' | 'customPolicyDescription.enabled' | 'customPolicyDescription.description' | 'default' | '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' | 'resourcesPolicy.enabled' | 'resourcesPolicy.autoAssignAllowed', value: any) => BookingPoliciesQueryBuilder;
|
|
1918
|
+
eq: (propertyName: '_id' | 'name' | 'customPolicyDescription.enabled' | 'customPolicyDescription.description' | 'default' | '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' | 'resourcesPolicy.enabled' | 'resourcesPolicy.autoAssignAllowed' | 'intakeFormPolicy.formId', value: any) => BookingPoliciesQueryBuilder;
|
|
1901
1919
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1902
1920
|
* @param value - Value to compare against.
|
|
1903
1921
|
*/
|
|
1904
|
-
ne: (propertyName: '_id' | 'name' | 'customPolicyDescription.enabled' | 'customPolicyDescription.description' | 'default' | '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' | 'resourcesPolicy.enabled' | 'resourcesPolicy.autoAssignAllowed', value: any) => BookingPoliciesQueryBuilder;
|
|
1922
|
+
ne: (propertyName: '_id' | 'name' | 'customPolicyDescription.enabled' | 'customPolicyDescription.description' | 'default' | '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' | 'resourcesPolicy.enabled' | 'resourcesPolicy.autoAssignAllowed' | 'intakeFormPolicy.formId', value: any) => BookingPoliciesQueryBuilder;
|
|
1905
1923
|
/** @param propertyName - Property whose value is compared with `value`.
|
|
1906
1924
|
* @param value - Value to compare against.
|
|
1907
1925
|
*/
|
|
@@ -1921,12 +1939,12 @@ interface BookingPoliciesQueryBuilder {
|
|
|
1921
1939
|
/** @param propertyName - Property whose value is compared with `string`.
|
|
1922
1940
|
* @param string - String to compare against. Case-insensitive.
|
|
1923
1941
|
*/
|
|
1924
|
-
startsWith: (propertyName: 'name' | 'customPolicyDescription.description', value: string) => BookingPoliciesQueryBuilder;
|
|
1942
|
+
startsWith: (propertyName: 'name' | 'customPolicyDescription.description' | 'intakeFormPolicy.formId', value: string) => BookingPoliciesQueryBuilder;
|
|
1925
1943
|
in: (propertyName: '_id' | 'limitEarlyBookingPolicy.earliestBookingInMinutes' | 'limitLateBookingPolicy.latestBookingInMinutes' | 'cancellationPolicy.latestCancellationInMinutes' | 'reschedulePolicy.latestRescheduleInMinutes' | 'waitlistPolicy.capacity' | 'waitlistPolicy.reservationTimeInMinutes' | 'participantsPolicy.maxParticipantsPerBooking', value: any) => BookingPoliciesQueryBuilder;
|
|
1926
1944
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
1927
|
-
ascending: (...propertyNames: Array<'_id' | 'name' | 'customPolicyDescription.enabled' | 'customPolicyDescription.description' | 'default' | '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.enabled' | 'participantsPolicy.maxParticipantsPerBooking' | 'resourcesPolicy.enabled' | 'resourcesPolicy.autoAssignAllowed'>) => BookingPoliciesQueryBuilder;
|
|
1945
|
+
ascending: (...propertyNames: Array<'_id' | 'name' | 'customPolicyDescription.enabled' | 'customPolicyDescription.description' | 'default' | '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.enabled' | 'participantsPolicy.maxParticipantsPerBooking' | 'resourcesPolicy.enabled' | 'resourcesPolicy.autoAssignAllowed' | 'intakeFormPolicy.formId'>) => BookingPoliciesQueryBuilder;
|
|
1928
1946
|
/** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
|
|
1929
|
-
descending: (...propertyNames: Array<'_id' | 'name' | 'customPolicyDescription.enabled' | 'customPolicyDescription.description' | 'default' | '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.enabled' | 'participantsPolicy.maxParticipantsPerBooking' | 'resourcesPolicy.enabled' | 'resourcesPolicy.autoAssignAllowed'>) => BookingPoliciesQueryBuilder;
|
|
1947
|
+
descending: (...propertyNames: Array<'_id' | 'name' | 'customPolicyDescription.enabled' | 'customPolicyDescription.description' | 'default' | '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.enabled' | 'participantsPolicy.maxParticipantsPerBooking' | 'resourcesPolicy.enabled' | 'resourcesPolicy.autoAssignAllowed' | 'intakeFormPolicy.formId'>) => BookingPoliciesQueryBuilder;
|
|
1930
1948
|
/** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
|
|
1931
1949
|
limit: (limit: number) => BookingPoliciesQueryBuilder;
|
|
1932
1950
|
/** @param cursor - A pointer to specific record */
|
|
@@ -1956,4 +1974,4 @@ interface CountBookingPoliciesOptions {
|
|
|
1956
1974
|
filter?: Record<string, any> | null;
|
|
1957
1975
|
}
|
|
1958
1976
|
|
|
1959
|
-
export { type ActionEvent, type Address, type AddressHint, type Asset, type BaseEventMetadata, type BookAfterStartPolicy, type BookingPoliciesQueryBuilder, type BookingPoliciesQueryResult, type BookingPolicy, type BookingPolicyCreatedEnvelope, type BookingPolicyDefaultBookingPolicySetEnvelope, type BookingPolicyDeletedEnvelope, type BookingPolicyUpdatedEnvelope, type BusinessSchedule, type CancellationFeePolicy, type CancellationPolicy, type CancellationWindow, type CancellationWindowFeeOneOf, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type ConsentPolicy, type CountBookingPoliciesOptions, type CountBookingPoliciesRequest, type CountBookingPoliciesResponse, type CreateBookingPolicyRequest, type CreateBookingPolicyResponse, type CreateBookingPolicyValidationErrors, type CreateMissingDefaultPolicyRequest, type CreateMissingDefaultPolicyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomOptions, DayOfWeek, type DayOfWeekWithLiterals, type DefaultBookingPolicySet, type DeleteBookingPolicyApplicationErrors, type DeleteBookingPolicyRequest, type DeleteBookingPolicyResponse, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GeoCoordinates, type GetBookingPolicyRequest, type GetBookingPolicyResponse, type GetStrictestBookingPolicyRequest, type GetStrictestBookingPolicyResponse, type IdentificationData, type IdentificationDataIdOneOf, type LimitEarlyBookingPolicy, type LimitLateBookingPolicy, type Locale, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Money, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type ParticipantsPolicy, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type PolicyDescription, type Properties, type PropertiesChange, type QueryBookingPoliciesRequest, type QueryBookingPoliciesResponse, type RankingOptions, RankingOrder, type RankingOrderWithLiterals, type ReschedulePolicy, ResolutionMethod, type ResolutionMethodWithLiterals, type ResourcesPolicy, type RestoreInfo, type SaveCreditCardPolicy, type ServiceProvisioned, type ServiceRemoved, type SetDefaultBookingPolicyRequest, type SetDefaultBookingPolicyResponse, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, SortingMethodType, type SortingMethodTypeWithLiterals, type SpecialHourPeriod, type StaffSortingPolicy, type StaffSortingPolicyOptionsOneOf, State, type StateWithLiterals, type StudioAssigned, type StudioUnassigned, type SupportedLanguage, type TimePeriod, type Translation, type UpdateAllPoliciesRequest, type UpdateAllPoliciesResponse, type UpdateBookingPolicy, type UpdateBookingPolicyRequest, type UpdateBookingPolicyResponse, type UpdateBookingPolicyValidationErrors, type V4SiteCreated, type WaitlistPolicy, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, countBookingPolicies, createBookingPolicy, deleteBookingPolicy, getBookingPolicy, getStrictestBookingPolicy, onBookingPolicyCreated, onBookingPolicyDefaultBookingPolicySet, onBookingPolicyDeleted, onBookingPolicyUpdated, queryBookingPolicies, setDefaultBookingPolicy, updateBookingPolicy };
|
|
1977
|
+
export { type ActionEvent, type Address, type AddressHint, type Asset, type BaseEventMetadata, type BookAfterStartPolicy, type BookingPoliciesQueryBuilder, type BookingPoliciesQueryResult, type BookingPolicy, type BookingPolicyCreatedEnvelope, type BookingPolicyDefaultBookingPolicySetEnvelope, type BookingPolicyDeletedEnvelope, type BookingPolicyUpdatedEnvelope, type BusinessSchedule, type CancellationFeePolicy, type CancellationPolicy, type CancellationWindow, type CancellationWindowFeeOneOf, type Categories, type ChangeContext, type ChangeContextPayloadOneOf, type ConsentPolicy, type CountBookingPoliciesOptions, type CountBookingPoliciesRequest, type CountBookingPoliciesResponse, type CreateBookingPolicyRequest, type CreateBookingPolicyResponse, type CreateBookingPolicyValidationErrors, type CreateMissingDefaultPolicyRequest, type CreateMissingDefaultPolicyResponse, type CursorPaging, type CursorPagingMetadata, type CursorQuery, type CursorQueryPagingMethodOneOf, type Cursors, type CustomOptions, DayOfWeek, type DayOfWeekWithLiterals, type DefaultBookingPolicySet, type DeleteBookingPolicyApplicationErrors, type DeleteBookingPolicyRequest, type DeleteBookingPolicyResponse, type DeleteContext, DeleteStatus, type DeleteStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type EventMetadata, type ExtendedFields, type GeoCoordinates, type GetBookingPolicyRequest, type GetBookingPolicyResponse, type GetStrictestBookingPolicyRequest, type GetStrictestBookingPolicyResponse, type IdentificationData, type IdentificationDataIdOneOf, type IntakeFormPolicy, type LimitEarlyBookingPolicy, type LimitLateBookingPolicy, type Locale, type MessageEnvelope, type MetaSiteSpecialEvent, type MetaSiteSpecialEventPayloadOneOf, type Money, type Multilingual, Namespace, type NamespaceChanged, type NamespaceWithLiterals, type OdeditorAssigned, type OdeditorUnassigned, type ParticipantsPolicy, type PicassoAssigned, type PicassoUnassigned, PlacementType, type PlacementTypeWithLiterals, type PolicyDescription, type Properties, type PropertiesChange, type QueryBookingPoliciesRequest, type QueryBookingPoliciesResponse, type RankingOptions, RankingOrder, type RankingOrderWithLiterals, type ReschedulePolicy, ResolutionMethod, type ResolutionMethodWithLiterals, type ResourcesPolicy, type RestoreInfo, type SaveCreditCardPolicy, type ServiceProvisioned, type ServiceRemoved, type SetDefaultBookingPolicyRequest, type SetDefaultBookingPolicyResponse, type SiteCloned, type SiteCreated, SiteCreatedContext, type SiteCreatedContextWithLiterals, type SiteDeleted, type SiteHardDeleted, type SiteMarkedAsTemplate, type SiteMarkedAsWixSite, type SitePropertiesEvent, type SitePropertiesNotification, type SitePublished, type SitePurgedExternally, type SiteRenamed, type SiteTransferred, type SiteUndeleted, type SiteUnpublished, type SiteUrlChanged, SortOrder, type SortOrderWithLiterals, type Sorting, SortingMethodType, type SortingMethodTypeWithLiterals, type SpecialHourPeriod, type StaffSortingPolicy, type StaffSortingPolicyOptionsOneOf, State, type StateWithLiterals, type StudioAssigned, type StudioUnassigned, type SupportedLanguage, type TimePeriod, type Translation, type UpdateAllPoliciesRequest, type UpdateAllPoliciesResponse, type UpdateBookingPolicy, type UpdateBookingPolicyRequest, type UpdateBookingPolicyResponse, type UpdateBookingPolicyValidationErrors, type V4SiteCreated, type WaitlistPolicy, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, countBookingPolicies, createBookingPolicy, deleteBookingPolicy, getBookingPolicy, getStrictestBookingPolicy, onBookingPolicyCreated, onBookingPolicyDefaultBookingPolicySet, onBookingPolicyDeleted, onBookingPolicyUpdated, queryBookingPolicies, setDefaultBookingPolicy, updateBookingPolicy };
|