@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,1016 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/System",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Asteroids": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"description": "EDSM data about asteroid ring/belt.",
|
|
8
|
+
"properties": {
|
|
9
|
+
"innerRadius": {
|
|
10
|
+
"type": "number"
|
|
11
|
+
},
|
|
12
|
+
"mass": {
|
|
13
|
+
"type": "number"
|
|
14
|
+
},
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
},
|
|
18
|
+
"outerRadius": {
|
|
19
|
+
"type": "number"
|
|
20
|
+
},
|
|
21
|
+
"type": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": [
|
|
26
|
+
"name",
|
|
27
|
+
"type",
|
|
28
|
+
"mass",
|
|
29
|
+
"innerRadius",
|
|
30
|
+
"outerRadius"
|
|
31
|
+
],
|
|
32
|
+
"type": "object"
|
|
33
|
+
},
|
|
34
|
+
"AtmosphereComposition": {
|
|
35
|
+
"$ref": "#/definitions/Record%3Cstring%2Cnumber%3E",
|
|
36
|
+
"description": "EDSM data about atmosphere composition of a planet."
|
|
37
|
+
},
|
|
38
|
+
"ControllingFaction": {
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"properties": {
|
|
41
|
+
"allegiance": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"government": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"id": {
|
|
48
|
+
"type": "number"
|
|
49
|
+
},
|
|
50
|
+
"isPlayer": {
|
|
51
|
+
"type": "boolean"
|
|
52
|
+
},
|
|
53
|
+
"name": {
|
|
54
|
+
"type": [
|
|
55
|
+
"string",
|
|
56
|
+
"null"
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"id",
|
|
62
|
+
"name",
|
|
63
|
+
"isPlayer"
|
|
64
|
+
],
|
|
65
|
+
"type": "object"
|
|
66
|
+
},
|
|
67
|
+
"Coordinates": {
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"properties": {
|
|
70
|
+
"x": {
|
|
71
|
+
"type": "number"
|
|
72
|
+
},
|
|
73
|
+
"y": {
|
|
74
|
+
"type": "number"
|
|
75
|
+
},
|
|
76
|
+
"z": {
|
|
77
|
+
"type": "number"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"x",
|
|
82
|
+
"y",
|
|
83
|
+
"z"
|
|
84
|
+
],
|
|
85
|
+
"type": "object"
|
|
86
|
+
},
|
|
87
|
+
"EstimatedCoordinates": {
|
|
88
|
+
"additionalProperties": false,
|
|
89
|
+
"properties": {
|
|
90
|
+
"precision": {
|
|
91
|
+
"type": "number"
|
|
92
|
+
},
|
|
93
|
+
"x": {
|
|
94
|
+
"type": "number"
|
|
95
|
+
},
|
|
96
|
+
"y": {
|
|
97
|
+
"type": "number"
|
|
98
|
+
},
|
|
99
|
+
"z": {
|
|
100
|
+
"type": "number"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"required": [
|
|
104
|
+
"precision",
|
|
105
|
+
"x",
|
|
106
|
+
"y",
|
|
107
|
+
"z"
|
|
108
|
+
],
|
|
109
|
+
"type": "object"
|
|
110
|
+
},
|
|
111
|
+
"Faction": {
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"properties": {
|
|
114
|
+
"activeStates": {
|
|
115
|
+
"items": {
|
|
116
|
+
"$ref": "#/definitions/State"
|
|
117
|
+
},
|
|
118
|
+
"type": "array"
|
|
119
|
+
},
|
|
120
|
+
"allegiance": {
|
|
121
|
+
"type": [
|
|
122
|
+
"string",
|
|
123
|
+
"null"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"government": {
|
|
127
|
+
"type": [
|
|
128
|
+
"string",
|
|
129
|
+
"null"
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"happiness": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
"id": {
|
|
136
|
+
"type": "number"
|
|
137
|
+
},
|
|
138
|
+
"influence": {
|
|
139
|
+
"type": "number"
|
|
140
|
+
},
|
|
141
|
+
"isPlayer": {
|
|
142
|
+
"type": "boolean"
|
|
143
|
+
},
|
|
144
|
+
"lastUpdate": {
|
|
145
|
+
"type": "number"
|
|
146
|
+
},
|
|
147
|
+
"name": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"pendingStates": {
|
|
151
|
+
"items": {
|
|
152
|
+
"$ref": "#/definitions/TrendState"
|
|
153
|
+
},
|
|
154
|
+
"type": "array"
|
|
155
|
+
},
|
|
156
|
+
"recoveringStates": {
|
|
157
|
+
"items": {
|
|
158
|
+
"$ref": "#/definitions/TrendState"
|
|
159
|
+
},
|
|
160
|
+
"type": "array"
|
|
161
|
+
},
|
|
162
|
+
"state": {
|
|
163
|
+
"type": [
|
|
164
|
+
"string",
|
|
165
|
+
"null"
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"required": [
|
|
170
|
+
"id",
|
|
171
|
+
"name",
|
|
172
|
+
"influence",
|
|
173
|
+
"state",
|
|
174
|
+
"activeStates",
|
|
175
|
+
"recoveringStates",
|
|
176
|
+
"pendingStates",
|
|
177
|
+
"happiness",
|
|
178
|
+
"isPlayer",
|
|
179
|
+
"lastUpdate"
|
|
180
|
+
],
|
|
181
|
+
"type": "object"
|
|
182
|
+
},
|
|
183
|
+
"Id64": {
|
|
184
|
+
"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.",
|
|
185
|
+
"type": [
|
|
186
|
+
"number"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"Materials": {
|
|
190
|
+
"$ref": "#/definitions/Record%3Cstring%2Cnumber%3E",
|
|
191
|
+
"description": "EDSM data about raw materials on a planet."
|
|
192
|
+
},
|
|
193
|
+
"Omit<Planet,(\"systemId\"|\"systemId64\"|\"systemName\")>": {
|
|
194
|
+
"$ref": "#/definitions/Pick%3CPlanet%2CExclude%3C(%22type%22%7C%22isLandable%22%7C%22gravity%22%7C%22earthMasses%22%7C%22radius%22%7C%22surfacePressure%22%7C%22volcanismType%22%7C%22atmosphereType%22%7C%22atmosphereComposition%22%7C%22solidComposition%22%7C%22terraformingState%22%7C%22materials%22%7C%22id%22%7C%22id64%22%7C%22bodyId%22%7C%22systemId%22%7C%22systemId64%22%7C%22systemName%22%7C%22name%22%7C%22discovery%22%7C%22subType%22%7C%22parents%22%7C%22distanceToArrival%22%7C%22surfaceTemperature%22%7C%22orbitalPeriod%22%7C%22semiMajorAxis%22%7C%22orbitalEccentricity%22%7C%22orbitalInclination%22%7C%22argOfPeriapsis%22%7C%22rotationalPeriod%22%7C%22rotationalPeriodTidallyLocked%22%7C%22axialTilt%22%7C%22rings%22%7C%22reserveLevel%22%7C%22belts%22%7C%22updateTime%22)%2C(%22systemId%22%7C%22systemId64%22%7C%22systemName%22)%3E%3E"
|
|
195
|
+
},
|
|
196
|
+
"Omit<Star,(\"systemId\"|\"systemId64\"|\"systemName\")>": {
|
|
197
|
+
"$ref": "#/definitions/Pick%3CStar%2CExclude%3C(%22type%22%7C%22isMainStar%22%7C%22isScoopable%22%7C%22age%22%7C%22spectralClass%22%7C%22luminosity%22%7C%22absoluteMagnitude%22%7C%22solarMasses%22%7C%22solarRadius%22%7C%22surfaceTemperature%22%7C%22id%22%7C%22id64%22%7C%22bodyId%22%7C%22systemId%22%7C%22systemId64%22%7C%22systemName%22%7C%22name%22%7C%22discovery%22%7C%22subType%22%7C%22parents%22%7C%22distanceToArrival%22%7C%22orbitalPeriod%22%7C%22semiMajorAxis%22%7C%22orbitalEccentricity%22%7C%22orbitalInclination%22%7C%22argOfPeriapsis%22%7C%22rotationalPeriod%22%7C%22rotationalPeriodTidallyLocked%22%7C%22axialTilt%22%7C%22rings%22%7C%22reserveLevel%22%7C%22belts%22%7C%22updateTime%22)%2C(%22systemId%22%7C%22systemId64%22%7C%22systemName%22)%3E%3E"
|
|
198
|
+
},
|
|
199
|
+
"Omit<Station,(\"systemId\"|\"systemId64\"|\"systemName\"|\"outfitting\"|\"ships\"|\"commodities\")>": {
|
|
200
|
+
"$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"
|
|
201
|
+
},
|
|
202
|
+
"Pick<Planet,Exclude<(\"type\"|\"isLandable\"|\"gravity\"|\"earthMasses\"|\"radius\"|\"surfacePressure\"|\"volcanismType\"|\"atmosphereType\"|\"atmosphereComposition\"|\"solidComposition\"|\"terraformingState\"|\"materials\"|\"id\"|\"id64\"|\"bodyId\"|\"systemId\"|\"systemId64\"|\"systemName\"|\"name\"|\"discovery\"|\"subType\"|\"parents\"|\"distanceToArrival\"|\"surfaceTemperature\"|\"orbitalPeriod\"|\"semiMajorAxis\"|\"orbitalEccentricity\"|\"orbitalInclination\"|\"argOfPeriapsis\"|\"rotationalPeriod\"|\"rotationalPeriodTidallyLocked\"|\"axialTilt\"|\"rings\"|\"reserveLevel\"|\"belts\"|\"updateTime\"),(\"systemId\"|\"systemId64\"|\"systemName\")>>": {
|
|
203
|
+
"additionalProperties": false,
|
|
204
|
+
"properties": {
|
|
205
|
+
"argOfPeriapsis": {
|
|
206
|
+
"type": [
|
|
207
|
+
"number",
|
|
208
|
+
"null"
|
|
209
|
+
]
|
|
210
|
+
},
|
|
211
|
+
"atmosphereComposition": {
|
|
212
|
+
"anyOf": [
|
|
213
|
+
{
|
|
214
|
+
"$ref": "#/definitions/AtmosphereComposition"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"type": "null"
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
"atmosphereType": {
|
|
222
|
+
"type": [
|
|
223
|
+
"string",
|
|
224
|
+
"null"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"axialTilt": {
|
|
228
|
+
"type": [
|
|
229
|
+
"number",
|
|
230
|
+
"null"
|
|
231
|
+
]
|
|
232
|
+
},
|
|
233
|
+
"belts": {
|
|
234
|
+
"items": {
|
|
235
|
+
"$ref": "#/definitions/Asteroids"
|
|
236
|
+
},
|
|
237
|
+
"type": "array"
|
|
238
|
+
},
|
|
239
|
+
"bodyId": {
|
|
240
|
+
"type": [
|
|
241
|
+
"number",
|
|
242
|
+
"null"
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
"discovery": {
|
|
246
|
+
"additionalProperties": false,
|
|
247
|
+
"properties": {
|
|
248
|
+
"commander": {
|
|
249
|
+
"type": "string"
|
|
250
|
+
},
|
|
251
|
+
"date": {
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
"required": [
|
|
256
|
+
"commander",
|
|
257
|
+
"date"
|
|
258
|
+
],
|
|
259
|
+
"type": "object"
|
|
260
|
+
},
|
|
261
|
+
"distanceToArrival": {
|
|
262
|
+
"type": "number"
|
|
263
|
+
},
|
|
264
|
+
"earthMasses": {
|
|
265
|
+
"type": "number"
|
|
266
|
+
},
|
|
267
|
+
"gravity": {
|
|
268
|
+
"type": "number"
|
|
269
|
+
},
|
|
270
|
+
"id": {
|
|
271
|
+
"type": "number"
|
|
272
|
+
},
|
|
273
|
+
"id64": {
|
|
274
|
+
"anyOf": [
|
|
275
|
+
{
|
|
276
|
+
"$ref": "#/definitions/Id64"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"type": "null"
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
},
|
|
283
|
+
"isLandable": {
|
|
284
|
+
"type": "boolean"
|
|
285
|
+
},
|
|
286
|
+
"materials": {
|
|
287
|
+
"$ref": "#/definitions/Materials"
|
|
288
|
+
},
|
|
289
|
+
"name": {
|
|
290
|
+
"type": "string"
|
|
291
|
+
},
|
|
292
|
+
"orbitalEccentricity": {
|
|
293
|
+
"type": [
|
|
294
|
+
"number",
|
|
295
|
+
"null"
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"orbitalInclination": {
|
|
299
|
+
"type": [
|
|
300
|
+
"number",
|
|
301
|
+
"null"
|
|
302
|
+
]
|
|
303
|
+
},
|
|
304
|
+
"orbitalPeriod": {
|
|
305
|
+
"type": [
|
|
306
|
+
"number",
|
|
307
|
+
"null"
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
"parents": {
|
|
311
|
+
"anyOf": [
|
|
312
|
+
{
|
|
313
|
+
"type": "null"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"items": {
|
|
317
|
+
"anyOf": [
|
|
318
|
+
{
|
|
319
|
+
"additionalProperties": false,
|
|
320
|
+
"properties": {
|
|
321
|
+
"Star": {
|
|
322
|
+
"type": "number"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"required": [
|
|
326
|
+
"Star"
|
|
327
|
+
],
|
|
328
|
+
"type": "object"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"additionalProperties": false,
|
|
332
|
+
"properties": {
|
|
333
|
+
"Planet": {
|
|
334
|
+
"type": "number"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": [
|
|
338
|
+
"Planet"
|
|
339
|
+
],
|
|
340
|
+
"type": "object"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"additionalProperties": false,
|
|
344
|
+
"properties": {
|
|
345
|
+
"Null": {
|
|
346
|
+
"type": "number"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": [
|
|
350
|
+
"Null"
|
|
351
|
+
],
|
|
352
|
+
"type": "object"
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
},
|
|
356
|
+
"type": "array"
|
|
357
|
+
}
|
|
358
|
+
]
|
|
359
|
+
},
|
|
360
|
+
"radius": {
|
|
361
|
+
"type": "number"
|
|
362
|
+
},
|
|
363
|
+
"reserveLevel": {
|
|
364
|
+
"type": [
|
|
365
|
+
"string",
|
|
366
|
+
"null"
|
|
367
|
+
]
|
|
368
|
+
},
|
|
369
|
+
"rings": {
|
|
370
|
+
"items": {
|
|
371
|
+
"$ref": "#/definitions/Asteroids"
|
|
372
|
+
},
|
|
373
|
+
"type": "array"
|
|
374
|
+
},
|
|
375
|
+
"rotationalPeriod": {
|
|
376
|
+
"type": [
|
|
377
|
+
"number",
|
|
378
|
+
"null"
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
"rotationalPeriodTidallyLocked": {
|
|
382
|
+
"type": "boolean"
|
|
383
|
+
},
|
|
384
|
+
"semiMajorAxis": {
|
|
385
|
+
"type": [
|
|
386
|
+
"number",
|
|
387
|
+
"null"
|
|
388
|
+
]
|
|
389
|
+
},
|
|
390
|
+
"solidComposition": {
|
|
391
|
+
"anyOf": [
|
|
392
|
+
{
|
|
393
|
+
"$ref": "#/definitions/SolidComposition"
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"type": "null"
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
},
|
|
400
|
+
"subType": {
|
|
401
|
+
"type": "string"
|
|
402
|
+
},
|
|
403
|
+
"surfacePressure": {
|
|
404
|
+
"type": [
|
|
405
|
+
"number",
|
|
406
|
+
"null"
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
"surfaceTemperature": {
|
|
410
|
+
"type": "number"
|
|
411
|
+
},
|
|
412
|
+
"terraformingState": {
|
|
413
|
+
"type": [
|
|
414
|
+
"string",
|
|
415
|
+
"null"
|
|
416
|
+
]
|
|
417
|
+
},
|
|
418
|
+
"type": {
|
|
419
|
+
"const": "Planet",
|
|
420
|
+
"type": "string"
|
|
421
|
+
},
|
|
422
|
+
"updateTime": {
|
|
423
|
+
"type": "string"
|
|
424
|
+
},
|
|
425
|
+
"volcanismType": {
|
|
426
|
+
"type": [
|
|
427
|
+
"string",
|
|
428
|
+
"null"
|
|
429
|
+
]
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"required": [
|
|
433
|
+
"type",
|
|
434
|
+
"isLandable",
|
|
435
|
+
"gravity",
|
|
436
|
+
"earthMasses",
|
|
437
|
+
"radius",
|
|
438
|
+
"surfacePressure",
|
|
439
|
+
"volcanismType",
|
|
440
|
+
"atmosphereType",
|
|
441
|
+
"atmosphereComposition",
|
|
442
|
+
"solidComposition",
|
|
443
|
+
"terraformingState",
|
|
444
|
+
"id",
|
|
445
|
+
"id64",
|
|
446
|
+
"bodyId",
|
|
447
|
+
"name",
|
|
448
|
+
"subType",
|
|
449
|
+
"parents",
|
|
450
|
+
"distanceToArrival",
|
|
451
|
+
"surfaceTemperature",
|
|
452
|
+
"orbitalPeriod",
|
|
453
|
+
"semiMajorAxis",
|
|
454
|
+
"orbitalEccentricity",
|
|
455
|
+
"orbitalInclination",
|
|
456
|
+
"argOfPeriapsis",
|
|
457
|
+
"rotationalPeriod",
|
|
458
|
+
"rotationalPeriodTidallyLocked",
|
|
459
|
+
"axialTilt",
|
|
460
|
+
"updateTime"
|
|
461
|
+
],
|
|
462
|
+
"type": "object"
|
|
463
|
+
},
|
|
464
|
+
"Pick<Star,Exclude<(\"type\"|\"isMainStar\"|\"isScoopable\"|\"age\"|\"spectralClass\"|\"luminosity\"|\"absoluteMagnitude\"|\"solarMasses\"|\"solarRadius\"|\"surfaceTemperature\"|\"id\"|\"id64\"|\"bodyId\"|\"systemId\"|\"systemId64\"|\"systemName\"|\"name\"|\"discovery\"|\"subType\"|\"parents\"|\"distanceToArrival\"|\"orbitalPeriod\"|\"semiMajorAxis\"|\"orbitalEccentricity\"|\"orbitalInclination\"|\"argOfPeriapsis\"|\"rotationalPeriod\"|\"rotationalPeriodTidallyLocked\"|\"axialTilt\"|\"rings\"|\"reserveLevel\"|\"belts\"|\"updateTime\"),(\"systemId\"|\"systemId64\"|\"systemName\")>>": {
|
|
465
|
+
"additionalProperties": false,
|
|
466
|
+
"properties": {
|
|
467
|
+
"absoluteMagnitude": {
|
|
468
|
+
"type": "number"
|
|
469
|
+
},
|
|
470
|
+
"age": {
|
|
471
|
+
"type": "number"
|
|
472
|
+
},
|
|
473
|
+
"argOfPeriapsis": {
|
|
474
|
+
"type": [
|
|
475
|
+
"number",
|
|
476
|
+
"null"
|
|
477
|
+
]
|
|
478
|
+
},
|
|
479
|
+
"axialTilt": {
|
|
480
|
+
"type": [
|
|
481
|
+
"number",
|
|
482
|
+
"null"
|
|
483
|
+
]
|
|
484
|
+
},
|
|
485
|
+
"belts": {
|
|
486
|
+
"items": {
|
|
487
|
+
"$ref": "#/definitions/Asteroids"
|
|
488
|
+
},
|
|
489
|
+
"type": "array"
|
|
490
|
+
},
|
|
491
|
+
"bodyId": {
|
|
492
|
+
"type": [
|
|
493
|
+
"number",
|
|
494
|
+
"null"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
"discovery": {
|
|
498
|
+
"additionalProperties": false,
|
|
499
|
+
"properties": {
|
|
500
|
+
"commander": {
|
|
501
|
+
"type": "string"
|
|
502
|
+
},
|
|
503
|
+
"date": {
|
|
504
|
+
"type": "string"
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
"required": [
|
|
508
|
+
"commander",
|
|
509
|
+
"date"
|
|
510
|
+
],
|
|
511
|
+
"type": "object"
|
|
512
|
+
},
|
|
513
|
+
"distanceToArrival": {
|
|
514
|
+
"type": "number"
|
|
515
|
+
},
|
|
516
|
+
"id": {
|
|
517
|
+
"type": "number"
|
|
518
|
+
},
|
|
519
|
+
"id64": {
|
|
520
|
+
"anyOf": [
|
|
521
|
+
{
|
|
522
|
+
"$ref": "#/definitions/Id64"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"type": "null"
|
|
526
|
+
}
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
"isMainStar": {
|
|
530
|
+
"type": "boolean"
|
|
531
|
+
},
|
|
532
|
+
"isScoopable": {
|
|
533
|
+
"type": "boolean"
|
|
534
|
+
},
|
|
535
|
+
"luminosity": {
|
|
536
|
+
"type": [
|
|
537
|
+
"string",
|
|
538
|
+
"null"
|
|
539
|
+
]
|
|
540
|
+
},
|
|
541
|
+
"name": {
|
|
542
|
+
"type": "string"
|
|
543
|
+
},
|
|
544
|
+
"orbitalEccentricity": {
|
|
545
|
+
"type": [
|
|
546
|
+
"number",
|
|
547
|
+
"null"
|
|
548
|
+
]
|
|
549
|
+
},
|
|
550
|
+
"orbitalInclination": {
|
|
551
|
+
"type": [
|
|
552
|
+
"number",
|
|
553
|
+
"null"
|
|
554
|
+
]
|
|
555
|
+
},
|
|
556
|
+
"orbitalPeriod": {
|
|
557
|
+
"type": [
|
|
558
|
+
"number",
|
|
559
|
+
"null"
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
"parents": {
|
|
563
|
+
"anyOf": [
|
|
564
|
+
{
|
|
565
|
+
"type": "null"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"items": {
|
|
569
|
+
"anyOf": [
|
|
570
|
+
{
|
|
571
|
+
"additionalProperties": false,
|
|
572
|
+
"properties": {
|
|
573
|
+
"Star": {
|
|
574
|
+
"type": "number"
|
|
575
|
+
}
|
|
576
|
+
},
|
|
577
|
+
"required": [
|
|
578
|
+
"Star"
|
|
579
|
+
],
|
|
580
|
+
"type": "object"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"additionalProperties": false,
|
|
584
|
+
"properties": {
|
|
585
|
+
"Planet": {
|
|
586
|
+
"type": "number"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"required": [
|
|
590
|
+
"Planet"
|
|
591
|
+
],
|
|
592
|
+
"type": "object"
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"additionalProperties": false,
|
|
596
|
+
"properties": {
|
|
597
|
+
"Null": {
|
|
598
|
+
"type": "number"
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"required": [
|
|
602
|
+
"Null"
|
|
603
|
+
],
|
|
604
|
+
"type": "object"
|
|
605
|
+
}
|
|
606
|
+
]
|
|
607
|
+
},
|
|
608
|
+
"type": "array"
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
"reserveLevel": {
|
|
613
|
+
"type": [
|
|
614
|
+
"string",
|
|
615
|
+
"null"
|
|
616
|
+
]
|
|
617
|
+
},
|
|
618
|
+
"rings": {
|
|
619
|
+
"items": {
|
|
620
|
+
"$ref": "#/definitions/Asteroids"
|
|
621
|
+
},
|
|
622
|
+
"type": "array"
|
|
623
|
+
},
|
|
624
|
+
"rotationalPeriod": {
|
|
625
|
+
"type": [
|
|
626
|
+
"number",
|
|
627
|
+
"null"
|
|
628
|
+
]
|
|
629
|
+
},
|
|
630
|
+
"rotationalPeriodTidallyLocked": {
|
|
631
|
+
"type": "boolean"
|
|
632
|
+
},
|
|
633
|
+
"semiMajorAxis": {
|
|
634
|
+
"type": [
|
|
635
|
+
"number",
|
|
636
|
+
"null"
|
|
637
|
+
]
|
|
638
|
+
},
|
|
639
|
+
"solarMasses": {
|
|
640
|
+
"type": "number"
|
|
641
|
+
},
|
|
642
|
+
"solarRadius": {
|
|
643
|
+
"type": "number"
|
|
644
|
+
},
|
|
645
|
+
"spectralClass": {
|
|
646
|
+
"type": [
|
|
647
|
+
"string",
|
|
648
|
+
"null"
|
|
649
|
+
]
|
|
650
|
+
},
|
|
651
|
+
"subType": {
|
|
652
|
+
"type": "string"
|
|
653
|
+
},
|
|
654
|
+
"surfaceTemperature": {
|
|
655
|
+
"type": "number"
|
|
656
|
+
},
|
|
657
|
+
"type": {
|
|
658
|
+
"const": "Star",
|
|
659
|
+
"type": "string"
|
|
660
|
+
},
|
|
661
|
+
"updateTime": {
|
|
662
|
+
"type": "string"
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
"required": [
|
|
666
|
+
"type",
|
|
667
|
+
"age",
|
|
668
|
+
"spectralClass",
|
|
669
|
+
"luminosity",
|
|
670
|
+
"absoluteMagnitude",
|
|
671
|
+
"solarMasses",
|
|
672
|
+
"solarRadius",
|
|
673
|
+
"surfaceTemperature",
|
|
674
|
+
"id",
|
|
675
|
+
"id64",
|
|
676
|
+
"bodyId",
|
|
677
|
+
"name",
|
|
678
|
+
"subType",
|
|
679
|
+
"parents",
|
|
680
|
+
"distanceToArrival",
|
|
681
|
+
"orbitalPeriod",
|
|
682
|
+
"semiMajorAxis",
|
|
683
|
+
"orbitalEccentricity",
|
|
684
|
+
"orbitalInclination",
|
|
685
|
+
"argOfPeriapsis",
|
|
686
|
+
"rotationalPeriod",
|
|
687
|
+
"rotationalPeriodTidallyLocked",
|
|
688
|
+
"axialTilt",
|
|
689
|
+
"updateTime"
|
|
690
|
+
],
|
|
691
|
+
"type": "object"
|
|
692
|
+
},
|
|
693
|
+
"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\")>>": {
|
|
694
|
+
"additionalProperties": false,
|
|
695
|
+
"properties": {
|
|
696
|
+
"allegiance": {
|
|
697
|
+
"type": [
|
|
698
|
+
"string",
|
|
699
|
+
"null"
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
"body": {
|
|
703
|
+
"$ref": "#/definitions/StationBody"
|
|
704
|
+
},
|
|
705
|
+
"controllingFaction": {
|
|
706
|
+
"$ref": "#/definitions/StationControllingFaction"
|
|
707
|
+
},
|
|
708
|
+
"distanceToArrival": {
|
|
709
|
+
"type": [
|
|
710
|
+
"number",
|
|
711
|
+
"null"
|
|
712
|
+
]
|
|
713
|
+
},
|
|
714
|
+
"economy": {
|
|
715
|
+
"type": [
|
|
716
|
+
"string",
|
|
717
|
+
"null"
|
|
718
|
+
]
|
|
719
|
+
},
|
|
720
|
+
"government": {
|
|
721
|
+
"type": [
|
|
722
|
+
"string",
|
|
723
|
+
"null"
|
|
724
|
+
]
|
|
725
|
+
},
|
|
726
|
+
"haveMarket": {
|
|
727
|
+
"type": "boolean"
|
|
728
|
+
},
|
|
729
|
+
"haveOutfitting": {
|
|
730
|
+
"type": "boolean"
|
|
731
|
+
},
|
|
732
|
+
"haveShipyard": {
|
|
733
|
+
"type": "boolean"
|
|
734
|
+
},
|
|
735
|
+
"id": {
|
|
736
|
+
"type": "number"
|
|
737
|
+
},
|
|
738
|
+
"marketId": {
|
|
739
|
+
"type": [
|
|
740
|
+
"number",
|
|
741
|
+
"null"
|
|
742
|
+
]
|
|
743
|
+
},
|
|
744
|
+
"name": {
|
|
745
|
+
"type": "string"
|
|
746
|
+
},
|
|
747
|
+
"otherServices": {
|
|
748
|
+
"items": {
|
|
749
|
+
"type": "string"
|
|
750
|
+
},
|
|
751
|
+
"type": "array"
|
|
752
|
+
},
|
|
753
|
+
"secondEconomy": {
|
|
754
|
+
"type": [
|
|
755
|
+
"string",
|
|
756
|
+
"null"
|
|
757
|
+
]
|
|
758
|
+
},
|
|
759
|
+
"type": {
|
|
760
|
+
"type": [
|
|
761
|
+
"string",
|
|
762
|
+
"null"
|
|
763
|
+
]
|
|
764
|
+
},
|
|
765
|
+
"updateTime": {
|
|
766
|
+
"$ref": "#/definitions/StationUpdateTime"
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"required": [
|
|
770
|
+
"id",
|
|
771
|
+
"marketId",
|
|
772
|
+
"type",
|
|
773
|
+
"name",
|
|
774
|
+
"distanceToArrival",
|
|
775
|
+
"allegiance",
|
|
776
|
+
"government",
|
|
777
|
+
"economy",
|
|
778
|
+
"secondEconomy",
|
|
779
|
+
"haveMarket",
|
|
780
|
+
"haveShipyard",
|
|
781
|
+
"haveOutfitting",
|
|
782
|
+
"otherServices",
|
|
783
|
+
"updateTime"
|
|
784
|
+
],
|
|
785
|
+
"type": "object"
|
|
786
|
+
},
|
|
787
|
+
"Record<string,number>": {
|
|
788
|
+
"additionalProperties": {
|
|
789
|
+
"type": "number"
|
|
790
|
+
},
|
|
791
|
+
"type": "object"
|
|
792
|
+
},
|
|
793
|
+
"SolidComposition": {
|
|
794
|
+
"$ref": "#/definitions/Record%3Cstring%2Cnumber%3E",
|
|
795
|
+
"description": "EDSM data about solid composition of a planet."
|
|
796
|
+
},
|
|
797
|
+
"State": {
|
|
798
|
+
"additionalProperties": false,
|
|
799
|
+
"properties": {
|
|
800
|
+
"state": {
|
|
801
|
+
"type": "string"
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
"required": [
|
|
805
|
+
"state"
|
|
806
|
+
],
|
|
807
|
+
"type": "object"
|
|
808
|
+
},
|
|
809
|
+
"StationBody": {
|
|
810
|
+
"additionalProperties": false,
|
|
811
|
+
"properties": {
|
|
812
|
+
"id": {
|
|
813
|
+
"type": "number"
|
|
814
|
+
},
|
|
815
|
+
"latitude": {
|
|
816
|
+
"type": "number"
|
|
817
|
+
},
|
|
818
|
+
"longitude": {
|
|
819
|
+
"type": "number"
|
|
820
|
+
},
|
|
821
|
+
"name": {
|
|
822
|
+
"type": "string"
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
"required": [
|
|
826
|
+
"id",
|
|
827
|
+
"name"
|
|
828
|
+
],
|
|
829
|
+
"type": "object"
|
|
830
|
+
},
|
|
831
|
+
"StationControllingFaction": {
|
|
832
|
+
"additionalProperties": false,
|
|
833
|
+
"properties": {
|
|
834
|
+
"id": {
|
|
835
|
+
"type": [
|
|
836
|
+
"number",
|
|
837
|
+
"null"
|
|
838
|
+
]
|
|
839
|
+
},
|
|
840
|
+
"name": {
|
|
841
|
+
"type": [
|
|
842
|
+
"string",
|
|
843
|
+
"null"
|
|
844
|
+
]
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"required": [
|
|
848
|
+
"id",
|
|
849
|
+
"name"
|
|
850
|
+
],
|
|
851
|
+
"type": "object"
|
|
852
|
+
},
|
|
853
|
+
"StationUpdateTime": {
|
|
854
|
+
"additionalProperties": false,
|
|
855
|
+
"properties": {
|
|
856
|
+
"information": {
|
|
857
|
+
"type": "string"
|
|
858
|
+
},
|
|
859
|
+
"market": {
|
|
860
|
+
"type": [
|
|
861
|
+
"string",
|
|
862
|
+
"null"
|
|
863
|
+
]
|
|
864
|
+
},
|
|
865
|
+
"outfitting": {
|
|
866
|
+
"type": [
|
|
867
|
+
"string",
|
|
868
|
+
"null"
|
|
869
|
+
]
|
|
870
|
+
},
|
|
871
|
+
"shipyard": {
|
|
872
|
+
"type": [
|
|
873
|
+
"string",
|
|
874
|
+
"null"
|
|
875
|
+
]
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
"required": [
|
|
879
|
+
"information",
|
|
880
|
+
"market",
|
|
881
|
+
"shipyard",
|
|
882
|
+
"outfitting"
|
|
883
|
+
],
|
|
884
|
+
"type": "object"
|
|
885
|
+
},
|
|
886
|
+
"System": {
|
|
887
|
+
"additionalProperties": false,
|
|
888
|
+
"description": "A single EDSM system.",
|
|
889
|
+
"properties": {
|
|
890
|
+
"allegiance": {
|
|
891
|
+
"type": [
|
|
892
|
+
"string",
|
|
893
|
+
"null"
|
|
894
|
+
]
|
|
895
|
+
},
|
|
896
|
+
"bodies": {
|
|
897
|
+
"items": {
|
|
898
|
+
"$ref": "#/definitions/SystemBody"
|
|
899
|
+
},
|
|
900
|
+
"type": "array"
|
|
901
|
+
},
|
|
902
|
+
"controllingFaction": {
|
|
903
|
+
"$ref": "#/definitions/ControllingFaction"
|
|
904
|
+
},
|
|
905
|
+
"coords": {
|
|
906
|
+
"$ref": "#/definitions/Coordinates"
|
|
907
|
+
},
|
|
908
|
+
"date": {
|
|
909
|
+
"type": "string"
|
|
910
|
+
},
|
|
911
|
+
"economy": {
|
|
912
|
+
"type": [
|
|
913
|
+
"string",
|
|
914
|
+
"null"
|
|
915
|
+
]
|
|
916
|
+
},
|
|
917
|
+
"estimatedCoordinates": {
|
|
918
|
+
"$ref": "#/definitions/EstimatedCoordinates"
|
|
919
|
+
},
|
|
920
|
+
"factions": {
|
|
921
|
+
"items": {
|
|
922
|
+
"$ref": "#/definitions/Faction"
|
|
923
|
+
},
|
|
924
|
+
"type": "array"
|
|
925
|
+
},
|
|
926
|
+
"government": {
|
|
927
|
+
"type": [
|
|
928
|
+
"string",
|
|
929
|
+
"null"
|
|
930
|
+
]
|
|
931
|
+
},
|
|
932
|
+
"id": {
|
|
933
|
+
"type": "number"
|
|
934
|
+
},
|
|
935
|
+
"id64": {
|
|
936
|
+
"anyOf": [
|
|
937
|
+
{
|
|
938
|
+
"$ref": "#/definitions/Id64"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"type": "null"
|
|
942
|
+
}
|
|
943
|
+
]
|
|
944
|
+
},
|
|
945
|
+
"name": {
|
|
946
|
+
"type": "string"
|
|
947
|
+
},
|
|
948
|
+
"population": {
|
|
949
|
+
"type": [
|
|
950
|
+
"number",
|
|
951
|
+
"null"
|
|
952
|
+
]
|
|
953
|
+
},
|
|
954
|
+
"security": {
|
|
955
|
+
"type": "string"
|
|
956
|
+
},
|
|
957
|
+
"state": {
|
|
958
|
+
"type": [
|
|
959
|
+
"string",
|
|
960
|
+
"null"
|
|
961
|
+
]
|
|
962
|
+
},
|
|
963
|
+
"stations": {
|
|
964
|
+
"items": {
|
|
965
|
+
"$ref": "#/definitions/SystemStation"
|
|
966
|
+
},
|
|
967
|
+
"type": "array"
|
|
968
|
+
}
|
|
969
|
+
},
|
|
970
|
+
"required": [
|
|
971
|
+
"name",
|
|
972
|
+
"id",
|
|
973
|
+
"id64",
|
|
974
|
+
"date"
|
|
975
|
+
],
|
|
976
|
+
"type": "object"
|
|
977
|
+
},
|
|
978
|
+
"SystemBody": {
|
|
979
|
+
"anyOf": [
|
|
980
|
+
{
|
|
981
|
+
"$ref": "#/definitions/SystemStar"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"$ref": "#/definitions/SystemPlanet"
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
"description": "Body within a system (without system information because its already in the parent object)"
|
|
988
|
+
},
|
|
989
|
+
"SystemPlanet": {
|
|
990
|
+
"$ref": "#/definitions/Omit%3CPlanet%2C(%22systemId%22%7C%22systemId64%22%7C%22systemName%22)%3E"
|
|
991
|
+
},
|
|
992
|
+
"SystemStar": {
|
|
993
|
+
"$ref": "#/definitions/Omit%3CStar%2C(%22systemId%22%7C%22systemId64%22%7C%22systemName%22)%3E"
|
|
994
|
+
},
|
|
995
|
+
"SystemStation": {
|
|
996
|
+
"$ref": "#/definitions/Omit%3CStation%2C(%22systemId%22%7C%22systemId64%22%7C%22systemName%22%7C%22outfitting%22%7C%22ships%22%7C%22commodities%22)%3E",
|
|
997
|
+
"description": "Station data in system objects with less details."
|
|
998
|
+
},
|
|
999
|
+
"TrendState": {
|
|
1000
|
+
"additionalProperties": false,
|
|
1001
|
+
"properties": {
|
|
1002
|
+
"state": {
|
|
1003
|
+
"type": "string"
|
|
1004
|
+
},
|
|
1005
|
+
"trend": {
|
|
1006
|
+
"type": "number"
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
"required": [
|
|
1010
|
+
"state",
|
|
1011
|
+
"trend"
|
|
1012
|
+
],
|
|
1013
|
+
"type": "object"
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
}
|