@wix/bookings 1.0.1795 → 1.0.1797
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/context-booking-checkout.d.ts +3 -37
- package/build/cjs/context-booking-checkout.js +1350 -1340
- package/build/cjs/context-booking-checkout.js.map +1 -1
- package/build/cjs/context-categories.d.ts +1 -3
- package/build/cjs/context-categories.js +20 -43
- package/build/cjs/context-categories.js.map +1 -1
- package/build/cjs/context-locations.d.ts +1 -1
- package/build/cjs/context-locations.js +20 -43
- package/build/cjs/context-locations.js.map +1 -1
- package/build/cjs/context-service-addons.d.ts +1 -15
- package/build/cjs/context-service-addons.js +20 -43
- package/build/cjs/context-service-addons.js.map +1 -1
- package/build/cjs/context-service.d.ts +1 -65
- package/build/cjs/context-service.js +363 -386
- package/build/cjs/context-service.js.map +1 -1
- package/build/cjs/context-services.d.ts +1 -23
- package/build/cjs/context-services.js +542 -566
- package/build/cjs/context-services.js.map +1 -1
- package/build/cjs/context-time-slots.d.ts +1 -21
- package/build/cjs/context-time-slots.js +588 -615
- package/build/cjs/context-time-slots.js.map +1 -1
- package/build/es/context-booking-checkout.d.mts +3 -37
- package/build/es/context-booking-checkout.mjs +1350 -1340
- package/build/es/context-booking-checkout.mjs.map +1 -1
- package/build/es/context-categories.d.mts +1 -3
- package/build/es/context-categories.mjs +20 -43
- package/build/es/context-categories.mjs.map +1 -1
- package/build/es/context-locations.d.mts +1 -1
- package/build/es/context-locations.mjs +20 -43
- package/build/es/context-locations.mjs.map +1 -1
- package/build/es/context-service-addons.d.mts +1 -15
- package/build/es/context-service-addons.mjs +20 -43
- package/build/es/context-service-addons.mjs.map +1 -1
- package/build/es/context-service.d.mts +1 -65
- package/build/es/context-service.mjs +363 -386
- package/build/es/context-service.mjs.map +1 -1
- package/build/es/context-services.d.mts +1 -23
- package/build/es/context-services.mjs +542 -566
- package/build/es/context-services.mjs.map +1 -1
- package/build/es/context-time-slots.d.mts +1 -21
- package/build/es/context-time-slots.mjs +588 -615
- package/build/es/context-time-slots.mjs.map +1 -1
- package/build/internal/cjs/context-booking-checkout.d.ts +3 -37
- package/build/internal/cjs/context-categories.d.ts +1 -3
- package/build/internal/cjs/context-locations.d.ts +1 -1
- package/build/internal/cjs/context-service-addons.d.ts +1 -15
- package/build/internal/cjs/context-service.d.ts +1 -65
- package/build/internal/cjs/context-services.d.ts +1 -23
- package/build/internal/cjs/context-time-slots.d.ts +1 -21
- package/build/internal/es/context-booking-checkout.d.mts +3 -37
- package/build/internal/es/context-categories.d.mts +1 -3
- package/build/internal/es/context-locations.d.mts +1 -1
- package/build/internal/es/context-service-addons.d.mts +1 -15
- package/build/internal/es/context-service.d.mts +1 -65
- package/build/internal/es/context-services.d.mts +1 -23
- package/build/internal/es/context-time-slots.d.mts +1 -21
- package/context-runtime/context-booking-checkout/runtime.d.ts +3 -38
- package/context-runtime/context-booking-checkout/runtime.js +3 -3
- package/context-runtime/context-categories/runtime.d.ts +1 -4
- package/context-runtime/context-categories/runtime.js +2 -2
- package/context-runtime/context-locations/runtime.d.ts +1 -2
- package/context-runtime/context-locations/runtime.js +2 -2
- package/context-runtime/context-service/runtime.d.ts +1 -66
- package/context-runtime/context-service/runtime.js +3 -3
- package/context-runtime/context-service-addons/runtime.d.ts +1 -16
- package/context-runtime/context-service-addons/runtime.js +2 -2
- package/context-runtime/context-services/runtime.d.ts +1 -24
- package/context-runtime/context-services/runtime.js +3 -3
- package/context-runtime/context-time-slots/runtime.d.ts +1 -22
- package/context-runtime/context-time-slots/runtime.js +3 -3
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/@wix/editor-react-types/dist/links.d.ts
|
|
4
4
|
type LinkTarget = '_self' | '_blank';
|
|
5
5
|
/**
|
|
6
6
|
* A link to a URL, used for navigation within components.
|
|
@@ -35,8 +35,6 @@ type Link = {
|
|
|
35
35
|
*/
|
|
36
36
|
pageRole?: string;
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region ../../node_modules/@wix/editor-react-types/dist/image.d.ts
|
|
40
38
|
type Point = {
|
|
41
39
|
x: number;
|
|
42
40
|
y: number;
|
|
@@ -72,8 +70,6 @@ type Image = {
|
|
|
72
70
|
quality?: number; /** The image alt text for accessibility. */
|
|
73
71
|
alt?: string;
|
|
74
72
|
};
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region ../../node_modules/@wix/editor-react-types/dist/base.d.ts
|
|
77
73
|
/**
|
|
78
74
|
* A standard email address according to RFC 5321, section 4.1.2.
|
|
79
75
|
*
|
|
@@ -100,8 +96,6 @@ type Email = string;
|
|
|
100
96
|
* ```
|
|
101
97
|
*/
|
|
102
98
|
type Phone = string;
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region ../../node_modules/@wix/editor-react-types/dist/visualMedia.d.ts
|
|
105
99
|
interface VisualMediaBase {
|
|
106
100
|
/** The URL of the media file */
|
|
107
101
|
src: string;
|
|
@@ -136,8 +130,6 @@ type ImageParameters = {
|
|
|
136
130
|
/** The focal point for the image */focalPoint?: [number, number]; /** The alt text for the image */
|
|
137
131
|
alt?: string;
|
|
138
132
|
};
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region ../../node_modules/type-fest/source/observable-like.d.ts
|
|
141
133
|
declare global {
|
|
142
134
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
143
135
|
interface SymbolConstructor {
|
|
@@ -154,8 +146,6 @@ As well, some guidance on making an `Observable` to not include `closed` propert
|
|
|
154
146
|
|
|
155
147
|
@category Observable
|
|
156
148
|
*/
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region ../../node_modules/@wix/sdk-types/internal/build/index.d.ts
|
|
159
149
|
declare global {
|
|
160
150
|
interface ContextualClient {}
|
|
161
151
|
}
|
|
@@ -201,8 +191,6 @@ declare global {
|
|
|
201
191
|
*/
|
|
202
192
|
interface SDKTypeMode {}
|
|
203
193
|
}
|
|
204
|
-
//#endregion
|
|
205
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_multi-service-availability-time-slots/build/es/index.typings.d.mts
|
|
206
194
|
interface AvailableResources {
|
|
207
195
|
/**
|
|
208
196
|
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
@@ -271,8 +259,6 @@ interface NestedTimeSlot {
|
|
|
271
259
|
*/
|
|
272
260
|
scheduleId?: string | null;
|
|
273
261
|
}
|
|
274
|
-
//#endregion
|
|
275
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_service-options-and-variants/build/es/index.typings.d.mts
|
|
276
262
|
/**
|
|
277
263
|
* The `serviceOptionsAndVariants` object links a [service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction)
|
|
278
264
|
* to its variants.
|
|
@@ -730,8 +716,6 @@ interface ExtendedFields$2 {
|
|
|
730
716
|
*/
|
|
731
717
|
namespaces?: Record<string, Record<string, any>>;
|
|
732
718
|
}
|
|
733
|
-
//#endregion
|
|
734
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_services/build/es/bookings-services-v2-service-services.universal-p5eQUd5f.d.mts
|
|
735
719
|
/** The `service` object represents an offering that a business provides to its customers. */
|
|
736
720
|
interface Service {
|
|
737
721
|
/**
|
|
@@ -2526,8 +2510,6 @@ interface BookedAddOn {
|
|
|
2526
2510
|
nameTranslated?: string | null;
|
|
2527
2511
|
}
|
|
2528
2512
|
/** Server-computed datetime adjusted to a requested timezone. */
|
|
2529
|
-
//#endregion
|
|
2530
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_bookings/build/es/index.typings.d.mts
|
|
2531
2513
|
declare enum ResourceTransparency {
|
|
2532
2514
|
OPAQUE = "OPAQUE",
|
|
2533
2515
|
TRANSPARENT = "TRANSPARENT"
|
|
@@ -2674,8 +2656,6 @@ interface SlotLocation {
|
|
|
2674
2656
|
locationType?: LocationLocationTypeWithLiterals;
|
|
2675
2657
|
}
|
|
2676
2658
|
/** Response for RescheduleBookingAnonymously */
|
|
2677
|
-
//#endregion
|
|
2678
|
-
//#region ../../node_modules/@wix/auto_sdk_bookings_bookings-settings/build/es/index.typings.d.mts
|
|
2679
2659
|
declare enum BasedOn {
|
|
2680
2660
|
/** Times are displayed in the business's time zone. */
|
|
2681
2661
|
BUSINESS_TIME_ZONE = "BUSINESS_TIME_ZONE",
|
|
@@ -2684,18 +2664,12 @@ declare enum BasedOn {
|
|
|
2684
2664
|
}
|
|
2685
2665
|
/** @enumType */
|
|
2686
2666
|
type BasedOnWithLiterals = BasedOn | 'BUSINESS_TIME_ZONE' | 'CUSTOMER_TIME_ZONE';
|
|
2687
|
-
//#endregion
|
|
2688
|
-
//#region src/api/adapters/service/service.d.ts
|
|
2689
|
-
//#endregion
|
|
2690
|
-
//#region src/domains/states/service-cta-states.d.ts
|
|
2691
2667
|
declare const SERVICE_CTA_STATES: {
|
|
2692
2668
|
readonly BOOK: "book";
|
|
2693
2669
|
readonly REQUEST_TO_BOOK: "requestToBook";
|
|
2694
2670
|
readonly VIEW_COURSE: "viewCourse";
|
|
2695
2671
|
};
|
|
2696
2672
|
type ServiceCtaState = (typeof SERVICE_CTA_STATES)[keyof typeof SERVICE_CTA_STATES];
|
|
2697
|
-
//#endregion
|
|
2698
|
-
//#region ../bookings-flow-data/dist/types.d.ts
|
|
2699
2673
|
/**
|
|
2700
2674
|
* Whether the selection holds 1 service or several services booked together. Supported values:
|
|
2701
2675
|
* - `'single'`: 1 service.
|
|
@@ -2786,8 +2760,6 @@ interface BookingPreferences {
|
|
|
2786
2760
|
*/
|
|
2787
2761
|
wantsPromoCode?: boolean;
|
|
2788
2762
|
}
|
|
2789
|
-
//#endregion
|
|
2790
|
-
//#region src/domains/url-builder/service-selection-url.d.ts
|
|
2791
2763
|
/** Page a course's booking button goes to. */
|
|
2792
2764
|
type CourseNavigationTarget = /** The service page. */'servicePage' /** The booking form, to book the whole course. */ | 'bookingForm';
|
|
2793
2765
|
/** Page a class's or an appointment's booking button goes to. */
|
|
@@ -2804,8 +2776,6 @@ interface ServiceSelectionNavigationConfig {
|
|
|
2804
2776
|
/** Page to go to for a class or an appointment. */
|
|
2805
2777
|
classAppointmentNavigationTarget: ClassAppointmentNavigationTarget;
|
|
2806
2778
|
}
|
|
2807
|
-
//#endregion
|
|
2808
|
-
//#region src/hooks/use-bi-logger/bi-consts.d.ts
|
|
2809
2779
|
declare const BI_WIDGET_NAME: {
|
|
2810
2780
|
readonly SERVICES: "services_context";
|
|
2811
2781
|
readonly SERVICE: "service_context";
|
|
@@ -2823,8 +2793,6 @@ declare const BI_REFERRAL_INFO: {
|
|
|
2823
2793
|
readonly EXPLORE_PLANS: "explore_plans";
|
|
2824
2794
|
};
|
|
2825
2795
|
type BiReferralInfo = (typeof BI_REFERRAL_INFO)[keyof typeof BI_REFERRAL_INFO];
|
|
2826
|
-
//#endregion
|
|
2827
|
-
//#region src/hooks/use-bi-logger/use-bi-logger.d.ts
|
|
2828
2796
|
/** Analytics event to report. */
|
|
2829
2797
|
interface BiEvent {
|
|
2830
2798
|
/** ID of the event's source. */
|
|
@@ -2837,10 +2805,6 @@ interface BiEvent {
|
|
|
2837
2805
|
params: Record<string, unknown>;
|
|
2838
2806
|
}
|
|
2839
2807
|
declare const useBiLogger: (widgetName: BiWidgetName) => (event: BiEvent) => void;
|
|
2840
|
-
//#endregion
|
|
2841
|
-
//#region src/api/adapters/service-options-and-variants/service-options-and-variants.d.ts
|
|
2842
|
-
//#endregion
|
|
2843
|
-
//#region ../../node_modules/@wix/auto_sdk_calendar_events/build/es/index.typings.d.mts
|
|
2844
2808
|
/**
|
|
2845
2809
|
* An event is a scheduled entry on a calendar that includes details like timing,
|
|
2846
2810
|
* location, and participants. Each event is associated with
|
|
@@ -3505,15 +3469,11 @@ interface ExtendedFields {
|
|
|
3505
3469
|
*/
|
|
3506
3470
|
namespaces?: Record<string, Record<string, any>>;
|
|
3507
3471
|
}
|
|
3508
|
-
//#endregion
|
|
3509
|
-
//#region src/domains/offered-days/offered-days.d.ts
|
|
3510
3472
|
/** Day of the week that a service's sessions recur on. */
|
|
3511
3473
|
interface OfferedDay {
|
|
3512
3474
|
/** Day of the week, in uppercase English. For example, `MONDAY`. */
|
|
3513
3475
|
day: string;
|
|
3514
3476
|
}
|
|
3515
|
-
//#endregion
|
|
3516
|
-
//#region src/domains/pricing-options/pricing-options.d.ts
|
|
3517
3477
|
type ServiceOptionType = ServiceOptionTypeWithLiterals;
|
|
3518
3478
|
interface PricingOptionChoice {
|
|
3519
3479
|
/**
|
|
@@ -3597,8 +3557,6 @@ interface PricingOption {
|
|
|
3597
3557
|
/** Choices that the visitor selects from, one for each of the service's variants. */
|
|
3598
3558
|
choices: PricingOptionChoice[];
|
|
3599
3559
|
}
|
|
3600
|
-
//#endregion
|
|
3601
|
-
//#region src/domains/service-price/format-service-price.d.ts
|
|
3602
3560
|
/** Service's price details. Amounts are formatted for the site's locale. */
|
|
3603
3561
|
interface ServicePriceData {
|
|
3604
3562
|
/**
|
|
@@ -3661,8 +3619,6 @@ interface ServicePriceData {
|
|
|
3661
3619
|
*/
|
|
3662
3620
|
isFree: boolean;
|
|
3663
3621
|
}
|
|
3664
|
-
//#endregion
|
|
3665
|
-
//#region src/domains/service-locations/service-locations.d.ts
|
|
3666
3622
|
/** Where a service takes place. */
|
|
3667
3623
|
interface ServiceLocationItem {
|
|
3668
3624
|
/** Kind of location. */
|
|
@@ -3670,8 +3626,6 @@ interface ServiceLocationItem {
|
|
|
3670
3626
|
/** The business location's name or the address. Null for the customer's place: label it in your own words. */
|
|
3671
3627
|
text: string | null;
|
|
3672
3628
|
}
|
|
3673
|
-
//#endregion
|
|
3674
|
-
//#region src/domains/service-bookability/service-bookability.d.ts
|
|
3675
3629
|
declare const AVAILABILITY_STATES: {
|
|
3676
3630
|
readonly AVAILABLE: "available";
|
|
3677
3631
|
readonly FULLY_BOOKED: "fullyBooked";
|
|
@@ -3711,8 +3665,6 @@ interface ServiceBookability {
|
|
|
3711
3665
|
*/
|
|
3712
3666
|
bookingOpensAt: Date | null;
|
|
3713
3667
|
}
|
|
3714
|
-
//#endregion
|
|
3715
|
-
//#region src/api/adapters/staff-member/staff-member.d.ts
|
|
3716
3668
|
/**
|
|
3717
3669
|
* Where a staff member has working hours, derived server-side from their WORKING_HOURS
|
|
3718
3670
|
* calendar events. Returned only when `STAFF_WORKING_HOURS_LOCATIONS` is requested (see
|
|
@@ -3730,8 +3682,6 @@ interface StaffMemberItem {
|
|
|
3730
3682
|
/** Absent when the coverage wasn't returned — callers treat that as "works everywhere". */
|
|
3731
3683
|
locationCoverage?: StaffLocationCoverage;
|
|
3732
3684
|
}
|
|
3733
|
-
//#endregion
|
|
3734
|
-
//#region src/domains/course-availability/course-availability.d.ts
|
|
3735
3685
|
/** Capacity of a course. */
|
|
3736
3686
|
interface CourseAvailability {
|
|
3737
3687
|
/**
|
|
@@ -3747,11 +3697,7 @@ interface CourseAvailability {
|
|
|
3747
3697
|
*/
|
|
3748
3698
|
remainingCapacity: number | null;
|
|
3749
3699
|
}
|
|
3750
|
-
//#endregion
|
|
3751
|
-
//#region src/domains/service-item-fields/service-item-fields.d.ts
|
|
3752
3700
|
type ServiceItemStaffMember = Omit<StaffMemberItem, 'isSelected'>;
|
|
3753
|
-
//#endregion
|
|
3754
|
-
//#region src/domains/url-builder/booking-preferences-blob.types.d.ts
|
|
3755
3701
|
type SelectStaffMember = (staffMemberId: string) => void;
|
|
3756
3702
|
/** Sets an explicit "any available staff", of `requestedGender` when given, else of any gender. */
|
|
3757
3703
|
type ClearSelection = (requestedGender?: RequestedGender) => void;
|
|
@@ -3830,8 +3776,6 @@ type NestedSlotPart = Pick<NestedTimeSlot, 'serviceId' | 'localStartDate' | 'loc
|
|
|
3830
3776
|
type SetMultiServiceSlot = (nestedTimeSlots: ReadonlyArray<NestedSlotPart>, timezone?: string) => boolean;
|
|
3831
3777
|
/** Drops a Multi-Service Appointment's picked time from every entry; locations stay. */
|
|
3832
3778
|
type ClearMultiServiceSlot = () => void;
|
|
3833
|
-
//#endregion
|
|
3834
|
-
//#region src/api/adapters/bookings-settings/bookings-settings.d.ts
|
|
3835
3779
|
/** A policy, not an IANA zone: the real zone needs the business zone from site properties. */
|
|
3836
3780
|
type DisplayTimeZonePolicy = {
|
|
3837
3781
|
/**
|
|
@@ -3860,8 +3804,6 @@ interface ExposedBookingsSettings {
|
|
|
3860
3804
|
/** Whether visitors can book more than 1 service in a single appointment. */
|
|
3861
3805
|
multiServiceAppointmentsEnabled: boolean;
|
|
3862
3806
|
}
|
|
3863
|
-
//#endregion
|
|
3864
|
-
//#region src/extensions/contexts/services-context/services-context.d.ts
|
|
3865
3807
|
/** Raw data only; the nested service-context derives display values. Not for direct binding. */
|
|
3866
3808
|
interface ServiceItem {
|
|
3867
3809
|
/**
|
|
@@ -3917,8 +3859,6 @@ interface ServiceItem {
|
|
|
3917
3859
|
*/
|
|
3918
3860
|
servicePageLink: Link | null;
|
|
3919
3861
|
}
|
|
3920
|
-
//#endregion
|
|
3921
|
-
//#region src/domains/reschedule/reschedule.d.ts
|
|
3922
3862
|
/** The booking being moved, as the calendar needs it. */
|
|
3923
3863
|
interface RescheduledBooking {
|
|
3924
3864
|
/** Booking ID. */
|
|
@@ -3991,8 +3931,6 @@ interface Reschedule {
|
|
|
3991
3931
|
*/
|
|
3992
3932
|
planName: string | null;
|
|
3993
3933
|
}
|
|
3994
|
-
//#endregion
|
|
3995
|
-
//#region src/api/adapters/booking/reschedule-booking.d.ts
|
|
3996
3934
|
/** Who and where the moved booking is with, as the server assigned them. */
|
|
3997
3935
|
interface RescheduledSlot {
|
|
3998
3936
|
/**
|
|
@@ -4008,8 +3946,6 @@ interface RescheduledSlot {
|
|
|
4008
3946
|
*/
|
|
4009
3947
|
locationName: string | null;
|
|
4010
3948
|
}
|
|
4011
|
-
//#endregion
|
|
4012
|
-
//#region src/extensions/contexts/service-context/service-context.d.ts
|
|
4013
3949
|
/** A bookable service with its display values, the visitor's booking selection and the actions to change it, plus multi-service appointment and reschedule state. */
|
|
4014
3950
|
interface ServiceContextValue {
|
|
4015
3951
|
/**
|