gatelogue-types 2.0.0-b11

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,177 @@
1
+ /**
2
+ * # Usage
3
+ * The data can be imported into your JavaScript/TypeScript project with classes and type definitions.
4
+ *
5
+ * To add `gatelogue-types` (TypeScript) into your project:
6
+ * * pnpm: `pnpm add mrt-map/gatelogue#path:/gatelogue-types-ts`
7
+ * * npm: `npm i 'https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
8
+ * * yarn: `yarn add 'https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
9
+ * * bun: `bun add 'git+https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
10
+ *
11
+ * To retrieve the data:
12
+ * ```ts
13
+ * import { GD } from "gatelogue-types";
14
+ * await GD.get() // retrieve data, with sources
15
+ * await GD.getNoSources() // retrieve data, no sources
16
+ * ```
17
+ *
18
+ * @packageDocumentation
19
+ */
20
+ export type StringID<_ extends Node> = string;
21
+ export type IntID<_ extends Node> = number;
22
+ export type World = "Old" | "New" | "Space";
23
+ export type RailMode = "warp" | "cart" | "traincarts" | "vehicles";
24
+ export type SeaMode = "ferry" | "cruise";
25
+ export type PlaneMode = "helicopter" | "seaplane" | "warp plane" | "traincarts plane";
26
+ export type Sourced<T, S extends boolean = true> = S extends true ? {
27
+ v: T;
28
+ s: string[];
29
+ } : T;
30
+ export interface Node {
31
+ i: IntID<Node>;
32
+ source: string[];
33
+ type: string;
34
+ }
35
+ export interface Located<S extends boolean = true> extends Node {
36
+ world: Sourced<World, S> | null;
37
+ coordinates: Sourced<[number, number]> | null;
38
+ proximity: Record<StringID<Located>, Sourced<{
39
+ distance: number;
40
+ explicit: boolean;
41
+ }>>;
42
+ shared_facility: Sourced<IntID<Located>>[];
43
+ }
44
+ export interface Direction<St extends Located, S extends boolean = true> {
45
+ direction: IntID<St>;
46
+ forward_label: string | null;
47
+ backward_label: string | null;
48
+ one_way: boolean | Sourced<boolean, S>;
49
+ }
50
+ export interface Connection<L extends Node, St extends Located, S extends boolean = true> {
51
+ line: IntID<L>;
52
+ direction: Direction<St, S> | null;
53
+ }
54
+ export interface AirFlight<S extends boolean = true> extends Node {
55
+ codes: string[];
56
+ mode: Sourced<PlaneMode, S> | null;
57
+ gates: Sourced<IntID<AirGate<S>>, S>[];
58
+ airline: Sourced<IntID<AirAirline<S>>, S>;
59
+ }
60
+ export interface AirAirport<S extends boolean = true> extends Located {
61
+ code: string;
62
+ name: Sourced<string, S> | null;
63
+ link: Sourced<string, S> | null;
64
+ gates: Sourced<IntID<AirGate<S>>, S>[];
65
+ }
66
+ export interface AirGate<S extends boolean = true> extends Node {
67
+ code: string | null;
68
+ size: Sourced<string, S> | null;
69
+ flights: Sourced<IntID<AirFlight<S>>, S>[];
70
+ airport: Sourced<IntID<AirAirport<S>>, S>;
71
+ airline: Sourced<IntID<AirAirline<S>>, S> | null;
72
+ }
73
+ export interface AirAirline<S extends boolean = true> extends Node {
74
+ name: string;
75
+ link: Sourced<string, S> | null;
76
+ flights: Sourced<IntID<AirFlight<S>>, S>[];
77
+ gates: Sourced<IntID<AirGate<S>>, S>[];
78
+ }
79
+ export interface RailCompany<S extends boolean = true> extends Node {
80
+ name: string;
81
+ lines: Sourced<IntID<RailLine<S>>, S>[];
82
+ stations: Sourced<IntID<RailStation<S>>, S>[];
83
+ local: boolean;
84
+ }
85
+ export interface RailLine<S extends boolean = true> extends Node {
86
+ code: string;
87
+ mode: Sourced<RailMode, S> | null;
88
+ name: Sourced<string, S> | null;
89
+ colour: Sourced<string, S> | null;
90
+ company: Sourced<IntID<RailCompany<S>>, S>;
91
+ ref_station: Sourced<IntID<RailStation<S>>, S>;
92
+ }
93
+ export interface RailStation<S extends boolean = true> extends Located<S> {
94
+ codes: string[];
95
+ name: Sourced<string, S> | null;
96
+ company: Sourced<IntID<RailCompany<S>>, S>;
97
+ connections: Record<StringID<RailStation<S>>, Sourced<Connection<RailLine, RailStation, S>>[]>;
98
+ }
99
+ export interface SeaCompany<S extends boolean = true> extends Node {
100
+ name: string;
101
+ lines: Sourced<IntID<SeaLine<S>>, S>[];
102
+ stations: Sourced<IntID<SeaStop<S>>, S>[];
103
+ local: boolean;
104
+ }
105
+ export interface SeaLine<S extends boolean = true> extends Node {
106
+ code: string;
107
+ mode: Sourced<SeaMode, S> | null;
108
+ name: Sourced<string, S> | null;
109
+ colour: Sourced<string, S> | null;
110
+ company: Sourced<IntID<SeaCompany<S>>, S>;
111
+ ref_stop: Sourced<IntID<SeaStop<S>>, S>;
112
+ }
113
+ export interface SeaStop<S extends boolean = true> extends Located<S> {
114
+ codes: string[];
115
+ name: Sourced<string, S> | null;
116
+ company: Sourced<IntID<SeaCompany<S>>, S>;
117
+ connections: Record<StringID<SeaStop<S>>, Sourced<Connection<SeaLine, SeaStop, S>>[]>;
118
+ }
119
+ export interface BusCompany<S extends boolean = true> extends Node {
120
+ name: string;
121
+ lines: Sourced<IntID<BusLine<S>>, S>[];
122
+ stations: Sourced<IntID<BusStop<S>>, S>[];
123
+ local: boolean;
124
+ }
125
+ export interface BusLine<S extends boolean = true> extends Node {
126
+ code: string;
127
+ name: Sourced<string, S> | null;
128
+ colour: Sourced<string, S> | null;
129
+ company: Sourced<IntID<BusCompany<S>>, S>;
130
+ ref_stop: Sourced<IntID<BusStop<S>>, S>;
131
+ }
132
+ export interface BusStop<S extends boolean = true> extends Located<S> {
133
+ codes: string[];
134
+ name: Sourced<string, S> | null;
135
+ company: Sourced<IntID<BusCompany<S>>, S>;
136
+ connections: Record<StringID<BusStop<S>>, Sourced<Connection<BusLine, BusStop, S>>[]>;
137
+ }
138
+ export interface GatelogueData {
139
+ version: number;
140
+ timestamp: string;
141
+ nodes: Record<StringID<Node>, Node>;
142
+ }
143
+ export declare class GD<S extends boolean = true> {
144
+ data: GatelogueData;
145
+ constructor(data: GatelogueData);
146
+ static get(): Promise<GD>;
147
+ static getNoSources(): Promise<GD<false>>;
148
+ node(id: StringID<Node>): Node | undefined;
149
+ get nodes(): Node[];
150
+ airFlight(id: StringID<AirFlight<S>>): AirFlight<S> | undefined;
151
+ get airFlights(): AirFlight<S>[];
152
+ airAirport(id: StringID<AirAirport<S>>): AirAirport<S> | undefined;
153
+ get airAirports(): AirAirport<S>[];
154
+ airGate(id: StringID<AirGate<S>>): AirGate<S> | undefined;
155
+ get airGates(): AirGate<S>[];
156
+ airAirline(id: StringID<AirAirline<S>>): AirAirline<S> | undefined;
157
+ get airAirlines(): AirAirline<S>[];
158
+ railCompany(id: StringID<RailCompany<S>>): RailCompany<S> | undefined;
159
+ get railCompanies(): RailCompany<S>[];
160
+ railLine(id: StringID<RailLine<S>>): RailLine<S> | undefined;
161
+ get railLines(): RailLine<S>[];
162
+ railStation(id: StringID<RailStation<S>>): RailStation<S> | undefined;
163
+ get railStations(): RailStation<S>[];
164
+ seaCompany(id: StringID<SeaCompany<S>>): SeaCompany<S> | undefined;
165
+ get seaCompanies(): SeaCompany<S>[];
166
+ seaLine(id: StringID<SeaLine<S>>): SeaLine<S> | undefined;
167
+ get seaLines(): SeaLine<S>[];
168
+ seaStop(id: StringID<SeaStop<S>>): SeaStop<S> | undefined;
169
+ get seaStops(): SeaStop<S>[];
170
+ busCompany(id: StringID<BusCompany<S>>): BusCompany<S> | undefined;
171
+ get busCompanies(): BusCompany<S>[];
172
+ busLine(id: StringID<BusLine<S>>): BusLine<S> | undefined;
173
+ get busLines(): BusLine<S>[];
174
+ busStop(id: StringID<BusStop<S>>): BusStop<S> | undefined;
175
+ get busStops(): BusStop<S>[];
176
+ }
177
+ //# sourceMappingURL=lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../lib.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,IAAI,IAAI,MAAM,CAAC;AAC9C,MAA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AC,CAAC,GAAG,SAAS;IAGzD,IAAI,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAE3B;IAED,OAAO,CAAC,EAAE,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,SAAS;IAGzD,IAAI,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAE3B;CACF"}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ /**
3
+ * # Usage
4
+ * The data can be imported into your JavaScript/TypeScript project with classes and type definitions.
5
+ *
6
+ * To add `gatelogue-types` (TypeScript) into your project:
7
+ * * pnpm: `pnpm add mrt-map/gatelogue#path:/gatelogue-types-ts`
8
+ * * npm: `npm i 'https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
9
+ * * yarn: `yarn add 'https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
10
+ * * bun: `bun add 'git+https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
11
+ *
12
+ * To retrieve the data:
13
+ * ```ts
14
+ * import { GD } from "gatelogue-types";
15
+ * await GD.get() // retrieve data, with sources
16
+ * await GD.getNoSources() // retrieve data, no sources
17
+ * ```
18
+ *
19
+ * @packageDocumentation
20
+ */
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.GD = void 0;
23
+ // noinspection JSUnusedGlobalSymbols
24
+ class GD {
25
+ data;
26
+ constructor(data) {
27
+ this.data = data;
28
+ }
29
+ static async get() {
30
+ return new GD(await fetch("https://raw.githubusercontent.com/MRT-Map/gatelogue/dist/data.json").then((res) => res.json()));
31
+ }
32
+ static async getNoSources() {
33
+ return new GD(await fetch("https://raw.githubusercontent.com/MRT-Map/gatelogue/dist/data_no_sources.json").then((res) => res.json()));
34
+ }
35
+ node(id) {
36
+ return this.data.nodes[id];
37
+ }
38
+ get nodes() {
39
+ return Object.values(this.data.nodes);
40
+ }
41
+ airFlight(id) {
42
+ return this.node(id);
43
+ }
44
+ get airFlights() {
45
+ return this.nodes.filter((a) => a.type === "AirFlight");
46
+ }
47
+ airAirport(id) {
48
+ return this.node(id);
49
+ }
50
+ get airAirports() {
51
+ return this.nodes.filter((a) => a.type === "AirAirport");
52
+ }
53
+ airGate(id) {
54
+ return this.node(id);
55
+ }
56
+ get airGates() {
57
+ return this.nodes.filter((a) => a.type === "AirGate");
58
+ }
59
+ airAirline(id) {
60
+ return this.node(id);
61
+ }
62
+ get airAirlines() {
63
+ return this.nodes.filter((a) => a.type === "AirAirline");
64
+ }
65
+ railCompany(id) {
66
+ return this.node(id);
67
+ }
68
+ get railCompanies() {
69
+ return this.nodes.filter((a) => a.type === "RailCompany");
70
+ }
71
+ railLine(id) {
72
+ return this.node(id);
73
+ }
74
+ get railLines() {
75
+ return this.nodes.filter((a) => a.type === "RailLine");
76
+ }
77
+ railStation(id) {
78
+ return this.node(id);
79
+ }
80
+ get railStations() {
81
+ return this.nodes.filter((a) => a.type === "RailStation");
82
+ }
83
+ seaCompany(id) {
84
+ return this.node(id);
85
+ }
86
+ get seaCompanies() {
87
+ return this.nodes.filter((a) => a.type === "SeaCompany");
88
+ }
89
+ seaLine(id) {
90
+ return this.node(id);
91
+ }
92
+ get seaLines() {
93
+ return this.nodes.filter((a) => a.type === "SeaLine");
94
+ }
95
+ seaStop(id) {
96
+ return this.node(id);
97
+ }
98
+ get seaStops() {
99
+ return this.nodes.filter((a) => a.type === "SeaStop");
100
+ }
101
+ busCompany(id) {
102
+ return this.node(id);
103
+ }
104
+ get busCompanies() {
105
+ return this.nodes.filter((a) => a.type === "BusCompany");
106
+ }
107
+ busLine(id) {
108
+ return this.node(id);
109
+ }
110
+ get busLines() {
111
+ return this.nodes.filter((a) => a.type === "BusLine");
112
+ }
113
+ busStop(id) {
114
+ return this.node(id);
115
+ }
116
+ get busStops() {
117
+ return this.nodes.filter((a) => a.type === "BusStop");
118
+ }
119
+ }
120
+ exports.GD = G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AC,CAAC,IAAI,KAAK,SAAS,CAAU,CAAC;IACjE,CAAC;IAED,OAAO,CAAC,EAAwB;QAC9B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,CAAU,CAAC;IAChC,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,SAAS,CAAU,CAAC;IACjE,CAAC;CACF;AAxHD,gBAwHC"}
@@ -0,0 +1 @@
1
+ {"fileNames":["../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../lib.ts"],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"f8d72c95aac92e7aa6e828b04c8caf3efcc7f4713ee337409c35190e1ff434df","signature":"ffe00996022fe4df569fb386bec3bff0cdc1aff5462bf09512c5a46ecb264e1c"}],"root":[81],"options":{"allowJs":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99,"verbatimModuleSyntax":false},"latestChangedDtsFile":"./lib.d.ts","version":"5.8.3"}
package/dist/lib.d.ts ADDED
@@ -0,0 +1,177 @@
1
+ /**
2
+ * # Usage
3
+ * The data can be imported into your JavaScript/TypeScript project with classes and type definitions.
4
+ *
5
+ * To add `gatelogue-types` (TypeScript) into your project:
6
+ * * pnpm: `pnpm add mrt-map/gatelogue#path:/gatelogue-types-ts`
7
+ * * npm: `npm i 'https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
8
+ * * yarn: `yarn add 'https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
9
+ * * bun: `bun add 'git+https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
10
+ *
11
+ * To retrieve the data:
12
+ * ```ts
13
+ * import { GD } from "gatelogue-types";
14
+ * await GD.get() // retrieve data, with sources
15
+ * await GD.getNoSources() // retrieve data, no sources
16
+ * ```
17
+ *
18
+ * @packageDocumentation
19
+ */
20
+ export type StringID<_ extends Node> = string;
21
+ export type IntID<_ extends Node> = number;
22
+ export type World = "Old" | "New" | "Space";
23
+ export type RailMode = "warp" | "cart" | "traincarts" | "vehicles";
24
+ export type SeaMode = "ferry" | "cruise";
25
+ export type PlaneMode = "helicopter" | "seaplane" | "warp plane" | "traincarts plane";
26
+ export type Sourced<T, S extends boolean = true> = S extends true ? {
27
+ v: T;
28
+ s: string[];
29
+ } : T;
30
+ export interface Node {
31
+ i: IntID<Node>;
32
+ source: string[];
33
+ type: string;
34
+ }
35
+ export interface Located<S extends boolean = true> extends Node {
36
+ world: Sourced<World, S> | null;
37
+ coordinates: Sourced<[number, number]> | null;
38
+ proximity: Record<StringID<Located>, Sourced<{
39
+ distance: number;
40
+ explicit: boolean;
41
+ }>>;
42
+ shared_facility: Sourced<IntID<Located>>[];
43
+ }
44
+ export interface Direction<St extends Located, S extends boolean = true> {
45
+ direction: IntID<St>;
46
+ forward_label: string | null;
47
+ backward_label: string | null;
48
+ one_way: boolean | Sourced<boolean, S>;
49
+ }
50
+ export interface Connection<L extends Node, St extends Located, S extends boolean = true> {
51
+ line: IntID<L>;
52
+ direction: Direction<St, S> | null;
53
+ }
54
+ export interface AirFlight<S extends boolean = true> extends Node {
55
+ codes: string[];
56
+ mode: Sourced<PlaneMode, S> | null;
57
+ gates: Sourced<IntID<AirGate<S>>, S>[];
58
+ airline: Sourced<IntID<AirAirline<S>>, S>;
59
+ }
60
+ export interface AirAirport<S extends boolean = true> extends Located {
61
+ code: string;
62
+ name: Sourced<string, S> | null;
63
+ link: Sourced<string, S> | null;
64
+ gates: Sourced<IntID<AirGate<S>>, S>[];
65
+ }
66
+ export interface AirGate<S extends boolean = true> extends Node {
67
+ code: string | null;
68
+ size: Sourced<string, S> | null;
69
+ flights: Sourced<IntID<AirFlight<S>>, S>[];
70
+ airport: Sourced<IntID<AirAirport<S>>, S>;
71
+ airline: Sourced<IntID<AirAirline<S>>, S> | null;
72
+ }
73
+ export interface AirAirline<S extends boolean = true> extends Node {
74
+ name: string;
75
+ link: Sourced<string, S> | null;
76
+ flights: Sourced<IntID<AirFlight<S>>, S>[];
77
+ gates: Sourced<IntID<AirGate<S>>, S>[];
78
+ }
79
+ export interface RailCompany<S extends boolean = true> extends Node {
80
+ name: string;
81
+ lines: Sourced<IntID<RailLine<S>>, S>[];
82
+ stations: Sourced<IntID<RailStation<S>>, S>[];
83
+ local: boolean;
84
+ }
85
+ export interface RailLine<S extends boolean = true> extends Node {
86
+ code: string;
87
+ mode: Sourced<RailMode, S> | null;
88
+ name: Sourced<string, S> | null;
89
+ colour: Sourced<string, S> | null;
90
+ company: Sourced<IntID<RailCompany<S>>, S>;
91
+ ref_station: Sourced<IntID<RailStation<S>>, S>;
92
+ }
93
+ export interface RailStation<S extends boolean = true> extends Located<S> {
94
+ codes: string[];
95
+ name: Sourced<string, S> | null;
96
+ company: Sourced<IntID<RailCompany<S>>, S>;
97
+ connections: Record<StringID<RailStation<S>>, Sourced<Connection<RailLine, RailStation, S>>[]>;
98
+ }
99
+ export interface SeaCompany<S extends boolean = true> extends Node {
100
+ name: string;
101
+ lines: Sourced<IntID<SeaLine<S>>, S>[];
102
+ stations: Sourced<IntID<SeaStop<S>>, S>[];
103
+ local: boolean;
104
+ }
105
+ export interface SeaLine<S extends boolean = true> extends Node {
106
+ code: string;
107
+ mode: Sourced<SeaMode, S> | null;
108
+ name: Sourced<string, S> | null;
109
+ colour: Sourced<string, S> | null;
110
+ company: Sourced<IntID<SeaCompany<S>>, S>;
111
+ ref_stop: Sourced<IntID<SeaStop<S>>, S>;
112
+ }
113
+ export interface SeaStop<S extends boolean = true> extends Located<S> {
114
+ codes: string[];
115
+ name: Sourced<string, S> | null;
116
+ company: Sourced<IntID<SeaCompany<S>>, S>;
117
+ connections: Record<StringID<SeaStop<S>>, Sourced<Connection<SeaLine, SeaStop, S>>[]>;
118
+ }
119
+ export interface BusCompany<S extends boolean = true> extends Node {
120
+ name: string;
121
+ lines: Sourced<IntID<BusLine<S>>, S>[];
122
+ stations: Sourced<IntID<BusStop<S>>, S>[];
123
+ local: boolean;
124
+ }
125
+ export interface BusLine<S extends boolean = true> extends Node {
126
+ code: string;
127
+ name: Sourced<string, S> | null;
128
+ colour: Sourced<string, S> | null;
129
+ company: Sourced<IntID<BusCompany<S>>, S>;
130
+ ref_stop: Sourced<IntID<BusStop<S>>, S>;
131
+ }
132
+ export interface BusStop<S extends boolean = true> extends Located<S> {
133
+ codes: string[];
134
+ name: Sourced<string, S> | null;
135
+ company: Sourced<IntID<BusCompany<S>>, S>;
136
+ connections: Record<StringID<BusStop<S>>, Sourced<Connection<BusLine, BusStop, S>>[]>;
137
+ }
138
+ export interface GatelogueData {
139
+ version: number;
140
+ timestamp: string;
141
+ nodes: Record<StringID<Node>, Node>;
142
+ }
143
+ export declare class GD<S extends boolean = true> {
144
+ data: GatelogueData;
145
+ constructor(data: GatelogueData);
146
+ static get(): Promise<GD>;
147
+ static getNoSources(): Promise<GD<false>>;
148
+ node(id: StringID<Node>): Node | undefined;
149
+ get nodes(): Node[];
150
+ airFlight(id: StringID<AirFlight<S>>): AirFlight<S> | undefined;
151
+ get airFlights(): AirFlight<S>[];
152
+ airAirport(id: StringID<AirAirport<S>>): AirAirport<S> | undefined;
153
+ get airAirports(): AirAirport<S>[];
154
+ airGate(id: StringID<AirGate<S>>): AirGate<S> | undefined;
155
+ get airGates(): AirGate<S>[];
156
+ airAirline(id: StringID<AirAirline<S>>): AirAirline<S> | undefined;
157
+ get airAirlines(): AirAirline<S>[];
158
+ railCompany(id: StringID<RailCompany<S>>): RailCompany<S> | undefined;
159
+ get railCompanies(): RailCompany<S>[];
160
+ railLine(id: StringID<RailLine<S>>): RailLine<S> | undefined;
161
+ get railLines(): RailLine<S>[];
162
+ railStation(id: StringID<RailStation<S>>): RailStation<S> | undefined;
163
+ get railStations(): RailStation<S>[];
164
+ seaCompany(id: StringID<SeaCompany<S>>): SeaCompany<S> | undefined;
165
+ get seaCompanies(): SeaCompany<S>[];
166
+ seaLine(id: StringID<SeaLine<S>>): SeaLine<S> | undefined;
167
+ get seaLines(): SeaLine<S>[];
168
+ seaStop(id: StringID<SeaStop<S>>): SeaStop<S> | undefined;
169
+ get seaStops(): SeaStop<S>[];
170
+ busCompany(id: StringID<BusCompany<S>>): BusCompany<S> | undefined;
171
+ get busCompanies(): BusCompany<S>[];
172
+ busLine(id: StringID<BusLine<S>>): BusLine<S> | undefined;
173
+ get busLines(): BusLine<S>[];
174
+ busStop(id: StringID<BusStop<S>>): BusStop<S> | undefined;
175
+ get busStops(): BusStop<S>[];
176
+ }
177
+ //# sourceMappingURL=lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../lib.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,IAAI,IAAI,MAAM,CAAC;AAC9C,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,IAAI,IAAI,MAAM,CAAC;AAC3C,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;AAC5C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;AACnE,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC;AACzC,MAAM,MAAM,SAAS,GACjB,YAAY,GACZ,UAAU,GACV,YAAY,GACZ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Usage
3
+ * The data can be imported into your JavaScript/TypeScript project with classes and type definitions.
4
+ *
5
+ * To add `gatelogue-types` (TypeScript) into your project:
6
+ * * pnpm: `pnpm add mrt-map/gatelogue#path:/gatelogue-types-ts`
7
+ * * npm: `npm i 'https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
8
+ * * yarn: `yarn add 'https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
9
+ * * bun: `bun add 'git+https://gitpkg.vercel.app/mrt-map/gatelogue/gatelogue-types-ts?main'`
10
+ *
11
+ * To retrieve the data:
12
+ * ```ts
13
+ * import { GD } from "gatelogue-types";
14
+ * await GD.get() // retrieve data, with sources
15
+ * await GD.getNoSources() // retrieve data, no sources
16
+ * ```
17
+ *
18
+ * @packageDocumentation
19
+ */
20
+ // noinspection JSUnusedGlobalSymbols
21
+ export class GD {
22
+ data;
23
+ constructor(data) {
24
+ this.data = data;
25
+ }
26
+ static async get() {
27
+ return new GD(await fetch("https://raw.githubusercontent.com/MRT-Map/gatelogue/dist/data.json").then((res) => res.json()));
28
+ }
29
+ static async getNoSources() {
30
+ return new GD(await fetch("https://raw.githubusercontent.com/MRT-Map/gatelogue/dist/data_no_sources.json").then((res) => res.json()));
31
+ }
32
+ node(id) {
33
+ return this.data.nodes[id];
34
+ }
35
+ get nodes() {
36
+ return Object.values(this.data.nodes);
37
+ }
38
+ airFlight(id) {
39
+ return this.node(id);
40
+ }
41
+ get airFlights() {
42
+ return this.nodes.filter((a) => a.type === "AirFlight");
43
+ }
44
+ airAirport(id) {
45
+ return this.node(id);
46
+ }
47
+ get airAirports() {
48
+ return this.nodes.filter((a) => a.type === "AirAirport");
49
+ }
50
+ airGate(id) {
51
+ return this.node(id);
52
+ }
53
+ get airGates() {
54
+ return this.nodes.filter((a) => a.type === "AirGate");
55
+ }
56
+ airAirline(id) {
57
+ return this.node(id);
58
+ }
59
+ get airAirlines() {
60
+ return this.nodes.filter((a) => a.type === "AirAirline");
61
+ }
62
+ railCompany(id) {
63
+ return this.node(id);
64
+ }
65
+ get railCompanies() {
66
+ return this.nodes.filter((a) => a.type === "RailCompany");
67
+ }
68
+ railLine(id) {
69
+ return this.node(id);
70
+ }
71
+ get railLines() {
72
+ return this.nodes.filter((a) => a.type === "RailLine");
73
+ }
74
+ railStation(id) {
75
+ return this.node(id);
76
+ }
77
+ get railStations() {
78
+ return this.nodes.filter((a) => a.type === "RailStation");
79
+ }
80
+ seaCompany(id) {
81
+ return this.node(id);
82
+ }
83
+ get seaCompanies() {
84
+ return this.nodes.filter((a) => a.type === "SeaCompany");
85
+ }
86
+ seaLine(id) {
87
+ return this.node(id);
88
+ }
89
+ get seaLines() {
90
+ return this.nodes.filter((a) => a.type === "SeaLine");
91
+ }
92
+ seaStop(id) {
93
+ return this.node(id);
94
+ }
95
+ get seaStops() {
96
+ return this.nodes.filter((a) => a.type === "SeaStop");
97
+ }
98
+ busCompany(id) {
99
+ return this.node(id);
100
+ }
101
+ get busCompanies() {
102
+ return this.nodes.filter((a) => a.type === "BusCompany");
103
+ }
104
+ busLine(id) {
105
+ return this.node(id);
106
+ }
107
+ get busLines() {
108
+ return this.nodes.filter((a) => a.type === "BusLine");
109
+ }
110
+ busStop(id) {
111
+ return this.node(id);
112
+ }
113
+ get busStops() {
114
+ return this.nodes.filter((a) => a.type === "BusStop");
115
+ }
116
+ }
117
+ //# sourceMappingURL=lib.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lib.js","sourceRoot":"","sources":["../lib.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAmKH,qCAAqC;AACrC,MAAM,OAAO,EAAE;IACb,IAAI,CAAgB;IAEpB,YAAY,IAAmB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,EAAE,CACX,MAAM,KAAK,CACT,oEAAoE,CACrE,CAAC,IAAI,CAA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ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/.pnpm/typescript@5.8.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../lib.ts"],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"f8d72c95aac92e7aa6e828b04c8caf3efcc7f4713ee337409c35190e1ff434df","signature":"ffe00996022fe4df569fb386bec3bff0cdc1aff5462bf09512c5a46ecb264e1c","impliedFormat":99}],"root":[81],"options":{"allowJs":true,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":199,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99,"verbatimModuleSyntax":true},"latestChangedDtsFile":"./lib.d.ts","version":"5.8.3"}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "gatelogue-types",
3
+ "version": "2.0.0-b11+8",
4
+ "license": "GPL-3.0-only",
5
+ "author": {
6
+ "name": "MRT Mapping Services",
7
+ "url": "https://github.com/mrt-map"
8
+ },
9
+ "maintainers": [
10
+ {
11
+ "name": "7d",
12
+ "email": "61975820+iiiii7d@users.noreply.github.com"
13
+ }
14
+ ],
15
+ "description": "Types for loading and reading Gatelogue data",
16
+ "repository": "github:mrt-map/gatelogue",
17
+ "homepage": "https://mrt-map.github.io/gatelogue",
18
+ "bugs": "https://github.com/mrt-map/gatelogue/issues",
19
+ "readme": "../README.md",
20
+ "keywords": [
21
+ "gatelogue",
22
+ "mrt",
23
+ "minecart rapid transit"
24
+ ],
25
+ "type": "module",
26
+ "types": "./dist/lib.d.ts",
27
+ "exports": {
28
+ "import": "./dist/lib.js",
29
+ "require": "./dist/cjs/lib.js"
30
+ },
31
+ "files": [
32
+ "dist"
33
+ ],
34
+ "devDependencies": {
35
+ "@eslint/js": "^9.25",
36
+ "eslint": "^9.25",
37
+ "eslint-config-prettier": "^10.1",
38
+ "prettier": "^3.5",
39
+ "typedoc": "^0.28.3",
40
+ "typescript": "^5.8",
41
+ "typescript-eslint": "^8.31"
42
+ },
43
+ "scripts": {
44
+ "test": "echo \"Error: no test specified\" && exit 1",
45
+ "build": "npm run build:esm && npm run build:cjs",
46
+ "build:esm": "tsc",
47
+ "build:cjs": "tsc --outDir dist/cjs -m commonjs --verbatimModuleSyntax false",
48
+ "lint": "eslint --fix lib.ts",
49
+ "format": "prettier --write .",
50
+ "doc": "typedoc"
51
+ }
52
+ }