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