@venulog/phasing-engine-schemas 0.8.0-alpha.0 → 0.8.2

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.
@@ -51,6 +51,7 @@ export declare const parkingAreaItemSchema: z.ZodObject<{
51
51
  }, z.core.$strip>>;
52
52
  site_plan_image_url: z.ZodNullable<z.ZodString>;
53
53
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
54
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
54
55
  is_active: z.ZodBoolean;
55
56
  created_at: z.ZodString;
56
57
  updated_at: z.ZodString;
@@ -70,6 +71,7 @@ export declare const parkingAreaWithSchedulesSchema: z.ZodObject<{
70
71
  }, z.core.$strip>>;
71
72
  site_plan_image_url: z.ZodNullable<z.ZodString>;
72
73
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
74
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
73
75
  is_active: z.ZodBoolean;
74
76
  created_at: z.ZodString;
75
77
  updated_at: z.ZodString;
@@ -115,6 +117,7 @@ export declare const createParkingAreaBodySchema: z.ZodObject<{
115
117
  }, z.core.$strip>>;
116
118
  site_plan_image_url: z.ZodOptional<z.ZodString>;
117
119
  surface_area_sqm: z.ZodOptional<z.ZodNumber>;
120
+ scale_pixels_per_meter: z.ZodOptional<z.ZodNumber>;
118
121
  }, z.core.$strip>;
119
122
  export declare const createParkingAreaDataSchema: z.ZodObject<{
120
123
  parking_area_id: z.ZodNumber;
@@ -126,6 +129,7 @@ export declare const createParkingAreaDataSchema: z.ZodObject<{
126
129
  }, z.core.$strip>>;
127
130
  site_plan_image_url: z.ZodNullable<z.ZodString>;
128
131
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
132
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
129
133
  is_active: z.ZodBoolean;
130
134
  created_at: z.ZodString;
131
135
  created_by: z.ZodNullable<z.ZodString>;
@@ -143,6 +147,7 @@ export declare const createParkingAreaResponseSchema: z.ZodObject<{
143
147
  }, z.core.$strip>>;
144
148
  site_plan_image_url: z.ZodNullable<z.ZodString>;
145
149
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
150
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
146
151
  is_active: z.ZodBoolean;
147
152
  created_at: z.ZodString;
148
153
  created_by: z.ZodNullable<z.ZodString>;
@@ -157,6 +162,7 @@ export declare const bulkCreateParkingAreasBodySchema: z.ZodObject<{
157
162
  coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
158
163
  }, z.core.$strip>>;
159
164
  surface_area_sqm: z.ZodOptional<z.ZodNumber>;
165
+ scale_pixels_per_meter: z.ZodOptional<z.ZodNumber>;
160
166
  }, z.core.$strip>>;
161
167
  site_plan_image_url: z.ZodOptional<z.ZodString>;
162
168
  }, z.core.$strip>;
@@ -173,6 +179,7 @@ export declare const bulkCreateParkingAreasDataSchema: z.ZodObject<{
173
179
  }, z.core.$strip>>;
174
180
  site_plan_image_url: z.ZodNullable<z.ZodString>;
175
181
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
182
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
176
183
  is_active: z.ZodBoolean;
177
184
  created_at: z.ZodString;
178
185
  created_by: z.ZodNullable<z.ZodString>;
@@ -199,6 +206,7 @@ export declare const bulkCreateParkingAreasResponseSchema: z.ZodObject<{
199
206
  }, z.core.$strip>>;
200
207
  site_plan_image_url: z.ZodNullable<z.ZodString>;
201
208
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
209
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
202
210
  is_active: z.ZodBoolean;
203
211
  created_at: z.ZodString;
204
212
  created_by: z.ZodNullable<z.ZodString>;
@@ -221,6 +229,7 @@ export declare const updateParkingAreaBodySchema: z.ZodObject<{
221
229
  }, z.core.$strip>>>;
222
230
  site_plan_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
231
  surface_area_sqm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
232
+ scale_pixels_per_meter: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
224
233
  is_active: z.ZodOptional<z.ZodBoolean>;
225
234
  }, z.core.$strip>;
226
235
  export declare const updateParkingAreaDataSchema: z.ZodObject<{
@@ -233,6 +242,7 @@ export declare const updateParkingAreaDataSchema: z.ZodObject<{
233
242
  }, z.core.$strip>>;
234
243
  site_plan_image_url: z.ZodNullable<z.ZodString>;
235
244
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
245
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
236
246
  is_active: z.ZodBoolean;
237
247
  updated_at: z.ZodString;
238
248
  updated_by: z.ZodNullable<z.ZodString>;
@@ -250,6 +260,7 @@ export declare const updateParkingAreaResponseSchema: z.ZodObject<{
250
260
  }, z.core.$strip>>;
251
261
  site_plan_image_url: z.ZodNullable<z.ZodString>;
252
262
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
263
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
253
264
  is_active: z.ZodBoolean;
254
265
  updated_at: z.ZodString;
255
266
  updated_by: z.ZodNullable<z.ZodString>;
@@ -282,6 +293,7 @@ export declare const getParkingAreasDataSchema: z.ZodObject<{
282
293
  }, z.core.$strip>>;
283
294
  site_plan_image_url: z.ZodNullable<z.ZodString>;
284
295
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
296
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
285
297
  is_active: z.ZodBoolean;
286
298
  created_at: z.ZodString;
287
299
  updated_at: z.ZodString;
@@ -304,6 +316,7 @@ export declare const getParkingAreasResponseSchema: z.ZodObject<{
304
316
  }, z.core.$strip>>;
305
317
  site_plan_image_url: z.ZodNullable<z.ZodString>;
306
318
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
319
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
307
320
  is_active: z.ZodBoolean;
308
321
  created_at: z.ZodString;
309
322
  updated_at: z.ZodString;
@@ -325,6 +338,7 @@ export declare const getParkingAreaDetailResponseSchema: z.ZodObject<{
325
338
  }, z.core.$strip>>;
326
339
  site_plan_image_url: z.ZodNullable<z.ZodString>;
327
340
  surface_area_sqm: z.ZodNullable<z.ZodNumber>;
341
+ scale_pixels_per_meter: z.ZodNullable<z.ZodNumber>;
328
342
  is_active: z.ZodBoolean;
329
343
  created_at: z.ZodString;
330
344
  updated_at: z.ZodString;
@@ -109,6 +109,10 @@ export const parkingAreaItemSchema = z
109
109
  description: 'Surface area in square meters',
110
110
  example: 150.5
111
111
  }),
112
+ scale_pixels_per_meter: z.number().positive().nullable().openapi({
113
+ description: 'Calibrated pixels-per-meter value captured in the editor',
114
+ example: 42.5
115
+ }),
112
116
  is_active: z.boolean().openapi({
113
117
  description: 'Whether the parking area is active',
114
118
  example: true
@@ -226,6 +230,10 @@ export const createParkingAreaBodySchema = z
226
230
  surface_area_sqm: z.number().nonnegative().optional().openapi({
227
231
  description: 'Surface area in square meters',
228
232
  example: 150.5
233
+ }),
234
+ scale_pixels_per_meter: z.number().positive().optional().openapi({
235
+ description: 'Calibrated pixels-per-meter scale captured in the editor',
236
+ example: 42.5
229
237
  })
230
238
  })
231
239
  .openapi('CreateParkingAreaBody');
@@ -254,6 +262,10 @@ export const createParkingAreaDataSchema = z
254
262
  description: 'Surface area in square meters',
255
263
  example: 150.5
256
264
  }),
265
+ scale_pixels_per_meter: z.number().nullable().openapi({
266
+ description: 'Calibrated pixels-per-meter scale',
267
+ example: 42.5
268
+ }),
257
269
  is_active: z.boolean().openapi({
258
270
  description: 'Whether the parking area is active',
259
271
  example: true
@@ -285,7 +297,11 @@ export const bulkCreateParkingAreasBodySchema = z
285
297
  example: 'Zone A'
286
298
  }),
287
299
  geometry: geoJsonPolygonSchema.optional(),
288
- surface_area_sqm: z.number().nonnegative().optional()
300
+ surface_area_sqm: z.number().nonnegative().optional(),
301
+ scale_pixels_per_meter: z.number().positive().optional().openapi({
302
+ description: 'Calibrated pixels-per-meter scale for this area',
303
+ example: 42.5
304
+ })
289
305
  }))
290
306
  .min(1, 'At least one parking area must be provided')
291
307
  .openapi({
@@ -366,6 +382,10 @@ export const updateParkingAreaBodySchema = z
366
382
  description: 'New surface area in square meters',
367
383
  example: 200.0
368
384
  }),
385
+ scale_pixels_per_meter: z.number().positive().nullable().optional().openapi({
386
+ description: 'Updated pixels-per-meter calibration value',
387
+ example: 42.5
388
+ }),
369
389
  is_active: z.boolean().optional().openapi({
370
390
  description: 'Whether the parking area is active',
371
391
  example: true
@@ -399,6 +419,10 @@ export const updateParkingAreaDataSchema = z
399
419
  description: 'Updated surface area in square meters',
400
420
  example: 200.0
401
421
  }),
422
+ scale_pixels_per_meter: z.number().nullable().openapi({
423
+ description: 'Updated pixels-per-meter calibration value',
424
+ example: 42.5
425
+ }),
402
426
  is_active: z.boolean().openapi({
403
427
  description: 'Whether the parking area is active',
404
428
  example: true
@@ -695,7 +719,6 @@ export const uploadSitePlanImageResponseSchema = createMessageDataResponseSchema
695
719
  // ------------------------------
696
720
  // Available Time Slots (Parking Area version)
697
721
  // ------------------------------
698
- // TODO: delete after migrating to V2
699
722
  export const getAvailableParkingAreaSlotsQuerySchema = z
700
723
  .object({
701
724
  event_id: z.number().nonnegative().openapi({
@@ -495,9 +495,12 @@ export declare const parkingBookingWithRelationsSchema: z.ZodObject<{
495
495
  code: z.ZodString;
496
496
  venue_id: z.ZodNullable<z.ZodNumber>;
497
497
  banner: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
498
+ latitude: z.ZodNullable<z.ZodString>;
499
+ longitude: z.ZodNullable<z.ZodString>;
498
500
  venues: z.ZodNullable<z.ZodObject<{
499
501
  id: z.ZodNumber;
500
502
  name: z.ZodString;
503
+ address: z.ZodString;
501
504
  }, z.core.$strip>>;
502
505
  }, z.core.$strip>;
503
506
  parking_spot: z.ZodString;
@@ -541,8 +544,11 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
541
544
  event_id: z.ZodNumber;
542
545
  event_name: z.ZodString;
543
546
  event_code: z.ZodString;
547
+ event_gps_latitude: z.ZodString;
548
+ event_gps_longitude: z.ZodString;
544
549
  venue_id: z.ZodNullable<z.ZodNumber>;
545
550
  venue_name: z.ZodNullable<z.ZodString>;
551
+ venue_address: z.ZodNullable<z.ZodString>;
546
552
  request_type: z.ZodString;
547
553
  duration: z.ZodNumber;
548
554
  banner: z.ZodNullable<z.ZodObject<{
@@ -595,8 +601,11 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
595
601
  event_id: z.ZodNumber;
596
602
  event_name: z.ZodString;
597
603
  event_code: z.ZodString;
604
+ event_gps_latitude: z.ZodString;
605
+ event_gps_longitude: z.ZodString;
598
606
  venue_id: z.ZodNullable<z.ZodNumber>;
599
607
  venue_name: z.ZodNullable<z.ZodString>;
608
+ venue_address: z.ZodNullable<z.ZodString>;
600
609
  request_type: z.ZodString;
601
610
  duration: z.ZodNumber;
602
611
  banner: z.ZodNullable<z.ZodObject<{
@@ -465,10 +465,13 @@ export const parkingBookingWithRelationsSchema = z
465
465
  code: z.string(),
466
466
  venue_id: z.number().nullable(),
467
467
  banner: z.record(z.string(), z.unknown()).nullable(),
468
+ latitude: z.string().nullable(),
469
+ longitude: z.string().nullable(),
468
470
  venues: z
469
471
  .object({
470
472
  id: z.number(),
471
- name: z.string()
473
+ name: z.string(),
474
+ address: z.string()
472
475
  })
473
476
  .nullable()
474
477
  }),
@@ -542,6 +545,14 @@ export const parkingBookingDetailsDataSchema = z
542
545
  description: 'Code of the event',
543
546
  example: 'PFW2025'
544
547
  }),
548
+ event_gps_latitude: z.string().openapi({
549
+ description: 'GPS latitude of the event',
550
+ example: '48.123123'
551
+ }),
552
+ event_gps_longitude: z.string().openapi({
553
+ description: 'GPS longitude of the event',
554
+ example: '2.123123'
555
+ }),
545
556
  venue_id: z.number().nullable().openapi({
546
557
  description: 'ID of the venue',
547
558
  example: 1
@@ -550,6 +561,10 @@ export const parkingBookingDetailsDataSchema = z
550
561
  description: 'Name of the venue',
551
562
  example: 'Paris Expo Porte de Versailles'
552
563
  }),
564
+ venue_address: z.string().nullable().openapi({
565
+ description: 'Address of the venue',
566
+ example: '1 Pl. de la Prte de Versailles, 75015 Paris, France'
567
+ }),
553
568
  request_type: z.string().openapi({
554
569
  description: 'Type of parking area schedule (assembly/dismantling)',
555
570
  example: 'assembly'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venulog/phasing-engine-schemas",
3
- "version": "0.8.0-alpha.0",
3
+ "version": "0.8.2",
4
4
  "description": "Shared schemas and types for Phasing Engine API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",