@venulog/phasing-engine-schemas 0.7.3 → 0.7.5

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.
@@ -556,7 +556,6 @@ export declare const getAvailableParkingAreaSlotsQuerySchema: z.ZodObject<{
556
556
  event_id: z.ZodNumber;
557
557
  year: z.ZodCoercedNumber<unknown>;
558
558
  month: z.ZodCoercedNumber<unknown>;
559
- parking_area_id: z.ZodNumber;
560
559
  company_role: z.ZodString;
561
560
  schedule_type: z.ZodOptional<z.ZodEnum<{
562
561
  assembly: "assembly";
@@ -626,7 +625,6 @@ export declare const getAvailableSlotsBodySchema: z.ZodObject<{
626
625
  assembly: "assembly";
627
626
  dismantling: "dismantling";
628
627
  }>>;
629
- parking_area_id: z.ZodNumber;
630
628
  }, z.core.$strip>;
631
629
  export declare const availableTimeSlotSchema: z.ZodObject<{
632
630
  parking_area_schedule_id: z.ZodNumber;
@@ -713,10 +713,6 @@ export const getAvailableParkingAreaSlotsQuerySchema = z
713
713
  description: 'Month for filtering slots (1-12)',
714
714
  example: '6'
715
715
  }),
716
- parking_area_id: z.number().nonnegative().openapi({
717
- description: 'The ID of the parking area',
718
- example: '1'
719
- }),
720
716
  company_role: z.string().min(1, 'Company role is required').openapi({
721
717
  description: 'Company role to filter schedules by',
722
718
  example: 'exhibitor'
@@ -852,10 +848,6 @@ export const getAvailableSlotsBodySchema = z
852
848
  schedule_type: z.enum(['assembly', 'dismantling']).optional().openapi({
853
849
  description: 'Filter by schedule type',
854
850
  example: 'assembly'
855
- }),
856
- parking_area_id: z.number().min(1, 'Parking area ID is required').openapi({
857
- description: 'Parking area ID to check availability for',
858
- example: 1
859
851
  })
860
852
  })
861
853
  .openapi('GetAvailableSlotsBody');
@@ -214,14 +214,14 @@ export declare const closeEventResponseSchema: z.ZodObject<{
214
214
  }, z.core.$strip>;
215
215
  }, z.core.$strip>;
216
216
  export declare const confirmExitBodySchema: z.ZodObject<{
217
- plate_number: z.ZodObject<{
217
+ plate_number: z.ZodOptional<z.ZodObject<{
218
218
  url: z.ZodString;
219
219
  name: z.ZodString;
220
220
  path: z.ZodString;
221
221
  size: z.ZodNumber;
222
222
  type: z.ZodString;
223
223
  bucket: z.ZodString;
224
- }, z.core.$strip>;
224
+ }, z.core.$strip>>;
225
225
  }, z.core.$strip>;
226
226
  export declare const confirmAccessDataSchema: z.ZodObject<{
227
227
  bookingId: z.ZodCoercedNumber<unknown>;
@@ -102,7 +102,7 @@ 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({
@@ -213,7 +213,8 @@ export const closeEventDataSchema = z
213
213
  .openapi('CloseEventData');
214
214
  export const closeEventResponseSchema = createMessageDataResponseSchema(closeEventDataSchema, 'CloseEventResponse', 'Event phase closed successfully', 'Details of the closed event phase');
215
215
  export const confirmExitBodySchema = z.object({
216
- plate_number: z.object({
216
+ plate_number: z
217
+ .object({
217
218
  url: z.string().openapi({
218
219
  description: 'Public URL of the plate number',
219
220
  example: 'https://example.net/xxxx.jpeg'
@@ -239,6 +240,7 @@ export const confirmExitBodySchema = z.object({
239
240
  example: 'XXXXX'
240
241
  })
241
242
  })
243
+ .optional()
242
244
  });
243
245
  export const confirmAccessDataSchema = z.object({
244
246
  bookingId: z.coerce.number().int().positive({
package/package.json CHANGED
@@ -1,75 +1,75 @@
1
- {
2
- "name": "@venulog/phasing-engine-schemas",
3
- "version": "0.7.3",
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
- }
1
+ {
2
+ "name": "@venulog/phasing-engine-schemas",
3
+ "version": "0.7.5",
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
+ }