From 8b73ad0d2737ce8003f58bf2ee57e0bcdaf32f5c Mon Sep 17 00:00:00 2001 From: Niklas Steiner Date: Tue, 15 Jun 2021 20:11:04 +0200 Subject: [PATCH] chore: release prep --- README.md | 18 ++++++++++++++++++ package.json | 2 +- src/index.ts | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e2fc5f1..3aba98b 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,24 @@ Airport.get(icao) }); ``` + +### Airport +```ts +import { Atis } from '@flybywiresim/api-client'; + +ATC.get(source) + .then(data => { + console.log(data); + }).catch(err => { + console.error(err); +}); +``` + +- `source` is the selected datasource for the ATC. + Valid sources are: + - vatsim + - ivao + - `icao` is a string of the the airport ICAO code to search for. ### TELEX connection handling diff --git a/package.json b/package.json index 784b7f8..f24da9a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@flybywiresim/api-client", - "version": "0.11.0", + "version": "0.12.0", "description": "Client library for the FlyByWire Simulations API", "main": "lib/index.js", "scripts": { diff --git a/src/index.ts b/src/index.ts index 5bee5f1..669d319 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,6 +21,7 @@ export declare class AtisResponse { export declare class AirportResponse { icao: string; + iata: string; type: string; name: string; lat: number;