@venulog/phasing-engine-schemas 0.11.0-alpha.0 → 0.12.0-alpha.0
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.
- package/dist/parkingArea.d.ts +14 -0
- package/dist/parkingArea.js +35 -0
- package/dist/parkingBooking.d.ts +1 -1
- package/dist/parkingBooking.js +1 -1
- package/package.json +1 -1
package/dist/parkingArea.d.ts
CHANGED
|
@@ -689,11 +689,23 @@ export declare const availableSlotsResponseV2Schema: z.ZodObject<{
|
|
|
689
689
|
export declare const getCompanyRolesByEventIdParamsSchema: z.ZodObject<{
|
|
690
690
|
eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
691
691
|
}, z.core.$strip>;
|
|
692
|
+
export declare const translationEntrySchema: z.ZodObject<{
|
|
693
|
+
en: z.ZodString;
|
|
694
|
+
fr: z.ZodString;
|
|
695
|
+
}, z.core.$strip>;
|
|
696
|
+
export declare const translationsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
697
|
+
en: z.ZodString;
|
|
698
|
+
fr: z.ZodString;
|
|
699
|
+
}, z.core.$strip>>>;
|
|
692
700
|
export declare const getCompanyRolesByEventIdResponseSchema: z.ZodObject<{
|
|
693
701
|
event_id: z.ZodNumber;
|
|
694
702
|
company_roles: z.ZodArray<z.ZodString>;
|
|
695
703
|
company_names_by_role: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
|
|
696
704
|
total_count: z.ZodNumber;
|
|
705
|
+
translations: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
706
|
+
en: z.ZodString;
|
|
707
|
+
fr: z.ZodString;
|
|
708
|
+
}, z.core.$strip>>>;
|
|
697
709
|
}, z.core.$strip>;
|
|
698
710
|
export declare const getCompanyNamesByEventIdParamsSchema: z.ZodObject<{
|
|
699
711
|
eventId: z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>;
|
|
@@ -747,6 +759,8 @@ export type GetCompanyRolesByEventIdResponse = z.infer<typeof getCompanyRolesByE
|
|
|
747
759
|
export type GetCompanyNamesByEventIdParams = z.infer<typeof getCompanyNamesByEventIdParamsSchema>;
|
|
748
760
|
export type GetCompanyNamesByEventIdResponse = z.infer<typeof getCompanyNamesByEventIdResponseSchema>;
|
|
749
761
|
export type GetCompanyNamesByEventIdQuery = z.infer<typeof getCompanyNamesByEventIdQuerySchema>;
|
|
762
|
+
export type TranslationEntry = z.infer<typeof translationEntrySchema>;
|
|
763
|
+
export type Translations = z.infer<typeof translationsSchema>;
|
|
750
764
|
export type GetAvailableSlotsBodyV2 = z.infer<typeof getAvailableSlotsBodyV2Schema>;
|
|
751
765
|
export type AvailableTimeSlotV2 = z.infer<typeof availableTimeSlotV2Schema>;
|
|
752
766
|
export type AvailableSlotsResponseV2 = z.infer<typeof availableSlotsResponseV2Schema>;
|
package/dist/parkingArea.js
CHANGED
|
@@ -994,6 +994,38 @@ export const getCompanyRolesByEventIdParamsSchema = z
|
|
|
994
994
|
})
|
|
995
995
|
})
|
|
996
996
|
.openapi('GetCompanyRolesByEventIdParams');
|
|
997
|
+
// Translations schema for company role names in different languages
|
|
998
|
+
export const translationEntrySchema = z
|
|
999
|
+
.object({
|
|
1000
|
+
en: z.string().openapi({
|
|
1001
|
+
description: 'Translated name in English',
|
|
1002
|
+
example: 'EXHIBITORS'
|
|
1003
|
+
}),
|
|
1004
|
+
fr: z.string().openapi({
|
|
1005
|
+
description: 'Translated name in French',
|
|
1006
|
+
example: 'EXPOSANTS'
|
|
1007
|
+
})
|
|
1008
|
+
})
|
|
1009
|
+
.openapi('TranslationEntry');
|
|
1010
|
+
export const translationsSchema = z
|
|
1011
|
+
.record(z.string(), z.record(z.string(), translationEntrySchema))
|
|
1012
|
+
.openapi({
|
|
1013
|
+
description: 'Translations for company roles/categories in multiple languages',
|
|
1014
|
+
example: {
|
|
1015
|
+
PRESTATAIRES: {
|
|
1016
|
+
name: {
|
|
1017
|
+
en: 'PROVIDERS',
|
|
1018
|
+
fr: 'PRESTATAIRES'
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
EXPOSANTS: {
|
|
1022
|
+
name: {
|
|
1023
|
+
en: 'EXHIBITORS',
|
|
1024
|
+
fr: 'EXPOSANTS'
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
});
|
|
997
1029
|
export const getCompanyRolesByEventIdResponseSchema = z
|
|
998
1030
|
.object({
|
|
999
1031
|
event_id: z.number().openapi({
|
|
@@ -1015,6 +1047,9 @@ export const getCompanyRolesByEventIdResponseSchema = z
|
|
|
1015
1047
|
total_count: z.number().openapi({
|
|
1016
1048
|
description: 'Total number of unique company roles',
|
|
1017
1049
|
example: 3
|
|
1050
|
+
}),
|
|
1051
|
+
translations: translationsSchema.openapi({
|
|
1052
|
+
description: 'Translations for company role names'
|
|
1018
1053
|
})
|
|
1019
1054
|
})
|
|
1020
1055
|
.openapi('GetCompanyRolesByEventIdResponse');
|
package/dist/parkingBooking.d.ts
CHANGED
|
@@ -510,7 +510,7 @@ export declare const parkingBookingWithRelationsSchema: z.ZodObject<{
|
|
|
510
510
|
parking_spot: z.ZodString;
|
|
511
511
|
door: z.ZodString;
|
|
512
512
|
parking_schedule_type: z.ZodEnum<typeof ParkingAreaScheduleType>;
|
|
513
|
-
slot_key: z.ZodString
|
|
513
|
+
slot_key: z.ZodNullable<z.ZodString>;
|
|
514
514
|
entry_scanned_at: z.ZodNullable<z.ZodString>;
|
|
515
515
|
exit_scanned_at: z.ZodNullable<z.ZodString>;
|
|
516
516
|
}, z.core.$strip>;
|
package/dist/parkingBooking.js
CHANGED
|
@@ -486,7 +486,7 @@ export const parkingBookingWithRelationsSchema = z
|
|
|
486
486
|
parking_spot: z.string(),
|
|
487
487
|
door: z.string(),
|
|
488
488
|
parking_schedule_type: z.enum(ParkingAreaScheduleType),
|
|
489
|
-
slot_key: z.string(),
|
|
489
|
+
slot_key: z.string().nullable(),
|
|
490
490
|
entry_scanned_at: z.string().nullable(),
|
|
491
491
|
exit_scanned_at: z.string().nullable()
|
|
492
492
|
})
|