@venulog/phasing-engine-schemas 0.13.0-alpha.0 → 0.13.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.
@@ -400,7 +400,7 @@ export declare const updateParkingBookingBodySchema: z.ZodObject<{
400
400
  export declare const updateParkingBookingDataSchema: z.ZodObject<{
401
401
  booking_id: z.ZodNumber;
402
402
  qr_token: z.ZodString;
403
- company: z.ZodNullable<z.ZodObject<{
403
+ company: z.ZodObject<{
404
404
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
405
405
  stand_number: z.ZodOptional<z.ZodString>;
406
406
  company_name: z.ZodString;
@@ -412,15 +412,16 @@ export declare const updateParkingBookingDataSchema: z.ZodObject<{
412
412
  driver_name: z.ZodString;
413
413
  driver_phone: z.ZodString;
414
414
  transport_company: z.ZodOptional<z.ZodString>;
415
- }, z.core.$strip>>;
416
- vehicle: z.ZodNullable<z.ZodObject<{
415
+ }, z.core.$strip>;
416
+ vehicle: z.ZodObject<{
417
417
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
418
418
  unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
419
419
  license_plate: z.ZodString;
420
420
  trailer_registration: z.ZodOptional<z.ZodString>;
421
- }, z.core.$strip>>;
421
+ }, z.core.$strip>;
422
422
  updated_at: z.ZodString;
423
423
  updated_by: z.ZodNullable<z.ZodString>;
424
+ status: z.ZodString;
424
425
  }, z.core.$strip>;
425
426
  export declare const updateParkingBookingResponseSchema: z.ZodObject<{
426
427
  success: z.ZodBoolean;
@@ -428,7 +429,7 @@ export declare const updateParkingBookingResponseSchema: z.ZodObject<{
428
429
  data: z.ZodObject<{
429
430
  booking_id: z.ZodNumber;
430
431
  qr_token: z.ZodString;
431
- company: z.ZodNullable<z.ZodObject<{
432
+ company: z.ZodObject<{
432
433
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
433
434
  stand_number: z.ZodOptional<z.ZodString>;
434
435
  company_name: z.ZodString;
@@ -440,15 +441,16 @@ export declare const updateParkingBookingResponseSchema: z.ZodObject<{
440
441
  driver_name: z.ZodString;
441
442
  driver_phone: z.ZodString;
442
443
  transport_company: z.ZodOptional<z.ZodString>;
443
- }, z.core.$strip>>;
444
- vehicle: z.ZodNullable<z.ZodObject<{
444
+ }, z.core.$strip>;
445
+ vehicle: z.ZodObject<{
445
446
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
446
447
  unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
447
448
  license_plate: z.ZodString;
448
449
  trailer_registration: z.ZodOptional<z.ZodString>;
449
- }, z.core.$strip>>;
450
+ }, z.core.$strip>;
450
451
  updated_at: z.ZodString;
451
452
  updated_by: z.ZodNullable<z.ZodString>;
453
+ status: z.ZodString;
452
454
  }, z.core.$strip>;
453
455
  }, z.core.$strip>;
454
456
  export declare const confirmBookingParamsSchema: z.ZodObject<{
@@ -457,7 +459,6 @@ export declare const confirmBookingParamsSchema: z.ZodObject<{
457
459
  export declare const confirmBookingDataSchema: z.ZodObject<{
458
460
  id: z.ZodNumber;
459
461
  status: z.ZodString;
460
- parking_area_schedule_id: z.ZodNumber;
461
462
  updated_at: z.ZodString;
462
463
  updated_by: z.ZodString;
463
464
  }, z.core.$strip>;
@@ -467,7 +468,6 @@ export declare const confirmBookingResponseSchema: z.ZodObject<{
467
468
  data: z.ZodObject<{
468
469
  id: z.ZodNumber;
469
470
  status: z.ZodString;
470
- parking_area_schedule_id: z.ZodNumber;
471
471
  updated_at: z.ZodString;
472
472
  updated_by: z.ZodString;
473
473
  }, z.core.$strip>;
@@ -478,7 +478,6 @@ export declare const refuseBookingParamsSchema: z.ZodObject<{
478
478
  export declare const refuseBookingDataSchema: z.ZodObject<{
479
479
  id: z.ZodNumber;
480
480
  status: z.ZodString;
481
- parking_area_schedule_id: z.ZodNumber;
482
481
  updated_at: z.ZodString;
483
482
  updated_by: z.ZodString;
484
483
  }, z.core.$strip>;
@@ -488,7 +487,6 @@ export declare const refuseBookingResponseSchema: z.ZodObject<{
488
487
  data: z.ZodObject<{
489
488
  id: z.ZodNumber;
490
489
  status: z.ZodString;
491
- parking_area_schedule_id: z.ZodNumber;
492
490
  updated_at: z.ZodString;
493
491
  updated_by: z.ZodString;
494
492
  }, z.core.$strip>;
@@ -778,3 +776,4 @@ export type UpdateBookingTimeParams = z.infer<typeof updateBookingTimeParamsSche
778
776
  export type UpdateBookingTimeBody = z.infer<typeof updateBookingTimeBodySchema>;
779
777
  export type UpdateBookingTimeData = z.infer<typeof updateBookingTimeDataSchema>;
780
778
  export type UpdateBookingTimeResponse = z.infer<typeof updateBookingTimeResponseSchema>;
779
+ export type UpdateParkingBookingResponse = z.infer<typeof updateParkingBookingResponseSchema>;
@@ -402,10 +402,10 @@ export const updateParkingBookingDataSchema = z
402
402
  description: 'New regenerated QR token',
403
403
  example: 'ACCESS_1a2b3c4d5e6f7g8h_eyJib29raW5nSWQiOjF9'
404
404
  }),
405
- company: companyDetailsSchema.nullable().openapi({
405
+ company: companyDetailsSchema.openapi({
406
406
  description: 'Updated company details'
407
407
  }),
408
- vehicle: vehicleDetailsSchema.nullable().openapi({
408
+ vehicle: vehicleDetailsSchema.openapi({
409
409
  description: 'Updated vehicle details'
410
410
  }),
411
411
  updated_at: z.string().openapi({
@@ -415,7 +415,8 @@ export const updateParkingBookingDataSchema = z
415
415
  updated_by: z.string().nullable().openapi({
416
416
  description: 'ID of the user who updated the booking',
417
417
  example: 'user-123'
418
- })
418
+ }),
419
+ status: z.string()
419
420
  })
420
421
  .openapi('UpdateParkingBookingData');
421
422
  export const updateParkingBookingResponseSchema = createMessageDataResponseSchema(updateParkingBookingDataSchema, 'UpdateParkingBookingResponse', 'Parking booking updated successfully', 'Details of the updated booking');
@@ -442,7 +443,6 @@ export const confirmBookingDataSchema = z
442
443
  .object({
443
444
  id: z.number(),
444
445
  status: z.string(),
445
- parking_area_schedule_id: z.number(),
446
446
  updated_at: z.string(),
447
447
  updated_by: z.string()
448
448
  })
@@ -471,7 +471,6 @@ export const refuseBookingDataSchema = z
471
471
  .object({
472
472
  id: z.number(),
473
473
  status: z.string(),
474
- parking_area_schedule_id: z.number(),
475
474
  updated_at: z.string(),
476
475
  updated_by: z.string()
477
476
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venulog/phasing-engine-schemas",
3
- "version": "0.13.0-alpha.0",
3
+ "version": "0.13.0-alpha.1",
4
4
  "description": "Shared schemas and types for Phasing Engine API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",