@tmlmobilidade/types 20260615.1002.3 → 20260615.1437.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dates/common.d.ts +1 -3
- package/dist/dates/common.js +7 -4
- package/dist/dates/event.d.ts +18 -18
- package/dist/file-exports/file-exports.d.ts +3 -3
- package/dist/file-exports/ride-export.d.ts +6 -6
- package/dist/file-exports/sams-analysis-export.d.ts +10 -10
- package/dist/file-exports/stop-export.d.ts +8 -8
- package/dist/gtfs-new/stop-times.d.ts +2 -2
- package/dist/gtfs-new/trips.d.ts +3 -3
- package/dist/gtfs-rt/alert.d.ts +10 -10
- package/dist/gtfs-rt/entity-selector.d.ts +6 -6
- package/dist/gtfs-rt/feed-entity.d.ts +20 -20
- package/dist/gtfs-rt/feed-message.d.ts +26 -26
- package/dist/gtfs-rt/trip-descriptor.d.ts +2 -2
- package/dist/gtfs-rt/vehicle-position.d.ts +4 -4
- package/dist/gtfs-tml/fares.d.ts +4 -4
- package/dist/gtfs-tml/stop-times.d.ts +2 -2
- package/dist/gtfs-tml/trips.d.ts +3 -3
- package/dist/hub/api/network/pattern.d.ts +2 -2
- package/dist/hub/api/network/route.d.ts +2 -2
- package/dist/hub/api/network/stop.d.ts +2 -2
- package/dist/hub/api/realtime/vehicle-position.d.ts +7 -7
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/metrics/demand/demand_by_category.d.ts +36 -36
- package/dist/metrics/index.d.ts +36 -36
- package/dist/notification.d.ts +10 -10
- package/dist/offer/fare.d.ts +16 -16
- package/dist/offer/parameters.d.ts +8 -8
- package/dist/offer/pattern.d.ts +108 -108
- package/dist/offer/route.d.ts +6 -6
- package/dist/offer/rules.d.ts +42 -42
- package/dist/operation/hashed-lines/hashed-line.d.ts +2 -2
- package/dist/operation/hashed-patterns/hashed-pattern.d.ts +2 -2
- package/dist/operation/hashed-trips/hashed-trip.d.ts +2 -2
- package/dist/operation/lines/operational-line.d.ts +4 -4
- package/dist/operation/rides/ride-normalized.d.ts +6 -6
- package/dist/operation/rides/ride.d.ts +24 -24
- package/dist/operation/stops/operational-stop.d.ts +5 -5
- package/dist/sams/sam-analysis.d.ts +10 -10
- package/dist/sams/sam-analysis.js +1 -1
- package/dist/sams/sam.d.ts +60 -60
- package/dist/stops/flag.d.ts +1 -1
- package/dist/stops/stop.d.ts +12 -12
- package/dist/vehicle-events/raw/ccfl/v1.d.ts +2 -2
- package/dist/vehicle-events/raw/cmet/v1-core.d.ts +2 -2
- package/dist/vehicle-events/raw/cmet/v1-log.d.ts +2 -2
- package/dist/vehicle-events/raw/cp/v1.d.ts +2 -2
- package/dist/vehicle-events/raw/crtm-aisa/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/fertagus/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/mobi/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/raw-vehicle-event-base.d.ts +2 -2
- package/dist/vehicle-events/raw/raw-vehicle-event.d.ts +50 -50
- package/dist/vehicle-events/raw/tcb/v1.d.ts +16 -16
- package/dist/vehicle-events/raw/ttsl/v1.d.ts +2 -2
- package/dist/vehicle-events/simplified/simplified-vehicle-event.d.ts +7 -7
- package/package.json +2 -1
- package/dist/apex/index.d.ts +0 -2
- package/dist/apex/index.js +0 -2
- package/dist/apex/raw/banking-taps/banking-tap-v40.d.ts +0 -669
- package/dist/apex/raw/banking-taps/banking-tap-v40.js +0 -65
- package/dist/apex/raw/banking-taps/index.d.ts +0 -1
- package/dist/apex/raw/banking-taps/index.js +0 -1
- package/dist/apex/raw/index.d.ts +0 -7
- package/dist/apex/raw/index.js +0 -7
- package/dist/apex/raw/inspections/index.d.ts +0 -2
- package/dist/apex/raw/inspections/index.js +0 -2
- package/dist/apex/raw/inspections/inspection-decision-v20.d.ts +0 -481
- package/dist/apex/raw/inspections/inspection-decision-v20.js +0 -49
- package/dist/apex/raw/inspections/inspection-v20.d.ts +0 -961
- package/dist/apex/raw/inspections/inspection-v20.js +0 -89
- package/dist/apex/raw/locations/index.d.ts +0 -1
- package/dist/apex/raw/locations/index.js +0 -1
- package/dist/apex/raw/locations/location-v30.d.ts +0 -645
- package/dist/apex/raw/locations/location-v30.js +0 -63
- package/dist/apex/raw/raw-apex-transaction-base.d.ts +0 -30
- package/dist/apex/raw/raw-apex-transaction-base.js +0 -13
- package/dist/apex/raw/raw-apex-transaction.d.ts +0 -3662
- package/dist/apex/raw/raw-apex-transaction.js +0 -21
- package/dist/apex/raw/sales/index.d.ts +0 -2
- package/dist/apex/raw/sales/index.js +0 -2
- package/dist/apex/raw/sales/refund-v30.d.ts +0 -769
- package/dist/apex/raw/sales/refund-v30.js +0 -74
- package/dist/apex/raw/sales/sale-v30.d.ts +0 -757
- package/dist/apex/raw/sales/sale-v30.js +0 -73
- package/dist/apex/raw/validations/index.d.ts +0 -2
- package/dist/apex/raw/validations/index.js +0 -2
- package/dist/apex/raw/validations/validation-v20.d.ts +0 -901
- package/dist/apex/raw/validations/validation-v20.js +0 -85
- package/dist/apex/raw/validations/validation-v30.d.ts +0 -901
- package/dist/apex/raw/validations/validation-v30.js +0 -85
- package/dist/apex/simplified/any-simplified-apex.d.ts +0 -8
- package/dist/apex/simplified/any-simplified-apex.js +0 -2
- package/dist/apex/simplified/apex-validation-status.d.ts +0 -145
- package/dist/apex/simplified/apex-validation-status.js +0 -76
- package/dist/apex/simplified/index.d.ts +0 -10
- package/dist/apex/simplified/index.js +0 -10
- package/dist/apex/simplified/simplified-apex-banking-taps.d.ts +0 -81
- package/dist/apex/simplified/simplified-apex-banking-taps.js +0 -27
- package/dist/apex/simplified/simplified-apex-inspection-decision.d.ts +0 -55
- package/dist/apex/simplified/simplified-apex-inspection-decision.js +0 -18
- package/dist/apex/simplified/simplified-apex-inspection.d.ts +0 -82
- package/dist/apex/simplified/simplified-apex-inspection.js +0 -27
- package/dist/apex/simplified/simplified-apex-location.d.ts +0 -112
- package/dist/apex/simplified/simplified-apex-location.js +0 -20
- package/dist/apex/simplified/simplified-apex-on-board-refund.d.ts +0 -172
- package/dist/apex/simplified/simplified-apex-on-board-refund.js +0 -30
- package/dist/apex/simplified/simplified-apex-on-board-sale.d.ts +0 -178
- package/dist/apex/simplified/simplified-apex-on-board-sale.js +0 -31
- package/dist/apex/simplified/simplified-apex-type.d.ts +0 -9
- package/dist/apex/simplified/simplified-apex-type.js +0 -5
- package/dist/apex/simplified/simplified-apex-validation.d.ts +0 -200
- package/dist/apex/simplified/simplified-apex-validation.js +0 -41
package/dist/dates/common.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
*
|
|
5
5
|
* Rules:
|
|
6
6
|
* - minimum is 04:00
|
|
7
|
-
* -
|
|
7
|
+
* - maximum is 29:59
|
|
8
8
|
* - minutes must be 00–59
|
|
9
9
|
* - hour must be at least 2 digits in stored format
|
|
10
10
|
*/
|
|
@@ -17,10 +17,8 @@ export declare function operationalHhmmToMinutes(hhmm: string, ignoreStartHour?:
|
|
|
17
17
|
* - "0800" -> "08:00"
|
|
18
18
|
* - "2200" -> "22:00"
|
|
19
19
|
* - "2600" -> "26:00"
|
|
20
|
-
* - "10000" -> "100:00"
|
|
21
20
|
* - "8:00" -> "08:00"
|
|
22
21
|
* - "26:00" -> "26:00"
|
|
23
|
-
* - "100:00" -> "100:00"
|
|
24
22
|
*
|
|
25
23
|
* Returns null if it cannot normalize safely.
|
|
26
24
|
*/
|
package/dist/dates/common.js
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
/* * */
|
|
4
4
|
const OPERATIONAL_DAY_START_HOUR = 4;
|
|
5
|
+
const OPERATIONAL_DAY_END_HOUR = 29;
|
|
5
6
|
/**
|
|
6
7
|
* Parses an operational HH:MM.
|
|
7
8
|
*
|
|
8
9
|
* Rules:
|
|
9
10
|
* - minimum is 04:00
|
|
10
|
-
* -
|
|
11
|
+
* - maximum is 29:59
|
|
11
12
|
* - minutes must be 00–59
|
|
12
13
|
* - hour must be at least 2 digits in stored format
|
|
13
14
|
*/
|
|
@@ -29,6 +30,10 @@ export function operationalHhmmToMinutes(hhmm, ignoreStartHour = false) {
|
|
|
29
30
|
if (!ignoreStartHour && total < minAllowed) {
|
|
30
31
|
throw new Error(`Operational time out of range: ${hhmm}`);
|
|
31
32
|
}
|
|
33
|
+
const maxAllowed = (OPERATIONAL_DAY_END_HOUR * 60) + 59; // 29:59
|
|
34
|
+
if (!ignoreStartHour && total > maxAllowed) {
|
|
35
|
+
throw new Error(`Operational time out of range: ${hhmm}`);
|
|
36
|
+
}
|
|
32
37
|
return total;
|
|
33
38
|
}
|
|
34
39
|
/**
|
|
@@ -39,10 +44,8 @@ export function operationalHhmmToMinutes(hhmm, ignoreStartHour = false) {
|
|
|
39
44
|
* - "0800" -> "08:00"
|
|
40
45
|
* - "2200" -> "22:00"
|
|
41
46
|
* - "2600" -> "26:00"
|
|
42
|
-
* - "10000" -> "100:00"
|
|
43
47
|
* - "8:00" -> "08:00"
|
|
44
48
|
* - "26:00" -> "26:00"
|
|
45
|
-
* - "100:00" -> "100:00"
|
|
46
49
|
*
|
|
47
50
|
* Returns null if it cannot normalize safely.
|
|
48
51
|
*/
|
|
@@ -75,7 +78,7 @@ export const HHMMSchema = z
|
|
|
75
78
|
console.warn('Invalid HHMM:', value, err);
|
|
76
79
|
return false;
|
|
77
80
|
}
|
|
78
|
-
}, 'Invalid operational time (expected HH:MM
|
|
81
|
+
}, 'Invalid operational time (expected HH:MM between 04:00 and 29:59)')
|
|
79
82
|
.brand();
|
|
80
83
|
/**
|
|
81
84
|
* Runtime-safe creator (validates + brands)
|
package/dist/dates/event.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ export declare const EventSchema: z.ZodObject<{
|
|
|
104
104
|
};
|
|
105
105
|
dates: import("@tmlmobilidade/go-types-shared").OperationalDate[];
|
|
106
106
|
kind: "event_replacement";
|
|
107
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
107
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
108
108
|
year_period_ids: string[];
|
|
109
109
|
lines_mode: "exclude" | "include" | "all";
|
|
110
110
|
_id?: string | undefined;
|
|
@@ -120,7 +120,7 @@ export declare const EventSchema: z.ZodObject<{
|
|
|
120
120
|
};
|
|
121
121
|
dates: string[];
|
|
122
122
|
kind: "event_replacement";
|
|
123
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
123
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
124
124
|
year_period_ids: string[];
|
|
125
125
|
lines_mode: "exclude" | "include" | "all";
|
|
126
126
|
_id?: string | undefined;
|
|
@@ -140,14 +140,14 @@ export declare const EventSchema: z.ZodObject<{
|
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
_id: string;
|
|
142
142
|
code: string;
|
|
143
|
-
line_id: string;
|
|
144
143
|
headsign: string;
|
|
144
|
+
line_id: string;
|
|
145
145
|
route_id: string;
|
|
146
146
|
}, {
|
|
147
147
|
_id: string;
|
|
148
148
|
code: string;
|
|
149
|
-
line_id: string;
|
|
150
149
|
headsign: string;
|
|
150
|
+
line_id: string;
|
|
151
151
|
route_id: string;
|
|
152
152
|
}>, "many">>;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -188,7 +188,7 @@ export declare const EventSchema: z.ZodObject<{
|
|
|
188
188
|
};
|
|
189
189
|
dates: import("@tmlmobilidade/go-types-shared").OperationalDate[];
|
|
190
190
|
kind: "event_replacement";
|
|
191
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
191
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
192
192
|
year_period_ids: string[];
|
|
193
193
|
lines_mode: "exclude" | "include" | "all";
|
|
194
194
|
_id?: string | undefined;
|
|
@@ -201,8 +201,8 @@ export declare const EventSchema: z.ZodObject<{
|
|
|
201
201
|
associated_patterns: {
|
|
202
202
|
_id: string;
|
|
203
203
|
code: string;
|
|
204
|
-
line_id: string;
|
|
205
204
|
headsign: string;
|
|
205
|
+
line_id: string;
|
|
206
206
|
route_id: string;
|
|
207
207
|
}[];
|
|
208
208
|
updated_by?: string | undefined;
|
|
@@ -241,7 +241,7 @@ export declare const EventSchema: z.ZodObject<{
|
|
|
241
241
|
};
|
|
242
242
|
dates: string[];
|
|
243
243
|
kind: "event_replacement";
|
|
244
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
244
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
245
245
|
year_period_ids: string[];
|
|
246
246
|
lines_mode: "exclude" | "include" | "all";
|
|
247
247
|
_id?: string | undefined;
|
|
@@ -254,8 +254,8 @@ export declare const EventSchema: z.ZodObject<{
|
|
|
254
254
|
associated_patterns?: {
|
|
255
255
|
_id: string;
|
|
256
256
|
code: string;
|
|
257
|
-
line_id: string;
|
|
258
257
|
headsign: string;
|
|
258
|
+
line_id: string;
|
|
259
259
|
route_id: string;
|
|
260
260
|
}[] | undefined;
|
|
261
261
|
}>;
|
|
@@ -364,7 +364,7 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
|
|
|
364
364
|
};
|
|
365
365
|
dates: import("@tmlmobilidade/go-types-shared").OperationalDate[];
|
|
366
366
|
kind: "event_replacement";
|
|
367
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
367
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
368
368
|
year_period_ids: string[];
|
|
369
369
|
lines_mode: "exclude" | "include" | "all";
|
|
370
370
|
_id?: string | undefined;
|
|
@@ -380,7 +380,7 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
|
|
|
380
380
|
};
|
|
381
381
|
dates: string[];
|
|
382
382
|
kind: "event_replacement";
|
|
383
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
383
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
384
384
|
year_period_ids: string[];
|
|
385
385
|
lines_mode: "exclude" | "include" | "all";
|
|
386
386
|
_id?: string | undefined;
|
|
@@ -400,14 +400,14 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
|
|
|
400
400
|
}, "strip", z.ZodTypeAny, {
|
|
401
401
|
_id: string;
|
|
402
402
|
code: string;
|
|
403
|
-
line_id: string;
|
|
404
403
|
headsign: string;
|
|
404
|
+
line_id: string;
|
|
405
405
|
route_id: string;
|
|
406
406
|
}, {
|
|
407
407
|
_id: string;
|
|
408
408
|
code: string;
|
|
409
|
-
line_id: string;
|
|
410
409
|
headsign: string;
|
|
410
|
+
line_id: string;
|
|
411
411
|
route_id: string;
|
|
412
412
|
}>, "many">>;
|
|
413
413
|
}, "_id" | "created_at" | "updated_at" | "associated_patterns">, "strip", z.ZodTypeAny, {
|
|
@@ -441,7 +441,7 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
|
|
|
441
441
|
};
|
|
442
442
|
dates: import("@tmlmobilidade/go-types-shared").OperationalDate[];
|
|
443
443
|
kind: "event_replacement";
|
|
444
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
444
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
445
445
|
year_period_ids: string[];
|
|
446
446
|
lines_mode: "exclude" | "include" | "all";
|
|
447
447
|
_id?: string | undefined;
|
|
@@ -484,7 +484,7 @@ export declare const CreateEventSchema: z.ZodObject<Omit<{
|
|
|
484
484
|
};
|
|
485
485
|
dates: string[];
|
|
486
486
|
kind: "event_replacement";
|
|
487
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
487
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
488
488
|
year_period_ids: string[];
|
|
489
489
|
lines_mode: "exclude" | "include" | "all";
|
|
490
490
|
_id?: string | undefined;
|
|
@@ -596,7 +596,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
|
|
|
596
596
|
};
|
|
597
597
|
dates: import("@tmlmobilidade/go-types-shared").OperationalDate[];
|
|
598
598
|
kind: "event_replacement";
|
|
599
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
599
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
600
600
|
year_period_ids: string[];
|
|
601
601
|
lines_mode: "exclude" | "include" | "all";
|
|
602
602
|
_id?: string | undefined;
|
|
@@ -612,7 +612,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
|
|
|
612
612
|
};
|
|
613
613
|
dates: string[];
|
|
614
614
|
kind: "event_replacement";
|
|
615
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
615
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
616
616
|
year_period_ids: string[];
|
|
617
617
|
lines_mode: "exclude" | "include" | "all";
|
|
618
618
|
_id?: string | undefined;
|
|
@@ -653,7 +653,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
|
|
|
653
653
|
};
|
|
654
654
|
dates: import("@tmlmobilidade/go-types-shared").OperationalDate[];
|
|
655
655
|
kind: "event_replacement";
|
|
656
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
656
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
657
657
|
year_period_ids: string[];
|
|
658
658
|
lines_mode: "exclude" | "include" | "all";
|
|
659
659
|
_id?: string | undefined;
|
|
@@ -694,7 +694,7 @@ export declare const UpdateEventSchema: z.ZodObject<{
|
|
|
694
694
|
};
|
|
695
695
|
dates: string[];
|
|
696
696
|
kind: "event_replacement";
|
|
697
|
-
weekdays: (1 | 2 | 4 | 3 |
|
|
697
|
+
weekdays: (1 | 2 | 4 | 3 | 5 | 7 | 6)[];
|
|
698
698
|
year_period_ids: string[];
|
|
699
699
|
lines_mode: "exclude" | "include" | "all";
|
|
700
700
|
_id?: string | undefined;
|
|
@@ -353,9 +353,9 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
353
353
|
stop_id: z.ZodString;
|
|
354
354
|
}, "strip", z.ZodTypeAny, {
|
|
355
355
|
short_name: string;
|
|
356
|
-
stop_id: string;
|
|
357
356
|
agency_ids: string[];
|
|
358
357
|
is_harmonized: boolean;
|
|
358
|
+
stop_id: string;
|
|
359
359
|
}, {
|
|
360
360
|
short_name: string;
|
|
361
361
|
stop_id: string;
|
|
@@ -371,9 +371,9 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
371
371
|
stop_ids?: number[] | null | undefined;
|
|
372
372
|
flags?: {
|
|
373
373
|
short_name: string;
|
|
374
|
-
stop_id: string;
|
|
375
374
|
agency_ids: string[];
|
|
376
375
|
is_harmonized: boolean;
|
|
376
|
+
stop_id: string;
|
|
377
377
|
}[] | null | undefined;
|
|
378
378
|
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
379
379
|
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
@@ -413,9 +413,9 @@ export declare const FileExportSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
|
|
|
413
413
|
stop_ids?: number[] | null | undefined;
|
|
414
414
|
flags?: {
|
|
415
415
|
short_name: string;
|
|
416
|
-
stop_id: string;
|
|
417
416
|
agency_ids: string[];
|
|
418
417
|
is_harmonized: boolean;
|
|
418
|
+
stop_id: string;
|
|
419
419
|
}[] | null | undefined;
|
|
420
420
|
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
421
421
|
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
@@ -69,14 +69,14 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
69
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
70
|
_id: string | null;
|
|
71
71
|
agency_id: string | null;
|
|
72
|
-
line_id: number | null;
|
|
73
|
-
pattern_id: string | null;
|
|
74
|
-
trip_id: string | null;
|
|
75
72
|
seen_last_at: string | null;
|
|
76
73
|
headsign: string | null;
|
|
74
|
+
line_id: number | null;
|
|
77
75
|
route_id: string | null;
|
|
78
76
|
driver_ids: string | null;
|
|
77
|
+
pattern_id: string | null;
|
|
79
78
|
plan_id: string | null;
|
|
79
|
+
trip_id: string | null;
|
|
80
80
|
vehicle_ids: string | null;
|
|
81
81
|
operational_date: string | null;
|
|
82
82
|
operational_status: string | null;
|
|
@@ -136,14 +136,14 @@ export declare const FlatRideSchema: z.ZodObject<{
|
|
|
136
136
|
}, {
|
|
137
137
|
_id: string | null;
|
|
138
138
|
agency_id: string | null;
|
|
139
|
-
line_id: number | null;
|
|
140
|
-
pattern_id: string | null;
|
|
141
|
-
trip_id: string | null;
|
|
142
139
|
seen_last_at: string | null;
|
|
143
140
|
headsign: string | null;
|
|
141
|
+
line_id: number | null;
|
|
144
142
|
route_id: string | null;
|
|
145
143
|
driver_ids: string | null;
|
|
144
|
+
pattern_id: string | null;
|
|
146
145
|
plan_id: string | null;
|
|
146
|
+
trip_id: string | null;
|
|
147
147
|
vehicle_ids: string | null;
|
|
148
148
|
operational_date: string | null;
|
|
149
149
|
operational_status: string | null;
|
|
@@ -18,37 +18,37 @@ export declare const FlatSamsAnalysisExportAnalysisSchema: z.ZodObject<{
|
|
|
18
18
|
_id: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
19
19
|
agency_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
apex_version: string | null;
|
|
22
|
-
device_id: string | null;
|
|
23
|
-
vehicle_id: number | null;
|
|
24
21
|
end_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
25
22
|
start_time: import("@tmlmobilidade/go-types-shared").UnixTimestamp | null;
|
|
23
|
+
apex_version: string | null;
|
|
24
|
+
device_id: string | null;
|
|
26
25
|
first_transaction_ase_counter_value: number | null;
|
|
27
26
|
first_transaction_id: string | null;
|
|
28
|
-
first_transaction_type: "validation" | "
|
|
27
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
29
28
|
last_transaction_ase_counter_value: number | null;
|
|
30
29
|
last_transaction_id: string | null;
|
|
31
|
-
last_transaction_type: "validation" | "
|
|
30
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
32
31
|
transactions_expected: number;
|
|
33
32
|
transactions_found: number;
|
|
34
33
|
transactions_missing: number;
|
|
34
|
+
vehicle_id: number | null;
|
|
35
35
|
_id?: number | null | undefined;
|
|
36
36
|
agency_id?: string | null | undefined;
|
|
37
37
|
}, {
|
|
38
|
-
apex_version: string | null;
|
|
39
|
-
device_id: string | null;
|
|
40
|
-
vehicle_id: number | null;
|
|
41
38
|
end_time: number | null;
|
|
42
39
|
start_time: number | null;
|
|
40
|
+
apex_version: string | null;
|
|
41
|
+
device_id: string | null;
|
|
43
42
|
first_transaction_ase_counter_value: number | null;
|
|
44
43
|
first_transaction_id: string | null;
|
|
45
|
-
first_transaction_type: "validation" | "
|
|
44
|
+
first_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
46
45
|
last_transaction_ase_counter_value: number | null;
|
|
47
46
|
last_transaction_id: string | null;
|
|
48
|
-
last_transaction_type: "validation" | "
|
|
47
|
+
last_transaction_type: "validation" | "location" | "on_board_refund" | "on_board_sale" | null;
|
|
49
48
|
transactions_expected: number;
|
|
50
49
|
transactions_found: number;
|
|
51
50
|
transactions_missing: number;
|
|
51
|
+
vehicle_id: number | null;
|
|
52
52
|
_id?: number | null | undefined;
|
|
53
53
|
agency_id?: string | null | undefined;
|
|
54
54
|
}>;
|
|
@@ -8,9 +8,9 @@ export declare const FlatStopSchema: z.ZodObject<{
|
|
|
8
8
|
stop_id: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
short_name: string;
|
|
11
|
-
stop_id: string;
|
|
12
11
|
agency_ids: string[];
|
|
13
12
|
is_harmonized: boolean;
|
|
13
|
+
stop_id: string;
|
|
14
14
|
}, {
|
|
15
15
|
short_name: string;
|
|
16
16
|
stop_id: string;
|
|
@@ -62,9 +62,9 @@ export declare const FlatStopSchema: z.ZodObject<{
|
|
|
62
62
|
short_name: string;
|
|
63
63
|
flags: {
|
|
64
64
|
short_name: string;
|
|
65
|
-
stop_id: string;
|
|
66
65
|
agency_ids: string[];
|
|
67
66
|
is_harmonized: boolean;
|
|
67
|
+
stop_id: string;
|
|
68
68
|
}[];
|
|
69
69
|
jurisdiction: "unknown" | "ip" | "municipality" | "other";
|
|
70
70
|
legacy_id: string | null;
|
|
@@ -163,9 +163,9 @@ export declare const StopExportPropertiesSchema: z.ZodObject<{
|
|
|
163
163
|
stop_id: z.ZodString;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
165
|
short_name: string;
|
|
166
|
-
stop_id: string;
|
|
167
166
|
agency_ids: string[];
|
|
168
167
|
is_harmonized: boolean;
|
|
168
|
+
stop_id: string;
|
|
169
169
|
}, {
|
|
170
170
|
short_name: string;
|
|
171
171
|
stop_id: string;
|
|
@@ -181,9 +181,9 @@ export declare const StopExportPropertiesSchema: z.ZodObject<{
|
|
|
181
181
|
stop_ids?: number[] | null | undefined;
|
|
182
182
|
flags?: {
|
|
183
183
|
short_name: string;
|
|
184
|
-
stop_id: string;
|
|
185
184
|
agency_ids: string[];
|
|
186
185
|
is_harmonized: boolean;
|
|
186
|
+
stop_id: string;
|
|
187
187
|
}[] | null | undefined;
|
|
188
188
|
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
189
189
|
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
@@ -213,9 +213,9 @@ export declare const StopExportPropertiesSchema: z.ZodObject<{
|
|
|
213
213
|
stop_ids?: number[] | null | undefined;
|
|
214
214
|
flags?: {
|
|
215
215
|
short_name: string;
|
|
216
|
-
stop_id: string;
|
|
217
216
|
agency_ids: string[];
|
|
218
217
|
is_harmonized: boolean;
|
|
218
|
+
stop_id: string;
|
|
219
219
|
}[] | null | undefined;
|
|
220
220
|
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
221
221
|
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
@@ -262,9 +262,9 @@ export declare const StopExportSchema: z.ZodObject<{
|
|
|
262
262
|
stop_id: z.ZodString;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
264
|
short_name: string;
|
|
265
|
-
stop_id: string;
|
|
266
265
|
agency_ids: string[];
|
|
267
266
|
is_harmonized: boolean;
|
|
267
|
+
stop_id: string;
|
|
268
268
|
}, {
|
|
269
269
|
short_name: string;
|
|
270
270
|
stop_id: string;
|
|
@@ -280,9 +280,9 @@ export declare const StopExportSchema: z.ZodObject<{
|
|
|
280
280
|
stop_ids?: number[] | null | undefined;
|
|
281
281
|
flags?: {
|
|
282
282
|
short_name: string;
|
|
283
|
-
stop_id: string;
|
|
284
283
|
agency_ids: string[];
|
|
285
284
|
is_harmonized: boolean;
|
|
285
|
+
stop_id: string;
|
|
286
286
|
}[] | null | undefined;
|
|
287
287
|
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
288
288
|
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
@@ -322,9 +322,9 @@ export declare const StopExportSchema: z.ZodObject<{
|
|
|
322
322
|
stop_ids?: number[] | null | undefined;
|
|
323
323
|
flags?: {
|
|
324
324
|
short_name: string;
|
|
325
|
-
stop_id: string;
|
|
326
325
|
agency_ids: string[];
|
|
327
326
|
is_harmonized: boolean;
|
|
327
|
+
stop_id: string;
|
|
328
328
|
}[] | null | undefined;
|
|
329
329
|
jurisdiction?: ("unknown" | "ip" | "municipality" | "other")[] | null | undefined;
|
|
330
330
|
connections?: ("ferry" | "light_rail" | "subway" | "train" | "boat" | "airport" | "bike_sharing" | "bike_parking" | "car_parking")[] | null | undefined;
|
|
@@ -21,8 +21,8 @@ export declare const GtfsStopTimesSchema: z.ZodObject<{
|
|
|
21
21
|
timepoint: z.ZodString;
|
|
22
22
|
trip_id: z.ZodString;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
stop_id: string;
|
|
25
24
|
trip_id: string;
|
|
25
|
+
stop_id: string;
|
|
26
26
|
arrival_time: string;
|
|
27
27
|
departure_time: string;
|
|
28
28
|
shape_dist_traveled: number;
|
|
@@ -34,8 +34,8 @@ export declare const GtfsStopTimesSchema: z.ZodObject<{
|
|
|
34
34
|
pickup_type?: string | undefined;
|
|
35
35
|
stop_headsign?: string | undefined;
|
|
36
36
|
}, {
|
|
37
|
-
stop_id: string;
|
|
38
37
|
trip_id: string;
|
|
38
|
+
stop_id: string;
|
|
39
39
|
arrival_time: string;
|
|
40
40
|
departure_time: string;
|
|
41
41
|
shape_dist_traveled: number;
|
package/dist/gtfs-new/trips.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export declare const GtfsTripSchema: z.ZodObject<{
|
|
|
22
22
|
trip_short_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
23
|
wheelchair_accessible: z.ZodDefault<z.ZodEnum<["0", "1", "2"]>>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
trip_id: string;
|
|
26
25
|
route_id: string;
|
|
26
|
+
trip_id: string;
|
|
27
27
|
bikes_allowed: "0" | "1" | "2";
|
|
28
28
|
direction_id: "0" | "1";
|
|
29
29
|
service_id: string;
|
|
@@ -33,12 +33,12 @@ export declare const GtfsTripSchema: z.ZodObject<{
|
|
|
33
33
|
trip_headsign?: string | null | undefined;
|
|
34
34
|
trip_short_name?: string | null | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
trip_id: string;
|
|
37
36
|
route_id: string;
|
|
37
|
+
trip_id: string;
|
|
38
38
|
service_id: string;
|
|
39
39
|
shape_id: string;
|
|
40
|
-
block_id?: string | null | undefined;
|
|
41
40
|
bikes_allowed?: "0" | "1" | "2" | undefined;
|
|
41
|
+
block_id?: string | null | undefined;
|
|
42
42
|
direction_id?: "0" | "1" | undefined;
|
|
43
43
|
trip_headsign?: string | null | undefined;
|
|
44
44
|
trip_short_name?: string | null | undefined;
|
package/dist/gtfs-rt/alert.d.ts
CHANGED
|
@@ -99,8 +99,8 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
99
99
|
start_time: z.ZodAny;
|
|
100
100
|
trip_id: z.ZodString;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
trip_id: string;
|
|
103
102
|
route_id: string;
|
|
103
|
+
trip_id: string;
|
|
104
104
|
start_date: string & {
|
|
105
105
|
__brand: "OperationalDate";
|
|
106
106
|
};
|
|
@@ -109,8 +109,8 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
109
109
|
modified_trip?: any;
|
|
110
110
|
schedule_relationship?: any;
|
|
111
111
|
}, {
|
|
112
|
-
trip_id: string;
|
|
113
112
|
route_id: string;
|
|
113
|
+
trip_id: string;
|
|
114
114
|
start_date: string;
|
|
115
115
|
start_time?: any;
|
|
116
116
|
direction_id?: any;
|
|
@@ -119,13 +119,13 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
119
119
|
}>>>;
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
121
|
agency_id?: string | null | undefined;
|
|
122
|
-
stop_id?: string | null | undefined;
|
|
123
122
|
route_id?: string | null | undefined;
|
|
123
|
+
stop_id?: string | null | undefined;
|
|
124
124
|
route_type?: number | null | undefined;
|
|
125
125
|
direction_id?: number | null | undefined;
|
|
126
126
|
trip?: {
|
|
127
|
-
trip_id: string;
|
|
128
127
|
route_id: string;
|
|
128
|
+
trip_id: string;
|
|
129
129
|
start_date: string & {
|
|
130
130
|
__brand: "OperationalDate";
|
|
131
131
|
};
|
|
@@ -136,13 +136,13 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
136
136
|
} | null | undefined;
|
|
137
137
|
}, {
|
|
138
138
|
agency_id?: string | null | undefined;
|
|
139
|
-
stop_id?: string | null | undefined;
|
|
140
139
|
route_id?: string | null | undefined;
|
|
140
|
+
stop_id?: string | null | undefined;
|
|
141
141
|
route_type?: number | null | undefined;
|
|
142
142
|
direction_id?: number | null | undefined;
|
|
143
143
|
trip?: {
|
|
144
|
-
trip_id: string;
|
|
145
144
|
route_id: string;
|
|
145
|
+
trip_id: string;
|
|
146
146
|
start_date: string;
|
|
147
147
|
start_time?: any;
|
|
148
148
|
direction_id?: any;
|
|
@@ -232,13 +232,13 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
232
232
|
};
|
|
233
233
|
informed_entity: {
|
|
234
234
|
agency_id?: string | null | undefined;
|
|
235
|
-
stop_id?: string | null | undefined;
|
|
236
235
|
route_id?: string | null | undefined;
|
|
236
|
+
stop_id?: string | null | undefined;
|
|
237
237
|
route_type?: number | null | undefined;
|
|
238
238
|
direction_id?: number | null | undefined;
|
|
239
239
|
trip?: {
|
|
240
|
-
trip_id: string;
|
|
241
240
|
route_id: string;
|
|
241
|
+
trip_id: string;
|
|
242
242
|
start_date: string & {
|
|
243
243
|
__brand: "OperationalDate";
|
|
244
244
|
};
|
|
@@ -296,13 +296,13 @@ export declare const GtfsRtAlertSchema: z.ZodObject<{
|
|
|
296
296
|
};
|
|
297
297
|
informed_entity: {
|
|
298
298
|
agency_id?: string | null | undefined;
|
|
299
|
-
stop_id?: string | null | undefined;
|
|
300
299
|
route_id?: string | null | undefined;
|
|
300
|
+
stop_id?: string | null | undefined;
|
|
301
301
|
route_type?: number | null | undefined;
|
|
302
302
|
direction_id?: number | null | undefined;
|
|
303
303
|
trip?: {
|
|
304
|
-
trip_id: string;
|
|
305
304
|
route_id: string;
|
|
305
|
+
trip_id: string;
|
|
306
306
|
start_date: string;
|
|
307
307
|
start_time?: any;
|
|
308
308
|
direction_id?: any;
|
|
@@ -14,8 +14,8 @@ export declare const GtfsRtEntitySelectorSchema: z.ZodObject<{
|
|
|
14
14
|
start_time: z.ZodAny;
|
|
15
15
|
trip_id: z.ZodString;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
trip_id: string;
|
|
18
17
|
route_id: string;
|
|
18
|
+
trip_id: string;
|
|
19
19
|
start_date: string & {
|
|
20
20
|
__brand: "OperationalDate";
|
|
21
21
|
};
|
|
@@ -24,8 +24,8 @@ export declare const GtfsRtEntitySelectorSchema: z.ZodObject<{
|
|
|
24
24
|
modified_trip?: any;
|
|
25
25
|
schedule_relationship?: any;
|
|
26
26
|
}, {
|
|
27
|
-
trip_id: string;
|
|
28
27
|
route_id: string;
|
|
28
|
+
trip_id: string;
|
|
29
29
|
start_date: string;
|
|
30
30
|
start_time?: any;
|
|
31
31
|
direction_id?: any;
|
|
@@ -34,13 +34,13 @@ export declare const GtfsRtEntitySelectorSchema: z.ZodObject<{
|
|
|
34
34
|
}>>>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
agency_id?: string | null | undefined;
|
|
37
|
-
stop_id?: string | null | undefined;
|
|
38
37
|
route_id?: string | null | undefined;
|
|
38
|
+
stop_id?: string | null | undefined;
|
|
39
39
|
route_type?: number | null | undefined;
|
|
40
40
|
direction_id?: number | null | undefined;
|
|
41
41
|
trip?: {
|
|
42
|
-
trip_id: string;
|
|
43
42
|
route_id: string;
|
|
43
|
+
trip_id: string;
|
|
44
44
|
start_date: string & {
|
|
45
45
|
__brand: "OperationalDate";
|
|
46
46
|
};
|
|
@@ -51,13 +51,13 @@ export declare const GtfsRtEntitySelectorSchema: z.ZodObject<{
|
|
|
51
51
|
} | null | undefined;
|
|
52
52
|
}, {
|
|
53
53
|
agency_id?: string | null | undefined;
|
|
54
|
-
stop_id?: string | null | undefined;
|
|
55
54
|
route_id?: string | null | undefined;
|
|
55
|
+
stop_id?: string | null | undefined;
|
|
56
56
|
route_type?: number | null | undefined;
|
|
57
57
|
direction_id?: number | null | undefined;
|
|
58
58
|
trip?: {
|
|
59
|
-
trip_id: string;
|
|
60
59
|
route_id: string;
|
|
60
|
+
trip_id: string;
|
|
61
61
|
start_date: string;
|
|
62
62
|
start_time?: any;
|
|
63
63
|
direction_id?: any;
|