@venulog/phasing-engine-schemas 0.3.0-alpha.0 → 0.4.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.
- package/dist/common.d.ts +9 -0
- package/dist/common.js +29 -0
- package/dist/enums/index.d.ts +3 -0
- package/dist/enums/index.js +4 -0
- package/dist/enums/parkingAreaScheduleType.d.ts +4 -0
- package/dist/enums/parkingAreaScheduleType.js +5 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/parkingArea.d.ts +591 -0
- package/dist/parkingArea.js +796 -0
- package/dist/phaseBooking.d.ts +504 -0
- package/dist/phaseBooking.js +431 -1
- package/dist/phaseSlot.d.ts +2 -0
- package/dist/phaseSlot.js +15 -0
- package/package.json +9 -1
package/dist/common.d.ts
CHANGED
|
@@ -16,3 +16,12 @@ export declare function createMessageDataResponseSchema<T extends z.ZodTypeAny>(
|
|
|
16
16
|
data: T;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export type BaseResponse = z.infer<typeof baseResponseSchema>;
|
|
19
|
+
export declare const documentSchema: z.ZodObject<{
|
|
20
|
+
url: z.ZodURL;
|
|
21
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
bucket: z.ZodOptional<z.ZodString>;
|
|
24
|
+
type: z.ZodOptional<z.ZodString>;
|
|
25
|
+
path: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type Document = z.infer<typeof documentSchema>;
|
package/dist/common.js
CHANGED
|
@@ -43,3 +43,32 @@ export function createMessageDataResponseSchema(dataSchema, schemaName, messageE
|
|
|
43
43
|
})
|
|
44
44
|
.openapi(schemaName);
|
|
45
45
|
}
|
|
46
|
+
// Document schema for file attachments
|
|
47
|
+
export const documentSchema = z
|
|
48
|
+
.object({
|
|
49
|
+
url: z.url().openapi({
|
|
50
|
+
description: 'URL of the document',
|
|
51
|
+
example: 'https://example.com/document.pdf'
|
|
52
|
+
}),
|
|
53
|
+
name: z.string().optional().openapi({
|
|
54
|
+
description: 'Name of the document',
|
|
55
|
+
example: 'event-banner.jpg'
|
|
56
|
+
}),
|
|
57
|
+
size: z.number().optional().openapi({
|
|
58
|
+
description: 'Size of the document in bytes',
|
|
59
|
+
example: 1024000
|
|
60
|
+
}),
|
|
61
|
+
bucket: z.string().optional().openapi({
|
|
62
|
+
description: 'Storage bucket name',
|
|
63
|
+
example: 'event-assets'
|
|
64
|
+
}),
|
|
65
|
+
type: z.string().optional().openapi({
|
|
66
|
+
description: 'MIME type of the document',
|
|
67
|
+
example: 'image/jpeg'
|
|
68
|
+
}),
|
|
69
|
+
path: z.string().optional().openapi({
|
|
70
|
+
description: 'Storage path of the document',
|
|
71
|
+
example: 'events/banners/event-123-banner.jpg'
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
.openapi('Document');
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ export * from './pagination.js';
|
|
|
3
3
|
export * from './auth.js';
|
|
4
4
|
export * from './phaseBooking.js';
|
|
5
5
|
export * from './phaseSlot.js';
|
|
6
|
+
export * from './parkingArea.js';
|
|
6
7
|
export * from './event.js';
|
|
7
8
|
export * from './enums/bookingStatus.js';
|
|
8
9
|
export * from './enums/phaseSlotScheduleType.js';
|
|
10
|
+
export * from './enums/parkingAreaScheduleType.js';
|
|
9
11
|
export { z } from './zod.js';
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,11 @@ export * from './pagination.js';
|
|
|
4
4
|
export * from './auth.js';
|
|
5
5
|
export * from './phaseBooking.js';
|
|
6
6
|
export * from './phaseSlot.js';
|
|
7
|
+
export * from './parkingArea.js';
|
|
7
8
|
export * from './event.js';
|
|
8
9
|
// Enum exports
|
|
9
10
|
export * from './enums/bookingStatus.js';
|
|
10
11
|
export * from './enums/phaseSlotScheduleType.js';
|
|
12
|
+
export * from './enums/parkingAreaScheduleType.js';
|
|
11
13
|
// Zod re-export for convenience
|
|
12
14
|
export { z } from './zod.js';
|
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
import { z } from './zod.js';
|
|
2
|
+
import { ParkingAreaScheduleType } from './enums/parkingAreaScheduleType.js';
|
|
3
|
+
/**
|
|
4
|
+
* A point in 2D space using percentage-based coordinates (0-100)
|
|
5
|
+
* relative to the site plan image dimensions
|
|
6
|
+
*/
|
|
7
|
+
export declare const pointSchema: z.ZodObject<{
|
|
8
|
+
x: z.ZodNumber;
|
|
9
|
+
y: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
/**
|
|
12
|
+
* A polygon defined by 4 vertices (for rotated rectangles)
|
|
13
|
+
* Points should be in clockwise or counter-clockwise order
|
|
14
|
+
*/
|
|
15
|
+
export declare const polygonCoordinatesSchema: z.ZodArray<z.ZodObject<{
|
|
16
|
+
x: z.ZodNumber;
|
|
17
|
+
y: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
/**
|
|
20
|
+
* Rectangle geometry for parking areas
|
|
21
|
+
* Includes center, dimensions, and rotation angle
|
|
22
|
+
*/
|
|
23
|
+
export declare const rectangleGeometrySchema: z.ZodObject<{
|
|
24
|
+
center: z.ZodObject<{
|
|
25
|
+
x: z.ZodNumber;
|
|
26
|
+
y: z.ZodNumber;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
width: z.ZodNumber;
|
|
29
|
+
height: z.ZodNumber;
|
|
30
|
+
angle: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
/**
|
|
33
|
+
* GeoJSON-compatible geometry for PostGIS storage
|
|
34
|
+
* Uses percentage-based coordinates that can be converted to actual coordinates
|
|
35
|
+
*/
|
|
36
|
+
export declare const geoJsonPolygonSchema: z.ZodObject<{
|
|
37
|
+
type: z.ZodLiteral<"Polygon">;
|
|
38
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
/**
|
|
41
|
+
* Core parking area item schema matching database structure
|
|
42
|
+
*/
|
|
43
|
+
export declare const parkingAreaItemSchema: z.ZodObject<{
|
|
44
|
+
id: z.ZodNumber;
|
|
45
|
+
event_id: z.ZodNumber;
|
|
46
|
+
name: z.ZodNullable<z.ZodString>;
|
|
47
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
48
|
+
type: z.ZodLiteral<"Polygon">;
|
|
49
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
52
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
is_active: z.ZodBoolean;
|
|
54
|
+
created_at: z.ZodString;
|
|
55
|
+
updated_at: z.ZodString;
|
|
56
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
57
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
/**
|
|
60
|
+
* Parking area with schedule information (for list views)
|
|
61
|
+
*/
|
|
62
|
+
export declare const parkingAreaWithSchedulesSchema: z.ZodObject<{
|
|
63
|
+
id: z.ZodNumber;
|
|
64
|
+
event_id: z.ZodNumber;
|
|
65
|
+
name: z.ZodNullable<z.ZodString>;
|
|
66
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
67
|
+
type: z.ZodLiteral<"Polygon">;
|
|
68
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
71
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
is_active: z.ZodBoolean;
|
|
73
|
+
created_at: z.ZodString;
|
|
74
|
+
updated_at: z.ZodString;
|
|
75
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
76
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
77
|
+
schedules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
78
|
+
id: z.ZodNumber;
|
|
79
|
+
date: z.ZodString;
|
|
80
|
+
start_time: z.ZodString;
|
|
81
|
+
end_time: z.ZodString;
|
|
82
|
+
duration: z.ZodNumber;
|
|
83
|
+
parking_area_schedule_type: z.ZodEnum<{
|
|
84
|
+
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
85
|
+
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
86
|
+
}>;
|
|
87
|
+
company_role: z.ZodNullable<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export declare const getParkingAreasByEventIdParamsSchema: z.ZodObject<{
|
|
91
|
+
eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
export declare const getParkingAreaByIdParamsSchema: z.ZodObject<{
|
|
94
|
+
areaId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export declare const createParkingAreaBodySchema: z.ZodObject<{
|
|
97
|
+
event_id: z.ZodNumber;
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
geometry: z.ZodOptional<z.ZodObject<{
|
|
100
|
+
type: z.ZodLiteral<"Polygon">;
|
|
101
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
site_plan_image_url: z.ZodOptional<z.ZodString>;
|
|
104
|
+
surface_area_sqm: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
export declare const createParkingAreaDataSchema: z.ZodObject<{
|
|
107
|
+
parking_area_id: z.ZodNumber;
|
|
108
|
+
event_id: z.ZodNumber;
|
|
109
|
+
name: z.ZodNullable<z.ZodString>;
|
|
110
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
111
|
+
type: z.ZodLiteral<"Polygon">;
|
|
112
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
115
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
116
|
+
is_active: z.ZodBoolean;
|
|
117
|
+
created_at: z.ZodString;
|
|
118
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export declare const createParkingAreaResponseSchema: z.ZodObject<{
|
|
121
|
+
success: z.ZodBoolean;
|
|
122
|
+
message: z.ZodString;
|
|
123
|
+
data: z.ZodObject<{
|
|
124
|
+
parking_area_id: z.ZodNumber;
|
|
125
|
+
event_id: z.ZodNumber;
|
|
126
|
+
name: z.ZodNullable<z.ZodString>;
|
|
127
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
128
|
+
type: z.ZodLiteral<"Polygon">;
|
|
129
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
132
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
133
|
+
is_active: z.ZodBoolean;
|
|
134
|
+
created_at: z.ZodString;
|
|
135
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
export declare const bulkCreateParkingAreasBodySchema: z.ZodObject<{
|
|
139
|
+
event_id: z.ZodNumber;
|
|
140
|
+
parking_areas: z.ZodArray<z.ZodObject<{
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
geometry: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
type: z.ZodLiteral<"Polygon">;
|
|
144
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
surface_area_sqm: z.ZodOptional<z.ZodNumber>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
site_plan_image_url: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
export declare const bulkCreateParkingAreasDataSchema: z.ZodObject<{
|
|
151
|
+
event_id: z.ZodNumber;
|
|
152
|
+
total_created: z.ZodNumber;
|
|
153
|
+
created_areas: z.ZodArray<z.ZodObject<{
|
|
154
|
+
parking_area_id: z.ZodNumber;
|
|
155
|
+
event_id: z.ZodNumber;
|
|
156
|
+
name: z.ZodNullable<z.ZodString>;
|
|
157
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
158
|
+
type: z.ZodLiteral<"Polygon">;
|
|
159
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
162
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
163
|
+
is_active: z.ZodBoolean;
|
|
164
|
+
created_at: z.ZodString;
|
|
165
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
166
|
+
}, z.core.$strip>>;
|
|
167
|
+
failed_areas: z.ZodArray<z.ZodObject<{
|
|
168
|
+
index: z.ZodNumber;
|
|
169
|
+
name: z.ZodString;
|
|
170
|
+
error: z.ZodString;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
export declare const bulkCreateParkingAreasResponseSchema: z.ZodObject<{
|
|
174
|
+
success: z.ZodBoolean;
|
|
175
|
+
message: z.ZodString;
|
|
176
|
+
data: z.ZodObject<{
|
|
177
|
+
event_id: z.ZodNumber;
|
|
178
|
+
total_created: z.ZodNumber;
|
|
179
|
+
created_areas: z.ZodArray<z.ZodObject<{
|
|
180
|
+
parking_area_id: z.ZodNumber;
|
|
181
|
+
event_id: z.ZodNumber;
|
|
182
|
+
name: z.ZodNullable<z.ZodString>;
|
|
183
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
184
|
+
type: z.ZodLiteral<"Polygon">;
|
|
185
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
188
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
189
|
+
is_active: z.ZodBoolean;
|
|
190
|
+
created_at: z.ZodString;
|
|
191
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
failed_areas: z.ZodArray<z.ZodObject<{
|
|
194
|
+
index: z.ZodNumber;
|
|
195
|
+
name: z.ZodString;
|
|
196
|
+
error: z.ZodString;
|
|
197
|
+
}, z.core.$strip>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
export declare const updateParkingAreaParamsSchema: z.ZodObject<{
|
|
201
|
+
areaId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
export declare const updateParkingAreaBodySchema: z.ZodObject<{
|
|
204
|
+
name: z.ZodOptional<z.ZodString>;
|
|
205
|
+
geometry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
206
|
+
type: z.ZodLiteral<"Polygon">;
|
|
207
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
208
|
+
}, z.core.$strip>>>;
|
|
209
|
+
site_plan_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
210
|
+
surface_area_sqm: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
211
|
+
is_active: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
export declare const updateParkingAreaDataSchema: z.ZodObject<{
|
|
214
|
+
parking_area_id: z.ZodNumber;
|
|
215
|
+
event_id: z.ZodNumber;
|
|
216
|
+
name: z.ZodNullable<z.ZodString>;
|
|
217
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
218
|
+
type: z.ZodLiteral<"Polygon">;
|
|
219
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
222
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
223
|
+
is_active: z.ZodBoolean;
|
|
224
|
+
updated_at: z.ZodString;
|
|
225
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
export declare const updateParkingAreaResponseSchema: z.ZodObject<{
|
|
228
|
+
success: z.ZodBoolean;
|
|
229
|
+
message: z.ZodString;
|
|
230
|
+
data: z.ZodObject<{
|
|
231
|
+
parking_area_id: z.ZodNumber;
|
|
232
|
+
event_id: z.ZodNumber;
|
|
233
|
+
name: z.ZodNullable<z.ZodString>;
|
|
234
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<"Polygon">;
|
|
236
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
239
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
240
|
+
is_active: z.ZodBoolean;
|
|
241
|
+
updated_at: z.ZodString;
|
|
242
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
export declare const deleteParkingAreaParamsSchema: z.ZodObject<{
|
|
246
|
+
areaId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
export declare const deleteParkingAreaDataSchema: z.ZodObject<{
|
|
249
|
+
parking_area_id: z.ZodNumber;
|
|
250
|
+
deleted_at: z.ZodString;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
export declare const deleteParkingAreaResponseSchema: z.ZodObject<{
|
|
253
|
+
success: z.ZodBoolean;
|
|
254
|
+
message: z.ZodString;
|
|
255
|
+
data: z.ZodObject<{
|
|
256
|
+
parking_area_id: z.ZodNumber;
|
|
257
|
+
deleted_at: z.ZodString;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
}, z.core.$strip>;
|
|
260
|
+
export declare const getParkingAreasDataSchema: z.ZodObject<{
|
|
261
|
+
event_id: z.ZodNumber;
|
|
262
|
+
parking_areas: z.ZodArray<z.ZodObject<{
|
|
263
|
+
id: z.ZodNumber;
|
|
264
|
+
event_id: z.ZodNumber;
|
|
265
|
+
name: z.ZodNullable<z.ZodString>;
|
|
266
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
267
|
+
type: z.ZodLiteral<"Polygon">;
|
|
268
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
269
|
+
}, z.core.$strip>>;
|
|
270
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
271
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
272
|
+
is_active: z.ZodBoolean;
|
|
273
|
+
created_at: z.ZodString;
|
|
274
|
+
updated_at: z.ZodString;
|
|
275
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
276
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
277
|
+
}, z.core.$strip>>;
|
|
278
|
+
total_count: z.ZodNumber;
|
|
279
|
+
}, z.core.$strip>;
|
|
280
|
+
export declare const getParkingAreasResponseSchema: z.ZodObject<{
|
|
281
|
+
success: z.ZodBoolean;
|
|
282
|
+
data: z.ZodObject<{
|
|
283
|
+
event_id: z.ZodNumber;
|
|
284
|
+
parking_areas: z.ZodArray<z.ZodObject<{
|
|
285
|
+
id: z.ZodNumber;
|
|
286
|
+
event_id: z.ZodNumber;
|
|
287
|
+
name: z.ZodNullable<z.ZodString>;
|
|
288
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
289
|
+
type: z.ZodLiteral<"Polygon">;
|
|
290
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
291
|
+
}, z.core.$strip>>;
|
|
292
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
293
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
294
|
+
is_active: z.ZodBoolean;
|
|
295
|
+
created_at: z.ZodString;
|
|
296
|
+
updated_at: z.ZodString;
|
|
297
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
298
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
299
|
+
}, z.core.$strip>>;
|
|
300
|
+
total_count: z.ZodNumber;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
export declare const getParkingAreaDetailResponseSchema: z.ZodObject<{
|
|
304
|
+
success: z.ZodBoolean;
|
|
305
|
+
data: z.ZodObject<{
|
|
306
|
+
id: z.ZodNumber;
|
|
307
|
+
event_id: z.ZodNumber;
|
|
308
|
+
name: z.ZodNullable<z.ZodString>;
|
|
309
|
+
geometry: z.ZodNullable<z.ZodObject<{
|
|
310
|
+
type: z.ZodLiteral<"Polygon">;
|
|
311
|
+
coordinates: z.ZodArray<z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
312
|
+
}, z.core.$strip>>;
|
|
313
|
+
site_plan_image_url: z.ZodNullable<z.ZodString>;
|
|
314
|
+
surface_area_sqm: z.ZodNullable<z.ZodNumber>;
|
|
315
|
+
is_active: z.ZodBoolean;
|
|
316
|
+
created_at: z.ZodString;
|
|
317
|
+
updated_at: z.ZodString;
|
|
318
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
319
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
320
|
+
schedules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
321
|
+
id: z.ZodNumber;
|
|
322
|
+
date: z.ZodString;
|
|
323
|
+
start_time: z.ZodString;
|
|
324
|
+
end_time: z.ZodString;
|
|
325
|
+
duration: z.ZodNumber;
|
|
326
|
+
parking_area_schedule_type: z.ZodEnum<{
|
|
327
|
+
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
328
|
+
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
329
|
+
}>;
|
|
330
|
+
company_role: z.ZodNullable<z.ZodString>;
|
|
331
|
+
}, z.core.$strip>>>;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
export declare const parkingAreaScheduleSchema: z.ZodObject<{
|
|
335
|
+
id: z.ZodNumber;
|
|
336
|
+
date: z.ZodString;
|
|
337
|
+
start_time: z.ZodString;
|
|
338
|
+
end_time: z.ZodString;
|
|
339
|
+
duration: z.ZodNumber;
|
|
340
|
+
parking_area_id: z.ZodNumber;
|
|
341
|
+
parking_area_schedule_type: z.ZodEnum<{
|
|
342
|
+
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
343
|
+
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
344
|
+
}>;
|
|
345
|
+
company_role: z.ZodNullable<z.ZodString>;
|
|
346
|
+
created_at: z.ZodString;
|
|
347
|
+
updated_at: z.ZodString;
|
|
348
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
349
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
export declare const upsertParkingAreaScheduleItemSchema: z.ZodObject<{
|
|
352
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
parking_area_id: z.ZodNumber;
|
|
354
|
+
date: z.ZodString;
|
|
355
|
+
start_time: z.ZodDefault<z.ZodString>;
|
|
356
|
+
end_time: z.ZodDefault<z.ZodString>;
|
|
357
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
358
|
+
parking_area_schedule_type: z.ZodEnum<{
|
|
359
|
+
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
360
|
+
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
361
|
+
}>;
|
|
362
|
+
company_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
363
|
+
}, z.core.$strip>;
|
|
364
|
+
export declare const deleteParkingAreaScheduleItemSchema: z.ZodObject<{
|
|
365
|
+
id: z.ZodNumber;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
export declare const upsertParkingAreaSchedulesBodySchema: z.ZodObject<{
|
|
368
|
+
upsert: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
369
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
370
|
+
parking_area_id: z.ZodNumber;
|
|
371
|
+
date: z.ZodString;
|
|
372
|
+
start_time: z.ZodDefault<z.ZodString>;
|
|
373
|
+
end_time: z.ZodDefault<z.ZodString>;
|
|
374
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
375
|
+
parking_area_schedule_type: z.ZodEnum<{
|
|
376
|
+
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
377
|
+
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
378
|
+
}>;
|
|
379
|
+
company_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
}, z.core.$strip>>>;
|
|
381
|
+
delete: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
|
+
id: z.ZodNumber;
|
|
383
|
+
}, z.core.$strip>>>;
|
|
384
|
+
}, z.core.$strip>;
|
|
385
|
+
export declare const upsertParkingAreaSchedulesDataSchema: z.ZodObject<{
|
|
386
|
+
total_upserted: z.ZodNumber;
|
|
387
|
+
total_deleted: z.ZodNumber;
|
|
388
|
+
upserted_schedules: z.ZodArray<z.ZodObject<{
|
|
389
|
+
id: z.ZodNumber;
|
|
390
|
+
date: z.ZodString;
|
|
391
|
+
start_time: z.ZodString;
|
|
392
|
+
end_time: z.ZodString;
|
|
393
|
+
duration: z.ZodNumber;
|
|
394
|
+
parking_area_id: z.ZodNumber;
|
|
395
|
+
parking_area_schedule_type: z.ZodEnum<{
|
|
396
|
+
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
397
|
+
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
398
|
+
}>;
|
|
399
|
+
company_role: z.ZodNullable<z.ZodString>;
|
|
400
|
+
created_at: z.ZodString;
|
|
401
|
+
updated_at: z.ZodString;
|
|
402
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
403
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
deleted_schedules: z.ZodArray<z.ZodObject<{
|
|
406
|
+
id: z.ZodNumber;
|
|
407
|
+
}, z.core.$strip>>;
|
|
408
|
+
failed_operations: z.ZodArray<z.ZodObject<{
|
|
409
|
+
operation: z.ZodEnum<{
|
|
410
|
+
upsert: "upsert";
|
|
411
|
+
delete: "delete";
|
|
412
|
+
}>;
|
|
413
|
+
error: z.ZodString;
|
|
414
|
+
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
415
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
416
|
+
parking_area_id: z.ZodNumber;
|
|
417
|
+
date: z.ZodString;
|
|
418
|
+
start_time: z.ZodDefault<z.ZodString>;
|
|
419
|
+
end_time: z.ZodDefault<z.ZodString>;
|
|
420
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
421
|
+
parking_area_schedule_type: z.ZodEnum<{
|
|
422
|
+
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
423
|
+
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
424
|
+
}>;
|
|
425
|
+
company_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
427
|
+
id: z.ZodNumber;
|
|
428
|
+
}, z.core.$strip>]>;
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
export declare const upsertParkingAreaSchedulesResponseSchema: z.ZodObject<{
|
|
432
|
+
success: z.ZodBoolean;
|
|
433
|
+
message: z.ZodString;
|
|
434
|
+
data: z.ZodObject<{
|
|
435
|
+
total_upserted: z.ZodNumber;
|
|
436
|
+
total_deleted: z.ZodNumber;
|
|
437
|
+
upserted_schedules: z.ZodArray<z.ZodObject<{
|
|
438
|
+
id: z.ZodNumber;
|
|
439
|
+
date: z.ZodString;
|
|
440
|
+
start_time: z.ZodString;
|
|
441
|
+
end_time: z.ZodString;
|
|
442
|
+
duration: z.ZodNumber;
|
|
443
|
+
parking_area_id: z.ZodNumber;
|
|
444
|
+
parking_area_schedule_type: z.ZodEnum<{
|
|
445
|
+
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
446
|
+
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
447
|
+
}>;
|
|
448
|
+
company_role: z.ZodNullable<z.ZodString>;
|
|
449
|
+
created_at: z.ZodString;
|
|
450
|
+
updated_at: z.ZodString;
|
|
451
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
452
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
453
|
+
}, z.core.$strip>>;
|
|
454
|
+
deleted_schedules: z.ZodArray<z.ZodObject<{
|
|
455
|
+
id: z.ZodNumber;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
failed_operations: z.ZodArray<z.ZodObject<{
|
|
458
|
+
operation: z.ZodEnum<{
|
|
459
|
+
upsert: "upsert";
|
|
460
|
+
delete: "delete";
|
|
461
|
+
}>;
|
|
462
|
+
error: z.ZodString;
|
|
463
|
+
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
464
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
465
|
+
parking_area_id: z.ZodNumber;
|
|
466
|
+
date: z.ZodString;
|
|
467
|
+
start_time: z.ZodDefault<z.ZodString>;
|
|
468
|
+
end_time: z.ZodDefault<z.ZodString>;
|
|
469
|
+
duration: z.ZodDefault<z.ZodNumber>;
|
|
470
|
+
parking_area_schedule_type: z.ZodEnum<{
|
|
471
|
+
assembly: ParkingAreaScheduleType.ASSEMBLY;
|
|
472
|
+
dismantling: ParkingAreaScheduleType.DISMANTLING;
|
|
473
|
+
}>;
|
|
474
|
+
company_role: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
475
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
476
|
+
id: z.ZodNumber;
|
|
477
|
+
}, z.core.$strip>]>;
|
|
478
|
+
}, z.core.$strip>>;
|
|
479
|
+
}, z.core.$strip>;
|
|
480
|
+
}, z.core.$strip>;
|
|
481
|
+
export declare const uploadSitePlanImageParamsSchema: z.ZodObject<{
|
|
482
|
+
eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
483
|
+
}, z.core.$strip>;
|
|
484
|
+
export declare const uploadSitePlanImageDataSchema: z.ZodObject<{
|
|
485
|
+
image_url: z.ZodString;
|
|
486
|
+
file_name: z.ZodString;
|
|
487
|
+
file_size: z.ZodNumber;
|
|
488
|
+
mime_type: z.ZodString;
|
|
489
|
+
uploaded_at: z.ZodString;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
export declare const uploadSitePlanImageResponseSchema: z.ZodObject<{
|
|
492
|
+
success: z.ZodBoolean;
|
|
493
|
+
message: z.ZodString;
|
|
494
|
+
data: z.ZodObject<{
|
|
495
|
+
image_url: z.ZodString;
|
|
496
|
+
file_name: z.ZodString;
|
|
497
|
+
file_size: z.ZodNumber;
|
|
498
|
+
mime_type: z.ZodString;
|
|
499
|
+
uploaded_at: z.ZodString;
|
|
500
|
+
}, z.core.$strip>;
|
|
501
|
+
}, z.core.$strip>;
|
|
502
|
+
export declare const getAvailableParkingAreaSlotsQuerySchema: z.ZodObject<{
|
|
503
|
+
event_id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
504
|
+
year: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
505
|
+
month: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
506
|
+
parking_area_id: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
507
|
+
schedule_type: z.ZodOptional<z.ZodEnum<{
|
|
508
|
+
assembly: "assembly";
|
|
509
|
+
dismantling: "dismantling";
|
|
510
|
+
}>>;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
export declare const availableParkingAreaTimeSlotSchema: z.ZodObject<{
|
|
513
|
+
parking_area_schedule_id: z.ZodNumber;
|
|
514
|
+
date: z.ZodString;
|
|
515
|
+
start_time: z.ZodString;
|
|
516
|
+
end_time: z.ZodString;
|
|
517
|
+
duration: z.ZodNumber;
|
|
518
|
+
schedule_type: z.ZodEnum<{
|
|
519
|
+
assembly: "assembly";
|
|
520
|
+
dismantling: "dismantling";
|
|
521
|
+
}>;
|
|
522
|
+
company_role: z.ZodNullable<z.ZodString>;
|
|
523
|
+
max_capacity: z.ZodNumber;
|
|
524
|
+
current_bookings: z.ZodNumber;
|
|
525
|
+
confirmed_bookings: z.ZodNumber;
|
|
526
|
+
available_capacity: z.ZodNumber;
|
|
527
|
+
is_available: z.ZodBoolean;
|
|
528
|
+
}, z.core.$strip>;
|
|
529
|
+
export declare const availableParkingAreaSlotsResponseSchema: z.ZodObject<{
|
|
530
|
+
event_id: z.ZodNumber;
|
|
531
|
+
event_code: z.ZodString;
|
|
532
|
+
event_name: z.ZodString;
|
|
533
|
+
parking_area_id: z.ZodNumber;
|
|
534
|
+
parking_area_name: z.ZodNullable<z.ZodString>;
|
|
535
|
+
year: z.ZodNumber;
|
|
536
|
+
month: z.ZodNumber;
|
|
537
|
+
available_slots: z.ZodArray<z.ZodObject<{
|
|
538
|
+
parking_area_schedule_id: z.ZodNumber;
|
|
539
|
+
date: z.ZodString;
|
|
540
|
+
start_time: z.ZodString;
|
|
541
|
+
end_time: z.ZodString;
|
|
542
|
+
duration: z.ZodNumber;
|
|
543
|
+
schedule_type: z.ZodEnum<{
|
|
544
|
+
assembly: "assembly";
|
|
545
|
+
dismantling: "dismantling";
|
|
546
|
+
}>;
|
|
547
|
+
company_role: z.ZodNullable<z.ZodString>;
|
|
548
|
+
max_capacity: z.ZodNumber;
|
|
549
|
+
current_bookings: z.ZodNumber;
|
|
550
|
+
confirmed_bookings: z.ZodNumber;
|
|
551
|
+
available_capacity: z.ZodNumber;
|
|
552
|
+
is_available: z.ZodBoolean;
|
|
553
|
+
}, z.core.$strip>>;
|
|
554
|
+
total_slots: z.ZodNumber;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
export type Point = z.infer<typeof pointSchema>;
|
|
557
|
+
export type PolygonCoordinates = z.infer<typeof polygonCoordinatesSchema>;
|
|
558
|
+
export type RectangleGeometry = z.infer<typeof rectangleGeometrySchema>;
|
|
559
|
+
export type GeoJsonPolygon = z.infer<typeof geoJsonPolygonSchema>;
|
|
560
|
+
export type ParkingAreaItem = z.infer<typeof parkingAreaItemSchema>;
|
|
561
|
+
export type ParkingAreaWithSchedules = z.infer<typeof parkingAreaWithSchedulesSchema>;
|
|
562
|
+
export type GetParkingAreasByEventIdParams = z.infer<typeof getParkingAreasByEventIdParamsSchema>;
|
|
563
|
+
export type GetParkingAreaByIdParams = z.infer<typeof getParkingAreaByIdParamsSchema>;
|
|
564
|
+
export type CreateParkingAreaBody = z.infer<typeof createParkingAreaBodySchema>;
|
|
565
|
+
export type CreateParkingAreaData = z.infer<typeof createParkingAreaDataSchema>;
|
|
566
|
+
export type CreateParkingAreaResponse = z.infer<typeof createParkingAreaResponseSchema>;
|
|
567
|
+
export type BulkCreateParkingAreasBody = z.infer<typeof bulkCreateParkingAreasBodySchema>;
|
|
568
|
+
export type BulkCreateParkingAreasData = z.infer<typeof bulkCreateParkingAreasDataSchema>;
|
|
569
|
+
export type BulkCreateParkingAreasResponse = z.infer<typeof bulkCreateParkingAreasResponseSchema>;
|
|
570
|
+
export type UpdateParkingAreaParams = z.infer<typeof updateParkingAreaParamsSchema>;
|
|
571
|
+
export type UpdateParkingAreaBody = z.infer<typeof updateParkingAreaBodySchema>;
|
|
572
|
+
export type UpdateParkingAreaData = z.infer<typeof updateParkingAreaDataSchema>;
|
|
573
|
+
export type UpdateParkingAreaResponse = z.infer<typeof updateParkingAreaResponseSchema>;
|
|
574
|
+
export type DeleteParkingAreaParams = z.infer<typeof deleteParkingAreaParamsSchema>;
|
|
575
|
+
export type DeleteParkingAreaData = z.infer<typeof deleteParkingAreaDataSchema>;
|
|
576
|
+
export type DeleteParkingAreaResponse = z.infer<typeof deleteParkingAreaResponseSchema>;
|
|
577
|
+
export type GetParkingAreasData = z.infer<typeof getParkingAreasDataSchema>;
|
|
578
|
+
export type GetParkingAreasResponse = z.infer<typeof getParkingAreasResponseSchema>;
|
|
579
|
+
export type GetParkingAreaDetailResponse = z.infer<typeof getParkingAreaDetailResponseSchema>;
|
|
580
|
+
export type ParkingAreaSchedule = z.infer<typeof parkingAreaScheduleSchema>;
|
|
581
|
+
export type UpsertParkingAreaScheduleItem = z.infer<typeof upsertParkingAreaScheduleItemSchema>;
|
|
582
|
+
export type DeleteParkingAreaScheduleItem = z.infer<typeof deleteParkingAreaScheduleItemSchema>;
|
|
583
|
+
export type UpsertParkingAreaSchedulesBody = z.infer<typeof upsertParkingAreaSchedulesBodySchema>;
|
|
584
|
+
export type UpsertParkingAreaSchedulesData = z.infer<typeof upsertParkingAreaSchedulesDataSchema>;
|
|
585
|
+
export type UpsertParkingAreaSchedulesResponse = z.infer<typeof upsertParkingAreaSchedulesResponseSchema>;
|
|
586
|
+
export type UploadSitePlanImageParams = z.infer<typeof uploadSitePlanImageParamsSchema>;
|
|
587
|
+
export type UploadSitePlanImageData = z.infer<typeof uploadSitePlanImageDataSchema>;
|
|
588
|
+
export type UploadSitePlanImageResponse = z.infer<typeof uploadSitePlanImageResponseSchema>;
|
|
589
|
+
export type GetAvailableParkingAreaSlotsQuery = z.infer<typeof getAvailableParkingAreaSlotsQuerySchema>;
|
|
590
|
+
export type AvailableParkingAreaTimeSlot = z.infer<typeof availableParkingAreaTimeSlotSchema>;
|
|
591
|
+
export type AvailableParkingAreaSlotsResponse = z.infer<typeof availableParkingAreaSlotsResponseSchema>;
|