@wix/auto_sdk_bookings_bookings 1.0.85 → 1.0.86
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 +35 -23
- package/build/cjs/index.js +4 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +88 -23
- package/build/cjs/index.typings.js +4 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +47 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +35 -23
- package/build/es/index.mjs +4 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +88 -23
- package/build/es/index.typings.mjs +4 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +47 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +35 -23
- package/build/internal/cjs/index.js +4 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +88 -23
- package/build/internal/cjs/index.typings.js +4 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +47 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +35 -23
- package/build/internal/es/index.mjs +4 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +88 -23
- package/build/internal/es/index.typings.mjs +4 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +47 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -154,6 +154,11 @@ interface Booking extends BookingParticipantsInfoOneOf {
|
|
|
154
154
|
* @readonly
|
|
155
155
|
*/
|
|
156
156
|
formId?: string | null;
|
|
157
|
+
/**
|
|
158
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
|
|
159
|
+
* @maxSize 21
|
|
160
|
+
*/
|
|
161
|
+
bookedAddOns?: BookedAddOn[];
|
|
157
162
|
}
|
|
158
163
|
/** @oneof */
|
|
159
164
|
interface BookingParticipantsInfoOneOf {
|
|
@@ -716,6 +721,14 @@ interface FlowControlSettings {
|
|
|
716
721
|
* pricing plan.
|
|
717
722
|
*/
|
|
718
723
|
withRefund?: boolean | null;
|
|
724
|
+
/**
|
|
725
|
+
* Whether [add-on](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) validations are skipped when creating a booking.
|
|
726
|
+
* For example, customers can choose an add-on from an [add-on group](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-on-groups/introduction) that's not associated with the service or choose more than the maximum number of different add-ons from a group.
|
|
727
|
+
* The calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) must have `BOOKINGS.MANAGE_ADDONS` permissions when specifying `true`.
|
|
728
|
+
*
|
|
729
|
+
* Default: `false`.
|
|
730
|
+
*/
|
|
731
|
+
skipAddOnValidation?: boolean | null;
|
|
719
732
|
}
|
|
720
733
|
interface ExtendedFields {
|
|
721
734
|
/**
|
|
@@ -1748,6 +1761,14 @@ interface CreateBookingFlowControlSettings {
|
|
|
1748
1761
|
* Default: `false`.
|
|
1749
1762
|
*/
|
|
1750
1763
|
skipSelectedPaymentOptionValidation?: boolean;
|
|
1764
|
+
/**
|
|
1765
|
+
* Whether Wix Bookings validates [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) when creating a booking.
|
|
1766
|
+
* The calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) must have `BOOKINGS.MANAGE_ADDONS` permissions to specify `true`.
|
|
1767
|
+
* This allows customers to choose an add-on that's not associated with the service or choose more than the maximum number of add-ons from a group.
|
|
1768
|
+
*
|
|
1769
|
+
* Default: `false`.
|
|
1770
|
+
*/
|
|
1771
|
+
skipAddOnValidation?: boolean;
|
|
1751
1772
|
}
|
|
1752
1773
|
interface CreateBookingResponse {
|
|
1753
1774
|
/** Created booking. */
|
|
@@ -1862,6 +1883,12 @@ interface RescheduleBookingRequest extends RescheduleBookingRequestParticipantsI
|
|
|
1862
1883
|
* For example, whether to check availability when rescheduling a booking.
|
|
1863
1884
|
*/
|
|
1864
1885
|
flowControlSettings?: RescheduleBookingFlowControlSettings;
|
|
1886
|
+
/**
|
|
1887
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) added to the booking.
|
|
1888
|
+
* The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`, when rescheduling while specifying a new list of add-ons. Otherwise, the call fails.
|
|
1889
|
+
* @maxSize 21
|
|
1890
|
+
*/
|
|
1891
|
+
bookedAddOns?: BookedAddOn[];
|
|
1865
1892
|
}
|
|
1866
1893
|
/** @oneof */
|
|
1867
1894
|
interface RescheduleBookingRequestParticipantsInfoOneOf {
|
|
@@ -1900,6 +1927,13 @@ interface RescheduleBookingFlowControlSettings {
|
|
|
1900
1927
|
* Default: `false`.
|
|
1901
1928
|
*/
|
|
1902
1929
|
skipBusinessConfirmation?: boolean;
|
|
1930
|
+
/**
|
|
1931
|
+
* Whether you can update the list of add-ons associated with the booking when rescheduling.
|
|
1932
|
+
* The calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) must have `BOOKINGS.MANAGE_ADDONS` permissions to specify `true`.
|
|
1933
|
+
*
|
|
1934
|
+
* Default: `false`.
|
|
1935
|
+
*/
|
|
1936
|
+
allowAddOnChanges?: boolean;
|
|
1903
1937
|
}
|
|
1904
1938
|
interface RescheduleBookingResponse {
|
|
1905
1939
|
/** Rescheduled booking. */
|
|
@@ -1945,6 +1979,11 @@ interface BookingRescheduled extends BookingRescheduledPreviousParticipantsInfoO
|
|
|
1945
1979
|
* For a schedule, this is the end date of the last session.
|
|
1946
1980
|
*/
|
|
1947
1981
|
previousEndDate?: Date | null;
|
|
1982
|
+
/**
|
|
1983
|
+
* The add-ons that were associated with the booking before rescheduling.
|
|
1984
|
+
* @maxSize 21
|
|
1985
|
+
*/
|
|
1986
|
+
previousBookedAddOns?: BookedAddOn[];
|
|
1948
1987
|
}
|
|
1949
1988
|
/** @oneof */
|
|
1950
1989
|
interface BookingRescheduledPreviousParticipantsInfoOneOf {
|
|
@@ -2879,6 +2918,14 @@ interface RescheduleBookingInfo extends RescheduleBookingInfoParticipantsInfoOne
|
|
|
2879
2918
|
* To prevent conflicting changes, the current revision must be specified when managing the booking.
|
|
2880
2919
|
*/
|
|
2881
2920
|
revision?: string | null;
|
|
2921
|
+
/**
|
|
2922
|
+
* List of [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction) associated with the booking.
|
|
2923
|
+
* You can only specify add-ons if both of these conditions are met:
|
|
2924
|
+
* - The booking must have been created with `flowControlSettings.allowAddOnChanges` set to `true`.
|
|
2925
|
+
* - You must have `BOOKINGS.MANAGE_ADDONS` permissions and specify `flowControlSettings.allowAddOnChanges` as `true`.
|
|
2926
|
+
* @maxSize 21
|
|
2927
|
+
*/
|
|
2928
|
+
bookedAddOns?: BookedAddOn[];
|
|
2882
2929
|
}
|
|
2883
2930
|
/** @oneof */
|
|
2884
2931
|
interface RescheduleBookingInfoParticipantsInfoOneOf {
|