@venulog/phasing-engine-schemas 0.8.3 → 0.9.0-alpha.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/event.d.ts +4 -0
- package/dist/event.js +19 -1
- package/dist/parkingBooking.d.ts +51 -51
- package/dist/parkingBooking.js +9 -7
- package/package.json +1 -1
package/dist/event.d.ts
CHANGED
|
@@ -14,5 +14,9 @@ export declare const eventInfoResponseSchema: z.ZodObject<{
|
|
|
14
14
|
event_code: z.ZodString;
|
|
15
15
|
event_name: z.ZodString;
|
|
16
16
|
venue_name: z.ZodString;
|
|
17
|
+
available_periods: z.ZodArray<z.ZodObject<{
|
|
18
|
+
month: z.ZodNumber;
|
|
19
|
+
year: z.ZodNumber;
|
|
20
|
+
}, z.core.$strip>>;
|
|
17
21
|
}, z.core.$strip>;
|
|
18
22
|
export type EventInfoResponse = z.infer<typeof eventInfoResponseSchema>;
|
package/dist/event.js
CHANGED
|
@@ -35,6 +35,24 @@ export const eventInfoResponseSchema = z
|
|
|
35
35
|
venue_name: z
|
|
36
36
|
.string()
|
|
37
37
|
.describe('The name of the venue where the event takes place')
|
|
38
|
-
.openapi({ example: 'Paris Expo Porte de Versailles' })
|
|
38
|
+
.openapi({ example: 'Paris Expo Porte de Versailles' }),
|
|
39
|
+
available_periods: z
|
|
40
|
+
.array(z.object({
|
|
41
|
+
month: z
|
|
42
|
+
.number()
|
|
43
|
+
.int()
|
|
44
|
+
.min(1)
|
|
45
|
+
.max(12)
|
|
46
|
+
.describe('Month number (1-12)')
|
|
47
|
+
.openapi({ example: 2 }),
|
|
48
|
+
year: z.number().int().positive().describe('Year').openapi({ example: 2026 })
|
|
49
|
+
}))
|
|
50
|
+
.describe('Available month/year periods from bookings data')
|
|
51
|
+
.openapi({
|
|
52
|
+
example: [
|
|
53
|
+
{ month: 2, year: 2026 },
|
|
54
|
+
{ month: 3, year: 2026 }
|
|
55
|
+
]
|
|
56
|
+
})
|
|
39
57
|
})
|
|
40
58
|
.openapi('EventInfoResponse');
|
package/dist/parkingBooking.d.ts
CHANGED
|
@@ -41,16 +41,16 @@ export declare const closeEventBodySchema: z.ZodObject<{
|
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
export declare const companyDetailsSchema: z.ZodObject<{
|
|
43
43
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
44
|
-
stand_number: z.ZodString
|
|
44
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
45
45
|
company_name: z.ZodString;
|
|
46
|
-
|
|
47
|
-
departure_city: z.ZodString
|
|
46
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
47
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
48
48
|
contact_name: z.ZodString;
|
|
49
49
|
email: z.ZodEmail;
|
|
50
50
|
phone: z.ZodString;
|
|
51
51
|
driver_name: z.ZodString;
|
|
52
52
|
driver_phone: z.ZodString;
|
|
53
|
-
transport_company: z.ZodString
|
|
53
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
export declare const vehicleDetailsSchema: z.ZodObject<{
|
|
56
56
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -60,7 +60,6 @@ export declare const vehicleDetailsSchema: z.ZodObject<{
|
|
|
60
60
|
}, z.core.$strip>;
|
|
61
61
|
export declare const parkingBookingSchema: z.ZodObject<{
|
|
62
62
|
id: z.ZodNumber;
|
|
63
|
-
parking_area_schedule_id: z.ZodNumber;
|
|
64
63
|
status: z.ZodEnum<typeof BookingStatus>;
|
|
65
64
|
is_active: z.ZodBoolean;
|
|
66
65
|
created_at: z.ZodString;
|
|
@@ -73,16 +72,16 @@ export declare const parkingBookingSchema: z.ZodObject<{
|
|
|
73
72
|
company_role: z.ZodNullable<z.ZodString>;
|
|
74
73
|
company: z.ZodObject<{
|
|
75
74
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
76
|
-
stand_number: z.ZodString
|
|
75
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
77
76
|
company_name: z.ZodString;
|
|
78
|
-
|
|
79
|
-
departure_city: z.ZodString
|
|
77
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
78
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
80
79
|
contact_name: z.ZodString;
|
|
81
80
|
email: z.ZodEmail;
|
|
82
81
|
phone: z.ZodString;
|
|
83
82
|
driver_name: z.ZodString;
|
|
84
83
|
driver_phone: z.ZodString;
|
|
85
|
-
transport_company: z.ZodString
|
|
84
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
86
85
|
}, z.core.$strip>;
|
|
87
86
|
vehicle: z.ZodObject<{
|
|
88
87
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -95,6 +94,7 @@ export declare const parkingBookingSchema: z.ZodObject<{
|
|
|
95
94
|
parking_spot: z.ZodString;
|
|
96
95
|
door: z.ZodString;
|
|
97
96
|
parking_schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
97
|
+
time_zone: z.ZodString;
|
|
98
98
|
}, z.core.$strip>;
|
|
99
99
|
export declare const eventBookingsDataSchema: z.ZodObject<{
|
|
100
100
|
event_id: z.ZodNumber;
|
|
@@ -102,7 +102,6 @@ export declare const eventBookingsDataSchema: z.ZodObject<{
|
|
|
102
102
|
event_name: z.ZodString;
|
|
103
103
|
bookings: z.ZodArray<z.ZodObject<{
|
|
104
104
|
id: z.ZodNumber;
|
|
105
|
-
parking_area_schedule_id: z.ZodNumber;
|
|
106
105
|
status: z.ZodEnum<typeof BookingStatus>;
|
|
107
106
|
is_active: z.ZodBoolean;
|
|
108
107
|
created_at: z.ZodString;
|
|
@@ -115,16 +114,16 @@ export declare const eventBookingsDataSchema: z.ZodObject<{
|
|
|
115
114
|
company_role: z.ZodNullable<z.ZodString>;
|
|
116
115
|
company: z.ZodObject<{
|
|
117
116
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
118
|
-
stand_number: z.ZodString
|
|
117
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
119
118
|
company_name: z.ZodString;
|
|
120
|
-
|
|
121
|
-
departure_city: z.ZodString
|
|
119
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
120
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
122
121
|
contact_name: z.ZodString;
|
|
123
122
|
email: z.ZodEmail;
|
|
124
123
|
phone: z.ZodString;
|
|
125
124
|
driver_name: z.ZodString;
|
|
126
125
|
driver_phone: z.ZodString;
|
|
127
|
-
transport_company: z.ZodString
|
|
126
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
128
127
|
}, z.core.$strip>;
|
|
129
128
|
vehicle: z.ZodObject<{
|
|
130
129
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -137,6 +136,7 @@ export declare const eventBookingsDataSchema: z.ZodObject<{
|
|
|
137
136
|
parking_spot: z.ZodString;
|
|
138
137
|
door: z.ZodString;
|
|
139
138
|
parking_schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
139
|
+
time_zone: z.ZodString;
|
|
140
140
|
}, z.core.$strip>>;
|
|
141
141
|
total_count: z.ZodNumber;
|
|
142
142
|
}, z.core.$strip>;
|
|
@@ -148,7 +148,6 @@ export declare const eventBookingsResponseSchema: z.ZodObject<{
|
|
|
148
148
|
event_name: z.ZodString;
|
|
149
149
|
bookings: z.ZodArray<z.ZodObject<{
|
|
150
150
|
id: z.ZodNumber;
|
|
151
|
-
parking_area_schedule_id: z.ZodNumber;
|
|
152
151
|
status: z.ZodEnum<typeof BookingStatus>;
|
|
153
152
|
is_active: z.ZodBoolean;
|
|
154
153
|
created_at: z.ZodString;
|
|
@@ -161,16 +160,16 @@ export declare const eventBookingsResponseSchema: z.ZodObject<{
|
|
|
161
160
|
company_role: z.ZodNullable<z.ZodString>;
|
|
162
161
|
company: z.ZodObject<{
|
|
163
162
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
164
|
-
stand_number: z.ZodString
|
|
163
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
165
164
|
company_name: z.ZodString;
|
|
166
|
-
|
|
167
|
-
departure_city: z.ZodString
|
|
165
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
166
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
168
167
|
contact_name: z.ZodString;
|
|
169
168
|
email: z.ZodEmail;
|
|
170
169
|
phone: z.ZodString;
|
|
171
170
|
driver_name: z.ZodString;
|
|
172
171
|
driver_phone: z.ZodString;
|
|
173
|
-
transport_company: z.ZodString
|
|
172
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
174
173
|
}, z.core.$strip>;
|
|
175
174
|
vehicle: z.ZodObject<{
|
|
176
175
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -183,6 +182,7 @@ export declare const eventBookingsResponseSchema: z.ZodObject<{
|
|
|
183
182
|
parking_spot: z.ZodString;
|
|
184
183
|
door: z.ZodString;
|
|
185
184
|
parking_schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
185
|
+
time_zone: z.ZodString;
|
|
186
186
|
}, z.core.$strip>>;
|
|
187
187
|
total_count: z.ZodNumber;
|
|
188
188
|
}, z.core.$strip>;
|
|
@@ -265,16 +265,16 @@ export declare const checkSlotAvailabilityResponseSchema: z.ZodObject<{
|
|
|
265
265
|
export declare const createParkingBookingBodySchema: z.ZodObject<{
|
|
266
266
|
company: z.ZodObject<{
|
|
267
267
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
268
|
-
stand_number: z.ZodString
|
|
268
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
269
269
|
company_name: z.ZodString;
|
|
270
|
-
|
|
271
|
-
departure_city: z.ZodString
|
|
270
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
271
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
272
272
|
contact_name: z.ZodString;
|
|
273
273
|
email: z.ZodEmail;
|
|
274
274
|
phone: z.ZodString;
|
|
275
275
|
driver_name: z.ZodString;
|
|
276
276
|
driver_phone: z.ZodString;
|
|
277
|
-
transport_company: z.ZodString
|
|
277
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
278
278
|
}, z.core.$strip>;
|
|
279
279
|
company_role: z.ZodString;
|
|
280
280
|
vehicle: z.ZodObject<{
|
|
@@ -294,16 +294,16 @@ export declare const createParkingBookingDataSchema: z.ZodObject<{
|
|
|
294
294
|
company_role: z.ZodString;
|
|
295
295
|
company: z.ZodObject<{
|
|
296
296
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
297
|
-
stand_number: z.ZodString
|
|
297
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
298
298
|
company_name: z.ZodString;
|
|
299
|
-
|
|
300
|
-
departure_city: z.ZodString
|
|
299
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
300
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
301
301
|
contact_name: z.ZodString;
|
|
302
302
|
email: z.ZodEmail;
|
|
303
303
|
phone: z.ZodString;
|
|
304
304
|
driver_name: z.ZodString;
|
|
305
305
|
driver_phone: z.ZodString;
|
|
306
|
-
transport_company: z.ZodString
|
|
306
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
307
307
|
}, z.core.$strip>;
|
|
308
308
|
vehicle: z.ZodObject<{
|
|
309
309
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -330,16 +330,16 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
|
|
|
330
330
|
company_role: z.ZodString;
|
|
331
331
|
company: z.ZodObject<{
|
|
332
332
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
333
|
-
stand_number: z.ZodString
|
|
333
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
334
334
|
company_name: z.ZodString;
|
|
335
|
-
|
|
336
|
-
departure_city: z.ZodString
|
|
335
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
336
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
337
337
|
contact_name: z.ZodString;
|
|
338
338
|
email: z.ZodEmail;
|
|
339
339
|
phone: z.ZodString;
|
|
340
340
|
driver_name: z.ZodString;
|
|
341
341
|
driver_phone: z.ZodString;
|
|
342
|
-
transport_company: z.ZodString
|
|
342
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
343
343
|
}, z.core.$strip>;
|
|
344
344
|
vehicle: z.ZodObject<{
|
|
345
345
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -361,16 +361,16 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
|
|
|
361
361
|
export declare const updateParkingBookingBodySchema: z.ZodObject<{
|
|
362
362
|
company: z.ZodOptional<z.ZodObject<{
|
|
363
363
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
364
|
-
stand_number: z.ZodString
|
|
364
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
365
365
|
company_name: z.ZodString;
|
|
366
|
-
|
|
367
|
-
departure_city: z.ZodString
|
|
366
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
367
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
368
368
|
contact_name: z.ZodString;
|
|
369
369
|
email: z.ZodEmail;
|
|
370
370
|
phone: z.ZodString;
|
|
371
371
|
driver_name: z.ZodString;
|
|
372
372
|
driver_phone: z.ZodString;
|
|
373
|
-
transport_company: z.ZodString
|
|
373
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
374
374
|
}, z.core.$strip>>;
|
|
375
375
|
vehicle: z.ZodOptional<z.ZodObject<{
|
|
376
376
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -385,16 +385,16 @@ export declare const updateParkingBookingDataSchema: z.ZodObject<{
|
|
|
385
385
|
qr_token: z.ZodString;
|
|
386
386
|
company: z.ZodNullable<z.ZodObject<{
|
|
387
387
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
388
|
-
stand_number: z.ZodString
|
|
388
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
389
389
|
company_name: z.ZodString;
|
|
390
|
-
|
|
391
|
-
departure_city: z.ZodString
|
|
390
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
391
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
392
392
|
contact_name: z.ZodString;
|
|
393
393
|
email: z.ZodEmail;
|
|
394
394
|
phone: z.ZodString;
|
|
395
395
|
driver_name: z.ZodString;
|
|
396
396
|
driver_phone: z.ZodString;
|
|
397
|
-
transport_company: z.ZodString
|
|
397
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
398
398
|
}, z.core.$strip>>;
|
|
399
399
|
vehicle: z.ZodNullable<z.ZodObject<{
|
|
400
400
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -413,16 +413,16 @@ export declare const updateParkingBookingResponseSchema: z.ZodObject<{
|
|
|
413
413
|
qr_token: z.ZodString;
|
|
414
414
|
company: z.ZodNullable<z.ZodObject<{
|
|
415
415
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
416
|
-
stand_number: z.ZodString
|
|
416
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
417
417
|
company_name: z.ZodString;
|
|
418
|
-
|
|
419
|
-
departure_city: z.ZodString
|
|
418
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
419
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
420
420
|
contact_name: z.ZodString;
|
|
421
421
|
email: z.ZodEmail;
|
|
422
422
|
phone: z.ZodString;
|
|
423
423
|
driver_name: z.ZodString;
|
|
424
424
|
driver_phone: z.ZodString;
|
|
425
|
-
transport_company: z.ZodString
|
|
425
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
426
426
|
}, z.core.$strip>>;
|
|
427
427
|
vehicle: z.ZodNullable<z.ZodObject<{
|
|
428
428
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -524,16 +524,16 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
|
|
|
524
524
|
company_role: z.ZodNullable<z.ZodString>;
|
|
525
525
|
company: z.ZodObject<{
|
|
526
526
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
527
|
-
stand_number: z.ZodString
|
|
527
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
528
528
|
company_name: z.ZodString;
|
|
529
|
-
|
|
530
|
-
departure_city: z.ZodString
|
|
529
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
530
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
531
531
|
contact_name: z.ZodString;
|
|
532
532
|
email: z.ZodEmail;
|
|
533
533
|
phone: z.ZodString;
|
|
534
534
|
driver_name: z.ZodString;
|
|
535
535
|
driver_phone: z.ZodString;
|
|
536
|
-
transport_company: z.ZodString
|
|
536
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
537
537
|
}, z.core.$strip>;
|
|
538
538
|
vehicle: z.ZodObject<{
|
|
539
539
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
@@ -581,16 +581,16 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
|
581
581
|
company_role: z.ZodNullable<z.ZodString>;
|
|
582
582
|
company: z.ZodObject<{
|
|
583
583
|
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
584
|
-
stand_number: z.ZodString
|
|
584
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
585
585
|
company_name: z.ZodString;
|
|
586
|
-
|
|
587
|
-
departure_city: z.ZodString
|
|
586
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
587
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
588
588
|
contact_name: z.ZodString;
|
|
589
589
|
email: z.ZodEmail;
|
|
590
590
|
phone: z.ZodString;
|
|
591
591
|
driver_name: z.ZodString;
|
|
592
592
|
driver_phone: z.ZodString;
|
|
593
|
-
transport_company: z.ZodString
|
|
593
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
594
594
|
}, z.core.$strip>;
|
|
595
595
|
vehicle: z.ZodObject<{
|
|
596
596
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
package/dist/parkingBooking.js
CHANGED
|
@@ -91,7 +91,7 @@ export const companyDetailsSchema = z
|
|
|
91
91
|
description: 'Hall location',
|
|
92
92
|
example: 'Hall 1'
|
|
93
93
|
}),
|
|
94
|
-
stand_number: z.string().
|
|
94
|
+
stand_number: z.string().optional().openapi({
|
|
95
95
|
description: 'Stand number',
|
|
96
96
|
example: 'A-123'
|
|
97
97
|
}),
|
|
@@ -99,11 +99,11 @@ export const companyDetailsSchema = z
|
|
|
99
99
|
description: 'Company name',
|
|
100
100
|
example: 'Acme Corp'
|
|
101
101
|
}),
|
|
102
|
-
|
|
103
|
-
description: '
|
|
102
|
+
exhibitor_name: z.string().optional().openapi({
|
|
103
|
+
description: 'Exhibitor name',
|
|
104
104
|
example: 'Technology'
|
|
105
105
|
}),
|
|
106
|
-
departure_city: z.string().
|
|
106
|
+
departure_city: z.string().optional().openapi({
|
|
107
107
|
description: 'City of departure',
|
|
108
108
|
example: 'Paris'
|
|
109
109
|
}),
|
|
@@ -127,7 +127,7 @@ export const companyDetailsSchema = z
|
|
|
127
127
|
description: 'Driver phone number',
|
|
128
128
|
example: '+33 6 12 34 56 78'
|
|
129
129
|
}),
|
|
130
|
-
transport_company: z.string().
|
|
130
|
+
transport_company: z.string().optional().openapi({
|
|
131
131
|
description: 'Transport company name',
|
|
132
132
|
example: 'Fast Transport Ltd'
|
|
133
133
|
})
|
|
@@ -150,9 +150,10 @@ export const vehicleDetailsSchema = z
|
|
|
150
150
|
})
|
|
151
151
|
})
|
|
152
152
|
.openapi('VehicleDetails');
|
|
153
|
+
// TODO: remove booking_date, start_time, end_time, time_zone and migrate to start_time with timezone info and end_time with timezone info
|
|
154
|
+
// so that we have full timezone support from db level
|
|
153
155
|
export const parkingBookingSchema = z.object({
|
|
154
156
|
id: z.number(),
|
|
155
|
-
parking_area_schedule_id: z.number(),
|
|
156
157
|
status: z.enum(BookingStatus),
|
|
157
158
|
is_active: z.boolean(),
|
|
158
159
|
created_at: z.string(),
|
|
@@ -169,7 +170,8 @@ export const parkingBookingSchema = z.object({
|
|
|
169
170
|
exit_scanned_at: z.string().nullable(),
|
|
170
171
|
parking_spot: z.string(),
|
|
171
172
|
door: z.string(),
|
|
172
|
-
parking_schedule_type: z.enum(ParkingAreaScheduleType)
|
|
173
|
+
parking_schedule_type: z.enum(ParkingAreaScheduleType),
|
|
174
|
+
time_zone: z.string()
|
|
173
175
|
});
|
|
174
176
|
export const eventBookingsDataSchema = z
|
|
175
177
|
.object({
|