@wix/auto_sdk_bookings_booking-policies 1.0.79 → 1.0.81
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 +4 -8
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +9 -26
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +4 -8
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -8
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +9 -26
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +4 -8
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -8
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +9 -26
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +4 -8
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -8
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +9 -26
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +4 -8
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -249,8 +249,7 @@ interface ResourcesPolicy {
|
|
|
249
249
|
*/
|
|
250
250
|
enabled?: boolean;
|
|
251
251
|
/**
|
|
252
|
-
* Whether Wix Bookings automatically assigns a resource, for example a
|
|
253
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction)),
|
|
252
|
+
* Whether Wix Bookings automatically assigns a resource, for example a [staff member](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members/introduction),
|
|
254
253
|
* to the booking. `false` means the customer must select the resource
|
|
255
254
|
* themselves and Wix Bookings doesn't assign it automatically.
|
|
256
255
|
*
|
|
@@ -338,8 +337,7 @@ interface CancellationWindowFeeOneOf {
|
|
|
338
337
|
interface SaveCreditCardPolicy {
|
|
339
338
|
/**
|
|
340
339
|
* Whether Wix stores credit card details of the customer. Storing the details
|
|
341
|
-
* allows Wix to prefill the
|
|
342
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction))
|
|
340
|
+
* allows Wix to prefill the [eCommerce checkout](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/checkout/introduction)
|
|
343
341
|
* and thus increases the likelihood that the customer completes the booking
|
|
344
342
|
* process.
|
|
345
343
|
*
|
|
@@ -510,8 +508,7 @@ interface GetStrictestBookingPolicyResponse {
|
|
|
510
508
|
/**
|
|
511
509
|
* Hypothetical `bookingPolicy` object that combines the strictest version of
|
|
512
510
|
* each rule. `bookingPolicy.id` is `null` and the returned object isn't actually
|
|
513
|
-
* created. To create a new policy, you can call
|
|
514
|
-
* ([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)).
|
|
511
|
+
* created. To create a new policy, you can call [Create Booking Policy](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/create-booking-policy).
|
|
515
512
|
*/
|
|
516
513
|
bookingPolicy?: BookingPolicy;
|
|
517
514
|
}
|
|
@@ -644,8 +641,7 @@ interface Cursors {
|
|
|
644
641
|
interface CountBookingPoliciesRequest {
|
|
645
642
|
/**
|
|
646
643
|
* Filter to base the count on. See
|
|
647
|
-
* supported filters
|
|
648
|
-
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
644
|
+
* [supported filters](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters)
|
|
649
645
|
* for details.
|
|
650
646
|
*/
|
|
651
647
|
filter?: Record<string, any> | null;
|
|
@@ -1663,8 +1659,6 @@ interface BookingPolicyCreatedEnvelope {
|
|
|
1663
1659
|
}
|
|
1664
1660
|
/**
|
|
1665
1661
|
* Triggered when a booking policy is created.
|
|
1666
|
-
* @permissionScope Manage Stores
|
|
1667
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1668
1662
|
* @permissionScope Read Bookings - Public Data
|
|
1669
1663
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
1670
1664
|
* @permissionScope Manage Bookings Services and Settings
|
|
@@ -1689,11 +1683,8 @@ interface BookingPolicyDefaultBookingPolicySetEnvelope {
|
|
|
1689
1683
|
}
|
|
1690
1684
|
/**
|
|
1691
1685
|
* Triggered when the site's default policy changes. Then,
|
|
1692
|
-
*
|
|
1693
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/on-booking-policy-updated) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/booking-policy-updated))
|
|
1686
|
+
* [Booking Policy Updated](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/booking-policy-updated)
|
|
1694
1687
|
* is also triggered both for the new and the previous default policy.
|
|
1695
|
-
* @permissionScope Manage Stores
|
|
1696
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1697
1688
|
* @permissionScope Read Bookings - Public Data
|
|
1698
1689
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
1699
1690
|
* @permissionScope Manage Bookings Services and Settings
|
|
@@ -1717,8 +1708,6 @@ interface BookingPolicyDeletedEnvelope {
|
|
|
1717
1708
|
}
|
|
1718
1709
|
/**
|
|
1719
1710
|
* Triggered when a booking policy is deleted.
|
|
1720
|
-
* @permissionScope Manage Stores
|
|
1721
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1722
1711
|
* @permissionScope Read Bookings - Public Data
|
|
1723
1712
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
1724
1713
|
* @permissionScope Manage Bookings Services and Settings
|
|
@@ -1744,8 +1733,6 @@ interface BookingPolicyUpdatedEnvelope {
|
|
|
1744
1733
|
/**
|
|
1745
1734
|
* Triggered when a booking policy is updated, including when a policy's
|
|
1746
1735
|
* `default` attribute changes.
|
|
1747
|
-
* @permissionScope Manage Stores
|
|
1748
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1749
1736
|
* @permissionScope Read Bookings - Public Data
|
|
1750
1737
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
1751
1738
|
* @permissionScope Manage Bookings Services and Settings
|
|
@@ -1796,8 +1783,7 @@ declare function getBookingPolicy(bookingPolicyId: string): Promise<NonNullableP
|
|
|
1796
1783
|
* Returns a hypothetical `bookingPolicy` object that combines the strictest
|
|
1797
1784
|
* version of each rule. The `id` of the returned policy is `null` and no
|
|
1798
1785
|
* corresponding `bookingPolicy` object is created. To create a new policy, you
|
|
1799
|
-
* can call
|
|
1800
|
-
* ([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)).
|
|
1786
|
+
* can call [Create Booking Policy](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/create-booking-policy).
|
|
1801
1787
|
* @param bookingPolicyIds - IDs of the booking policies for which to retrieve the strictest rules for.
|
|
1802
1788
|
* @public
|
|
1803
1789
|
* @requiredField bookingPolicyIds
|
|
@@ -1911,8 +1897,7 @@ declare function setDefaultBookingPolicy(bookingPolicyId: string): Promise<NonNu
|
|
|
1911
1897
|
* Deletes a booking policy.
|
|
1912
1898
|
*
|
|
1913
1899
|
*
|
|
1914
|
-
* You can't delete the default policy without first
|
|
1915
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/set-default-booking-policy) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/set-default-booking-policy)).
|
|
1900
|
+
* You can't delete the default policy without first [setting a different policy as default](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/set-default-booking-policy).
|
|
1916
1901
|
* @param bookingPolicyId - ID of the booking policy to delete.
|
|
1917
1902
|
* @public
|
|
1918
1903
|
* @requiredField bookingPolicyId
|
|
@@ -2003,8 +1988,7 @@ interface BookingPoliciesQueryBuilder {
|
|
|
2003
1988
|
* Counts booking policies, given the provided filtering.
|
|
2004
1989
|
*
|
|
2005
1990
|
*
|
|
2006
|
-
* See
|
|
2007
|
-
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
1991
|
+
* See [supported filters](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters)
|
|
2008
1992
|
* for a complete list of supported filters.
|
|
2009
1993
|
* @public
|
|
2010
1994
|
* @permissionId BOOKINGS.BOOKING_POLICY_READ
|
|
@@ -2015,8 +1999,7 @@ declare function countBookingPolicies(options?: CountBookingPoliciesOptions): Pr
|
|
|
2015
1999
|
interface CountBookingPoliciesOptions {
|
|
2016
2000
|
/**
|
|
2017
2001
|
* Filter to base the count on. See
|
|
2018
|
-
* supported filters
|
|
2019
|
-
* ([REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters))
|
|
2002
|
+
* [supported filters](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/supported-filters)
|
|
2020
2003
|
* for details.
|
|
2021
2004
|
*/
|
|
2022
2005
|
filter?: Record<string, any> | null;
|