@venulog/phasing-engine-schemas 0.7.6-alpha.0 → 0.8.0-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.
@@ -616,18 +616,15 @@ export declare const availableParkingAreaSlotsResponseSchema: z.ZodObject<{
616
616
  }, z.core.$strip>>;
617
617
  total_slots: z.ZodNumber;
618
618
  }, z.core.$strip>;
619
- export declare const getAvailableSlotsBodySchema: z.ZodObject<{
619
+ export declare const getAvailableSlotsBodyV2Schema: z.ZodObject<{
620
620
  event_id: z.ZodNumber;
621
621
  year: z.ZodNumber;
622
622
  month: z.ZodNumber;
623
- company_role: z.ZodString;
624
- schedule_type: z.ZodOptional<z.ZodEnum<{
625
- assembly: "assembly";
626
- dismantling: "dismantling";
627
- }>>;
623
+ company_name: z.ZodString;
624
+ vehicle_type: z.ZodEnum<typeof VehicleType>;
625
+ schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
628
626
  }, z.core.$strip>;
629
- export declare const availableTimeSlotSchema: z.ZodObject<{
630
- parking_area_schedule_id: z.ZodNumber;
627
+ export declare const availableTimeSlotV2Schema: z.ZodObject<{
631
628
  date: z.ZodString;
632
629
  start_time: z.ZodString;
633
630
  end_time: z.ZodString;
@@ -641,8 +638,12 @@ export declare const availableTimeSlotSchema: z.ZodObject<{
641
638
  confirmed_bookings: z.ZodNumber;
642
639
  available_capacity: z.ZodNumber;
643
640
  is_available: z.ZodBoolean;
641
+ door: z.ZodString;
642
+ parking_spot: z.ZodString;
643
+ entity_name: z.ZodString;
644
+ slot_key: z.ZodString;
644
645
  }, z.core.$strip>;
645
- export declare const availableSlotsResponseSchema: z.ZodObject<{
646
+ export declare const availableSlotsResponseV2Schema: z.ZodObject<{
646
647
  event_id: z.ZodNumber;
647
648
  event_code: z.ZodString;
648
649
  event_name: z.ZodString;
@@ -650,7 +651,6 @@ export declare const availableSlotsResponseSchema: z.ZodObject<{
650
651
  year: z.ZodNumber;
651
652
  month: z.ZodNumber;
652
653
  available_slots: z.ZodArray<z.ZodObject<{
653
- parking_area_schedule_id: z.ZodNumber;
654
654
  date: z.ZodString;
655
655
  start_time: z.ZodString;
656
656
  end_time: z.ZodString;
@@ -664,21 +664,32 @@ export declare const availableSlotsResponseSchema: z.ZodObject<{
664
664
  confirmed_bookings: z.ZodNumber;
665
665
  available_capacity: z.ZodNumber;
666
666
  is_available: z.ZodBoolean;
667
+ door: z.ZodString;
668
+ parking_spot: z.ZodString;
669
+ entity_name: z.ZodString;
670
+ slot_key: z.ZodString;
667
671
  }, z.core.$strip>>;
668
672
  total_slots: z.ZodNumber;
669
673
  }, z.core.$strip>;
670
674
  export declare const getCompanyRolesByEventIdParamsSchema: z.ZodObject<{
671
675
  eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
672
- scheduleType: z.ZodEnum<{
673
- assembly: "assembly";
674
- dismantling: "dismantling";
675
- }>;
676
676
  }, z.core.$strip>;
677
677
  export declare const getCompanyRolesByEventIdResponseSchema: z.ZodObject<{
678
678
  event_id: z.ZodNumber;
679
679
  company_roles: z.ZodArray<z.ZodString>;
680
680
  total_count: z.ZodNumber;
681
681
  }, z.core.$strip>;
682
+ export declare const getCompanyNamesByEventIdParamsSchema: z.ZodObject<{
683
+ eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
684
+ }, z.core.$strip>;
685
+ export declare const getCompanyNamesByEventIdQuerySchema: z.ZodObject<{
686
+ company_role: z.ZodOptional<z.ZodString>;
687
+ }, z.core.$strip>;
688
+ export declare const getCompanyNamesByEventIdResponseSchema: z.ZodObject<{
689
+ event_id: z.ZodNumber;
690
+ company_names: z.ZodArray<z.ZodString>;
691
+ total_count: z.ZodNumber;
692
+ }, z.core.$strip>;
682
693
  export type Point = z.infer<typeof pointSchema>;
683
694
  export type PolygonCoordinates = z.infer<typeof polygonCoordinatesSchema>;
684
695
  export type RectangleGeometry = z.infer<typeof rectangleGeometrySchema>;
@@ -715,8 +726,11 @@ export type UploadSitePlanImageResponse = z.infer<typeof uploadSitePlanImageResp
715
726
  export type GetAvailableParkingAreaSlotsQuery = z.infer<typeof getAvailableParkingAreaSlotsQuerySchema>;
716
727
  export type AvailableParkingAreaTimeSlot = z.infer<typeof availableParkingAreaTimeSlotSchema>;
717
728
  export type AvailableParkingAreaSlotsResponse = z.infer<typeof availableParkingAreaSlotsResponseSchema>;
718
- export type GetAvailableSlotsBody = z.infer<typeof getAvailableSlotsBodySchema>;
719
- export type AvailableTimeSlot = z.infer<typeof availableTimeSlotSchema>;
720
- export type AvailableSlotsResponse = z.infer<typeof availableSlotsResponseSchema>;
721
729
  export type GetCompanyRolesByEventIdParams = z.infer<typeof getCompanyRolesByEventIdParamsSchema>;
722
730
  export type GetCompanyRolesByEventIdResponse = z.infer<typeof getCompanyRolesByEventIdResponseSchema>;
731
+ export type GetCompanyNamesByEventIdParams = z.infer<typeof getCompanyNamesByEventIdParamsSchema>;
732
+ export type GetCompanyNamesByEventIdResponse = z.infer<typeof getCompanyNamesByEventIdResponseSchema>;
733
+ export type GetCompanyNamesByEventIdQuery = z.infer<typeof getCompanyNamesByEventIdQuerySchema>;
734
+ export type GetAvailableSlotsBodyV2 = z.infer<typeof getAvailableSlotsBodyV2Schema>;
735
+ export type AvailableTimeSlotV2 = z.infer<typeof availableTimeSlotV2Schema>;
736
+ export type AvailableSlotsResponseV2 = z.infer<typeof availableSlotsResponseV2Schema>;
@@ -695,6 +695,7 @@ export const uploadSitePlanImageResponseSchema = createMessageDataResponseSchema
695
695
  // ------------------------------
696
696
  // Available Time Slots (Parking Area version)
697
697
  // ------------------------------
698
+ // TODO: delete after migrating to V2
698
699
  export const getAvailableParkingAreaSlotsQuerySchema = z
699
700
  .object({
700
701
  event_id: z.number().nonnegative().openapi({
@@ -825,15 +826,15 @@ export const availableParkingAreaSlotsResponseSchema = z
825
826
  })
826
827
  .openapi('AvailableParkingAreaSlotsResponse');
827
828
  // ------------------------------
828
- // Parking Area Query Schemas
829
+ // Available Time Slots V2 (Parking Area version)
829
830
  // ------------------------------
830
- export const getAvailableSlotsBodySchema = z
831
+ export const getAvailableSlotsBodyV2Schema = z
831
832
  .object({
832
833
  event_id: z.number().positive().openapi({
833
834
  description: 'The ID of the event',
834
835
  example: 1
835
836
  }),
836
- year: z.number().min(2024).openapi({
837
+ year: z.number().min(2025).openapi({
837
838
  description: 'Year for filtering slots (YYYY). Slots before today will be excluded.',
838
839
  example: 2026
839
840
  }),
@@ -841,25 +842,22 @@ export const getAvailableSlotsBodySchema = z
841
842
  description: 'Month for filtering slots (1-12). Slots before today will be excluded.',
842
843
  example: 6
843
844
  }),
844
- company_role: z.string().min(1, 'Company role is required').openapi({
845
- description: 'Company role to filter schedules by',
846
- example: 'exhibitor'
845
+ company_name: z.string().min(1, 'Company name is required').openapi({
846
+ description: 'Company name to filter allocations by',
847
+ example: 'IMPACT'
847
848
  }),
848
- schedule_type: z.enum(['assembly', 'dismantling']).optional().openapi({
849
+ vehicle_type: z.enum(VehicleType).openapi({
850
+ description: 'Vehicle type to filter allocations by',
851
+ example: VehicleType.PL
852
+ }),
853
+ schedule_type: z.enum(ParkingAreaScheduleType).openapi({
849
854
  description: 'Filter by schedule type',
850
855
  example: 'assembly'
851
856
  })
852
857
  })
853
- .openapi('GetAvailableSlotsBody');
854
- // ------------------------------
855
- // Parking Area Response Schemas
856
- // ------------------------------
857
- export const availableTimeSlotSchema = z
858
+ .openapi('GetAvailableSlotsBodyV2');
859
+ export const availableTimeSlotV2Schema = z
858
860
  .object({
859
- parking_area_schedule_id: z.number().openapi({
860
- description: 'Parking area schedule ID',
861
- example: 1
862
- }),
863
861
  date: z.string().openapi({
864
862
  description: 'Date of the time slot (YYYY-MM-DD)',
865
863
  example: '2026-06-15'
@@ -899,10 +897,26 @@ export const availableTimeSlotSchema = z
899
897
  is_available: z.boolean().openapi({
900
898
  description: 'Whether the slot is available for booking',
901
899
  example: true
900
+ }),
901
+ door: z.string().openapi({
902
+ description: 'Door name for the parking slot',
903
+ example: 'Porte 4'
904
+ }),
905
+ parking_spot: z.string().openapi({
906
+ description: 'Specific parking spot identifier',
907
+ example: '7'
908
+ }),
909
+ entity_name: z.string().openapi({
910
+ description: 'Name of the entity associated with the slot',
911
+ example: 'IMPACT'
912
+ }),
913
+ slot_key: z.string().openapi({
914
+ description: 'Unique identifier for the time slot',
915
+ example: '12345'
902
916
  })
903
917
  })
904
- .openapi('AvailableTimeSlot');
905
- export const availableSlotsResponseSchema = z
918
+ .openapi('AvailableTimeSlotV2');
919
+ export const availableSlotsResponseV2Schema = z
906
920
  .object({
907
921
  event_id: z.number().openapi({
908
922
  description: 'ID of the event',
@@ -928,15 +942,15 @@ export const availableSlotsResponseSchema = z
928
942
  description: 'Month of the slots',
929
943
  example: 6
930
944
  }),
931
- available_slots: z.array(availableTimeSlotSchema).openapi({
932
- description: 'List of available time slots with capacity information'
945
+ available_slots: z.array(availableTimeSlotV2Schema).openapi({
946
+ description: 'List of available time slots separated by parking spot'
933
947
  }),
934
948
  total_slots: z.number().openapi({
935
- description: 'Total number of time slots in the period',
949
+ description: 'Total number of time slots (with individual parking spots)',
936
950
  example: 48
937
951
  })
938
952
  })
939
- .openapi('AvailableSlotsResponse');
953
+ .openapi('AvailableSlotsResponseV2');
940
954
  // ------------------------------
941
955
  // Company Roles for Parking Area
942
956
  // ------------------------------
@@ -950,10 +964,6 @@ export const getCompanyRolesByEventIdParamsSchema = z
950
964
  .openapi({
951
965
  description: 'The ID of the event to get company roles for',
952
966
  example: '1'
953
- }),
954
- scheduleType: z.enum(['assembly', 'dismantling']).openapi({
955
- description: 'Type of schedule',
956
- example: 'assembly'
957
967
  })
958
968
  })
959
969
  .openapi('GetCompanyRolesByEventIdParams');
@@ -973,3 +983,43 @@ export const getCompanyRolesByEventIdResponseSchema = z
973
983
  })
974
984
  })
975
985
  .openapi('GetCompanyRolesByEventIdResponse');
986
+ // ------------------------------
987
+ // Company Names for Parking Area
988
+ // ------------------------------
989
+ export const getCompanyNamesByEventIdParamsSchema = z
990
+ .object({
991
+ eventId: z
992
+ .string()
993
+ .min(1, 'Event ID is required')
994
+ .transform(val => parseInt(val, 10))
995
+ .refine(val => !isNaN(val) && val > 0, { message: 'Event ID must be positive' })
996
+ .openapi({
997
+ description: 'The ID of the event to get company names for',
998
+ example: '1'
999
+ })
1000
+ })
1001
+ .openapi('GetCompanyNamesByEventIdParams');
1002
+ export const getCompanyNamesByEventIdQuerySchema = z
1003
+ .object({
1004
+ company_role: z.string().optional().openapi({
1005
+ description: 'Filter company names by company role (category)',
1006
+ example: 'Exposant'
1007
+ })
1008
+ })
1009
+ .openapi('GetCompanyNamesByEventIdQuery');
1010
+ export const getCompanyNamesByEventIdResponseSchema = z
1011
+ .object({
1012
+ event_id: z.number().openapi({
1013
+ description: 'ID of the event',
1014
+ example: 1
1015
+ }),
1016
+ company_names: z.array(z.string()).openapi({
1017
+ description: 'List of unique company names for the event',
1018
+ example: ['IMPACT', 'GLM', 'Liberté Event']
1019
+ }),
1020
+ total_count: z.number().openapi({
1021
+ description: 'Total number of unique company names',
1022
+ example: 3
1023
+ })
1024
+ })
1025
+ .openapi('GetCompanyNamesByEventIdResponse');
@@ -0,0 +1,400 @@
1
+ import { z } from './zod.js';
2
+ /**
3
+ * A point in 2D space using percentage-based coordinates (0-100)
4
+ * relative to the site plan image dimensions
5
+ */
6
+ export declare const accessPointSchema: z.ZodObject<{
7
+ x: z.ZodNumber;
8
+ y: z.ZodNumber;
9
+ }, z.core.$strip>;
10
+ /**
11
+ * GeoJSON LineString for access point geometry
12
+ */
13
+ export declare const geoJsonLineStringSchema: z.ZodObject<{
14
+ type: z.ZodLiteral<"LineString">;
15
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
16
+ }, z.core.$strip>;
17
+ /**
18
+ * Core parking area access item schema matching database structure
19
+ */
20
+ export declare const parkingAreaAccessItemSchema: z.ZodObject<{
21
+ id: z.ZodNumber;
22
+ event_id: z.ZodNumber;
23
+ name: z.ZodString;
24
+ geometry: z.ZodNullable<z.ZodObject<{
25
+ type: z.ZodLiteral<"LineString">;
26
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
27
+ }, z.core.$strip>>;
28
+ width_meters: z.ZodNullable<z.ZodNumber>;
29
+ height_meters: z.ZodNullable<z.ZodNumber>;
30
+ is_active: z.ZodBoolean;
31
+ created_at: z.ZodString;
32
+ updated_at: z.ZodString;
33
+ created_by: z.ZodNullable<z.ZodString>;
34
+ updated_by: z.ZodNullable<z.ZodString>;
35
+ }, z.core.$strip>;
36
+ /**
37
+ * Access point with linked parking areas
38
+ */
39
+ export declare const parkingAreaAccessWithLinksSchema: z.ZodObject<{
40
+ id: z.ZodNumber;
41
+ event_id: z.ZodNumber;
42
+ name: z.ZodString;
43
+ geometry: z.ZodNullable<z.ZodObject<{
44
+ type: z.ZodLiteral<"LineString">;
45
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
46
+ }, z.core.$strip>>;
47
+ width_meters: z.ZodNullable<z.ZodNumber>;
48
+ height_meters: z.ZodNullable<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
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
55
+ parking_area_id: z.ZodNumber;
56
+ parking_area_name: z.ZodNullable<z.ZodString>;
57
+ }, z.core.$strip>>;
58
+ }, z.core.$strip>;
59
+ export declare const getAccessesByEventIdParamsSchema: z.ZodObject<{
60
+ eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
61
+ }, z.core.$strip>;
62
+ export declare const getAccessByIdParamsSchema: z.ZodObject<{
63
+ accessId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
64
+ }, z.core.$strip>;
65
+ export declare const createAccessBodySchema: z.ZodObject<{
66
+ event_id: z.ZodNumber;
67
+ name: z.ZodString;
68
+ geometry: z.ZodOptional<z.ZodObject<{
69
+ type: z.ZodLiteral<"LineString">;
70
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
71
+ }, z.core.$strip>>;
72
+ width_meters: z.ZodOptional<z.ZodNumber>;
73
+ height_meters: z.ZodOptional<z.ZodNumber>;
74
+ linked_parking_area_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
75
+ }, z.core.$strip>;
76
+ export declare const createAccessDataSchema: z.ZodObject<{
77
+ access_id: z.ZodNumber;
78
+ event_id: z.ZodNumber;
79
+ name: z.ZodString;
80
+ geometry: z.ZodNullable<z.ZodObject<{
81
+ type: z.ZodLiteral<"LineString">;
82
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
83
+ }, z.core.$strip>>;
84
+ width_meters: z.ZodNullable<z.ZodNumber>;
85
+ height_meters: z.ZodNullable<z.ZodNumber>;
86
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
87
+ parking_area_id: z.ZodNumber;
88
+ parking_area_name: z.ZodNullable<z.ZodString>;
89
+ }, z.core.$strip>>;
90
+ is_active: z.ZodBoolean;
91
+ created_at: z.ZodString;
92
+ created_by: z.ZodNullable<z.ZodString>;
93
+ }, z.core.$strip>;
94
+ export declare const createAccessResponseSchema: z.ZodObject<{
95
+ success: z.ZodBoolean;
96
+ message: z.ZodString;
97
+ data: z.ZodObject<{
98
+ access_id: z.ZodNumber;
99
+ event_id: z.ZodNumber;
100
+ name: z.ZodString;
101
+ geometry: z.ZodNullable<z.ZodObject<{
102
+ type: z.ZodLiteral<"LineString">;
103
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
104
+ }, z.core.$strip>>;
105
+ width_meters: z.ZodNullable<z.ZodNumber>;
106
+ height_meters: z.ZodNullable<z.ZodNumber>;
107
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
108
+ parking_area_id: z.ZodNumber;
109
+ parking_area_name: z.ZodNullable<z.ZodString>;
110
+ }, z.core.$strip>>;
111
+ is_active: z.ZodBoolean;
112
+ created_at: z.ZodString;
113
+ created_by: z.ZodNullable<z.ZodString>;
114
+ }, z.core.$strip>;
115
+ }, z.core.$strip>;
116
+ export declare const updateAccessParamsSchema: z.ZodObject<{
117
+ accessId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
118
+ }, z.core.$strip>;
119
+ export declare const updateAccessBodySchema: z.ZodObject<{
120
+ name: z.ZodOptional<z.ZodString>;
121
+ geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
122
+ type: z.ZodLiteral<"LineString">;
123
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
124
+ }, z.core.$strip>>>;
125
+ width_meters: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
126
+ height_meters: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
127
+ is_active: z.ZodOptional<z.ZodBoolean>;
128
+ }, z.core.$strip>;
129
+ export declare const updateAccessDataSchema: z.ZodObject<{
130
+ name: z.ZodString;
131
+ created_at: z.ZodString;
132
+ updated_at: z.ZodString;
133
+ event_id: z.ZodNumber;
134
+ is_active: z.ZodBoolean;
135
+ geometry: z.ZodNullable<z.ZodObject<{
136
+ type: z.ZodLiteral<"LineString">;
137
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
138
+ }, z.core.$strip>>;
139
+ created_by: z.ZodNullable<z.ZodString>;
140
+ updated_by: z.ZodNullable<z.ZodString>;
141
+ width_meters: z.ZodNullable<z.ZodNumber>;
142
+ height_meters: z.ZodNullable<z.ZodNumber>;
143
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
144
+ parking_area_id: z.ZodNumber;
145
+ parking_area_name: z.ZodNullable<z.ZodString>;
146
+ }, z.core.$strip>>;
147
+ access_id: z.ZodNumber;
148
+ }, z.core.$strip>;
149
+ export declare const updateAccessResponseSchema: z.ZodObject<{
150
+ success: z.ZodBoolean;
151
+ message: z.ZodString;
152
+ data: z.ZodObject<{
153
+ name: z.ZodString;
154
+ created_at: z.ZodString;
155
+ updated_at: z.ZodString;
156
+ event_id: z.ZodNumber;
157
+ is_active: z.ZodBoolean;
158
+ geometry: z.ZodNullable<z.ZodObject<{
159
+ type: z.ZodLiteral<"LineString">;
160
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
161
+ }, z.core.$strip>>;
162
+ created_by: z.ZodNullable<z.ZodString>;
163
+ updated_by: z.ZodNullable<z.ZodString>;
164
+ width_meters: z.ZodNullable<z.ZodNumber>;
165
+ height_meters: z.ZodNullable<z.ZodNumber>;
166
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
167
+ parking_area_id: z.ZodNumber;
168
+ parking_area_name: z.ZodNullable<z.ZodString>;
169
+ }, z.core.$strip>>;
170
+ access_id: z.ZodNumber;
171
+ }, z.core.$strip>;
172
+ }, z.core.$strip>;
173
+ export declare const deleteAccessParamsSchema: z.ZodObject<{
174
+ accessId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
175
+ }, z.core.$strip>;
176
+ export declare const deleteAccessDataSchema: z.ZodObject<{
177
+ access_id: z.ZodNumber;
178
+ deleted_at: z.ZodString;
179
+ }, z.core.$strip>;
180
+ export declare const deleteAccessResponseSchema: z.ZodObject<{
181
+ success: z.ZodBoolean;
182
+ message: z.ZodString;
183
+ data: z.ZodObject<{
184
+ access_id: z.ZodNumber;
185
+ deleted_at: z.ZodString;
186
+ }, z.core.$strip>;
187
+ }, z.core.$strip>;
188
+ export declare const linkAccessAreasParamsSchema: z.ZodObject<{
189
+ accessId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
190
+ }, z.core.$strip>;
191
+ export declare const linkAccessAreasBodySchema: z.ZodObject<{
192
+ parking_area_ids: z.ZodArray<z.ZodNumber>;
193
+ }, z.core.$strip>;
194
+ export declare const linkAccessAreasDataSchema: z.ZodObject<{
195
+ access_id: z.ZodNumber;
196
+ linked_count: z.ZodNumber;
197
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
198
+ parking_area_id: z.ZodNumber;
199
+ parking_area_name: z.ZodNullable<z.ZodString>;
200
+ }, z.core.$strip>>;
201
+ }, z.core.$strip>;
202
+ export declare const linkAccessAreasResponseSchema: z.ZodObject<{
203
+ success: z.ZodBoolean;
204
+ message: z.ZodString;
205
+ data: z.ZodObject<{
206
+ access_id: z.ZodNumber;
207
+ linked_count: z.ZodNumber;
208
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
209
+ parking_area_id: z.ZodNumber;
210
+ parking_area_name: z.ZodNullable<z.ZodString>;
211
+ }, z.core.$strip>>;
212
+ }, z.core.$strip>;
213
+ }, z.core.$strip>;
214
+ export declare const unlinkAccessAreaParamsSchema: z.ZodObject<{
215
+ accessId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
216
+ areaId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
217
+ }, z.core.$strip>;
218
+ export declare const unlinkAccessAreaDataSchema: z.ZodObject<{
219
+ access_id: z.ZodNumber;
220
+ parking_area_id: z.ZodNumber;
221
+ unlinked_at: z.ZodString;
222
+ }, z.core.$strip>;
223
+ export declare const unlinkAccessAreaResponseSchema: z.ZodObject<{
224
+ success: z.ZodBoolean;
225
+ message: z.ZodString;
226
+ data: z.ZodObject<{
227
+ access_id: z.ZodNumber;
228
+ parking_area_id: z.ZodNumber;
229
+ unlinked_at: z.ZodString;
230
+ }, z.core.$strip>;
231
+ }, z.core.$strip>;
232
+ export declare const getAccessesDataSchema: z.ZodObject<{
233
+ event_id: z.ZodNumber;
234
+ accesses: z.ZodArray<z.ZodObject<{
235
+ id: z.ZodNumber;
236
+ event_id: z.ZodNumber;
237
+ name: z.ZodString;
238
+ geometry: z.ZodNullable<z.ZodObject<{
239
+ type: z.ZodLiteral<"LineString">;
240
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
241
+ }, z.core.$strip>>;
242
+ width_meters: z.ZodNullable<z.ZodNumber>;
243
+ height_meters: z.ZodNullable<z.ZodNumber>;
244
+ is_active: z.ZodBoolean;
245
+ created_at: z.ZodString;
246
+ updated_at: z.ZodString;
247
+ created_by: z.ZodNullable<z.ZodString>;
248
+ updated_by: z.ZodNullable<z.ZodString>;
249
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
250
+ parking_area_id: z.ZodNumber;
251
+ parking_area_name: z.ZodNullable<z.ZodString>;
252
+ }, z.core.$strip>>;
253
+ }, z.core.$strip>>;
254
+ total_count: z.ZodNumber;
255
+ }, z.core.$strip>;
256
+ export declare const getAccessesResponseSchema: z.ZodObject<{
257
+ success: z.ZodBoolean;
258
+ data: z.ZodObject<{
259
+ event_id: z.ZodNumber;
260
+ accesses: z.ZodArray<z.ZodObject<{
261
+ id: z.ZodNumber;
262
+ event_id: z.ZodNumber;
263
+ name: z.ZodString;
264
+ geometry: z.ZodNullable<z.ZodObject<{
265
+ type: z.ZodLiteral<"LineString">;
266
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
267
+ }, z.core.$strip>>;
268
+ width_meters: z.ZodNullable<z.ZodNumber>;
269
+ height_meters: z.ZodNullable<z.ZodNumber>;
270
+ is_active: z.ZodBoolean;
271
+ created_at: z.ZodString;
272
+ updated_at: z.ZodString;
273
+ created_by: z.ZodNullable<z.ZodString>;
274
+ updated_by: z.ZodNullable<z.ZodString>;
275
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
276
+ parking_area_id: z.ZodNumber;
277
+ parking_area_name: z.ZodNullable<z.ZodString>;
278
+ }, z.core.$strip>>;
279
+ }, z.core.$strip>>;
280
+ total_count: z.ZodNumber;
281
+ }, z.core.$strip>;
282
+ }, z.core.$strip>;
283
+ export declare const getAccessDetailResponseSchema: z.ZodObject<{
284
+ success: z.ZodBoolean;
285
+ data: z.ZodObject<{
286
+ id: z.ZodNumber;
287
+ event_id: z.ZodNumber;
288
+ name: z.ZodString;
289
+ geometry: z.ZodNullable<z.ZodObject<{
290
+ type: z.ZodLiteral<"LineString">;
291
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
292
+ }, z.core.$strip>>;
293
+ width_meters: z.ZodNullable<z.ZodNumber>;
294
+ height_meters: z.ZodNullable<z.ZodNumber>;
295
+ is_active: z.ZodBoolean;
296
+ created_at: z.ZodString;
297
+ updated_at: z.ZodString;
298
+ created_by: z.ZodNullable<z.ZodString>;
299
+ updated_by: z.ZodNullable<z.ZodString>;
300
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
301
+ parking_area_id: z.ZodNumber;
302
+ parking_area_name: z.ZodNullable<z.ZodString>;
303
+ }, z.core.$strip>>;
304
+ }, z.core.$strip>;
305
+ }, z.core.$strip>;
306
+ export declare const bulkUpsertAccessesBodySchema: z.ZodObject<{
307
+ event_id: z.ZodNumber;
308
+ accesses: z.ZodArray<z.ZodObject<{
309
+ id: z.ZodOptional<z.ZodNumber>;
310
+ name: z.ZodString;
311
+ geometry: z.ZodOptional<z.ZodObject<{
312
+ type: z.ZodLiteral<"LineString">;
313
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
314
+ }, z.core.$strip>>;
315
+ width_meters: z.ZodOptional<z.ZodNumber>;
316
+ height_meters: z.ZodOptional<z.ZodNumber>;
317
+ linked_parking_area_ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
318
+ }, z.core.$strip>>;
319
+ }, z.core.$strip>;
320
+ export declare const bulkUpsertAccessesDataSchema: z.ZodObject<{
321
+ event_id: z.ZodNumber;
322
+ total_upserted: z.ZodNumber;
323
+ upserted_accesses: z.ZodArray<z.ZodObject<{
324
+ id: z.ZodNumber;
325
+ event_id: z.ZodNumber;
326
+ name: z.ZodString;
327
+ geometry: z.ZodNullable<z.ZodObject<{
328
+ type: z.ZodLiteral<"LineString">;
329
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
330
+ }, z.core.$strip>>;
331
+ width_meters: z.ZodNullable<z.ZodNumber>;
332
+ height_meters: z.ZodNullable<z.ZodNumber>;
333
+ is_active: z.ZodBoolean;
334
+ created_at: z.ZodString;
335
+ updated_at: z.ZodString;
336
+ created_by: z.ZodNullable<z.ZodString>;
337
+ updated_by: z.ZodNullable<z.ZodString>;
338
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
339
+ parking_area_id: z.ZodNumber;
340
+ parking_area_name: z.ZodNullable<z.ZodString>;
341
+ }, z.core.$strip>>;
342
+ }, z.core.$strip>>;
343
+ }, z.core.$strip>;
344
+ export declare const bulkUpsertAccessesResponseSchema: z.ZodObject<{
345
+ success: z.ZodBoolean;
346
+ message: z.ZodString;
347
+ data: z.ZodObject<{
348
+ event_id: z.ZodNumber;
349
+ total_upserted: z.ZodNumber;
350
+ upserted_accesses: z.ZodArray<z.ZodObject<{
351
+ id: z.ZodNumber;
352
+ event_id: z.ZodNumber;
353
+ name: z.ZodString;
354
+ geometry: z.ZodNullable<z.ZodObject<{
355
+ type: z.ZodLiteral<"LineString">;
356
+ coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
357
+ }, z.core.$strip>>;
358
+ width_meters: z.ZodNullable<z.ZodNumber>;
359
+ height_meters: z.ZodNullable<z.ZodNumber>;
360
+ is_active: z.ZodBoolean;
361
+ created_at: z.ZodString;
362
+ updated_at: z.ZodString;
363
+ created_by: z.ZodNullable<z.ZodString>;
364
+ updated_by: z.ZodNullable<z.ZodString>;
365
+ linked_parking_areas: z.ZodArray<z.ZodObject<{
366
+ parking_area_id: z.ZodNumber;
367
+ parking_area_name: z.ZodNullable<z.ZodString>;
368
+ }, z.core.$strip>>;
369
+ }, z.core.$strip>>;
370
+ }, z.core.$strip>;
371
+ }, z.core.$strip>;
372
+ export type AccessPoint = z.infer<typeof accessPointSchema>;
373
+ export type GeoJsonLineString = z.infer<typeof geoJsonLineStringSchema>;
374
+ export type ParkingAreaAccessItem = z.infer<typeof parkingAreaAccessItemSchema>;
375
+ export type ParkingAreaAccessWithLinks = z.infer<typeof parkingAreaAccessWithLinksSchema>;
376
+ export type GetAccessesByEventIdParams = z.infer<typeof getAccessesByEventIdParamsSchema>;
377
+ export type GetAccessByIdParams = z.infer<typeof getAccessByIdParamsSchema>;
378
+ export type CreateAccessBody = z.infer<typeof createAccessBodySchema>;
379
+ export type CreateAccessData = z.infer<typeof createAccessDataSchema>;
380
+ export type CreateAccessResponse = z.infer<typeof createAccessResponseSchema>;
381
+ export type UpdateAccessParams = z.infer<typeof updateAccessParamsSchema>;
382
+ export type UpdateAccessBody = z.infer<typeof updateAccessBodySchema>;
383
+ export type UpdateAccessData = z.infer<typeof updateAccessDataSchema>;
384
+ export type UpdateAccessResponse = z.infer<typeof updateAccessResponseSchema>;
385
+ export type DeleteAccessParams = z.infer<typeof deleteAccessParamsSchema>;
386
+ export type DeleteAccessData = z.infer<typeof deleteAccessDataSchema>;
387
+ export type DeleteAccessResponse = z.infer<typeof deleteAccessResponseSchema>;
388
+ export type LinkAccessAreasParams = z.infer<typeof linkAccessAreasParamsSchema>;
389
+ export type LinkAccessAreasBody = z.infer<typeof linkAccessAreasBodySchema>;
390
+ export type LinkAccessAreasData = z.infer<typeof linkAccessAreasDataSchema>;
391
+ export type LinkAccessAreasResponse = z.infer<typeof linkAccessAreasResponseSchema>;
392
+ export type UnlinkAccessAreaParams = z.infer<typeof unlinkAccessAreaParamsSchema>;
393
+ export type UnlinkAccessAreaData = z.infer<typeof unlinkAccessAreaDataSchema>;
394
+ export type UnlinkAccessAreaResponse = z.infer<typeof unlinkAccessAreaResponseSchema>;
395
+ export type GetAccessesData = z.infer<typeof getAccessesDataSchema>;
396
+ export type GetAccessesResponse = z.infer<typeof getAccessesResponseSchema>;
397
+ export type GetAccessDetailResponse = z.infer<typeof getAccessDetailResponseSchema>;
398
+ export type BulkUpsertAccessesBody = z.infer<typeof bulkUpsertAccessesBodySchema>;
399
+ export type BulkUpsertAccessesData = z.infer<typeof bulkUpsertAccessesDataSchema>;
400
+ export type BulkUpsertAccessesResponse = z.infer<typeof bulkUpsertAccessesResponseSchema>;