@wix/auto_sdk_bookings_bookings 1.0.60 → 1.0.62
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 +15 -24
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +33 -24
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +15 -24
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +33 -24
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +15 -24
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +33 -24
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +15 -24
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +33 -24
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -3727,6 +3727,8 @@ interface BookingCanceledEnvelope {
|
|
|
3727
3727
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3728
3728
|
* @permissionScope Read bookings calendar - including participants
|
|
3729
3729
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3730
|
+
* @permissionScope Picasso private app mega scope (site)
|
|
3731
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3730
3732
|
* @permissionId BOOKINGS.BOOKING_READ
|
|
3731
3733
|
* @webhook
|
|
3732
3734
|
* @eventType wix.bookings.v2.booking_canceled
|
|
@@ -3750,6 +3752,8 @@ interface BookingConfirmedEnvelope {
|
|
|
3750
3752
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3751
3753
|
* @permissionScope Read bookings calendar - including participants
|
|
3752
3754
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3755
|
+
* @permissionScope Picasso private app mega scope (site)
|
|
3756
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3753
3757
|
* @permissionId BOOKINGS.BOOKING_READ
|
|
3754
3758
|
* @webhook
|
|
3755
3759
|
* @eventType wix.bookings.v2.booking_confirmed
|
|
@@ -3771,6 +3775,8 @@ interface BookingCreatedEnvelope {
|
|
|
3771
3775
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3772
3776
|
* @permissionScope Manage Bookings - all permissions
|
|
3773
3777
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3778
|
+
* @permissionScope Picasso private app mega scope (site)
|
|
3779
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3774
3780
|
* @permissionScope Manage Bookings
|
|
3775
3781
|
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3776
3782
|
* @permissionScope Read Bookings - Including Participants
|
|
@@ -3781,6 +3787,8 @@ interface BookingCreatedEnvelope {
|
|
|
3781
3787
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3782
3788
|
* @permissionScope Read bookings calendar - including participants
|
|
3783
3789
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3790
|
+
* @permissionScope Picasso private app mega scope (site)
|
|
3791
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3784
3792
|
* @permissionId BOOKINGS.READ_BOOKINGS
|
|
3785
3793
|
* @permissionId BOOKINGS.BOOKING_READ
|
|
3786
3794
|
* @webhook
|
|
@@ -3805,6 +3813,8 @@ interface BookingDeclinedEnvelope {
|
|
|
3805
3813
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3806
3814
|
* @permissionScope Read bookings calendar - including participants
|
|
3807
3815
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3816
|
+
* @permissionScope Picasso private app mega scope (site)
|
|
3817
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3808
3818
|
* @permissionId BOOKINGS.BOOKING_READ
|
|
3809
3819
|
* @webhook
|
|
3810
3820
|
* @eventType wix.bookings.v2.booking_declined
|
|
@@ -3828,6 +3838,8 @@ interface BookingNumberOfParticipantsUpdatedEnvelope {
|
|
|
3828
3838
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3829
3839
|
* @permissionScope Read bookings calendar - including participants
|
|
3830
3840
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3841
|
+
* @permissionScope Picasso private app mega scope (site)
|
|
3842
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3831
3843
|
* @permissionId BOOKINGS.BOOKING_READ
|
|
3832
3844
|
* @webhook
|
|
3833
3845
|
* @eventType wix.bookings.v2.booking_number_of_participants_updated
|
|
@@ -3851,6 +3863,8 @@ interface BookingRescheduledEnvelope {
|
|
|
3851
3863
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3852
3864
|
* @permissionScope Read bookings calendar - including participants
|
|
3853
3865
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3866
|
+
* @permissionScope Picasso private app mega scope (site)
|
|
3867
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3854
3868
|
* @permissionId BOOKINGS.BOOKING_READ
|
|
3855
3869
|
* @webhook
|
|
3856
3870
|
* @eventType wix.bookings.v2.booking_rescheduled
|
|
@@ -3872,6 +3886,8 @@ interface BookingUpdatedEnvelope {
|
|
|
3872
3886
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
3873
3887
|
* @permissionScope Manage Bookings - all permissions
|
|
3874
3888
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3889
|
+
* @permissionScope Picasso private app mega scope (site)
|
|
3890
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3875
3891
|
* @permissionScope Manage Bookings
|
|
3876
3892
|
* @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
|
|
3877
3893
|
* @permissionScope Read Bookings - Including Participants
|
|
@@ -3882,6 +3898,8 @@ interface BookingUpdatedEnvelope {
|
|
|
3882
3898
|
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
3883
3899
|
* @permissionScope Read bookings calendar - including participants
|
|
3884
3900
|
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
|
|
3901
|
+
* @permissionScope Picasso private app mega scope (site)
|
|
3902
|
+
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
3885
3903
|
* @permissionId BOOKINGS.READ_BOOKINGS
|
|
3886
3904
|
* @permissionId BOOKINGS.BOOKING_READ
|
|
3887
3905
|
* @webhook
|
|
@@ -4004,12 +4022,18 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4004
4022
|
* We recommend following [this sample flow](https://dev.wix.com/docs/rest/business-solutions/bookings/end-to-end-booking-flows#book-a-course)
|
|
4005
4023
|
* to minimize failed calls due to unavailability.
|
|
4006
4024
|
*
|
|
4025
|
+
* ### Booking status
|
|
4026
|
+
*
|
|
4027
|
+
* Create Booking defaults to `status=CREATED`. Such bookings aren't visible in the [Booking Calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar).
|
|
4028
|
+
*
|
|
4029
|
+
* Only [identities](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) with `Manage Bookings` permissions can set `status=CONFIRMED`.
|
|
4030
|
+
*
|
|
4007
4031
|
* ### Related resources
|
|
4008
4032
|
*
|
|
4009
|
-
* Specifying a `resource` triggers an availability check,
|
|
4010
|
-
*
|
|
4011
|
-
*
|
|
4012
|
-
*
|
|
4033
|
+
* Specifying a `resource` triggers an availability check, and the Create Booking call fails if the resource is unavailable.
|
|
4034
|
+
*
|
|
4035
|
+
* If you omit `resource`, resource assignment and availability validation occur during booking confirmation.
|
|
4036
|
+
* If no resources are available, the behavior depends on the confirmation method used and payment status.
|
|
4013
4037
|
*
|
|
4014
4038
|
* ### Participant information
|
|
4015
4039
|
*
|
|
@@ -4027,32 +4051,17 @@ interface BulkConfirmOrDeclineBookingOptions {
|
|
|
4027
4051
|
* If you specify `{"sendSmsReminder": true}`, the customer receives an SMS 24 hours
|
|
4028
4052
|
* before the session starts. The phone number is taken from `contactDetails.phone`.
|
|
4029
4053
|
*
|
|
4030
|
-
* ### Booking status
|
|
4031
|
-
*
|
|
4032
|
-
* Bookings default to the `CREATED` status, not affecting the business calendar
|
|
4033
|
-
* or resource availability. You can specify a different status when the calling
|
|
4034
|
-
* [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities)
|
|
4035
|
-
* has `Manage Bookings` permissions.
|
|
4036
|
-
*
|
|
4037
4054
|
* ### Payment options
|
|
4038
4055
|
*
|
|
4039
|
-
* The specified `selectedPaymentOption` indicates how the customer intends to
|
|
4040
|
-
* pay, allowing for later changes to a different method supported by the service.
|
|
4056
|
+
* The specified `selectedPaymentOption` indicates how the customer intends to pay, allowing for later changes to a different method supported by the service.
|
|
4041
4057
|
*
|
|
4042
4058
|
* ### Payment status
|
|
4043
4059
|
*
|
|
4044
|
-
*
|
|
4045
|
-
* of the payment status specified in Create Booking. If a customer uses an
|
|
4046
|
-
* _eCommerce checkout_
|
|
4047
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)),
|
|
4048
|
-
* Wix Bookings automatically syncs the booking's payment status from
|
|
4049
|
-
* the corresponding eCommerce order
|
|
4050
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/setup) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
4060
|
+
* All bookings are created with `paymentStatus=UNDEFINED`, ignoring the payment status you specify.
|
|
4051
4061
|
*
|
|
4052
|
-
*
|
|
4053
|
-
*
|
|
4054
|
-
*
|
|
4055
|
-
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)).
|
|
4062
|
+
* For customers paying with a Wix eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/purchase-flow/checkout/checkout/introduction)), Wix Bookings automatically syncs the booking's payment status from the corresponding eCommerce order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/orders/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)).
|
|
4063
|
+
*
|
|
4064
|
+
* For customers using a custom checkout, call Confirm or Decline Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/confirm-or-decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-or-decline-booking)) to update booking's payment status manually.
|
|
4056
4065
|
*
|
|
4057
4066
|
* ### Booking form data
|
|
4058
4067
|
*
|