@venulog/phasing-engine-schemas 0.9.0-alpha.0 → 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
@@ -41,20 +41,20 @@ export declare const closeEventBodySchema: z.ZodObject<{
41
41
  }, z.core.$strip>;
42
42
  export declare const companyDetailsSchema: z.ZodObject<{
43
43
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
44
- stand_number: z.ZodString;
44
+ stand_number: z.ZodOptional<z.ZodString>;
45
45
  company_name: z.ZodString;
46
- business: z.ZodString;
47
- departure_city: z.ZodString;
46
+ exhibitor_name: z.ZodOptional<z.ZodString>;
47
+ departure_city: z.ZodOptional<z.ZodString>;
48
48
  contact_name: z.ZodString;
49
49
  email: z.ZodEmail;
50
50
  phone: z.ZodString;
51
51
  driver_name: z.ZodString;
52
52
  driver_phone: z.ZodString;
53
- transport_company: z.ZodString;
53
+ transport_company: z.ZodOptional<z.ZodString>;
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>;
@@ -72,20 +72,20 @@ export declare const parkingBookingSchema: z.ZodObject<{
72
72
  company_role: z.ZodNullable<z.ZodString>;
73
73
  company: z.ZodObject<{
74
74
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
75
- stand_number: z.ZodString;
75
+ stand_number: z.ZodOptional<z.ZodString>;
76
76
  company_name: z.ZodString;
77
- business: z.ZodString;
78
- departure_city: z.ZodString;
77
+ exhibitor_name: z.ZodOptional<z.ZodString>;
78
+ departure_city: z.ZodOptional<z.ZodString>;
79
79
  contact_name: z.ZodString;
80
80
  email: z.ZodEmail;
81
81
  phone: z.ZodString;
82
82
  driver_name: z.ZodString;
83
83
  driver_phone: z.ZodString;
84
- transport_company: z.ZodString;
84
+ transport_company: z.ZodOptional<z.ZodString>;
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>;
@@ -114,20 +114,20 @@ export declare const eventBookingsDataSchema: z.ZodObject<{
114
114
  company_role: z.ZodNullable<z.ZodString>;
115
115
  company: z.ZodObject<{
116
116
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
117
- stand_number: z.ZodString;
117
+ stand_number: z.ZodOptional<z.ZodString>;
118
118
  company_name: z.ZodString;
119
- business: z.ZodString;
120
- departure_city: z.ZodString;
119
+ exhibitor_name: z.ZodOptional<z.ZodString>;
120
+ departure_city: z.ZodOptional<z.ZodString>;
121
121
  contact_name: z.ZodString;
122
122
  email: z.ZodEmail;
123
123
  phone: z.ZodString;
124
124
  driver_name: z.ZodString;
125
125
  driver_phone: z.ZodString;
126
- transport_company: z.ZodString;
126
+ transport_company: z.ZodOptional<z.ZodString>;
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>;
@@ -160,20 +160,20 @@ export declare const eventBookingsResponseSchema: z.ZodObject<{
160
160
  company_role: z.ZodNullable<z.ZodString>;
161
161
  company: z.ZodObject<{
162
162
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
163
- stand_number: z.ZodString;
163
+ stand_number: z.ZodOptional<z.ZodString>;
164
164
  company_name: z.ZodString;
165
- business: z.ZodString;
166
- departure_city: z.ZodString;
165
+ exhibitor_name: z.ZodOptional<z.ZodString>;
166
+ departure_city: z.ZodOptional<z.ZodString>;
167
167
  contact_name: z.ZodString;
168
168
  email: z.ZodEmail;
169
169
  phone: z.ZodString;
170
170
  driver_name: z.ZodString;
171
171
  driver_phone: z.ZodString;
172
- transport_company: z.ZodString;
172
+ transport_company: z.ZodOptional<z.ZodString>;
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>;
@@ -265,21 +265,21 @@ export declare const checkSlotAvailabilityResponseSchema: z.ZodObject<{
265
265
  export declare const createParkingBookingBodySchema: z.ZodObject<{
266
266
  company: z.ZodObject<{
267
267
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
268
- stand_number: z.ZodString;
268
+ stand_number: z.ZodOptional<z.ZodString>;
269
269
  company_name: z.ZodString;
270
- business: z.ZodString;
271
- departure_city: z.ZodString;
270
+ exhibitor_name: z.ZodOptional<z.ZodString>;
271
+ departure_city: z.ZodOptional<z.ZodString>;
272
272
  contact_name: z.ZodString;
273
273
  email: z.ZodEmail;
274
274
  phone: z.ZodString;
275
275
  driver_name: z.ZodString;
276
276
  driver_phone: z.ZodString;
277
- transport_company: z.ZodString;
277
+ transport_company: z.ZodOptional<z.ZodString>;
278
278
  }, z.core.$strip>;
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>;
@@ -294,20 +294,20 @@ export declare const createParkingBookingDataSchema: z.ZodObject<{
294
294
  company_role: z.ZodString;
295
295
  company: z.ZodObject<{
296
296
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
297
- stand_number: z.ZodString;
297
+ stand_number: z.ZodOptional<z.ZodString>;
298
298
  company_name: z.ZodString;
299
- business: z.ZodString;
300
- departure_city: z.ZodString;
299
+ exhibitor_name: z.ZodOptional<z.ZodString>;
300
+ departure_city: z.ZodOptional<z.ZodString>;
301
301
  contact_name: z.ZodString;
302
302
  email: z.ZodEmail;
303
303
  phone: z.ZodString;
304
304
  driver_name: z.ZodString;
305
305
  driver_phone: z.ZodString;
306
- transport_company: z.ZodString;
306
+ transport_company: z.ZodOptional<z.ZodString>;
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>;
@@ -330,20 +330,20 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
330
330
  company_role: z.ZodString;
331
331
  company: z.ZodObject<{
332
332
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
333
- stand_number: z.ZodString;
333
+ stand_number: z.ZodOptional<z.ZodString>;
334
334
  company_name: z.ZodString;
335
- business: z.ZodString;
336
- departure_city: z.ZodString;
335
+ exhibitor_name: z.ZodOptional<z.ZodString>;
336
+ departure_city: z.ZodOptional<z.ZodString>;
337
337
  contact_name: z.ZodString;
338
338
  email: z.ZodEmail;
339
339
  phone: z.ZodString;
340
340
  driver_name: z.ZodString;
341
341
  driver_phone: z.ZodString;
342
- transport_company: z.ZodString;
342
+ transport_company: z.ZodOptional<z.ZodString>;
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>;
@@ -361,20 +361,20 @@ export declare const createParkingBookingResponseSchema: z.ZodObject<{
361
361
  export declare const updateParkingBookingBodySchema: z.ZodObject<{
362
362
  company: z.ZodOptional<z.ZodObject<{
363
363
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
364
- stand_number: z.ZodString;
364
+ stand_number: z.ZodOptional<z.ZodString>;
365
365
  company_name: z.ZodString;
366
- business: z.ZodString;
367
- departure_city: z.ZodString;
366
+ exhibitor_name: z.ZodOptional<z.ZodString>;
367
+ departure_city: z.ZodOptional<z.ZodString>;
368
368
  contact_name: z.ZodString;
369
369
  email: z.ZodEmail;
370
370
  phone: z.ZodString;
371
371
  driver_name: z.ZodString;
372
372
  driver_phone: z.ZodString;
373
- transport_company: z.ZodString;
373
+ transport_company: z.ZodOptional<z.ZodString>;
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>>;
@@ -385,20 +385,20 @@ export declare const updateParkingBookingDataSchema: z.ZodObject<{
385
385
  qr_token: z.ZodString;
386
386
  company: z.ZodNullable<z.ZodObject<{
387
387
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
388
- stand_number: z.ZodString;
388
+ stand_number: z.ZodOptional<z.ZodString>;
389
389
  company_name: z.ZodString;
390
- business: z.ZodString;
391
- departure_city: z.ZodString;
390
+ exhibitor_name: z.ZodOptional<z.ZodString>;
391
+ departure_city: z.ZodOptional<z.ZodString>;
392
392
  contact_name: z.ZodString;
393
393
  email: z.ZodEmail;
394
394
  phone: z.ZodString;
395
395
  driver_name: z.ZodString;
396
396
  driver_phone: z.ZodString;
397
- transport_company: z.ZodString;
397
+ transport_company: z.ZodOptional<z.ZodString>;
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>>;
@@ -413,20 +413,20 @@ export declare const updateParkingBookingResponseSchema: z.ZodObject<{
413
413
  qr_token: z.ZodString;
414
414
  company: z.ZodNullable<z.ZodObject<{
415
415
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
416
- stand_number: z.ZodString;
416
+ stand_number: z.ZodOptional<z.ZodString>;
417
417
  company_name: z.ZodString;
418
- business: z.ZodString;
419
- departure_city: z.ZodString;
418
+ exhibitor_name: z.ZodOptional<z.ZodString>;
419
+ departure_city: z.ZodOptional<z.ZodString>;
420
420
  contact_name: z.ZodString;
421
421
  email: z.ZodEmail;
422
422
  phone: z.ZodString;
423
423
  driver_name: z.ZodString;
424
424
  driver_phone: z.ZodString;
425
- transport_company: z.ZodString;
425
+ transport_company: z.ZodOptional<z.ZodString>;
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>>;
@@ -524,20 +524,20 @@ export declare const parkingBookingDetailsDataSchema: z.ZodObject<{
524
524
  company_role: z.ZodNullable<z.ZodString>;
525
525
  company: z.ZodObject<{
526
526
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
527
- stand_number: z.ZodString;
527
+ stand_number: z.ZodOptional<z.ZodString>;
528
528
  company_name: z.ZodString;
529
- business: z.ZodString;
530
- departure_city: z.ZodString;
529
+ exhibitor_name: z.ZodOptional<z.ZodString>;
530
+ departure_city: z.ZodOptional<z.ZodString>;
531
531
  contact_name: z.ZodString;
532
532
  email: z.ZodEmail;
533
533
  phone: z.ZodString;
534
534
  driver_name: z.ZodString;
535
535
  driver_phone: z.ZodString;
536
- transport_company: z.ZodString;
536
+ transport_company: z.ZodOptional<z.ZodString>;
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>;
@@ -581,20 +581,20 @@ export declare const getParkingBookingDetailsResponseSchema: z.ZodObject<{
581
581
  company_role: z.ZodNullable<z.ZodString>;
582
582
  company: z.ZodObject<{
583
583
  hall: z.ZodNullable<z.ZodOptional<z.ZodString>>;
584
- stand_number: z.ZodString;
584
+ stand_number: z.ZodOptional<z.ZodString>;
585
585
  company_name: z.ZodString;
586
- business: z.ZodString;
587
- departure_city: z.ZodString;
586
+ exhibitor_name: z.ZodOptional<z.ZodString>;
587
+ departure_city: z.ZodOptional<z.ZodString>;
588
588
  contact_name: z.ZodString;
589
589
  email: z.ZodEmail;
590
590
  phone: z.ZodString;
591
591
  driver_name: z.ZodString;
592
592
  driver_phone: z.ZodString;
593
- transport_company: z.ZodString;
593
+ transport_company: z.ZodOptional<z.ZodString>;
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>;
@@ -91,7 +91,7 @@ export const companyDetailsSchema = z
91
91
  description: 'Hall location',
92
92
  example: 'Hall 1'
93
93
  }),
94
- stand_number: z.string().min(1, 'Stand number is required').openapi({
94
+ stand_number: z.string().optional().openapi({
95
95
  description: 'Stand number',
96
96
  example: 'A-123'
97
97
  }),
@@ -99,11 +99,11 @@ export const companyDetailsSchema = z
99
99
  description: 'Company name',
100
100
  example: 'Acme Corp'
101
101
  }),
102
- business: z.string().min(1, 'Business is required').openapi({
103
- description: 'Type of business',
102
+ exhibitor_name: z.string().optional().openapi({
103
+ description: 'Exhibitor name',
104
104
  example: 'Technology'
105
105
  }),
106
- departure_city: z.string().min(1, 'Departure city is required').openapi({
106
+ departure_city: z.string().optional().openapi({
107
107
  description: 'City of departure',
108
108
  example: 'Paris'
109
109
  }),
@@ -127,7 +127,7 @@ export const companyDetailsSchema = z
127
127
  description: 'Driver phone number',
128
128
  example: '+33 6 12 34 56 78'
129
129
  }),
130
- transport_company: z.string().min(1, 'Transport company is required').openapi({
130
+ transport_company: z.string().optional().openapi({
131
131
  description: 'Transport company name',
132
132
  example: 'Fast Transport Ltd'
133
133
  })
@@ -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.0",
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",