@venulog/phasing-engine-schemas 0.15.4-alpha.0 → 0.15.5-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/parkingArea.d.ts +0 -188
- package/dist/parkingArea.js +0 -184
- package/dist/parkingAreaAccess.d.ts +2 -2
- package/dist/parkingAreaLayer.d.ts +2 -2
- package/dist/parkingBooking.d.ts +3 -0
- package/dist/parkingBooking.js +4 -0
- package/package.json +1 -1
package/dist/parkingArea.d.ts
CHANGED
|
@@ -377,188 +377,6 @@ export declare const getParkingAreaDetailResponseSchema: z.ZodObject<{
|
|
|
377
377
|
}, z.core.$strip>>>;
|
|
378
378
|
}, z.core.$strip>;
|
|
379
379
|
}, z.core.$strip>;
|
|
380
|
-
export declare const parkingAreaScheduleSchema: z.ZodObject<{
|
|
381
|
-
id: z.ZodNumber;
|
|
382
|
-
date: z.ZodString;
|
|
383
|
-
start_time: z.ZodString;
|
|
384
|
-
end_time: z.ZodString;
|
|
385
|
-
duration: z.ZodNumber;
|
|
386
|
-
parking_area_id: z.ZodNumber;
|
|
387
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
388
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
389
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
390
|
-
}>;
|
|
391
|
-
company_roles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
392
|
-
vehicle_types: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
393
|
-
PL: VehicleType.PL;
|
|
394
|
-
VUL: VehicleType.VUL;
|
|
395
|
-
VL: VehicleType.VL;
|
|
396
|
-
}>>>;
|
|
397
|
-
created_at: z.ZodString;
|
|
398
|
-
updated_at: z.ZodString;
|
|
399
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
400
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
401
|
-
}, z.core.$strip>;
|
|
402
|
-
export declare const upsertParkingAreaScheduleItemSchema: z.ZodObject<{
|
|
403
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
404
|
-
parking_area_id: z.ZodNumber;
|
|
405
|
-
date: z.ZodString;
|
|
406
|
-
start_time: z.ZodDefault<z.ZodString>;
|
|
407
|
-
end_time: z.ZodDefault<z.ZodString>;
|
|
408
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
409
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
410
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
411
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
412
|
-
}>;
|
|
413
|
-
company_roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
414
|
-
vehicle_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
415
|
-
PL: VehicleType.PL;
|
|
416
|
-
VUL: VehicleType.VUL;
|
|
417
|
-
VL: VehicleType.VL;
|
|
418
|
-
}>>>>;
|
|
419
|
-
}, z.core.$strip>;
|
|
420
|
-
export declare const deleteParkingAreaScheduleItemSchema: z.ZodObject<{
|
|
421
|
-
id: z.ZodNumber;
|
|
422
|
-
}, z.core.$strip>;
|
|
423
|
-
export declare const upsertParkingAreaSchedulesBodySchema: z.ZodObject<{
|
|
424
|
-
upsert: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
425
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
426
|
-
parking_area_id: z.ZodNumber;
|
|
427
|
-
date: z.ZodString;
|
|
428
|
-
start_time: z.ZodDefault<z.ZodString>;
|
|
429
|
-
end_time: z.ZodDefault<z.ZodString>;
|
|
430
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
431
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
432
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
433
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
434
|
-
}>;
|
|
435
|
-
company_roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
436
|
-
vehicle_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
437
|
-
PL: VehicleType.PL;
|
|
438
|
-
VUL: VehicleType.VUL;
|
|
439
|
-
VL: VehicleType.VL;
|
|
440
|
-
}>>>>;
|
|
441
|
-
}, z.core.$strip>>>;
|
|
442
|
-
delete: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
443
|
-
id: z.ZodNumber;
|
|
444
|
-
}, z.core.$strip>>>;
|
|
445
|
-
}, z.core.$strip>;
|
|
446
|
-
export declare const upsertParkingAreaSchedulesDataSchema: z.ZodObject<{
|
|
447
|
-
total_upserted: z.ZodNumber;
|
|
448
|
-
total_deleted: z.ZodNumber;
|
|
449
|
-
upserted_schedules: z.ZodArray<z.ZodObject<{
|
|
450
|
-
id: z.ZodNumber;
|
|
451
|
-
date: z.ZodString;
|
|
452
|
-
start_time: z.ZodString;
|
|
453
|
-
end_time: z.ZodString;
|
|
454
|
-
duration: z.ZodNumber;
|
|
455
|
-
parking_area_id: z.ZodNumber;
|
|
456
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
457
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
458
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
459
|
-
}>;
|
|
460
|
-
company_roles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
461
|
-
vehicle_types: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
462
|
-
PL: VehicleType.PL;
|
|
463
|
-
VUL: VehicleType.VUL;
|
|
464
|
-
VL: VehicleType.VL;
|
|
465
|
-
}>>>;
|
|
466
|
-
created_at: z.ZodString;
|
|
467
|
-
updated_at: z.ZodString;
|
|
468
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
469
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
470
|
-
}, z.core.$strip>>;
|
|
471
|
-
deleted_schedules: z.ZodArray<z.ZodObject<{
|
|
472
|
-
id: z.ZodNumber;
|
|
473
|
-
}, z.core.$strip>>;
|
|
474
|
-
failed_operations: z.ZodArray<z.ZodObject<{
|
|
475
|
-
operation: z.ZodEnum<{
|
|
476
|
-
upsert: "upsert";
|
|
477
|
-
delete: "delete";
|
|
478
|
-
}>;
|
|
479
|
-
error: z.ZodString;
|
|
480
|
-
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
481
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
482
|
-
parking_area_id: z.ZodNumber;
|
|
483
|
-
date: z.ZodString;
|
|
484
|
-
start_time: z.ZodDefault<z.ZodString>;
|
|
485
|
-
end_time: z.ZodDefault<z.ZodString>;
|
|
486
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
487
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
488
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
489
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
490
|
-
}>;
|
|
491
|
-
company_roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
492
|
-
vehicle_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
493
|
-
PL: VehicleType.PL;
|
|
494
|
-
VUL: VehicleType.VUL;
|
|
495
|
-
VL: VehicleType.VL;
|
|
496
|
-
}>>>>;
|
|
497
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
498
|
-
id: z.ZodNumber;
|
|
499
|
-
}, z.core.$strip>]>;
|
|
500
|
-
}, z.core.$strip>>;
|
|
501
|
-
}, z.core.$strip>;
|
|
502
|
-
export declare const upsertParkingAreaSchedulesResponseSchema: z.ZodObject<{
|
|
503
|
-
success: z.ZodBoolean;
|
|
504
|
-
message: z.ZodString;
|
|
505
|
-
data: z.ZodObject<{
|
|
506
|
-
total_upserted: z.ZodNumber;
|
|
507
|
-
total_deleted: z.ZodNumber;
|
|
508
|
-
upserted_schedules: z.ZodArray<z.ZodObject<{
|
|
509
|
-
id: z.ZodNumber;
|
|
510
|
-
date: z.ZodString;
|
|
511
|
-
start_time: z.ZodString;
|
|
512
|
-
end_time: z.ZodString;
|
|
513
|
-
duration: z.ZodNumber;
|
|
514
|
-
parking_area_id: z.ZodNumber;
|
|
515
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
516
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
517
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
518
|
-
}>;
|
|
519
|
-
company_roles: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
520
|
-
vehicle_types: z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
521
|
-
PL: VehicleType.PL;
|
|
522
|
-
VUL: VehicleType.VUL;
|
|
523
|
-
VL: VehicleType.VL;
|
|
524
|
-
}>>>;
|
|
525
|
-
created_at: z.ZodString;
|
|
526
|
-
updated_at: z.ZodString;
|
|
527
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
528
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
529
|
-
}, z.core.$strip>>;
|
|
530
|
-
deleted_schedules: z.ZodArray<z.ZodObject<{
|
|
531
|
-
id: z.ZodNumber;
|
|
532
|
-
}, z.core.$strip>>;
|
|
533
|
-
failed_operations: z.ZodArray<z.ZodObject<{
|
|
534
|
-
operation: z.ZodEnum<{
|
|
535
|
-
upsert: "upsert";
|
|
536
|
-
delete: "delete";
|
|
537
|
-
}>;
|
|
538
|
-
error: z.ZodString;
|
|
539
|
-
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
540
|
-
id: z.ZodOptional<z.ZodNumber>;
|
|
541
|
-
parking_area_id: z.ZodNumber;
|
|
542
|
-
date: z.ZodString;
|
|
543
|
-
start_time: z.ZodDefault<z.ZodString>;
|
|
544
|
-
end_time: z.ZodDefault<z.ZodString>;
|
|
545
|
-
duration: z.ZodDefault<z.ZodNumber>;
|
|
546
|
-
parking_area_schedule_type: z.ZodEnum<{
|
|
547
|
-
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
548
|
-
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
549
|
-
}>;
|
|
550
|
-
company_roles: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
551
|
-
vehicle_types: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEnum<{
|
|
552
|
-
PL: VehicleType.PL;
|
|
553
|
-
VUL: VehicleType.VUL;
|
|
554
|
-
VL: VehicleType.VL;
|
|
555
|
-
}>>>>;
|
|
556
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
557
|
-
id: z.ZodNumber;
|
|
558
|
-
}, z.core.$strip>]>;
|
|
559
|
-
}, z.core.$strip>>;
|
|
560
|
-
}, z.core.$strip>;
|
|
561
|
-
}, z.core.$strip>;
|
|
562
380
|
export declare const uploadSitePlanImageParamsSchema: z.ZodObject<{
|
|
563
381
|
eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
564
382
|
}, z.core.$strip>;
|
|
@@ -727,12 +545,6 @@ export type DeleteParkingAreaResponse = z.infer<typeof deleteParkingAreaResponse
|
|
|
727
545
|
export type GetParkingAreasData = z.infer<typeof getParkingAreasDataSchema>;
|
|
728
546
|
export type GetParkingAreasResponse = z.infer<typeof getParkingAreasResponseSchema>;
|
|
729
547
|
export type GetParkingAreaDetailResponse = z.infer<typeof getParkingAreaDetailResponseSchema>;
|
|
730
|
-
export type ParkingAreaSchedule = z.infer<typeof parkingAreaScheduleSchema>;
|
|
731
|
-
export type UpsertParkingAreaScheduleItem = z.infer<typeof upsertParkingAreaScheduleItemSchema>;
|
|
732
|
-
export type DeleteParkingAreaScheduleItem = z.infer<typeof deleteParkingAreaScheduleItemSchema>;
|
|
733
|
-
export type UpsertParkingAreaSchedulesBody = z.infer<typeof upsertParkingAreaSchedulesBodySchema>;
|
|
734
|
-
export type UpsertParkingAreaSchedulesData = z.infer<typeof upsertParkingAreaSchedulesDataSchema>;
|
|
735
|
-
export type UpsertParkingAreaSchedulesResponse = z.infer<typeof upsertParkingAreaSchedulesResponseSchema>;
|
|
736
548
|
export type UploadSitePlanImageParams = z.infer<typeof uploadSitePlanImageParamsSchema>;
|
|
737
549
|
export type UploadSitePlanImageData = z.infer<typeof uploadSitePlanImageDataSchema>;
|
|
738
550
|
export type UploadSitePlanImageResponse = z.infer<typeof uploadSitePlanImageResponseSchema>;
|
package/dist/parkingArea.js
CHANGED
|
@@ -514,190 +514,6 @@ export const getParkingAreasDataSchema = z
|
|
|
514
514
|
export const getParkingAreasResponseSchema = createSuccessResponseSchema(getParkingAreasDataSchema, 'GetParkingAreasResponse', 'Parking areas for the event');
|
|
515
515
|
export const getParkingAreaDetailResponseSchema = createSuccessResponseSchema(parkingAreaWithSchedulesSchema, 'GetParkingAreaDetailResponse', 'Parking area details with schedules');
|
|
516
516
|
// ------------------------------
|
|
517
|
-
// Parking Area Schedule Schemas
|
|
518
|
-
// ------------------------------
|
|
519
|
-
export const parkingAreaScheduleSchema = z
|
|
520
|
-
.object({
|
|
521
|
-
id: z.number().int().positive().openapi({
|
|
522
|
-
description: 'Unique identifier for the schedule',
|
|
523
|
-
example: 1
|
|
524
|
-
}),
|
|
525
|
-
date: z.string().openapi({
|
|
526
|
-
description: 'Date of the schedule (YYYY-MM-DD format)',
|
|
527
|
-
example: '2025-12-15'
|
|
528
|
-
}),
|
|
529
|
-
start_time: z.string().openapi({
|
|
530
|
-
description: 'Start time (HH:MM format)',
|
|
531
|
-
example: '06:00'
|
|
532
|
-
}),
|
|
533
|
-
end_time: z.string().openapi({
|
|
534
|
-
description: 'End time (HH:MM format)',
|
|
535
|
-
example: '09:00'
|
|
536
|
-
}),
|
|
537
|
-
duration: z.number().openapi({
|
|
538
|
-
description: 'Duration in minutes',
|
|
539
|
-
example: 180
|
|
540
|
-
}),
|
|
541
|
-
parking_area_id: z.number().int().positive().openapi({
|
|
542
|
-
description: 'ID of the associated parking area',
|
|
543
|
-
example: 101
|
|
544
|
-
}),
|
|
545
|
-
parking_area_schedule_type: z
|
|
546
|
-
.enum([ParkingAreaScheduleType.ASSEMBLY, ParkingAreaScheduleType.DISMANTLING])
|
|
547
|
-
.openapi({
|
|
548
|
-
description: 'Type of schedule',
|
|
549
|
-
example: ParkingAreaScheduleType.ASSEMBLY
|
|
550
|
-
}),
|
|
551
|
-
company_roles: z
|
|
552
|
-
.array(z.string())
|
|
553
|
-
.nullable()
|
|
554
|
-
.openapi({
|
|
555
|
-
description: 'Company roles allowed for this schedule (empty or null = all allowed)',
|
|
556
|
-
example: ['exhibitor', 'contractor']
|
|
557
|
-
}),
|
|
558
|
-
vehicle_types: z
|
|
559
|
-
.array(z.enum([VehicleType.PL, VehicleType.VUL, VehicleType.VL]))
|
|
560
|
-
.nullable()
|
|
561
|
-
.openapi({
|
|
562
|
-
description: 'Vehicle types allowed for this schedule (empty or null = all allowed)',
|
|
563
|
-
example: [VehicleType.PL, VehicleType.VUL]
|
|
564
|
-
}),
|
|
565
|
-
created_at: z.string().openapi({
|
|
566
|
-
description: 'Timestamp when schedule was created',
|
|
567
|
-
example: '2025-12-09T10:00:00.000Z'
|
|
568
|
-
}),
|
|
569
|
-
updated_at: z.string().openapi({
|
|
570
|
-
description: 'Timestamp when schedule was updated',
|
|
571
|
-
example: '2025-12-09T10:30:00.000Z'
|
|
572
|
-
}),
|
|
573
|
-
created_by: z.string().uuid().nullable().openapi({
|
|
574
|
-
description: 'UUID of user who created the schedule',
|
|
575
|
-
example: '550e8400-e29b-41d4-a716-446655440000'
|
|
576
|
-
}),
|
|
577
|
-
updated_by: z.string().uuid().nullable().openapi({
|
|
578
|
-
description: 'UUID of user who last updated the schedule',
|
|
579
|
-
example: '550e8400-e29b-41d4-a716-446655440000'
|
|
580
|
-
})
|
|
581
|
-
})
|
|
582
|
-
.openapi('ParkingAreaSchedule');
|
|
583
|
-
// ------------------------------
|
|
584
|
-
// Upsert Parking Area Schedules Schemas
|
|
585
|
-
// ------------------------------
|
|
586
|
-
export const upsertParkingAreaScheduleItemSchema = z
|
|
587
|
-
.object({
|
|
588
|
-
id: z.number().int().positive().optional().openapi({
|
|
589
|
-
description: 'Unique identifier for existing schedule (required for updates)',
|
|
590
|
-
example: 1
|
|
591
|
-
}),
|
|
592
|
-
parking_area_id: z.number().int().positive().openapi({
|
|
593
|
-
description: 'ID of the associated parking area',
|
|
594
|
-
example: 101
|
|
595
|
-
}),
|
|
596
|
-
date: z
|
|
597
|
-
.string()
|
|
598
|
-
.regex(/^\d{4}-\d{2}-\d{2}$/, 'Date must be in YYYY-MM-DD format')
|
|
599
|
-
.openapi({
|
|
600
|
-
description: 'Date of the schedule (YYYY-MM-DD format)',
|
|
601
|
-
example: '2025-12-15'
|
|
602
|
-
}),
|
|
603
|
-
start_time: z
|
|
604
|
-
.string()
|
|
605
|
-
.regex(/^\d{2}:\d{2}$/, 'Time must be in HH:MM format')
|
|
606
|
-
.default('06:00')
|
|
607
|
-
.openapi({
|
|
608
|
-
description: 'Start time (HH:MM format)',
|
|
609
|
-
example: '06:00'
|
|
610
|
-
}),
|
|
611
|
-
end_time: z
|
|
612
|
-
.string()
|
|
613
|
-
.regex(/^\d{2}:\d{2}$/, 'Time must be in HH:MM format')
|
|
614
|
-
.default('09:00')
|
|
615
|
-
.openapi({
|
|
616
|
-
description: 'End time (HH:MM format)',
|
|
617
|
-
example: '09:00'
|
|
618
|
-
}),
|
|
619
|
-
duration: z.number().positive().default(60).openapi({
|
|
620
|
-
description: 'Duration in minutes',
|
|
621
|
-
example: 180
|
|
622
|
-
}),
|
|
623
|
-
parking_area_schedule_type: z
|
|
624
|
-
.enum([ParkingAreaScheduleType.ASSEMBLY, ParkingAreaScheduleType.DISMANTLING])
|
|
625
|
-
.openapi({
|
|
626
|
-
description: 'Type of schedule',
|
|
627
|
-
example: ParkingAreaScheduleType.ASSEMBLY
|
|
628
|
-
}),
|
|
629
|
-
company_roles: z
|
|
630
|
-
.array(z.string())
|
|
631
|
-
.nullable()
|
|
632
|
-
.optional()
|
|
633
|
-
.openapi({
|
|
634
|
-
description: 'Company roles allowed for this schedule (empty or null = all allowed)',
|
|
635
|
-
example: ['exhibitor', 'contractor']
|
|
636
|
-
}),
|
|
637
|
-
vehicle_types: z
|
|
638
|
-
.array(z.enum([VehicleType.PL, VehicleType.VUL, VehicleType.VL]))
|
|
639
|
-
.nullable()
|
|
640
|
-
.optional()
|
|
641
|
-
.openapi({
|
|
642
|
-
description: 'Vehicle types allowed for this schedule (empty or null = all allowed)',
|
|
643
|
-
example: [VehicleType.PL, VehicleType.VUL]
|
|
644
|
-
})
|
|
645
|
-
})
|
|
646
|
-
.openapi('UpsertParkingAreaScheduleItem');
|
|
647
|
-
export const deleteParkingAreaScheduleItemSchema = z
|
|
648
|
-
.object({
|
|
649
|
-
id: z.number().int().positive().openapi({
|
|
650
|
-
description: 'ID of the schedule to delete',
|
|
651
|
-
example: 1
|
|
652
|
-
})
|
|
653
|
-
})
|
|
654
|
-
.openapi('DeleteParkingAreaScheduleItem');
|
|
655
|
-
export const upsertParkingAreaSchedulesBodySchema = z
|
|
656
|
-
.object({
|
|
657
|
-
upsert: z.array(upsertParkingAreaScheduleItemSchema).optional().openapi({
|
|
658
|
-
description: 'Array of schedules to create or update'
|
|
659
|
-
}),
|
|
660
|
-
delete: z.array(deleteParkingAreaScheduleItemSchema).optional().openapi({
|
|
661
|
-
description: 'Array of schedule IDs to delete'
|
|
662
|
-
})
|
|
663
|
-
})
|
|
664
|
-
.refine(data => (data.upsert && data.upsert.length > 0) || (data.delete && data.delete.length > 0), {
|
|
665
|
-
message: 'At least one upsert or delete operation is required'
|
|
666
|
-
})
|
|
667
|
-
.openapi('UpsertParkingAreaSchedulesBody');
|
|
668
|
-
export const upsertParkingAreaSchedulesDataSchema = z
|
|
669
|
-
.object({
|
|
670
|
-
total_upserted: z.number().int().nonnegative().openapi({
|
|
671
|
-
description: 'Total number of schedules successfully upserted',
|
|
672
|
-
example: 3
|
|
673
|
-
}),
|
|
674
|
-
total_deleted: z.number().int().nonnegative().openapi({
|
|
675
|
-
description: 'Total number of schedules successfully deleted',
|
|
676
|
-
example: 1
|
|
677
|
-
}),
|
|
678
|
-
upserted_schedules: z.array(parkingAreaScheduleSchema).openapi({
|
|
679
|
-
description: 'Array of successfully upserted schedules'
|
|
680
|
-
}),
|
|
681
|
-
deleted_schedules: z
|
|
682
|
-
.array(z.object({
|
|
683
|
-
id: z.number().int().positive()
|
|
684
|
-
}))
|
|
685
|
-
.openapi({
|
|
686
|
-
description: 'Array of successfully deleted schedule IDs'
|
|
687
|
-
}),
|
|
688
|
-
failed_operations: z
|
|
689
|
-
.array(z.object({
|
|
690
|
-
operation: z.enum(['upsert', 'delete']),
|
|
691
|
-
error: z.string(),
|
|
692
|
-
data: z.union([upsertParkingAreaScheduleItemSchema, deleteParkingAreaScheduleItemSchema])
|
|
693
|
-
}))
|
|
694
|
-
.openapi({
|
|
695
|
-
description: 'Array of operations that failed to process'
|
|
696
|
-
})
|
|
697
|
-
})
|
|
698
|
-
.openapi('UpsertParkingAreaSchedulesData');
|
|
699
|
-
export const upsertParkingAreaSchedulesResponseSchema = createMessageDataResponseSchema(upsertParkingAreaSchedulesDataSchema, 'UpsertParkingAreaSchedulesResponse', 'Parking area schedules operation completed', 'Results of the upsert/delete operations');
|
|
700
|
-
// ------------------------------
|
|
701
517
|
// Site Plan Image Upload Schemas
|
|
702
518
|
// ------------------------------
|
|
703
519
|
export const uploadSitePlanImageParamsSchema = z
|
|
@@ -178,8 +178,8 @@ export declare const updateAccessDataSchema: z.ZodObject<{
|
|
|
178
178
|
name: z.ZodString;
|
|
179
179
|
created_at: z.ZodString;
|
|
180
180
|
updated_at: z.ZodString;
|
|
181
|
-
event_id: z.ZodNumber;
|
|
182
181
|
is_active: z.ZodBoolean;
|
|
182
|
+
event_id: z.ZodNumber;
|
|
183
183
|
created_by: z.ZodNullable<z.ZodString>;
|
|
184
184
|
updated_by: z.ZodNullable<z.ZodString>;
|
|
185
185
|
geometry: z.ZodNullable<z.ZodObject<{
|
|
@@ -209,8 +209,8 @@ export declare const updateAccessResponseSchema: z.ZodObject<{
|
|
|
209
209
|
name: z.ZodString;
|
|
210
210
|
created_at: z.ZodString;
|
|
211
211
|
updated_at: z.ZodString;
|
|
212
|
-
event_id: z.ZodNumber;
|
|
213
212
|
is_active: z.ZodBoolean;
|
|
213
|
+
event_id: z.ZodNumber;
|
|
214
214
|
created_by: z.ZodNullable<z.ZodString>;
|
|
215
215
|
updated_by: z.ZodNullable<z.ZodString>;
|
|
216
216
|
geometry: z.ZodNullable<z.ZodObject<{
|
|
@@ -142,8 +142,8 @@ export declare const updateLayerDataSchema: z.ZodObject<{
|
|
|
142
142
|
}, z.core.$strip>;
|
|
143
143
|
created_at: z.ZodString;
|
|
144
144
|
updated_at: z.ZodString;
|
|
145
|
-
event_id: z.ZodNumber;
|
|
146
145
|
image_url: z.ZodString;
|
|
146
|
+
event_id: z.ZodNumber;
|
|
147
147
|
created_by: z.ZodNullable<z.ZodString>;
|
|
148
148
|
updated_by: z.ZodNullable<z.ZodString>;
|
|
149
149
|
start_date: z.ZodNullable<z.ZodString>;
|
|
@@ -169,8 +169,8 @@ export declare const updateLayerResponseSchema: z.ZodObject<{
|
|
|
169
169
|
}, z.core.$strip>;
|
|
170
170
|
created_at: z.ZodString;
|
|
171
171
|
updated_at: z.ZodString;
|
|
172
|
-
event_id: z.ZodNumber;
|
|
173
172
|
image_url: z.ZodString;
|
|
173
|
+
event_id: z.ZodNumber;
|
|
174
174
|
created_by: z.ZodNullable<z.ZodString>;
|
|
175
175
|
updated_by: z.ZodNullable<z.ZodString>;
|
|
176
176
|
start_date: z.ZodNullable<z.ZodString>;
|
package/dist/parkingBooking.d.ts
CHANGED
|
@@ -889,6 +889,7 @@ export declare const exportBookingDataSchema: z.ZodObject<{
|
|
|
889
889
|
parking_schedule_type: z.ZodNullable<z.ZodString>;
|
|
890
890
|
slot_key: z.ZodNullable<z.ZodString>;
|
|
891
891
|
is_custom_slot: z.ZodNullable<z.ZodBoolean>;
|
|
892
|
+
is_fast_track_access: z.ZodNullable<z.ZodBoolean>;
|
|
892
893
|
company_hall: z.ZodNullable<z.ZodString>;
|
|
893
894
|
company_stand_number: z.ZodNullable<z.ZodString>;
|
|
894
895
|
company_name: z.ZodNullable<z.ZodString>;
|
|
@@ -933,6 +934,7 @@ export declare const exportBookingsDataSchema: z.ZodObject<{
|
|
|
933
934
|
parking_schedule_type: z.ZodNullable<z.ZodString>;
|
|
934
935
|
slot_key: z.ZodNullable<z.ZodString>;
|
|
935
936
|
is_custom_slot: z.ZodNullable<z.ZodBoolean>;
|
|
937
|
+
is_fast_track_access: z.ZodNullable<z.ZodBoolean>;
|
|
936
938
|
company_hall: z.ZodNullable<z.ZodString>;
|
|
937
939
|
company_stand_number: z.ZodNullable<z.ZodString>;
|
|
938
940
|
company_name: z.ZodNullable<z.ZodString>;
|
|
@@ -978,6 +980,7 @@ export declare const exportBookingsResponseSchema: z.ZodObject<{
|
|
|
978
980
|
parking_schedule_type: z.ZodNullable<z.ZodString>;
|
|
979
981
|
slot_key: z.ZodNullable<z.ZodString>;
|
|
980
982
|
is_custom_slot: z.ZodNullable<z.ZodBoolean>;
|
|
983
|
+
is_fast_track_access: z.ZodNullable<z.ZodBoolean>;
|
|
981
984
|
company_hall: z.ZodNullable<z.ZodString>;
|
|
982
985
|
company_stand_number: z.ZodNullable<z.ZodString>;
|
|
983
986
|
company_name: z.ZodNullable<z.ZodString>;
|
package/dist/parkingBooking.js
CHANGED
|
@@ -896,6 +896,10 @@ export const exportBookingDataSchema = z
|
|
|
896
896
|
description: 'Whether the booking uses a custom time slot',
|
|
897
897
|
example: false
|
|
898
898
|
}),
|
|
899
|
+
is_fast_track_access: z.boolean().nullable().openapi({
|
|
900
|
+
description: 'Whether the booking has fast track access',
|
|
901
|
+
example: false
|
|
902
|
+
}),
|
|
899
903
|
// Flattened company fields
|
|
900
904
|
company_hall: z.string().nullable().openapi({
|
|
901
905
|
description: 'Hall location',
|