@venulog/phasing-engine-schemas 0.9.0-alpha.1 → 0.9.0-alpha.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.
@@ -691,6 +691,7 @@ export declare const getCompanyRolesByEventIdParamsSchema: z.ZodObject<{
691
691
  export declare const getCompanyRolesByEventIdResponseSchema: z.ZodObject<{
692
692
  event_id: z.ZodNumber;
693
693
  company_roles: z.ZodArray<z.ZodString>;
694
+ company_names_by_role: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
694
695
  total_count: z.ZodNumber;
695
696
  }, z.core.$strip>;
696
697
  export declare const getCompanyNamesByEventIdParamsSchema: z.ZodObject<{
@@ -1000,6 +1000,14 @@ export const getCompanyRolesByEventIdResponseSchema = z
1000
1000
  description: 'List of unique company roles for the event',
1001
1001
  example: ['exhibitor', 'organizer', 'contractor']
1002
1002
  }),
1003
+ company_names_by_role: z.record(z.string(), z.array(z.string())).openapi({
1004
+ description: 'Mapping of company roles to their associated company names',
1005
+ example: {
1006
+ exhibitor: ['Company A', 'Company B'],
1007
+ organizer: ['Event Org'],
1008
+ contractor: ['Builder Co', 'Installer Inc']
1009
+ }
1010
+ }),
1003
1011
  total_count: z.number().openapi({
1004
1012
  description: 'Total number of unique company roles',
1005
1013
  example: 3
@@ -54,7 +54,7 @@ export declare const companyDetailsSchema: z.ZodObject<{
54
54
  }, z.core.$strip>;
55
55
  export declare const vehicleDetailsSchema: z.ZodObject<{
56
56
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
57
- unloading_method: z.ZodEnum<typeof UnloadingType>;
57
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
58
58
  license_plate: z.ZodString;
59
59
  trailer_registration: z.ZodOptional<z.ZodString>;
60
60
  }, z.core.$strip>;
@@ -85,7 +85,7 @@ export declare const parkingBookingSchema: z.ZodObject<{
85
85
  }, z.core.$strip>;
86
86
  vehicle: z.ZodObject<{
87
87
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
88
- unloading_method: z.ZodEnum<typeof UnloadingType>;
88
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
89
89
  license_plate: z.ZodString;
90
90
  trailer_registration: z.ZodOptional<z.ZodString>;
91
91
  }, z.core.$strip>;
@@ -127,7 +127,7 @@ export declare const eventBookingsDataSchema: z.ZodObject<{
127
127
  }, z.core.$strip>;
128
128
  vehicle: z.ZodObject<{
129
129
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
130
- unloading_method: z.ZodEnum<typeof UnloadingType>;
130
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
131
131
  license_plate: z.ZodString;
132
132
  trailer_registration: z.ZodOptional<z.ZodString>;
133
133
  }, z.core.$strip>;
@@ -173,7 +173,7 @@ export declare const eventBookingsResponseSchema: z.ZodObject<{
173
173
  }, z.core.$strip>;
174
174
  vehicle: z.ZodObject<{
175
175
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
176
- unloading_method: z.ZodEnum<typeof UnloadingType>;
176
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
177
177
  license_plate: z.ZodString;
178
178
  trailer_registration: z.ZodOptional<z.ZodString>;
179
179
  }, z.core.$strip>;
@@ -279,7 +279,7 @@ export declare const createParkingBookingBodySchema: z.ZodObject<{
279
279
  company_role: z.ZodString;
280
280
  vehicle: z.ZodObject<{
281
281
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
282
- unloading_method: z.ZodEnum<typeof UnloadingType>;
282
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
283
283
  license_plate: z.ZodString;
284
284
  trailer_registration: z.ZodOptional<z.ZodString>;
285
285
  }, z.core.$strip>;
@@ -307,7 +307,7 @@ export declare const createParkingBookingDataSchema: z.ZodObject<{
307
307
  }, z.core.$strip>;
308
308
  vehicle: z.ZodObject<{
309
309
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
310
- unloading_method: z.ZodEnum<typeof UnloadingType>;
310
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
311
311
  license_plate: z.ZodString;
312
312
  trailer_registration: z.ZodOptional<z.ZodString>;
313
313
  }, z.core.$strip>;
@@ -343,7 +343,7 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
343
343
  }, z.core.$strip>;
344
344
  vehicle: z.ZodObject<{
345
345
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
346
- unloading_method: z.ZodEnum<typeof UnloadingType>;
346
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
347
347
  license_plate: z.ZodString;
348
348
  trailer_registration: z.ZodOptional<z.ZodString>;
349
349
  }, z.core.$strip>;
@@ -374,7 +374,7 @@ export declare const updateParkingBookingBodySchema: z.ZodObject<{
374
374
  }, z.core.$strip>>;
375
375
  vehicle: z.ZodOptional<z.ZodObject<{
376
376
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
377
- unloading_method: z.ZodEnum<typeof UnloadingType>;
377
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
378
378
  license_plate: z.ZodString;
379
379
  trailer_registration: z.ZodOptional<z.ZodString>;
380
380
  }, z.core.$strip>>;
@@ -398,7 +398,7 @@ export declare const updateParkingBookingDataSchema: z.ZodObject<{
398
398
  }, z.core.$strip>>;
399
399
  vehicle: z.ZodNullable<z.ZodObject<{
400
400
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
401
- unloading_method: z.ZodEnum<typeof UnloadingType>;
401
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
402
402
  license_plate: z.ZodString;
403
403
  trailer_registration: z.ZodOptional<z.ZodString>;
404
404
  }, z.core.$strip>>;
@@ -426,7 +426,7 @@ export declare const updateParkingBookingResponseSchema: z.ZodObject<{
426
426
  }, z.core.$strip>>;
427
427
  vehicle: z.ZodNullable<z.ZodObject<{
428
428
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
429
- unloading_method: z.ZodEnum<typeof UnloadingType>;
429
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
430
430
  license_plate: z.ZodString;
431
431
  trailer_registration: z.ZodOptional<z.ZodString>;
432
432
  }, z.core.$strip>>;
@@ -537,7 +537,7 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
537
537
  }, z.core.$strip>;
538
538
  vehicle: z.ZodObject<{
539
539
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
540
- unloading_method: z.ZodEnum<typeof UnloadingType>;
540
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
541
541
  license_plate: z.ZodString;
542
542
  trailer_registration: z.ZodOptional<z.ZodString>;
543
543
  }, z.core.$strip>;
@@ -594,7 +594,7 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
594
594
  }, z.core.$strip>;
595
595
  vehicle: z.ZodObject<{
596
596
  vehicle_type: z.ZodEnum<typeof import("./index.js").VehicleType>;
597
- unloading_method: z.ZodEnum<typeof UnloadingType>;
597
+ unloading_method: z.ZodOptional<z.ZodEnum<typeof UnloadingType>>;
598
598
  license_plate: z.ZodString;
599
599
  trailer_registration: z.ZodOptional<z.ZodString>;
600
600
  }, z.core.$strip>;
@@ -136,7 +136,7 @@ export const companyDetailsSchema = z
136
136
  export const vehicleDetailsSchema = z
137
137
  .object({
138
138
  vehicle_type: vehicleTypeSchema,
139
- unloading_method: z.enum(UnloadingType).openapi({
139
+ unloading_method: z.enum(UnloadingType).optional().openapi({
140
140
  description: 'Unloading method for the vehicle',
141
141
  example: 'site'
142
142
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venulog/phasing-engine-schemas",
3
- "version": "0.9.0-alpha.1",
3
+ "version": "0.9.0-alpha.2",
4
4
  "description": "Shared schemas and types for Phasing Engine API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",