@venulog/phasing-engine-schemas 0.11.1 → 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.
@@ -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>;
@@ -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/package.json CHANGED
@@ -1,99 +1,99 @@
1
- {
2
- "name": "@venulog/phasing-engine-schemas",
3
- "version": "0.11.1",
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
- "./parkingAreaLayer": {
38
- "types": "./dist/parkingAreaLayer.d.ts",
39
- "import": "./dist/parkingAreaLayer.js"
40
- },
41
- "./parkingAreaAccess": {
42
- "types": "./dist/parkingAreaAccess.d.ts",
43
- "import": "./dist/parkingAreaAccess.js"
44
- },
45
- "./enums": {
46
- "types": "./dist/enums/index.d.ts",
47
- "import": "./dist/enums/index.js"
48
- },
49
- "./accessToken": {
50
- "types": "./dist/accessToken.d.ts",
51
- "import": "./dist/accessToken.js"
52
- },
53
- "./vehiclePosition": {
54
- "types": "./dist/vehiclePosition.d.ts",
55
- "import": "./dist/vehiclePosition.js"
56
- },
57
- "./camera": {
58
- "types": "./dist/camera.d.ts",
59
- "import": "./dist/camera.js"
60
- },
61
- "./simulation": {
62
- "types": "./dist/simulation.d.ts",
63
- "import": "./dist/simulation.js"
64
- },
65
- "./exhibitor": {
66
- "types": "./dist/exhibitor.d.ts",
67
- "import": "./dist/exhibitor.js"
68
- }
69
- },
70
- "files": [
71
- "dist"
72
- ],
73
- "scripts": {
74
- "build": "npm run clean && tsc",
75
- "dev": "tsc --watch",
76
- "clean": "rm -rf dist",
77
- "prepublishOnly": "npm run build"
78
- },
79
- "keywords": [
80
- "schemas",
81
- "validation",
82
- "types",
83
- "zod",
84
- "phasing-engine"
85
- ],
86
- "license": "MIT",
87
- "dependencies": {
88
- "@asteasolutions/zod-to-openapi": "^8.1.0",
89
- "zod": "^4.1.13"
90
- },
91
- "devDependencies": {
92
- "typescript": "^5.6.3"
93
- },
94
- "repository": {
95
- "type": "git",
96
- "url": "git+https://github.com/manaty/phasing_engine.git",
97
- "directory": "packages/phasing-schemas"
98
- }
99
- }
1
+ {
2
+ "name": "@venulog/phasing-engine-schemas",
3
+ "version": "0.12.0-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
+ "./parkingAreaLayer": {
38
+ "types": "./dist/parkingAreaLayer.d.ts",
39
+ "import": "./dist/parkingAreaLayer.js"
40
+ },
41
+ "./parkingAreaAccess": {
42
+ "types": "./dist/parkingAreaAccess.d.ts",
43
+ "import": "./dist/parkingAreaAccess.js"
44
+ },
45
+ "./enums": {
46
+ "types": "./dist/enums/index.d.ts",
47
+ "import": "./dist/enums/index.js"
48
+ },
49
+ "./accessToken": {
50
+ "types": "./dist/accessToken.d.ts",
51
+ "import": "./dist/accessToken.js"
52
+ },
53
+ "./vehiclePosition": {
54
+ "types": "./dist/vehiclePosition.d.ts",
55
+ "import": "./dist/vehiclePosition.js"
56
+ },
57
+ "./camera": {
58
+ "types": "./dist/camera.d.ts",
59
+ "import": "./dist/camera.js"
60
+ },
61
+ "./simulation": {
62
+ "types": "./dist/simulation.d.ts",
63
+ "import": "./dist/simulation.js"
64
+ },
65
+ "./exhibitor": {
66
+ "types": "./dist/exhibitor.d.ts",
67
+ "import": "./dist/exhibitor.js"
68
+ }
69
+ },
70
+ "files": [
71
+ "dist"
72
+ ],
73
+ "scripts": {
74
+ "build": "npm run clean && tsc",
75
+ "dev": "tsc --watch",
76
+ "clean": "rm -rf dist",
77
+ "prepublishOnly": "npm run build"
78
+ },
79
+ "keywords": [
80
+ "schemas",
81
+ "validation",
82
+ "types",
83
+ "zod",
84
+ "phasing-engine"
85
+ ],
86
+ "license": "MIT",
87
+ "dependencies": {
88
+ "@asteasolutions/zod-to-openapi": "^8.1.0",
89
+ "zod": "^4.1.13"
90
+ },
91
+ "devDependencies": {
92
+ "typescript": "^5.6.3"
93
+ },
94
+ "repository": {
95
+ "type": "git",
96
+ "url": "git+https://github.com/manaty/phasing_engine.git",
97
+ "directory": "packages/phasing-schemas"
98
+ }
99
+ }