@venulog/phasing-engine-schemas 0.13.0-alpha.5 → 0.13.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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/parkingAreaAccess.d.ts +4 -4
- package/dist/parkingBooking.d.ts +92 -316
- package/dist/parkingBooking.js +17 -97
- package/package.json +99 -103
- package/dist/eventSitePlanCalibration.d.ts +0 -118
- package/dist/eventSitePlanCalibration.js +0 -148
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export * from './parkingBooking.js';
|
|
|
5
5
|
export * from './parkingArea.js';
|
|
6
6
|
export * from './parkingAreaLayer.js';
|
|
7
7
|
export * from './parkingAreaAccess.js';
|
|
8
|
-
export * from './eventSitePlanCalibration.js';
|
|
9
8
|
export * from './event.js';
|
|
10
9
|
export * from './accessToken.js';
|
|
11
10
|
export * from './vehiclePosition.js';
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,6 @@ export * from './parkingBooking.js';
|
|
|
6
6
|
export * from './parkingArea.js';
|
|
7
7
|
export * from './parkingAreaLayer.js';
|
|
8
8
|
export * from './parkingAreaAccess.js';
|
|
9
|
-
export * from './eventSitePlanCalibration.js';
|
|
10
9
|
export * from './event.js';
|
|
11
10
|
export * from './accessToken.js';
|
|
12
11
|
export * from './vehiclePosition.js';
|
|
@@ -132,12 +132,12 @@ export declare const updateAccessDataSchema: z.ZodObject<{
|
|
|
132
132
|
updated_at: z.ZodString;
|
|
133
133
|
event_id: z.ZodNumber;
|
|
134
134
|
is_active: z.ZodBoolean;
|
|
135
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
136
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
137
135
|
geometry: z.ZodNullable<z.ZodObject<{
|
|
138
136
|
type: z.ZodLiteral<"LineString">;
|
|
139
137
|
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
140
138
|
}, z.core.$strip>>;
|
|
139
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
140
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
141
141
|
width_meters: z.ZodNullable<z.ZodNumber>;
|
|
142
142
|
height_meters: z.ZodNullable<z.ZodNumber>;
|
|
143
143
|
linked_parking_areas: z.ZodArray<z.ZodObject<{
|
|
@@ -155,12 +155,12 @@ export declare const updateAccessResponseSchema: z.ZodObject<{
|
|
|
155
155
|
updated_at: z.ZodString;
|
|
156
156
|
event_id: z.ZodNumber;
|
|
157
157
|
is_active: z.ZodBoolean;
|
|
158
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
159
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
160
158
|
geometry: z.ZodNullable<z.ZodObject<{
|
|
161
159
|
type: z.ZodLiteral<"LineString">;
|
|
162
160
|
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
163
161
|
}, z.core.$strip>>;
|
|
162
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
163
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
164
164
|
width_meters: z.ZodNullable<z.ZodNumber>;
|
|
165
165
|
height_meters: z.ZodNullable<z.ZodNumber>;
|
|
166
166
|
linked_parking_areas: z.ZodArray<z.ZodObject<{
|
package/dist/parkingBooking.d.ts
CHANGED
|
@@ -52,31 +52,12 @@ export declare const companyDetailsSchema: z.ZodObject<{
|
|
|
52
52
|
driver_phone: z.ZodString;
|
|
53
53
|
transport_company: z.ZodOptional<z.ZodString>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
|
-
export declare const companyDetailsWithMinimalFields: z.ZodObject<{
|
|
56
|
-
hall: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
57
|
-
stand_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
58
|
-
company_name: z.ZodOptional<z.ZodString>;
|
|
59
|
-
exhibitor_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
60
|
-
departure_city: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
61
|
-
contact_name: z.ZodOptional<z.ZodString>;
|
|
62
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
63
|
-
phone: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
64
|
-
driver_name: z.ZodOptional<z.ZodString>;
|
|
65
|
-
driver_phone: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
66
|
-
transport_company: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
67
|
-
}, z.core.$strip>;
|
|
68
55
|
export declare const vehicleDetailsSchema: z.ZodObject<{
|
|
69
56
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
70
57
|
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
71
58
|
license_plate: z.ZodString;
|
|
72
59
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
73
60
|
}, z.core.$strip>;
|
|
74
|
-
export declare const partialVehicleDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
75
|
-
vehicle_type: z.ZodOptional<z.ZodEnum<typeof import("./index.js").VehicleType>>;
|
|
76
|
-
unloading_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof UnloadingType>>>;
|
|
77
|
-
license_plate: z.ZodOptional<z.ZodString>;
|
|
78
|
-
trailer_registration: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
79
|
-
}, z.core.$strip>>>;
|
|
80
61
|
export declare const parkingBookingSchema: z.ZodObject<{
|
|
81
62
|
id: z.ZodNumber;
|
|
82
63
|
status: z.ZodEnum<typeof BookingStatus>;
|
|
@@ -90,24 +71,24 @@ export declare const parkingBookingSchema: z.ZodObject<{
|
|
|
90
71
|
end_time: z.ZodNullable<z.ZodString>;
|
|
91
72
|
company_role: z.ZodNullable<z.ZodString>;
|
|
92
73
|
company: z.ZodObject<{
|
|
93
|
-
hall: z.
|
|
94
|
-
stand_number: z.ZodOptional<z.
|
|
95
|
-
company_name: z.
|
|
96
|
-
exhibitor_name: z.ZodOptional<z.
|
|
97
|
-
departure_city: z.ZodOptional<z.
|
|
98
|
-
contact_name: z.
|
|
99
|
-
email: z.
|
|
100
|
-
phone: z.
|
|
101
|
-
driver_name: z.
|
|
102
|
-
driver_phone: z.
|
|
103
|
-
transport_company: z.ZodOptional<z.
|
|
74
|
+
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
75
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
76
|
+
company_name: z.ZodString;
|
|
77
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
78
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
79
|
+
contact_name: z.ZodString;
|
|
80
|
+
email: z.ZodEmail;
|
|
81
|
+
phone: z.ZodString;
|
|
82
|
+
driver_name: z.ZodString;
|
|
83
|
+
driver_phone: z.ZodString;
|
|
84
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
vehicle: z.ZodObject<{
|
|
87
|
+
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
88
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
89
|
+
license_plate: z.ZodString;
|
|
90
|
+
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
104
91
|
}, z.core.$strip>;
|
|
105
|
-
vehicle: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
106
|
-
vehicle_type: z.ZodOptional<z.ZodEnum<typeof import("./index.js").VehicleType>>;
|
|
107
|
-
unloading_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof UnloadingType>>>;
|
|
108
|
-
license_plate: z.ZodOptional<z.ZodString>;
|
|
109
|
-
trailer_registration: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
110
|
-
}, z.core.$strip>>>;
|
|
111
92
|
entry_scanned_at: z.ZodNullable<z.ZodString>;
|
|
112
93
|
exit_scanned_at: z.ZodNullable<z.ZodString>;
|
|
113
94
|
parking_spot: z.ZodString;
|
|
@@ -133,24 +114,24 @@ export declare const eventBookingsDataSchema: z.ZodObject<{
|
|
|
133
114
|
end_time: z.ZodNullable<z.ZodString>;
|
|
134
115
|
company_role: z.ZodNullable<z.ZodString>;
|
|
135
116
|
company: z.ZodObject<{
|
|
136
|
-
hall: z.
|
|
137
|
-
stand_number: z.ZodOptional<z.
|
|
138
|
-
company_name: z.
|
|
139
|
-
exhibitor_name: z.ZodOptional<z.
|
|
140
|
-
departure_city: z.ZodOptional<z.
|
|
141
|
-
contact_name: z.
|
|
142
|
-
email: z.
|
|
143
|
-
phone: z.
|
|
144
|
-
driver_name: z.
|
|
145
|
-
driver_phone: z.
|
|
146
|
-
transport_company: z.ZodOptional<z.
|
|
117
|
+
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
118
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
119
|
+
company_name: z.ZodString;
|
|
120
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
121
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
122
|
+
contact_name: z.ZodString;
|
|
123
|
+
email: z.ZodEmail;
|
|
124
|
+
phone: z.ZodString;
|
|
125
|
+
driver_name: z.ZodString;
|
|
126
|
+
driver_phone: z.ZodString;
|
|
127
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
vehicle: z.ZodObject<{
|
|
130
|
+
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
131
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
132
|
+
license_plate: z.ZodString;
|
|
133
|
+
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
147
134
|
}, z.core.$strip>;
|
|
148
|
-
vehicle: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
149
|
-
vehicle_type: z.ZodOptional<z.ZodEnum<typeof import("./index.js").VehicleType>>;
|
|
150
|
-
unloading_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof UnloadingType>>>;
|
|
151
|
-
license_plate: z.ZodOptional<z.ZodString>;
|
|
152
|
-
trailer_registration: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
153
|
-
}, z.core.$strip>>>;
|
|
154
135
|
entry_scanned_at: z.ZodNullable<z.ZodString>;
|
|
155
136
|
exit_scanned_at: z.ZodNullable<z.ZodString>;
|
|
156
137
|
parking_spot: z.ZodString;
|
|
@@ -180,24 +161,24 @@ export declare const eventBookingsResponseSchema: z.ZodObject<{
|
|
|
180
161
|
end_time: z.ZodNullable<z.ZodString>;
|
|
181
162
|
company_role: z.ZodNullable<z.ZodString>;
|
|
182
163
|
company: z.ZodObject<{
|
|
183
|
-
hall: z.
|
|
184
|
-
stand_number: z.ZodOptional<z.
|
|
185
|
-
company_name: z.
|
|
186
|
-
exhibitor_name: z.ZodOptional<z.
|
|
187
|
-
departure_city: z.ZodOptional<z.
|
|
188
|
-
contact_name: z.
|
|
189
|
-
email: z.
|
|
190
|
-
phone: z.
|
|
191
|
-
driver_name: z.
|
|
192
|
-
driver_phone: z.
|
|
193
|
-
transport_company: z.ZodOptional<z.
|
|
164
|
+
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
165
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
166
|
+
company_name: z.ZodString;
|
|
167
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
168
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
169
|
+
contact_name: z.ZodString;
|
|
170
|
+
email: z.ZodEmail;
|
|
171
|
+
phone: z.ZodString;
|
|
172
|
+
driver_name: z.ZodString;
|
|
173
|
+
driver_phone: z.ZodString;
|
|
174
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
vehicle: z.ZodObject<{
|
|
177
|
+
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
178
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
179
|
+
license_plate: z.ZodString;
|
|
180
|
+
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
194
181
|
}, z.core.$strip>;
|
|
195
|
-
vehicle: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
196
|
-
vehicle_type: z.ZodOptional<z.ZodEnum<typeof import("./index.js").VehicleType>>;
|
|
197
|
-
unloading_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof UnloadingType>>>;
|
|
198
|
-
license_plate: z.ZodOptional<z.ZodString>;
|
|
199
|
-
trailer_registration: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
200
|
-
}, z.core.$strip>>>;
|
|
201
182
|
entry_scanned_at: z.ZodNullable<z.ZodString>;
|
|
202
183
|
exit_scanned_at: z.ZodNullable<z.ZodString>;
|
|
203
184
|
parking_spot: z.ZodString;
|
|
@@ -542,14 +523,11 @@ export declare const parkingBookingWithRelationsSchema: z.ZodObject<{
|
|
|
542
523
|
}, z.core.$strip>;
|
|
543
524
|
parking_spot: z.ZodString;
|
|
544
525
|
door: z.ZodString;
|
|
545
|
-
parking_schedule_type: z.
|
|
526
|
+
parking_schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
546
527
|
slot_key: z.ZodNullable<z.ZodString>;
|
|
547
528
|
entry_scanned_at: z.ZodNullable<z.ZodString>;
|
|
548
529
|
exit_scanned_at: z.ZodNullable<z.ZodString>;
|
|
549
530
|
is_custom_slot: z.ZodBoolean;
|
|
550
|
-
is_fast_track_access: z.ZodBoolean;
|
|
551
|
-
license_plate_image_url: z.ZodNullable<z.ZodString>;
|
|
552
|
-
applicant_badge_image_url: z.ZodNullable<z.ZodString>;
|
|
553
531
|
}, z.core.$strip>;
|
|
554
532
|
export declare const getParkingBookingDetailsParamsSchema: z.ZodObject<{
|
|
555
533
|
bookingId: z.ZodCoercedNumber<unknown>;
|
|
@@ -564,24 +542,24 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
|
|
|
564
542
|
end_time: z.ZodString;
|
|
565
543
|
company_role: z.ZodNullable<z.ZodString>;
|
|
566
544
|
company: z.ZodObject<{
|
|
567
|
-
hall: z.
|
|
568
|
-
stand_number: z.ZodOptional<z.
|
|
569
|
-
company_name: z.
|
|
570
|
-
exhibitor_name: z.ZodOptional<z.
|
|
571
|
-
departure_city: z.ZodOptional<z.
|
|
572
|
-
contact_name: z.
|
|
573
|
-
email: z.
|
|
574
|
-
phone: z.
|
|
575
|
-
driver_name: z.
|
|
576
|
-
driver_phone: z.
|
|
577
|
-
transport_company: z.ZodOptional<z.
|
|
545
|
+
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
546
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
547
|
+
company_name: z.ZodString;
|
|
548
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
549
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
550
|
+
contact_name: z.ZodString;
|
|
551
|
+
email: z.ZodEmail;
|
|
552
|
+
phone: z.ZodString;
|
|
553
|
+
driver_name: z.ZodString;
|
|
554
|
+
driver_phone: z.ZodString;
|
|
555
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
556
|
+
}, z.core.$strip>;
|
|
557
|
+
vehicle: z.ZodObject<{
|
|
558
|
+
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
559
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
560
|
+
license_plate: z.ZodString;
|
|
561
|
+
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
578
562
|
}, z.core.$strip>;
|
|
579
|
-
vehicle: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
580
|
-
vehicle_type: z.ZodOptional<z.ZodEnum<typeof import("./index.js").VehicleType>>;
|
|
581
|
-
unloading_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof UnloadingType>>>;
|
|
582
|
-
license_plate: z.ZodOptional<z.ZodString>;
|
|
583
|
-
trailer_registration: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
584
|
-
}, z.core.$strip>>>;
|
|
585
563
|
event_id: z.ZodNumber;
|
|
586
564
|
event_name: z.ZodString;
|
|
587
565
|
event_code: z.ZodString;
|
|
@@ -592,6 +570,7 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
|
|
|
592
570
|
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
593
571
|
venue_name: z.ZodNullable<z.ZodString>;
|
|
594
572
|
venue_address: z.ZodNullable<z.ZodString>;
|
|
573
|
+
request_type: z.ZodString;
|
|
595
574
|
duration: z.ZodNumber;
|
|
596
575
|
banner: z.ZodNullable<z.ZodObject<{
|
|
597
576
|
url: z.ZodURL;
|
|
@@ -605,14 +584,11 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
|
|
|
605
584
|
updated_at: z.ZodString;
|
|
606
585
|
entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
607
586
|
exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
608
|
-
slot_key: z.
|
|
587
|
+
slot_key: z.ZodString;
|
|
609
588
|
parking_spot: z.ZodString;
|
|
610
589
|
door: z.ZodString;
|
|
611
|
-
parking_schedule_type: z.
|
|
590
|
+
parking_schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
612
591
|
is_custom_slot: z.ZodBoolean;
|
|
613
|
-
is_fast_track_access: z.ZodBoolean;
|
|
614
|
-
license_plate_image_url: z.ZodNullable<z.ZodString>;
|
|
615
|
-
applicant_badge_image_url: z.ZodNullable<z.ZodString>;
|
|
616
592
|
}, z.core.$strip>;
|
|
617
593
|
export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
618
594
|
success: z.ZodBoolean;
|
|
@@ -626,24 +602,24 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
|
626
602
|
end_time: z.ZodString;
|
|
627
603
|
company_role: z.ZodNullable<z.ZodString>;
|
|
628
604
|
company: z.ZodObject<{
|
|
629
|
-
hall: z.
|
|
630
|
-
stand_number: z.ZodOptional<z.
|
|
631
|
-
company_name: z.
|
|
632
|
-
exhibitor_name: z.ZodOptional<z.
|
|
633
|
-
departure_city: z.ZodOptional<z.
|
|
634
|
-
contact_name: z.
|
|
635
|
-
email: z.
|
|
636
|
-
phone: z.
|
|
637
|
-
driver_name: z.
|
|
638
|
-
driver_phone: z.
|
|
639
|
-
transport_company: z.ZodOptional<z.
|
|
605
|
+
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
606
|
+
stand_number: z.ZodOptional<z.ZodString>;
|
|
607
|
+
company_name: z.ZodString;
|
|
608
|
+
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
609
|
+
departure_city: z.ZodOptional<z.ZodString>;
|
|
610
|
+
contact_name: z.ZodString;
|
|
611
|
+
email: z.ZodEmail;
|
|
612
|
+
phone: z.ZodString;
|
|
613
|
+
driver_name: z.ZodString;
|
|
614
|
+
driver_phone: z.ZodString;
|
|
615
|
+
transport_company: z.ZodOptional<z.ZodString>;
|
|
616
|
+
}, z.core.$strip>;
|
|
617
|
+
vehicle: z.ZodObject<{
|
|
618
|
+
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
619
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
620
|
+
license_plate: z.ZodString;
|
|
621
|
+
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
640
622
|
}, z.core.$strip>;
|
|
641
|
-
vehicle: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
642
|
-
vehicle_type: z.ZodOptional<z.ZodEnum<typeof import("./index.js").VehicleType>>;
|
|
643
|
-
unloading_method: z.ZodOptional<z.ZodOptional<z.ZodEnum<typeof UnloadingType>>>;
|
|
644
|
-
license_plate: z.ZodOptional<z.ZodString>;
|
|
645
|
-
trailer_registration: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
646
|
-
}, z.core.$strip>>>;
|
|
647
623
|
event_id: z.ZodNumber;
|
|
648
624
|
event_name: z.ZodString;
|
|
649
625
|
event_code: z.ZodString;
|
|
@@ -654,6 +630,7 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
|
654
630
|
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
655
631
|
venue_name: z.ZodNullable<z.ZodString>;
|
|
656
632
|
venue_address: z.ZodNullable<z.ZodString>;
|
|
633
|
+
request_type: z.ZodString;
|
|
657
634
|
duration: z.ZodNumber;
|
|
658
635
|
banner: z.ZodNullable<z.ZodObject<{
|
|
659
636
|
url: z.ZodURL;
|
|
@@ -667,142 +644,16 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
|
667
644
|
updated_at: z.ZodString;
|
|
668
645
|
entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
669
646
|
exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
670
|
-
slot_key: z.
|
|
647
|
+
slot_key: z.ZodString;
|
|
671
648
|
parking_spot: z.ZodString;
|
|
672
649
|
door: z.ZodString;
|
|
673
|
-
parking_schedule_type: z.
|
|
650
|
+
parking_schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
674
651
|
is_custom_slot: z.ZodBoolean;
|
|
675
|
-
is_fast_track_access: z.ZodBoolean;
|
|
676
|
-
license_plate_image_url: z.ZodNullable<z.ZodString>;
|
|
677
|
-
applicant_badge_image_url: z.ZodNullable<z.ZodString>;
|
|
678
652
|
}, z.core.$strip>;
|
|
679
653
|
}, z.core.$strip>;
|
|
680
654
|
export declare const getParkingBookingDetailsByTokenBodySchema: z.ZodObject<{
|
|
681
655
|
access_token: z.ZodString;
|
|
682
656
|
}, z.core.$strip>;
|
|
683
|
-
export declare const parkingBookingDetailsByTokenDataSchema: z.ZodObject<{
|
|
684
|
-
qr_token: z.ZodNullable<z.ZodString>;
|
|
685
|
-
id: z.ZodNumber;
|
|
686
|
-
booking_id: z.ZodNumber;
|
|
687
|
-
status: z.ZodString;
|
|
688
|
-
booking_date: z.ZodString;
|
|
689
|
-
start_time: z.ZodString;
|
|
690
|
-
end_time: z.ZodString;
|
|
691
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
692
|
-
event_id: z.ZodNumber;
|
|
693
|
-
event_name: z.ZodString;
|
|
694
|
-
event_code: z.ZodString;
|
|
695
|
-
event_gps_latitude: z.ZodNullable<z.ZodNumber>;
|
|
696
|
-
event_gps_longitude: z.ZodNullable<z.ZodNumber>;
|
|
697
|
-
event_start_date: z.ZodString;
|
|
698
|
-
event_end_date: z.ZodString;
|
|
699
|
-
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
700
|
-
venue_name: z.ZodNullable<z.ZodString>;
|
|
701
|
-
venue_address: z.ZodNullable<z.ZodString>;
|
|
702
|
-
duration: z.ZodNumber;
|
|
703
|
-
banner: z.ZodNullable<z.ZodObject<{
|
|
704
|
-
url: z.ZodURL;
|
|
705
|
-
name: z.ZodOptional<z.ZodString>;
|
|
706
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
707
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
708
|
-
type: z.ZodOptional<z.ZodString>;
|
|
709
|
-
path: z.ZodOptional<z.ZodString>;
|
|
710
|
-
}, z.core.$strip>>;
|
|
711
|
-
created_at: z.ZodString;
|
|
712
|
-
updated_at: z.ZodString;
|
|
713
|
-
entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
714
|
-
exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
715
|
-
parking_spot: z.ZodString;
|
|
716
|
-
door: z.ZodString;
|
|
717
|
-
parking_schedule_type: z.ZodNullable<z.ZodEnum<typeof ParkingAreaScheduleType>>;
|
|
718
|
-
is_custom_slot: z.ZodBoolean;
|
|
719
|
-
is_fast_track_access: z.ZodBoolean;
|
|
720
|
-
license_plate_image_url: z.ZodNullable<z.ZodString>;
|
|
721
|
-
applicant_badge_image_url: z.ZodNullable<z.ZodString>;
|
|
722
|
-
company: z.ZodObject<{
|
|
723
|
-
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
724
|
-
stand_number: z.ZodOptional<z.ZodString>;
|
|
725
|
-
company_name: z.ZodString;
|
|
726
|
-
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
727
|
-
departure_city: z.ZodOptional<z.ZodString>;
|
|
728
|
-
contact_name: z.ZodString;
|
|
729
|
-
email: z.ZodEmail;
|
|
730
|
-
phone: z.ZodString;
|
|
731
|
-
driver_name: z.ZodString;
|
|
732
|
-
driver_phone: z.ZodString;
|
|
733
|
-
transport_company: z.ZodOptional<z.ZodString>;
|
|
734
|
-
}, z.core.$strip>;
|
|
735
|
-
vehicle: z.ZodObject<{
|
|
736
|
-
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
737
|
-
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
738
|
-
license_plate: z.ZodString;
|
|
739
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
740
|
-
}, z.core.$strip>;
|
|
741
|
-
slot_key: z.ZodString;
|
|
742
|
-
}, z.core.$strip>;
|
|
743
|
-
export declare const getParkingBookingDetailsByTokenResponseSchema: z.ZodObject<{
|
|
744
|
-
success: z.ZodBoolean;
|
|
745
|
-
data: z.ZodObject<{
|
|
746
|
-
qr_token: z.ZodNullable<z.ZodString>;
|
|
747
|
-
id: z.ZodNumber;
|
|
748
|
-
booking_id: z.ZodNumber;
|
|
749
|
-
status: z.ZodString;
|
|
750
|
-
booking_date: z.ZodString;
|
|
751
|
-
start_time: z.ZodString;
|
|
752
|
-
end_time: z.ZodString;
|
|
753
|
-
company_role: z.ZodNullable<z.ZodString>;
|
|
754
|
-
event_id: z.ZodNumber;
|
|
755
|
-
event_name: z.ZodString;
|
|
756
|
-
event_code: z.ZodString;
|
|
757
|
-
event_gps_latitude: z.ZodNullable<z.ZodNumber>;
|
|
758
|
-
event_gps_longitude: z.ZodNullable<z.ZodNumber>;
|
|
759
|
-
event_start_date: z.ZodString;
|
|
760
|
-
event_end_date: z.ZodString;
|
|
761
|
-
venue_id: z.ZodNullable<z.ZodNumber>;
|
|
762
|
-
venue_name: z.ZodNullable<z.ZodString>;
|
|
763
|
-
venue_address: z.ZodNullable<z.ZodString>;
|
|
764
|
-
duration: z.ZodNumber;
|
|
765
|
-
banner: z.ZodNullable<z.ZodObject<{
|
|
766
|
-
url: z.ZodURL;
|
|
767
|
-
name: z.ZodOptional<z.ZodString>;
|
|
768
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
769
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
770
|
-
type: z.ZodOptional<z.ZodString>;
|
|
771
|
-
path: z.ZodOptional<z.ZodString>;
|
|
772
|
-
}, z.core.$strip>>;
|
|
773
|
-
created_at: z.ZodString;
|
|
774
|
-
updated_at: z.ZodString;
|
|
775
|
-
entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
776
|
-
exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
777
|
-
parking_spot: z.ZodString;
|
|
778
|
-
door: z.ZodString;
|
|
779
|
-
parking_schedule_type: z.ZodNullable<z.ZodEnum<typeof ParkingAreaScheduleType>>;
|
|
780
|
-
is_custom_slot: z.ZodBoolean;
|
|
781
|
-
is_fast_track_access: z.ZodBoolean;
|
|
782
|
-
license_plate_image_url: z.ZodNullable<z.ZodString>;
|
|
783
|
-
applicant_badge_image_url: z.ZodNullable<z.ZodString>;
|
|
784
|
-
company: z.ZodObject<{
|
|
785
|
-
hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
786
|
-
stand_number: z.ZodOptional<z.ZodString>;
|
|
787
|
-
company_name: z.ZodString;
|
|
788
|
-
exhibitor_name: z.ZodOptional<z.ZodString>;
|
|
789
|
-
departure_city: z.ZodOptional<z.ZodString>;
|
|
790
|
-
contact_name: z.ZodString;
|
|
791
|
-
email: z.ZodEmail;
|
|
792
|
-
phone: z.ZodString;
|
|
793
|
-
driver_name: z.ZodString;
|
|
794
|
-
driver_phone: z.ZodString;
|
|
795
|
-
transport_company: z.ZodOptional<z.ZodString>;
|
|
796
|
-
}, z.core.$strip>;
|
|
797
|
-
vehicle: z.ZodObject<{
|
|
798
|
-
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
799
|
-
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
800
|
-
license_plate: z.ZodString;
|
|
801
|
-
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
802
|
-
}, z.core.$strip>;
|
|
803
|
-
slot_key: z.ZodString;
|
|
804
|
-
}, z.core.$strip>;
|
|
805
|
-
}, z.core.$strip>;
|
|
806
657
|
export declare const getParkingBookingDetailsByQrBodySchema: z.ZodObject<{
|
|
807
658
|
qr_token: z.ZodString;
|
|
808
659
|
scanner_latitude: z.ZodOptional<z.ZodNumber>;
|
|
@@ -963,80 +814,10 @@ export declare const updateBookingTimeResponseSchema: z.ZodObject<{
|
|
|
963
814
|
updated_by: z.ZodNullable<z.ZodString>;
|
|
964
815
|
}, z.core.$strip>;
|
|
965
816
|
}, z.core.$strip>;
|
|
966
|
-
export declare const createFastTrackBookingBodySchema: z.ZodObject<{
|
|
967
|
-
phone_number: z.ZodString;
|
|
968
|
-
event_id: z.ZodNumber;
|
|
969
|
-
license_plate_image_url: z.ZodOptional<z.ZodURL>;
|
|
970
|
-
applicant_badge_image_url: z.ZodOptional<z.ZodURL>;
|
|
971
|
-
}, z.core.$strip>;
|
|
972
|
-
export declare const createFastTrackBookingDataSchema: z.ZodObject<{
|
|
973
|
-
id: z.ZodNumber;
|
|
974
|
-
status: z.ZodString;
|
|
975
|
-
company: z.ZodObject<{
|
|
976
|
-
hall: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
977
|
-
stand_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
978
|
-
company_name: z.ZodOptional<z.ZodString>;
|
|
979
|
-
exhibitor_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
980
|
-
departure_city: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
981
|
-
contact_name: z.ZodOptional<z.ZodString>;
|
|
982
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
983
|
-
phone: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
984
|
-
driver_name: z.ZodOptional<z.ZodString>;
|
|
985
|
-
driver_phone: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
986
|
-
transport_company: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
987
|
-
}, z.core.$strip>;
|
|
988
|
-
booking_date: z.ZodString;
|
|
989
|
-
start_time: z.ZodString;
|
|
990
|
-
end_time: z.ZodString;
|
|
991
|
-
event_id: z.ZodNumber;
|
|
992
|
-
parking_spot: z.ZodString;
|
|
993
|
-
license_plate_image_url: z.ZodNullable<z.ZodString>;
|
|
994
|
-
applicant_badge_image_url: z.ZodNullable<z.ZodString>;
|
|
995
|
-
is_fast_track_access: z.ZodBoolean;
|
|
996
|
-
created_at: z.ZodString;
|
|
997
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
998
|
-
parking_schedule_type: z.ZodNullable<z.ZodEnum<typeof ParkingAreaScheduleType>>;
|
|
999
|
-
door: z.ZodString;
|
|
1000
|
-
}, z.core.$strip>;
|
|
1001
|
-
export declare const createFastTrackBookingResponseSchema: z.ZodObject<{
|
|
1002
|
-
success: z.ZodBoolean;
|
|
1003
|
-
message: z.ZodString;
|
|
1004
|
-
data: z.ZodObject<{
|
|
1005
|
-
id: z.ZodNumber;
|
|
1006
|
-
status: z.ZodString;
|
|
1007
|
-
company: z.ZodObject<{
|
|
1008
|
-
hall: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
1009
|
-
stand_number: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1010
|
-
company_name: z.ZodOptional<z.ZodString>;
|
|
1011
|
-
exhibitor_name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1012
|
-
departure_city: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1013
|
-
contact_name: z.ZodOptional<z.ZodString>;
|
|
1014
|
-
email: z.ZodOptional<z.ZodEmail>;
|
|
1015
|
-
phone: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
1016
|
-
driver_name: z.ZodOptional<z.ZodString>;
|
|
1017
|
-
driver_phone: z.ZodNonOptional<z.ZodOptional<z.ZodString>>;
|
|
1018
|
-
transport_company: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1019
|
-
}, z.core.$strip>;
|
|
1020
|
-
booking_date: z.ZodString;
|
|
1021
|
-
start_time: z.ZodString;
|
|
1022
|
-
end_time: z.ZodString;
|
|
1023
|
-
event_id: z.ZodNumber;
|
|
1024
|
-
parking_spot: z.ZodString;
|
|
1025
|
-
license_plate_image_url: z.ZodNullable<z.ZodString>;
|
|
1026
|
-
applicant_badge_image_url: z.ZodNullable<z.ZodString>;
|
|
1027
|
-
is_fast_track_access: z.ZodBoolean;
|
|
1028
|
-
created_at: z.ZodString;
|
|
1029
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
1030
|
-
parking_schedule_type: z.ZodNullable<z.ZodEnum<typeof ParkingAreaScheduleType>>;
|
|
1031
|
-
door: z.ZodString;
|
|
1032
|
-
}, z.core.$strip>;
|
|
1033
|
-
}, z.core.$strip>;
|
|
1034
817
|
export type Geometry = z.infer<typeof geometrySchema>;
|
|
1035
818
|
export type ParkingBooking = z.infer<typeof parkingBookingSchema>;
|
|
1036
819
|
export type CompanyDetails = z.infer<typeof companyDetailsSchema>;
|
|
1037
|
-
export type CompanyDetailsWithMinimalFields = z.infer<typeof companyDetailsWithMinimalFields>;
|
|
1038
820
|
export type VehicleDetails = z.infer<typeof vehicleDetailsSchema>;
|
|
1039
|
-
export type PartialVehicleDetails = z.infer<typeof partialVehicleDetails>;
|
|
1040
821
|
export type EventBookingsData = z.infer<typeof eventBookingsDataSchema>;
|
|
1041
822
|
export type CheckSlotAvailabilityBody = z.infer<typeof checkSlotAvailabilityBodySchema>;
|
|
1042
823
|
export type CheckSlotAvailabilityData = z.infer<typeof availableTimeSlotV2Schema>;
|
|
@@ -1063,8 +844,6 @@ export type GetBookingDetailsParams = z.infer<typeof getParkingBookingDetailsPar
|
|
|
1063
844
|
export type GetBookingDetailsData = z.infer<typeof parkingBookingDetailsDataSchema>;
|
|
1064
845
|
export type GetBookingDetailsResponse = z.infer<typeof getParkingBookingDetailsResponseSchema>;
|
|
1065
846
|
export type GetBookingDetailsByTokenBody = z.infer<typeof getParkingBookingDetailsByTokenBodySchema>;
|
|
1066
|
-
export type ParkingBookingDetailsByTokenData = z.infer<typeof parkingBookingDetailsByTokenDataSchema>;
|
|
1067
|
-
export type GetParkingBookingDetailsByTokenResponse = z.infer<typeof getParkingBookingDetailsByTokenResponseSchema>;
|
|
1068
847
|
export type GetBookingDetailsByQrBody = z.infer<typeof getParkingBookingDetailsByQrBodySchema>;
|
|
1069
848
|
export type ConfirmBookingData = z.infer<typeof confirmBookingDataSchema>;
|
|
1070
849
|
export type ConfirmBookingDataResponse = z.infer<typeof confirmBookingResponseSchema>;
|
|
@@ -1077,6 +856,3 @@ export type UpdateBookingTimeBody = z.infer<typeof updateBookingTimeBodySchema>;
|
|
|
1077
856
|
export type UpdateBookingTimeData = z.infer<typeof updateBookingTimeDataSchema>;
|
|
1078
857
|
export type UpdateBookingTimeResponse = z.infer<typeof updateBookingTimeResponseSchema>;
|
|
1079
858
|
export type UpdateParkingBookingResponse = z.infer<typeof updateParkingBookingResponseSchema>;
|
|
1080
|
-
export type CreateFastTrackBookingBody = z.infer<typeof createFastTrackBookingBodySchema>;
|
|
1081
|
-
export type CreateFastTrackBookingData = z.infer<typeof createFastTrackBookingDataSchema>;
|
|
1082
|
-
export type CreateFastTrackBookingResponse = z.infer<typeof createFastTrackBookingResponseSchema>;
|
package/dist/parkingBooking.js
CHANGED
|
@@ -133,13 +133,6 @@ export const companyDetailsSchema = z
|
|
|
133
133
|
})
|
|
134
134
|
})
|
|
135
135
|
.openapi('CompanyDetails');
|
|
136
|
-
export const companyDetailsWithMinimalFields = companyDetailsSchema
|
|
137
|
-
.partial()
|
|
138
|
-
.required({
|
|
139
|
-
phone: true,
|
|
140
|
-
driver_phone: true
|
|
141
|
-
})
|
|
142
|
-
.openapi('CompanyDetailsWithMandatoryFields');
|
|
143
136
|
export const vehicleDetailsSchema = z
|
|
144
137
|
.object({
|
|
145
138
|
vehicle_type: vehicleTypeSchema,
|
|
@@ -157,11 +150,6 @@ export const vehicleDetailsSchema = z
|
|
|
157
150
|
})
|
|
158
151
|
})
|
|
159
152
|
.openapi('VehicleDetails');
|
|
160
|
-
export const partialVehicleDetails = vehicleDetailsSchema
|
|
161
|
-
.partial()
|
|
162
|
-
.optional()
|
|
163
|
-
.nullable()
|
|
164
|
-
.openapi('PartialVehicleDetails');
|
|
165
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
|
|
166
154
|
// so that we have full timezone support from db level
|
|
167
155
|
export const parkingBookingSchema = z.object({
|
|
@@ -176,8 +164,8 @@ export const parkingBookingSchema = z.object({
|
|
|
176
164
|
start_time: z.string().nullable(),
|
|
177
165
|
end_time: z.string().nullable(),
|
|
178
166
|
company_role: z.string().nullable(),
|
|
179
|
-
company:
|
|
180
|
-
vehicle:
|
|
167
|
+
company: companyDetailsSchema,
|
|
168
|
+
vehicle: vehicleDetailsSchema,
|
|
181
169
|
entry_scanned_at: z.string().nullable(),
|
|
182
170
|
exit_scanned_at: z.string().nullable(),
|
|
183
171
|
parking_spot: z.string(),
|
|
@@ -525,14 +513,11 @@ export const parkingBookingWithRelationsSchema = z
|
|
|
525
513
|
}),
|
|
526
514
|
parking_spot: z.string(),
|
|
527
515
|
door: z.string(),
|
|
528
|
-
parking_schedule_type: z.enum(ParkingAreaScheduleType)
|
|
516
|
+
parking_schedule_type: z.enum(ParkingAreaScheduleType),
|
|
529
517
|
slot_key: z.string().nullable(),
|
|
530
518
|
entry_scanned_at: z.string().nullable(),
|
|
531
519
|
exit_scanned_at: z.string().nullable(),
|
|
532
|
-
is_custom_slot: z.boolean()
|
|
533
|
-
is_fast_track_access: z.boolean(),
|
|
534
|
-
license_plate_image_url: z.string().nullable(),
|
|
535
|
-
applicant_badge_image_url: z.string().nullable()
|
|
520
|
+
is_custom_slot: z.boolean()
|
|
536
521
|
})
|
|
537
522
|
.openapi('ParkingBookingWithRelations');
|
|
538
523
|
// ------------------------------
|
|
@@ -579,8 +564,12 @@ export const parkingBookingDetailsDataSchema = z
|
|
|
579
564
|
description: 'Company role for the booking',
|
|
580
565
|
example: 'exhibitor'
|
|
581
566
|
}),
|
|
582
|
-
company:
|
|
583
|
-
|
|
567
|
+
company: companyDetailsSchema.openapi({
|
|
568
|
+
description: 'Company details'
|
|
569
|
+
}),
|
|
570
|
+
vehicle: vehicleDetailsSchema.openapi({
|
|
571
|
+
description: 'Vehicle details'
|
|
572
|
+
}),
|
|
584
573
|
event_id: z.number().openapi({
|
|
585
574
|
description: 'ID of the event',
|
|
586
575
|
example: 1
|
|
@@ -621,6 +610,10 @@ export const parkingBookingDetailsDataSchema = z
|
|
|
621
610
|
description: 'Address of the venue',
|
|
622
611
|
example: '1 Pl. de la Prte de Versailles, 75015 Paris, France'
|
|
623
612
|
}),
|
|
613
|
+
request_type: z.string().openapi({
|
|
614
|
+
description: 'Type of parking area schedule (assembly/dismantling)',
|
|
615
|
+
example: 'assembly'
|
|
616
|
+
}),
|
|
624
617
|
duration: z.number().openapi({
|
|
625
618
|
description: 'Duration of the booking in minutes',
|
|
626
619
|
example: 30
|
|
@@ -649,7 +642,7 @@ export const parkingBookingDetailsDataSchema = z
|
|
|
649
642
|
description: 'Timestamp when exit was scanned',
|
|
650
643
|
example: '2025-12-15T08:25:00.000Z'
|
|
651
644
|
}),
|
|
652
|
-
slot_key: z.string().
|
|
645
|
+
slot_key: z.string().openapi({
|
|
653
646
|
description: 'Unique key identifying the booked time slot',
|
|
654
647
|
example: 'MainEntrance_2025-12-15_08:00'
|
|
655
648
|
}),
|
|
@@ -661,25 +654,13 @@ export const parkingBookingDetailsDataSchema = z
|
|
|
661
654
|
description: 'Assigned door for the booking',
|
|
662
655
|
example: 'North Gate'
|
|
663
656
|
}),
|
|
664
|
-
parking_schedule_type: z.enum(ParkingAreaScheduleType).
|
|
657
|
+
parking_schedule_type: z.enum(ParkingAreaScheduleType).openapi({
|
|
665
658
|
description: 'Type of parking area schedule',
|
|
666
659
|
example: 'assembly'
|
|
667
660
|
}),
|
|
668
661
|
is_custom_slot: z.boolean().openapi({
|
|
669
662
|
description: 'Indicates if the booking is for a custom time slot',
|
|
670
663
|
example: false
|
|
671
|
-
}),
|
|
672
|
-
is_fast_track_access: z.boolean().openapi({
|
|
673
|
-
description: 'Indicates if the booking has fast track access',
|
|
674
|
-
example: true
|
|
675
|
-
}),
|
|
676
|
-
license_plate_image_url: z.string().nullable().openapi({
|
|
677
|
-
description: 'URL of the license plate image',
|
|
678
|
-
example: 'https://example.com/license-plate.jpg'
|
|
679
|
-
}),
|
|
680
|
-
applicant_badge_image_url: z.string().nullable().openapi({
|
|
681
|
-
description: 'URL of the applicant badge image',
|
|
682
|
-
example: 'https://example.com/applicant-badge.jpg'
|
|
683
664
|
})
|
|
684
665
|
})
|
|
685
666
|
.openapi('ParkingBookingDetailsData');
|
|
@@ -695,25 +676,6 @@ export const getParkingBookingDetailsByTokenBodySchema = z
|
|
|
695
676
|
})
|
|
696
677
|
})
|
|
697
678
|
.openapi('GetParkingBookingDetailsByTokenBody');
|
|
698
|
-
// Extends parkingBookingDetailsDataSchema with stricter validation:
|
|
699
|
-
// - company: full schema (not partial)
|
|
700
|
-
// - vehicle: full schema (not partial)
|
|
701
|
-
// - slot_key: non-nullable
|
|
702
|
-
export const parkingBookingDetailsByTokenDataSchema = parkingBookingDetailsDataSchema
|
|
703
|
-
.extend({
|
|
704
|
-
company: companyDetailsSchema.openapi({
|
|
705
|
-
description: 'Company details (all fields required)'
|
|
706
|
-
}),
|
|
707
|
-
vehicle: vehicleDetailsSchema.openapi({
|
|
708
|
-
description: 'Vehicle details (all fields required)'
|
|
709
|
-
}),
|
|
710
|
-
slot_key: z.string().openapi({
|
|
711
|
-
description: 'Unique key identifying the booked time slot',
|
|
712
|
-
example: 'MainEntrance_2025-12-15_08:00'
|
|
713
|
-
})
|
|
714
|
-
})
|
|
715
|
-
.openapi('ParkingBookingDetailsByTokenData');
|
|
716
|
-
export const getParkingBookingDetailsByTokenResponseSchema = createSuccessResponseSchema(parkingBookingDetailsByTokenDataSchema, 'GetParkingBookingDetailsByTokenResponse', 'Booking details retrieved by access token with complete company and vehicle information');
|
|
717
679
|
// ------------------------------
|
|
718
680
|
// Get booking details by QR schemas
|
|
719
681
|
// ------------------------------
|
|
@@ -737,6 +699,7 @@ export const getParkingBookingDetailsByQrBodySchema = z
|
|
|
737
699
|
})
|
|
738
700
|
})
|
|
739
701
|
.openapi('GetBookingDetailsByQrBody');
|
|
702
|
+
// ------------------------------
|
|
740
703
|
// Export All Parking Bookings
|
|
741
704
|
// ------------------------------
|
|
742
705
|
export const exportBookingDataSchema = z
|
|
@@ -977,46 +940,3 @@ export const updateBookingTimeDataSchema = z
|
|
|
977
940
|
})
|
|
978
941
|
.openapi('UpdateBookingTimeData');
|
|
979
942
|
export const updateBookingTimeResponseSchema = createMessageDataResponseSchema(updateBookingTimeDataSchema, 'UpdateBookingTimeResponse', 'Booking time updated successfully', 'Details of the updated booking time');
|
|
980
|
-
// ------------------------------
|
|
981
|
-
// Fast-Track Parking Booking schemas
|
|
982
|
-
// ------------------------------
|
|
983
|
-
export const createFastTrackBookingBodySchema = z
|
|
984
|
-
.object({
|
|
985
|
-
phone_number: z.string().min(1, 'Phone number is required').openapi({
|
|
986
|
-
description: 'Contact phone number for fast-track booking',
|
|
987
|
-
example: '+33123456789'
|
|
988
|
-
}),
|
|
989
|
-
event_id: z.number().positive().openapi({
|
|
990
|
-
description: 'ID of the event for the fast-track booking',
|
|
991
|
-
example: 1
|
|
992
|
-
}),
|
|
993
|
-
license_plate_image_url: z.url().optional().openapi({
|
|
994
|
-
description: 'URL of the license plate image (optional)',
|
|
995
|
-
example: 'https://example.com/plates/abc123.jpg'
|
|
996
|
-
}),
|
|
997
|
-
applicant_badge_image_url: z.url().optional().openapi({
|
|
998
|
-
description: 'URL of the applicant badge image (optional)',
|
|
999
|
-
example: 'https://example.com/badges/applicant456.jpg'
|
|
1000
|
-
})
|
|
1001
|
-
})
|
|
1002
|
-
.openapi('CreateFastTrackBookingBody');
|
|
1003
|
-
export const createFastTrackBookingDataSchema = z
|
|
1004
|
-
.object({
|
|
1005
|
-
id: z.number(),
|
|
1006
|
-
status: z.string(),
|
|
1007
|
-
company: companyDetailsWithMinimalFields,
|
|
1008
|
-
booking_date: z.string(),
|
|
1009
|
-
start_time: z.string(),
|
|
1010
|
-
end_time: z.string(),
|
|
1011
|
-
event_id: z.number(),
|
|
1012
|
-
parking_spot: z.string(),
|
|
1013
|
-
license_plate_image_url: z.string().nullable(),
|
|
1014
|
-
applicant_badge_image_url: z.string().nullable(),
|
|
1015
|
-
is_fast_track_access: z.boolean(),
|
|
1016
|
-
created_at: z.string(),
|
|
1017
|
-
created_by: z.string().nullable(),
|
|
1018
|
-
parking_schedule_type: z.enum(ParkingAreaScheduleType).nullable(),
|
|
1019
|
-
door: z.string()
|
|
1020
|
-
})
|
|
1021
|
-
.openapi('CreateFastTrackBookingData');
|
|
1022
|
-
export const createFastTrackBookingResponseSchema = createMessageDataResponseSchema(createFastTrackBookingDataSchema, 'CreateFastTrackBookingResponse', 'Fast-track parking booking created successfully', 'Details of the created fast-track booking');
|
package/package.json
CHANGED
|
@@ -1,103 +1,99 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venulog/phasing-engine-schemas",
|
|
3
|
-
"version": "0.13.
|
|
4
|
-
"description": "Shared schemas and types for Phasing Engine API",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./auth": {
|
|
14
|
-
"types": "./dist/auth.d.ts",
|
|
15
|
-
"import": "./dist/auth.js"
|
|
16
|
-
},
|
|
17
|
-
"./common": {
|
|
18
|
-
"types": "./dist/common.d.ts",
|
|
19
|
-
"import": "./dist/common.js"
|
|
20
|
-
},
|
|
21
|
-
"./pagination": {
|
|
22
|
-
"types": "./dist/pagination.d.ts",
|
|
23
|
-
"import": "./dist/pagination.js"
|
|
24
|
-
},
|
|
25
|
-
"./parkingBooking": {
|
|
26
|
-
"types": "./dist/parkingBooking.d.ts",
|
|
27
|
-
"import": "./dist/parkingBooking.js"
|
|
28
|
-
},
|
|
29
|
-
"./event": {
|
|
30
|
-
"types": "./dist/event.d.ts",
|
|
31
|
-
"import": "./dist/event.js"
|
|
32
|
-
},
|
|
33
|
-
"./parkingArea": {
|
|
34
|
-
"types": "./dist/parkingArea.d.ts",
|
|
35
|
-
"import": "./dist/parkingArea.js"
|
|
36
|
-
},
|
|
37
|
-
"./parkingAreaLayer": {
|
|
38
|
-
"types": "./dist/parkingAreaLayer.d.ts",
|
|
39
|
-
"import": "./dist/parkingAreaLayer.js"
|
|
40
|
-
},
|
|
41
|
-
"./parkingAreaAccess": {
|
|
42
|
-
"types": "./dist/parkingAreaAccess.d.ts",
|
|
43
|
-
"import": "./dist/parkingAreaAccess.js"
|
|
44
|
-
},
|
|
45
|
-
"./enums": {
|
|
46
|
-
"types": "./dist/enums/index.d.ts",
|
|
47
|
-
"import": "./dist/enums/index.js"
|
|
48
|
-
},
|
|
49
|
-
"./accessToken": {
|
|
50
|
-
"types": "./dist/accessToken.d.ts",
|
|
51
|
-
"import": "./dist/accessToken.js"
|
|
52
|
-
},
|
|
53
|
-
"./vehiclePosition": {
|
|
54
|
-
"types": "./dist/vehiclePosition.d.ts",
|
|
55
|
-
"import": "./dist/vehiclePosition.js"
|
|
56
|
-
},
|
|
57
|
-
"./camera": {
|
|
58
|
-
"types": "./dist/camera.d.ts",
|
|
59
|
-
"import": "./dist/camera.js"
|
|
60
|
-
},
|
|
61
|
-
"./simulation": {
|
|
62
|
-
"types": "./dist/simulation.d.ts",
|
|
63
|
-
"import": "./dist/simulation.js"
|
|
64
|
-
},
|
|
65
|
-
"./exhibitor": {
|
|
66
|
-
"types": "./dist/exhibitor.d.ts",
|
|
67
|
-
"import": "./dist/exhibitor.js"
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"url": "git+https://github.com/manaty/phasing_engine.git",
|
|
101
|
-
"directory": "packages/phasing-schemas"
|
|
102
|
-
}
|
|
103
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@venulog/phasing-engine-schemas",
|
|
3
|
+
"version": "0.13.1",
|
|
4
|
+
"description": "Shared schemas and types for Phasing Engine API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./auth": {
|
|
14
|
+
"types": "./dist/auth.d.ts",
|
|
15
|
+
"import": "./dist/auth.js"
|
|
16
|
+
},
|
|
17
|
+
"./common": {
|
|
18
|
+
"types": "./dist/common.d.ts",
|
|
19
|
+
"import": "./dist/common.js"
|
|
20
|
+
},
|
|
21
|
+
"./pagination": {
|
|
22
|
+
"types": "./dist/pagination.d.ts",
|
|
23
|
+
"import": "./dist/pagination.js"
|
|
24
|
+
},
|
|
25
|
+
"./parkingBooking": {
|
|
26
|
+
"types": "./dist/parkingBooking.d.ts",
|
|
27
|
+
"import": "./dist/parkingBooking.js"
|
|
28
|
+
},
|
|
29
|
+
"./event": {
|
|
30
|
+
"types": "./dist/event.d.ts",
|
|
31
|
+
"import": "./dist/event.js"
|
|
32
|
+
},
|
|
33
|
+
"./parkingArea": {
|
|
34
|
+
"types": "./dist/parkingArea.d.ts",
|
|
35
|
+
"import": "./dist/parkingArea.js"
|
|
36
|
+
},
|
|
37
|
+
"./parkingAreaLayer": {
|
|
38
|
+
"types": "./dist/parkingAreaLayer.d.ts",
|
|
39
|
+
"import": "./dist/parkingAreaLayer.js"
|
|
40
|
+
},
|
|
41
|
+
"./parkingAreaAccess": {
|
|
42
|
+
"types": "./dist/parkingAreaAccess.d.ts",
|
|
43
|
+
"import": "./dist/parkingAreaAccess.js"
|
|
44
|
+
},
|
|
45
|
+
"./enums": {
|
|
46
|
+
"types": "./dist/enums/index.d.ts",
|
|
47
|
+
"import": "./dist/enums/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./accessToken": {
|
|
50
|
+
"types": "./dist/accessToken.d.ts",
|
|
51
|
+
"import": "./dist/accessToken.js"
|
|
52
|
+
},
|
|
53
|
+
"./vehiclePosition": {
|
|
54
|
+
"types": "./dist/vehiclePosition.d.ts",
|
|
55
|
+
"import": "./dist/vehiclePosition.js"
|
|
56
|
+
},
|
|
57
|
+
"./camera": {
|
|
58
|
+
"types": "./dist/camera.d.ts",
|
|
59
|
+
"import": "./dist/camera.js"
|
|
60
|
+
},
|
|
61
|
+
"./simulation": {
|
|
62
|
+
"types": "./dist/simulation.d.ts",
|
|
63
|
+
"import": "./dist/simulation.js"
|
|
64
|
+
},
|
|
65
|
+
"./exhibitor": {
|
|
66
|
+
"types": "./dist/exhibitor.d.ts",
|
|
67
|
+
"import": "./dist/exhibitor.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"files": [
|
|
71
|
+
"dist"
|
|
72
|
+
],
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "npm run clean && tsc",
|
|
75
|
+
"dev": "tsc --watch",
|
|
76
|
+
"clean": "rm -rf dist",
|
|
77
|
+
"prepublishOnly": "npm run build"
|
|
78
|
+
},
|
|
79
|
+
"keywords": [
|
|
80
|
+
"schemas",
|
|
81
|
+
"validation",
|
|
82
|
+
"types",
|
|
83
|
+
"zod",
|
|
84
|
+
"phasing-engine"
|
|
85
|
+
],
|
|
86
|
+
"license": "MIT",
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@asteasolutions/zod-to-openapi": "^8.1.0",
|
|
89
|
+
"zod": "^4.1.13"
|
|
90
|
+
},
|
|
91
|
+
"devDependencies": {
|
|
92
|
+
"typescript": "^5.6.3"
|
|
93
|
+
},
|
|
94
|
+
"repository": {
|
|
95
|
+
"type": "git",
|
|
96
|
+
"url": "git+https://github.com/manaty/phasing_engine.git",
|
|
97
|
+
"directory": "packages/phasing-schemas"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { z } from './zod.js';
|
|
2
|
-
export declare const eventSitePlanCalibrationAnchorSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodNumber;
|
|
4
|
-
event_id: z.ZodNumber;
|
|
5
|
-
name: z.ZodString;
|
|
6
|
-
latitude: z.ZodNumber;
|
|
7
|
-
longitude: z.ZodNumber;
|
|
8
|
-
site_plan_x: z.ZodNumber;
|
|
9
|
-
site_plan_y: z.ZodNumber;
|
|
10
|
-
is_active: z.ZodBoolean;
|
|
11
|
-
created_at: z.ZodString;
|
|
12
|
-
updated_at: z.ZodString;
|
|
13
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
14
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
export declare const getEventSitePlanCalibrationsQuerySchema: z.ZodObject<{
|
|
17
|
-
eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export declare const getEventSitePlanCalibrationsDataSchema: z.ZodObject<{
|
|
20
|
-
event_id: z.ZodNumber;
|
|
21
|
-
anchors: z.ZodArray<z.ZodObject<{
|
|
22
|
-
id: z.ZodNumber;
|
|
23
|
-
event_id: z.ZodNumber;
|
|
24
|
-
name: z.ZodString;
|
|
25
|
-
latitude: z.ZodNumber;
|
|
26
|
-
longitude: z.ZodNumber;
|
|
27
|
-
site_plan_x: z.ZodNumber;
|
|
28
|
-
site_plan_y: z.ZodNumber;
|
|
29
|
-
is_active: z.ZodBoolean;
|
|
30
|
-
created_at: z.ZodString;
|
|
31
|
-
updated_at: z.ZodString;
|
|
32
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
33
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, z.core.$strip>>;
|
|
35
|
-
total_count: z.ZodNumber;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
export declare const getEventSitePlanCalibrationsResponseSchema: z.ZodObject<{
|
|
38
|
-
success: z.ZodBoolean;
|
|
39
|
-
data: z.ZodObject<{
|
|
40
|
-
event_id: z.ZodNumber;
|
|
41
|
-
anchors: z.ZodArray<z.ZodObject<{
|
|
42
|
-
id: z.ZodNumber;
|
|
43
|
-
event_id: z.ZodNumber;
|
|
44
|
-
name: z.ZodString;
|
|
45
|
-
latitude: z.ZodNumber;
|
|
46
|
-
longitude: z.ZodNumber;
|
|
47
|
-
site_plan_x: z.ZodNumber;
|
|
48
|
-
site_plan_y: z.ZodNumber;
|
|
49
|
-
is_active: z.ZodBoolean;
|
|
50
|
-
created_at: z.ZodString;
|
|
51
|
-
updated_at: z.ZodString;
|
|
52
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
53
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
54
|
-
}, z.core.$strip>>;
|
|
55
|
-
total_count: z.ZodNumber;
|
|
56
|
-
}, z.core.$strip>;
|
|
57
|
-
}, z.core.$strip>;
|
|
58
|
-
export declare const bulkUpsertEventSitePlanCalibrationsBodySchema: z.ZodObject<{
|
|
59
|
-
event_id: z.ZodNumber;
|
|
60
|
-
anchors: z.ZodArray<z.ZodObject<{
|
|
61
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
name: z.ZodString;
|
|
63
|
-
latitude: z.ZodNumber;
|
|
64
|
-
longitude: z.ZodNumber;
|
|
65
|
-
site_plan_x: z.ZodNumber;
|
|
66
|
-
site_plan_y: z.ZodNumber;
|
|
67
|
-
}, z.core.$strip>>;
|
|
68
|
-
deleted_anchor_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber>>>;
|
|
69
|
-
}, z.core.$strip>;
|
|
70
|
-
export declare const bulkUpsertEventSitePlanCalibrationsDataSchema: z.ZodObject<{
|
|
71
|
-
event_id: z.ZodNumber;
|
|
72
|
-
total_upserted: z.ZodNumber;
|
|
73
|
-
total_deactivated: z.ZodNumber;
|
|
74
|
-
upserted_anchors: z.ZodArray<z.ZodObject<{
|
|
75
|
-
id: z.ZodNumber;
|
|
76
|
-
event_id: z.ZodNumber;
|
|
77
|
-
name: z.ZodString;
|
|
78
|
-
latitude: z.ZodNumber;
|
|
79
|
-
longitude: z.ZodNumber;
|
|
80
|
-
site_plan_x: z.ZodNumber;
|
|
81
|
-
site_plan_y: z.ZodNumber;
|
|
82
|
-
is_active: z.ZodBoolean;
|
|
83
|
-
created_at: z.ZodString;
|
|
84
|
-
updated_at: z.ZodString;
|
|
85
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
86
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
87
|
-
}, z.core.$strip>>;
|
|
88
|
-
}, z.core.$strip>;
|
|
89
|
-
export declare const bulkUpsertEventSitePlanCalibrationsResponseSchema: z.ZodObject<{
|
|
90
|
-
success: z.ZodBoolean;
|
|
91
|
-
message: z.ZodString;
|
|
92
|
-
data: z.ZodObject<{
|
|
93
|
-
event_id: z.ZodNumber;
|
|
94
|
-
total_upserted: z.ZodNumber;
|
|
95
|
-
total_deactivated: z.ZodNumber;
|
|
96
|
-
upserted_anchors: z.ZodArray<z.ZodObject<{
|
|
97
|
-
id: z.ZodNumber;
|
|
98
|
-
event_id: z.ZodNumber;
|
|
99
|
-
name: z.ZodString;
|
|
100
|
-
latitude: z.ZodNumber;
|
|
101
|
-
longitude: z.ZodNumber;
|
|
102
|
-
site_plan_x: z.ZodNumber;
|
|
103
|
-
site_plan_y: z.ZodNumber;
|
|
104
|
-
is_active: z.ZodBoolean;
|
|
105
|
-
created_at: z.ZodString;
|
|
106
|
-
updated_at: z.ZodString;
|
|
107
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
108
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
109
|
-
}, z.core.$strip>>;
|
|
110
|
-
}, z.core.$strip>;
|
|
111
|
-
}, z.core.$strip>;
|
|
112
|
-
export type EventSitePlanCalibrationAnchor = z.infer<typeof eventSitePlanCalibrationAnchorSchema>;
|
|
113
|
-
export type GetEventSitePlanCalibrationsQuery = z.infer<typeof getEventSitePlanCalibrationsQuerySchema>;
|
|
114
|
-
export type GetEventSitePlanCalibrationsData = z.infer<typeof getEventSitePlanCalibrationsDataSchema>;
|
|
115
|
-
export type GetEventSitePlanCalibrationsResponse = z.infer<typeof getEventSitePlanCalibrationsResponseSchema>;
|
|
116
|
-
export type BulkUpsertEventSitePlanCalibrationsBody = z.infer<typeof bulkUpsertEventSitePlanCalibrationsBodySchema>;
|
|
117
|
-
export type BulkUpsertEventSitePlanCalibrationsData = z.infer<typeof bulkUpsertEventSitePlanCalibrationsDataSchema>;
|
|
118
|
-
export type BulkUpsertEventSitePlanCalibrationsResponse = z.infer<typeof bulkUpsertEventSitePlanCalibrationsResponseSchema>;
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
// packages/phasing-schemas/src/eventSitePlanCalibration.ts
|
|
2
|
-
import { z } from './zod.js';
|
|
3
|
-
import { createSuccessResponseSchema, createMessageDataResponseSchema } from './common.js';
|
|
4
|
-
export const eventSitePlanCalibrationAnchorSchema = z
|
|
5
|
-
.object({
|
|
6
|
-
id: z.number().int().positive().openapi({
|
|
7
|
-
description: 'Calibration anchor ID',
|
|
8
|
-
example: 12
|
|
9
|
-
}),
|
|
10
|
-
event_id: z.number().int().positive().openapi({
|
|
11
|
-
description: 'Event ID this anchor belongs to',
|
|
12
|
-
example: 77
|
|
13
|
-
}),
|
|
14
|
-
name: z.string().min(1).openapi({
|
|
15
|
-
description: 'Readable anchor name (e.g., Gate A)',
|
|
16
|
-
example: 'Gate A'
|
|
17
|
-
}),
|
|
18
|
-
latitude: z.number().min(-90).max(90).openapi({
|
|
19
|
-
description: 'Latitude in decimal degrees',
|
|
20
|
-
example: 48.86245
|
|
21
|
-
}),
|
|
22
|
-
longitude: z.number().min(-180).max(180).openapi({
|
|
23
|
-
description: 'Longitude in decimal degrees',
|
|
24
|
-
example: 2.28791
|
|
25
|
-
}),
|
|
26
|
-
site_plan_x: z.number().min(0).max(100).openapi({
|
|
27
|
-
description: 'Horizontal position on the site plan (0-100%)',
|
|
28
|
-
example: 6.25
|
|
29
|
-
}),
|
|
30
|
-
site_plan_y: z.number().min(0).max(100).openapi({
|
|
31
|
-
description: 'Vertical position on the site plan (0-100%)',
|
|
32
|
-
example: 52.1
|
|
33
|
-
}),
|
|
34
|
-
is_active: z.boolean().openapi({
|
|
35
|
-
description: 'Whether this anchor is active',
|
|
36
|
-
example: true
|
|
37
|
-
}),
|
|
38
|
-
created_at: z.string().openapi({
|
|
39
|
-
description: 'Creation timestamp (ISO 8601)'
|
|
40
|
-
}),
|
|
41
|
-
updated_at: z.string().openapi({
|
|
42
|
-
description: 'Last update timestamp (ISO 8601)'
|
|
43
|
-
}),
|
|
44
|
-
created_by: z.string().uuid().nullable().openapi({
|
|
45
|
-
description: 'User who created the anchor',
|
|
46
|
-
example: '550e8400-e29b-41d4-a716-446655440000'
|
|
47
|
-
}),
|
|
48
|
-
updated_by: z.string().uuid().nullable().openapi({
|
|
49
|
-
description: 'User who last updated the anchor',
|
|
50
|
-
example: '550e8400-e29b-41d4-a716-446655440000'
|
|
51
|
-
})
|
|
52
|
-
})
|
|
53
|
-
.openapi('EventSitePlanCalibrationAnchor');
|
|
54
|
-
export const getEventSitePlanCalibrationsQuerySchema = z
|
|
55
|
-
.object({
|
|
56
|
-
eventId: z
|
|
57
|
-
.string()
|
|
58
|
-
.min(1)
|
|
59
|
-
.transform(val => parseInt(val, 10))
|
|
60
|
-
.refine(val => !isNaN(val) && val > 0, {
|
|
61
|
-
message: 'Event ID must be a positive number'
|
|
62
|
-
})
|
|
63
|
-
.openapi({
|
|
64
|
-
description: 'Event ID',
|
|
65
|
-
example: '77'
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
|
-
.openapi('GetEventSitePlanCalibrationsQuery');
|
|
69
|
-
export const getEventSitePlanCalibrationsDataSchema = z
|
|
70
|
-
.object({
|
|
71
|
-
event_id: z.number().int().positive().openapi({
|
|
72
|
-
description: 'ID of the event',
|
|
73
|
-
example: 77
|
|
74
|
-
}),
|
|
75
|
-
anchors: z.array(eventSitePlanCalibrationAnchorSchema).openapi({
|
|
76
|
-
description: 'List of calibration anchors for the event'
|
|
77
|
-
}),
|
|
78
|
-
total_count: z.number().int().nonnegative().openapi({
|
|
79
|
-
description: 'Total anchors returned',
|
|
80
|
-
example: 3
|
|
81
|
-
})
|
|
82
|
-
})
|
|
83
|
-
.openapi('GetEventSitePlanCalibrationsData');
|
|
84
|
-
export const getEventSitePlanCalibrationsResponseSchema = createSuccessResponseSchema(getEventSitePlanCalibrationsDataSchema, 'GetEventSitePlanCalibrationsResponse', 'Event site plan calibration anchors');
|
|
85
|
-
const calibrationAnchorInputSchema = z.object({
|
|
86
|
-
id: z.number().int().positive().optional().openapi({
|
|
87
|
-
description: 'Existing anchor ID (omit for new anchors)'
|
|
88
|
-
}),
|
|
89
|
-
name: z.string().min(1, 'Name is required').max(255).openapi({
|
|
90
|
-
description: 'Anchor name',
|
|
91
|
-
example: 'Gate A'
|
|
92
|
-
}),
|
|
93
|
-
latitude: z.number().min(-90).max(90).openapi({
|
|
94
|
-
description: 'Latitude in decimal degrees',
|
|
95
|
-
example: 48.86245
|
|
96
|
-
}),
|
|
97
|
-
longitude: z.number().min(-180).max(180).openapi({
|
|
98
|
-
description: 'Longitude in decimal degrees',
|
|
99
|
-
example: 2.28791
|
|
100
|
-
}),
|
|
101
|
-
site_plan_x: z.number().min(0).max(100).openapi({
|
|
102
|
-
description: 'Horizontal percentage on the site plan',
|
|
103
|
-
example: 6.2
|
|
104
|
-
}),
|
|
105
|
-
site_plan_y: z.number().min(0).max(100).openapi({
|
|
106
|
-
description: 'Vertical percentage on the site plan',
|
|
107
|
-
example: 52.0
|
|
108
|
-
})
|
|
109
|
-
});
|
|
110
|
-
export const bulkUpsertEventSitePlanCalibrationsBodySchema = z
|
|
111
|
-
.object({
|
|
112
|
-
event_id: z.number().int().positive().openapi({
|
|
113
|
-
description: 'ID of the event',
|
|
114
|
-
example: 77
|
|
115
|
-
}),
|
|
116
|
-
anchors: z.array(calibrationAnchorInputSchema).min(0).openapi({
|
|
117
|
-
description: 'Anchors to create or update'
|
|
118
|
-
}),
|
|
119
|
-
deleted_anchor_ids: z
|
|
120
|
-
.array(z.number().int().positive())
|
|
121
|
-
.optional()
|
|
122
|
-
.default([])
|
|
123
|
-
.openapi({
|
|
124
|
-
description: 'IDs of anchors to deactivate',
|
|
125
|
-
example: [3, 5]
|
|
126
|
-
})
|
|
127
|
-
})
|
|
128
|
-
.openapi('BulkUpsertEventSitePlanCalibrationsBody');
|
|
129
|
-
export const bulkUpsertEventSitePlanCalibrationsDataSchema = z
|
|
130
|
-
.object({
|
|
131
|
-
event_id: z.number().int().positive().openapi({
|
|
132
|
-
description: 'Event ID',
|
|
133
|
-
example: 77
|
|
134
|
-
}),
|
|
135
|
-
total_upserted: z.number().int().nonnegative().openapi({
|
|
136
|
-
description: 'Anchors created or updated',
|
|
137
|
-
example: 2
|
|
138
|
-
}),
|
|
139
|
-
total_deactivated: z.number().int().nonnegative().openapi({
|
|
140
|
-
description: 'Anchors deactivated',
|
|
141
|
-
example: 1
|
|
142
|
-
}),
|
|
143
|
-
upserted_anchors: z.array(eventSitePlanCalibrationAnchorSchema).openapi({
|
|
144
|
-
description: 'Details of anchors returned from Supabase'
|
|
145
|
-
})
|
|
146
|
-
})
|
|
147
|
-
.openapi('BulkUpsertEventSitePlanCalibrationsData');
|
|
148
|
-
export const bulkUpsertEventSitePlanCalibrationsResponseSchema = createMessageDataResponseSchema(bulkUpsertEventSitePlanCalibrationsDataSchema, 'BulkUpsertEventSitePlanCalibrationsResponse', 'Calibration anchors upserted successfully', 'Details about the upserted calibration anchors');
|