@wix/bookings 1.0.1743 → 1.0.1745
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/_sdk-exports/context-booking-checkout-context/runtime.d.ts +7 -6
- package/_sdk-exports/context-booking-checkout-context/runtime.js +2 -2
- package/_sdk-exports/context-service-context/runtime.d.ts +49 -2
- package/_sdk-exports/context-service-context/runtime.js +2 -2
- package/_sdk-exports/context-services-context/runtime.js +1 -1
- package/_sdk-exports/context-time-slots-context/runtime.d.ts +12 -0
- package/build/cjs/context-booking-checkout-context.d.ts +7 -6
- package/build/cjs/context-booking-checkout-context.js +1261 -1237
- package/build/cjs/context-booking-checkout-context.js.map +1 -1
- package/build/cjs/context-service-context.d.ts +49 -2
- package/build/cjs/context-service-context.js +1386 -1385
- package/build/cjs/context-service-context.js.map +1 -1
- package/build/cjs/context-services-context.js +1 -1
- package/build/cjs/context-services-context.js.map +1 -1
- package/build/cjs/context-time-slots-context.d.ts +12 -0
- package/build/es/context-booking-checkout-context.d.mts +7 -6
- package/build/es/context-booking-checkout-context.mjs +1261 -1237
- package/build/es/context-booking-checkout-context.mjs.map +1 -1
- package/build/es/context-service-context.d.mts +49 -2
- package/build/es/context-service-context.mjs +1386 -1385
- package/build/es/context-service-context.mjs.map +1 -1
- package/build/es/context-services-context.mjs +1 -1
- package/build/es/context-services-context.mjs.map +1 -1
- package/build/es/context-time-slots-context.d.mts +12 -0
- package/build/internal/cjs/context-booking-checkout-context.d.ts +7 -6
- package/build/internal/cjs/context-service-context.d.ts +49 -2
- package/build/internal/cjs/context-time-slots-context.d.ts +12 -0
- package/build/internal/es/context-booking-checkout-context.d.mts +7 -6
- package/build/internal/es/context-service-context.d.mts +49 -2
- package/build/internal/es/context-time-slots-context.d.mts +12 -0
- package/package.json +37 -37
|
@@ -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-
|
|
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
|
|
2623
|
-
* `totalParticipants`, as legacy's previewed
|
|
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
|
|
2673
|
-
* previews
|
|
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
|
|
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. */
|