-
Notifications
You must be signed in to change notification settings - Fork 0
/
spacex.d.ts
508 lines (493 loc) · 11.1 KB
/
spacex.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
declare namespace SPACEX {
export namespace ArKs {
interface Company {
ceo: string
coo: string
cto: string
cto_propulsion: string
employees: number
founded: number
founder: string
headquarters: {
address: string
city: string
state: string
}
launch_sites: number
links: {
elon_twitter: string
flickr: string
twitter: string
website: string
}
name: string
summary: string
test_sites: number
valuation: number
vehicles: number
}
interface Capsules {
serial: string //
id: string //
type: string //
status: string //
reuse_count: number
water_landings: number
land_landings: number
last_update: string
launches: string[]
}
interface Cores {
block: number
reuse_count: number
rtls_attempts: number
rtls_landings: number
asds_attempts: number
asds_landings: number
last_update: string
launches: string[]
serial: string
status: string
id: string
}
interface Crew {
name: string
agency: string
image: string
wikipedia: string
launches: string[]
status: string
id: string
}
interface Dragons {
heat_shield: {
material: string
size_meters: number
temp_degrees: number
dev_partner: string
}
launch_payload_mass: {
kg: number
lb: number
}
launch_payload_vol: {
cubic_meters: number
cubic_feet: number
}
return_payload_mass: {
kg: number
lb: number
}
return_payload_vol: {
cubic_meters: number
cubic_feet: number
}
pressurized_capsule: {
payload_volume: {
cubic_meters: number
cubic_feet: number
}
}
trunk: {
trunk_volume: {
cubic_meters: number
cubic_feet: number
}
cargo: {
solar_array: number
unpressurized_cargo: boolean
}
}
height_w_trunk: {
meters: number
feet: number
}
diameter: {
meters: number
feet: number
}
first_flight: string
flickr_images: string[]
name: string
type: string
active: boolean
crew_capacity: number
sidewall_angle_deg: number
orbit_duration_yr: number
dry_mass_kg: number
dry_mass_lb: number
thrusters: {
type: string
amount: number
pods: number
fuel_1: string
fuel_2: string
isp: number
thrust: {
kN: number
lbf: number
}
}[]
wikipedia: string
description: string
id: string
}
interface Landpads {
images: {
large: any
}
name: string
full_name: string
status: string
type: string
locality: string
region: string
latitude: number
longitude: number
landing_attempts: number
landing_successes: number
wikipedia: string //
details: string //
launches: string[] //
id: string
}
interface Launches {
farings: {
reused: boolean
recovery_attempt: boolean
recovered: boolean
ship: string
}
links: {
patch: {
large: string
small: string
}
reddit: {
campaign: string
launch: string
media: string
recovery: string
}
flickr: {
original: string[]
}
presskit: string
webcast: string
youtube_id: string
article: string
wikipedia: string
}
static_fire_date_utc: string
static_fire_date_unix: number
net: boolean
window: number
rocket: string
success: boolean
failures: {
time: number
altitude: number
reason: string
}[]
details: string
crew: string[]
ships: string[]
capsules: string[]
payloads: string[]
launchpad: string
flight_number: number
name: string
date_utc: string
date_unix: number
date_local: string
date_precision: string
upcoming: boolean
cores: {
core: string
flight: number
gridfins: boolean
legs: boolean
reused: boolean
landing_attempt: boolean
landing_success: boolean
landing_type: string
landpad: string
}[]
auto_update: boolean
tbd: boolean
launch_library_id: string
id: string
}
interface Launchpad {
images: {
large: string[]
}
name: string
full_name: string
locality: string
region: string
latitude: number
longitude: number
launch_attempts: number
launch_successes: number
rockets: string[]
timezone: string
details: string
launches: string[]
status: string
id: string
details: string
}
interface Payloads {
dragon: {
capsule: string
mass_returned_kg: number
mass_returned_lbs: number
flight_time_sec: number
manifest: string
water_landing: boolean
land_landing: boolean
}
name: string
type: string
reused: boolean
launch: string
customers: string[]
norad_id: number[]
nationalities: string[]
manufacturers: string[]
mass_kg: number
mass_lbs: number
orbit: string
reference_system: string
regime: string
longitude: number
semi_major_axis_km: number
eccentricity: number
periapsis_km: number
apoapsis_km: number
inclination_deg: number
period_min: number
lifespan_years: number
epoch: string
lifespan_years: number
mean_motion: number
raan: number
arg_of_pericenter: number
mean_anomaly: number
id: string
}
interface Roadster {
name: string
launch_date_utc: string
launch_date_unix: number
launch_mass_kg: number
launch_mass_lbs: number
norad_id: number
epoch_jd: number
orbit_type: string
apoapsis_au: number
periapsis_au: number
semi_major_axis_au: number
eccentricity: number
inclination: number
longitude: number
periapsis_arg: number
period_days: number
speed_kph: number
speed_mph: number
earth_distance_km: number
earth_distance_mi: number
mars_distance_km: number
mars_distance_mi: number
wikipedia: string
flickr_images: string[]
wikipedia: string
video: string
details: string
id: string
}
interface Rockets {
height: {
meters: number
feet: number
}
diameter: {
meters: number
feet: number
}
mass: {
kg: number
lb: number
}
first_stage: {
thrust_sea_level: {
kN: number
lbf: number
}
thrust_vacuum: {
kN: number
lbf: number
}
reusable: boolean
engines: number
fuel_amount_tons: number
burn_time_sec: number
}
second_stage: {
thrust: {
kN: number
lbf: number
}
payloads: {
composite_fairing: {
height: {
meters: number
feet: number
}
diameter: {
meters: number
feet: number
}
}
option_1: string
}
reusable: boolean
engines: number
fuel_amount_tons: number
burn_time_sec: number
}
engines: {
number: number
type: string
version: string
layout: string
engine_loss_max: number
propellant_1: string
propellant_2: string
thrust_sea_level: {
kN: number
lbf: number
}
thrust_vacuum: {
kN: number
lbf: number
}
thrust_to_weight: number
}
landing_legs: {
number: number
material: string
}
flickr_images: string[]
name: string
type: string
active: boolean
stages: number
boosters: number
cost_per_launch: number
success_rate_pct: number
first_flight: string
country: string
company: string
wikipedia: string
description: string
id: string
}
interface Ships {
last_ais_update: string
legacy_id: string
model: string
type: string
roles: string[]
imo: number
mmsi: number
abs: number
class: number
mass_kg: number
mass_lbs: number
year_built: number
home_port: string
status: string
speed_kn: number
course_deg: number
latitude: number
longitude: number
link: string
image: string
name: string
active: boolean
launches: string[]
id: string
}
interface GlobePoint {
lat: SPACEX.ArKs.Starlink.latitude;
lng: SPACEX.ArKs.Starlink.longitude;
alt: number;
radius: number;
color: string;
label: SPACEX.ArKs.Starlink.spaceTrack.TLE_LINE0;
version: SPACEX.ArKs.Starlink.version;
velocity_kms: SPACEX.ArKs.Starlink.velocity_kms;
height_km: SPACEX.ArKs.Starlink.height_km;
launch: Launch;
name: SPACEX.ArKs.Starlink.spaceTrack.OBJECT_NAME;
date: SPACEX.ArKs.Starlink.spaceTrack.LAUNCH_DATE;
spaceTrack: SPACEX.ArKs.Starlink.spaceTrack;
}
interface Starlink {
spaceTrack: {
CCSDS_OMM_VERS: string
COMMENT: string
CREATION_DATE: string
ORIGINATOR: string
OBJECT_NAME: string
OBJECT_ID: string
CENTER_NAME: string
REF_FRAME: string
TIME_SYSTEM: string
MEAN_ELEMENT_THEORY: string
EPOCH: string
MEAN_MOTION: string
ECCENTRICITY: string
INCLINATION: string
RA_OF_ASC_NODE: string
ARG_OF_PERICENTER: string
MEAN_ANOMALY: string
EPHEMERIS_TYPE: string
CLASSIFICATION_TYPE: string
NORAD_CAT_ID: string
ELEMENT_SET_NO: string
REV_AT_EPOCH: string
BSTAR: string
MEAN_MOTION_DOT: string
MEAN_MOTION_DDOT: string
SEMIMAJOR_AXIS: string
PERIOD: string
APOAPSIS: string
PERIAPSIS: string
OBJECT_TYPE: string
RCS_SIZE: string
COUNTRY_CODE: string
LAUNCH_DATE: string
SITE: string
DECAY_DATE: string
DECAYED: number
FILE: number
GP_ID: number
TLE_LINE0: string
TLE_LINE1: string
TLE_LINE2: string
}
id: number
version: string
launch: number
velocity_kms: number
longitude: number
latitude: number
height_km: number
}
}
}
export as namespace SPACEX
declare module "@heroicons/*"