@wix/bookings 1.0.1791 → 1.0.1792

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.
Files changed (31) hide show
  1. package/build/cjs/context-booking-checkout.js +1 -1
  2. package/build/cjs/context-booking-checkout.js.map +1 -1
  3. package/build/cjs/context-service-addons.js +123 -134
  4. package/build/cjs/context-service-addons.js.map +1 -1
  5. package/build/cjs/context-service.d.ts +16 -6
  6. package/build/cjs/context-service.js +728 -724
  7. package/build/cjs/context-service.js.map +1 -1
  8. package/build/cjs/context-services.js +801 -812
  9. package/build/cjs/context-services.js.map +1 -1
  10. package/build/cjs/context-time-slots.js +1300 -1267
  11. package/build/cjs/context-time-slots.js.map +1 -1
  12. package/build/es/context-booking-checkout.mjs +1 -1
  13. package/build/es/context-booking-checkout.mjs.map +1 -1
  14. package/build/es/context-service-addons.mjs +123 -134
  15. package/build/es/context-service-addons.mjs.map +1 -1
  16. package/build/es/context-service.d.mts +16 -6
  17. package/build/es/context-service.mjs +728 -724
  18. package/build/es/context-service.mjs.map +1 -1
  19. package/build/es/context-services.mjs +801 -812
  20. package/build/es/context-services.mjs.map +1 -1
  21. package/build/es/context-time-slots.mjs +1300 -1267
  22. package/build/es/context-time-slots.mjs.map +1 -1
  23. package/build/internal/cjs/context-service.d.ts +16 -6
  24. package/build/internal/es/context-service.d.mts +16 -6
  25. package/context-runtime/context-booking-checkout/runtime.js +2 -2
  26. package/context-runtime/context-service/runtime.d.ts +16 -6
  27. package/context-runtime/context-service/runtime.js +2 -2
  28. package/context-runtime/context-service-addons/runtime.js +2 -2
  29. package/context-runtime/context-services/runtime.js +3 -3
  30. package/context-runtime/context-time-slots/runtime.js +3 -3
  31. package/package.json +2 -2
@@ -3623,10 +3623,11 @@ interface ServicePriceData {
3623
3623
  */
3624
3624
  price: string | null;
3625
3625
  /**
3626
- * Price after the service's discount.
3626
+ * Price after the service's discount. For `'SUBSCRIPTION'`, the amount of each discounted
3627
+ * payment.
3627
3628
  *
3628
- * `null` when there's no discount, `rateType` isn't `'FIXED'`, or the discounted price isn't
3629
- * known until checkout.
3629
+ * `null` when there's no discount, `rateType` isn't `'FIXED'` or `'SUBSCRIPTION'`, or the
3630
+ * discounted price isn't known until checkout.
3630
3631
  */
3631
3632
  priceAfterDiscount: string | null;
3632
3633
  /**
@@ -3646,6 +3647,14 @@ interface ServicePriceData {
3646
3647
  * `null` when the service has no subscription.
3647
3648
  */
3648
3649
  subscriptionFrequency: FrequencyTypeWithLiterals | null;
3650
+ /**
3651
+ * Number of payments left to a visitor who books now: all of them before the subscription
3652
+ * starts, the ones left after it, and at least 1.
3653
+ *
3654
+ * `null` when the service has no subscription, or its subscription has no set number of
3655
+ * payments.
3656
+ */
3657
+ remainingPayments: number | null;
3649
3658
  /**
3650
3659
  * Whether the service is free. A service is free when its rate type is `'NO_FEE'` or it has a
3651
3660
  * fixed price of 0, and it isn't paid for with a pricing plan.
@@ -4899,9 +4908,10 @@ interface ServiceContextValue {
4899
4908
  /**
4900
4909
  * Retrieves the URL of the page that `navigateToNextPage()` navigates to, without navigating.
4901
4910
  *
4902
- * For a single service, the URL doesn't carry the visitor's selection, so use it for a link's
4903
- * `href`, and navigate with `navigateToNextPage()`. For a multi-service appointment, the URL is
4904
- * the booking form's, with the selection.
4911
+ * Use it for a link's `href`, and navigate with `navigateToNextPage()`. The booking form's URL
4912
+ * carries the selection, as the form books only from it, so the link books the same as the click
4913
+ * when it's opened in a new tab or copied. The service page and the calendar find the service by
4914
+ * its slug, so their URL doesn't carry the visitor's choices.
4905
4915
  *
4906
4916
  * In reschedule mode, the function still returns the URL, but `navigateToNextPage()` doesn't
4907
4917
  * navigate.