zet-api 1.0.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.
@@ -0,0 +1,893 @@
1
+ import { DirectionEnum, RouteTypeEnum, TripStatusEnum, NewsTypeEnum } from './constants';
2
+ import { z } from 'zod';
3
+ export type Position = z.infer<typeof PositionSchema>;
4
+ export declare const PositionSchema: z.ZodObject<{
5
+ latitude: z.ZodNumber;
6
+ longitude: z.ZodNumber;
7
+ }, "strip", z.ZodTypeAny, {
8
+ latitude: number;
9
+ longitude: number;
10
+ }, {
11
+ latitude: number;
12
+ longitude: number;
13
+ }>;
14
+ export type Vehicle = z.infer<typeof VehicleSchema>;
15
+ export declare const VehicleSchema: z.ZodObject<{
16
+ id: z.ZodString;
17
+ isForDisabledPeople: z.ZodNullable<z.ZodBoolean>;
18
+ vehicleTypeId: z.ZodNullable<z.ZodNumber>;
19
+ position: z.ZodOptional<z.ZodObject<{
20
+ latitude: z.ZodNumber;
21
+ longitude: z.ZodNumber;
22
+ }, "strip", z.ZodTypeAny, {
23
+ latitude: number;
24
+ longitude: number;
25
+ }, {
26
+ latitude: number;
27
+ longitude: number;
28
+ }>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ id: string;
31
+ isForDisabledPeople: boolean | null;
32
+ vehicleTypeId: number | null;
33
+ position?: {
34
+ latitude: number;
35
+ longitude: number;
36
+ } | undefined;
37
+ }, {
38
+ id: string;
39
+ isForDisabledPeople: boolean | null;
40
+ vehicleTypeId: number | null;
41
+ position?: {
42
+ latitude: number;
43
+ longitude: number;
44
+ } | undefined;
45
+ }>;
46
+ export type TripHeadsign = z.infer<typeof TripHeadsignSchema>;
47
+ export declare const TripHeadsignSchema: z.ZodObject<{
48
+ routeCode: z.ZodString;
49
+ tripHeadsigns: z.ZodArray<z.ZodString, "many">;
50
+ }, "strip", z.ZodTypeAny, {
51
+ routeCode: string;
52
+ tripHeadsigns: string[];
53
+ }, {
54
+ routeCode: string;
55
+ tripHeadsigns: string[];
56
+ }>;
57
+ export type Route = z.infer<typeof RouteSchema>;
58
+ export declare const RouteSchema: z.ZodObject<{
59
+ id: z.ZodNumber;
60
+ shortName: z.ZodString;
61
+ longName: z.ZodString;
62
+ routeType: z.ZodNativeEnum<typeof RouteTypeEnum>;
63
+ departureHeadsign: z.ZodNullable<z.ZodString>;
64
+ destinationHeadsign: z.ZodString;
65
+ normalizedSearchName: z.ZodString;
66
+ }, "strip", z.ZodTypeAny, {
67
+ id: number;
68
+ shortName: string;
69
+ longName: string;
70
+ routeType: RouteTypeEnum;
71
+ departureHeadsign: string | null;
72
+ destinationHeadsign: string;
73
+ normalizedSearchName: string;
74
+ }, {
75
+ id: number;
76
+ shortName: string;
77
+ longName: string;
78
+ routeType: RouteTypeEnum;
79
+ departureHeadsign: string | null;
80
+ destinationHeadsign: string;
81
+ normalizedSearchName: string;
82
+ }>;
83
+ export type Trip = z.infer<typeof TripSchema>;
84
+ export declare const TripSchema: z.ZodObject<{
85
+ id: z.ZodString;
86
+ direction: z.ZodNativeEnum<typeof DirectionEnum>;
87
+ headsign: z.ZodString;
88
+ departureDateTime: z.ZodString;
89
+ arrivalDateTime: z.ZodString;
90
+ hasLiveTracking: z.ZodBoolean;
91
+ tripStatus: z.ZodNativeEnum<typeof TripStatusEnum>;
92
+ vehicles: z.ZodArray<z.ZodObject<{
93
+ id: z.ZodString;
94
+ isForDisabledPeople: z.ZodNullable<z.ZodBoolean>;
95
+ vehicleTypeId: z.ZodNullable<z.ZodNumber>;
96
+ position: z.ZodOptional<z.ZodObject<{
97
+ latitude: z.ZodNumber;
98
+ longitude: z.ZodNumber;
99
+ }, "strip", z.ZodTypeAny, {
100
+ latitude: number;
101
+ longitude: number;
102
+ }, {
103
+ latitude: number;
104
+ longitude: number;
105
+ }>>;
106
+ }, "strip", z.ZodTypeAny, {
107
+ id: string;
108
+ isForDisabledPeople: boolean | null;
109
+ vehicleTypeId: number | null;
110
+ position?: {
111
+ latitude: number;
112
+ longitude: number;
113
+ } | undefined;
114
+ }, {
115
+ id: string;
116
+ isForDisabledPeople: boolean | null;
117
+ vehicleTypeId: number | null;
118
+ position?: {
119
+ latitude: number;
120
+ longitude: number;
121
+ } | undefined;
122
+ }>, "many">;
123
+ shapeId: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ id: string;
126
+ direction: DirectionEnum;
127
+ headsign: string;
128
+ departureDateTime: string;
129
+ arrivalDateTime: string;
130
+ hasLiveTracking: boolean;
131
+ tripStatus: TripStatusEnum;
132
+ vehicles: {
133
+ id: string;
134
+ isForDisabledPeople: boolean | null;
135
+ vehicleTypeId: number | null;
136
+ position?: {
137
+ latitude: number;
138
+ longitude: number;
139
+ } | undefined;
140
+ }[];
141
+ shapeId: string;
142
+ }, {
143
+ id: string;
144
+ direction: DirectionEnum;
145
+ headsign: string;
146
+ departureDateTime: string;
147
+ arrivalDateTime: string;
148
+ hasLiveTracking: boolean;
149
+ tripStatus: TripStatusEnum;
150
+ vehicles: {
151
+ id: string;
152
+ isForDisabledPeople: boolean | null;
153
+ vehicleTypeId: number | null;
154
+ position?: {
155
+ latitude: number;
156
+ longitude: number;
157
+ } | undefined;
158
+ }[];
159
+ shapeId: string;
160
+ }>;
161
+ export type RouteTrip = z.infer<typeof RouteTripSchema>;
162
+ export declare const RouteTripSchema: z.ZodObject<{
163
+ id: z.ZodString;
164
+ direction: z.ZodNativeEnum<typeof DirectionEnum>;
165
+ headsign: z.ZodString;
166
+ departureDateTime: z.ZodString;
167
+ arrivalDateTime: z.ZodString;
168
+ hasLiveTracking: z.ZodBoolean;
169
+ tripStatus: z.ZodNativeEnum<typeof TripStatusEnum>;
170
+ vehicles: z.ZodArray<z.ZodObject<{
171
+ id: z.ZodString;
172
+ isForDisabledPeople: z.ZodNullable<z.ZodBoolean>;
173
+ vehicleTypeId: z.ZodNullable<z.ZodNumber>;
174
+ position: z.ZodOptional<z.ZodObject<{
175
+ latitude: z.ZodNumber;
176
+ longitude: z.ZodNumber;
177
+ }, "strip", z.ZodTypeAny, {
178
+ latitude: number;
179
+ longitude: number;
180
+ }, {
181
+ latitude: number;
182
+ longitude: number;
183
+ }>>;
184
+ }, "strip", z.ZodTypeAny, {
185
+ id: string;
186
+ isForDisabledPeople: boolean | null;
187
+ vehicleTypeId: number | null;
188
+ position?: {
189
+ latitude: number;
190
+ longitude: number;
191
+ } | undefined;
192
+ }, {
193
+ id: string;
194
+ isForDisabledPeople: boolean | null;
195
+ vehicleTypeId: number | null;
196
+ position?: {
197
+ latitude: number;
198
+ longitude: number;
199
+ } | undefined;
200
+ }>, "many">;
201
+ shapeId: z.ZodString;
202
+ }, "strip", z.ZodTypeAny, {
203
+ id: string;
204
+ direction: DirectionEnum;
205
+ headsign: string;
206
+ departureDateTime: string;
207
+ arrivalDateTime: string;
208
+ hasLiveTracking: boolean;
209
+ tripStatus: TripStatusEnum;
210
+ vehicles: {
211
+ id: string;
212
+ isForDisabledPeople: boolean | null;
213
+ vehicleTypeId: number | null;
214
+ position?: {
215
+ latitude: number;
216
+ longitude: number;
217
+ } | undefined;
218
+ }[];
219
+ shapeId: string;
220
+ }, {
221
+ id: string;
222
+ direction: DirectionEnum;
223
+ headsign: string;
224
+ departureDateTime: string;
225
+ arrivalDateTime: string;
226
+ hasLiveTracking: boolean;
227
+ tripStatus: TripStatusEnum;
228
+ vehicles: {
229
+ id: string;
230
+ isForDisabledPeople: boolean | null;
231
+ vehicleTypeId: number | null;
232
+ position?: {
233
+ latitude: number;
234
+ longitude: number;
235
+ } | undefined;
236
+ }[];
237
+ shapeId: string;
238
+ }>;
239
+ export type Stop = z.infer<typeof StopSchema>;
240
+ export declare const StopSchema: z.ZodObject<{
241
+ id: z.ZodString;
242
+ name: z.ZodString;
243
+ routeType: z.ZodNativeEnum<typeof RouteTypeEnum>;
244
+ trips: z.ZodArray<z.ZodObject<{
245
+ routeCode: z.ZodString;
246
+ tripHeadsigns: z.ZodArray<z.ZodString, "many">;
247
+ }, "strip", z.ZodTypeAny, {
248
+ routeCode: string;
249
+ tripHeadsigns: string[];
250
+ }, {
251
+ routeCode: string;
252
+ tripHeadsigns: string[];
253
+ }>, "many">;
254
+ stopLat: z.ZodNumber;
255
+ stopLong: z.ZodNumber;
256
+ parentStopId: z.ZodOptional<z.ZodString>;
257
+ normalizedSearchName: z.ZodString;
258
+ isForDisabledPeople: z.ZodOptional<z.ZodBoolean>;
259
+ projectNo: z.ZodOptional<z.ZodString>;
260
+ }, "strip", z.ZodTypeAny, {
261
+ id: string;
262
+ routeType: RouteTypeEnum;
263
+ normalizedSearchName: string;
264
+ name: string;
265
+ trips: {
266
+ routeCode: string;
267
+ tripHeadsigns: string[];
268
+ }[];
269
+ stopLat: number;
270
+ stopLong: number;
271
+ isForDisabledPeople?: boolean | undefined;
272
+ parentStopId?: string | undefined;
273
+ projectNo?: string | undefined;
274
+ }, {
275
+ id: string;
276
+ routeType: RouteTypeEnum;
277
+ normalizedSearchName: string;
278
+ name: string;
279
+ trips: {
280
+ routeCode: string;
281
+ tripHeadsigns: string[];
282
+ }[];
283
+ stopLat: number;
284
+ stopLong: number;
285
+ isForDisabledPeople?: boolean | undefined;
286
+ parentStopId?: string | undefined;
287
+ projectNo?: string | undefined;
288
+ }>;
289
+ export type TripStopTime = z.infer<typeof TripStopTimeSchema>;
290
+ export declare const TripStopTimeSchema: z.ZodObject<{
291
+ id: z.ZodString;
292
+ stopName: z.ZodString;
293
+ stopSequence: z.ZodNumber;
294
+ expectedArrivalDateTime: z.ZodString;
295
+ isArrived: z.ZodBoolean;
296
+ isArrivedPrediction: z.ZodBoolean;
297
+ stopLat: z.ZodNumber;
298
+ stopLong: z.ZodNumber;
299
+ trip: z.ZodObject<{
300
+ id: z.ZodString;
301
+ direction: z.ZodNativeEnum<typeof DirectionEnum>;
302
+ headsign: z.ZodString;
303
+ departureDateTime: z.ZodString;
304
+ arrivalDateTime: z.ZodString;
305
+ hasLiveTracking: z.ZodBoolean;
306
+ tripStatus: z.ZodNativeEnum<typeof TripStatusEnum>;
307
+ vehicles: z.ZodArray<z.ZodObject<{
308
+ id: z.ZodString;
309
+ isForDisabledPeople: z.ZodNullable<z.ZodBoolean>;
310
+ vehicleTypeId: z.ZodNullable<z.ZodNumber>;
311
+ position: z.ZodOptional<z.ZodObject<{
312
+ latitude: z.ZodNumber;
313
+ longitude: z.ZodNumber;
314
+ }, "strip", z.ZodTypeAny, {
315
+ latitude: number;
316
+ longitude: number;
317
+ }, {
318
+ latitude: number;
319
+ longitude: number;
320
+ }>>;
321
+ }, "strip", z.ZodTypeAny, {
322
+ id: string;
323
+ isForDisabledPeople: boolean | null;
324
+ vehicleTypeId: number | null;
325
+ position?: {
326
+ latitude: number;
327
+ longitude: number;
328
+ } | undefined;
329
+ }, {
330
+ id: string;
331
+ isForDisabledPeople: boolean | null;
332
+ vehicleTypeId: number | null;
333
+ position?: {
334
+ latitude: number;
335
+ longitude: number;
336
+ } | undefined;
337
+ }>, "many">;
338
+ shapeId: z.ZodString;
339
+ }, "strip", z.ZodTypeAny, {
340
+ id: string;
341
+ direction: DirectionEnum;
342
+ headsign: string;
343
+ departureDateTime: string;
344
+ arrivalDateTime: string;
345
+ hasLiveTracking: boolean;
346
+ tripStatus: TripStatusEnum;
347
+ vehicles: {
348
+ id: string;
349
+ isForDisabledPeople: boolean | null;
350
+ vehicleTypeId: number | null;
351
+ position?: {
352
+ latitude: number;
353
+ longitude: number;
354
+ } | undefined;
355
+ }[];
356
+ shapeId: string;
357
+ }, {
358
+ id: string;
359
+ direction: DirectionEnum;
360
+ headsign: string;
361
+ departureDateTime: string;
362
+ arrivalDateTime: string;
363
+ hasLiveTracking: boolean;
364
+ tripStatus: TripStatusEnum;
365
+ vehicles: {
366
+ id: string;
367
+ isForDisabledPeople: boolean | null;
368
+ vehicleTypeId: number | null;
369
+ position?: {
370
+ latitude: number;
371
+ longitude: number;
372
+ } | undefined;
373
+ }[];
374
+ shapeId: string;
375
+ }>;
376
+ }, "strip", z.ZodTypeAny, {
377
+ id: string;
378
+ stopLat: number;
379
+ stopLong: number;
380
+ stopName: string;
381
+ stopSequence: number;
382
+ expectedArrivalDateTime: string;
383
+ isArrived: boolean;
384
+ isArrivedPrediction: boolean;
385
+ trip: {
386
+ id: string;
387
+ direction: DirectionEnum;
388
+ headsign: string;
389
+ departureDateTime: string;
390
+ arrivalDateTime: string;
391
+ hasLiveTracking: boolean;
392
+ tripStatus: TripStatusEnum;
393
+ vehicles: {
394
+ id: string;
395
+ isForDisabledPeople: boolean | null;
396
+ vehicleTypeId: number | null;
397
+ position?: {
398
+ latitude: number;
399
+ longitude: number;
400
+ } | undefined;
401
+ }[];
402
+ shapeId: string;
403
+ };
404
+ }, {
405
+ id: string;
406
+ stopLat: number;
407
+ stopLong: number;
408
+ stopName: string;
409
+ stopSequence: number;
410
+ expectedArrivalDateTime: string;
411
+ isArrived: boolean;
412
+ isArrivedPrediction: boolean;
413
+ trip: {
414
+ id: string;
415
+ direction: DirectionEnum;
416
+ headsign: string;
417
+ departureDateTime: string;
418
+ arrivalDateTime: string;
419
+ hasLiveTracking: boolean;
420
+ tripStatus: TripStatusEnum;
421
+ vehicles: {
422
+ id: string;
423
+ isForDisabledPeople: boolean | null;
424
+ vehicleTypeId: number | null;
425
+ position?: {
426
+ latitude: number;
427
+ longitude: number;
428
+ } | undefined;
429
+ }[];
430
+ shapeId: string;
431
+ };
432
+ }>;
433
+ export type News = z.infer<typeof NewsSchema>;
434
+ export declare const NewsSchema: z.ZodObject<{
435
+ title: z.ZodString;
436
+ description: z.ZodString;
437
+ link: z.ZodString;
438
+ datePublished: z.ZodString;
439
+ type: z.ZodNativeEnum<typeof NewsTypeEnum>;
440
+ lines: z.ZodArray<z.ZodNumber, "many">;
441
+ stations: z.ZodArray<z.ZodString, "many">;
442
+ validFrom: z.ZodString;
443
+ validTo: z.ZodString;
444
+ }, "strip", z.ZodTypeAny, {
445
+ type: NewsTypeEnum;
446
+ title: string;
447
+ description: string;
448
+ link: string;
449
+ datePublished: string;
450
+ lines: number[];
451
+ stations: string[];
452
+ validFrom: string;
453
+ validTo: string;
454
+ }, {
455
+ type: NewsTypeEnum;
456
+ title: string;
457
+ description: string;
458
+ link: string;
459
+ datePublished: string;
460
+ lines: number[];
461
+ stations: string[];
462
+ validFrom: string;
463
+ validTo: string;
464
+ }>;
465
+ export type GetRoutesInput = z.infer<typeof GetRoutesInputSchema>;
466
+ export declare const GetRoutesInputSchema: z.ZodObject<{
467
+ routeId: z.ZodOptional<z.ZodNumber>;
468
+ routeType: z.ZodOptional<z.ZodNativeEnum<typeof RouteTypeEnum>>;
469
+ }, "strip", z.ZodTypeAny, {
470
+ routeType?: RouteTypeEnum | undefined;
471
+ routeId?: number | undefined;
472
+ }, {
473
+ routeType?: RouteTypeEnum | undefined;
474
+ routeId?: number | undefined;
475
+ }>;
476
+ export type GetRouteTripsInput = z.infer<typeof GetRouteTripsInputSchema>;
477
+ export declare const GetRouteTripsInputSchema: z.ZodObject<{
478
+ routeId: z.ZodNumber;
479
+ daysFromToday: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
480
+ }, "strip", z.ZodTypeAny, {
481
+ routeId: number;
482
+ daysFromToday: number;
483
+ }, {
484
+ routeId: number;
485
+ daysFromToday?: number | undefined;
486
+ }>;
487
+ export type GetStopsInput = z.infer<typeof GetStopsInputSchema>;
488
+ export declare const GetStopsInputSchema: z.ZodObject<{
489
+ stopId: z.ZodOptional<z.ZodString>;
490
+ stopName: z.ZodOptional<z.ZodString>;
491
+ routeType: z.ZodOptional<z.ZodNativeEnum<typeof RouteTypeEnum>>;
492
+ }, "strip", z.ZodTypeAny, {
493
+ routeType?: RouteTypeEnum | undefined;
494
+ stopName?: string | undefined;
495
+ stopId?: string | undefined;
496
+ }, {
497
+ routeType?: RouteTypeEnum | undefined;
498
+ stopName?: string | undefined;
499
+ stopId?: string | undefined;
500
+ }>;
501
+ export type GetTripStopTimesInput = z.infer<typeof GetTripStopTimesInputSchema>;
502
+ export declare const GetTripStopTimesInputSchema: z.ZodObject<{
503
+ tripId: z.ZodString;
504
+ daysFromToday: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
505
+ }, "strip", z.ZodTypeAny, {
506
+ daysFromToday: number;
507
+ tripId: string;
508
+ }, {
509
+ tripId: string;
510
+ daysFromToday?: number | undefined;
511
+ }>;
512
+ export type RoutesResponse = z.infer<typeof RoutesResponseSchema>;
513
+ export declare const RoutesResponseSchema: z.ZodArray<z.ZodObject<{
514
+ id: z.ZodNumber;
515
+ shortName: z.ZodString;
516
+ longName: z.ZodString;
517
+ routeType: z.ZodNativeEnum<typeof RouteTypeEnum>;
518
+ departureHeadsign: z.ZodNullable<z.ZodString>;
519
+ destinationHeadsign: z.ZodString;
520
+ normalizedSearchName: z.ZodString;
521
+ }, "strip", z.ZodTypeAny, {
522
+ id: number;
523
+ shortName: string;
524
+ longName: string;
525
+ routeType: RouteTypeEnum;
526
+ departureHeadsign: string | null;
527
+ destinationHeadsign: string;
528
+ normalizedSearchName: string;
529
+ }, {
530
+ id: number;
531
+ shortName: string;
532
+ longName: string;
533
+ routeType: RouteTypeEnum;
534
+ departureHeadsign: string | null;
535
+ destinationHeadsign: string;
536
+ normalizedSearchName: string;
537
+ }>, "many">;
538
+ export type RouteTripsResponse = z.infer<typeof RouteTripsResponseSchema>;
539
+ export declare const RouteTripsResponseSchema: z.ZodArray<z.ZodObject<{
540
+ id: z.ZodString;
541
+ direction: z.ZodNativeEnum<typeof DirectionEnum>;
542
+ headsign: z.ZodString;
543
+ departureDateTime: z.ZodString;
544
+ arrivalDateTime: z.ZodString;
545
+ hasLiveTracking: z.ZodBoolean;
546
+ tripStatus: z.ZodNativeEnum<typeof TripStatusEnum>;
547
+ vehicles: z.ZodArray<z.ZodObject<{
548
+ id: z.ZodString;
549
+ isForDisabledPeople: z.ZodNullable<z.ZodBoolean>;
550
+ vehicleTypeId: z.ZodNullable<z.ZodNumber>;
551
+ position: z.ZodOptional<z.ZodObject<{
552
+ latitude: z.ZodNumber;
553
+ longitude: z.ZodNumber;
554
+ }, "strip", z.ZodTypeAny, {
555
+ latitude: number;
556
+ longitude: number;
557
+ }, {
558
+ latitude: number;
559
+ longitude: number;
560
+ }>>;
561
+ }, "strip", z.ZodTypeAny, {
562
+ id: string;
563
+ isForDisabledPeople: boolean | null;
564
+ vehicleTypeId: number | null;
565
+ position?: {
566
+ latitude: number;
567
+ longitude: number;
568
+ } | undefined;
569
+ }, {
570
+ id: string;
571
+ isForDisabledPeople: boolean | null;
572
+ vehicleTypeId: number | null;
573
+ position?: {
574
+ latitude: number;
575
+ longitude: number;
576
+ } | undefined;
577
+ }>, "many">;
578
+ shapeId: z.ZodString;
579
+ }, "strip", z.ZodTypeAny, {
580
+ id: string;
581
+ direction: DirectionEnum;
582
+ headsign: string;
583
+ departureDateTime: string;
584
+ arrivalDateTime: string;
585
+ hasLiveTracking: boolean;
586
+ tripStatus: TripStatusEnum;
587
+ vehicles: {
588
+ id: string;
589
+ isForDisabledPeople: boolean | null;
590
+ vehicleTypeId: number | null;
591
+ position?: {
592
+ latitude: number;
593
+ longitude: number;
594
+ } | undefined;
595
+ }[];
596
+ shapeId: string;
597
+ }, {
598
+ id: string;
599
+ direction: DirectionEnum;
600
+ headsign: string;
601
+ departureDateTime: string;
602
+ arrivalDateTime: string;
603
+ hasLiveTracking: boolean;
604
+ tripStatus: TripStatusEnum;
605
+ vehicles: {
606
+ id: string;
607
+ isForDisabledPeople: boolean | null;
608
+ vehicleTypeId: number | null;
609
+ position?: {
610
+ latitude: number;
611
+ longitude: number;
612
+ } | undefined;
613
+ }[];
614
+ shapeId: string;
615
+ }>, "many">;
616
+ export type StopsResponse = z.infer<typeof StopsResponseSchema>;
617
+ export declare const StopsResponseSchema: z.ZodArray<z.ZodObject<{
618
+ id: z.ZodString;
619
+ name: z.ZodString;
620
+ routeType: z.ZodNativeEnum<typeof RouteTypeEnum>;
621
+ trips: z.ZodArray<z.ZodObject<{
622
+ routeCode: z.ZodString;
623
+ tripHeadsigns: z.ZodArray<z.ZodString, "many">;
624
+ }, "strip", z.ZodTypeAny, {
625
+ routeCode: string;
626
+ tripHeadsigns: string[];
627
+ }, {
628
+ routeCode: string;
629
+ tripHeadsigns: string[];
630
+ }>, "many">;
631
+ stopLat: z.ZodNumber;
632
+ stopLong: z.ZodNumber;
633
+ parentStopId: z.ZodOptional<z.ZodString>;
634
+ normalizedSearchName: z.ZodString;
635
+ isForDisabledPeople: z.ZodOptional<z.ZodBoolean>;
636
+ projectNo: z.ZodOptional<z.ZodString>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ id: string;
639
+ routeType: RouteTypeEnum;
640
+ normalizedSearchName: string;
641
+ name: string;
642
+ trips: {
643
+ routeCode: string;
644
+ tripHeadsigns: string[];
645
+ }[];
646
+ stopLat: number;
647
+ stopLong: number;
648
+ isForDisabledPeople?: boolean | undefined;
649
+ parentStopId?: string | undefined;
650
+ projectNo?: string | undefined;
651
+ }, {
652
+ id: string;
653
+ routeType: RouteTypeEnum;
654
+ normalizedSearchName: string;
655
+ name: string;
656
+ trips: {
657
+ routeCode: string;
658
+ tripHeadsigns: string[];
659
+ }[];
660
+ stopLat: number;
661
+ stopLong: number;
662
+ isForDisabledPeople?: boolean | undefined;
663
+ parentStopId?: string | undefined;
664
+ projectNo?: string | undefined;
665
+ }>, "many">;
666
+ export type TripStopTimesResponse = z.infer<typeof TripStopTimesResponseSchema>;
667
+ export declare const TripStopTimesResponseSchema: z.ZodArray<z.ZodObject<{
668
+ id: z.ZodString;
669
+ stopName: z.ZodString;
670
+ stopSequence: z.ZodNumber;
671
+ expectedArrivalDateTime: z.ZodString;
672
+ isArrived: z.ZodBoolean;
673
+ isArrivedPrediction: z.ZodBoolean;
674
+ stopLat: z.ZodNumber;
675
+ stopLong: z.ZodNumber;
676
+ trip: z.ZodObject<{
677
+ id: z.ZodString;
678
+ direction: z.ZodNativeEnum<typeof DirectionEnum>;
679
+ headsign: z.ZodString;
680
+ departureDateTime: z.ZodString;
681
+ arrivalDateTime: z.ZodString;
682
+ hasLiveTracking: z.ZodBoolean;
683
+ tripStatus: z.ZodNativeEnum<typeof TripStatusEnum>;
684
+ vehicles: z.ZodArray<z.ZodObject<{
685
+ id: z.ZodString;
686
+ isForDisabledPeople: z.ZodNullable<z.ZodBoolean>;
687
+ vehicleTypeId: z.ZodNullable<z.ZodNumber>;
688
+ position: z.ZodOptional<z.ZodObject<{
689
+ latitude: z.ZodNumber;
690
+ longitude: z.ZodNumber;
691
+ }, "strip", z.ZodTypeAny, {
692
+ latitude: number;
693
+ longitude: number;
694
+ }, {
695
+ latitude: number;
696
+ longitude: number;
697
+ }>>;
698
+ }, "strip", z.ZodTypeAny, {
699
+ id: string;
700
+ isForDisabledPeople: boolean | null;
701
+ vehicleTypeId: number | null;
702
+ position?: {
703
+ latitude: number;
704
+ longitude: number;
705
+ } | undefined;
706
+ }, {
707
+ id: string;
708
+ isForDisabledPeople: boolean | null;
709
+ vehicleTypeId: number | null;
710
+ position?: {
711
+ latitude: number;
712
+ longitude: number;
713
+ } | undefined;
714
+ }>, "many">;
715
+ shapeId: z.ZodString;
716
+ }, "strip", z.ZodTypeAny, {
717
+ id: string;
718
+ direction: DirectionEnum;
719
+ headsign: string;
720
+ departureDateTime: string;
721
+ arrivalDateTime: string;
722
+ hasLiveTracking: boolean;
723
+ tripStatus: TripStatusEnum;
724
+ vehicles: {
725
+ id: string;
726
+ isForDisabledPeople: boolean | null;
727
+ vehicleTypeId: number | null;
728
+ position?: {
729
+ latitude: number;
730
+ longitude: number;
731
+ } | undefined;
732
+ }[];
733
+ shapeId: string;
734
+ }, {
735
+ id: string;
736
+ direction: DirectionEnum;
737
+ headsign: string;
738
+ departureDateTime: string;
739
+ arrivalDateTime: string;
740
+ hasLiveTracking: boolean;
741
+ tripStatus: TripStatusEnum;
742
+ vehicles: {
743
+ id: string;
744
+ isForDisabledPeople: boolean | null;
745
+ vehicleTypeId: number | null;
746
+ position?: {
747
+ latitude: number;
748
+ longitude: number;
749
+ } | undefined;
750
+ }[];
751
+ shapeId: string;
752
+ }>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ id: string;
755
+ stopLat: number;
756
+ stopLong: number;
757
+ stopName: string;
758
+ stopSequence: number;
759
+ expectedArrivalDateTime: string;
760
+ isArrived: boolean;
761
+ isArrivedPrediction: boolean;
762
+ trip: {
763
+ id: string;
764
+ direction: DirectionEnum;
765
+ headsign: string;
766
+ departureDateTime: string;
767
+ arrivalDateTime: string;
768
+ hasLiveTracking: boolean;
769
+ tripStatus: TripStatusEnum;
770
+ vehicles: {
771
+ id: string;
772
+ isForDisabledPeople: boolean | null;
773
+ vehicleTypeId: number | null;
774
+ position?: {
775
+ latitude: number;
776
+ longitude: number;
777
+ } | undefined;
778
+ }[];
779
+ shapeId: string;
780
+ };
781
+ }, {
782
+ id: string;
783
+ stopLat: number;
784
+ stopLong: number;
785
+ stopName: string;
786
+ stopSequence: number;
787
+ expectedArrivalDateTime: string;
788
+ isArrived: boolean;
789
+ isArrivedPrediction: boolean;
790
+ trip: {
791
+ id: string;
792
+ direction: DirectionEnum;
793
+ headsign: string;
794
+ departureDateTime: string;
795
+ arrivalDateTime: string;
796
+ hasLiveTracking: boolean;
797
+ tripStatus: TripStatusEnum;
798
+ vehicles: {
799
+ id: string;
800
+ isForDisabledPeople: boolean | null;
801
+ vehicleTypeId: number | null;
802
+ position?: {
803
+ latitude: number;
804
+ longitude: number;
805
+ } | undefined;
806
+ }[];
807
+ shapeId: string;
808
+ };
809
+ }>, "many">;
810
+ export type NewsfeedResponse = z.infer<typeof NewsfeedResponseSchema>;
811
+ export declare const NewsfeedResponseSchema: z.ZodArray<z.ZodObject<{
812
+ title: z.ZodString;
813
+ description: z.ZodString;
814
+ link: z.ZodString;
815
+ datePublished: z.ZodString;
816
+ type: z.ZodNativeEnum<typeof NewsTypeEnum>;
817
+ lines: z.ZodArray<z.ZodNumber, "many">;
818
+ stations: z.ZodArray<z.ZodString, "many">;
819
+ validFrom: z.ZodString;
820
+ validTo: z.ZodString;
821
+ }, "strip", z.ZodTypeAny, {
822
+ type: NewsTypeEnum;
823
+ title: string;
824
+ description: string;
825
+ link: string;
826
+ datePublished: string;
827
+ lines: number[];
828
+ stations: string[];
829
+ validFrom: string;
830
+ validTo: string;
831
+ }, {
832
+ type: NewsTypeEnum;
833
+ title: string;
834
+ description: string;
835
+ link: string;
836
+ datePublished: string;
837
+ lines: number[];
838
+ stations: string[];
839
+ validFrom: string;
840
+ validTo: string;
841
+ }>, "many">;
842
+ export type TripWithDates = Omit<Trip, 'departureDateTime' | 'arrivalDateTime'> & {
843
+ departureDateTime: Date;
844
+ arrivalDateTime: Date;
845
+ };
846
+ export type TripStopTimeWithDates = Omit<TripStopTime, 'expectedArrivalDateTime' | 'trip'> & {
847
+ expectedArrivalDateTime: Date;
848
+ trip: TripWithDates;
849
+ };
850
+ export type NewsWithDates = Omit<News, 'datePublished' | 'validFrom' | 'validTo'> & {
851
+ datePublished: Date;
852
+ validFrom: Date;
853
+ validTo: Date;
854
+ };
855
+ export type SearchRoutesInput = z.infer<typeof SearchRoutesInputSchema>;
856
+ export declare const SearchRoutesInputSchema: z.ZodObject<{
857
+ query: z.ZodString;
858
+ routeType: z.ZodOptional<z.ZodNativeEnum<typeof RouteTypeEnum>>;
859
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
860
+ }, "strip", z.ZodTypeAny, {
861
+ query: string;
862
+ limit: number;
863
+ routeType?: RouteTypeEnum | undefined;
864
+ }, {
865
+ query: string;
866
+ routeType?: RouteTypeEnum | undefined;
867
+ limit?: number | undefined;
868
+ }>;
869
+ export type SearchStopsInput = z.infer<typeof SearchStopsInputSchema>;
870
+ export declare const SearchStopsInputSchema: z.ZodObject<{
871
+ query: z.ZodString;
872
+ routeType: z.ZodOptional<z.ZodNativeEnum<typeof RouteTypeEnum>>;
873
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ query: string;
876
+ limit: number;
877
+ routeType?: RouteTypeEnum | undefined;
878
+ }, {
879
+ query: string;
880
+ routeType?: RouteTypeEnum | undefined;
881
+ limit?: number | undefined;
882
+ }>;
883
+ export type GetLiveVehiclesInput = z.infer<typeof GetLiveVehiclesInputSchema>;
884
+ export declare const GetLiveVehiclesInputSchema: z.ZodObject<{
885
+ routeId: z.ZodOptional<z.ZodNumber>;
886
+ vehicleId: z.ZodOptional<z.ZodString>;
887
+ }, "strip", z.ZodTypeAny, {
888
+ routeId?: number | undefined;
889
+ vehicleId?: string | undefined;
890
+ }, {
891
+ routeId?: number | undefined;
892
+ vehicleId?: string | undefined;
893
+ }>;