@venulog/phasing-engine-schemas 0.7.0-alpha.3 → 0.7.0-alpha.5
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/parkingBooking.d.ts +22 -12
- package/dist/parkingBooking.js +12 -2
- package/package.json +2 -2
package/dist/parkingBooking.d.ts
CHANGED
|
@@ -74,9 +74,11 @@ export declare const parkingBookingSchema: z.ZodObject<{
|
|
|
74
74
|
created_by: z.ZodNullable<z.ZodString>;
|
|
75
75
|
updated_by: z.ZodNullable<z.ZodString>;
|
|
76
76
|
}, z.core.$strip>>;
|
|
77
|
+
entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
79
|
}, z.core.$strip>;
|
|
78
80
|
export declare const companyDetailsSchema: z.ZodObject<{
|
|
79
|
-
hall: z.
|
|
81
|
+
hall: z.ZodString;
|
|
80
82
|
stand_number: z.ZodString;
|
|
81
83
|
company_name: z.ZodString;
|
|
82
84
|
business: z.ZodString;
|
|
@@ -135,6 +137,8 @@ export declare const eventBookingsDataSchema: z.ZodObject<{
|
|
|
135
137
|
created_by: z.ZodNullable<z.ZodString>;
|
|
136
138
|
updated_by: z.ZodNullable<z.ZodString>;
|
|
137
139
|
}, z.core.$strip>>;
|
|
140
|
+
entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
142
|
}, z.core.$strip>>;
|
|
139
143
|
total_count: z.ZodNumber;
|
|
140
144
|
}, z.core.$strip>;
|
|
@@ -181,6 +185,8 @@ export declare const eventBookingsResponseSchema: z.ZodObject<{
|
|
|
181
185
|
created_by: z.ZodNullable<z.ZodString>;
|
|
182
186
|
updated_by: z.ZodNullable<z.ZodString>;
|
|
183
187
|
}, z.core.$strip>>;
|
|
188
|
+
entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
189
|
+
exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
190
|
}, z.core.$strip>>;
|
|
185
191
|
total_count: z.ZodNumber;
|
|
186
192
|
}, z.core.$strip>;
|
|
@@ -257,7 +263,7 @@ export declare const bookingDetailsDataSchema: z.ZodObject<{
|
|
|
257
263
|
end_time: z.ZodString;
|
|
258
264
|
company_role: z.ZodNullable<z.ZodString>;
|
|
259
265
|
company: z.ZodObject<{
|
|
260
|
-
hall: z.
|
|
266
|
+
hall: z.ZodString;
|
|
261
267
|
stand_number: z.ZodString;
|
|
262
268
|
company_name: z.ZodString;
|
|
263
269
|
business: z.ZodString;
|
|
@@ -297,7 +303,7 @@ export declare const bookingDetailsDataSchema: z.ZodObject<{
|
|
|
297
303
|
export declare const createParkingBookingBodySchema: z.ZodObject<{
|
|
298
304
|
parking_area_schedule_id: z.ZodNumber;
|
|
299
305
|
company: z.ZodObject<{
|
|
300
|
-
hall: z.
|
|
306
|
+
hall: z.ZodString;
|
|
301
307
|
stand_number: z.ZodString;
|
|
302
308
|
company_name: z.ZodString;
|
|
303
309
|
business: z.ZodString;
|
|
@@ -325,7 +331,7 @@ export declare const createParkingBookingDataSchema: z.ZodObject<{
|
|
|
325
331
|
status: z.ZodString;
|
|
326
332
|
company_role: z.ZodString;
|
|
327
333
|
company: z.ZodObject<{
|
|
328
|
-
hall: z.
|
|
334
|
+
hall: z.ZodString;
|
|
329
335
|
stand_number: z.ZodString;
|
|
330
336
|
company_name: z.ZodString;
|
|
331
337
|
business: z.ZodString;
|
|
@@ -358,7 +364,7 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
|
|
|
358
364
|
status: z.ZodString;
|
|
359
365
|
company_role: z.ZodString;
|
|
360
366
|
company: z.ZodObject<{
|
|
361
|
-
hall: z.
|
|
367
|
+
hall: z.ZodString;
|
|
362
368
|
stand_number: z.ZodString;
|
|
363
369
|
company_name: z.ZodString;
|
|
364
370
|
business: z.ZodString;
|
|
@@ -385,7 +391,7 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
|
|
|
385
391
|
}, z.core.$strip>;
|
|
386
392
|
export declare const updateParkingBookingBodySchema: z.ZodObject<{
|
|
387
393
|
company: z.ZodOptional<z.ZodObject<{
|
|
388
|
-
hall: z.
|
|
394
|
+
hall: z.ZodString;
|
|
389
395
|
stand_number: z.ZodString;
|
|
390
396
|
company_name: z.ZodString;
|
|
391
397
|
business: z.ZodString;
|
|
@@ -409,7 +415,7 @@ export declare const updateParkingBookingDataSchema: z.ZodObject<{
|
|
|
409
415
|
booking_id: z.ZodNumber;
|
|
410
416
|
qr_token: z.ZodString;
|
|
411
417
|
company: z.ZodNullable<z.ZodObject<{
|
|
412
|
-
hall: z.
|
|
418
|
+
hall: z.ZodString;
|
|
413
419
|
stand_number: z.ZodString;
|
|
414
420
|
company_name: z.ZodString;
|
|
415
421
|
business: z.ZodString;
|
|
@@ -437,7 +443,7 @@ export declare const updateParkingBookingResponseSchema: z.ZodObject<{
|
|
|
437
443
|
booking_id: z.ZodNumber;
|
|
438
444
|
qr_token: z.ZodString;
|
|
439
445
|
company: z.ZodNullable<z.ZodObject<{
|
|
440
|
-
hall: z.
|
|
446
|
+
hall: z.ZodString;
|
|
441
447
|
stand_number: z.ZodString;
|
|
442
448
|
company_name: z.ZodString;
|
|
443
449
|
business: z.ZodString;
|
|
@@ -547,7 +553,7 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
|
|
|
547
553
|
end_time: z.ZodString;
|
|
548
554
|
company_role: z.ZodNullable<z.ZodString>;
|
|
549
555
|
company: z.ZodObject<{
|
|
550
|
-
hall: z.
|
|
556
|
+
hall: z.ZodString;
|
|
551
557
|
stand_number: z.ZodString;
|
|
552
558
|
company_name: z.ZodString;
|
|
553
559
|
business: z.ZodString;
|
|
@@ -587,6 +593,8 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
|
|
|
587
593
|
}, z.core.$strip>>;
|
|
588
594
|
created_at: z.ZodString;
|
|
589
595
|
updated_at: z.ZodString;
|
|
596
|
+
entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
597
|
+
exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
590
598
|
}, z.core.$strip>;
|
|
591
599
|
export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
592
600
|
success: z.ZodBoolean;
|
|
@@ -600,7 +608,7 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
|
600
608
|
end_time: z.ZodString;
|
|
601
609
|
company_role: z.ZodNullable<z.ZodString>;
|
|
602
610
|
company: z.ZodObject<{
|
|
603
|
-
hall: z.
|
|
611
|
+
hall: z.ZodString;
|
|
604
612
|
stand_number: z.ZodString;
|
|
605
613
|
company_name: z.ZodString;
|
|
606
614
|
business: z.ZodString;
|
|
@@ -640,6 +648,8 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
|
640
648
|
}, z.core.$strip>>;
|
|
641
649
|
created_at: z.ZodString;
|
|
642
650
|
updated_at: z.ZodString;
|
|
651
|
+
entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
652
|
+
exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
643
653
|
}, z.core.$strip>;
|
|
644
654
|
}, z.core.$strip>;
|
|
645
655
|
export declare const getParkingBookingDetailsByTokenBodySchema: z.ZodObject<{
|
|
@@ -657,7 +667,7 @@ export declare const getParkingBookingDetailsByTokenResponseSchema: z.ZodObject<
|
|
|
657
667
|
end_time: z.ZodString;
|
|
658
668
|
company_role: z.ZodNullable<z.ZodString>;
|
|
659
669
|
company: z.ZodObject<{
|
|
660
|
-
hall: z.
|
|
670
|
+
hall: z.ZodString;
|
|
661
671
|
stand_number: z.ZodString;
|
|
662
672
|
company_name: z.ZodString;
|
|
663
673
|
business: z.ZodString;
|
|
@@ -710,7 +720,7 @@ export declare const getParkingBookingDetailsByQrResponseSchema: z.ZodObject<{
|
|
|
710
720
|
end_time: z.ZodString;
|
|
711
721
|
company_role: z.ZodNullable<z.ZodString>;
|
|
712
722
|
company: z.ZodObject<{
|
|
713
|
-
hall: z.
|
|
723
|
+
hall: z.ZodString;
|
|
714
724
|
stand_number: z.ZodString;
|
|
715
725
|
company_name: z.ZodString;
|
|
716
726
|
business: z.ZodString;
|
package/dist/parkingBooking.js
CHANGED
|
@@ -100,11 +100,13 @@ export const parkingBookingSchema = z.object({
|
|
|
100
100
|
company: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
101
101
|
vehicle: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
102
102
|
// Include the schedule details
|
|
103
|
-
parking_area_schedule: parkingAreaScheduleSchema.optional()
|
|
103
|
+
parking_area_schedule: parkingAreaScheduleSchema.optional(),
|
|
104
|
+
entry_scanned_at: z.string().nullable().optional(),
|
|
105
|
+
exit_scanned_at: z.string().nullable().optional()
|
|
104
106
|
});
|
|
105
107
|
export const companyDetailsSchema = z
|
|
106
108
|
.object({
|
|
107
|
-
hall: z.string().
|
|
109
|
+
hall: z.string().min(1, 'Hall is required').openapi({
|
|
108
110
|
description: 'Hall location',
|
|
109
111
|
example: 'Hall 1'
|
|
110
112
|
}),
|
|
@@ -693,6 +695,14 @@ export const parkingBookingDetailsDataSchema = z
|
|
|
693
695
|
updated_at: z.string().openapi({
|
|
694
696
|
description: 'Timestamp when booking was last updated',
|
|
695
697
|
example: '2025-12-05T10:30:00.000Z'
|
|
698
|
+
}),
|
|
699
|
+
entry_scanned_at: z.string().nullable().optional().openapi({
|
|
700
|
+
description: 'Timestamp when entry was scanned',
|
|
701
|
+
example: '2025-12-15T08:05:00.000Z'
|
|
702
|
+
}),
|
|
703
|
+
exit_scanned_at: z.string().nullable().optional().openapi({
|
|
704
|
+
description: 'Timestamp when exit was scanned',
|
|
705
|
+
example: '2025-12-15T08:25:00.000Z'
|
|
696
706
|
})
|
|
697
707
|
})
|
|
698
708
|
.openapi('ParkingBookingDetailsData');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venulog/phasing-engine-schemas",
|
|
3
|
-
"version": "0.7.0-alpha.
|
|
3
|
+
"version": "0.7.0-alpha.5",
|
|
4
4
|
"description": "Shared schemas and types for Phasing Engine API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "npm run clean && tsc",
|
|
51
51
|
"dev": "tsc --watch",
|
|
52
|
-
"clean": "
|
|
52
|
+
"clean": "rimraf dist",
|
|
53
53
|
"prepublishOnly": "npm run build"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|