@venulog/phasing-engine-schemas 0.7.2-alpha.0 → 0.7.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.
@@ -78,7 +78,7 @@ export declare const parkingBookingSchema: z.ZodObject<{
78
78
  }, z.core.$strip>>;
79
79
  }, z.core.$strip>;
80
80
  export declare const companyDetailsSchema: z.ZodObject<{
81
- hall: z.ZodString;
81
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
82
82
  stand_number: z.ZodString;
83
83
  company_name: z.ZodString;
84
84
  business: z.ZodString;
@@ -273,7 +273,7 @@ export declare const bookingDetailsDataSchema: z.ZodObject<{
273
273
  end_time: z.ZodString;
274
274
  company_role: z.ZodNullable<z.ZodString>;
275
275
  company: z.ZodObject<{
276
- hall: z.ZodString;
276
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
277
277
  stand_number: z.ZodString;
278
278
  company_name: z.ZodString;
279
279
  business: z.ZodString;
@@ -313,7 +313,7 @@ export declare const bookingDetailsDataSchema: z.ZodObject<{
313
313
  export declare const createParkingBookingBodySchema: z.ZodObject<{
314
314
  parking_area_schedule_id: z.ZodNumber;
315
315
  company: z.ZodObject<{
316
- hall: z.ZodString;
316
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
317
317
  stand_number: z.ZodString;
318
318
  company_name: z.ZodString;
319
319
  business: z.ZodString;
@@ -341,7 +341,7 @@ export declare const createParkingBookingDataSchema: z.ZodObject<{
341
341
  status: z.ZodString;
342
342
  company_role: z.ZodString;
343
343
  company: z.ZodObject<{
344
- hall: z.ZodString;
344
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
345
345
  stand_number: z.ZodString;
346
346
  company_name: z.ZodString;
347
347
  business: z.ZodString;
@@ -374,7 +374,7 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
374
374
  status: z.ZodString;
375
375
  company_role: z.ZodString;
376
376
  company: z.ZodObject<{
377
- hall: z.ZodString;
377
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
378
378
  stand_number: z.ZodString;
379
379
  company_name: z.ZodString;
380
380
  business: z.ZodString;
@@ -401,7 +401,7 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
401
401
  }, z.core.$strip>;
402
402
  export declare const updateParkingBookingBodySchema: z.ZodObject<{
403
403
  company: z.ZodOptional<z.ZodObject<{
404
- hall: z.ZodString;
404
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
405
405
  stand_number: z.ZodString;
406
406
  company_name: z.ZodString;
407
407
  business: z.ZodString;
@@ -425,7 +425,7 @@ export declare const updateParkingBookingDataSchema: z.ZodObject<{
425
425
  booking_id: z.ZodNumber;
426
426
  qr_token: z.ZodString;
427
427
  company: z.ZodNullable<z.ZodObject<{
428
- hall: z.ZodString;
428
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
429
429
  stand_number: z.ZodString;
430
430
  company_name: z.ZodString;
431
431
  business: z.ZodString;
@@ -453,7 +453,7 @@ export declare const updateParkingBookingResponseSchema: z.ZodObject<{
453
453
  booking_id: z.ZodNumber;
454
454
  qr_token: z.ZodString;
455
455
  company: z.ZodNullable<z.ZodObject<{
456
- hall: z.ZodString;
456
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
457
457
  stand_number: z.ZodString;
458
458
  company_name: z.ZodString;
459
459
  business: z.ZodString;
@@ -563,7 +563,7 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
563
563
  end_time: z.ZodString;
564
564
  company_role: z.ZodNullable<z.ZodString>;
565
565
  company: z.ZodObject<{
566
- hall: z.ZodString;
566
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
567
567
  stand_number: z.ZodString;
568
568
  company_name: z.ZodString;
569
569
  business: z.ZodString;
@@ -603,8 +603,6 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
603
603
  }, z.core.$strip>>;
604
604
  created_at: z.ZodString;
605
605
  updated_at: z.ZodString;
606
- entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
607
- exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
608
606
  }, z.core.$strip>;
609
607
  export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
610
608
  success: z.ZodBoolean;
@@ -618,7 +616,7 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
618
616
  end_time: z.ZodString;
619
617
  company_role: z.ZodNullable<z.ZodString>;
620
618
  company: z.ZodObject<{
621
- hall: z.ZodString;
619
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
622
620
  stand_number: z.ZodString;
623
621
  company_name: z.ZodString;
624
622
  business: z.ZodString;
@@ -658,8 +656,6 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
658
656
  }, z.core.$strip>>;
659
657
  created_at: z.ZodString;
660
658
  updated_at: z.ZodString;
661
- entry_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
662
- exit_scanned_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
659
  }, z.core.$strip>;
664
660
  }, z.core.$strip>;
665
661
  export declare const getParkingBookingDetailsByTokenBodySchema: z.ZodObject<{
@@ -677,7 +673,7 @@ export declare const getParkingBookingDetailsByTokenResponseSchema: z.ZodObject<
677
673
  end_time: z.ZodString;
678
674
  company_role: z.ZodNullable<z.ZodString>;
679
675
  company: z.ZodObject<{
680
- hall: z.ZodString;
676
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
681
677
  stand_number: z.ZodString;
682
678
  company_name: z.ZodString;
683
679
  business: z.ZodString;
@@ -730,7 +726,7 @@ export declare const getParkingBookingDetailsByQrResponseSchema: z.ZodObject<{
730
726
  end_time: z.ZodString;
731
727
  company_role: z.ZodNullable<z.ZodString>;
732
728
  company: z.ZodObject<{
733
- hall: z.ZodString;
729
+ hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
734
730
  stand_number: z.ZodString;
735
731
  company_name: z.ZodString;
736
732
  business: z.ZodString;
@@ -102,11 +102,11 @@ export const parkingBookingSchema = z.object({
102
102
  entry_scanned_at: z.string().nullable(),
103
103
  exit_scanned_at: z.string().nullable(),
104
104
  // Include the schedule details
105
- parking_area_schedule: parkingAreaScheduleSchema.optional(),
105
+ parking_area_schedule: parkingAreaScheduleSchema.optional()
106
106
  });
107
107
  export const companyDetailsSchema = z
108
108
  .object({
109
- hall: z.string().min(1, 'Hall is required').openapi({
109
+ hall: z.string().optional().nullable().openapi({
110
110
  description: 'Hall location',
111
111
  example: 'Hall 1'
112
112
  }),
@@ -723,14 +723,6 @@ export const parkingBookingDetailsDataSchema = z
723
723
  updated_at: z.string().openapi({
724
724
  description: 'Timestamp when booking was last updated',
725
725
  example: '2025-12-05T10:30:00.000Z'
726
- }),
727
- entry_scanned_at: z.string().nullable().optional().openapi({
728
- description: 'Timestamp when entry was scanned',
729
- example: '2025-12-15T08:05:00.000Z'
730
- }),
731
- exit_scanned_at: z.string().nullable().optional().openapi({
732
- description: 'Timestamp when exit was scanned',
733
- example: '2025-12-15T08:25:00.000Z'
734
726
  })
735
727
  })
736
728
  .openapi('ParkingBookingDetailsData');
package/package.json CHANGED
@@ -1,75 +1,75 @@
1
- {
2
- "name": "@venulog/phasing-engine-schemas",
3
- "version": "0.7.2-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
- "./enums": {
38
- "types": "./dist/enums/index.d.ts",
39
- "import": "./dist/enums/index.js"
40
- },
41
- "./accessToken": {
42
- "types": "./dist/accessToken.d.ts",
43
- "import": "./dist/accessToken.js"
44
- }
45
- },
46
- "files": [
47
- "dist"
48
- ],
49
- "scripts": {
50
- "build": "npm run clean && tsc",
51
- "dev": "tsc --watch",
52
- "clean": "rimraf dist",
53
- "prepublishOnly": "npm run build"
54
- },
55
- "keywords": [
56
- "schemas",
57
- "validation",
58
- "types",
59
- "zod",
60
- "phasing-engine"
61
- ],
62
- "license": "MIT",
63
- "dependencies": {
64
- "@asteasolutions/zod-to-openapi": "^8.1.0",
65
- "zod": "^4.1.13"
66
- },
67
- "devDependencies": {
68
- "typescript": "^5.6.3"
69
- },
70
- "repository": {
71
- "type": "git",
72
- "url": "git+https://github.com/manaty/phasing_engine.git",
73
- "directory": "packages/phasing-schemas"
74
- }
75
- }
1
+ {
2
+ "name": "@venulog/phasing-engine-schemas",
3
+ "version": "0.7.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
+ "./enums": {
38
+ "types": "./dist/enums/index.d.ts",
39
+ "import": "./dist/enums/index.js"
40
+ },
41
+ "./accessToken": {
42
+ "types": "./dist/accessToken.d.ts",
43
+ "import": "./dist/accessToken.js"
44
+ }
45
+ },
46
+ "files": [
47
+ "dist"
48
+ ],
49
+ "scripts": {
50
+ "build": "npm run clean && tsc",
51
+ "dev": "tsc --watch",
52
+ "clean": "rm -rf dist",
53
+ "prepublishOnly": "npm run build"
54
+ },
55
+ "keywords": [
56
+ "schemas",
57
+ "validation",
58
+ "types",
59
+ "zod",
60
+ "phasing-engine"
61
+ ],
62
+ "license": "MIT",
63
+ "dependencies": {
64
+ "@asteasolutions/zod-to-openapi": "^8.1.0",
65
+ "zod": "^4.1.13"
66
+ },
67
+ "devDependencies": {
68
+ "typescript": "^5.6.3"
69
+ },
70
+ "repository": {
71
+ "type": "git",
72
+ "url": "git+https://github.com/manaty/phasing_engine.git",
73
+ "directory": "packages/phasing-schemas"
74
+ }
75
+ }