@headwindsimulations/api-client 1.1.5 → 1.2.1
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/dist/apis/SayIntentions.d.ts +11 -0
- package/dist/apis/index.d.ts +1 -9
- package/dist/index.esm.js +17 -422
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +17 -431
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/apis/airport.d.ts +0 -16
- package/dist/apis/atc.d.ts +0 -22
- package/dist/apis/atc.spec.d.ts +0 -1
- package/dist/apis/atis.d.ts +0 -10
- package/dist/apis/atis.spec.d.ts +0 -1
- package/dist/apis/charts.d.ts +0 -11
- package/dist/apis/charts.spec.d.ts +0 -1
- package/dist/apis/git-versions.d.ts +0 -33
- package/dist/apis/git-versions.spec.d.ts +0 -1
- package/dist/apis/gnss.d.ts +0 -23
- package/dist/apis/gnss.spec.d.ts +0 -1
- package/dist/apis/metar.d.ts +0 -8
- package/dist/apis/metar.spec.d.ts +0 -1
- package/dist/apis/taf.d.ts +0 -8
- package/dist/apis/taf.spec.d.ts +0 -1
- package/dist/apis/telex.d.ts +0 -83
- package/dist/apis/telex.spec.d.ts +0 -1
- /package/dist/apis/{airport.spec.d.ts → SayIntentions.spec.d.ts} +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare class CommitInfo {
|
|
2
|
-
sha: string;
|
|
3
|
-
shortSha: string;
|
|
4
|
-
timestamp: Date;
|
|
5
|
-
}
|
|
6
|
-
export declare class ReleaseInfo {
|
|
7
|
-
name: string;
|
|
8
|
-
isPreRelease: boolean;
|
|
9
|
-
publishedAt: Date;
|
|
10
|
-
htmlUrl: string;
|
|
11
|
-
body: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class PullLabel {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
color: string;
|
|
17
|
-
}
|
|
18
|
-
export declare class PullInfo {
|
|
19
|
-
number: number;
|
|
20
|
-
title: string;
|
|
21
|
-
author: string;
|
|
22
|
-
labels: PullLabel[];
|
|
23
|
-
isDraft: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare class ArtifactInfo {
|
|
26
|
-
artifactUrl: string;
|
|
27
|
-
}
|
|
28
|
-
export declare class GitVersions {
|
|
29
|
-
static getNewestCommit(user: string, repo: string, branch: string): Promise<CommitInfo>;
|
|
30
|
-
static getReleases(user: string, repo: string, includePreReleases?: boolean, skip?: number, take?: number): Promise<ReleaseInfo[]>;
|
|
31
|
-
static getPulls(user: string, repo: string): Promise<PullInfo[]>;
|
|
32
|
-
static getArtifact(user: string, repo: string, pull: string): Promise<ArtifactInfo>;
|
|
33
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/apis/gnss.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare class GNSSResponse {
|
|
2
|
-
name: string;
|
|
3
|
-
id: string;
|
|
4
|
-
epoch: Date;
|
|
5
|
-
meanMotion: number;
|
|
6
|
-
eccentricity: number;
|
|
7
|
-
inclination: number;
|
|
8
|
-
raOfAscNode: number;
|
|
9
|
-
argOfPericenter: number;
|
|
10
|
-
meanAnomaly: number;
|
|
11
|
-
ephemerisType: number;
|
|
12
|
-
classificationType: string;
|
|
13
|
-
noradCatId: number;
|
|
14
|
-
elementSetNo: number;
|
|
15
|
-
revAtEpoch: number;
|
|
16
|
-
bstar: number;
|
|
17
|
-
meanMotionDot: number;
|
|
18
|
-
meanMotionDdot: number;
|
|
19
|
-
}
|
|
20
|
-
export declare class GNSS {
|
|
21
|
-
static get(): Promise<GNSSResponse[]>;
|
|
22
|
-
private static mapResult;
|
|
23
|
-
}
|
package/dist/apis/gnss.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/apis/metar.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/apis/taf.d.ts
DELETED
package/dist/apis/taf.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/apis/telex.d.ts
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export declare class TelexConnection {
|
|
2
|
-
id: string;
|
|
3
|
-
isActive: boolean;
|
|
4
|
-
firstContact: Date;
|
|
5
|
-
lastContact: Date;
|
|
6
|
-
flight: string;
|
|
7
|
-
location: {
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
};
|
|
11
|
-
trueAltitude: number;
|
|
12
|
-
heading: number;
|
|
13
|
-
freetextEnabled: boolean;
|
|
14
|
-
aircraftType: string;
|
|
15
|
-
airline: string;
|
|
16
|
-
origin: string;
|
|
17
|
-
destination: string;
|
|
18
|
-
}
|
|
19
|
-
export declare class SearchResult<T> {
|
|
20
|
-
fullMatch?: T;
|
|
21
|
-
matches: T[];
|
|
22
|
-
}
|
|
23
|
-
export declare class TelexMessage {
|
|
24
|
-
id: string;
|
|
25
|
-
createdAt: Date;
|
|
26
|
-
received: boolean;
|
|
27
|
-
message: string;
|
|
28
|
-
isProfane: boolean;
|
|
29
|
-
from: TelexConnection;
|
|
30
|
-
to?: TelexConnection;
|
|
31
|
-
}
|
|
32
|
-
export declare class Token {
|
|
33
|
-
accessToken: string;
|
|
34
|
-
connection: string;
|
|
35
|
-
flight: string;
|
|
36
|
-
}
|
|
37
|
-
export declare class AircraftStatus {
|
|
38
|
-
location: {
|
|
39
|
-
long: number;
|
|
40
|
-
lat: number;
|
|
41
|
-
};
|
|
42
|
-
trueAltitude: number;
|
|
43
|
-
heading: number;
|
|
44
|
-
origin: string;
|
|
45
|
-
destination: string;
|
|
46
|
-
freetextEnabled: boolean;
|
|
47
|
-
flight: string;
|
|
48
|
-
aircraftType: string;
|
|
49
|
-
airline: string;
|
|
50
|
-
}
|
|
51
|
-
export declare class Paginated<T> {
|
|
52
|
-
results: T[];
|
|
53
|
-
count: number;
|
|
54
|
-
total: number;
|
|
55
|
-
}
|
|
56
|
-
export declare class Bounds {
|
|
57
|
-
north: number;
|
|
58
|
-
east: number;
|
|
59
|
-
south: number;
|
|
60
|
-
west: number;
|
|
61
|
-
}
|
|
62
|
-
export declare type StageCallback = (flights: TelexConnection[]) => void;
|
|
63
|
-
export declare class TelexNotConnectedError extends Error {
|
|
64
|
-
constructor();
|
|
65
|
-
}
|
|
66
|
-
export declare class Telex {
|
|
67
|
-
private static accessToken;
|
|
68
|
-
static connect(status: AircraftStatus): Promise<Token>;
|
|
69
|
-
static update(status: AircraftStatus): Promise<TelexConnection>;
|
|
70
|
-
static disconnect(): Promise<void>;
|
|
71
|
-
static sendMessage(recipientFlight: string, message: string): Promise<TelexMessage>;
|
|
72
|
-
static fetchMessages(): Promise<TelexMessage[]>;
|
|
73
|
-
static fetchConnections(skip?: number, take?: number, bounds?: Bounds): Promise<Paginated<TelexConnection>>;
|
|
74
|
-
static fetchAllConnections(bounds?: Bounds, stageCallback?: StageCallback): Promise<TelexConnection[]>;
|
|
75
|
-
static fetchConnection(id: string): Promise<TelexConnection>;
|
|
76
|
-
static findConnections(flightNumber: string): Promise<SearchResult<TelexConnection>>;
|
|
77
|
-
static countConnections(): Promise<number>;
|
|
78
|
-
private static buildBody;
|
|
79
|
-
private static buildToken;
|
|
80
|
-
private static connectionOrThrow;
|
|
81
|
-
private static mapConnection;
|
|
82
|
-
private static mapMessage;
|
|
83
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|