@venulog/phasing-engine-schemas 0.10.2 → 0.11.1
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/exhibitor.d.ts +27 -0
- package/dist/exhibitor.js +45 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/parkingBooking.d.ts +1 -1
- package/dist/parkingBooking.js +1 -1
- package/package.json +99 -95
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from './zod.js';
|
|
2
|
+
/**
|
|
3
|
+
* Basic exhibitor information
|
|
4
|
+
*/
|
|
5
|
+
export declare const exhibitorSchema: z.ZodObject<{
|
|
6
|
+
company_name: z.ZodString;
|
|
7
|
+
stand_number: z.ZodString;
|
|
8
|
+
contact_name: z.ZodString;
|
|
9
|
+
contact_email: z.ZodString;
|
|
10
|
+
contact_phone: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type Exhibitor = z.infer<typeof exhibitorSchema>;
|
|
13
|
+
export declare const getExhibitorByNameBodySchema: z.ZodObject<{
|
|
14
|
+
exhibitorName: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const getExhibitorByNameResponseSchema: z.ZodObject<{
|
|
17
|
+
success: z.ZodBoolean;
|
|
18
|
+
data: z.ZodObject<{
|
|
19
|
+
company_name: z.ZodString;
|
|
20
|
+
stand_number: z.ZodString;
|
|
21
|
+
contact_name: z.ZodString;
|
|
22
|
+
contact_email: z.ZodString;
|
|
23
|
+
contact_phone: z.ZodString;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type GetExhibitorByNameBody = z.infer<typeof getExhibitorByNameBodySchema>;
|
|
27
|
+
export type GetExhibitorByNameResponse = z.infer<typeof getExhibitorByNameResponseSchema>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// packages/phasing-schemas/src/exhibitor.ts
|
|
2
|
+
import { z } from './zod.js';
|
|
3
|
+
import { createSuccessResponseSchema } from './common.js';
|
|
4
|
+
// ------------------------------
|
|
5
|
+
// Exhibitor Schemas
|
|
6
|
+
// ------------------------------
|
|
7
|
+
/**
|
|
8
|
+
* Basic exhibitor information
|
|
9
|
+
*/
|
|
10
|
+
export const exhibitorSchema = z
|
|
11
|
+
.object({
|
|
12
|
+
company_name: z.string().openapi({
|
|
13
|
+
description: 'Name of the exhibitor company',
|
|
14
|
+
example: '3CX LTD'
|
|
15
|
+
}),
|
|
16
|
+
stand_number: z.string().openapi({
|
|
17
|
+
description: 'Stand number assigned to the exhibitor',
|
|
18
|
+
example: 'J039'
|
|
19
|
+
}),
|
|
20
|
+
contact_name: z.string().openapi({
|
|
21
|
+
description: 'Primary contact person name',
|
|
22
|
+
example: 'KRISTEL ASZODY'
|
|
23
|
+
}),
|
|
24
|
+
contact_email: z.string().email().openapi({
|
|
25
|
+
description: 'Contact email address',
|
|
26
|
+
example: 'kas@3cx.com'
|
|
27
|
+
}),
|
|
28
|
+
contact_phone: z.string().openapi({
|
|
29
|
+
description: 'Contact phone number',
|
|
30
|
+
example: '+35733184250060'
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
.openapi('Exhibitor');
|
|
34
|
+
// ------------------------------
|
|
35
|
+
// Get Exhibitor by Name Endpoint
|
|
36
|
+
// ------------------------------
|
|
37
|
+
export const getExhibitorByNameBodySchema = z
|
|
38
|
+
.object({
|
|
39
|
+
exhibitorName: z.string().min(1, 'Exhibitor name is required').openapi({
|
|
40
|
+
description: 'The name of the exhibitor company to search for (case-insensitive, partial matches supported)',
|
|
41
|
+
example: '3CX'
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
.openapi('GetExhibitorByNameParams');
|
|
45
|
+
export const getExhibitorByNameResponseSchema = createSuccessResponseSchema(exhibitorSchema, 'GetExhibitorByNameResponse', 'Exhibitor information');
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './accessToken.js';
|
|
|
10
10
|
export * from './vehiclePosition.js';
|
|
11
11
|
export * from './camera.js';
|
|
12
12
|
export * from './simulation.js';
|
|
13
|
+
export * from './exhibitor.js';
|
|
13
14
|
export * from './enums/bookingStatus.js';
|
|
14
15
|
export * from './enums/parkingAreaScheduleType.js';
|
|
15
16
|
export * from './enums/vehicleType.js';
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export * from './accessToken.js';
|
|
|
11
11
|
export * from './vehiclePosition.js';
|
|
12
12
|
export * from './camera.js';
|
|
13
13
|
export * from './simulation.js';
|
|
14
|
+
export * from './exhibitor.js';
|
|
14
15
|
// Enum exports
|
|
15
16
|
export * from './enums/bookingStatus.js';
|
|
16
17
|
export * from './enums/parkingAreaScheduleType.js';
|
package/dist/parkingBooking.d.ts
CHANGED
|
@@ -510,7 +510,7 @@ export declare const parkingBookingWithRelationsSchema: z.ZodObject<{
|
|
|
510
510
|
parking_spot: z.ZodString;
|
|
511
511
|
door: z.ZodString;
|
|
512
512
|
parking_schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
513
|
-
slot_key: z.ZodString
|
|
513
|
+
slot_key: z.ZodNullable<z.ZodString>;
|
|
514
514
|
entry_scanned_at: z.ZodNullable<z.ZodString>;
|
|
515
515
|
exit_scanned_at: z.ZodNullable<z.ZodString>;
|
|
516
516
|
}, z.core.$strip>;
|
package/dist/parkingBooking.js
CHANGED
|
@@ -486,7 +486,7 @@ export const parkingBookingWithRelationsSchema = z
|
|
|
486
486
|
parking_spot: z.string(),
|
|
487
487
|
door: z.string(),
|
|
488
488
|
parking_schedule_type: z.enum(ParkingAreaScheduleType),
|
|
489
|
-
slot_key: z.string(),
|
|
489
|
+
slot_key: z.string().nullable(),
|
|
490
490
|
entry_scanned_at: z.string().nullable(),
|
|
491
491
|
exit_scanned_at: z.string().nullable()
|
|
492
492
|
})
|
package/package.json
CHANGED
|
@@ -1,95 +1,99 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@venulog/phasing-engine-schemas",
|
|
3
|
-
"version": "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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
"
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@venulog/phasing-engine-schemas",
|
|
3
|
+
"version": "0.11.1",
|
|
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
|
+
"./exhibitor": {
|
|
66
|
+
"types": "./dist/exhibitor.d.ts",
|
|
67
|
+
"import": "./dist/exhibitor.js"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"files": [
|
|
71
|
+
"dist"
|
|
72
|
+
],
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "npm run clean && tsc",
|
|
75
|
+
"dev": "tsc --watch",
|
|
76
|
+
"clean": "rm -rf dist",
|
|
77
|
+
"prepublishOnly": "npm run build"
|
|
78
|
+
},
|
|
79
|
+
"keywords": [
|
|
80
|
+
"schemas",
|
|
81
|
+
"validation",
|
|
82
|
+
"types",
|
|
83
|
+
"zod",
|
|
84
|
+
"phasing-engine"
|
|
85
|
+
],
|
|
86
|
+
"license": "MIT",
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@asteasolutions/zod-to-openapi": "^8.1.0",
|
|
89
|
+
"zod": "^4.1.13"
|
|
90
|
+
},
|
|
91
|
+
"devDependencies": {
|
|
92
|
+
"typescript": "^5.6.3"
|
|
93
|
+
},
|
|
94
|
+
"repository": {
|
|
95
|
+
"type": "git",
|
|
96
|
+
"url": "git+https://github.com/manaty/phasing_engine.git",
|
|
97
|
+
"directory": "packages/phasing-schemas"
|
|
98
|
+
}
|
|
99
|
+
}
|