@tmlmobilidade/types 20260627.17.1 → 20260627.41.35

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.
Files changed (132) hide show
  1. package/dist/alerts/cause.d.ts +1 -1
  2. package/dist/alerts/effect.d.ts +1 -1
  3. package/dist/gtfs/feed-info.d.ts +2 -2
  4. package/dist/gtfs-tml/feed-info.d.ts +2 -2
  5. package/dist/gtfs-validation/gtfs-validation.d.ts +12 -12
  6. package/dist/index.d.ts +1 -2
  7. package/dist/index.js +1 -2
  8. package/dist/locations/queries.d.ts +4 -4
  9. package/dist/offer/pattern.d.ts +72 -72
  10. package/dist/offer/route-path-type.d.ts +2 -2
  11. package/dist/offer/route.d.ts +6 -6
  12. package/dist/offer/rules.d.ts +18 -18
  13. package/dist/offer/typology.d.ts +7 -7
  14. package/dist/offer/vkm.d.ts +15 -15
  15. package/dist/operation/lines/operational-line.d.ts +4 -4
  16. package/dist/operation/stops/operational-stop.d.ts +4 -4
  17. package/dist/organization.d.ts +5 -5
  18. package/dist/plans/plan-app-status.d.ts +2 -2
  19. package/dist/plans/plan.d.ts +94 -94
  20. package/dist/vehicle/vehicle.d.ts +5 -5
  21. package/dist/vehicle-events/raw/ccfl/v1.d.ts +54 -54
  22. package/dist/vehicle-events/raw/ccfl/v1.js +1 -1
  23. package/dist/vehicle-events/raw/cmet/v1-core.d.ts +88 -88
  24. package/dist/vehicle-events/raw/cmet/v1-log.d.ts +88 -88
  25. package/dist/vehicle-events/raw/cp/v1.d.ts +64 -64
  26. package/dist/vehicle-events/raw/cp/v1.js +1 -1
  27. package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +112 -112
  28. package/dist/vehicle-events/raw/crtm-aisa/v1.js +1 -2
  29. package/dist/vehicle-events/raw/crtm-laveloz/v1.d.ts +112 -112
  30. package/dist/vehicle-events/raw/crtm-laveloz/v1.js +1 -1
  31. package/dist/vehicle-events/raw/fertagus/v1.d.ts +64 -64
  32. package/dist/vehicle-events/raw/ml/v1.d.ts +54 -54
  33. package/dist/vehicle-events/raw/mobi/v1.d.ts +84 -84
  34. package/dist/vehicle-events/raw/mobi/v1.js +1 -1
  35. package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
  36. package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +530 -530
  37. package/dist/vehicle-events/raw/tcb/v1.d.ts +84 -84
  38. package/dist/vehicle-events/raw/tcb/v1.js +1 -1
  39. package/dist/vehicle-events/raw/ttsl/v1.d.ts +54 -54
  40. package/dist/vehicle-events/raw/ttsl/v1.js +1 -1
  41. package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +7 -7
  42. package/package.json +2 -1
  43. package/dist/gtfs-rt/alert.d.ts +0 -347
  44. package/dist/gtfs-rt/alert.js +0 -24
  45. package/dist/gtfs-rt/carriage-details.d.ts +0 -21
  46. package/dist/gtfs-rt/carriage-details.js +0 -11
  47. package/dist/gtfs-rt/cause.d.ts +0 -10
  48. package/dist/gtfs-rt/cause.js +0 -18
  49. package/dist/gtfs-rt/congestion-level.d.ts +0 -4
  50. package/dist/gtfs-rt/congestion-level.js +0 -11
  51. package/dist/gtfs-rt/effect.d.ts +0 -10
  52. package/dist/gtfs-rt/effect.js +0 -17
  53. package/dist/gtfs-rt/entity-selector.d.ts +0 -68
  54. package/dist/gtfs-rt/entity-selector.js +0 -12
  55. package/dist/gtfs-rt/feed-entity.d.ts +0 -729
  56. package/dist/gtfs-rt/feed-entity.js +0 -11
  57. package/dist/gtfs-rt/feed-header.d.ts +0 -18
  58. package/dist/gtfs-rt/feed-header.js +0 -9
  59. package/dist/gtfs-rt/feed-message.d.ts +0 -975
  60. package/dist/gtfs-rt/feed-message.js +0 -9
  61. package/dist/gtfs-rt/index.d.ts +0 -22
  62. package/dist/gtfs-rt/index.js +0 -22
  63. package/dist/gtfs-rt/localized-image.d.ts +0 -15
  64. package/dist/gtfs-rt/localized-image.js +0 -8
  65. package/dist/gtfs-rt/occupancy-status.d.ts +0 -4
  66. package/dist/gtfs-rt/occupancy-status.js +0 -15
  67. package/dist/gtfs-rt/position.d.ts +0 -21
  68. package/dist/gtfs-rt/position.js +0 -10
  69. package/dist/gtfs-rt/severity-level.d.ts +0 -4
  70. package/dist/gtfs-rt/severity-level.js +0 -10
  71. package/dist/gtfs-rt/time-range.d.ts +0 -12
  72. package/dist/gtfs-rt/time-range.js +0 -7
  73. package/dist/gtfs-rt/translated-image.d.ts +0 -29
  74. package/dist/gtfs-rt/translated-image.js +0 -7
  75. package/dist/gtfs-rt/translated-string.d.ts +0 -24
  76. package/dist/gtfs-rt/translated-string.js +0 -7
  77. package/dist/gtfs-rt/translation.d.ts +0 -12
  78. package/dist/gtfs-rt/translation.js +0 -7
  79. package/dist/gtfs-rt/trip-descriptor.d.ts +0 -29
  80. package/dist/gtfs-rt/trip-descriptor.js +0 -13
  81. package/dist/gtfs-rt/vehicle-descriptor.d.ts +0 -18
  82. package/dist/gtfs-rt/vehicle-descriptor.js +0 -10
  83. package/dist/gtfs-rt/vehicle-position.d.ts +0 -168
  84. package/dist/gtfs-rt/vehicle-position.js +0 -23
  85. package/dist/gtfs-rt/vehicle-stop-status.d.ts +0 -4
  86. package/dist/gtfs-rt/vehicle-stop-status.js +0 -9
  87. package/dist/gtfs-rt/wheelchair-accessible.d.ts +0 -4
  88. package/dist/gtfs-rt/wheelchair-accessible.js +0 -10
  89. package/dist/hub/api/alerts/alert.d.ts +0 -82
  90. package/dist/hub/api/alerts/alert.js +0 -20
  91. package/dist/hub/api/alerts/index.d.ts +0 -1
  92. package/dist/hub/api/alerts/index.js +0 -1
  93. package/dist/hub/api/index.d.ts +0 -7
  94. package/dist/hub/api/index.js +0 -7
  95. package/dist/hub/api/network/index.d.ts +0 -7
  96. package/dist/hub/api/network/index.js +0 -7
  97. package/dist/hub/api/network/line.d.ts +0 -66
  98. package/dist/hub/api/network/line.js +0 -24
  99. package/dist/hub/api/network/pattern.d.ts +0 -184
  100. package/dist/hub/api/network/pattern.js +0 -32
  101. package/dist/hub/api/network/route.d.ts +0 -66
  102. package/dist/hub/api/network/route.js +0 -24
  103. package/dist/hub/api/network/scheduled-arrival.d.ts +0 -21
  104. package/dist/hub/api/network/scheduled-arrival.js +0 -9
  105. package/dist/hub/api/network/stop.d.ts +0 -97
  106. package/dist/hub/api/network/stop.js +0 -29
  107. package/dist/hub/api/network/trip.d.ts +0 -49
  108. package/dist/hub/api/network/trip.js +0 -11
  109. package/dist/hub/api/network/waypoint.d.ts +0 -27
  110. package/dist/hub/api/network/waypoint.js +0 -11
  111. package/dist/hub/api/patterns.d.ts +0 -16
  112. package/dist/hub/api/patterns.js +0 -3
  113. package/dist/hub/api/plans/index.d.ts +0 -1
  114. package/dist/hub/api/plans/index.js +0 -1
  115. package/dist/hub/api/plans/plan.d.ts +0 -138
  116. package/dist/hub/api/plans/plan.js +0 -18
  117. package/dist/hub/api/realtime/index.d.ts +0 -1
  118. package/dist/hub/api/realtime/index.js +0 -1
  119. package/dist/hub/api/realtime/vehicle-position.d.ts +0 -66
  120. package/dist/hub/api/realtime/vehicle-position.js +0 -31
  121. package/dist/hub/api/realtime-eta-gtfs.d.ts +0 -41
  122. package/dist/hub/api/realtime-eta-gtfs.js +0 -2
  123. package/dist/hub/api/shapes.d.ts +0 -148
  124. package/dist/hub/api/shapes.js +0 -26
  125. package/dist/hub/api/timetables.d.ts +0 -36
  126. package/dist/hub/api/timetables.js +0 -2
  127. package/dist/hub/gtfs/index.d.ts +0 -1
  128. package/dist/hub/gtfs/index.js +0 -1
  129. package/dist/hub/gtfs/stops.d.ts +0 -66
  130. package/dist/hub/gtfs/stops.js +0 -24
  131. package/dist/hub/index.d.ts +0 -2
  132. package/dist/hub/index.js +0 -2
@@ -34,13 +34,13 @@ export declare const SimplifiedVehicleEventSchema: z.ZodObject<{
34
34
  stop_id: string | null;
35
35
  latitude: number;
36
36
  longitude: number;
37
- bearing: number | null;
38
- odometer: number | null;
39
- speed: number | null;
40
- current_status: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null;
41
37
  received_at: number & {
42
38
  __brand: "UnixTimestamp";
43
39
  };
40
+ current_status: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null;
41
+ bearing: number | null;
42
+ speed: number | null;
43
+ odometer: number | null;
44
44
  door: string | null;
45
45
  driver_id: string | null;
46
46
  extra_trip_id: string | null;
@@ -57,12 +57,12 @@ export declare const SimplifiedVehicleEventSchema: z.ZodObject<{
57
57
  received_at: number;
58
58
  pattern_id?: string | null | undefined;
59
59
  stop_id?: string | null | undefined;
60
+ current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
60
61
  bearing?: number | null | undefined;
61
- odometer?: number | null | undefined;
62
62
  speed?: number | null | undefined;
63
- current_status?: "INCOMING_AT" | "STOPPED_AT" | "IN_TRANSIT_TO" | null | undefined;
64
- geohash?: string | null | undefined;
63
+ odometer?: number | null | undefined;
65
64
  door?: string | null | undefined;
65
+ geohash?: string | null | undefined;
66
66
  driver_id?: string | null | undefined;
67
67
  extra_trip_id?: string | null | undefined;
68
68
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/types",
3
- "version": "20260627.17.1",
3
+ "version": "20260627.41.35",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"
@@ -36,6 +36,7 @@
36
36
  "watch": "tsc-watch --onSuccess 'resolve-tspaths'"
37
37
  },
38
38
  "dependencies": {
39
+ "@tmlmobilidade/go-types-gtfs-rt": "*",
39
40
  "@tmlmobilidade/go-types-shared": "*",
40
41
  "@types/geojson": "7946.0.16",
41
42
  "gtfs-types": "5.1.0",
@@ -1,347 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const GtfsRtAlertSchema: z.ZodObject<{
3
- active_period: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
4
- end: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
- start: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
6
- }, "strip", z.ZodTypeAny, {
7
- end?: number | null | undefined;
8
- start?: number | null | undefined;
9
- }, {
10
- end?: number | null | undefined;
11
- start?: number | null | undefined;
12
- }>, "many">>>;
13
- cause: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "UNKNOWN_CAUSE", "WEATHER"]>>>;
14
- description_text: z.ZodObject<{
15
- translation: z.ZodArray<z.ZodObject<{
16
- language: z.ZodString;
17
- text: z.ZodString;
18
- }, "strip", z.ZodTypeAny, {
19
- language: string;
20
- text: string;
21
- }, {
22
- language: string;
23
- text: string;
24
- }>, "many">;
25
- }, "strip", z.ZodTypeAny, {
26
- translation: {
27
- language: string;
28
- text: string;
29
- }[];
30
- }, {
31
- translation: {
32
- language: string;
33
- text: string;
34
- }[];
35
- }>;
36
- effect: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_EFFECT", "NO_SERVICE", "OTHER_EFFECT", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "UNKNOWN_EFFECT"]>>>;
37
- header_text: z.ZodObject<{
38
- translation: z.ZodArray<z.ZodObject<{
39
- language: z.ZodString;
40
- text: z.ZodString;
41
- }, "strip", z.ZodTypeAny, {
42
- language: string;
43
- text: string;
44
- }, {
45
- language: string;
46
- text: string;
47
- }>, "many">;
48
- }, "strip", z.ZodTypeAny, {
49
- translation: {
50
- language: string;
51
- text: string;
52
- }[];
53
- }, {
54
- translation: {
55
- language: string;
56
- text: string;
57
- }[];
58
- }>;
59
- image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
60
- localized_image: z.ZodArray<z.ZodObject<{
61
- language: z.ZodString;
62
- media_type: z.ZodString;
63
- url: z.ZodString;
64
- }, "strip", z.ZodTypeAny, {
65
- url: string;
66
- language: string;
67
- media_type: string;
68
- }, {
69
- url: string;
70
- language: string;
71
- media_type: string;
72
- }>, "many">;
73
- }, "strip", z.ZodTypeAny, {
74
- localized_image: {
75
- url: string;
76
- language: string;
77
- media_type: string;
78
- }[];
79
- }, {
80
- localized_image: {
81
- url: string;
82
- language: string;
83
- media_type: string;
84
- }[];
85
- }>>>;
86
- image_alternative_text: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
87
- informed_entity: z.ZodArray<z.ZodObject<{
88
- agency_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
- direction_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
90
- route_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
- route_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
92
- stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
- trip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
94
- direction_id: z.ZodAny;
95
- modified_trip: z.ZodAny;
96
- route_id: z.ZodString;
97
- schedule_relationship: z.ZodAny;
98
- start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
99
- start_time: z.ZodAny;
100
- trip_id: z.ZodString;
101
- }, "strip", z.ZodTypeAny, {
102
- route_id: string;
103
- trip_id: string;
104
- start_date: string & {
105
- __brand: "OperationalDate";
106
- };
107
- start_time?: any;
108
- direction_id?: any;
109
- modified_trip?: any;
110
- schedule_relationship?: any;
111
- }, {
112
- route_id: string;
113
- trip_id: string;
114
- start_date: string;
115
- start_time?: any;
116
- direction_id?: any;
117
- modified_trip?: any;
118
- schedule_relationship?: any;
119
- }>>>;
120
- }, "strip", z.ZodTypeAny, {
121
- agency_id?: string | null | undefined;
122
- route_id?: string | null | undefined;
123
- stop_id?: string | null | undefined;
124
- route_type?: number | null | undefined;
125
- direction_id?: number | null | undefined;
126
- trip?: {
127
- route_id: string;
128
- trip_id: string;
129
- start_date: string & {
130
- __brand: "OperationalDate";
131
- };
132
- start_time?: any;
133
- direction_id?: any;
134
- modified_trip?: any;
135
- schedule_relationship?: any;
136
- } | null | undefined;
137
- }, {
138
- agency_id?: string | null | undefined;
139
- route_id?: string | null | undefined;
140
- stop_id?: string | null | undefined;
141
- route_type?: number | null | undefined;
142
- direction_id?: number | null | undefined;
143
- trip?: {
144
- route_id: string;
145
- trip_id: string;
146
- start_date: string;
147
- start_time?: any;
148
- direction_id?: any;
149
- modified_trip?: any;
150
- schedule_relationship?: any;
151
- } | null | undefined;
152
- }>, "many">;
153
- severity_level: z.ZodOptional<z.ZodNullable<z.ZodEnum<["UNKNOWN_SEVERITY", "INFO", "WARNING", "SEVERE"]>>>;
154
- tts_description_text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
155
- translation: z.ZodArray<z.ZodObject<{
156
- language: z.ZodString;
157
- text: z.ZodString;
158
- }, "strip", z.ZodTypeAny, {
159
- language: string;
160
- text: string;
161
- }, {
162
- language: string;
163
- text: string;
164
- }>, "many">;
165
- }, "strip", z.ZodTypeAny, {
166
- translation: {
167
- language: string;
168
- text: string;
169
- }[];
170
- }, {
171
- translation: {
172
- language: string;
173
- text: string;
174
- }[];
175
- }>>>;
176
- tts_header_text: z.ZodOptional<z.ZodNullable<z.ZodObject<{
177
- translation: z.ZodArray<z.ZodObject<{
178
- language: z.ZodString;
179
- text: z.ZodString;
180
- }, "strip", z.ZodTypeAny, {
181
- language: string;
182
- text: string;
183
- }, {
184
- language: string;
185
- text: string;
186
- }>, "many">;
187
- }, "strip", z.ZodTypeAny, {
188
- translation: {
189
- language: string;
190
- text: string;
191
- }[];
192
- }, {
193
- translation: {
194
- language: string;
195
- text: string;
196
- }[];
197
- }>>>;
198
- url: z.ZodOptional<z.ZodNullable<z.ZodObject<{
199
- translation: z.ZodArray<z.ZodObject<{
200
- language: z.ZodString;
201
- text: z.ZodString;
202
- }, "strip", z.ZodTypeAny, {
203
- language: string;
204
- text: string;
205
- }, {
206
- language: string;
207
- text: string;
208
- }>, "many">;
209
- }, "strip", z.ZodTypeAny, {
210
- translation: {
211
- language: string;
212
- text: string;
213
- }[];
214
- }, {
215
- translation: {
216
- language: string;
217
- text: string;
218
- }[];
219
- }>>>;
220
- }, "strip", z.ZodTypeAny, {
221
- description_text: {
222
- translation: {
223
- language: string;
224
- text: string;
225
- }[];
226
- };
227
- header_text: {
228
- translation: {
229
- language: string;
230
- text: string;
231
- }[];
232
- };
233
- informed_entity: {
234
- agency_id?: string | null | undefined;
235
- route_id?: string | null | undefined;
236
- stop_id?: string | null | undefined;
237
- route_type?: number | null | undefined;
238
- direction_id?: number | null | undefined;
239
- trip?: {
240
- route_id: string;
241
- trip_id: string;
242
- start_date: string & {
243
- __brand: "OperationalDate";
244
- };
245
- start_time?: any;
246
- direction_id?: any;
247
- modified_trip?: any;
248
- schedule_relationship?: any;
249
- } | null | undefined;
250
- }[];
251
- url?: {
252
- translation: {
253
- language: string;
254
- text: string;
255
- }[];
256
- } | null | undefined;
257
- cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER" | null | undefined;
258
- effect?: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT" | null | undefined;
259
- active_period?: {
260
- end?: number | null | undefined;
261
- start?: number | null | undefined;
262
- }[] | null | undefined;
263
- image?: {
264
- localized_image: {
265
- url: string;
266
- language: string;
267
- media_type: string;
268
- }[];
269
- } | null | undefined;
270
- image_alternative_text?: any;
271
- severity_level?: "UNKNOWN_SEVERITY" | "INFO" | "WARNING" | "SEVERE" | null | undefined;
272
- tts_description_text?: {
273
- translation: {
274
- language: string;
275
- text: string;
276
- }[];
277
- } | null | undefined;
278
- tts_header_text?: {
279
- translation: {
280
- language: string;
281
- text: string;
282
- }[];
283
- } | null | undefined;
284
- }, {
285
- description_text: {
286
- translation: {
287
- language: string;
288
- text: string;
289
- }[];
290
- };
291
- header_text: {
292
- translation: {
293
- language: string;
294
- text: string;
295
- }[];
296
- };
297
- informed_entity: {
298
- agency_id?: string | null | undefined;
299
- route_id?: string | null | undefined;
300
- stop_id?: string | null | undefined;
301
- route_type?: number | null | undefined;
302
- direction_id?: number | null | undefined;
303
- trip?: {
304
- route_id: string;
305
- trip_id: string;
306
- start_date: string;
307
- start_time?: any;
308
- direction_id?: any;
309
- modified_trip?: any;
310
- schedule_relationship?: any;
311
- } | null | undefined;
312
- }[];
313
- url?: {
314
- translation: {
315
- language: string;
316
- text: string;
317
- }[];
318
- } | null | undefined;
319
- cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER" | null | undefined;
320
- effect?: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT" | null | undefined;
321
- active_period?: {
322
- end?: number | null | undefined;
323
- start?: number | null | undefined;
324
- }[] | null | undefined;
325
- image?: {
326
- localized_image: {
327
- url: string;
328
- language: string;
329
- media_type: string;
330
- }[];
331
- } | null | undefined;
332
- image_alternative_text?: any;
333
- severity_level?: "UNKNOWN_SEVERITY" | "INFO" | "WARNING" | "SEVERE" | null | undefined;
334
- tts_description_text?: {
335
- translation: {
336
- language: string;
337
- text: string;
338
- }[];
339
- } | null | undefined;
340
- tts_header_text?: {
341
- translation: {
342
- language: string;
343
- text: string;
344
- }[];
345
- } | null | undefined;
346
- }>;
347
- export type GtfsRtAlert = z.infer<typeof GtfsRtAlertSchema>;
@@ -1,24 +0,0 @@
1
- /* * */
2
- import { GtfsRtCauseSchema } from './cause.js';
3
- import { GtfsRtEffectSchema } from './effect.js';
4
- import { GtfsRtEntitySelectorSchema } from './entity-selector.js';
5
- import { GtfsRtSeverityLevelSchema } from './severity-level.js';
6
- import { GtfsRtTimeRangeSchema } from './time-range.js';
7
- import { GtfsRtTranslatedImageSchema } from './translated-image.js';
8
- import { GtfsRtTranslatedStringSchema } from './translated-string.js';
9
- import { z } from 'zod';
10
- /* * */
11
- export const GtfsRtAlertSchema = z.object({
12
- active_period: z.array(GtfsRtTimeRangeSchema).nullish(),
13
- cause: GtfsRtCauseSchema.nullish(),
14
- description_text: GtfsRtTranslatedStringSchema,
15
- effect: GtfsRtEffectSchema.nullish(),
16
- header_text: GtfsRtTranslatedStringSchema,
17
- image: GtfsRtTranslatedImageSchema.nullish(),
18
- image_alternative_text: z.any().nullish(),
19
- informed_entity: z.array(GtfsRtEntitySelectorSchema).min(1),
20
- severity_level: GtfsRtSeverityLevelSchema.nullish(),
21
- tts_description_text: GtfsRtTranslatedStringSchema.nullish(),
22
- tts_header_text: GtfsRtTranslatedStringSchema.nullish(),
23
- url: GtfsRtTranslatedStringSchema.nullish(),
24
- });
@@ -1,21 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const GtfsRtCarriageDetailsSchema: z.ZodObject<{
3
- carriage_sequence: z.ZodNumber;
4
- id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
- label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- occupancy_percentage: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
- occupancy_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["EMPTY", "MANY_SEATS_AVAILABLE", "FEW_SEATS_AVAILABLE", "STANDING_ROOM_ONLY", "CRUSHED_STANDING_ROOM_ONLY", "FULL", "NOT_ACCEPTING_PASSENGERS", "NO_DATA_AVAILABLE", "NOT_BOARDABLE"]>>>;
8
- }, "strip", z.ZodTypeAny, {
9
- carriage_sequence: number;
10
- id?: string | null | undefined;
11
- label?: string | null | undefined;
12
- occupancy_percentage?: number | null | undefined;
13
- occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
14
- }, {
15
- carriage_sequence: number;
16
- id?: string | null | undefined;
17
- label?: string | null | undefined;
18
- occupancy_percentage?: number | null | undefined;
19
- occupancy_status?: "EMPTY" | "MANY_SEATS_AVAILABLE" | "FEW_SEATS_AVAILABLE" | "STANDING_ROOM_ONLY" | "CRUSHED_STANDING_ROOM_ONLY" | "FULL" | "NOT_ACCEPTING_PASSENGERS" | "NO_DATA_AVAILABLE" | "NOT_BOARDABLE" | null | undefined;
20
- }>;
21
- export type GtfsRtCarriageDetails = z.infer<typeof GtfsRtCarriageDetailsSchema>;
@@ -1,11 +0,0 @@
1
- /* * */
2
- import { GtfsRtOccupancyStatusSchema } from './occupancy-status.js';
3
- import { z } from 'zod';
4
- /* * */
5
- export const GtfsRtCarriageDetailsSchema = z.object({
6
- carriage_sequence: z.number(),
7
- id: z.string().nullish(),
8
- label: z.string().nullish(),
9
- occupancy_percentage: z.number().nullish(),
10
- occupancy_status: GtfsRtOccupancyStatusSchema.nullish(),
11
- });
@@ -1,10 +0,0 @@
1
- import z from 'zod';
2
- export declare const GtfsRtCauseValues: readonly ["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "UNKNOWN_CAUSE", "WEATHER"];
3
- export declare const GtfsRtCauseSchema: z.ZodEnum<["ACCIDENT", "CONSTRUCTION", "DEMONSTRATION", "HOLIDAY", "MAINTENANCE", "MEDICAL_EMERGENCY", "OTHER_CAUSE", "POLICE_ACTIVITY", "STRIKE", "TECHNICAL_ISSUE", "UNKNOWN_CAUSE", "WEATHER"]>;
4
- /**
5
- * The GTFS-RT standard cause types.
6
- * Use this type to represent the standard causes of a service alert
7
- * in GTFS-RT feeds, either when importing from standard GTFS-RT data into
8
- * the application or when exporting from the application to GTFS-RT format.
9
- */
10
- export type GtfsRtCause = z.infer<typeof GtfsRtCauseSchema>;
@@ -1,18 +0,0 @@
1
- /* * */
2
- import z from 'zod';
3
- /* * */
4
- export const GtfsRtCauseValues = [
5
- 'ACCIDENT',
6
- 'CONSTRUCTION',
7
- 'DEMONSTRATION',
8
- 'HOLIDAY',
9
- 'MAINTENANCE',
10
- 'MEDICAL_EMERGENCY',
11
- 'OTHER_CAUSE',
12
- 'POLICE_ACTIVITY',
13
- 'STRIKE',
14
- 'TECHNICAL_ISSUE',
15
- 'UNKNOWN_CAUSE',
16
- 'WEATHER',
17
- ];
18
- export const GtfsRtCauseSchema = z.enum(GtfsRtCauseValues);
@@ -1,4 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const GtfsRtCongestionLevelValues: readonly ["UNKNOWN_CONGESTION_LEVEL", "RUNNING_SMOOTHLY", "STOP_AND_GO", "CONGESTION", "SEVERE_CONGESTION"];
3
- export declare const GtfsRtCongestionLevelSchema: z.ZodEnum<["UNKNOWN_CONGESTION_LEVEL", "RUNNING_SMOOTHLY", "STOP_AND_GO", "CONGESTION", "SEVERE_CONGESTION"]>;
4
- export type GtfsRtCongestionLevel = z.infer<typeof GtfsRtCongestionLevelSchema>;
@@ -1,11 +0,0 @@
1
- /* * */
2
- import { z } from 'zod';
3
- /* * */
4
- export const GtfsRtCongestionLevelValues = [
5
- 'UNKNOWN_CONGESTION_LEVEL',
6
- 'RUNNING_SMOOTHLY',
7
- 'STOP_AND_GO',
8
- 'CONGESTION',
9
- 'SEVERE_CONGESTION',
10
- ];
11
- export const GtfsRtCongestionLevelSchema = z.enum(GtfsRtCongestionLevelValues);
@@ -1,10 +0,0 @@
1
- import z from 'zod';
2
- export declare const GtfsRtEffectValues: readonly ["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_EFFECT", "NO_SERVICE", "OTHER_EFFECT", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "UNKNOWN_EFFECT"];
3
- export declare const GtfsRtEffectSchema: z.ZodEnum<["ACCESSIBILITY_ISSUE", "ADDITIONAL_SERVICE", "DETOUR", "MODIFIED_SERVICE", "NO_EFFECT", "NO_SERVICE", "OTHER_EFFECT", "REDUCED_SERVICE", "SIGNIFICANT_DELAYS", "STOP_MOVED", "UNKNOWN_EFFECT"]>;
4
- /**
5
- * The GTFS-RT standard effect types.
6
- * Use this type to represent the standard effects of a service alert
7
- * in GTFS-RT feeds, either when importing from standard GTFS-RT data into
8
- * the application or when exporting from the application to GTFS-RT format.
9
- */
10
- export type GtfsRtEffect = z.infer<typeof GtfsRtEffectSchema>;
@@ -1,17 +0,0 @@
1
- /* * */
2
- import z from 'zod';
3
- /* * */
4
- export const GtfsRtEffectValues = [
5
- 'ACCESSIBILITY_ISSUE',
6
- 'ADDITIONAL_SERVICE',
7
- 'DETOUR',
8
- 'MODIFIED_SERVICE',
9
- 'NO_EFFECT',
10
- 'NO_SERVICE',
11
- 'OTHER_EFFECT',
12
- 'REDUCED_SERVICE',
13
- 'SIGNIFICANT_DELAYS',
14
- 'STOP_MOVED',
15
- 'UNKNOWN_EFFECT',
16
- ];
17
- export const GtfsRtEffectSchema = z.enum(GtfsRtEffectValues);
@@ -1,68 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const GtfsRtEntitySelectorSchema: z.ZodObject<{
3
- agency_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
- direction_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
- route_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- route_type: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
7
- stop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- trip: z.ZodOptional<z.ZodNullable<z.ZodObject<{
9
- direction_id: z.ZodAny;
10
- modified_trip: z.ZodAny;
11
- route_id: z.ZodString;
12
- schedule_relationship: z.ZodAny;
13
- start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-shared").OperationalDate, string>;
14
- start_time: z.ZodAny;
15
- trip_id: z.ZodString;
16
- }, "strip", z.ZodTypeAny, {
17
- route_id: string;
18
- trip_id: string;
19
- start_date: string & {
20
- __brand: "OperationalDate";
21
- };
22
- start_time?: any;
23
- direction_id?: any;
24
- modified_trip?: any;
25
- schedule_relationship?: any;
26
- }, {
27
- route_id: string;
28
- trip_id: string;
29
- start_date: string;
30
- start_time?: any;
31
- direction_id?: any;
32
- modified_trip?: any;
33
- schedule_relationship?: any;
34
- }>>>;
35
- }, "strip", z.ZodTypeAny, {
36
- agency_id?: string | null | undefined;
37
- route_id?: string | null | undefined;
38
- stop_id?: string | null | undefined;
39
- route_type?: number | null | undefined;
40
- direction_id?: number | null | undefined;
41
- trip?: {
42
- route_id: string;
43
- trip_id: string;
44
- start_date: string & {
45
- __brand: "OperationalDate";
46
- };
47
- start_time?: any;
48
- direction_id?: any;
49
- modified_trip?: any;
50
- schedule_relationship?: any;
51
- } | null | undefined;
52
- }, {
53
- agency_id?: string | null | undefined;
54
- route_id?: string | null | undefined;
55
- stop_id?: string | null | undefined;
56
- route_type?: number | null | undefined;
57
- direction_id?: number | null | undefined;
58
- trip?: {
59
- route_id: string;
60
- trip_id: string;
61
- start_date: string;
62
- start_time?: any;
63
- direction_id?: any;
64
- modified_trip?: any;
65
- schedule_relationship?: any;
66
- } | null | undefined;
67
- }>;
68
- export type GtfsRtEntitySelector = z.infer<typeof GtfsRtEntitySelectorSchema>;
@@ -1,12 +0,0 @@
1
- /* * */
2
- import { GtfsRtTripDescriptorSchema } from './trip-descriptor.js';
3
- import { z } from 'zod';
4
- /* * */
5
- export const GtfsRtEntitySelectorSchema = z.object({
6
- agency_id: z.string().nullish(),
7
- direction_id: z.number().nullish(),
8
- route_id: z.string().nullish(),
9
- route_type: z.number().nullish(),
10
- stop_id: z.string().nullish(),
11
- trip: GtfsRtTripDescriptorSchema.nullish(),
12
- });