@venulog/phasing-engine-schemas 0.10.0-alpha.1 → 0.10.2

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.
@@ -880,7 +880,7 @@ export const getAvailableSlotsBodyV2Schema = z
880
880
  pm_token: z.string().optional().openapi({
881
881
  description: 'Optional Planning Manager token for authentication',
882
882
  example: 'pm_abcdef123456'
883
- }),
883
+ })
884
884
  })
885
885
  .openapi('GetAvailableSlotsBodyV2');
886
886
  export const availableTimeSlotV2Schema = z
@@ -495,8 +495,8 @@ export declare const parkingBookingWithRelationsSchema: z.ZodObject<{
495
495
  id: z.ZodNumber;
496
496
  name: z.ZodString;
497
497
  code: z.ZodString;
498
- start_date: z.ZodString;
499
- end_date: z.ZodString;
498
+ start_date: z.ZodOptional<z.ZodString>;
499
+ end_date: z.ZodOptional<z.ZodString>;
500
500
  venue_id: z.ZodNullable<z.ZodNumber>;
501
501
  banner: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
502
502
  latitude: z.ZodNullable<z.ZodNumber>;
@@ -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;
@@ -316,7 +316,7 @@ export const createParkingBookingBodySchema = z
316
316
  pm_token: z.string().optional().openapi({
317
317
  description: 'Planning management token for additional validation',
318
318
  example: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...'
319
- }),
319
+ })
320
320
  })
321
321
  .openapi('CreateParkingBookingBody');
322
322
  // Response schema
@@ -469,8 +469,8 @@ export const parkingBookingWithRelationsSchema = z
469
469
  id: z.number(),
470
470
  name: z.string(),
471
471
  code: z.string(),
472
- start_date: z.string(),
473
- end_date: z.string(),
472
+ start_date: z.string().optional(),
473
+ end_date: z.string().optional(),
474
474
  venue_id: z.number().nullable(),
475
475
  banner: z.record(z.string(), z.unknown()).nullable(),
476
476
  latitude: z.number().nullable(),
@@ -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,95 @@
1
- {
2
- "name": "@venulog/phasing-engine-schemas",
3
- "version": "0.10.0-alpha.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
- },
66
- "files": [
67
- "dist"
68
- ],
69
- "scripts": {
70
- "build": "npm run clean && tsc",
71
- "dev": "tsc --watch",
72
- "clean": "rimraf 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.10.2",
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
+ }