@venulog/phasing-engine-schemas 0.12.0-alpha.4 → 0.13.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/eventSitePlanCalibration.d.ts +118 -0
- package/dist/eventSitePlanCalibration.js +148 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/parkingAreaAccess.d.ts +4 -4
- package/dist/parkingBooking.d.ts +12 -11
- package/dist/parkingBooking.js +5 -5
- package/package.json +6 -2
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { z } from './zod.js';
|
|
2
|
+
export declare const eventSitePlanCalibrationAnchorSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
event_id: z.ZodNumber;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
latitude: z.ZodNumber;
|
|
7
|
+
longitude: z.ZodNumber;
|
|
8
|
+
site_plan_x: z.ZodNumber;
|
|
9
|
+
site_plan_y: z.ZodNumber;
|
|
10
|
+
is_active: z.ZodBoolean;
|
|
11
|
+
created_at: z.ZodString;
|
|
12
|
+
updated_at: z.ZodString;
|
|
13
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
14
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const getEventSitePlanCalibrationsQuerySchema: z.ZodObject<{
|
|
17
|
+
eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const getEventSitePlanCalibrationsDataSchema: z.ZodObject<{
|
|
20
|
+
event_id: z.ZodNumber;
|
|
21
|
+
anchors: z.ZodArray<z.ZodObject<{
|
|
22
|
+
id: z.ZodNumber;
|
|
23
|
+
event_id: z.ZodNumber;
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
latitude: z.ZodNumber;
|
|
26
|
+
longitude: z.ZodNumber;
|
|
27
|
+
site_plan_x: z.ZodNumber;
|
|
28
|
+
site_plan_y: z.ZodNumber;
|
|
29
|
+
is_active: z.ZodBoolean;
|
|
30
|
+
created_at: z.ZodString;
|
|
31
|
+
updated_at: z.ZodString;
|
|
32
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
33
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
total_count: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export declare const getEventSitePlanCalibrationsResponseSchema: z.ZodObject<{
|
|
38
|
+
success: z.ZodBoolean;
|
|
39
|
+
data: z.ZodObject<{
|
|
40
|
+
event_id: z.ZodNumber;
|
|
41
|
+
anchors: z.ZodArray<z.ZodObject<{
|
|
42
|
+
id: z.ZodNumber;
|
|
43
|
+
event_id: z.ZodNumber;
|
|
44
|
+
name: z.ZodString;
|
|
45
|
+
latitude: z.ZodNumber;
|
|
46
|
+
longitude: z.ZodNumber;
|
|
47
|
+
site_plan_x: z.ZodNumber;
|
|
48
|
+
site_plan_y: 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
|
+
}, z.core.$strip>>;
|
|
55
|
+
total_count: z.ZodNumber;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export declare const bulkUpsertEventSitePlanCalibrationsBodySchema: z.ZodObject<{
|
|
59
|
+
event_id: z.ZodNumber;
|
|
60
|
+
anchors: z.ZodArray<z.ZodObject<{
|
|
61
|
+
id: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
name: z.ZodString;
|
|
63
|
+
latitude: z.ZodNumber;
|
|
64
|
+
longitude: z.ZodNumber;
|
|
65
|
+
site_plan_x: z.ZodNumber;
|
|
66
|
+
site_plan_y: z.ZodNumber;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
deleted_anchor_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber>>>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export declare const bulkUpsertEventSitePlanCalibrationsDataSchema: z.ZodObject<{
|
|
71
|
+
event_id: z.ZodNumber;
|
|
72
|
+
total_upserted: z.ZodNumber;
|
|
73
|
+
total_deactivated: z.ZodNumber;
|
|
74
|
+
upserted_anchors: z.ZodArray<z.ZodObject<{
|
|
75
|
+
id: z.ZodNumber;
|
|
76
|
+
event_id: z.ZodNumber;
|
|
77
|
+
name: z.ZodString;
|
|
78
|
+
latitude: z.ZodNumber;
|
|
79
|
+
longitude: z.ZodNumber;
|
|
80
|
+
site_plan_x: z.ZodNumber;
|
|
81
|
+
site_plan_y: z.ZodNumber;
|
|
82
|
+
is_active: z.ZodBoolean;
|
|
83
|
+
created_at: z.ZodString;
|
|
84
|
+
updated_at: z.ZodString;
|
|
85
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
86
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
export declare const bulkUpsertEventSitePlanCalibrationsResponseSchema: z.ZodObject<{
|
|
90
|
+
success: z.ZodBoolean;
|
|
91
|
+
message: z.ZodString;
|
|
92
|
+
data: z.ZodObject<{
|
|
93
|
+
event_id: z.ZodNumber;
|
|
94
|
+
total_upserted: z.ZodNumber;
|
|
95
|
+
total_deactivated: z.ZodNumber;
|
|
96
|
+
upserted_anchors: z.ZodArray<z.ZodObject<{
|
|
97
|
+
id: z.ZodNumber;
|
|
98
|
+
event_id: z.ZodNumber;
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
latitude: z.ZodNumber;
|
|
101
|
+
longitude: z.ZodNumber;
|
|
102
|
+
site_plan_x: z.ZodNumber;
|
|
103
|
+
site_plan_y: z.ZodNumber;
|
|
104
|
+
is_active: z.ZodBoolean;
|
|
105
|
+
created_at: z.ZodString;
|
|
106
|
+
updated_at: z.ZodString;
|
|
107
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
108
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export type EventSitePlanCalibrationAnchor = z.infer<typeof eventSitePlanCalibrationAnchorSchema>;
|
|
113
|
+
export type GetEventSitePlanCalibrationsQuery = z.infer<typeof getEventSitePlanCalibrationsQuerySchema>;
|
|
114
|
+
export type GetEventSitePlanCalibrationsData = z.infer<typeof getEventSitePlanCalibrationsDataSchema>;
|
|
115
|
+
export type GetEventSitePlanCalibrationsResponse = z.infer<typeof getEventSitePlanCalibrationsResponseSchema>;
|
|
116
|
+
export type BulkUpsertEventSitePlanCalibrationsBody = z.infer<typeof bulkUpsertEventSitePlanCalibrationsBodySchema>;
|
|
117
|
+
export type BulkUpsertEventSitePlanCalibrationsData = z.infer<typeof bulkUpsertEventSitePlanCalibrationsDataSchema>;
|
|
118
|
+
export type BulkUpsertEventSitePlanCalibrationsResponse = z.infer<typeof bulkUpsertEventSitePlanCalibrationsResponseSchema>;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
// packages/phasing-schemas/src/eventSitePlanCalibration.ts
|
|
2
|
+
import { z } from './zod.js';
|
|
3
|
+
import { createSuccessResponseSchema, createMessageDataResponseSchema } from './common.js';
|
|
4
|
+
export const eventSitePlanCalibrationAnchorSchema = z
|
|
5
|
+
.object({
|
|
6
|
+
id: z.number().int().positive().openapi({
|
|
7
|
+
description: 'Calibration anchor ID',
|
|
8
|
+
example: 12
|
|
9
|
+
}),
|
|
10
|
+
event_id: z.number().int().positive().openapi({
|
|
11
|
+
description: 'Event ID this anchor belongs to',
|
|
12
|
+
example: 77
|
|
13
|
+
}),
|
|
14
|
+
name: z.string().min(1).openapi({
|
|
15
|
+
description: 'Readable anchor name (e.g., Gate A)',
|
|
16
|
+
example: 'Gate A'
|
|
17
|
+
}),
|
|
18
|
+
latitude: z.number().min(-90).max(90).openapi({
|
|
19
|
+
description: 'Latitude in decimal degrees',
|
|
20
|
+
example: 48.86245
|
|
21
|
+
}),
|
|
22
|
+
longitude: z.number().min(-180).max(180).openapi({
|
|
23
|
+
description: 'Longitude in decimal degrees',
|
|
24
|
+
example: 2.28791
|
|
25
|
+
}),
|
|
26
|
+
site_plan_x: z.number().min(0).max(100).openapi({
|
|
27
|
+
description: 'Horizontal position on the site plan (0-100%)',
|
|
28
|
+
example: 6.25
|
|
29
|
+
}),
|
|
30
|
+
site_plan_y: z.number().min(0).max(100).openapi({
|
|
31
|
+
description: 'Vertical position on the site plan (0-100%)',
|
|
32
|
+
example: 52.1
|
|
33
|
+
}),
|
|
34
|
+
is_active: z.boolean().openapi({
|
|
35
|
+
description: 'Whether this anchor is active',
|
|
36
|
+
example: true
|
|
37
|
+
}),
|
|
38
|
+
created_at: z.string().openapi({
|
|
39
|
+
description: 'Creation timestamp (ISO 8601)'
|
|
40
|
+
}),
|
|
41
|
+
updated_at: z.string().openapi({
|
|
42
|
+
description: 'Last update timestamp (ISO 8601)'
|
|
43
|
+
}),
|
|
44
|
+
created_by: z.string().uuid().nullable().openapi({
|
|
45
|
+
description: 'User who created the anchor',
|
|
46
|
+
example: '550e8400-e29b-41d4-a716-446655440000'
|
|
47
|
+
}),
|
|
48
|
+
updated_by: z.string().uuid().nullable().openapi({
|
|
49
|
+
description: 'User who last updated the anchor',
|
|
50
|
+
example: '550e8400-e29b-41d4-a716-446655440000'
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
|
+
.openapi('EventSitePlanCalibrationAnchor');
|
|
54
|
+
export const getEventSitePlanCalibrationsQuerySchema = z
|
|
55
|
+
.object({
|
|
56
|
+
eventId: z
|
|
57
|
+
.string()
|
|
58
|
+
.min(1)
|
|
59
|
+
.transform(val => parseInt(val, 10))
|
|
60
|
+
.refine(val => !isNaN(val) && val > 0, {
|
|
61
|
+
message: 'Event ID must be a positive number'
|
|
62
|
+
})
|
|
63
|
+
.openapi({
|
|
64
|
+
description: 'Event ID',
|
|
65
|
+
example: '77'
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
.openapi('GetEventSitePlanCalibrationsQuery');
|
|
69
|
+
export const getEventSitePlanCalibrationsDataSchema = z
|
|
70
|
+
.object({
|
|
71
|
+
event_id: z.number().int().positive().openapi({
|
|
72
|
+
description: 'ID of the event',
|
|
73
|
+
example: 77
|
|
74
|
+
}),
|
|
75
|
+
anchors: z.array(eventSitePlanCalibrationAnchorSchema).openapi({
|
|
76
|
+
description: 'List of calibration anchors for the event'
|
|
77
|
+
}),
|
|
78
|
+
total_count: z.number().int().nonnegative().openapi({
|
|
79
|
+
description: 'Total anchors returned',
|
|
80
|
+
example: 3
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
.openapi('GetEventSitePlanCalibrationsData');
|
|
84
|
+
export const getEventSitePlanCalibrationsResponseSchema = createSuccessResponseSchema(getEventSitePlanCalibrationsDataSchema, 'GetEventSitePlanCalibrationsResponse', 'Event site plan calibration anchors');
|
|
85
|
+
const calibrationAnchorInputSchema = z.object({
|
|
86
|
+
id: z.number().int().positive().optional().openapi({
|
|
87
|
+
description: 'Existing anchor ID (omit for new anchors)'
|
|
88
|
+
}),
|
|
89
|
+
name: z.string().min(1, 'Name is required').max(255).openapi({
|
|
90
|
+
description: 'Anchor name',
|
|
91
|
+
example: 'Gate A'
|
|
92
|
+
}),
|
|
93
|
+
latitude: z.number().min(-90).max(90).openapi({
|
|
94
|
+
description: 'Latitude in decimal degrees',
|
|
95
|
+
example: 48.86245
|
|
96
|
+
}),
|
|
97
|
+
longitude: z.number().min(-180).max(180).openapi({
|
|
98
|
+
description: 'Longitude in decimal degrees',
|
|
99
|
+
example: 2.28791
|
|
100
|
+
}),
|
|
101
|
+
site_plan_x: z.number().min(0).max(100).openapi({
|
|
102
|
+
description: 'Horizontal percentage on the site plan',
|
|
103
|
+
example: 6.2
|
|
104
|
+
}),
|
|
105
|
+
site_plan_y: z.number().min(0).max(100).openapi({
|
|
106
|
+
description: 'Vertical percentage on the site plan',
|
|
107
|
+
example: 52.0
|
|
108
|
+
})
|
|
109
|
+
});
|
|
110
|
+
export const bulkUpsertEventSitePlanCalibrationsBodySchema = z
|
|
111
|
+
.object({
|
|
112
|
+
event_id: z.number().int().positive().openapi({
|
|
113
|
+
description: 'ID of the event',
|
|
114
|
+
example: 77
|
|
115
|
+
}),
|
|
116
|
+
anchors: z.array(calibrationAnchorInputSchema).min(0).openapi({
|
|
117
|
+
description: 'Anchors to create or update'
|
|
118
|
+
}),
|
|
119
|
+
deleted_anchor_ids: z
|
|
120
|
+
.array(z.number().int().positive())
|
|
121
|
+
.optional()
|
|
122
|
+
.default([])
|
|
123
|
+
.openapi({
|
|
124
|
+
description: 'IDs of anchors to deactivate',
|
|
125
|
+
example: [3, 5]
|
|
126
|
+
})
|
|
127
|
+
})
|
|
128
|
+
.openapi('BulkUpsertEventSitePlanCalibrationsBody');
|
|
129
|
+
export const bulkUpsertEventSitePlanCalibrationsDataSchema = z
|
|
130
|
+
.object({
|
|
131
|
+
event_id: z.number().int().positive().openapi({
|
|
132
|
+
description: 'Event ID',
|
|
133
|
+
example: 77
|
|
134
|
+
}),
|
|
135
|
+
total_upserted: z.number().int().nonnegative().openapi({
|
|
136
|
+
description: 'Anchors created or updated',
|
|
137
|
+
example: 2
|
|
138
|
+
}),
|
|
139
|
+
total_deactivated: z.number().int().nonnegative().openapi({
|
|
140
|
+
description: 'Anchors deactivated',
|
|
141
|
+
example: 1
|
|
142
|
+
}),
|
|
143
|
+
upserted_anchors: z.array(eventSitePlanCalibrationAnchorSchema).openapi({
|
|
144
|
+
description: 'Details of anchors returned from Supabase'
|
|
145
|
+
})
|
|
146
|
+
})
|
|
147
|
+
.openapi('BulkUpsertEventSitePlanCalibrationsData');
|
|
148
|
+
export const bulkUpsertEventSitePlanCalibrationsResponseSchema = createMessageDataResponseSchema(bulkUpsertEventSitePlanCalibrationsDataSchema, 'BulkUpsertEventSitePlanCalibrationsResponse', 'Calibration anchors upserted successfully', 'Details about the upserted calibration anchors');
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './parkingBooking.js';
|
|
|
5
5
|
export * from './parkingArea.js';
|
|
6
6
|
export * from './parkingAreaLayer.js';
|
|
7
7
|
export * from './parkingAreaAccess.js';
|
|
8
|
+
export * from './eventSitePlanCalibration.js';
|
|
8
9
|
export * from './event.js';
|
|
9
10
|
export * from './accessToken.js';
|
|
10
11
|
export * from './vehiclePosition.js';
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ export * from './parkingBooking.js';
|
|
|
6
6
|
export * from './parkingArea.js';
|
|
7
7
|
export * from './parkingAreaLayer.js';
|
|
8
8
|
export * from './parkingAreaAccess.js';
|
|
9
|
+
export * from './eventSitePlanCalibration.js';
|
|
9
10
|
export * from './event.js';
|
|
10
11
|
export * from './accessToken.js';
|
|
11
12
|
export * from './vehiclePosition.js';
|
|
@@ -132,12 +132,12 @@ export declare const updateAccessDataSchema: z.ZodObject<{
|
|
|
132
132
|
updated_at: z.ZodString;
|
|
133
133
|
event_id: z.ZodNumber;
|
|
134
134
|
is_active: z.ZodBoolean;
|
|
135
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
136
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
135
137
|
geometry: z.ZodNullable<z.ZodObject<{
|
|
136
138
|
type: z.ZodLiteral<"LineString">;
|
|
137
139
|
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
138
140
|
}, z.core.$strip>>;
|
|
139
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
140
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
141
141
|
width_meters: z.ZodNullable<z.ZodNumber>;
|
|
142
142
|
height_meters: z.ZodNullable<z.ZodNumber>;
|
|
143
143
|
linked_parking_areas: z.ZodArray<z.ZodObject<{
|
|
@@ -155,12 +155,12 @@ export declare const updateAccessResponseSchema: z.ZodObject<{
|
|
|
155
155
|
updated_at: z.ZodString;
|
|
156
156
|
event_id: z.ZodNumber;
|
|
157
157
|
is_active: z.ZodBoolean;
|
|
158
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
159
|
+
updated_by: z.ZodNullable<z.ZodString>;
|
|
158
160
|
geometry: z.ZodNullable<z.ZodObject<{
|
|
159
161
|
type: z.ZodLiteral<"LineString">;
|
|
160
162
|
coordinates: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
161
163
|
}, z.core.$strip>>;
|
|
162
|
-
created_by: z.ZodNullable<z.ZodString>;
|
|
163
|
-
updated_by: z.ZodNullable<z.ZodString>;
|
|
164
164
|
width_meters: z.ZodNullable<z.ZodNumber>;
|
|
165
165
|
height_meters: z.ZodNullable<z.ZodNumber>;
|
|
166
166
|
linked_parking_areas: z.ZodArray<z.ZodObject<{
|
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
|
})
|
|
@@ -699,7 +700,6 @@ export const getParkingBookingDetailsByQrBodySchema = z
|
|
|
699
700
|
})
|
|
700
701
|
})
|
|
701
702
|
.openapi('GetBookingDetailsByQrBody');
|
|
702
|
-
// ------------------------------
|
|
703
703
|
// Export All Parking Bookings
|
|
704
704
|
// ------------------------------
|
|
705
705
|
export const exportBookingDataSchema = z
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venulog/phasing-engine-schemas",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0-alpha.0",
|
|
4
4
|
"description": "Shared schemas and types for Phasing Engine API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -65,6 +65,10 @@
|
|
|
65
65
|
"./exhibitor": {
|
|
66
66
|
"types": "./dist/exhibitor.d.ts",
|
|
67
67
|
"import": "./dist/exhibitor.js"
|
|
68
|
+
},
|
|
69
|
+
"./eventSitePlanCalibration": {
|
|
70
|
+
"types": "./dist/eventSitePlanCalibration.d.ts",
|
|
71
|
+
"import": "./dist/eventSitePlanCalibration.js"
|
|
68
72
|
}
|
|
69
73
|
},
|
|
70
74
|
"files": [
|
|
@@ -73,7 +77,7 @@
|
|
|
73
77
|
"scripts": {
|
|
74
78
|
"build": "npm run clean && tsc",
|
|
75
79
|
"dev": "tsc --watch",
|
|
76
|
-
"clean": "
|
|
80
|
+
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
77
81
|
"prepublishOnly": "npm run build"
|
|
78
82
|
},
|
|
79
83
|
"keywords": [
|