@jay-framework/wix-bookings 0.24.0 → 0.24.1
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/dist/actions/create-booking.jay-action +19 -0
- package/dist/actions/list-services.jay-action +14 -0
- package/dist/actions/list-slots.jay-action +18 -0
- package/dist/contracts/booking-flow.jay-contract +125 -0
- package/dist/contracts/booking-flow.jay-contract.d.ts +94 -0
- package/dist/index.client-CBlxQDjy.d.ts +194 -0
- package/dist/index.client.d.ts +4 -0
- package/dist/index.client.js +424 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +514 -0
- package/package.json +14 -14
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: createBooking
|
|
2
|
+
description: Create a booking and complete free checkout or return a paid checkout redirect URL.
|
|
3
|
+
|
|
4
|
+
inputSchema:
|
|
5
|
+
serviceId: string
|
|
6
|
+
serviceType: enum(APPOINTMENT | CLASS)
|
|
7
|
+
slot:
|
|
8
|
+
localStartDate: string
|
|
9
|
+
localEndDate: string
|
|
10
|
+
scheduleId?: string
|
|
11
|
+
eventId?: string
|
|
12
|
+
formValues: object
|
|
13
|
+
timezone: string
|
|
14
|
+
siteOrigin: string
|
|
15
|
+
paymentPreference?: enum(ONLINE | OFFLINE)
|
|
16
|
+
|
|
17
|
+
outputSchema:
|
|
18
|
+
outcome: enum(confirmed | redirect)
|
|
19
|
+
redirectUrl?: string
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
name: listServices
|
|
2
|
+
description: List visible Wix Bookings services for the configured booking app.
|
|
3
|
+
|
|
4
|
+
inputSchema: {}
|
|
5
|
+
|
|
6
|
+
outputSchema:
|
|
7
|
+
services:
|
|
8
|
+
- id: string
|
|
9
|
+
name: string
|
|
10
|
+
type: enum(APPOINTMENT | CLASS)
|
|
11
|
+
description: string
|
|
12
|
+
priceLabel: string
|
|
13
|
+
durationLabel: string
|
|
14
|
+
formId?: string
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: listSlots
|
|
2
|
+
description: List available booking time slots for a service within the configured window.
|
|
3
|
+
|
|
4
|
+
inputSchema:
|
|
5
|
+
serviceId: string
|
|
6
|
+
serviceType: enum(APPOINTMENT | CLASS)
|
|
7
|
+
timezone?: string
|
|
8
|
+
windowDays?: number
|
|
9
|
+
|
|
10
|
+
outputSchema:
|
|
11
|
+
slots:
|
|
12
|
+
- id: string
|
|
13
|
+
localStartDate: string
|
|
14
|
+
localEndDate: string
|
|
15
|
+
label: string
|
|
16
|
+
scheduleId?: string
|
|
17
|
+
eventId?: string
|
|
18
|
+
serviceType: enum(APPOINTMENT | CLASS)
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
name: booking-flow
|
|
2
|
+
description: Browse Wix Bookings services, select a slot, submit participant details, and complete checkout.
|
|
3
|
+
|
|
4
|
+
tags:
|
|
5
|
+
- tag: services
|
|
6
|
+
type: sub-contract
|
|
7
|
+
repeated: true
|
|
8
|
+
trackBy: id
|
|
9
|
+
phase: fast+interactive
|
|
10
|
+
description: Available services
|
|
11
|
+
tags:
|
|
12
|
+
- { tag: id, type: data, dataType: string }
|
|
13
|
+
- { tag: name, type: data, dataType: string }
|
|
14
|
+
- { tag: description, type: data, dataType: string }
|
|
15
|
+
- { tag: type, type: data, dataType: string }
|
|
16
|
+
- { tag: durationLabel, type: data, dataType: string }
|
|
17
|
+
- { tag: priceLabel, type: data, dataType: string }
|
|
18
|
+
- { tag: formId, type: data, dataType: string }
|
|
19
|
+
- { tag: serviceButtons, type: interactive, elementType: HTMLButtonElement, description: Select a service }
|
|
20
|
+
|
|
21
|
+
- tag: servicesLoading
|
|
22
|
+
type: variant
|
|
23
|
+
dataType: boolean
|
|
24
|
+
phase: fast+interactive
|
|
25
|
+
|
|
26
|
+
- tag: showNoServices
|
|
27
|
+
type: variant
|
|
28
|
+
dataType: boolean
|
|
29
|
+
phase: fast+interactive
|
|
30
|
+
|
|
31
|
+
- tag: hasSlots
|
|
32
|
+
type: variant
|
|
33
|
+
dataType: boolean
|
|
34
|
+
phase: fast+interactive
|
|
35
|
+
|
|
36
|
+
- tag: servicesError
|
|
37
|
+
type: data
|
|
38
|
+
dataType: string
|
|
39
|
+
phase: fast+interactive
|
|
40
|
+
|
|
41
|
+
- tag: showServices
|
|
42
|
+
type: variant
|
|
43
|
+
dataType: boolean
|
|
44
|
+
phase: fast+interactive
|
|
45
|
+
|
|
46
|
+
- tag: showSlots
|
|
47
|
+
type: variant
|
|
48
|
+
dataType: boolean
|
|
49
|
+
phase: fast+interactive
|
|
50
|
+
|
|
51
|
+
- tag: showForm
|
|
52
|
+
type: variant
|
|
53
|
+
dataType: boolean
|
|
54
|
+
phase: fast+interactive
|
|
55
|
+
|
|
56
|
+
- tag: selectedServiceName
|
|
57
|
+
type: data
|
|
58
|
+
dataType: string
|
|
59
|
+
phase: fast+interactive
|
|
60
|
+
|
|
61
|
+
- tag: slots
|
|
62
|
+
type: sub-contract
|
|
63
|
+
repeated: true
|
|
64
|
+
trackBy: id
|
|
65
|
+
phase: fast+interactive
|
|
66
|
+
tags:
|
|
67
|
+
- { tag: id, type: data, dataType: string }
|
|
68
|
+
- { tag: label, type: data, dataType: string }
|
|
69
|
+
- { tag: localStartDate, type: data, dataType: string }
|
|
70
|
+
- { tag: localEndDate, type: data, dataType: string }
|
|
71
|
+
- { tag: scheduleId, type: data, dataType: string }
|
|
72
|
+
- { tag: eventId, type: data, dataType: string }
|
|
73
|
+
- { tag: slotButtons, type: interactive, elementType: HTMLButtonElement, description: Select a time slot }
|
|
74
|
+
|
|
75
|
+
- tag: slotsLoading
|
|
76
|
+
type: variant
|
|
77
|
+
dataType: boolean
|
|
78
|
+
phase: fast+interactive
|
|
79
|
+
|
|
80
|
+
- tag: slotsMessage
|
|
81
|
+
type: data
|
|
82
|
+
dataType: string
|
|
83
|
+
phase: fast+interactive
|
|
84
|
+
|
|
85
|
+
- tag: formFields
|
|
86
|
+
type: sub-contract
|
|
87
|
+
repeated: true
|
|
88
|
+
trackBy: target
|
|
89
|
+
phase: fast+interactive
|
|
90
|
+
tags:
|
|
91
|
+
- { tag: target, type: data, dataType: string }
|
|
92
|
+
- { tag: label, type: data, dataType: string }
|
|
93
|
+
- { tag: type, type: data, dataType: string }
|
|
94
|
+
- { tag: required, type: data, dataType: boolean }
|
|
95
|
+
- { tag: formInputs, type: interactive, elementType: HTMLInputElement, description: Participant form field }
|
|
96
|
+
|
|
97
|
+
- tag: formLoading
|
|
98
|
+
type: variant
|
|
99
|
+
dataType: boolean
|
|
100
|
+
phase: fast+interactive
|
|
101
|
+
|
|
102
|
+
- tag: isBooking
|
|
103
|
+
type: variant
|
|
104
|
+
dataType: boolean
|
|
105
|
+
phase: fast+interactive
|
|
106
|
+
|
|
107
|
+
- tag: bookingStatus
|
|
108
|
+
type: data
|
|
109
|
+
dataType: string
|
|
110
|
+
phase: fast+interactive
|
|
111
|
+
|
|
112
|
+
- tag: bookingError
|
|
113
|
+
type: data
|
|
114
|
+
dataType: string
|
|
115
|
+
phase: fast+interactive
|
|
116
|
+
|
|
117
|
+
- tag: bookButton
|
|
118
|
+
type: interactive
|
|
119
|
+
elementType: HTMLButtonElement
|
|
120
|
+
description: Confirm booking
|
|
121
|
+
|
|
122
|
+
- tag: backButton
|
|
123
|
+
type: interactive
|
|
124
|
+
elementType: HTMLButtonElement
|
|
125
|
+
description: Back to service list
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import {HTMLElementCollectionProxy, HTMLElementProxy, JayContract} from "@jay-framework/runtime";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export interface ServiceOfBookingFlowViewState {
|
|
5
|
+
id: string,
|
|
6
|
+
name: string,
|
|
7
|
+
description: string,
|
|
8
|
+
type: string,
|
|
9
|
+
durationLabel: string,
|
|
10
|
+
priceLabel: string,
|
|
11
|
+
formId: string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface SlotOfBookingFlowViewState {
|
|
15
|
+
id: string,
|
|
16
|
+
label: string,
|
|
17
|
+
localStartDate: string,
|
|
18
|
+
localEndDate: string,
|
|
19
|
+
scheduleId: string,
|
|
20
|
+
eventId: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface FormFieldOfBookingFlowViewState {
|
|
24
|
+
target: string,
|
|
25
|
+
label: string,
|
|
26
|
+
type: string,
|
|
27
|
+
required: boolean
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface BookingFlowViewState {
|
|
31
|
+
services: Array<ServiceOfBookingFlowViewState>,
|
|
32
|
+
servicesLoading: boolean,
|
|
33
|
+
showNoServices: boolean,
|
|
34
|
+
hasSlots: boolean,
|
|
35
|
+
servicesError: string,
|
|
36
|
+
showServices: boolean,
|
|
37
|
+
showSlots: boolean,
|
|
38
|
+
showForm: boolean,
|
|
39
|
+
selectedServiceName: string,
|
|
40
|
+
slots: Array<SlotOfBookingFlowViewState>,
|
|
41
|
+
slotsLoading: boolean,
|
|
42
|
+
slotsMessage: string,
|
|
43
|
+
formFields: Array<FormFieldOfBookingFlowViewState>,
|
|
44
|
+
formLoading: boolean,
|
|
45
|
+
isBooking: boolean,
|
|
46
|
+
bookingStatus: string,
|
|
47
|
+
bookingError: string
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type BookingFlowSlowViewState = {};
|
|
51
|
+
|
|
52
|
+
export type BookingFlowFastViewState = Pick<BookingFlowViewState, 'servicesLoading' | 'showNoServices' | 'hasSlots' | 'servicesError' | 'showServices' | 'showSlots' | 'showForm' | 'selectedServiceName' | 'slotsLoading' | 'slotsMessage' | 'formLoading' | 'isBooking' | 'bookingStatus' | 'bookingError'> & {
|
|
53
|
+
services: Array<BookingFlowViewState['services'][number]>;
|
|
54
|
+
slots: Array<BookingFlowViewState['slots'][number]>;
|
|
55
|
+
formFields: Array<BookingFlowViewState['formFields'][number]>;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export type BookingFlowInteractiveViewState = Pick<BookingFlowViewState, 'servicesLoading' | 'showNoServices' | 'hasSlots' | 'servicesError' | 'showServices' | 'showSlots' | 'showForm' | 'selectedServiceName' | 'slotsLoading' | 'slotsMessage' | 'formLoading' | 'isBooking' | 'bookingStatus' | 'bookingError'> & {
|
|
59
|
+
services: Array<BookingFlowViewState['services'][number]>;
|
|
60
|
+
slots: Array<BookingFlowViewState['slots'][number]>;
|
|
61
|
+
formFields: Array<BookingFlowViewState['formFields'][number]>;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
export interface BookingFlowRefs {
|
|
66
|
+
bookButton: HTMLElementProxy<BookingFlowViewState, HTMLButtonElement>,
|
|
67
|
+
backButton: HTMLElementProxy<BookingFlowViewState, HTMLButtonElement>,
|
|
68
|
+
services: {
|
|
69
|
+
serviceButtons: HTMLElementCollectionProxy<ServiceOfBookingFlowViewState, HTMLButtonElement>
|
|
70
|
+
},
|
|
71
|
+
slots: {
|
|
72
|
+
slotButtons: HTMLElementCollectionProxy<SlotOfBookingFlowViewState, HTMLButtonElement>
|
|
73
|
+
},
|
|
74
|
+
formFields: {
|
|
75
|
+
formInputs: HTMLElementCollectionProxy<FormFieldOfBookingFlowViewState, HTMLInputElement>
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
export interface BookingFlowRepeatedRefs {
|
|
81
|
+
bookButton: HTMLElementCollectionProxy<BookingFlowViewState, HTMLButtonElement>,
|
|
82
|
+
backButton: HTMLElementCollectionProxy<BookingFlowViewState, HTMLButtonElement>,
|
|
83
|
+
services: {
|
|
84
|
+
serviceButtons: HTMLElementCollectionProxy<ServiceOfBookingFlowViewState, HTMLButtonElement>
|
|
85
|
+
},
|
|
86
|
+
slots: {
|
|
87
|
+
slotButtons: HTMLElementCollectionProxy<SlotOfBookingFlowViewState, HTMLButtonElement>
|
|
88
|
+
},
|
|
89
|
+
formFields: {
|
|
90
|
+
formInputs: HTMLElementCollectionProxy<FormFieldOfBookingFlowViewState, HTMLInputElement>
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type BookingFlowContract = JayContract<BookingFlowViewState, BookingFlowRefs, BookingFlowSlowViewState, BookingFlowFastViewState, BookingFlowInteractiveViewState>
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import * as _jay_framework_fullstack_component from '@jay-framework/fullstack-component';
|
|
2
|
+
import { Signals } from '@jay-framework/fullstack-component';
|
|
3
|
+
import * as _jay_framework_component from '@jay-framework/component';
|
|
4
|
+
import { HTMLElementProxy, HTMLElementCollectionProxy } from '@jay-framework/runtime';
|
|
5
|
+
|
|
6
|
+
declare const init: _jay_framework_fullstack_component.JayInit<{}>;
|
|
7
|
+
|
|
8
|
+
interface ServiceOfBookingFlowViewState {
|
|
9
|
+
id: string,
|
|
10
|
+
name: string,
|
|
11
|
+
description: string,
|
|
12
|
+
type: string,
|
|
13
|
+
durationLabel: string,
|
|
14
|
+
priceLabel: string,
|
|
15
|
+
formId: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
interface SlotOfBookingFlowViewState {
|
|
19
|
+
id: string,
|
|
20
|
+
label: string,
|
|
21
|
+
localStartDate: string,
|
|
22
|
+
localEndDate: string,
|
|
23
|
+
scheduleId: string,
|
|
24
|
+
eventId: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface FormFieldOfBookingFlowViewState {
|
|
28
|
+
target: string,
|
|
29
|
+
label: string,
|
|
30
|
+
type: string,
|
|
31
|
+
required: boolean
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface BookingFlowViewState {
|
|
35
|
+
services: Array<ServiceOfBookingFlowViewState>,
|
|
36
|
+
servicesLoading: boolean,
|
|
37
|
+
showNoServices: boolean,
|
|
38
|
+
hasSlots: boolean,
|
|
39
|
+
servicesError: string,
|
|
40
|
+
showServices: boolean,
|
|
41
|
+
showSlots: boolean,
|
|
42
|
+
showForm: boolean,
|
|
43
|
+
selectedServiceName: string,
|
|
44
|
+
slots: Array<SlotOfBookingFlowViewState>,
|
|
45
|
+
slotsLoading: boolean,
|
|
46
|
+
slotsMessage: string,
|
|
47
|
+
formFields: Array<FormFieldOfBookingFlowViewState>,
|
|
48
|
+
formLoading: boolean,
|
|
49
|
+
isBooking: boolean,
|
|
50
|
+
bookingStatus: string,
|
|
51
|
+
bookingError: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
type BookingFlowSlowViewState = {};
|
|
55
|
+
|
|
56
|
+
type BookingFlowFastViewState = Pick<BookingFlowViewState, 'servicesLoading' | 'showNoServices' | 'hasSlots' | 'servicesError' | 'showServices' | 'showSlots' | 'showForm' | 'selectedServiceName' | 'slotsLoading' | 'slotsMessage' | 'formLoading' | 'isBooking' | 'bookingStatus' | 'bookingError'> & {
|
|
57
|
+
services: Array<BookingFlowViewState['services'][number]>;
|
|
58
|
+
slots: Array<BookingFlowViewState['slots'][number]>;
|
|
59
|
+
formFields: Array<BookingFlowViewState['formFields'][number]>;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
type BookingFlowInteractiveViewState = Pick<BookingFlowViewState, 'servicesLoading' | 'showNoServices' | 'hasSlots' | 'servicesError' | 'showServices' | 'showSlots' | 'showForm' | 'selectedServiceName' | 'slotsLoading' | 'slotsMessage' | 'formLoading' | 'isBooking' | 'bookingStatus' | 'bookingError'> & {
|
|
63
|
+
services: Array<BookingFlowViewState['services'][number]>;
|
|
64
|
+
slots: Array<BookingFlowViewState['slots'][number]>;
|
|
65
|
+
formFields: Array<BookingFlowViewState['formFields'][number]>;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
interface BookingFlowRefs {
|
|
70
|
+
bookButton: HTMLElementProxy<BookingFlowViewState, HTMLButtonElement>,
|
|
71
|
+
backButton: HTMLElementProxy<BookingFlowViewState, HTMLButtonElement>,
|
|
72
|
+
services: {
|
|
73
|
+
serviceButtons: HTMLElementCollectionProxy<ServiceOfBookingFlowViewState, HTMLButtonElement>
|
|
74
|
+
},
|
|
75
|
+
slots: {
|
|
76
|
+
slotButtons: HTMLElementCollectionProxy<SlotOfBookingFlowViewState, HTMLButtonElement>
|
|
77
|
+
},
|
|
78
|
+
formFields: {
|
|
79
|
+
formInputs: HTMLElementCollectionProxy<FormFieldOfBookingFlowViewState, HTMLInputElement>
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type BookingServiceType = 'APPOINTMENT' | 'CLASS';
|
|
84
|
+
interface BookingServiceView {
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
type: BookingServiceType;
|
|
88
|
+
description: string;
|
|
89
|
+
priceLabel: string;
|
|
90
|
+
durationLabel: string;
|
|
91
|
+
formId: string;
|
|
92
|
+
}
|
|
93
|
+
interface BookingSlotView {
|
|
94
|
+
id: string;
|
|
95
|
+
localStartDate: string;
|
|
96
|
+
localEndDate: string;
|
|
97
|
+
label: string;
|
|
98
|
+
scheduleId?: string;
|
|
99
|
+
eventId?: string;
|
|
100
|
+
serviceType: BookingServiceType;
|
|
101
|
+
}
|
|
102
|
+
interface BookingFormFieldView {
|
|
103
|
+
target: string;
|
|
104
|
+
label: string;
|
|
105
|
+
type: 'STRING' | 'EMAIL' | 'PHONE' | 'NUMBER' | 'URL';
|
|
106
|
+
required: boolean;
|
|
107
|
+
}
|
|
108
|
+
type CreateBookingOutcome = {
|
|
109
|
+
outcome: 'confirmed';
|
|
110
|
+
} | {
|
|
111
|
+
outcome: 'redirect';
|
|
112
|
+
redirectUrl: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
interface WixBookingsService {
|
|
116
|
+
listServices(): Promise<BookingServiceView[]>;
|
|
117
|
+
listSlots(input: {
|
|
118
|
+
serviceId: string;
|
|
119
|
+
serviceType: BookingServiceType;
|
|
120
|
+
timezone?: string;
|
|
121
|
+
windowDays?: number;
|
|
122
|
+
}): Promise<BookingSlotView[]>;
|
|
123
|
+
createBooking(input: {
|
|
124
|
+
serviceId: string;
|
|
125
|
+
serviceType: BookingServiceType;
|
|
126
|
+
slot: {
|
|
127
|
+
localStartDate: string;
|
|
128
|
+
localEndDate: string;
|
|
129
|
+
scheduleId?: string;
|
|
130
|
+
eventId?: string;
|
|
131
|
+
};
|
|
132
|
+
formValues: Record<string, string>;
|
|
133
|
+
timezone: string;
|
|
134
|
+
siteOrigin: string;
|
|
135
|
+
paymentPreference?: 'ONLINE' | 'OFFLINE';
|
|
136
|
+
}): Promise<CreateBookingOutcome>;
|
|
137
|
+
}
|
|
138
|
+
declare const WIX_BOOKINGS_SERVICE: _jay_framework_fullstack_component.ServiceMarker<WixBookingsService>;
|
|
139
|
+
|
|
140
|
+
interface BookingFlowCarryForward {
|
|
141
|
+
services: BookingServiceView[];
|
|
142
|
+
servicesError?: string;
|
|
143
|
+
}
|
|
144
|
+
declare const bookingFlow: _jay_framework_fullstack_component.JayStackComponentDefinition<BookingFlowRefs, BookingFlowSlowViewState, BookingFlowFastViewState, BookingFlowInteractiveViewState, [BookingFlowCarryForward, WixBookingsService], [Signals<BookingFlowFastViewState>, BookingFlowCarryForward], object, {}, _jay_framework_component.JayComponentCore<object, BookingFlowInteractiveViewState>>;
|
|
145
|
+
|
|
146
|
+
declare const listServices: _jay_framework_fullstack_component.JayAction<Record<string, never>, {
|
|
147
|
+
services: BookingServiceView[];
|
|
148
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<Record<string, never>, {
|
|
149
|
+
services: BookingServiceView[];
|
|
150
|
+
}, [WixBookingsService]>;
|
|
151
|
+
declare const listSlots: _jay_framework_fullstack_component.JayAction<{
|
|
152
|
+
serviceId: string;
|
|
153
|
+
serviceType: "APPOINTMENT" | "CLASS";
|
|
154
|
+
timezone?: string;
|
|
155
|
+
windowDays?: number;
|
|
156
|
+
}, {
|
|
157
|
+
slots: BookingSlotView[];
|
|
158
|
+
}> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
159
|
+
serviceId: string;
|
|
160
|
+
serviceType: "APPOINTMENT" | "CLASS";
|
|
161
|
+
timezone?: string;
|
|
162
|
+
windowDays?: number;
|
|
163
|
+
}, {
|
|
164
|
+
slots: BookingSlotView[];
|
|
165
|
+
}, [WixBookingsService]>;
|
|
166
|
+
declare const createBooking: _jay_framework_fullstack_component.JayAction<{
|
|
167
|
+
serviceId: string;
|
|
168
|
+
serviceType: "APPOINTMENT" | "CLASS";
|
|
169
|
+
slot: {
|
|
170
|
+
localStartDate: string;
|
|
171
|
+
localEndDate: string;
|
|
172
|
+
scheduleId?: string;
|
|
173
|
+
eventId?: string;
|
|
174
|
+
};
|
|
175
|
+
formValues: Record<string, string>;
|
|
176
|
+
timezone: string;
|
|
177
|
+
siteOrigin: string;
|
|
178
|
+
paymentPreference?: "ONLINE" | "OFFLINE";
|
|
179
|
+
}, CreateBookingOutcome> & _jay_framework_fullstack_component.JayActionDefinition<{
|
|
180
|
+
serviceId: string;
|
|
181
|
+
serviceType: "APPOINTMENT" | "CLASS";
|
|
182
|
+
slot: {
|
|
183
|
+
localStartDate: string;
|
|
184
|
+
localEndDate: string;
|
|
185
|
+
scheduleId?: string;
|
|
186
|
+
eventId?: string;
|
|
187
|
+
};
|
|
188
|
+
formValues: Record<string, string>;
|
|
189
|
+
timezone: string;
|
|
190
|
+
siteOrigin: string;
|
|
191
|
+
paymentPreference?: "ONLINE" | "OFFLINE";
|
|
192
|
+
}, CreateBookingOutcome, [WixBookingsService]>;
|
|
193
|
+
|
|
194
|
+
export { type BookingServiceView as B, type CreateBookingOutcome as C, type WixBookingsService as W, listSlots as a, bookingFlow as b, createBooking as c, WIX_BOOKINGS_SERVICE as d, type BookingSlotView as e, type BookingFormFieldView as f, init as i, listServices as l };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { f as BookingFormFieldView, B as BookingServiceView, e as BookingSlotView, C as CreateBookingOutcome, b as bookingFlow, c as createBooking, i as init, l as listServices, a as listSlots } from './index.client-CBlxQDjy.js';
|
|
2
|
+
import '@jay-framework/fullstack-component';
|
|
3
|
+
import '@jay-framework/component';
|
|
4
|
+
import '@jay-framework/runtime';
|