@wix/bookings 1.0.1742 → 1.0.1744

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/_sdk-exports/context-booking-checkout-context/runtime.d.ts +7 -6
  2. package/_sdk-exports/context-booking-checkout-context/runtime.js +2 -2
  3. package/_sdk-exports/context-service-context/runtime.d.ts +49 -2
  4. package/_sdk-exports/context-service-context/runtime.js +2 -2
  5. package/_sdk-exports/context-services-context/runtime.js +1 -1
  6. package/_sdk-exports/context-time-slots-context/runtime.d.ts +12 -0
  7. package/build/cjs/context-booking-checkout-context.d.ts +7 -6
  8. package/build/cjs/context-booking-checkout-context.js +1261 -1237
  9. package/build/cjs/context-booking-checkout-context.js.map +1 -1
  10. package/build/cjs/context-service-context.d.ts +49 -2
  11. package/build/cjs/context-service-context.js +1390 -1383
  12. package/build/cjs/context-service-context.js.map +1 -1
  13. package/build/cjs/context-services-context.js +1 -1
  14. package/build/cjs/context-services-context.js.map +1 -1
  15. package/build/cjs/context-time-slots-context.d.ts +12 -0
  16. package/build/es/context-booking-checkout-context.d.mts +7 -6
  17. package/build/es/context-booking-checkout-context.mjs +1261 -1237
  18. package/build/es/context-booking-checkout-context.mjs.map +1 -1
  19. package/build/es/context-service-context.d.mts +49 -2
  20. package/build/es/context-service-context.mjs +1390 -1383
  21. package/build/es/context-service-context.mjs.map +1 -1
  22. package/build/es/context-services-context.mjs +1 -1
  23. package/build/es/context-services-context.mjs.map +1 -1
  24. package/build/es/context-time-slots-context.d.mts +12 -0
  25. package/build/internal/cjs/context-booking-checkout-context.d.ts +7 -6
  26. package/build/internal/cjs/context-service-context.d.ts +49 -2
  27. package/build/internal/cjs/context-time-slots-context.d.ts +12 -0
  28. package/build/internal/es/context-booking-checkout-context.d.mts +7 -6
  29. package/build/internal/es/context-service-context.d.mts +49 -2
  30. package/build/internal/es/context-time-slots-context.d.mts +12 -0
  31. package/package.json +3 -3
@@ -2431,7 +2431,7 @@ declare const PAYMENT_OPTION_KIND: {
2431
2431
  };
2432
2432
  type PaymentOptionKind = (typeof PAYMENT_OPTION_KIND)[keyof typeof PAYMENT_OPTION_KIND];
2433
2433
  //#endregion
2434
- //#region ../../node_modules/@wix/auto_sdk_pricing-plans_plans-v-3/build/es/pricing-plans-v3-plan-plans-v-3.universal-CSm3CgP7.d.mts
2434
+ //#region ../../node_modules/@wix/auto_sdk_pricing-plans_plans-v-3/build/es/pricing-plans-v3-plan-plans-v-3.universal-CED5HgCd.d.mts
2435
2435
  /**
2436
2436
  * The choices a buyer makes about a plan, carried in the `options` field of an eCommerce line item's
2437
2437
  * `catalogReference`.
@@ -2619,8 +2619,9 @@ interface CreateBookingInput {
2619
2619
  /** Participants for an entry without variants; 1 when absent. Set by the checkout context. */
2620
2620
  totalParticipants?: number;
2621
2621
  /**
2622
- * Rule-based number-of-participants pricing: the range the count falls in, booked in place of
2623
- * `totalParticipants`, as legacy's previewed selectedVariants. Set by the checkout context.
2622
+ * Rule-based pricing: the choices previewPrice returns — the range the count falls in, or the
2623
+ * rule the booked slot matches — booked in place of `totalParticipants`, as legacy's previewed
2624
+ * selectedVariants. Set by the checkout context.
2624
2625
  */
2625
2626
  participantsChoices?: ParticipantsServiceChoice[];
2626
2627
  /** A service charges a cancellation fee or saves the card: only eCom's checkout page takes the card. */
@@ -2669,8 +2670,8 @@ interface BookingFormHandle {
2669
2670
  validate: () => Promise<boolean>;
2670
2671
  getInput: () => CreateBookingInput;
2671
2672
  /**
2672
- * Rule-based number-of-participants pricing only: the range to book the count in, as legacy
2673
- * previews it. Null books the plain count.
2673
+ * Rule-based pricing only: the choices to book — the range the count falls in, or the rule the
2674
+ * booked slot matches — as legacy previews them. Null books the plain count.
2674
2675
  */
2675
2676
  previewParticipants?: (count: number) => Promise<ParticipantsServiceChoice[] | null>;
2676
2677
  /** The form's BI defaults under the legacy click-next (659) fields, read at click time. Never throws. */
@@ -2686,7 +2687,7 @@ interface FormFacts {
2686
2687
  }[];
2687
2688
  /** Bookings lines only, as in OOI's `isServiceInCart`. */
2688
2689
  hasBookingsInCart: boolean;
2689
- /** Rule-based number-of-participants pricing only: the picked count's previewed price. */
2690
+ /** Rule-based pricing only: the previewed price of the picked count and slot. */
2690
2691
  participantsPrice?: PreviewedParticipantsPrice;
2691
2692
  }
2692
2693
  /** `failed` too when the preview has no price; `count` is the count it prices. */