@carrismetropolitana/api-types 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,65 @@
1
+ import { Cause, Effect, EntitySelector, TimeRange, TranslatedString } from 'gtfs-types';
2
+ export interface TranslatedImage {
3
+ localized_image: LocalizedImage[];
4
+ }
5
+ /**
6
+ * A localized image. At least one translation must be provided.
7
+ * The image type must be a valid MIME type. The URL must be a valid URL.
8
+ * The language field must be a valid BCP 47 language tag.
9
+ *
10
+ * More info: https://gtfs.org/realtime/reference/#message-localizedimage
11
+ *
12
+ * @param language - The language of the image. Must be a valid BCP 47 language tag.
13
+ * @param mediaType - The MIME type of the image.
14
+ * @param url - The URL of the image.
15
+ *
16
+ */
17
+ interface LocalizedImage {
18
+ language: string;
19
+ media_type: string;
20
+ url: string;
21
+ }
22
+ /**
23
+ * An Alert is the JSON equivalent of a GTFS-RT Service Alert message.
24
+ * Please use a SimplifiedAlert as many convenience operations are already correctly applied.
25
+ */
26
+ export interface Alert {
27
+ active_period: TimeRange[];
28
+ cause: Cause;
29
+ description_text: TranslatedString;
30
+ effect: Effect;
31
+ header_text: TranslatedString;
32
+ id: string;
33
+ image: TranslatedImage;
34
+ informed_entity: EntitySelector[];
35
+ url: TranslatedString;
36
+ }
37
+ /**
38
+ * A Simplified Alert is the same as an Alert, but with the following differences:
39
+ * - The description is a string instead of a TranslatedString
40
+ * - The image URL is a string instead of a TranslatedImage
41
+ * - The URL is a string instead of a TranslatedString
42
+ * - The start_date and end_date are Date objects instead of TimeRange objects
43
+ * - All fields with translatable content are returned in the current app locale
44
+ */
45
+ export interface SimplifiedAlert {
46
+ cause: Cause;
47
+ description: string;
48
+ effect: Effect;
49
+ end_date: Date;
50
+ id: string;
51
+ image_url: null | string;
52
+ informed_entity: EntitySelector[];
53
+ locale: string;
54
+ start_date: Date;
55
+ title: string;
56
+ url: null | string;
57
+ }
58
+ export interface AlertGroupByDate {
59
+ items: Alert[];
60
+ label?: string;
61
+ title: string;
62
+ value: string;
63
+ }
64
+ export {};
65
+ //# sourceMappingURL=alerts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alerts.d.ts","sourceRoot":"","sources":["../../src/api/alerts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAIxF,MAAM,WAAW,eAAe;IAC/B,eAAe,EAAE,cAAc,EAAE,CAAA;CACjC;AAED;;;;;;;;;;;GAWG;AACH,UAAU,cAAc;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;CACX;AAID;;;GAGG;AACH,MAAM,WAAW,KAAK;IACrB,aAAa,EAAE,SAAS,EAAE,CAAA;IAC1B,KAAK,EAAE,KAAK,CAAA;IACZ,gBAAgB,EAAE,gBAAgB,CAAA;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,gBAAgB,CAAA;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,eAAe,CAAA;IACtB,eAAe,EAAE,cAAc,EAAE,CAAA;IACjC,GAAG,EAAE,gBAAgB,CAAA;CACrB;AAID;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC/B,KAAK,EAAE,KAAK,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,IAAI,CAAA;IACd,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,IAAI,GAAG,MAAM,CAAA;IACxB,eAAe,EAAE,cAAc,EAAE,CAAA;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,IAAI,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,IAAI,GAAG,MAAM,CAAA;CAClB;AAID,MAAM,WAAW,gBAAgB;IAChC,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACb"}
@@ -0,0 +1,2 @@
1
+ /* * */
2
+ export {};
@@ -0,0 +1,102 @@
1
+ export interface FacilitySource {
2
+ district_id: string;
3
+ district_name: string;
4
+ id: string;
5
+ lat: string;
6
+ locality: string;
7
+ lon: string;
8
+ municipality_id: string;
9
+ municipality_name: string;
10
+ name: string;
11
+ parish_id: string;
12
+ parish_name: string;
13
+ region_id: string;
14
+ region_name: string;
15
+ stops: string;
16
+ }
17
+ export interface Facility {
18
+ district_id: string;
19
+ district_name: string;
20
+ id: string;
21
+ lat: number;
22
+ locality: string;
23
+ lon: number;
24
+ municipality_id: string;
25
+ municipality_name: string;
26
+ name: string;
27
+ parish_id: string;
28
+ parish_name: string;
29
+ region_id: string;
30
+ region_name: string;
31
+ stop_ids: string[];
32
+ }
33
+ export interface SchoolsSource extends FacilitySource {
34
+ address: string;
35
+ cicles: string;
36
+ email: string;
37
+ grouping: string;
38
+ nature: string;
39
+ phone: string;
40
+ postal_code: string;
41
+ url: string;
42
+ }
43
+ export interface School extends Facility {
44
+ address: string;
45
+ cicles: string;
46
+ email: string;
47
+ grouping: string;
48
+ nature: string;
49
+ phone: string;
50
+ url: string;
51
+ }
52
+ export interface StoresSource extends FacilitySource {
53
+ address: string;
54
+ brand_name: string;
55
+ email: string;
56
+ google_place_id: string;
57
+ hours_friday: string;
58
+ hours_monday: string;
59
+ hours_saturday: string;
60
+ hours_special: string;
61
+ hours_sunday: string;
62
+ hours_thursday: string;
63
+ hours_tuesday: string;
64
+ hours_wednesday: string;
65
+ phone: string;
66
+ postal_code: string;
67
+ short_name: string;
68
+ url: string;
69
+ }
70
+ export interface StoreMetadata extends Facility {
71
+ address: string;
72
+ brand_name: string;
73
+ email: string;
74
+ google_place_id: string;
75
+ hours_friday: string[];
76
+ hours_monday: string[];
77
+ hours_saturday: string[];
78
+ hours_special: string;
79
+ hours_sunday: string[];
80
+ hours_thursday: string[];
81
+ hours_tuesday: string[];
82
+ hours_wednesday: string[];
83
+ phone: string;
84
+ postal_code: string;
85
+ short_name: string;
86
+ url: string;
87
+ }
88
+ export interface StoreRealtime {
89
+ active_counters: number;
90
+ current_ratio: number;
91
+ current_status: CurrentStoreStatus;
92
+ currently_waiting: number;
93
+ expected_wait_time: number;
94
+ is_open: boolean;
95
+ }
96
+ export declare enum CurrentStoreStatus {
97
+ busy = "busy",
98
+ closed = "closed",
99
+ open = "open"
100
+ }
101
+ export type Store = StoreMetadata & StoreRealtime;
102
+ //# sourceMappingURL=facilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facilities.d.ts","sourceRoot":"","sources":["../../src/api/facilities.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,eAAe,EAAE,MAAM,CAAA;IACvB,iBAAiB,EAAE,MAAM,CAAA;IACzB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,QAAQ;IACxB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,eAAe,EAAE,MAAM,CAAA;IACvB,iBAAi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G,EAAE,MAAM,CAAA;CACX;AAID,MAAM,WAAW,aAAc,SAAQ,QAAQ;IAC9C,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,eAAe,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,aAAa,EAAE,MAAM,CAAA;IACrB,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,aAAa,EAAE,MAAM,EAAE,CAAA;IACvB,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,aAAa;IAC7B,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,cAAc,EAAE,kBAAkB,CAAA;IAClC,iBAAiB,EAAE,MAAM,CAAA;IACzB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,OAAO,EAAE,OAAO,CAAA;CAChB;AAED,oBAAY,kBAAkB;IAC7B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACb;AAED,MAAM,MAAM,KAAK,GAAG,aAAa,GAAG,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ /* * */
2
+ export var CurrentStoreStatus;
3
+ (function (CurrentStoreStatus) {
4
+ CurrentStoreStatus["busy"] = "busy";
5
+ CurrentStoreStatus["closed"] = "closed";
6
+ CurrentStoreStatus["open"] = "open";
7
+ })(CurrentStoreStatus || (CurrentStoreStatus = {}));
@@ -0,0 +1,24 @@
1
+ export interface Region {
2
+ id: string;
3
+ name: string;
4
+ }
5
+ export interface District {
6
+ id: string;
7
+ name: string;
8
+ region_id: string;
9
+ }
10
+ export interface Municipality {
11
+ district_id: string;
12
+ id: string;
13
+ name: string;
14
+ region_id: string;
15
+ }
16
+ export interface Locality {
17
+ display: string;
18
+ district_id: string;
19
+ id: string;
20
+ municipality_id: string;
21
+ name: string;
22
+ region_id: string;
23
+ }
24
+ //# sourceMappingURL=locations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../src/api/locations.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,QAAQ;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,YAAY;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,QAAQ;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,EAAE,EAAE,MAAM,CAAA;IACV,eAAe,EAAE,MAAM,CAAA;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;CACjB"}
@@ -0,0 +1,2 @@
1
+ /* * */
2
+ export {};
@@ -0,0 +1,18 @@
1
+ interface ByHour {
2
+ hour: number;
3
+ qty: number;
4
+ }
5
+ interface ByDay {
6
+ by_hour: ByHour[];
7
+ day: string;
8
+ qty: number;
9
+ }
10
+ export interface DemandMetrics {
11
+ by_day: ByDay[];
12
+ end_date: string;
13
+ item_id: string;
14
+ start_date: string;
15
+ total_qty: number;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=metrics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../src/api/metrics.ts"],"names":[],"mappings":"AAAA,UAAU,MAAM;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACX;AAED,UAAU,KAAK;IACd,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,aAAa;IAC7B,MAAM,EAAE,KAAK,EAAE,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;CACjB"}
@@ -0,0 +1,2 @@
1
+ ;
2
+ export {};
@@ -0,0 +1,140 @@
1
+ import type { Feature, LineString } from 'geojson';
2
+ export interface Line {
3
+ color: string;
4
+ district_ids: string[];
5
+ facilities: string[];
6
+ id: string;
7
+ locality_ids: string[];
8
+ long_name: string;
9
+ municipality_ids: string[];
10
+ pattern_ids: string[];
11
+ region_ids: string[];
12
+ route_ids: string[];
13
+ short_name: string;
14
+ stop_ids: string[];
15
+ text_color: string;
16
+ tts_name: string;
17
+ }
18
+ export interface Route {
19
+ color: string;
20
+ district_ids: string[];
21
+ facilities: string[];
22
+ id: string;
23
+ line_id: string;
24
+ locality_ids: string[];
25
+ long_name: string;
26
+ municipality_ids: string[];
27
+ pattern_ids: string[];
28
+ region_ids: string[];
29
+ short_name: string;
30
+ stop_ids: string[];
31
+ text_color: string;
32
+ tts_name: string;
33
+ }
34
+ export interface Pattern {
35
+ color: string;
36
+ district_ids: string[];
37
+ facilities: string[];
38
+ headsign: string;
39
+ id: string;
40
+ line_id: string;
41
+ locality_ids: string[];
42
+ long_name: string;
43
+ municipality_ids: string[];
44
+ path: Waypoint[];
45
+ region_ids: string[];
46
+ route_id: string[];
47
+ shape_id: string;
48
+ short_name: string;
49
+ text_color: string;
50
+ trips: Trip[];
51
+ tts_headsign: string;
52
+ valid_on: string[];
53
+ version_id: string;
54
+ }
55
+ export interface Waypoint {
56
+ allow_drop_off: boolean;
57
+ allow_pickup: boolean;
58
+ distance: number;
59
+ distance_delta: number;
60
+ stop_id: string;
61
+ stop_sequence: number;
62
+ }
63
+ export interface Trip {
64
+ schedule: Arrival[];
65
+ service_ids: string[];
66
+ trip_group_id: string;
67
+ trip_ids: string[];
68
+ valid_on: string[];
69
+ version_id: string;
70
+ }
71
+ export interface Arrival {
72
+ arrival_time: string;
73
+ arrival_time_24h: string;
74
+ stop_id: string;
75
+ stop_sequence: number;
76
+ }
77
+ export interface Shape {
78
+ extension: number;
79
+ geojson: Feature<LineString>;
80
+ points: ShapePoint[];
81
+ shape_id: string;
82
+ }
83
+ export interface ShapePoint {
84
+ shape_dist_traveled: number;
85
+ shape_pt_lat: number;
86
+ shape_pt_lon: number;
87
+ shape_pt_sequence: number;
88
+ }
89
+ export interface Stop {
90
+ district_id: string;
91
+ facilities: string[];
92
+ id: string;
93
+ lat: number;
94
+ line_ids: string[];
95
+ locality_id: string;
96
+ lon: number;
97
+ long_name: string;
98
+ municipality_id: string;
99
+ operational_status: StopOperationalStatus;
100
+ pattern_ids: string[];
101
+ region_id: string;
102
+ route_ids: string[];
103
+ short_name: string;
104
+ tts_name: string;
105
+ wheelchair_boarding: boolean;
106
+ }
107
+ export declare enum StopOperationalStatus {
108
+ active = "active",
109
+ seasonal = "seasonal",
110
+ voided = "voided"
111
+ }
112
+ export interface Date {
113
+ day_type: DateDayType;
114
+ description: string;
115
+ holiday: boolean;
116
+ id: string;
117
+ period_id: string;
118
+ }
119
+ export declare enum DateDayType {
120
+ saturday = "saturday",
121
+ sundayHoliday = "sunday_holiday",
122
+ weekday = "weekday"
123
+ }
124
+ export interface Period {
125
+ dates: string[];
126
+ id: string;
127
+ name: string;
128
+ valid_on: string[];
129
+ valid_ranges: DateRange[];
130
+ }
131
+ export interface Archive {
132
+ agency_id: string;
133
+ id: string;
134
+ valid_range: DateRange;
135
+ }
136
+ export interface DateRange {
137
+ end?: string;
138
+ start: string;
139
+ }
140
+ //# sourceMappingURL=network.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../src/api/network.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAInD,MAAM,WAAW,IAAI;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CAChB;AAID,MAAM,WAAW,KAAK;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,EAAE,MAAM,EAAE,CAAA;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CAChB;AAID,MA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B;AAID,MAAM,WAAW,MAAM;IACtB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,YAAY,EAAE,SAAS,EAAE,CAAA;CACzB;AAID,MAAM,WAAW,OAAO;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,EAAE,SAAS,CAAA;CACtB;AAGD,MAAM,WAAW,SAAS;IACzB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACb"}
@@ -0,0 +1,13 @@
1
+ /* * */
2
+ export var StopOperationalStatus;
3
+ (function (StopOperationalStatus) {
4
+ StopOperationalStatus["active"] = "active";
5
+ StopOperationalStatus["seasonal"] = "seasonal";
6
+ StopOperationalStatus["voided"] = "voided";
7
+ })(StopOperationalStatus || (StopOperationalStatus = {}));
8
+ export var DateDayType;
9
+ (function (DateDayType) {
10
+ DateDayType["saturday"] = "saturday";
11
+ DateDayType["sundayHoliday"] = "sunday_holiday";
12
+ DateDayType["weekday"] = "weekday";
13
+ })(DateDayType || (DateDayType = {}));
@@ -0,0 +1,72 @@
1
+ export interface Vehicle {
2
+ agency_id: string;
3
+ bearing?: number;
4
+ bikes_allowed: boolean;
5
+ block_id?: string;
6
+ capacity_seated?: number;
7
+ capacity_standing?: number;
8
+ capacity_total?: number;
9
+ current_status?: VehicleCurrentStatus;
10
+ direction_id?: number;
11
+ emission_class?: VehicleEmissionClass;
12
+ event_id?: string;
13
+ id: string;
14
+ lat?: number;
15
+ license_plate?: string;
16
+ line_id: string;
17
+ lon?: number;
18
+ make?: string;
19
+ model?: string;
20
+ occupancy_estimated?: number;
21
+ occupancy_status?: VehicleOccupancyStatus;
22
+ owner?: string;
23
+ pattern_id: string;
24
+ propulsion?: VehiclePropulsion;
25
+ registration_date?: string;
26
+ route_id?: string;
27
+ schedule_relationship?: VehicleScheduleRelationship;
28
+ shift_id?: string;
29
+ speed?: number;
30
+ stop_id?: string;
31
+ timestamp?: number;
32
+ trip_id?: string;
33
+ wheelchair_accessible: boolean;
34
+ }
35
+ export declare enum VehicleEmissionClass {
36
+ euro1 = "euro_1",
37
+ euro2 = "euro_2",
38
+ euro3 = "euro_3",
39
+ euro4 = "euro_4",
40
+ euro5 = "euro_5",
41
+ euro6 = "euro_6"
42
+ }
43
+ export declare function convertVehicleEmissionClassCode(emissionClassCode: string): undefined | VehicleEmissionClass;
44
+ export declare enum VehiclePropulsion {
45
+ biodiesel = "biodiesel",
46
+ diesel = "diesel",
47
+ electricity = "electricity",
48
+ gasoline = "gasoline",
49
+ hybrid = "hybrid",
50
+ lpgAuto = "lpg_auto",
51
+ mixture = "mixture",
52
+ natural_gas = "natural_gas"
53
+ }
54
+ export declare function convertVehiclePropulsionCode(propulsionCode: string): undefined | VehiclePropulsion;
55
+ export declare enum VehicleCurrentStatus {
56
+ in_transit_to = "in_transit_to",
57
+ incoming_at = "incoming_at",
58
+ stopped_at = "stopped_at"
59
+ }
60
+ export declare enum VehicleScheduleRelationship {
61
+ added = "added",
62
+ canceled = "canceled",
63
+ scheduled = "scheduled",
64
+ unscheduled = "unscheduled"
65
+ }
66
+ export declare enum VehicleOccupancyStatus {
67
+ empty = "empty",
68
+ full = "full",
69
+ seats_available = "seats_available",
70
+ standing_only = "standing_only"
71
+ }
72
+ //# sourceMappingURL=vehicles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vehicles.d.ts","sourceRoot":"","sources":["../../src/api/vehicles.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACvB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE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AAW;IACjB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,aAAa;IACpB,OAAO,YAAY;IACnB,WAAW,gBAAgB;CAC3B;AAED,wBAAgB,4BAA4B,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,GAAG,iBAAiB,CAqBlG;AAID,oBAAY,oBAAoB;IAC/B,aAAa,kBAAkB;IAC/B,WAAW,gBAAgB;IAC3B,UAAU,eAAe;CACzB;AAID,oBAAY,2BAA2B;IACtC,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC3B;AAID,oBAAY,sBAAsB;IACjC,KAAK,UAAU;IACf,IAAI,SAAS;IACb,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;CAC/B"}
@@ -0,0 +1,87 @@
1
+ /* * */
2
+ /* * */
3
+ export var VehicleEmissionClass;
4
+ (function (VehicleEmissionClass) {
5
+ VehicleEmissionClass["euro1"] = "euro_1";
6
+ VehicleEmissionClass["euro2"] = "euro_2";
7
+ VehicleEmissionClass["euro3"] = "euro_3";
8
+ VehicleEmissionClass["euro4"] = "euro_4";
9
+ VehicleEmissionClass["euro5"] = "euro_5";
10
+ VehicleEmissionClass["euro6"] = "euro_6";
11
+ })(VehicleEmissionClass || (VehicleEmissionClass = {}));
12
+ ;
13
+ export function convertVehicleEmissionClassCode(emissionClassCode) {
14
+ switch (emissionClassCode) {
15
+ case '1':
16
+ return VehicleEmissionClass.euro1;
17
+ case '2':
18
+ return VehicleEmissionClass.euro2;
19
+ case '3':
20
+ return VehicleEmissionClass.euro3;
21
+ case '4':
22
+ return VehicleEmissionClass.euro4;
23
+ case '5':
24
+ return VehicleEmissionClass.euro5;
25
+ case '6':
26
+ return VehicleEmissionClass.euro6;
27
+ default:
28
+ return undefined;
29
+ }
30
+ }
31
+ /* * */
32
+ export var VehiclePropulsion;
33
+ (function (VehiclePropulsion) {
34
+ VehiclePropulsion["biodiesel"] = "biodiesel";
35
+ VehiclePropulsion["diesel"] = "diesel";
36
+ VehiclePropulsion["electricity"] = "electricity";
37
+ VehiclePropulsion["gasoline"] = "gasoline";
38
+ VehiclePropulsion["hybrid"] = "hybrid";
39
+ VehiclePropulsion["lpgAuto"] = "lpg_auto";
40
+ VehiclePropulsion["mixture"] = "mixture";
41
+ VehiclePropulsion["natural_gas"] = "natural_gas";
42
+ })(VehiclePropulsion || (VehiclePropulsion = {}));
43
+ export function convertVehiclePropulsionCode(propulsionCode) {
44
+ switch (propulsionCode) {
45
+ case '1':
46
+ return VehiclePropulsion.gasoline;
47
+ case '2':
48
+ return VehiclePropulsion.diesel;
49
+ case '3':
50
+ return VehiclePropulsion.lpgAuto;
51
+ case '4':
52
+ return VehiclePropulsion.mixture;
53
+ case '5':
54
+ return VehiclePropulsion.biodiesel;
55
+ case '6':
56
+ return VehiclePropulsion.electricity;
57
+ case '7':
58
+ return VehiclePropulsion.hybrid;
59
+ case '8':
60
+ return VehiclePropulsion.natural_gas;
61
+ default:
62
+ return undefined;
63
+ }
64
+ }
65
+ /* * */
66
+ export var VehicleCurrentStatus;
67
+ (function (VehicleCurrentStatus) {
68
+ VehicleCurrentStatus["in_transit_to"] = "in_transit_to";
69
+ VehicleCurrentStatus["incoming_at"] = "incoming_at";
70
+ VehicleCurrentStatus["stopped_at"] = "stopped_at";
71
+ })(VehicleCurrentStatus || (VehicleCurrentStatus = {}));
72
+ /* * */
73
+ export var VehicleScheduleRelationship;
74
+ (function (VehicleScheduleRelationship) {
75
+ VehicleScheduleRelationship["added"] = "added";
76
+ VehicleScheduleRelationship["canceled"] = "canceled";
77
+ VehicleScheduleRelationship["scheduled"] = "scheduled";
78
+ VehicleScheduleRelationship["unscheduled"] = "unscheduled";
79
+ })(VehicleScheduleRelationship || (VehicleScheduleRelationship = {}));
80
+ /* * */
81
+ export var VehicleOccupancyStatus;
82
+ (function (VehicleOccupancyStatus) {
83
+ VehicleOccupancyStatus["empty"] = "empty";
84
+ VehicleOccupancyStatus["full"] = "full";
85
+ VehicleOccupancyStatus["seats_available"] = "seats_available";
86
+ VehicleOccupancyStatus["standing_only"] = "standing_only";
87
+ })(VehicleOccupancyStatus || (VehicleOccupancyStatus = {}));
@@ -0,0 +1,2 @@
1
+ export * from 'gtfs-types';
2
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/gtfs/core.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -0,0 +1 @@
1
+ export * from 'gtfs-types';