@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,315 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Station",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Commodity": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"buyPrice": {
|
|
9
|
+
"type": "number"
|
|
10
|
+
},
|
|
11
|
+
"demand": {
|
|
12
|
+
"type": "number"
|
|
13
|
+
},
|
|
14
|
+
"id": {
|
|
15
|
+
"type": [
|
|
16
|
+
"string",
|
|
17
|
+
"null"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"name": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"sellPrice": {
|
|
24
|
+
"type": "number"
|
|
25
|
+
},
|
|
26
|
+
"stock": {
|
|
27
|
+
"type": "number"
|
|
28
|
+
},
|
|
29
|
+
"stockBracket": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": [
|
|
34
|
+
"id",
|
|
35
|
+
"name",
|
|
36
|
+
"buyPrice",
|
|
37
|
+
"stock",
|
|
38
|
+
"sellPrice",
|
|
39
|
+
"demand",
|
|
40
|
+
"stockBracket"
|
|
41
|
+
],
|
|
42
|
+
"type": "object"
|
|
43
|
+
},
|
|
44
|
+
"Id64": {
|
|
45
|
+
"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.",
|
|
46
|
+
"type": [
|
|
47
|
+
"number"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"Outfitting": {
|
|
51
|
+
"additionalProperties": false,
|
|
52
|
+
"properties": {
|
|
53
|
+
"id": {
|
|
54
|
+
"type": [
|
|
55
|
+
"string",
|
|
56
|
+
"null"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"name": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"id",
|
|
65
|
+
"name"
|
|
66
|
+
],
|
|
67
|
+
"type": "object"
|
|
68
|
+
},
|
|
69
|
+
"Ship": {
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"properties": {
|
|
72
|
+
"id": {
|
|
73
|
+
"type": "number"
|
|
74
|
+
},
|
|
75
|
+
"name": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": [
|
|
80
|
+
"id",
|
|
81
|
+
"name"
|
|
82
|
+
],
|
|
83
|
+
"type": "object"
|
|
84
|
+
},
|
|
85
|
+
"Station": {
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"properties": {
|
|
88
|
+
"allegiance": {
|
|
89
|
+
"type": [
|
|
90
|
+
"string",
|
|
91
|
+
"null"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"body": {
|
|
95
|
+
"$ref": "#/definitions/StationBody"
|
|
96
|
+
},
|
|
97
|
+
"commodities": {
|
|
98
|
+
"anyOf": [
|
|
99
|
+
{
|
|
100
|
+
"items": {
|
|
101
|
+
"$ref": "#/definitions/Commodity"
|
|
102
|
+
},
|
|
103
|
+
"type": "array"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "null"
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
"controllingFaction": {
|
|
111
|
+
"$ref": "#/definitions/StationControllingFaction"
|
|
112
|
+
},
|
|
113
|
+
"distanceToArrival": {
|
|
114
|
+
"type": [
|
|
115
|
+
"number",
|
|
116
|
+
"null"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"economy": {
|
|
120
|
+
"type": [
|
|
121
|
+
"string",
|
|
122
|
+
"null"
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
"government": {
|
|
126
|
+
"type": [
|
|
127
|
+
"string",
|
|
128
|
+
"null"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"haveMarket": {
|
|
132
|
+
"type": "boolean"
|
|
133
|
+
},
|
|
134
|
+
"haveOutfitting": {
|
|
135
|
+
"type": "boolean"
|
|
136
|
+
},
|
|
137
|
+
"haveShipyard": {
|
|
138
|
+
"type": "boolean"
|
|
139
|
+
},
|
|
140
|
+
"id": {
|
|
141
|
+
"type": "number"
|
|
142
|
+
},
|
|
143
|
+
"marketId": {
|
|
144
|
+
"type": [
|
|
145
|
+
"number",
|
|
146
|
+
"null"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
"name": {
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
"otherServices": {
|
|
153
|
+
"items": {
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"type": "array"
|
|
157
|
+
},
|
|
158
|
+
"outfitting": {
|
|
159
|
+
"anyOf": [
|
|
160
|
+
{
|
|
161
|
+
"items": {
|
|
162
|
+
"$ref": "#/definitions/Outfitting"
|
|
163
|
+
},
|
|
164
|
+
"type": "array"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "null"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
"secondEconomy": {
|
|
172
|
+
"type": [
|
|
173
|
+
"string",
|
|
174
|
+
"null"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
"ships": {
|
|
178
|
+
"anyOf": [
|
|
179
|
+
{
|
|
180
|
+
"items": {
|
|
181
|
+
"$ref": "#/definitions/Ship"
|
|
182
|
+
},
|
|
183
|
+
"type": "array"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"type": "null"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"systemId": {
|
|
191
|
+
"type": "number"
|
|
192
|
+
},
|
|
193
|
+
"systemId64": {
|
|
194
|
+
"anyOf": [
|
|
195
|
+
{
|
|
196
|
+
"$ref": "#/definitions/Id64"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "null"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"systemName": {
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
"type": {
|
|
207
|
+
"type": [
|
|
208
|
+
"string",
|
|
209
|
+
"null"
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"updateTime": {
|
|
213
|
+
"$ref": "#/definitions/StationUpdateTime"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"required": [
|
|
217
|
+
"id",
|
|
218
|
+
"marketId",
|
|
219
|
+
"type",
|
|
220
|
+
"name",
|
|
221
|
+
"distanceToArrival",
|
|
222
|
+
"allegiance",
|
|
223
|
+
"government",
|
|
224
|
+
"economy",
|
|
225
|
+
"secondEconomy",
|
|
226
|
+
"haveMarket",
|
|
227
|
+
"haveShipyard",
|
|
228
|
+
"haveOutfitting",
|
|
229
|
+
"otherServices",
|
|
230
|
+
"updateTime",
|
|
231
|
+
"commodities",
|
|
232
|
+
"ships",
|
|
233
|
+
"outfitting"
|
|
234
|
+
],
|
|
235
|
+
"type": "object"
|
|
236
|
+
},
|
|
237
|
+
"StationBody": {
|
|
238
|
+
"additionalProperties": false,
|
|
239
|
+
"properties": {
|
|
240
|
+
"id": {
|
|
241
|
+
"type": "number"
|
|
242
|
+
},
|
|
243
|
+
"latitude": {
|
|
244
|
+
"type": "number"
|
|
245
|
+
},
|
|
246
|
+
"longitude": {
|
|
247
|
+
"type": "number"
|
|
248
|
+
},
|
|
249
|
+
"name": {
|
|
250
|
+
"type": "string"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"required": [
|
|
254
|
+
"id",
|
|
255
|
+
"name"
|
|
256
|
+
],
|
|
257
|
+
"type": "object"
|
|
258
|
+
},
|
|
259
|
+
"StationControllingFaction": {
|
|
260
|
+
"additionalProperties": false,
|
|
261
|
+
"properties": {
|
|
262
|
+
"id": {
|
|
263
|
+
"type": [
|
|
264
|
+
"number",
|
|
265
|
+
"null"
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"name": {
|
|
269
|
+
"type": [
|
|
270
|
+
"string",
|
|
271
|
+
"null"
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"required": [
|
|
276
|
+
"id",
|
|
277
|
+
"name"
|
|
278
|
+
],
|
|
279
|
+
"type": "object"
|
|
280
|
+
},
|
|
281
|
+
"StationUpdateTime": {
|
|
282
|
+
"additionalProperties": false,
|
|
283
|
+
"properties": {
|
|
284
|
+
"information": {
|
|
285
|
+
"type": "string"
|
|
286
|
+
},
|
|
287
|
+
"market": {
|
|
288
|
+
"type": [
|
|
289
|
+
"string",
|
|
290
|
+
"null"
|
|
291
|
+
]
|
|
292
|
+
},
|
|
293
|
+
"outfitting": {
|
|
294
|
+
"type": [
|
|
295
|
+
"string",
|
|
296
|
+
"null"
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
"shipyard": {
|
|
300
|
+
"type": [
|
|
301
|
+
"string",
|
|
302
|
+
"null"
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"required": [
|
|
307
|
+
"information",
|
|
308
|
+
"market",
|
|
309
|
+
"shipyard",
|
|
310
|
+
"outfitting"
|
|
311
|
+
],
|
|
312
|
+
"type": "object"
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|