@tmlmobilidade/go-types-gtfs-rt 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 (77) hide show
  1. package/dist/alert/alert-cause.d.ts +10 -0
  2. package/dist/alert/alert-cause.js +18 -0
  3. package/dist/alert/alert-effect.d.ts +10 -0
  4. package/dist/alert/alert-effect.js +17 -0
  5. package/dist/alert/alert.d.ts +347 -0
  6. package/dist/alert/alert.js +24 -0
  7. package/dist/alert/entity-selector.d.ts +68 -0
  8. package/dist/alert/entity-selector.js +12 -0
  9. package/dist/alert/index.d.ts +10 -0
  10. package/dist/alert/index.js +10 -0
  11. package/dist/alert/localized-image.d.ts +15 -0
  12. package/dist/alert/localized-image.js +8 -0
  13. package/dist/alert/severity-level.d.ts +4 -0
  14. package/dist/alert/severity-level.js +10 -0
  15. package/dist/alert/time-range.d.ts +12 -0
  16. package/dist/alert/time-range.js +7 -0
  17. package/dist/alert/translated-image.d.ts +29 -0
  18. package/dist/alert/translated-image.js +7 -0
  19. package/dist/alert/translated-string.d.ts +24 -0
  20. package/dist/alert/translated-string.js +7 -0
  21. package/dist/alert/translation.d.ts +12 -0
  22. package/dist/alert/translation.js +7 -0
  23. package/dist/feed/feed-entity.d.ts +1065 -0
  24. package/dist/feed/feed-entity.js +15 -0
  25. package/dist/feed/feed-header.d.ts +18 -0
  26. package/dist/feed/feed-header.js +9 -0
  27. package/dist/feed/feed-message.d.ts +1405 -0
  28. package/dist/feed/feed-message.js +9 -0
  29. package/dist/feed/index.d.ts +3 -0
  30. package/dist/feed/index.js +3 -0
  31. package/dist/index.d.ts +8 -0
  32. package/dist/index.js +8 -0
  33. package/dist/shape/index.d.ts +1 -0
  34. package/dist/shape/index.js +1 -0
  35. package/dist/shared/drop-off-pickup-type.d.ts +4 -0
  36. package/dist/shared/drop-off-pickup-type.js +10 -0
  37. package/dist/shared/index.d.ts +4 -0
  38. package/dist/shared/index.js +4 -0
  39. package/dist/shared/occupancy-status.d.ts +4 -0
  40. package/dist/shared/occupancy-status.js +15 -0
  41. package/dist/shared/schedule-relationship.d.ts +4 -0
  42. package/dist/shared/schedule-relationship.js +14 -0
  43. package/dist/shared/trip-descriptor.d.ts +29 -0
  44. package/dist/shared/trip-descriptor.js +14 -0
  45. package/dist/shared/vehicle-descriptor.d.ts +18 -0
  46. package/dist/shared/vehicle-descriptor.js +10 -0
  47. package/dist/shared/wheelchair-accessible.d.ts +4 -0
  48. package/dist/shared/wheelchair-accessible.js +10 -0
  49. package/dist/stop/index.d.ts +1 -0
  50. package/dist/stop/index.js +1 -0
  51. package/dist/trip-modifications/index.d.ts +1 -0
  52. package/dist/trip-modifications/index.js +1 -0
  53. package/dist/trip-update/index.d.ts +3 -0
  54. package/dist/trip-update/index.js +3 -0
  55. package/dist/trip-update/stop-time-event.d.ts +12 -0
  56. package/dist/trip-update/stop-time-event.js +9 -0
  57. package/dist/trip-update/stop-time-properties.d.ts +18 -0
  58. package/dist/trip-update/stop-time-properties.js +10 -0
  59. package/dist/trip-update/stop-time-update.d.ts +82 -0
  60. package/dist/trip-update/stop-time-update.js +16 -0
  61. package/dist/trip-update/trip-properties.d.ts +24 -0
  62. package/dist/trip-update/trip-properties.js +12 -0
  63. package/dist/trip-update/trip-update.d.ts +245 -0
  64. package/dist/trip-update/trip-update.js +15 -0
  65. package/dist/vehicle-position/carriage-details.d.ts +21 -0
  66. package/dist/vehicle-position/carriage-details.js +11 -0
  67. package/dist/vehicle-position/congestion-level.d.ts +4 -0
  68. package/dist/vehicle-position/congestion-level.js +11 -0
  69. package/dist/vehicle-position/index.d.ts +5 -0
  70. package/dist/vehicle-position/index.js +5 -0
  71. package/dist/vehicle-position/position.d.ts +21 -0
  72. package/dist/vehicle-position/position.js +10 -0
  73. package/dist/vehicle-position/vehicle-position.d.ts +168 -0
  74. package/dist/vehicle-position/vehicle-position.js +23 -0
  75. package/dist/vehicle-position/vehicle-stop-status.d.ts +4 -0
  76. package/dist/vehicle-position/vehicle-stop-status.js +9 -0
  77. package/package.json +51 -0
@@ -0,0 +1,10 @@
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>;
@@ -0,0 +1,18 @@
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);
@@ -0,0 +1,10 @@
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>;
@@ -0,0 +1,17 @@
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);
@@ -0,0 +1,347 @@
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
+ language: string;
66
+ media_type: string;
67
+ url: string;
68
+ }, {
69
+ language: string;
70
+ media_type: string;
71
+ url: string;
72
+ }>, "many">;
73
+ }, "strip", z.ZodTypeAny, {
74
+ localized_image: {
75
+ language: string;
76
+ media_type: string;
77
+ url: string;
78
+ }[];
79
+ }, {
80
+ localized_image: {
81
+ language: string;
82
+ media_type: string;
83
+ url: 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.ZodEnum<["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"]>;
98
+ start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsDate, string>;
99
+ start_time: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsTime, string>>>;
100
+ trip_id: z.ZodString;
101
+ }, "strip", z.ZodTypeAny, {
102
+ route_id: string;
103
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
104
+ start_date: string & {
105
+ __brand: "GtfsDate";
106
+ };
107
+ trip_id: string;
108
+ direction_id?: any;
109
+ modified_trip?: any;
110
+ start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
111
+ }, {
112
+ route_id: string;
113
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
114
+ start_date: string;
115
+ trip_id: string;
116
+ direction_id?: any;
117
+ modified_trip?: any;
118
+ start_time?: string | null | undefined;
119
+ }>>>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ direction_id?: number | null | undefined;
122
+ route_id?: string | null | undefined;
123
+ agency_id?: string | null | undefined;
124
+ route_type?: number | null | undefined;
125
+ stop_id?: string | null | undefined;
126
+ trip?: {
127
+ route_id: string;
128
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
129
+ start_date: string & {
130
+ __brand: "GtfsDate";
131
+ };
132
+ trip_id: string;
133
+ direction_id?: any;
134
+ modified_trip?: any;
135
+ start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
136
+ } | null | undefined;
137
+ }, {
138
+ direction_id?: number | null | undefined;
139
+ route_id?: string | null | undefined;
140
+ agency_id?: string | null | undefined;
141
+ route_type?: number | null | undefined;
142
+ stop_id?: string | null | undefined;
143
+ trip?: {
144
+ route_id: string;
145
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
146
+ start_date: string;
147
+ trip_id: string;
148
+ direction_id?: any;
149
+ modified_trip?: any;
150
+ start_time?: string | null | undefined;
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
+ direction_id?: number | null | undefined;
235
+ route_id?: string | null | undefined;
236
+ agency_id?: string | null | undefined;
237
+ route_type?: number | null | undefined;
238
+ stop_id?: string | null | undefined;
239
+ trip?: {
240
+ route_id: string;
241
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
242
+ start_date: string & {
243
+ __brand: "GtfsDate";
244
+ };
245
+ trip_id: string;
246
+ direction_id?: any;
247
+ modified_trip?: any;
248
+ start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
249
+ } | null | undefined;
250
+ }[];
251
+ url?: {
252
+ translation: {
253
+ language: string;
254
+ text: string;
255
+ }[];
256
+ } | null | undefined;
257
+ active_period?: {
258
+ end?: number | null | undefined;
259
+ start?: number | null | undefined;
260
+ }[] | null | undefined;
261
+ cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER" | null | undefined;
262
+ effect?: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT" | null | undefined;
263
+ image?: {
264
+ localized_image: {
265
+ language: string;
266
+ media_type: string;
267
+ url: 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
+ direction_id?: number | null | undefined;
299
+ route_id?: string | null | undefined;
300
+ agency_id?: string | null | undefined;
301
+ route_type?: number | null | undefined;
302
+ stop_id?: string | null | undefined;
303
+ trip?: {
304
+ route_id: string;
305
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
306
+ start_date: string;
307
+ trip_id: string;
308
+ direction_id?: any;
309
+ modified_trip?: any;
310
+ start_time?: string | null | undefined;
311
+ } | null | undefined;
312
+ }[];
313
+ url?: {
314
+ translation: {
315
+ language: string;
316
+ text: string;
317
+ }[];
318
+ } | null | undefined;
319
+ active_period?: {
320
+ end?: number | null | undefined;
321
+ start?: number | null | undefined;
322
+ }[] | null | undefined;
323
+ cause?: "ACCIDENT" | "CONSTRUCTION" | "DEMONSTRATION" | "HOLIDAY" | "MAINTENANCE" | "MEDICAL_EMERGENCY" | "OTHER_CAUSE" | "POLICE_ACTIVITY" | "STRIKE" | "TECHNICAL_ISSUE" | "UNKNOWN_CAUSE" | "WEATHER" | null | undefined;
324
+ effect?: "ACCESSIBILITY_ISSUE" | "ADDITIONAL_SERVICE" | "DETOUR" | "MODIFIED_SERVICE" | "NO_EFFECT" | "NO_SERVICE" | "OTHER_EFFECT" | "REDUCED_SERVICE" | "SIGNIFICANT_DELAYS" | "STOP_MOVED" | "UNKNOWN_EFFECT" | null | undefined;
325
+ image?: {
326
+ localized_image: {
327
+ language: string;
328
+ media_type: string;
329
+ url: 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>;
@@ -0,0 +1,24 @@
1
+ /* * */
2
+ import { GtfsRtCauseSchema } from './alert-cause.js';
3
+ import { GtfsRtEffectSchema } from './alert-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
+ });
@@ -0,0 +1,68 @@
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.ZodEnum<["SCHEDULED", "CANCELED", "REPLACEMENT", "DUPLICATED", "NEW", "DELETED"]>;
13
+ start_date: z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsDate, string>;
14
+ start_time: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, import("@tmlmobilidade/go-types-gtfs").GtfsTime, string>>>;
15
+ trip_id: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ route_id: string;
18
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
19
+ start_date: string & {
20
+ __brand: "GtfsDate";
21
+ };
22
+ trip_id: string;
23
+ direction_id?: any;
24
+ modified_trip?: any;
25
+ start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
26
+ }, {
27
+ route_id: string;
28
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
29
+ start_date: string;
30
+ trip_id: string;
31
+ direction_id?: any;
32
+ modified_trip?: any;
33
+ start_time?: string | null | undefined;
34
+ }>>>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ direction_id?: number | null | undefined;
37
+ route_id?: string | null | undefined;
38
+ agency_id?: string | null | undefined;
39
+ route_type?: number | null | undefined;
40
+ stop_id?: string | null | undefined;
41
+ trip?: {
42
+ route_id: string;
43
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
44
+ start_date: string & {
45
+ __brand: "GtfsDate";
46
+ };
47
+ trip_id: string;
48
+ direction_id?: any;
49
+ modified_trip?: any;
50
+ start_time?: import("@tmlmobilidade/go-types-gtfs").GtfsTime | null | undefined;
51
+ } | null | undefined;
52
+ }, {
53
+ direction_id?: number | null | undefined;
54
+ route_id?: string | null | undefined;
55
+ agency_id?: string | null | undefined;
56
+ route_type?: number | null | undefined;
57
+ stop_id?: string | null | undefined;
58
+ trip?: {
59
+ route_id: string;
60
+ schedule_relationship: "SCHEDULED" | "CANCELED" | "REPLACEMENT" | "DUPLICATED" | "NEW" | "DELETED";
61
+ start_date: string;
62
+ trip_id: string;
63
+ direction_id?: any;
64
+ modified_trip?: any;
65
+ start_time?: string | null | undefined;
66
+ } | null | undefined;
67
+ }>;
68
+ export type GtfsRtEntitySelector = z.infer<typeof GtfsRtEntitySelectorSchema>;
@@ -0,0 +1,12 @@
1
+ /* * */
2
+ import { GtfsRtTripDescriptorSchema } from '../shared/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
+ });
@@ -0,0 +1,10 @@
1
+ export * from './alert-cause.js';
2
+ export * from './alert-effect.js';
3
+ export * from './alert.js';
4
+ export * from './entity-selector.js';
5
+ export * from './localized-image.js';
6
+ export * from './severity-level.js';
7
+ export * from './time-range.js';
8
+ export * from './translated-image.js';
9
+ export * from './translated-string.js';
10
+ export * from './translation.js';
@@ -0,0 +1,10 @@
1
+ export * from './alert-cause.js';
2
+ export * from './alert-effect.js';
3
+ export * from './alert.js';
4
+ export * from './entity-selector.js';
5
+ export * from './localized-image.js';
6
+ export * from './severity-level.js';
7
+ export * from './time-range.js';
8
+ export * from './translated-image.js';
9
+ export * from './translated-string.js';
10
+ export * from './translation.js';
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export declare const GtfsRtLocalizedImageSchema: z.ZodObject<{
3
+ language: z.ZodString;
4
+ media_type: z.ZodString;
5
+ url: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ language: string;
8
+ media_type: string;
9
+ url: string;
10
+ }, {
11
+ language: string;
12
+ media_type: string;
13
+ url: string;
14
+ }>;
15
+ export type GtfsRtLocalizedImage = z.infer<typeof GtfsRtLocalizedImageSchema>;
@@ -0,0 +1,8 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const GtfsRtLocalizedImageSchema = z.object({
5
+ language: z.string(),
6
+ media_type: z.string(),
7
+ url: z.string(),
8
+ });
@@ -0,0 +1,4 @@
1
+ import z from 'zod';
2
+ export declare const GtfsRtSeverityLevelValues: readonly ["UNKNOWN_SEVERITY", "INFO", "WARNING", "SEVERE"];
3
+ export declare const GtfsRtSeverityLevelSchema: z.ZodEnum<["UNKNOWN_SEVERITY", "INFO", "WARNING", "SEVERE"]>;
4
+ export type GtfsRtSeverityLevel = z.infer<typeof GtfsRtSeverityLevelSchema>;
@@ -0,0 +1,10 @@
1
+ /* * */
2
+ import z from 'zod';
3
+ /* * */
4
+ export const GtfsRtSeverityLevelValues = [
5
+ 'UNKNOWN_SEVERITY',
6
+ 'INFO',
7
+ 'WARNING',
8
+ 'SEVERE',
9
+ ];
10
+ export const GtfsRtSeverityLevelSchema = z.enum(GtfsRtSeverityLevelValues);
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ export declare const GtfsRtTimeRangeSchema: z.ZodObject<{
3
+ end: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
4
+ start: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ end?: number | null | undefined;
7
+ start?: number | null | undefined;
8
+ }, {
9
+ end?: number | null | undefined;
10
+ start?: number | null | undefined;
11
+ }>;
12
+ export type GtfsRtTimeRange = z.infer<typeof GtfsRtTimeRangeSchema>;
@@ -0,0 +1,7 @@
1
+ /* * */
2
+ import { z } from 'zod';
3
+ /* * */
4
+ export const GtfsRtTimeRangeSchema = z.object({
5
+ end: z.number().nullish(),
6
+ start: z.number().nullish(),
7
+ });
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export declare const GtfsRtTranslatedImageSchema: z.ZodObject<{
3
+ localized_image: z.ZodArray<z.ZodObject<{
4
+ language: z.ZodString;
5
+ media_type: z.ZodString;
6
+ url: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ language: string;
9
+ media_type: string;
10
+ url: string;
11
+ }, {
12
+ language: string;
13
+ media_type: string;
14
+ url: string;
15
+ }>, "many">;
16
+ }, "strip", z.ZodTypeAny, {
17
+ localized_image: {
18
+ language: string;
19
+ media_type: string;
20
+ url: string;
21
+ }[];
22
+ }, {
23
+ localized_image: {
24
+ language: string;
25
+ media_type: string;
26
+ url: string;
27
+ }[];
28
+ }>;
29
+ export type GtfsRtTranslatedImage = z.infer<typeof GtfsRtTranslatedImageSchema>;
@@ -0,0 +1,7 @@
1
+ /* * */
2
+ import { GtfsRtLocalizedImageSchema } from './localized-image.js';
3
+ import { z } from 'zod';
4
+ /* * */
5
+ export const GtfsRtTranslatedImageSchema = z.object({
6
+ localized_image: z.array(GtfsRtLocalizedImageSchema).min(1),
7
+ });
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare const GtfsRtTranslatedStringSchema: z.ZodObject<{
3
+ translation: z.ZodArray<z.ZodObject<{
4
+ language: z.ZodString;
5
+ text: z.ZodString;
6
+ }, "strip", z.ZodTypeAny, {
7
+ language: string;
8
+ text: string;
9
+ }, {
10
+ language: string;
11
+ text: string;
12
+ }>, "many">;
13
+ }, "strip", z.ZodTypeAny, {
14
+ translation: {
15
+ language: string;
16
+ text: string;
17
+ }[];
18
+ }, {
19
+ translation: {
20
+ language: string;
21
+ text: string;
22
+ }[];
23
+ }>;
24
+ export type GtfsRtTranslatedString = z.infer<typeof GtfsRtTranslatedStringSchema>;