@kayahr/edsm 1.1.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.
- package/LICENSE.md +22 -0
- package/README.md +168 -0
- package/lib/body.schema.json +587 -0
- package/lib/codex.schema.json +55 -0
- package/lib/commander-credits-response.schema.json +52 -0
- package/lib/commander-inventory-response.schema.json +91 -0
- package/lib/commander-position-response.schema.json +101 -0
- package/lib/commander-ranks-response.schema.json +138 -0
- package/lib/elite-server-status-response.schema.json +38 -0
- package/lib/flight-logs-response.schema.json +68 -0
- package/lib/main/api/commander.d.ts +96 -0
- package/lib/main/api/commander.js +38 -0
- package/lib/main/api/commander.js.map +1 -0
- package/lib/main/api/common.d.ts +28 -0
- package/lib/main/api/common.js +54 -0
- package/lib/main/api/common.js.map +1 -0
- package/lib/main/api/journal.d.ts +51 -0
- package/lib/main/api/journal.js +35 -0
- package/lib/main/api/journal.js.map +1 -0
- package/lib/main/api/logs.d.ts +130 -0
- package/lib/main/api/logs.js +60 -0
- package/lib/main/api/logs.js.map +1 -0
- package/lib/main/api/status.d.ts +13 -0
- package/lib/main/api/status.js +14 -0
- package/lib/main/api/status.js.map +1 -0
- package/lib/main/api/system.d.ts +279 -0
- package/lib/main/api/system.js +125 -0
- package/lib/main/api/system.js.map +1 -0
- package/lib/main/api/systems.d.ts +148 -0
- package/lib/main/api/systems.js +51 -0
- package/lib/main/api/systems.js.map +1 -0
- package/lib/main/bodies.d.ts +116 -0
- package/lib/main/bodies.js +33 -0
- package/lib/main/bodies.js.map +1 -0
- package/lib/main/codex.d.ts +20 -0
- package/lib/main/codex.js +15 -0
- package/lib/main/codex.js.map +1 -0
- package/lib/main/common.d.ts +14 -0
- package/lib/main/common.js +20 -0
- package/lib/main/common.js.map +1 -0
- package/lib/main/index.d.ts +14 -0
- package/lib/main/index.js +19 -0
- package/lib/main/index.js.map +1 -0
- package/lib/main/powerplay.d.ts +23 -0
- package/lib/main/powerplay.js +15 -0
- package/lib/main/powerplay.js.map +1 -0
- package/lib/main/stations.d.ts +69 -0
- package/lib/main/stations.js +15 -0
- package/lib/main/stations.js.map +1 -0
- package/lib/main/systems.d.ts +61 -0
- package/lib/main/systems.js +15 -0
- package/lib/main/systems.js.map +1 -0
- package/lib/main/util.d.ts +38 -0
- package/lib/main/util.js +104 -0
- package/lib/main/util.js.map +1 -0
- package/lib/powerplay.schema.json +90 -0
- package/lib/station-market-response.schema.json +95 -0
- package/lib/station-outfitting-response.schema.json +75 -0
- package/lib/station-shipyard-response.schema.json +72 -0
- package/lib/station.schema.json +315 -0
- package/lib/system-bodies-response.schema.json +609 -0
- package/lib/system-deaths-response.schema.json +58 -0
- package/lib/system-estimated-value-response.schema.json +76 -0
- package/lib/system-factions-response.schema.json +313 -0
- package/lib/system-response.schema.json +137 -0
- package/lib/system-stations-response.schema.json +222 -0
- package/lib/system-traffic-response.schema.json +85 -0
- package/lib/system.schema.json +1016 -0
- package/package.json +82 -0
- package/src/main/api/commander.ts +116 -0
- package/src/main/api/common.ts +77 -0
- package/src/main/api/journal.ts +76 -0
- package/src/main/api/logs.ts +166 -0
- package/src/main/api/status.ts +24 -0
- package/src/main/api/system.ts +361 -0
- package/src/main/api/systems.ts +199 -0
- package/src/main/bodies.ts +153 -0
- package/src/main/codex.ts +31 -0
- package/src/main/common.ts +29 -0
- package/src/main/index.ts +42 -0
- package/src/main/powerplay.ts +34 -0
- package/src/main/stations.ts +87 -0
- package/src/main/systems.ts +77 -0
- package/src/main/util.ts +103 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SystemStationsResponse",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Id64": {
|
|
6
|
+
"description": "A 64 bit ID. Can be a `number` if ID does not need more then 53 bit. Must be `bigint` if ID needs more than 53 bit.",
|
|
7
|
+
"type": [
|
|
8
|
+
"number"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"Omit<Station,(\"systemId\"|\"systemId64\"|\"systemName\"|\"outfitting\"|\"ships\"|\"commodities\")>": {
|
|
12
|
+
"$ref": "#/definitions/Pick%3CStation%2CExclude%3C(%22id%22%7C%22marketId%22%7C%22type%22%7C%22name%22%7C%22body%22%7C%22distanceToArrival%22%7C%22allegiance%22%7C%22government%22%7C%22economy%22%7C%22secondEconomy%22%7C%22haveMarket%22%7C%22haveShipyard%22%7C%22haveOutfitting%22%7C%22otherServices%22%7C%22controllingFaction%22%7C%22updateTime%22%7C%22systemId%22%7C%22systemId64%22%7C%22systemName%22%7C%22commodities%22%7C%22ships%22%7C%22outfitting%22)%2C(%22systemId%22%7C%22systemId64%22%7C%22systemName%22%7C%22outfitting%22%7C%22ships%22%7C%22commodities%22)%3E%3E"
|
|
13
|
+
},
|
|
14
|
+
"Pick<Station,Exclude<(\"id\"|\"marketId\"|\"type\"|\"name\"|\"body\"|\"distanceToArrival\"|\"allegiance\"|\"government\"|\"economy\"|\"secondEconomy\"|\"haveMarket\"|\"haveShipyard\"|\"haveOutfitting\"|\"otherServices\"|\"controllingFaction\"|\"updateTime\"|\"systemId\"|\"systemId64\"|\"systemName\"|\"commodities\"|\"ships\"|\"outfitting\"),(\"systemId\"|\"systemId64\"|\"systemName\"|\"outfitting\"|\"ships\"|\"commodities\")>>": {
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"allegiance": {
|
|
18
|
+
"type": [
|
|
19
|
+
"string",
|
|
20
|
+
"null"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"body": {
|
|
24
|
+
"$ref": "#/definitions/StationBody"
|
|
25
|
+
},
|
|
26
|
+
"controllingFaction": {
|
|
27
|
+
"$ref": "#/definitions/StationControllingFaction"
|
|
28
|
+
},
|
|
29
|
+
"distanceToArrival": {
|
|
30
|
+
"type": [
|
|
31
|
+
"number",
|
|
32
|
+
"null"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"economy": {
|
|
36
|
+
"type": [
|
|
37
|
+
"string",
|
|
38
|
+
"null"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"government": {
|
|
42
|
+
"type": [
|
|
43
|
+
"string",
|
|
44
|
+
"null"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"haveMarket": {
|
|
48
|
+
"type": "boolean"
|
|
49
|
+
},
|
|
50
|
+
"haveOutfitting": {
|
|
51
|
+
"type": "boolean"
|
|
52
|
+
},
|
|
53
|
+
"haveShipyard": {
|
|
54
|
+
"type": "boolean"
|
|
55
|
+
},
|
|
56
|
+
"id": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
},
|
|
59
|
+
"marketId": {
|
|
60
|
+
"type": [
|
|
61
|
+
"number",
|
|
62
|
+
"null"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"name": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"otherServices": {
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"type": "array"
|
|
73
|
+
},
|
|
74
|
+
"secondEconomy": {
|
|
75
|
+
"type": [
|
|
76
|
+
"string",
|
|
77
|
+
"null"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
"type": {
|
|
81
|
+
"type": [
|
|
82
|
+
"string",
|
|
83
|
+
"null"
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"updateTime": {
|
|
87
|
+
"$ref": "#/definitions/StationUpdateTime"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"required": [
|
|
91
|
+
"id",
|
|
92
|
+
"marketId",
|
|
93
|
+
"type",
|
|
94
|
+
"name",
|
|
95
|
+
"distanceToArrival",
|
|
96
|
+
"allegiance",
|
|
97
|
+
"government",
|
|
98
|
+
"economy",
|
|
99
|
+
"secondEconomy",
|
|
100
|
+
"haveMarket",
|
|
101
|
+
"haveShipyard",
|
|
102
|
+
"haveOutfitting",
|
|
103
|
+
"otherServices",
|
|
104
|
+
"updateTime"
|
|
105
|
+
],
|
|
106
|
+
"type": "object"
|
|
107
|
+
},
|
|
108
|
+
"StationBody": {
|
|
109
|
+
"additionalProperties": false,
|
|
110
|
+
"properties": {
|
|
111
|
+
"id": {
|
|
112
|
+
"type": "number"
|
|
113
|
+
},
|
|
114
|
+
"latitude": {
|
|
115
|
+
"type": "number"
|
|
116
|
+
},
|
|
117
|
+
"longitude": {
|
|
118
|
+
"type": "number"
|
|
119
|
+
},
|
|
120
|
+
"name": {
|
|
121
|
+
"type": "string"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"required": [
|
|
125
|
+
"id",
|
|
126
|
+
"name"
|
|
127
|
+
],
|
|
128
|
+
"type": "object"
|
|
129
|
+
},
|
|
130
|
+
"StationControllingFaction": {
|
|
131
|
+
"additionalProperties": false,
|
|
132
|
+
"properties": {
|
|
133
|
+
"id": {
|
|
134
|
+
"type": [
|
|
135
|
+
"number",
|
|
136
|
+
"null"
|
|
137
|
+
]
|
|
138
|
+
},
|
|
139
|
+
"name": {
|
|
140
|
+
"type": [
|
|
141
|
+
"string",
|
|
142
|
+
"null"
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": [
|
|
147
|
+
"id",
|
|
148
|
+
"name"
|
|
149
|
+
],
|
|
150
|
+
"type": "object"
|
|
151
|
+
},
|
|
152
|
+
"StationUpdateTime": {
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"properties": {
|
|
155
|
+
"information": {
|
|
156
|
+
"type": "string"
|
|
157
|
+
},
|
|
158
|
+
"market": {
|
|
159
|
+
"type": [
|
|
160
|
+
"string",
|
|
161
|
+
"null"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"outfitting": {
|
|
165
|
+
"type": [
|
|
166
|
+
"string",
|
|
167
|
+
"null"
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"shipyard": {
|
|
171
|
+
"type": [
|
|
172
|
+
"string",
|
|
173
|
+
"null"
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
"required": [
|
|
178
|
+
"information",
|
|
179
|
+
"market",
|
|
180
|
+
"shipyard",
|
|
181
|
+
"outfitting"
|
|
182
|
+
],
|
|
183
|
+
"type": "object"
|
|
184
|
+
},
|
|
185
|
+
"SystemStation": {
|
|
186
|
+
"$ref": "#/definitions/Omit%3CStation%2C(%22systemId%22%7C%22systemId64%22%7C%22systemName%22%7C%22outfitting%22%7C%22ships%22%7C%22commodities%22)%3E",
|
|
187
|
+
"description": "Station data in system objects with less details."
|
|
188
|
+
},
|
|
189
|
+
"SystemStationsResponse": {
|
|
190
|
+
"additionalProperties": false,
|
|
191
|
+
"description": "Response structure of the EDSM system stations request.",
|
|
192
|
+
"properties": {
|
|
193
|
+
"id": {
|
|
194
|
+
"type": "number"
|
|
195
|
+
},
|
|
196
|
+
"id64": {
|
|
197
|
+
"$ref": "#/definitions/Id64"
|
|
198
|
+
},
|
|
199
|
+
"name": {
|
|
200
|
+
"type": "string"
|
|
201
|
+
},
|
|
202
|
+
"stations": {
|
|
203
|
+
"items": {
|
|
204
|
+
"$ref": "#/definitions/SystemStation"
|
|
205
|
+
},
|
|
206
|
+
"type": "array"
|
|
207
|
+
},
|
|
208
|
+
"url": {
|
|
209
|
+
"type": "string"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": [
|
|
213
|
+
"id",
|
|
214
|
+
"id64",
|
|
215
|
+
"name",
|
|
216
|
+
"url",
|
|
217
|
+
"stations"
|
|
218
|
+
],
|
|
219
|
+
"type": "object"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/SystemTrafficResponse",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Id64": {
|
|
6
|
+
"description": "A 64 bit ID. Can be a `number` if ID does not need more then 53 bit. Must be `bigint` if ID needs more than 53 bit.",
|
|
7
|
+
"type": [
|
|
8
|
+
"number"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"Record<string,number>": {
|
|
12
|
+
"additionalProperties": {
|
|
13
|
+
"type": "number"
|
|
14
|
+
},
|
|
15
|
+
"type": "object"
|
|
16
|
+
},
|
|
17
|
+
"SystemTrafficResponse": {
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"description": "Response structure of the EDSM system traffic request.",
|
|
20
|
+
"properties": {
|
|
21
|
+
"breakdown": {
|
|
22
|
+
"$ref": "#/definitions/Record%3Cstring%2Cnumber%3E"
|
|
23
|
+
},
|
|
24
|
+
"discovery": {
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"properties": {
|
|
27
|
+
"commander": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"date": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"required": [
|
|
35
|
+
"commander",
|
|
36
|
+
"date"
|
|
37
|
+
],
|
|
38
|
+
"type": "object"
|
|
39
|
+
},
|
|
40
|
+
"id": {
|
|
41
|
+
"type": "number"
|
|
42
|
+
},
|
|
43
|
+
"id64": {
|
|
44
|
+
"$ref": "#/definitions/Id64"
|
|
45
|
+
},
|
|
46
|
+
"name": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"traffic": {
|
|
50
|
+
"additionalProperties": false,
|
|
51
|
+
"properties": {
|
|
52
|
+
"day": {
|
|
53
|
+
"type": "number"
|
|
54
|
+
},
|
|
55
|
+
"total": {
|
|
56
|
+
"type": "number"
|
|
57
|
+
},
|
|
58
|
+
"week": {
|
|
59
|
+
"type": "number"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": [
|
|
63
|
+
"total",
|
|
64
|
+
"week",
|
|
65
|
+
"day"
|
|
66
|
+
],
|
|
67
|
+
"type": "object"
|
|
68
|
+
},
|
|
69
|
+
"url": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"id",
|
|
75
|
+
"id64",
|
|
76
|
+
"name",
|
|
77
|
+
"url",
|
|
78
|
+
"discovery",
|
|
79
|
+
"traffic",
|
|
80
|
+
"breakdown"
|
|
81
|
+
],
|
|
82
|
+
"type": "object"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|