@venulog/phasing-engine-schemas 0.10.1 → 0.11.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/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 +3 -0
- package/dist/parkingBooking.js +12 -0
- 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
|
@@ -639,6 +639,9 @@ export declare const getParkingBookingDetailsByTokenBodySchema: z.ZodObject<{
|
|
|
639
639
|
}, z.core.$strip>;
|
|
640
640
|
export declare const getParkingBookingDetailsByQrBodySchema: z.ZodObject<{
|
|
641
641
|
qr_token: z.ZodString;
|
|
642
|
+
scanner_latitude: z.ZodOptional<z.ZodNumber>;
|
|
643
|
+
scanner_longitude: z.ZodOptional<z.ZodNumber>;
|
|
644
|
+
scanner_accuracy: z.ZodOptional<z.ZodNumber>;
|
|
642
645
|
}, z.core.$strip>;
|
|
643
646
|
export declare const exportBookingDataSchema: z.ZodObject<{
|
|
644
647
|
booking_id: z.ZodNumber;
|
package/dist/parkingBooking.js
CHANGED
|
@@ -651,6 +651,18 @@ export const getParkingBookingDetailsByQrBodySchema = z
|
|
|
651
651
|
qr_token: z.string().min(1, 'QR token is required').openapi({
|
|
652
652
|
description: 'QR token from confirmed booking',
|
|
653
653
|
example: 'ACCESS_1a2b3c4d5e6f7g8h_eyJib29raW5nSWQiOjEyM30%3D'
|
|
654
|
+
}),
|
|
655
|
+
scanner_latitude: z.number().optional().openapi({
|
|
656
|
+
description: 'GPS latitude of scanner',
|
|
657
|
+
example: '48.12312312'
|
|
658
|
+
}),
|
|
659
|
+
scanner_longitude: z.number().optional().openapi({
|
|
660
|
+
description: 'GPS longitude of scanner',
|
|
661
|
+
example: '2.12312312'
|
|
662
|
+
}),
|
|
663
|
+
scanner_accuracy: z.number().optional().openapi({
|
|
664
|
+
description: 'Scanner accuracy',
|
|
665
|
+
example: '90'
|
|
654
666
|
})
|
|
655
667
|
})
|
|
656
668
|
.openapi('GetBookingDetailsByQrBody');
|
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.0-alpha.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
|
+
"./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
|
+
}
|