@venulog/phasing-engine-schemas 0.9.0-alpha.1 → 0.9.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 +1 -0
- package/dist/parkingArea.js +8 -0
- package/dist/parkingBooking.d.ts +12 -12
- package/dist/parkingBooking.js +1 -1
- package/package.json +95 -95
package/dist/parkingArea.d.ts
CHANGED
|
@@ -691,6 +691,7 @@ export declare const getCompanyRolesByEventIdParamsSchema: z.ZodObject<{
|
|
|
691
691
|
export declare const getCompanyRolesByEventIdResponseSchema: z.ZodObject<{
|
|
692
692
|
event_id: z.ZodNumber;
|
|
693
693
|
company_roles: z.ZodArray<z.ZodString>;
|
|
694
|
+
company_names_by_role: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
694
695
|
total_count: z.ZodNumber;
|
|
695
696
|
}, z.core.$strip>;
|
|
696
697
|
export declare const getCompanyNamesByEventIdParamsSchema: z.ZodObject<{
|
package/dist/parkingArea.js
CHANGED
|
@@ -1000,6 +1000,14 @@ export const getCompanyRolesByEventIdResponseSchema = z
|
|
|
1000
1000
|
description: 'List of unique company roles for the event',
|
|
1001
1001
|
example: ['exhibitor', 'organizer', 'contractor']
|
|
1002
1002
|
}),
|
|
1003
|
+
company_names_by_role: z.record(z.string(), z.array(z.string())).openapi({
|
|
1004
|
+
description: 'Mapping of company roles to their associated company names',
|
|
1005
|
+
example: {
|
|
1006
|
+
exhibitor: ['Company A', 'Company B'],
|
|
1007
|
+
organizer: ['Event Org'],
|
|
1008
|
+
contractor: ['Builder Co', 'Installer Inc']
|
|
1009
|
+
}
|
|
1010
|
+
}),
|
|
1003
1011
|
total_count: z.number().openapi({
|
|
1004
1012
|
description: 'Total number of unique company roles',
|
|
1005
1013
|
example: 3
|
package/dist/parkingBooking.d.ts
CHANGED
|
@@ -54,7 +54,7 @@ export declare const companyDetailsSchema: z.ZodObject<{
|
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
export declare const vehicleDetailsSchema: z.ZodObject<{
|
|
56
56
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
57
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
57
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
58
58
|
license_plate: z.ZodString;
|
|
59
59
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
60
60
|
}, z.core.$strip>;
|
|
@@ -85,7 +85,7 @@ export declare const parkingBookingSchema: z.ZodObject<{
|
|
|
85
85
|
}, z.core.$strip>;
|
|
86
86
|
vehicle: z.ZodObject<{
|
|
87
87
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
88
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
88
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
89
89
|
license_plate: z.ZodString;
|
|
90
90
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
91
91
|
}, z.core.$strip>;
|
|
@@ -127,7 +127,7 @@ export declare const eventBookingsDataSchema: z.ZodObject<{
|
|
|
127
127
|
}, z.core.$strip>;
|
|
128
128
|
vehicle: z.ZodObject<{
|
|
129
129
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
130
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
130
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
131
131
|
license_plate: z.ZodString;
|
|
132
132
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
133
133
|
}, z.core.$strip>;
|
|
@@ -173,7 +173,7 @@ export declare const eventBookingsResponseSchema: z.ZodObject<{
|
|
|
173
173
|
}, z.core.$strip>;
|
|
174
174
|
vehicle: z.ZodObject<{
|
|
175
175
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
176
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
176
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
177
177
|
license_plate: z.ZodString;
|
|
178
178
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
179
179
|
}, z.core.$strip>;
|
|
@@ -279,7 +279,7 @@ export declare const createParkingBookingBodySchema: z.ZodObject<{
|
|
|
279
279
|
company_role: z.ZodString;
|
|
280
280
|
vehicle: z.ZodObject<{
|
|
281
281
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
282
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
282
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
283
283
|
license_plate: z.ZodString;
|
|
284
284
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
285
285
|
}, z.core.$strip>;
|
|
@@ -307,7 +307,7 @@ export declare const createParkingBookingDataSchema: z.ZodObject<{
|
|
|
307
307
|
}, z.core.$strip>;
|
|
308
308
|
vehicle: z.ZodObject<{
|
|
309
309
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
310
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
310
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
311
311
|
license_plate: z.ZodString;
|
|
312
312
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
313
313
|
}, z.core.$strip>;
|
|
@@ -343,7 +343,7 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
|
|
|
343
343
|
}, z.core.$strip>;
|
|
344
344
|
vehicle: z.ZodObject<{
|
|
345
345
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
346
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
346
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
347
347
|
license_plate: z.ZodString;
|
|
348
348
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
349
349
|
}, z.core.$strip>;
|
|
@@ -374,7 +374,7 @@ export declare const updateParkingBookingBodySchema: z.ZodObject<{
|
|
|
374
374
|
}, z.core.$strip>>;
|
|
375
375
|
vehicle: z.ZodOptional<z.ZodObject<{
|
|
376
376
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
377
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
377
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
378
378
|
license_plate: z.ZodString;
|
|
379
379
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
380
380
|
}, z.core.$strip>>;
|
|
@@ -398,7 +398,7 @@ export declare const updateParkingBookingDataSchema: z.ZodObject<{
|
|
|
398
398
|
}, z.core.$strip>>;
|
|
399
399
|
vehicle: z.ZodNullable<z.ZodObject<{
|
|
400
400
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
401
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
401
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
402
402
|
license_plate: z.ZodString;
|
|
403
403
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
404
404
|
}, z.core.$strip>>;
|
|
@@ -426,7 +426,7 @@ export declare const updateParkingBookingResponseSchema: z.ZodObject<{
|
|
|
426
426
|
}, z.core.$strip>>;
|
|
427
427
|
vehicle: z.ZodNullable<z.ZodObject<{
|
|
428
428
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
429
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
429
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
430
430
|
license_plate: z.ZodString;
|
|
431
431
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
432
432
|
}, z.core.$strip>>;
|
|
@@ -537,7 +537,7 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
|
|
|
537
537
|
}, z.core.$strip>;
|
|
538
538
|
vehicle: z.ZodObject<{
|
|
539
539
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
540
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
540
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
541
541
|
license_plate: z.ZodString;
|
|
542
542
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
543
543
|
}, z.core.$strip>;
|
|
@@ -594,7 +594,7 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
|
|
|
594
594
|
}, z.core.$strip>;
|
|
595
595
|
vehicle: z.ZodObject<{
|
|
596
596
|
vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
|
|
597
|
-
unloading_method: z.ZodEnum<typeof UnloadingType
|
|
597
|
+
unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
|
|
598
598
|
license_plate: z.ZodString;
|
|
599
599
|
trailer_registration: z.ZodOptional<z.ZodString>;
|
|
600
600
|
}, z.core.$strip>;
|
package/dist/parkingBooking.js
CHANGED
|
@@ -136,7 +136,7 @@ export const companyDetailsSchema = z
|
|
|
136
136
|
export const vehicleDetailsSchema = z
|
|
137
137
|
.object({
|
|
138
138
|
vehicle_type: vehicleTypeSchema,
|
|
139
|
-
unloading_method: z.enum(UnloadingType).openapi({
|
|
139
|
+
unloading_method: z.enum(UnloadingType).optional().openapi({
|
|
140
140
|
description: 'Unloading method for the vehicle',
|
|
141
141
|
example: 'site'
|
|
142
142
|
}),
|
package/package.json
CHANGED
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venulog/phasing-engine-schemas",
|
|
3
|
-
"version": "0.9.0
|
|
4
|
-
"description": "Shared schemas and types for Phasing Engine API",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./auth": {
|
|
14
|
-
"types": "./dist/auth.d.ts",
|
|
15
|
-
"import": "./dist/auth.js"
|
|
16
|
-
},
|
|
17
|
-
"./common": {
|
|
18
|
-
"types": "./dist/common.d.ts",
|
|
19
|
-
"import": "./dist/common.js"
|
|
20
|
-
},
|
|
21
|
-
"./pagination": {
|
|
22
|
-
"types": "./dist/pagination.d.ts",
|
|
23
|
-
"import": "./dist/pagination.js"
|
|
24
|
-
},
|
|
25
|
-
"./parkingBooking": {
|
|
26
|
-
"types": "./dist/parkingBooking.d.ts",
|
|
27
|
-
"import": "./dist/parkingBooking.js"
|
|
28
|
-
},
|
|
29
|
-
"./event": {
|
|
30
|
-
"types": "./dist/event.d.ts",
|
|
31
|
-
"import": "./dist/event.js"
|
|
32
|
-
},
|
|
33
|
-
"./parkingArea": {
|
|
34
|
-
"types": "./dist/parkingArea.d.ts",
|
|
35
|
-
"import": "./dist/parkingArea.js"
|
|
36
|
-
},
|
|
37
|
-
"./parkingAreaLayer": {
|
|
38
|
-
"types": "./dist/parkingAreaLayer.d.ts",
|
|
39
|
-
"import": "./dist/parkingAreaLayer.js"
|
|
40
|
-
},
|
|
41
|
-
"./parkingAreaAccess": {
|
|
42
|
-
"types": "./dist/parkingAreaAccess.d.ts",
|
|
43
|
-
"import": "./dist/parkingAreaAccess.js"
|
|
44
|
-
},
|
|
45
|
-
"./enums": {
|
|
46
|
-
"types": "./dist/enums/index.d.ts",
|
|
47
|
-
"import": "./dist/enums/index.js"
|
|
48
|
-
},
|
|
49
|
-
"./accessToken": {
|
|
50
|
-
"types": "./dist/accessToken.d.ts",
|
|
51
|
-
"import": "./dist/accessToken.js"
|
|
52
|
-
},
|
|
53
|
-
"./vehiclePosition": {
|
|
54
|
-
"types": "./dist/vehiclePosition.d.ts",
|
|
55
|
-
"import": "./dist/vehiclePosition.js"
|
|
56
|
-
},
|
|
57
|
-
"./camera": {
|
|
58
|
-
"types": "./dist/camera.d.ts",
|
|
59
|
-
"import": "./dist/camera.js"
|
|
60
|
-
},
|
|
61
|
-
"./simulation": {
|
|
62
|
-
"types": "./dist/simulation.d.ts",
|
|
63
|
-
"import": "./dist/simulation.js"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
"files": [
|
|
67
|
-
"dist"
|
|
68
|
-
],
|
|
69
|
-
"scripts": {
|
|
70
|
-
"build": "npm run clean && tsc",
|
|
71
|
-
"dev": "tsc --watch",
|
|
72
|
-
"clean": "rm -rf dist",
|
|
73
|
-
"prepublishOnly": "npm run build"
|
|
74
|
-
},
|
|
75
|
-
"keywords": [
|
|
76
|
-
"schemas",
|
|
77
|
-
"validation",
|
|
78
|
-
"types",
|
|
79
|
-
"zod",
|
|
80
|
-
"phasing-engine"
|
|
81
|
-
],
|
|
82
|
-
"license": "MIT",
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"@asteasolutions/zod-to-openapi": "^8.1.0",
|
|
85
|
-
"zod": "^4.1.13"
|
|
86
|
-
},
|
|
87
|
-
"devDependencies": {
|
|
88
|
-
"typescript": "^5.6.3"
|
|
89
|
-
},
|
|
90
|
-
"repository": {
|
|
91
|
-
"type": "git",
|
|
92
|
-
"url": "git+https://github.com/manaty/phasing_engine.git",
|
|
93
|
-
"directory": "packages/phasing-schemas"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@venulog/phasing-engine-schemas",
|
|
3
|
+
"version": "0.9.0",
|
|
4
|
+
"description": "Shared schemas and types for Phasing Engine API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./auth": {
|
|
14
|
+
"types": "./dist/auth.d.ts",
|
|
15
|
+
"import": "./dist/auth.js"
|
|
16
|
+
},
|
|
17
|
+
"./common": {
|
|
18
|
+
"types": "./dist/common.d.ts",
|
|
19
|
+
"import": "./dist/common.js"
|
|
20
|
+
},
|
|
21
|
+
"./pagination": {
|
|
22
|
+
"types": "./dist/pagination.d.ts",
|
|
23
|
+
"import": "./dist/pagination.js"
|
|
24
|
+
},
|
|
25
|
+
"./parkingBooking": {
|
|
26
|
+
"types": "./dist/parkingBooking.d.ts",
|
|
27
|
+
"import": "./dist/parkingBooking.js"
|
|
28
|
+
},
|
|
29
|
+
"./event": {
|
|
30
|
+
"types": "./dist/event.d.ts",
|
|
31
|
+
"import": "./dist/event.js"
|
|
32
|
+
},
|
|
33
|
+
"./parkingArea": {
|
|
34
|
+
"types": "./dist/parkingArea.d.ts",
|
|
35
|
+
"import": "./dist/parkingArea.js"
|
|
36
|
+
},
|
|
37
|
+
"./parkingAreaLayer": {
|
|
38
|
+
"types": "./dist/parkingAreaLayer.d.ts",
|
|
39
|
+
"import": "./dist/parkingAreaLayer.js"
|
|
40
|
+
},
|
|
41
|
+
"./parkingAreaAccess": {
|
|
42
|
+
"types": "./dist/parkingAreaAccess.d.ts",
|
|
43
|
+
"import": "./dist/parkingAreaAccess.js"
|
|
44
|
+
},
|
|
45
|
+
"./enums": {
|
|
46
|
+
"types": "./dist/enums/index.d.ts",
|
|
47
|
+
"import": "./dist/enums/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./accessToken": {
|
|
50
|
+
"types": "./dist/accessToken.d.ts",
|
|
51
|
+
"import": "./dist/accessToken.js"
|
|
52
|
+
},
|
|
53
|
+
"./vehiclePosition": {
|
|
54
|
+
"types": "./dist/vehiclePosition.d.ts",
|
|
55
|
+
"import": "./dist/vehiclePosition.js"
|
|
56
|
+
},
|
|
57
|
+
"./camera": {
|
|
58
|
+
"types": "./dist/camera.d.ts",
|
|
59
|
+
"import": "./dist/camera.js"
|
|
60
|
+
},
|
|
61
|
+
"./simulation": {
|
|
62
|
+
"types": "./dist/simulation.d.ts",
|
|
63
|
+
"import": "./dist/simulation.js"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"dist"
|
|
68
|
+
],
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "npm run clean && tsc",
|
|
71
|
+
"dev": "tsc --watch",
|
|
72
|
+
"clean": "rm -rf dist",
|
|
73
|
+
"prepublishOnly": "npm run build"
|
|
74
|
+
},
|
|
75
|
+
"keywords": [
|
|
76
|
+
"schemas",
|
|
77
|
+
"validation",
|
|
78
|
+
"types",
|
|
79
|
+
"zod",
|
|
80
|
+
"phasing-engine"
|
|
81
|
+
],
|
|
82
|
+
"license": "MIT",
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"@asteasolutions/zod-to-openapi": "^8.1.0",
|
|
85
|
+
"zod": "^4.1.13"
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"typescript": "^5.6.3"
|
|
89
|
+
},
|
|
90
|
+
"repository": {
|
|
91
|
+
"type": "git",
|
|
92
|
+
"url": "git+https://github.com/manaty/phasing_engine.git",
|
|
93
|
+
"directory": "packages/phasing-schemas"
|
|
94
|
+
}
|
|
95
|
+
}
|