@venulog/phasing-engine-schemas 0.4.3 → 0.5.0-alpha.0
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/enums/index.d.ts +0 -1
- package/dist/enums/index.js +0 -1
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1 -3
- package/dist/parkingArea.d.ts +69 -0
- package/dist/parkingArea.js +153 -0
- package/dist/parkingBooking.d.ts +618 -0
- package/dist/parkingBooking.js +597 -0
- package/package.json +75 -79
- package/dist/enums/phaseSlotScheduleType.d.ts +0 -4
- package/dist/enums/phaseSlotScheduleType.js +0 -5
- package/dist/phaseBooking.d.ts +0 -1346
- package/dist/phaseBooking.js +0 -1369
- package/dist/phaseSlot.d.ts +0 -139
- package/dist/phaseSlot.js +0 -276
package/dist/phaseBooking.d.ts
DELETED
|
@@ -1,1346 +0,0 @@
|
|
|
1
|
-
import { BookingStatus } from './enums/bookingStatus.js';
|
|
2
|
-
import { z } from './zod.js';
|
|
3
|
-
import { PhaseSlotScheduleType } from './enums/phaseSlotScheduleType.js';
|
|
4
|
-
import { ParkingAreaScheduleType } from './enums/parkingAreaScheduleType.js';
|
|
5
|
-
export declare const geometrySchema: z.ZodNullable<z.ZodObject<{
|
|
6
|
-
type: z.ZodEnum<{
|
|
7
|
-
Polygon: "Polygon";
|
|
8
|
-
MultiPolygon: "MultiPolygon";
|
|
9
|
-
Point: "Point";
|
|
10
|
-
LineString: "LineString";
|
|
11
|
-
MultiLineString: "MultiLineString";
|
|
12
|
-
MultiPoint: "MultiPoint";
|
|
13
|
-
}>;
|
|
14
|
-
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
15
|
-
crs: z.ZodOptional<z.ZodObject<{
|
|
16
|
-
type: z.ZodLiteral<"name">;
|
|
17
|
-
properties: z.ZodObject<{
|
|
18
|
-
name: z.ZodString;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
}, z.core.$strip>>;
|
|
21
|
-
}, z.core.$strip>>;
|
|
22
|
-
export declare const getEventBookingsQuerySchema: z.ZodObject<{
|
|
23
|
-
event_code: z.ZodString;
|
|
24
|
-
seller_id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
25
|
-
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
26
|
-
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
27
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
-
column: z.ZodString;
|
|
29
|
-
direction: z.ZodEnum<{
|
|
30
|
-
asc: "asc";
|
|
31
|
-
desc: "desc";
|
|
32
|
-
}>;
|
|
33
|
-
}, z.core.$strip>>>;
|
|
34
|
-
}, z.core.$strip>;
|
|
35
|
-
export declare const closeEventParamsSchema: z.ZodObject<{
|
|
36
|
-
eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
37
|
-
}, z.core.$strip>;
|
|
38
|
-
export declare const closeEventBodySchema: z.ZodObject<{
|
|
39
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$strip>;
|
|
41
|
-
export declare const vehicleTypeSchema: z.ZodObject<{
|
|
42
|
-
id: z.ZodNumber;
|
|
43
|
-
name: z.ZodString;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
|
-
export declare const phaseSlotScheduleSchema: z.ZodObject<{
|
|
46
|
-
id: z.ZodNumber;
|
|
47
|
-
date: z.ZodString;
|
|
48
|
-
start_time: z.ZodString;
|
|
49
|
-
end_time: z.ZodString;
|
|
50
|
-
duration: z.ZodNumber;
|
|
51
|
-
phase_slot_id: z.ZodNumber;
|
|
52
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
53
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
54
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
55
|
-
}>;
|
|
56
|
-
created_at: z.ZodString;
|
|
57
|
-
updated_at: z.ZodString;
|
|
58
|
-
created_by: z.ZodNullable<z.ZodUUID>;
|
|
59
|
-
updated_by: z.ZodNullable<z.ZodUUID>;
|
|
60
|
-
}, z.core.$strip>;
|
|
61
|
-
export declare const companySchema: z.ZodObject<{
|
|
62
|
-
id: z.ZodNumber;
|
|
63
|
-
company_name: z.ZodString;
|
|
64
|
-
vat_number: z.ZodNullable<z.ZodString>;
|
|
65
|
-
siret_code: z.ZodNullable<z.ZodString>;
|
|
66
|
-
tva_intracom: z.ZodNullable<z.ZodString>;
|
|
67
|
-
type: z.ZodEnum<{
|
|
68
|
-
E: "E";
|
|
69
|
-
S: "S";
|
|
70
|
-
}>;
|
|
71
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
72
|
-
company_street: z.ZodNullable<z.ZodString>;
|
|
73
|
-
company_city: z.ZodNullable<z.ZodString>;
|
|
74
|
-
company_postal_code: z.ZodNullable<z.ZodString>;
|
|
75
|
-
company_country: z.ZodNullable<z.ZodString>;
|
|
76
|
-
company_address: z.ZodNullable<z.ZodString>;
|
|
77
|
-
contact_first_name: z.ZodNullable<z.ZodString>;
|
|
78
|
-
contact_last_name: z.ZodNullable<z.ZodString>;
|
|
79
|
-
contact_email: z.ZodNullable<z.ZodString>;
|
|
80
|
-
contact_phone: z.ZodNullable<z.ZodString>;
|
|
81
|
-
is_active: z.ZodBoolean;
|
|
82
|
-
created_at: z.ZodString;
|
|
83
|
-
updated_at: z.ZodString;
|
|
84
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
85
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
86
|
-
}, z.core.$strip>;
|
|
87
|
-
export declare const phaseBookingSchema: z.ZodObject<{
|
|
88
|
-
id: z.ZodNumber;
|
|
89
|
-
phase_slot_schedule_id: z.ZodNumber;
|
|
90
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
91
|
-
is_active: z.ZodBoolean;
|
|
92
|
-
created_at: z.ZodString;
|
|
93
|
-
updated_at: z.ZodString;
|
|
94
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
95
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
96
|
-
booking_date: z.ZodNullable<z.ZodString>;
|
|
97
|
-
start_time: z.ZodNullable<z.ZodString>;
|
|
98
|
-
end_time: z.ZodNullable<z.ZodString>;
|
|
99
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
100
|
-
company: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
101
|
-
vehicle: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
102
|
-
phase_slot_schedule: z.ZodOptional<z.ZodObject<{
|
|
103
|
-
id: z.ZodNumber;
|
|
104
|
-
date: z.ZodString;
|
|
105
|
-
start_time: z.ZodString;
|
|
106
|
-
end_time: z.ZodString;
|
|
107
|
-
duration: z.ZodNumber;
|
|
108
|
-
phase_slot_id: z.ZodNumber;
|
|
109
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
110
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
111
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
112
|
-
}>;
|
|
113
|
-
created_at: z.ZodString;
|
|
114
|
-
updated_at: z.ZodString;
|
|
115
|
-
created_by: z.ZodNullable<z.ZodUUID>;
|
|
116
|
-
updated_by: z.ZodNullable<z.ZodUUID>;
|
|
117
|
-
}, z.core.$strip>>;
|
|
118
|
-
}, z.core.$strip>;
|
|
119
|
-
export declare const companyDetailsSchema: z.ZodObject<{
|
|
120
|
-
hall: z.ZodString;
|
|
121
|
-
stand_number: z.ZodString;
|
|
122
|
-
company_name: z.ZodString;
|
|
123
|
-
business: z.ZodString;
|
|
124
|
-
departure_city: z.ZodString;
|
|
125
|
-
contact_name: z.ZodString;
|
|
126
|
-
email: z.ZodEmail;
|
|
127
|
-
phone: z.ZodString;
|
|
128
|
-
driver_name: z.ZodString;
|
|
129
|
-
driver_phone: z.ZodString;
|
|
130
|
-
transport_company: z.ZodString;
|
|
131
|
-
}, z.core.$strip>;
|
|
132
|
-
export declare const vehicleDetailsSchema: z.ZodObject<{
|
|
133
|
-
vehicle_type: z.ZodString;
|
|
134
|
-
unloading_method: z.ZodString;
|
|
135
|
-
license_plate: z.ZodString;
|
|
136
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
137
|
-
}, z.core.$strip>;
|
|
138
|
-
export declare const createBookingBodySchema: z.ZodObject<{
|
|
139
|
-
event_id: z.ZodNumber;
|
|
140
|
-
request_type: z.ZodDefault<z.ZodEnum<{
|
|
141
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
142
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
143
|
-
}>>;
|
|
144
|
-
selected_date: z.ZodString;
|
|
145
|
-
selected_time: z.ZodString;
|
|
146
|
-
company_role: z.ZodString;
|
|
147
|
-
company: z.ZodObject<{
|
|
148
|
-
hall: z.ZodString;
|
|
149
|
-
stand_number: z.ZodString;
|
|
150
|
-
company_name: z.ZodString;
|
|
151
|
-
business: z.ZodString;
|
|
152
|
-
departure_city: z.ZodString;
|
|
153
|
-
contact_name: z.ZodString;
|
|
154
|
-
email: z.ZodEmail;
|
|
155
|
-
phone: z.ZodString;
|
|
156
|
-
driver_name: z.ZodString;
|
|
157
|
-
driver_phone: z.ZodString;
|
|
158
|
-
transport_company: z.ZodString;
|
|
159
|
-
}, z.core.$strip>;
|
|
160
|
-
vehicle: z.ZodObject<{
|
|
161
|
-
vehicle_type: z.ZodString;
|
|
162
|
-
unloading_method: z.ZodString;
|
|
163
|
-
license_plate: z.ZodString;
|
|
164
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
165
|
-
}, z.core.$strip>;
|
|
166
|
-
}, z.core.$strip>;
|
|
167
|
-
export declare const createBookingDataSchema: z.ZodObject<{
|
|
168
|
-
booking_id: z.ZodNumber;
|
|
169
|
-
phase_slot_schedule_id: z.ZodNumber;
|
|
170
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
171
|
-
booking_date: z.ZodString;
|
|
172
|
-
start_time: z.ZodString;
|
|
173
|
-
end_time: z.ZodString;
|
|
174
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
175
|
-
company: z.ZodObject<{
|
|
176
|
-
hall: z.ZodString;
|
|
177
|
-
stand_number: z.ZodString;
|
|
178
|
-
company_name: z.ZodString;
|
|
179
|
-
business: z.ZodString;
|
|
180
|
-
departure_city: z.ZodString;
|
|
181
|
-
contact_name: z.ZodString;
|
|
182
|
-
email: z.ZodEmail;
|
|
183
|
-
phone: z.ZodString;
|
|
184
|
-
driver_name: z.ZodString;
|
|
185
|
-
driver_phone: z.ZodString;
|
|
186
|
-
transport_company: z.ZodString;
|
|
187
|
-
}, z.core.$strip>;
|
|
188
|
-
vehicle: z.ZodObject<{
|
|
189
|
-
vehicle_type: z.ZodString;
|
|
190
|
-
unloading_method: z.ZodString;
|
|
191
|
-
license_plate: z.ZodString;
|
|
192
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
193
|
-
}, z.core.$strip>;
|
|
194
|
-
created_at: z.ZodString;
|
|
195
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
196
|
-
}, z.core.$strip>;
|
|
197
|
-
export declare const createBookingResponseSchema: z.ZodObject<{
|
|
198
|
-
success: z.ZodBoolean;
|
|
199
|
-
message: z.ZodString;
|
|
200
|
-
data: z.ZodObject<{
|
|
201
|
-
booking_id: z.ZodNumber;
|
|
202
|
-
phase_slot_schedule_id: z.ZodNumber;
|
|
203
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
204
|
-
booking_date: z.ZodString;
|
|
205
|
-
start_time: z.ZodString;
|
|
206
|
-
end_time: z.ZodString;
|
|
207
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
208
|
-
company: z.ZodObject<{
|
|
209
|
-
hall: z.ZodString;
|
|
210
|
-
stand_number: z.ZodString;
|
|
211
|
-
company_name: z.ZodString;
|
|
212
|
-
business: z.ZodString;
|
|
213
|
-
departure_city: z.ZodString;
|
|
214
|
-
contact_name: z.ZodString;
|
|
215
|
-
email: z.ZodEmail;
|
|
216
|
-
phone: z.ZodString;
|
|
217
|
-
driver_name: z.ZodString;
|
|
218
|
-
driver_phone: z.ZodString;
|
|
219
|
-
transport_company: z.ZodString;
|
|
220
|
-
}, z.core.$strip>;
|
|
221
|
-
vehicle: z.ZodObject<{
|
|
222
|
-
vehicle_type: z.ZodString;
|
|
223
|
-
unloading_method: z.ZodString;
|
|
224
|
-
license_plate: z.ZodString;
|
|
225
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
226
|
-
}, z.core.$strip>;
|
|
227
|
-
created_at: z.ZodString;
|
|
228
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
229
|
-
}, z.core.$strip>;
|
|
230
|
-
}, z.core.$strip>;
|
|
231
|
-
export declare const eventBookingsDataSchema: z.ZodObject<{
|
|
232
|
-
event_id: z.ZodNumber;
|
|
233
|
-
event_code: z.ZodString;
|
|
234
|
-
event_name: z.ZodString;
|
|
235
|
-
bookings: z.ZodArray<z.ZodObject<{
|
|
236
|
-
id: z.ZodNumber;
|
|
237
|
-
phase_slot_schedule_id: z.ZodNumber;
|
|
238
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
239
|
-
is_active: z.ZodBoolean;
|
|
240
|
-
created_at: z.ZodString;
|
|
241
|
-
updated_at: z.ZodString;
|
|
242
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
243
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
244
|
-
booking_date: z.ZodNullable<z.ZodString>;
|
|
245
|
-
start_time: z.ZodNullable<z.ZodString>;
|
|
246
|
-
end_time: z.ZodNullable<z.ZodString>;
|
|
247
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
248
|
-
company: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
249
|
-
vehicle: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
250
|
-
phase_slot_schedule: z.ZodOptional<z.ZodObject<{
|
|
251
|
-
id: z.ZodNumber;
|
|
252
|
-
date: z.ZodString;
|
|
253
|
-
start_time: z.ZodString;
|
|
254
|
-
end_time: z.ZodString;
|
|
255
|
-
duration: z.ZodNumber;
|
|
256
|
-
phase_slot_id: z.ZodNumber;
|
|
257
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
258
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
259
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
260
|
-
}>;
|
|
261
|
-
created_at: z.ZodString;
|
|
262
|
-
updated_at: z.ZodString;
|
|
263
|
-
created_by: z.ZodNullable<z.ZodUUID>;
|
|
264
|
-
updated_by: z.ZodNullable<z.ZodUUID>;
|
|
265
|
-
}, z.core.$strip>>;
|
|
266
|
-
}, z.core.$strip>>;
|
|
267
|
-
total_count: z.ZodNumber;
|
|
268
|
-
}, z.core.$strip>;
|
|
269
|
-
export declare const eventBookingsResponseSchema: z.ZodObject<{
|
|
270
|
-
success: z.ZodBoolean;
|
|
271
|
-
data: z.ZodObject<{
|
|
272
|
-
event_id: z.ZodNumber;
|
|
273
|
-
event_code: z.ZodString;
|
|
274
|
-
event_name: z.ZodString;
|
|
275
|
-
bookings: z.ZodArray<z.ZodObject<{
|
|
276
|
-
id: z.ZodNumber;
|
|
277
|
-
phase_slot_schedule_id: z.ZodNumber;
|
|
278
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
279
|
-
is_active: z.ZodBoolean;
|
|
280
|
-
created_at: z.ZodString;
|
|
281
|
-
updated_at: z.ZodString;
|
|
282
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
283
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
284
|
-
booking_date: z.ZodNullable<z.ZodString>;
|
|
285
|
-
start_time: z.ZodNullable<z.ZodString>;
|
|
286
|
-
end_time: z.ZodNullable<z.ZodString>;
|
|
287
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
288
|
-
company: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
289
|
-
vehicle: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
290
|
-
phase_slot_schedule: z.ZodOptional<z.ZodObject<{
|
|
291
|
-
id: z.ZodNumber;
|
|
292
|
-
date: z.ZodString;
|
|
293
|
-
start_time: z.ZodString;
|
|
294
|
-
end_time: z.ZodString;
|
|
295
|
-
duration: z.ZodNumber;
|
|
296
|
-
phase_slot_id: z.ZodNumber;
|
|
297
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
298
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
299
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
300
|
-
}>;
|
|
301
|
-
created_at: z.ZodString;
|
|
302
|
-
updated_at: z.ZodString;
|
|
303
|
-
created_by: z.ZodNullable<z.ZodUUID>;
|
|
304
|
-
updated_by: z.ZodNullable<z.ZodUUID>;
|
|
305
|
-
}, z.core.$strip>>;
|
|
306
|
-
}, z.core.$strip>>;
|
|
307
|
-
total_count: z.ZodNumber;
|
|
308
|
-
}, z.core.$strip>;
|
|
309
|
-
}, z.core.$strip>;
|
|
310
|
-
export declare const closeEventDataSchema: z.ZodObject<{
|
|
311
|
-
event_id: z.ZodNumber;
|
|
312
|
-
event_code: z.ZodNullable<z.ZodString>;
|
|
313
|
-
event_name: z.ZodString;
|
|
314
|
-
is_active: z.ZodBoolean;
|
|
315
|
-
close_at: z.ZodString;
|
|
316
|
-
close_by: z.ZodNullable<z.ZodString>;
|
|
317
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
318
|
-
}, z.core.$strip>;
|
|
319
|
-
export declare const closeEventResponseSchema: z.ZodObject<{
|
|
320
|
-
success: z.ZodBoolean;
|
|
321
|
-
message: z.ZodString;
|
|
322
|
-
data: z.ZodObject<{
|
|
323
|
-
event_id: z.ZodNumber;
|
|
324
|
-
event_code: z.ZodNullable<z.ZodString>;
|
|
325
|
-
event_name: z.ZodString;
|
|
326
|
-
is_active: z.ZodBoolean;
|
|
327
|
-
close_at: z.ZodString;
|
|
328
|
-
close_by: z.ZodNullable<z.ZodString>;
|
|
329
|
-
reason: z.ZodNullable<z.ZodString>;
|
|
330
|
-
}, z.core.$strip>;
|
|
331
|
-
}, z.core.$strip>;
|
|
332
|
-
export declare const confirmBookingParamsSchema: z.ZodObject<{
|
|
333
|
-
bookingId: z.ZodCoercedNumber<unknown>;
|
|
334
|
-
}, z.core.$strip>;
|
|
335
|
-
export declare const confirmBookingResponseSchema: z.ZodObject<{
|
|
336
|
-
success: z.ZodBoolean;
|
|
337
|
-
message: z.ZodString;
|
|
338
|
-
data: z.ZodObject<{
|
|
339
|
-
booking_id: z.ZodNumber;
|
|
340
|
-
booking_status: z.ZodEnum<typeof BookingStatus>;
|
|
341
|
-
schedule_id: z.ZodNumber;
|
|
342
|
-
confirmed_at: z.ZodString;
|
|
343
|
-
confirmed_by: z.ZodNullable<z.ZodString>;
|
|
344
|
-
}, z.core.$strip>;
|
|
345
|
-
}, z.core.$strip>;
|
|
346
|
-
export declare const confirmAccessDataSchema: z.ZodObject<{
|
|
347
|
-
bookingId: z.ZodCoercedNumber<unknown>;
|
|
348
|
-
}, z.core.$strip>;
|
|
349
|
-
export declare const confirmAccessResponseSchema: z.ZodObject<{
|
|
350
|
-
success: z.ZodBoolean;
|
|
351
|
-
message: z.ZodString;
|
|
352
|
-
data: z.ZodObject<{
|
|
353
|
-
booking_id: z.ZodNumber;
|
|
354
|
-
scanned_at: z.ZodString;
|
|
355
|
-
}, z.core.$strip>;
|
|
356
|
-
}, z.core.$strip>;
|
|
357
|
-
export declare const refuseBookingParamsSchema: z.ZodObject<{
|
|
358
|
-
bookingId: z.ZodCoercedNumber<unknown>;
|
|
359
|
-
}, z.core.$strip>;
|
|
360
|
-
export declare const refuseBookingDataSchema: z.ZodObject<{
|
|
361
|
-
booking_id: z.ZodNumber;
|
|
362
|
-
booking_status: z.ZodEnum<{
|
|
363
|
-
refused: BookingStatus.REFUSED;
|
|
364
|
-
}>;
|
|
365
|
-
schedule_id: z.ZodNumber;
|
|
366
|
-
refused_at: z.ZodString;
|
|
367
|
-
refused_by: z.ZodNullable<z.ZodString>;
|
|
368
|
-
}, z.core.$strip>;
|
|
369
|
-
export declare const refuseBookingResponseSchema: z.ZodObject<{
|
|
370
|
-
success: z.ZodBoolean;
|
|
371
|
-
message: z.ZodString;
|
|
372
|
-
data: z.ZodObject<{
|
|
373
|
-
booking_id: z.ZodNumber;
|
|
374
|
-
booking_status: z.ZodEnum<{
|
|
375
|
-
refused: BookingStatus.REFUSED;
|
|
376
|
-
}>;
|
|
377
|
-
schedule_id: z.ZodNumber;
|
|
378
|
-
refused_at: z.ZodString;
|
|
379
|
-
refused_by: z.ZodNullable<z.ZodString>;
|
|
380
|
-
}, z.core.$strip>;
|
|
381
|
-
}, z.core.$strip>;
|
|
382
|
-
export declare const createPhaseSlotsBodySchema: z.ZodObject<{
|
|
383
|
-
event_id: z.ZodNumber;
|
|
384
|
-
slots: z.ZodArray<z.ZodObject<{
|
|
385
|
-
name: z.ZodString;
|
|
386
|
-
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
387
|
-
type: z.ZodEnum<{
|
|
388
|
-
Polygon: "Polygon";
|
|
389
|
-
MultiPolygon: "MultiPolygon";
|
|
390
|
-
Point: "Point";
|
|
391
|
-
LineString: "LineString";
|
|
392
|
-
MultiLineString: "MultiLineString";
|
|
393
|
-
MultiPoint: "MultiPoint";
|
|
394
|
-
}>;
|
|
395
|
-
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
396
|
-
crs: z.ZodOptional<z.ZodObject<{
|
|
397
|
-
type: z.ZodLiteral<"name">;
|
|
398
|
-
properties: z.ZodObject<{
|
|
399
|
-
name: z.ZodString;
|
|
400
|
-
}, z.core.$strip>;
|
|
401
|
-
}, z.core.$strip>>;
|
|
402
|
-
}, z.core.$strip>>>;
|
|
403
|
-
site_plan_image_url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
404
|
-
surface_area_sqm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
405
|
-
}, z.core.$strip>>;
|
|
406
|
-
}, z.core.$strip>;
|
|
407
|
-
export declare const createPhaseSlotDataSchema: z.ZodObject<{
|
|
408
|
-
slot_id: z.ZodNumber;
|
|
409
|
-
event_id: z.ZodNumber;
|
|
410
|
-
name: z.ZodString;
|
|
411
|
-
geometry: z.ZodNullable<z.ZodObject<{
|
|
412
|
-
type: z.ZodEnum<{
|
|
413
|
-
Polygon: "Polygon";
|
|
414
|
-
MultiPolygon: "MultiPolygon";
|
|
415
|
-
Point: "Point";
|
|
416
|
-
LineString: "LineString";
|
|
417
|
-
MultiLineString: "MultiLineString";
|
|
418
|
-
MultiPoint: "MultiPoint";
|
|
419
|
-
}>;
|
|
420
|
-
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
421
|
-
crs: z.ZodOptional<z.ZodObject<{
|
|
422
|
-
type: z.ZodLiteral<"name">;
|
|
423
|
-
properties: z.ZodObject<{
|
|
424
|
-
name: z.ZodString;
|
|
425
|
-
}, z.core.$strip>;
|
|
426
|
-
}, z.core.$strip>>;
|
|
427
|
-
}, z.core.$strip>>;
|
|
428
|
-
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
429
|
-
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
430
|
-
is_active: z.ZodBoolean;
|
|
431
|
-
created_at: z.ZodString;
|
|
432
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
433
|
-
}, z.core.$strip>;
|
|
434
|
-
export declare const createPhaseSlotsDataSchema: z.ZodObject<{
|
|
435
|
-
event_id: z.ZodNumber;
|
|
436
|
-
total_created: z.ZodNumber;
|
|
437
|
-
created_slots: z.ZodArray<z.ZodObject<{
|
|
438
|
-
slot_id: z.ZodNumber;
|
|
439
|
-
event_id: z.ZodNumber;
|
|
440
|
-
name: z.ZodString;
|
|
441
|
-
geometry: z.ZodNullable<z.ZodObject<{
|
|
442
|
-
type: z.ZodEnum<{
|
|
443
|
-
Polygon: "Polygon";
|
|
444
|
-
MultiPolygon: "MultiPolygon";
|
|
445
|
-
Point: "Point";
|
|
446
|
-
LineString: "LineString";
|
|
447
|
-
MultiLineString: "MultiLineString";
|
|
448
|
-
MultiPoint: "MultiPoint";
|
|
449
|
-
}>;
|
|
450
|
-
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
451
|
-
crs: z.ZodOptional<z.ZodObject<{
|
|
452
|
-
type: z.ZodLiteral<"name">;
|
|
453
|
-
properties: z.ZodObject<{
|
|
454
|
-
name: z.ZodString;
|
|
455
|
-
}, z.core.$strip>;
|
|
456
|
-
}, z.core.$strip>>;
|
|
457
|
-
}, z.core.$strip>>;
|
|
458
|
-
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
459
|
-
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
460
|
-
is_active: z.ZodBoolean;
|
|
461
|
-
created_at: z.ZodString;
|
|
462
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
463
|
-
}, z.core.$strip>>;
|
|
464
|
-
failed_slots: z.ZodArray<z.ZodObject<{
|
|
465
|
-
index: z.ZodNumber;
|
|
466
|
-
error: z.ZodString;
|
|
467
|
-
}, z.core.$strip>>;
|
|
468
|
-
}, z.core.$strip>;
|
|
469
|
-
export declare const createPhaseSlotsResponseSchema: z.ZodObject<{
|
|
470
|
-
success: z.ZodBoolean;
|
|
471
|
-
message: z.ZodString;
|
|
472
|
-
data: z.ZodObject<{
|
|
473
|
-
event_id: z.ZodNumber;
|
|
474
|
-
total_created: z.ZodNumber;
|
|
475
|
-
created_slots: z.ZodArray<z.ZodObject<{
|
|
476
|
-
slot_id: z.ZodNumber;
|
|
477
|
-
event_id: z.ZodNumber;
|
|
478
|
-
name: z.ZodString;
|
|
479
|
-
geometry: z.ZodNullable<z.ZodObject<{
|
|
480
|
-
type: z.ZodEnum<{
|
|
481
|
-
Polygon: "Polygon";
|
|
482
|
-
MultiPolygon: "MultiPolygon";
|
|
483
|
-
Point: "Point";
|
|
484
|
-
LineString: "LineString";
|
|
485
|
-
MultiLineString: "MultiLineString";
|
|
486
|
-
MultiPoint: "MultiPoint";
|
|
487
|
-
}>;
|
|
488
|
-
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
489
|
-
crs: z.ZodOptional<z.ZodObject<{
|
|
490
|
-
type: z.ZodLiteral<"name">;
|
|
491
|
-
properties: z.ZodObject<{
|
|
492
|
-
name: z.ZodString;
|
|
493
|
-
}, z.core.$strip>;
|
|
494
|
-
}, z.core.$strip>>;
|
|
495
|
-
}, z.core.$strip>>;
|
|
496
|
-
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
497
|
-
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
498
|
-
is_active: z.ZodBoolean;
|
|
499
|
-
created_at: z.ZodString;
|
|
500
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
501
|
-
}, z.core.$strip>>;
|
|
502
|
-
failed_slots: z.ZodArray<z.ZodObject<{
|
|
503
|
-
index: z.ZodNumber;
|
|
504
|
-
error: z.ZodString;
|
|
505
|
-
}, z.core.$strip>>;
|
|
506
|
-
}, z.core.$strip>;
|
|
507
|
-
}, z.core.$strip>;
|
|
508
|
-
export declare const updatePhaseSlotParamsSchema: z.ZodObject<{
|
|
509
|
-
slotId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
510
|
-
}, z.core.$strip>;
|
|
511
|
-
export declare const updatePhaseSlotBodySchema: z.ZodObject<{
|
|
512
|
-
name: z.ZodOptional<z.ZodString>;
|
|
513
|
-
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
514
|
-
type: z.ZodEnum<{
|
|
515
|
-
Polygon: "Polygon";
|
|
516
|
-
MultiPolygon: "MultiPolygon";
|
|
517
|
-
Point: "Point";
|
|
518
|
-
LineString: "LineString";
|
|
519
|
-
MultiLineString: "MultiLineString";
|
|
520
|
-
MultiPoint: "MultiPoint";
|
|
521
|
-
}>;
|
|
522
|
-
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
523
|
-
crs: z.ZodOptional<z.ZodObject<{
|
|
524
|
-
type: z.ZodLiteral<"name">;
|
|
525
|
-
properties: z.ZodObject<{
|
|
526
|
-
name: z.ZodString;
|
|
527
|
-
}, z.core.$strip>;
|
|
528
|
-
}, z.core.$strip>>;
|
|
529
|
-
}, z.core.$strip>>>;
|
|
530
|
-
site_plan_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
531
|
-
surface_area_sqm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
532
|
-
}, z.core.$strip>;
|
|
533
|
-
export declare const updatePhaseSlotDataSchema: z.ZodObject<{
|
|
534
|
-
slot_id: z.ZodNumber;
|
|
535
|
-
event_id: z.ZodNumber;
|
|
536
|
-
name: z.ZodString;
|
|
537
|
-
geometry: z.ZodNullable<z.ZodObject<{
|
|
538
|
-
type: z.ZodEnum<{
|
|
539
|
-
Polygon: "Polygon";
|
|
540
|
-
MultiPolygon: "MultiPolygon";
|
|
541
|
-
Point: "Point";
|
|
542
|
-
LineString: "LineString";
|
|
543
|
-
MultiLineString: "MultiLineString";
|
|
544
|
-
MultiPoint: "MultiPoint";
|
|
545
|
-
}>;
|
|
546
|
-
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
547
|
-
crs: z.ZodOptional<z.ZodObject<{
|
|
548
|
-
type: z.ZodLiteral<"name">;
|
|
549
|
-
properties: z.ZodObject<{
|
|
550
|
-
name: z.ZodString;
|
|
551
|
-
}, z.core.$strip>;
|
|
552
|
-
}, z.core.$strip>>;
|
|
553
|
-
}, z.core.$strip>>;
|
|
554
|
-
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
555
|
-
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
556
|
-
is_active: z.ZodBoolean;
|
|
557
|
-
updated_at: z.ZodString;
|
|
558
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
559
|
-
}, z.core.$strip>;
|
|
560
|
-
export declare const updatePhaseSlotResponseSchema: z.ZodObject<{
|
|
561
|
-
success: z.ZodBoolean;
|
|
562
|
-
message: z.ZodString;
|
|
563
|
-
data: z.ZodObject<{
|
|
564
|
-
slot_id: z.ZodNumber;
|
|
565
|
-
event_id: z.ZodNumber;
|
|
566
|
-
name: z.ZodString;
|
|
567
|
-
geometry: z.ZodNullable<z.ZodObject<{
|
|
568
|
-
type: z.ZodEnum<{
|
|
569
|
-
Polygon: "Polygon";
|
|
570
|
-
MultiPolygon: "MultiPolygon";
|
|
571
|
-
Point: "Point";
|
|
572
|
-
LineString: "LineString";
|
|
573
|
-
MultiLineString: "MultiLineString";
|
|
574
|
-
MultiPoint: "MultiPoint";
|
|
575
|
-
}>;
|
|
576
|
-
coordinates: z.ZodArray<z.ZodUnknown>;
|
|
577
|
-
crs: z.ZodOptional<z.ZodObject<{
|
|
578
|
-
type: z.ZodLiteral<"name">;
|
|
579
|
-
properties: z.ZodObject<{
|
|
580
|
-
name: z.ZodString;
|
|
581
|
-
}, z.core.$strip>;
|
|
582
|
-
}, z.core.$strip>>;
|
|
583
|
-
}, z.core.$strip>>;
|
|
584
|
-
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
585
|
-
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
586
|
-
is_active: z.ZodBoolean;
|
|
587
|
-
updated_at: z.ZodString;
|
|
588
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
589
|
-
}, z.core.$strip>;
|
|
590
|
-
}, z.core.$strip>;
|
|
591
|
-
export declare const upsertPhaseSlotScheduleItemSchema: z.ZodObject<{
|
|
592
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
593
|
-
phase_slot_id: z.ZodNumber;
|
|
594
|
-
date: z.ZodString;
|
|
595
|
-
start_time: z.ZodDefault<z.ZodString>;
|
|
596
|
-
end_time: z.ZodDefault<z.ZodString>;
|
|
597
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
598
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
599
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
600
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
601
|
-
}>;
|
|
602
|
-
company_roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
603
|
-
}, z.core.$strip>;
|
|
604
|
-
export declare const deletePhaseSlotScheduleItemSchema: z.ZodObject<{
|
|
605
|
-
id: z.ZodNumber;
|
|
606
|
-
}, z.core.$strip>;
|
|
607
|
-
export declare const upsertPhaseSlotSchedulesBodySchema: z.ZodObject<{
|
|
608
|
-
upsert: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
609
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
610
|
-
phase_slot_id: z.ZodNumber;
|
|
611
|
-
date: z.ZodString;
|
|
612
|
-
start_time: z.ZodDefault<z.ZodString>;
|
|
613
|
-
end_time: z.ZodDefault<z.ZodString>;
|
|
614
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
615
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
616
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
617
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
618
|
-
}>;
|
|
619
|
-
company_roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
620
|
-
}, z.core.$strip>>>;
|
|
621
|
-
delete: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
622
|
-
id: z.ZodNumber;
|
|
623
|
-
}, z.core.$strip>>>;
|
|
624
|
-
}, z.core.$strip>;
|
|
625
|
-
export declare const upsertPhaseSlotSchedulesDataSchema: z.ZodObject<{
|
|
626
|
-
total_upserted: z.ZodNumber;
|
|
627
|
-
total_deleted: z.ZodNumber;
|
|
628
|
-
upserted_schedules: z.ZodArray<z.ZodObject<{
|
|
629
|
-
id: z.ZodNumber;
|
|
630
|
-
date: z.ZodString;
|
|
631
|
-
start_time: z.ZodString;
|
|
632
|
-
end_time: z.ZodString;
|
|
633
|
-
duration: z.ZodNumber;
|
|
634
|
-
phase_slot_id: z.ZodNumber;
|
|
635
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
636
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
637
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
638
|
-
}>;
|
|
639
|
-
created_at: z.ZodString;
|
|
640
|
-
updated_at: z.ZodString;
|
|
641
|
-
created_by: z.ZodNullable<z.ZodUUID>;
|
|
642
|
-
updated_by: z.ZodNullable<z.ZodUUID>;
|
|
643
|
-
}, z.core.$strip>>;
|
|
644
|
-
deleted_schedules: z.ZodArray<z.ZodObject<{
|
|
645
|
-
id: z.ZodNumber;
|
|
646
|
-
}, z.core.$strip>>;
|
|
647
|
-
failed_operations: z.ZodArray<z.ZodObject<{
|
|
648
|
-
operation: z.ZodEnum<{
|
|
649
|
-
upsert: "upsert";
|
|
650
|
-
delete: "delete";
|
|
651
|
-
}>;
|
|
652
|
-
error: z.ZodString;
|
|
653
|
-
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
654
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
655
|
-
phase_slot_id: z.ZodNumber;
|
|
656
|
-
date: z.ZodString;
|
|
657
|
-
start_time: z.ZodDefault<z.ZodString>;
|
|
658
|
-
end_time: z.ZodDefault<z.ZodString>;
|
|
659
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
660
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
661
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
662
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
663
|
-
}>;
|
|
664
|
-
company_roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
665
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
666
|
-
id: z.ZodNumber;
|
|
667
|
-
}, z.core.$strip>]>;
|
|
668
|
-
}, z.core.$strip>>;
|
|
669
|
-
}, z.core.$strip>;
|
|
670
|
-
export declare const upsertPhaseSlotSchedulesResponseSchema: z.ZodObject<{
|
|
671
|
-
success: z.ZodBoolean;
|
|
672
|
-
message: z.ZodString;
|
|
673
|
-
data: z.ZodObject<{
|
|
674
|
-
total_upserted: z.ZodNumber;
|
|
675
|
-
total_deleted: z.ZodNumber;
|
|
676
|
-
upserted_schedules: z.ZodArray<z.ZodObject<{
|
|
677
|
-
id: z.ZodNumber;
|
|
678
|
-
date: z.ZodString;
|
|
679
|
-
start_time: z.ZodString;
|
|
680
|
-
end_time: z.ZodString;
|
|
681
|
-
duration: z.ZodNumber;
|
|
682
|
-
phase_slot_id: z.ZodNumber;
|
|
683
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
684
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
685
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
686
|
-
}>;
|
|
687
|
-
created_at: z.ZodString;
|
|
688
|
-
updated_at: z.ZodString;
|
|
689
|
-
created_by: z.ZodNullable<z.ZodUUID>;
|
|
690
|
-
updated_by: z.ZodNullable<z.ZodUUID>;
|
|
691
|
-
}, z.core.$strip>>;
|
|
692
|
-
deleted_schedules: z.ZodArray<z.ZodObject<{
|
|
693
|
-
id: z.ZodNumber;
|
|
694
|
-
}, z.core.$strip>>;
|
|
695
|
-
failed_operations: z.ZodArray<z.ZodObject<{
|
|
696
|
-
operation: z.ZodEnum<{
|
|
697
|
-
upsert: "upsert";
|
|
698
|
-
delete: "delete";
|
|
699
|
-
}>;
|
|
700
|
-
error: z.ZodString;
|
|
701
|
-
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
702
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
703
|
-
phase_slot_id: z.ZodNumber;
|
|
704
|
-
date: z.ZodString;
|
|
705
|
-
start_time: z.ZodDefault<z.ZodString>;
|
|
706
|
-
end_time: z.ZodDefault<z.ZodString>;
|
|
707
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
708
|
-
phase_slot_schedule_type: z.ZodEnum<{
|
|
709
|
-
assembly: PhaseSlotScheduleType.ASSEMBLY;
|
|
710
|
-
dismantling: PhaseSlotScheduleType.DISMANTLING;
|
|
711
|
-
}>;
|
|
712
|
-
company_roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
713
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
714
|
-
id: z.ZodNumber;
|
|
715
|
-
}, z.core.$strip>]>;
|
|
716
|
-
}, z.core.$strip>>;
|
|
717
|
-
}, z.core.$strip>;
|
|
718
|
-
}, z.core.$strip>;
|
|
719
|
-
export type Geometry = z.infer<typeof geometrySchema>;
|
|
720
|
-
export type GetEventBookingsQuery = z.infer<typeof getEventBookingsQuerySchema>;
|
|
721
|
-
export type VehicleType = z.infer<typeof vehicleTypeSchema>;
|
|
722
|
-
export type CloseEventParams = z.infer<typeof closeEventParamsSchema>;
|
|
723
|
-
export type CloseEventBody = z.infer<typeof closeEventBodySchema>;
|
|
724
|
-
export type CloseEventData = z.infer<typeof closeEventDataSchema>;
|
|
725
|
-
export type CloseEventResponse = z.infer<typeof closeEventResponseSchema>;
|
|
726
|
-
export type Company = z.infer<typeof companySchema>;
|
|
727
|
-
export type PhaseBooking = z.infer<typeof phaseBookingSchema>;
|
|
728
|
-
export type CompanyDetails = z.infer<typeof companyDetailsSchema>;
|
|
729
|
-
export type VehicleDetails = z.infer<typeof vehicleDetailsSchema>;
|
|
730
|
-
export type EventBookingsData = z.infer<typeof eventBookingsDataSchema>;
|
|
731
|
-
export type EventBookingsResponse = z.infer<typeof eventBookingsResponseSchema>;
|
|
732
|
-
export type ConfirmBookingParams = z.infer<typeof confirmBookingParamsSchema>;
|
|
733
|
-
export type ConfirmBookingResponse = z.infer<typeof confirmBookingResponseSchema>;
|
|
734
|
-
export type CreateBookingBody = z.infer<typeof createBookingBodySchema>;
|
|
735
|
-
export type CreateBookingData = z.infer<typeof createBookingDataSchema>;
|
|
736
|
-
export type CreateBookingResponse = z.infer<typeof createBookingResponseSchema>;
|
|
737
|
-
export type RefuseBookingParams = z.infer<typeof refuseBookingParamsSchema>;
|
|
738
|
-
export type RefuseBookingData = z.infer<typeof refuseBookingDataSchema>;
|
|
739
|
-
export type RefuseBookingResponse = z.infer<typeof refuseBookingResponseSchema>;
|
|
740
|
-
export type CreatePhaseSlotsBody = z.infer<typeof createPhaseSlotsBodySchema>;
|
|
741
|
-
export type CreatePhaseSlotData = z.infer<typeof createPhaseSlotDataSchema>;
|
|
742
|
-
export type CreatePhaseSlotsData = z.infer<typeof createPhaseSlotsDataSchema>;
|
|
743
|
-
export type CreatePhaseSlotsResponse = z.infer<typeof createPhaseSlotsResponseSchema>;
|
|
744
|
-
export type UpdatePhaseSlotParams = z.infer<typeof updatePhaseSlotParamsSchema>;
|
|
745
|
-
export type UpdatePhaseSlotBody = z.infer<typeof updatePhaseSlotBodySchema>;
|
|
746
|
-
export type UpdatePhaseSlotData = z.infer<typeof updatePhaseSlotDataSchema>;
|
|
747
|
-
export type UpdatePhaseSlotResponse = z.infer<typeof updatePhaseSlotResponseSchema>;
|
|
748
|
-
export type PhaseSlotSchedule = z.infer<typeof phaseSlotScheduleSchema>;
|
|
749
|
-
export type UpsertPhaseSlotScheduleItem = z.infer<typeof upsertPhaseSlotScheduleItemSchema>;
|
|
750
|
-
export type DeletePhaseSlotScheduleItem = z.infer<typeof deletePhaseSlotScheduleItemSchema>;
|
|
751
|
-
export type UpsertPhaseSlotSchedulesBody = z.infer<typeof upsertPhaseSlotSchedulesBodySchema>;
|
|
752
|
-
export type UpsertPhaseSlotSchedulesData = z.infer<typeof upsertPhaseSlotSchedulesDataSchema>;
|
|
753
|
-
export type UpsertPhaseSlotSchedulesResponse = z.infer<typeof upsertPhaseSlotSchedulesResponseSchema>;
|
|
754
|
-
export declare const checkSlotAvailabilityBodySchema: z.ZodObject<{
|
|
755
|
-
schedule_id: z.ZodNumber;
|
|
756
|
-
date: z.ZodString;
|
|
757
|
-
start_time: z.ZodString;
|
|
758
|
-
company_role: z.ZodString;
|
|
759
|
-
}, z.core.$strip>;
|
|
760
|
-
export declare const checkSlotAvailabilityDataSchema: z.ZodObject<{
|
|
761
|
-
schedule_id: z.ZodNumber;
|
|
762
|
-
date: z.ZodString;
|
|
763
|
-
start_time: z.ZodString;
|
|
764
|
-
is_available: z.ZodBoolean;
|
|
765
|
-
max_capacity: z.ZodNumber;
|
|
766
|
-
current_bookings: z.ZodNumber;
|
|
767
|
-
confirmed_bookings: z.ZodNumber;
|
|
768
|
-
available_capacity: z.ZodNumber;
|
|
769
|
-
}, z.core.$strip>;
|
|
770
|
-
export declare const checkSlotAvailabilityResponseSchema: z.ZodObject<{
|
|
771
|
-
success: z.ZodBoolean;
|
|
772
|
-
data: z.ZodObject<{
|
|
773
|
-
schedule_id: z.ZodNumber;
|
|
774
|
-
date: z.ZodString;
|
|
775
|
-
start_time: z.ZodString;
|
|
776
|
-
is_available: z.ZodBoolean;
|
|
777
|
-
max_capacity: z.ZodNumber;
|
|
778
|
-
current_bookings: z.ZodNumber;
|
|
779
|
-
confirmed_bookings: z.ZodNumber;
|
|
780
|
-
available_capacity: z.ZodNumber;
|
|
781
|
-
}, z.core.$strip>;
|
|
782
|
-
}, z.core.$strip>;
|
|
783
|
-
export type CheckSlotAvailabilityBody = z.infer<typeof checkSlotAvailabilityBodySchema>;
|
|
784
|
-
export type CheckSlotAvailabilityData = z.infer<typeof checkSlotAvailabilityDataSchema>;
|
|
785
|
-
export type CheckSlotAvailabilityResponse = z.infer<typeof checkSlotAvailabilityResponseSchema>;
|
|
786
|
-
export declare const getBookingDetailsParamsSchema: z.ZodObject<{
|
|
787
|
-
bookingId: z.ZodCoercedNumber<unknown>;
|
|
788
|
-
}, z.core.$strip>;
|
|
789
|
-
export declare const bookingDetailsDataSchema: z.ZodObject<{
|
|
790
|
-
qr_token: z.ZodNullable<z.ZodString>;
|
|
791
|
-
id: z.ZodNumber;
|
|
792
|
-
booking_id: z.ZodNumber;
|
|
793
|
-
status: z.ZodString;
|
|
794
|
-
booking_date: z.ZodString;
|
|
795
|
-
start_time: z.ZodString;
|
|
796
|
-
end_time: z.ZodString;
|
|
797
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
798
|
-
company: z.ZodObject<{
|
|
799
|
-
hall: z.ZodString;
|
|
800
|
-
stand_number: z.ZodString;
|
|
801
|
-
company_name: z.ZodString;
|
|
802
|
-
business: z.ZodString;
|
|
803
|
-
departure_city: z.ZodString;
|
|
804
|
-
contact_name: z.ZodString;
|
|
805
|
-
email: z.ZodEmail;
|
|
806
|
-
phone: z.ZodString;
|
|
807
|
-
driver_name: z.ZodString;
|
|
808
|
-
driver_phone: z.ZodString;
|
|
809
|
-
transport_company: z.ZodString;
|
|
810
|
-
}, z.core.$strip>;
|
|
811
|
-
vehicle: z.ZodObject<{
|
|
812
|
-
vehicle_type: z.ZodString;
|
|
813
|
-
unloading_method: z.ZodString;
|
|
814
|
-
license_plate: z.ZodString;
|
|
815
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
816
|
-
}, z.core.$strip>;
|
|
817
|
-
event_id: z.ZodNumber;
|
|
818
|
-
event_name: z.ZodString;
|
|
819
|
-
event_code: z.ZodString;
|
|
820
|
-
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
821
|
-
venue_name: z.ZodNullable<z.ZodString>;
|
|
822
|
-
request_type: z.ZodString;
|
|
823
|
-
duration: z.ZodNumber;
|
|
824
|
-
phase_slot_schedule_id: z.ZodNumber;
|
|
825
|
-
banner: z.ZodNullable<z.ZodObject<{
|
|
826
|
-
url: z.ZodURL;
|
|
827
|
-
name: z.ZodOptional<z.ZodString>;
|
|
828
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
829
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
830
|
-
type: z.ZodOptional<z.ZodString>;
|
|
831
|
-
path: z.ZodOptional<z.ZodString>;
|
|
832
|
-
}, z.core.$strip>>;
|
|
833
|
-
created_at: z.ZodString;
|
|
834
|
-
updated_at: z.ZodString;
|
|
835
|
-
}, z.core.$strip>;
|
|
836
|
-
export declare const getBookingDetailsResponseSchema: z.ZodObject<{
|
|
837
|
-
success: z.ZodBoolean;
|
|
838
|
-
data: z.ZodObject<{
|
|
839
|
-
qr_token: z.ZodNullable<z.ZodString>;
|
|
840
|
-
id: z.ZodNumber;
|
|
841
|
-
booking_id: z.ZodNumber;
|
|
842
|
-
status: z.ZodString;
|
|
843
|
-
booking_date: z.ZodString;
|
|
844
|
-
start_time: z.ZodString;
|
|
845
|
-
end_time: z.ZodString;
|
|
846
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
847
|
-
company: z.ZodObject<{
|
|
848
|
-
hall: z.ZodString;
|
|
849
|
-
stand_number: z.ZodString;
|
|
850
|
-
company_name: z.ZodString;
|
|
851
|
-
business: z.ZodString;
|
|
852
|
-
departure_city: z.ZodString;
|
|
853
|
-
contact_name: z.ZodString;
|
|
854
|
-
email: z.ZodEmail;
|
|
855
|
-
phone: z.ZodString;
|
|
856
|
-
driver_name: z.ZodString;
|
|
857
|
-
driver_phone: z.ZodString;
|
|
858
|
-
transport_company: z.ZodString;
|
|
859
|
-
}, z.core.$strip>;
|
|
860
|
-
vehicle: z.ZodObject<{
|
|
861
|
-
vehicle_type: z.ZodString;
|
|
862
|
-
unloading_method: z.ZodString;
|
|
863
|
-
license_plate: z.ZodString;
|
|
864
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
865
|
-
}, z.core.$strip>;
|
|
866
|
-
event_id: z.ZodNumber;
|
|
867
|
-
event_name: z.ZodString;
|
|
868
|
-
event_code: z.ZodString;
|
|
869
|
-
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
870
|
-
venue_name: z.ZodNullable<z.ZodString>;
|
|
871
|
-
request_type: z.ZodString;
|
|
872
|
-
duration: z.ZodNumber;
|
|
873
|
-
phase_slot_schedule_id: z.ZodNumber;
|
|
874
|
-
banner: z.ZodNullable<z.ZodObject<{
|
|
875
|
-
url: z.ZodURL;
|
|
876
|
-
name: z.ZodOptional<z.ZodString>;
|
|
877
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
878
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
879
|
-
type: z.ZodOptional<z.ZodString>;
|
|
880
|
-
path: z.ZodOptional<z.ZodString>;
|
|
881
|
-
}, z.core.$strip>>;
|
|
882
|
-
created_at: z.ZodString;
|
|
883
|
-
updated_at: z.ZodString;
|
|
884
|
-
}, z.core.$strip>;
|
|
885
|
-
}, z.core.$strip>;
|
|
886
|
-
export type GetBookingDetailsParams = z.infer<typeof getBookingDetailsParamsSchema>;
|
|
887
|
-
export type BookingDetailsData = z.infer<typeof bookingDetailsDataSchema>;
|
|
888
|
-
export type GetBookingDetailsResponse = z.infer<typeof getBookingDetailsResponseSchema>;
|
|
889
|
-
export declare const getBookingDetailsByTokenBodySchema: z.ZodObject<{
|
|
890
|
-
access_token: z.ZodString;
|
|
891
|
-
}, z.core.$strip>;
|
|
892
|
-
export declare const getBookingDetailsByTokenResponseSchema: z.ZodObject<{
|
|
893
|
-
success: z.ZodBoolean;
|
|
894
|
-
data: z.ZodObject<{
|
|
895
|
-
qr_token: z.ZodNullable<z.ZodString>;
|
|
896
|
-
id: z.ZodNumber;
|
|
897
|
-
booking_id: z.ZodNumber;
|
|
898
|
-
status: z.ZodString;
|
|
899
|
-
booking_date: z.ZodString;
|
|
900
|
-
start_time: z.ZodString;
|
|
901
|
-
end_time: z.ZodString;
|
|
902
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
903
|
-
company: z.ZodObject<{
|
|
904
|
-
hall: z.ZodString;
|
|
905
|
-
stand_number: z.ZodString;
|
|
906
|
-
company_name: z.ZodString;
|
|
907
|
-
business: z.ZodString;
|
|
908
|
-
departure_city: z.ZodString;
|
|
909
|
-
contact_name: z.ZodString;
|
|
910
|
-
email: z.ZodEmail;
|
|
911
|
-
phone: z.ZodString;
|
|
912
|
-
driver_name: z.ZodString;
|
|
913
|
-
driver_phone: z.ZodString;
|
|
914
|
-
transport_company: z.ZodString;
|
|
915
|
-
}, z.core.$strip>;
|
|
916
|
-
vehicle: z.ZodObject<{
|
|
917
|
-
vehicle_type: z.ZodString;
|
|
918
|
-
unloading_method: z.ZodString;
|
|
919
|
-
license_plate: z.ZodString;
|
|
920
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
921
|
-
}, z.core.$strip>;
|
|
922
|
-
event_id: z.ZodNumber;
|
|
923
|
-
event_name: z.ZodString;
|
|
924
|
-
event_code: z.ZodString;
|
|
925
|
-
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
926
|
-
venue_name: z.ZodNullable<z.ZodString>;
|
|
927
|
-
request_type: z.ZodString;
|
|
928
|
-
duration: z.ZodNumber;
|
|
929
|
-
phase_slot_schedule_id: z.ZodNumber;
|
|
930
|
-
banner: z.ZodNullable<z.ZodObject<{
|
|
931
|
-
url: z.ZodURL;
|
|
932
|
-
name: z.ZodOptional<z.ZodString>;
|
|
933
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
934
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
935
|
-
type: z.ZodOptional<z.ZodString>;
|
|
936
|
-
path: z.ZodOptional<z.ZodString>;
|
|
937
|
-
}, z.core.$strip>>;
|
|
938
|
-
created_at: z.ZodString;
|
|
939
|
-
updated_at: z.ZodString;
|
|
940
|
-
}, z.core.$strip>;
|
|
941
|
-
}, z.core.$strip>;
|
|
942
|
-
export type GetBookingDetailsByTokenBody = z.infer<typeof getBookingDetailsByTokenBodySchema>;
|
|
943
|
-
export type GetBookingDetailsByTokenResponse = z.infer<typeof getBookingDetailsByTokenResponseSchema>;
|
|
944
|
-
export declare const getBookingDetailsByQrBodySchema: z.ZodObject<{
|
|
945
|
-
qr_token: z.ZodString;
|
|
946
|
-
}, z.core.$strip>;
|
|
947
|
-
export declare const getBookingDetailsByQrResponseSchema: z.ZodObject<{
|
|
948
|
-
success: z.ZodBoolean;
|
|
949
|
-
data: z.ZodObject<{
|
|
950
|
-
qr_token: z.ZodNullable<z.ZodString>;
|
|
951
|
-
id: z.ZodNumber;
|
|
952
|
-
booking_id: z.ZodNumber;
|
|
953
|
-
status: z.ZodString;
|
|
954
|
-
booking_date: z.ZodString;
|
|
955
|
-
start_time: z.ZodString;
|
|
956
|
-
end_time: z.ZodString;
|
|
957
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
958
|
-
company: z.ZodObject<{
|
|
959
|
-
hall: z.ZodString;
|
|
960
|
-
stand_number: z.ZodString;
|
|
961
|
-
company_name: z.ZodString;
|
|
962
|
-
business: z.ZodString;
|
|
963
|
-
departure_city: z.ZodString;
|
|
964
|
-
contact_name: z.ZodString;
|
|
965
|
-
email: z.ZodEmail;
|
|
966
|
-
phone: z.ZodString;
|
|
967
|
-
driver_name: z.ZodString;
|
|
968
|
-
driver_phone: z.ZodString;
|
|
969
|
-
transport_company: z.ZodString;
|
|
970
|
-
}, z.core.$strip>;
|
|
971
|
-
vehicle: z.ZodObject<{
|
|
972
|
-
vehicle_type: z.ZodString;
|
|
973
|
-
unloading_method: z.ZodString;
|
|
974
|
-
license_plate: z.ZodString;
|
|
975
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
976
|
-
}, z.core.$strip>;
|
|
977
|
-
event_id: z.ZodNumber;
|
|
978
|
-
event_name: z.ZodString;
|
|
979
|
-
event_code: z.ZodString;
|
|
980
|
-
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
981
|
-
venue_name: z.ZodNullable<z.ZodString>;
|
|
982
|
-
request_type: z.ZodString;
|
|
983
|
-
duration: z.ZodNumber;
|
|
984
|
-
phase_slot_schedule_id: z.ZodNumber;
|
|
985
|
-
banner: z.ZodNullable<z.ZodObject<{
|
|
986
|
-
url: z.ZodURL;
|
|
987
|
-
name: z.ZodOptional<z.ZodString>;
|
|
988
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
989
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
990
|
-
type: z.ZodOptional<z.ZodString>;
|
|
991
|
-
path: z.ZodOptional<z.ZodString>;
|
|
992
|
-
}, z.core.$strip>>;
|
|
993
|
-
created_at: z.ZodString;
|
|
994
|
-
updated_at: z.ZodString;
|
|
995
|
-
}, z.core.$strip>;
|
|
996
|
-
}, z.core.$strip>;
|
|
997
|
-
export type GetBookingDetailsByQrBody = z.infer<typeof getBookingDetailsByQrBodySchema>;
|
|
998
|
-
export type GetBookingDetailsByQrResponse = z.infer<typeof getBookingDetailsByQrResponseSchema>;
|
|
999
|
-
export declare const updatePhaseBookingBodySchema: z.ZodObject<{
|
|
1000
|
-
company: z.ZodOptional<z.ZodObject<{
|
|
1001
|
-
hall: z.ZodString;
|
|
1002
|
-
stand_number: z.ZodString;
|
|
1003
|
-
company_name: z.ZodString;
|
|
1004
|
-
business: z.ZodString;
|
|
1005
|
-
departure_city: z.ZodString;
|
|
1006
|
-
contact_name: z.ZodString;
|
|
1007
|
-
email: z.ZodEmail;
|
|
1008
|
-
phone: z.ZodString;
|
|
1009
|
-
driver_name: z.ZodString;
|
|
1010
|
-
driver_phone: z.ZodString;
|
|
1011
|
-
transport_company: z.ZodString;
|
|
1012
|
-
}, z.core.$strip>>;
|
|
1013
|
-
vehicle: z.ZodOptional<z.ZodObject<{
|
|
1014
|
-
vehicle_type: z.ZodString;
|
|
1015
|
-
unloading_method: z.ZodString;
|
|
1016
|
-
license_plate: z.ZodString;
|
|
1017
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
1018
|
-
}, z.core.$strip>>;
|
|
1019
|
-
access_token: z.ZodString;
|
|
1020
|
-
}, z.core.$strip>;
|
|
1021
|
-
export declare const updatePhaseBookingDataSchema: z.ZodObject<{
|
|
1022
|
-
booking_id: z.ZodNumber;
|
|
1023
|
-
qr_token: z.ZodString;
|
|
1024
|
-
company: z.ZodNullable<z.ZodObject<{
|
|
1025
|
-
hall: z.ZodString;
|
|
1026
|
-
stand_number: z.ZodString;
|
|
1027
|
-
company_name: z.ZodString;
|
|
1028
|
-
business: z.ZodString;
|
|
1029
|
-
departure_city: z.ZodString;
|
|
1030
|
-
contact_name: z.ZodString;
|
|
1031
|
-
email: z.ZodEmail;
|
|
1032
|
-
phone: z.ZodString;
|
|
1033
|
-
driver_name: z.ZodString;
|
|
1034
|
-
driver_phone: z.ZodString;
|
|
1035
|
-
transport_company: z.ZodString;
|
|
1036
|
-
}, z.core.$strip>>;
|
|
1037
|
-
vehicle: z.ZodNullable<z.ZodObject<{
|
|
1038
|
-
vehicle_type: z.ZodString;
|
|
1039
|
-
unloading_method: z.ZodString;
|
|
1040
|
-
license_plate: z.ZodString;
|
|
1041
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
1042
|
-
}, z.core.$strip>>;
|
|
1043
|
-
updated_at: z.ZodString;
|
|
1044
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
1045
|
-
}, z.core.$strip>;
|
|
1046
|
-
export declare const updatePhaseBookingResponseSchema: z.ZodObject<{
|
|
1047
|
-
success: z.ZodBoolean;
|
|
1048
|
-
message: z.ZodString;
|
|
1049
|
-
data: z.ZodObject<{
|
|
1050
|
-
booking_id: z.ZodNumber;
|
|
1051
|
-
qr_token: z.ZodString;
|
|
1052
|
-
company: z.ZodNullable<z.ZodObject<{
|
|
1053
|
-
hall: z.ZodString;
|
|
1054
|
-
stand_number: z.ZodString;
|
|
1055
|
-
company_name: z.ZodString;
|
|
1056
|
-
business: z.ZodString;
|
|
1057
|
-
departure_city: z.ZodString;
|
|
1058
|
-
contact_name: z.ZodString;
|
|
1059
|
-
email: z.ZodEmail;
|
|
1060
|
-
phone: z.ZodString;
|
|
1061
|
-
driver_name: z.ZodString;
|
|
1062
|
-
driver_phone: z.ZodString;
|
|
1063
|
-
transport_company: z.ZodString;
|
|
1064
|
-
}, z.core.$strip>>;
|
|
1065
|
-
vehicle: z.ZodNullable<z.ZodObject<{
|
|
1066
|
-
vehicle_type: z.ZodString;
|
|
1067
|
-
unloading_method: z.ZodString;
|
|
1068
|
-
license_plate: z.ZodString;
|
|
1069
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
1070
|
-
}, z.core.$strip>>;
|
|
1071
|
-
updated_at: z.ZodString;
|
|
1072
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
1073
|
-
}, z.core.$strip>;
|
|
1074
|
-
}, z.core.$strip>;
|
|
1075
|
-
export type UpdatePhaseBookingBody = z.infer<typeof updatePhaseBookingBodySchema>;
|
|
1076
|
-
export type UpdatePhaseBookingData = z.infer<typeof updatePhaseBookingDataSchema>;
|
|
1077
|
-
export type UpdatePhaseBookingResponse = z.infer<typeof updatePhaseBookingResponseSchema>;
|
|
1078
|
-
export declare const bookingWithRelationsSchema: z.ZodObject<{
|
|
1079
|
-
id: z.ZodNumber;
|
|
1080
|
-
status: z.ZodString;
|
|
1081
|
-
qr_token: z.ZodNullable<z.ZodString>;
|
|
1082
|
-
booking_date: z.ZodString;
|
|
1083
|
-
start_time: z.ZodString;
|
|
1084
|
-
end_time: z.ZodString;
|
|
1085
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
1086
|
-
company: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1087
|
-
vehicle: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1088
|
-
is_active: z.ZodBoolean;
|
|
1089
|
-
created_at: z.ZodString;
|
|
1090
|
-
updated_at: z.ZodString;
|
|
1091
|
-
phase_slot_schedules: z.ZodObject<{
|
|
1092
|
-
id: z.ZodNumber;
|
|
1093
|
-
phase_slot_schedule_type: z.ZodString;
|
|
1094
|
-
phase_slots: z.ZodObject<{
|
|
1095
|
-
id: z.ZodNumber;
|
|
1096
|
-
events: z.ZodObject<{
|
|
1097
|
-
id: z.ZodNumber;
|
|
1098
|
-
name: z.ZodString;
|
|
1099
|
-
code: z.ZodString;
|
|
1100
|
-
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
1101
|
-
banner: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1102
|
-
venues: z.ZodNullable<z.ZodObject<{
|
|
1103
|
-
id: z.ZodNumber;
|
|
1104
|
-
name: z.ZodString;
|
|
1105
|
-
}, z.core.$strip>>;
|
|
1106
|
-
}, z.core.$strip>;
|
|
1107
|
-
}, z.core.$strip>;
|
|
1108
|
-
}, z.core.$strip>;
|
|
1109
|
-
}, z.core.$strip>;
|
|
1110
|
-
export type BookingWithRelations = z.infer<typeof bookingWithRelationsSchema>;
|
|
1111
|
-
/**
|
|
1112
|
-
* Parking area schedule schema (from database response)
|
|
1113
|
-
* Uses new column names: parking_area_id, parking_area_schedule_type
|
|
1114
|
-
*/
|
|
1115
|
-
export declare const parkingAreaScheduleSchemaForBooking: z.ZodObject<{
|
|
1116
|
-
id: z.ZodNumber;
|
|
1117
|
-
date: z.ZodString;
|
|
1118
|
-
start_time: z.ZodString;
|
|
1119
|
-
end_time: z.ZodString;
|
|
1120
|
-
duration: z.ZodNumber;
|
|
1121
|
-
parking_area_id: z.ZodNumber;
|
|
1122
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
1123
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
1124
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
1125
|
-
}>;
|
|
1126
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
1127
|
-
created_at: z.ZodString;
|
|
1128
|
-
updated_at: z.ZodString;
|
|
1129
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1130
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
1131
|
-
}, z.core.$strip>;
|
|
1132
|
-
/**
|
|
1133
|
-
* Parking booking schema (matches parking_bookings table)
|
|
1134
|
-
* Uses new column name: parking_area_schedule_id
|
|
1135
|
-
*/
|
|
1136
|
-
export declare const parkingBookingSchema: z.ZodObject<{
|
|
1137
|
-
id: z.ZodNumber;
|
|
1138
|
-
parking_area_schedule_id: z.ZodNumber;
|
|
1139
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
1140
|
-
is_active: z.ZodBoolean;
|
|
1141
|
-
created_at: z.ZodString;
|
|
1142
|
-
updated_at: z.ZodString;
|
|
1143
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1144
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
1145
|
-
booking_date: z.ZodNullable<z.ZodString>;
|
|
1146
|
-
start_time: z.ZodNullable<z.ZodString>;
|
|
1147
|
-
end_time: z.ZodNullable<z.ZodString>;
|
|
1148
|
-
company: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1149
|
-
vehicle: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1150
|
-
parking_area_schedule: z.ZodOptional<z.ZodObject<{
|
|
1151
|
-
id: z.ZodNumber;
|
|
1152
|
-
date: z.ZodString;
|
|
1153
|
-
start_time: z.ZodString;
|
|
1154
|
-
end_time: z.ZodString;
|
|
1155
|
-
duration: z.ZodNumber;
|
|
1156
|
-
parking_area_id: z.ZodNumber;
|
|
1157
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
1158
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
1159
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
1160
|
-
}>;
|
|
1161
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
1162
|
-
created_at: z.ZodString;
|
|
1163
|
-
updated_at: z.ZodString;
|
|
1164
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1165
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
1166
|
-
}, z.core.$strip>>;
|
|
1167
|
-
}, z.core.$strip>;
|
|
1168
|
-
export declare const createParkingBookingBodySchema: z.ZodObject<{
|
|
1169
|
-
event_id: z.ZodNumber;
|
|
1170
|
-
parking_area_id: z.ZodNumber;
|
|
1171
|
-
request_type: z.ZodDefault<z.ZodEnum<{
|
|
1172
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
1173
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
1174
|
-
}>>;
|
|
1175
|
-
selected_date: z.ZodString;
|
|
1176
|
-
selected_time: z.ZodString;
|
|
1177
|
-
company: z.ZodObject<{
|
|
1178
|
-
hall: z.ZodString;
|
|
1179
|
-
stand_number: z.ZodString;
|
|
1180
|
-
company_name: z.ZodString;
|
|
1181
|
-
business: z.ZodString;
|
|
1182
|
-
departure_city: z.ZodString;
|
|
1183
|
-
contact_name: z.ZodString;
|
|
1184
|
-
email: z.ZodEmail;
|
|
1185
|
-
phone: z.ZodString;
|
|
1186
|
-
driver_name: z.ZodString;
|
|
1187
|
-
driver_phone: z.ZodString;
|
|
1188
|
-
transport_company: z.ZodString;
|
|
1189
|
-
}, z.core.$strip>;
|
|
1190
|
-
vehicle: z.ZodObject<{
|
|
1191
|
-
vehicle_type: z.ZodString;
|
|
1192
|
-
unloading_method: z.ZodString;
|
|
1193
|
-
license_plate: z.ZodString;
|
|
1194
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
1195
|
-
}, z.core.$strip>;
|
|
1196
|
-
}, z.core.$strip>;
|
|
1197
|
-
export declare const createParkingBookingDataSchema: z.ZodObject<{
|
|
1198
|
-
booking_id: z.ZodNumber;
|
|
1199
|
-
parking_area_schedule_id: z.ZodNumber;
|
|
1200
|
-
parking_area_id: z.ZodNumber;
|
|
1201
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
1202
|
-
booking_date: z.ZodString;
|
|
1203
|
-
start_time: z.ZodString;
|
|
1204
|
-
end_time: z.ZodString;
|
|
1205
|
-
company: z.ZodObject<{
|
|
1206
|
-
hall: z.ZodString;
|
|
1207
|
-
stand_number: z.ZodString;
|
|
1208
|
-
company_name: z.ZodString;
|
|
1209
|
-
business: z.ZodString;
|
|
1210
|
-
departure_city: z.ZodString;
|
|
1211
|
-
contact_name: z.ZodString;
|
|
1212
|
-
email: z.ZodEmail;
|
|
1213
|
-
phone: z.ZodString;
|
|
1214
|
-
driver_name: z.ZodString;
|
|
1215
|
-
driver_phone: z.ZodString;
|
|
1216
|
-
transport_company: z.ZodString;
|
|
1217
|
-
}, z.core.$strip>;
|
|
1218
|
-
vehicle: z.ZodObject<{
|
|
1219
|
-
vehicle_type: z.ZodString;
|
|
1220
|
-
unloading_method: z.ZodString;
|
|
1221
|
-
license_plate: z.ZodString;
|
|
1222
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
1223
|
-
}, z.core.$strip>;
|
|
1224
|
-
created_at: z.ZodString;
|
|
1225
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1226
|
-
}, z.core.$strip>;
|
|
1227
|
-
export declare const createParkingBookingResponseSchema: z.ZodObject<{
|
|
1228
|
-
success: z.ZodBoolean;
|
|
1229
|
-
message: z.ZodString;
|
|
1230
|
-
data: z.ZodObject<{
|
|
1231
|
-
booking_id: z.ZodNumber;
|
|
1232
|
-
parking_area_schedule_id: z.ZodNumber;
|
|
1233
|
-
parking_area_id: z.ZodNumber;
|
|
1234
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
1235
|
-
booking_date: z.ZodString;
|
|
1236
|
-
start_time: z.ZodString;
|
|
1237
|
-
end_time: z.ZodString;
|
|
1238
|
-
company: z.ZodObject<{
|
|
1239
|
-
hall: z.ZodString;
|
|
1240
|
-
stand_number: z.ZodString;
|
|
1241
|
-
company_name: z.ZodString;
|
|
1242
|
-
business: z.ZodString;
|
|
1243
|
-
departure_city: z.ZodString;
|
|
1244
|
-
contact_name: z.ZodString;
|
|
1245
|
-
email: z.ZodEmail;
|
|
1246
|
-
phone: z.ZodString;
|
|
1247
|
-
driver_name: z.ZodString;
|
|
1248
|
-
driver_phone: z.ZodString;
|
|
1249
|
-
transport_company: z.ZodString;
|
|
1250
|
-
}, z.core.$strip>;
|
|
1251
|
-
vehicle: z.ZodObject<{
|
|
1252
|
-
vehicle_type: z.ZodString;
|
|
1253
|
-
unloading_method: z.ZodString;
|
|
1254
|
-
license_plate: z.ZodString;
|
|
1255
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
1256
|
-
}, z.core.$strip>;
|
|
1257
|
-
created_at: z.ZodString;
|
|
1258
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1259
|
-
}, z.core.$strip>;
|
|
1260
|
-
}, z.core.$strip>;
|
|
1261
|
-
export declare const parkingBookingsDataSchema: z.ZodObject<{
|
|
1262
|
-
event_id: z.ZodNumber;
|
|
1263
|
-
event_code: z.ZodString;
|
|
1264
|
-
event_name: z.ZodString;
|
|
1265
|
-
bookings: z.ZodArray<z.ZodObject<{
|
|
1266
|
-
id: z.ZodNumber;
|
|
1267
|
-
parking_area_schedule_id: z.ZodNumber;
|
|
1268
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
1269
|
-
is_active: z.ZodBoolean;
|
|
1270
|
-
created_at: z.ZodString;
|
|
1271
|
-
updated_at: z.ZodString;
|
|
1272
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1273
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
1274
|
-
booking_date: z.ZodNullable<z.ZodString>;
|
|
1275
|
-
start_time: z.ZodNullable<z.ZodString>;
|
|
1276
|
-
end_time: z.ZodNullable<z.ZodString>;
|
|
1277
|
-
company: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1278
|
-
vehicle: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1279
|
-
parking_area_schedule: z.ZodOptional<z.ZodObject<{
|
|
1280
|
-
id: z.ZodNumber;
|
|
1281
|
-
date: z.ZodString;
|
|
1282
|
-
start_time: z.ZodString;
|
|
1283
|
-
end_time: z.ZodString;
|
|
1284
|
-
duration: z.ZodNumber;
|
|
1285
|
-
parking_area_id: z.ZodNumber;
|
|
1286
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
1287
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
1288
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
1289
|
-
}>;
|
|
1290
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
1291
|
-
created_at: z.ZodString;
|
|
1292
|
-
updated_at: z.ZodString;
|
|
1293
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1294
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
1295
|
-
}, z.core.$strip>>;
|
|
1296
|
-
}, z.core.$strip>>;
|
|
1297
|
-
total_count: z.ZodNumber;
|
|
1298
|
-
}, z.core.$strip>;
|
|
1299
|
-
export declare const parkingBookingsResponseSchema: z.ZodObject<{
|
|
1300
|
-
success: z.ZodBoolean;
|
|
1301
|
-
data: z.ZodObject<{
|
|
1302
|
-
event_id: z.ZodNumber;
|
|
1303
|
-
event_code: z.ZodString;
|
|
1304
|
-
event_name: z.ZodString;
|
|
1305
|
-
bookings: z.ZodArray<z.ZodObject<{
|
|
1306
|
-
id: z.ZodNumber;
|
|
1307
|
-
parking_area_schedule_id: z.ZodNumber;
|
|
1308
|
-
status: z.ZodEnum<typeof BookingStatus>;
|
|
1309
|
-
is_active: z.ZodBoolean;
|
|
1310
|
-
created_at: z.ZodString;
|
|
1311
|
-
updated_at: z.ZodString;
|
|
1312
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1313
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
1314
|
-
booking_date: z.ZodNullable<z.ZodString>;
|
|
1315
|
-
start_time: z.ZodNullable<z.ZodString>;
|
|
1316
|
-
end_time: z.ZodNullable<z.ZodString>;
|
|
1317
|
-
company: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1318
|
-
vehicle: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1319
|
-
parking_area_schedule: z.ZodOptional<z.ZodObject<{
|
|
1320
|
-
id: z.ZodNumber;
|
|
1321
|
-
date: z.ZodString;
|
|
1322
|
-
start_time: z.ZodString;
|
|
1323
|
-
end_time: z.ZodString;
|
|
1324
|
-
duration: z.ZodNumber;
|
|
1325
|
-
parking_area_id: z.ZodNumber;
|
|
1326
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
1327
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
1328
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
1329
|
-
}>;
|
|
1330
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
1331
|
-
created_at: z.ZodString;
|
|
1332
|
-
updated_at: z.ZodString;
|
|
1333
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1334
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
1335
|
-
}, z.core.$strip>>;
|
|
1336
|
-
}, z.core.$strip>>;
|
|
1337
|
-
total_count: z.ZodNumber;
|
|
1338
|
-
}, z.core.$strip>;
|
|
1339
|
-
}, z.core.$strip>;
|
|
1340
|
-
export type ParkingAreaScheduleForBooking = z.infer<typeof parkingAreaScheduleSchemaForBooking>;
|
|
1341
|
-
export type ParkingBooking = z.infer<typeof parkingBookingSchema>;
|
|
1342
|
-
export type CreateParkingBookingBody = z.infer<typeof createParkingBookingBodySchema>;
|
|
1343
|
-
export type CreateParkingBookingData = z.infer<typeof createParkingBookingDataSchema>;
|
|
1344
|
-
export type CreateParkingBookingResponse = z.infer<typeof createParkingBookingResponseSchema>;
|
|
1345
|
-
export type ParkingBookingsData = z.infer<typeof parkingBookingsDataSchema>;
|
|
1346
|
-
export type ParkingBookingsResponse = z.infer<typeof parkingBookingsResponseSchema>;
|