-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnasa.d.ts
147 lines (132 loc) Β· 3.49 KB
/
nasa.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
declare namespace NASA {
export namespace NeoWs {
interface APOD {
copyright: string
date: string
explanation: string
hdurl: string
media_type: string
service_version: string
title: string
url: string
}
interface CloseApproach {
close_approach_date_full: string
close_approach_date: string
epoch_date_close_approach: number
miss_distance: MissDistance
orbiting_body: string
relative_velocity: RelativeVelocity
}
interface EstimatedDiameter {
feet: EstimatedDiameterObject
kilometers: EstimatedDiameterObject
meters: EstimatedDiameterObject
miles: EstimatedDiameterObject
}
interface EstimatedDiameterObject {
estimated_diameter_max: number
stimated_diameter_min: number
}
interface Feed {
element_count: number
links: Links
near_earth_objects: NearEarthObjects
}
interface Links {
near_earth_object_parent?: string
next?: string
prev?: string
self: string
}
interface MissDistance {
astronomical: string
kilometers: string
lunar: string
miles: string
}
interface NearEarthObject {
absolute_magnitude_h: string
close_approach_data: CloseApproach[]
estimated_diameter: EstimatedDiameter
id: string
is_potentially_hazardous_asteroid: boolean
is_sentry_object: boolean
links: Links
name: string
nasa_jpl_url: string
neo_reference_id: string
orbital_data?: Orbit
}
interface NearEarthObjects {
[key: string]: NearEarthObject[]
}
interface Orbit {
aphelion_distance: string
ascending_node_longitude: string
data_arc_in_days: number
eccentricity: string
epoch_osculation: string
equinox: string
first_observation_date: string
inclination: string
jupiter_tisserand_invariant: string
last_observation_date: string
mean_anomaly: string
mean_motion: string
minimum_orbit_intersection: string
observations_used: number
orbit_class: OrbitClass
orbit_determination_date: string
orbit_id: string
orbit_uncertainty: string
orbital_period: string
perihelion_argument: string
perihelion_distance: string
perihelion_time: string
semi_major_axis: string
}
interface OrbitClass {
orbit_class_description: string
orbit_class_range: string
orbit_class_type: string
}
interface RelativeVelocity {
kilometers_per_hour: string
kilometers_per_second: string
miles_per_hour: string
}
interface Sentry {
absolute_magnitude: string
average_lunar_distance: number
designation: string
estimated_diameter: string
fullname: string
impact_probability: string
is_active_sentry_object: boolean
last_obs_jd: string
last_obs: string
links: Links
palermo_scale_ave: string
Palermo_scale_max: string
potential_impacts: string
sentryId: string
spkId: string
torino_scale: string
url_nasa_details: string
url_orbital_elements: string
v_infinity: string
year_range_max: string
year_range_min: string
}
type SentryObjects = Sentry[]
interface Stats {
near_earth_object_count: number
close_approach_count: number
last_updated: string
source: string
nasa_jpl_url: string
}
}
}
export as namespace NASA