@flybywiresim/api-client
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -46,2 +46,6 @@ export declare class MetarResponse { | ||
} | ||
export declare class SearchResult<T> { | ||
fullMatch?: T; | ||
matches: T[]; | ||
} | ||
export declare class TelexMessage { | ||
@@ -125,3 +129,3 @@ id: string; | ||
static fetchConnection(id: string): Promise<TelexConnection>; | ||
static findConnections(flightNumber: string): Promise<TelexConnection[]>; | ||
static findConnections(flightNumber: string): Promise<SearchResult<TelexConnection>>; | ||
static countConnections(): Promise<number>; | ||
@@ -128,0 +132,0 @@ private static buildBody; |
@@ -274,3 +274,8 @@ "use strict"; | ||
return _get(url) | ||
.then(function (res) { return res.map(Telex.mapConnection); }); | ||
.then(function (res) { | ||
return { | ||
matches: res.matches.map(Telex.mapConnection), | ||
fullMatch: res.fullMatch ? Telex.mapConnection(res.fullMatch) : undefined, | ||
}; | ||
}); | ||
}; | ||
@@ -277,0 +282,0 @@ Telex.countConnections = function () { |
{ | ||
"name": "@flybywiresim/api-client", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "Client library for the FlyByWire Simulations API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25818
508