@venulog/phasing-engine-schemas 0.9.0 → 0.10.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/event.d.ts +2 -0
- package/dist/event.js +8 -0
- package/dist/parkingArea.d.ts +1 -0
- package/dist/parkingArea.js +5 -1
- package/dist/parkingBooking.d.ts +7 -0
- package/dist/parkingBooking.js +10 -0
- package/package.json +2 -2
package/dist/event.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export declare const eventInfoResponseSchema: z.ZodObject<{
|
|
|
13
13
|
event_id: z.ZodNumber;
|
|
14
14
|
event_code: z.ZodString;
|
|
15
15
|
event_name: z.ZodString;
|
|
16
|
+
event_start_date: z.ZodString;
|
|
17
|
+
event_end_date: z.ZodString;
|
|
16
18
|
venue_name: z.ZodString;
|
|
17
19
|
available_periods: z.ZodArray<z.ZodObject<{
|
|
18
20
|
month: z.ZodNumber;
|
package/dist/event.js
CHANGED
|
@@ -32,6 +32,14 @@ export const eventInfoResponseSchema = z
|
|
|
32
32
|
.string()
|
|
33
33
|
.describe('The name of the event')
|
|
34
34
|
.openapi({ example: 'Convention of Events and Conferences 2025' }),
|
|
35
|
+
event_start_date: z
|
|
36
|
+
.string()
|
|
37
|
+
.describe('The start date of the event')
|
|
38
|
+
.openapi({ example: '2025-07-01' }),
|
|
39
|
+
event_end_date: z
|
|
40
|
+
.string()
|
|
41
|
+
.describe('The end date of the event')
|
|
42
|
+
.openapi({ example: '2025-07-06' }),
|
|
35
43
|
venue_name: z
|
|
36
44
|
.string()
|
|
37
45
|
.describe('The name of the venue where the event takes place')
|
package/dist/parkingArea.d.ts
CHANGED
|
@@ -637,6 +637,7 @@ export declare const getAvailableSlotsBodyV2Schema: z.ZodObject<{
|
|
|
637
637
|
company_name: z.ZodString;
|
|
638
638
|
vehicle_type: z.ZodEnum<typeof VehicleType>;
|
|
639
639
|
schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
640
|
+
pm_token: z.ZodOptional<z.ZodString>;
|
|
640
641
|
}, z.core.$strip>;
|
|
641
642
|
export declare const availableTimeSlotV2Schema: z.ZodObject<{
|
|
642
643
|
date: z.ZodString;
|
package/dist/parkingArea.js
CHANGED
|
@@ -876,7 +876,11 @@ export const getAvailableSlotsBodyV2Schema = z
|
|
|
876
876
|
schedule_type: z.enum(ParkingAreaScheduleType).openapi({
|
|
877
877
|
description: 'Filter by schedule type',
|
|
878
878
|
example: 'assembly'
|
|
879
|
-
})
|
|
879
|
+
}),
|
|
880
|
+
pm_token: z.string().optional().openapi({
|
|
881
|
+
description: 'Optional Planning Manager token for authentication',
|
|
882
|
+
example: 'pm_abcdef123456'
|
|
883
|
+
}),
|
|
880
884
|
})
|
|
881
885
|
.openapi('GetAvailableSlotsBodyV2');
|
|
882
886
|
export const availableTimeSlotV2Schema = z
|
package/dist/parkingBooking.d.ts
CHANGED
|
@@ -239,6 +239,7 @@ export declare const checkSlotAvailabilityBodySchema: z.ZodObject<{
|
|
|
239
239
|
company_name: z.ZodString;
|
|
240
240
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
241
241
|
schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
242
|
+
pm_token: z.ZodOptional<z.ZodString>;
|
|
242
243
|
}, z.core.$strip>;
|
|
243
244
|
export declare const checkSlotAvailabilityResponseSchema: z.ZodObject<{
|
|
244
245
|
success: z.ZodBoolean;
|
|
@@ -493,6 +494,8 @@ export declare const parkingBookingWithRelationsSchema: z.ZodObject<{
|
|
|
493
494
|
id: z.ZodNumber;
|
|
494
495
|
name: z.ZodString;
|
|
495
496
|
code: z.ZodString;
|
|
497
|
+
start_date: z.ZodString;
|
|
498
|
+
end_date: z.ZodString;
|
|
496
499
|
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
497
500
|
banner: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
498
501
|
latitude: z.ZodNullable<z.ZodNumber>;
|
|
@@ -546,6 +549,8 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
|
|
|
546
549
|
event_code: z.ZodString;
|
|
547
550
|
event_gps_latitude: z.ZodNullable<z.ZodNumber>;
|
|
548
551
|
event_gps_longitude: z.ZodNullable<z.ZodNumber>;
|
|
552
|
+
event_start_date: z.ZodString;
|
|
553
|
+
event_end_date: z.ZodString;
|
|
549
554
|
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
550
555
|
venue_name: z.ZodNullable<z.ZodString>;
|
|
551
556
|
venue_address: z.ZodNullable<z.ZodString>;
|
|
@@ -603,6 +608,8 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
|
603
608
|
event_code: z.ZodString;
|
|
604
609
|
event_gps_latitude: z.ZodNullable<z.ZodNumber>;
|
|
605
610
|
event_gps_longitude: z.ZodNullable<z.ZodNumber>;
|
|
611
|
+
event_start_date: z.ZodString;
|
|
612
|
+
event_end_date: z.ZodString;
|
|
606
613
|
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
607
614
|
venue_name: z.ZodNullable<z.ZodString>;
|
|
608
615
|
venue_address: z.ZodNullable<z.ZodString>;
|
package/dist/parkingBooking.js
CHANGED
|
@@ -465,6 +465,8 @@ export const parkingBookingWithRelationsSchema = z
|
|
|
465
465
|
id: z.number(),
|
|
466
466
|
name: z.string(),
|
|
467
467
|
code: z.string(),
|
|
468
|
+
start_date: z.string(),
|
|
469
|
+
end_date: z.string(),
|
|
468
470
|
venue_id: z.number().nullable(),
|
|
469
471
|
banner: z.record(z.string(), z.unknown()).nullable(),
|
|
470
472
|
latitude: z.number().nullable(),
|
|
@@ -555,6 +557,14 @@ export const parkingBookingDetailsDataSchema = z
|
|
|
555
557
|
description: 'GPS longitude of the event',
|
|
556
558
|
example: 2.123123
|
|
557
559
|
}),
|
|
560
|
+
event_start_date: z
|
|
561
|
+
.string()
|
|
562
|
+
.describe('The start date of the event')
|
|
563
|
+
.openapi({ example: '2025-07-01' }),
|
|
564
|
+
event_end_date: z
|
|
565
|
+
.string()
|
|
566
|
+
.describe('The end date of the event')
|
|
567
|
+
.openapi({ example: '2025-07-06' }),
|
|
558
568
|
venue_id: z.number().nullable().openapi({
|
|
559
569
|
description: 'ID of the venue',
|
|
560
570
|
example: 1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venulog/phasing-engine-schemas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-alpha.0",
|
|
4
4
|
"description": "Shared schemas and types for Phasing Engine API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"scripts": {
|
|
70
70
|
"build": "npm run clean && tsc",
|
|
71
71
|
"dev": "tsc --watch",
|
|
72
|
-
"clean": "
|
|
72
|
+
"clean": "rimraf dist",
|
|
73
73
|
"prepublishOnly": "npm run build"
|
|
74
74
|
},
|
|
75
75
|
"keywords": [
|