fshub-api 4.1.2 → 4.1.4
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/README.md +15 -1
- package/dist/api/FSHubApiRequest.d.ts.map +1 -1
- package/dist/api/FSHubApiRequest.js +9 -2
- package/dist/api/FSHubApiRequest.js.map +1 -1
- package/dist/api/airline/Airline_approveManualPIREP.d.ts +3 -0
- package/dist/api/airline/Airline_approveManualPIREP.d.ts.map +1 -0
- package/dist/api/airline/Airline_approveManualPIREP.js +56 -0
- package/dist/api/airline/Airline_approveManualPIREP.js.map +1 -0
- package/dist/api/airline/Airline_getAll.d.ts +2 -2
- package/dist/api/airline/Airline_getAll.d.ts.map +1 -1
- package/dist/api/airline/Airline_getAll.js +2 -2
- package/dist/api/airline/Airline_getAll.js.map +1 -1
- package/dist/api/airline/Airline_getAllFlightDeparturesAndArrivals.d.ts +2 -2
- package/dist/api/airline/Airline_getAllFlightDeparturesAndArrivals.d.ts.map +1 -1
- package/dist/api/airline/Airline_getAllFlightDeparturesAndArrivals.js +2 -2
- package/dist/api/airline/Airline_getAllFlightDeparturesAndArrivals.js.map +1 -1
- package/dist/api/airline/Airline_getAllFlightsArrivals.d.ts +2 -2
- package/dist/api/airline/Airline_getAllFlightsArrivals.d.ts.map +1 -1
- package/dist/api/airline/Airline_getAllFlightsArrivals.js +2 -2
- package/dist/api/airline/Airline_getAllFlightsArrivals.js.map +1 -1
- package/dist/api/airline/Airline_getAllFlightsDepartures.d.ts +2 -2
- package/dist/api/airline/Airline_getAllFlightsDepartures.d.ts.map +1 -1
- package/dist/api/airline/Airline_getAllFlightsDepartures.js +2 -2
- package/dist/api/airline/Airline_getAllFlightsDepartures.js.map +1 -1
- package/dist/api/airline/Airline_getAllRanks.d.ts +2 -2
- package/dist/api/airline/Airline_getAllRanks.d.ts.map +1 -1
- package/dist/api/airline/Airline_getAllRanks.js +2 -2
- package/dist/api/airline/Airline_getAllRanks.js.map +1 -1
- package/dist/api/airline/Airline_getAllRoles.d.ts +2 -2
- package/dist/api/airline/Airline_getAllRoles.d.ts.map +1 -1
- package/dist/api/airline/Airline_getAllRoles.js +2 -2
- package/dist/api/airline/Airline_getAllRoles.js.map +1 -1
- package/dist/api/airline/Airline_getAllRoutes.d.ts +2 -2
- package/dist/api/airline/Airline_getAllRoutes.d.ts.map +1 -1
- package/dist/api/airline/Airline_getAllRoutes.js +2 -2
- package/dist/api/airline/Airline_getAllRoutes.js.map +1 -1
- package/dist/api/airline/Airline_getAllScreenshots.d.ts +2 -2
- package/dist/api/airline/Airline_getAllScreenshots.d.ts.map +1 -1
- package/dist/api/airline/Airline_getAllScreenshots.js +2 -2
- package/dist/api/airline/Airline_getAllScreenshots.js.map +1 -1
- package/dist/api/airline/Airline_getFlights.d.ts +2 -2
- package/dist/api/airline/Airline_getFlights.d.ts.map +1 -1
- package/dist/api/airline/Airline_getFlights.js +2 -2
- package/dist/api/airline/Airline_getFlights.js.map +1 -1
- package/dist/api/airline/Airline_getPilots.d.ts +2 -2
- package/dist/api/airline/Airline_getPilots.d.ts.map +1 -1
- package/dist/api/airline/Airline_getPilots.js +2 -2
- package/dist/api/airline/Airline_getPilots.js.map +1 -1
- package/dist/api/airline/Airline_rejectManualPIREP.d.ts +3 -0
- package/dist/api/airline/Airline_rejectManualPIREP.d.ts.map +1 -0
- package/dist/api/airline/Airline_rejectManualPIREP.js +56 -0
- package/dist/api/airline/Airline_rejectManualPIREP.js.map +1 -0
- package/dist/api/airline/index.d.ts +4 -0
- package/dist/api/airline/index.d.ts.map +1 -1
- package/dist/api/airline/index.js +4 -0
- package/dist/api/airline/index.js.map +1 -1
- package/dist/api/flight/Flight_getFlightScreenshotsById.d.ts +2 -2
- package/dist/api/flight/Flight_getFlightScreenshotsById.d.ts.map +1 -1
- package/dist/api/flight/Flight_getFlightScreenshotsById.js +2 -2
- package/dist/api/flight/Flight_getFlightScreenshotsById.js.map +1 -1
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getAll.d.ts +2 -2
- package/dist/api/pilot/Pilot_getAll.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getAll.js +2 -2
- package/dist/api/pilot/Pilot_getAll.js.map +1 -1
- package/dist/api/pilot/Pilot_getAllAirlines.d.ts +2 -2
- package/dist/api/pilot/Pilot_getAllAirlines.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getAllAirlines.js +2 -2
- package/dist/api/pilot/Pilot_getAllAirlines.js.map +1 -1
- package/dist/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.d.ts +2 -2
- package/dist/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.js +2 -2
- package/dist/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.js.map +1 -1
- package/dist/api/pilot/Pilot_getAllFlights.d.ts +2 -2
- package/dist/api/pilot/Pilot_getAllFlights.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getAllFlights.js +2 -2
- package/dist/api/pilot/Pilot_getAllFlights.js.map +1 -1
- package/dist/api/pilot/Pilot_getAllFlightsArrivals.d.ts +2 -2
- package/dist/api/pilot/Pilot_getAllFlightsArrivals.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getAllFlightsArrivals.js +2 -2
- package/dist/api/pilot/Pilot_getAllFlightsArrivals.js.map +1 -1
- package/dist/api/pilot/Pilot_getAllFlightsDepartures.d.ts +2 -2
- package/dist/api/pilot/Pilot_getAllFlightsDepartures.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getAllFlightsDepartures.js +2 -2
- package/dist/api/pilot/Pilot_getAllFlightsDepartures.js.map +1 -1
- package/dist/api/pilot/Pilot_getAllScreenshots.d.ts +2 -2
- package/dist/api/pilot/Pilot_getAllScreenshots.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getAllScreenshots.js +2 -2
- package/dist/api/pilot/Pilot_getAllScreenshots.js.map +1 -1
- package/dist/index.d.ts +20 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +58 -36
- package/dist/index.js.map +1 -1
- package/dist/types/FSHubApi.d.ts +20 -18
- package/dist/types/FSHubApi.d.ts.map +1 -1
- package/dist/types/ManualPIREP.d.ts +159 -0
- package/dist/types/ManualPIREP.d.ts.map +1 -0
- package/dist/types/ManualPIREP.js +3 -0
- package/dist/types/ManualPIREP.js.map +1 -0
- package/package.json +5 -2
- package/release.ps1 +2 -1
- package/src/api/FSHubApiRequest.ts +5 -1
- package/src/api/airline/Airline_approveManualPIREP.ts +10 -0
- package/src/api/airline/Airline_getAll.ts +3 -3
- package/src/api/airline/Airline_getAllFlightDeparturesAndArrivals.ts +3 -3
- package/src/api/airline/Airline_getAllFlightsArrivals.ts +3 -3
- package/src/api/airline/Airline_getAllFlightsDepartures.ts +3 -3
- package/src/api/airline/Airline_getAllRanks.ts +3 -3
- package/src/api/airline/Airline_getAllRoles.ts +3 -3
- package/src/api/airline/Airline_getAllRoutes.ts +3 -3
- package/src/api/airline/Airline_getAllScreenshots.ts +3 -3
- package/src/api/airline/Airline_getFlights.ts +3 -3
- package/src/api/airline/Airline_getPilots.ts +3 -3
- package/src/api/airline/Airline_rejectManualPIREP.ts +10 -0
- package/src/api/airline/index.ts +4 -0
- package/src/api/flight/Flight_getFlightScreenshotsById.ts +3 -3
- package/src/api/pilot/Pilot_getAll.ts +3 -3
- package/src/api/pilot/Pilot_getAllAirlines.ts +3 -3
- package/src/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.ts +3 -3
- package/src/api/pilot/Pilot_getAllFlights.ts +3 -3
- package/src/api/pilot/Pilot_getAllFlightsArrivals.ts +3 -3
- package/src/api/pilot/Pilot_getAllFlightsDepartures.ts +3 -3
- package/src/api/pilot/Pilot_getAllScreenshots.ts +3 -3
- package/src/index.spec.ts +246 -3
- package/src/index.ts +46 -36
- package/src/types/FSHubApi.ts +20 -18
- package/src/types/ManualPIREP.ts +175 -0
package/README.md
CHANGED
|
@@ -178,7 +178,19 @@ const payload: FSHubPilotSetRankData = {
|
|
|
178
178
|
rank_id: rank_id,
|
|
179
179
|
};
|
|
180
180
|
|
|
181
|
-
const response: FSHubApplicationResponse = await api.
|
|
181
|
+
const response: FSHubApplicationResponse = await api.Airline_pilotSetRank(pilot_id, airline_id, payload);
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
#### Approve Manual PIREP
|
|
185
|
+
```typescript
|
|
186
|
+
const flight_id = 4351163;
|
|
187
|
+
const response: FSHubApplicationResponse = await api.Airline_approveManualPIREP(airline_id, flight_id);
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
#### Reject Manual PIREP
|
|
191
|
+
```typescript
|
|
192
|
+
const flight_id = 4351163;
|
|
193
|
+
const response: FSHubApplicationResponse = await api.Airline_rejectManualPIREP(airline_id, flight_id);
|
|
182
194
|
```
|
|
183
195
|
|
|
184
196
|
## 🔍 Data Types
|
|
@@ -254,6 +266,8 @@ npm run dev
|
|
|
254
266
|
- `Airline_pilotSetRank` - set a pilots rank
|
|
255
267
|
- `Airline_getAllRanks` - get all airline ranks
|
|
256
268
|
- `Airline_getAllRoles` - get all airline roles
|
|
269
|
+
- `Airline_approveManualPIREP` - approve a member pilot submitted manual PIREP
|
|
270
|
+
- `Airline_rejectManualPIREP` - reject a member pilot submitted manual PIREP
|
|
257
271
|
|
|
258
272
|
## 🤝 Contributing
|
|
259
273
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FSHubApiRequest.d.ts","sourceRoot":"","sources":["../../src/api/FSHubApiRequest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAc,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpF,wBAAsB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"FSHubApiRequest.d.ts","sourceRoot":"","sources":["../../src/api/FSHubApiRequest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAc,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpF,wBAAsB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAqB7H;AAED,wBAAsB,mBAAmB,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAQrH;AAED,wBAAsB,kBAAkB,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAQpH;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -41,13 +41,20 @@ exports.FSHubApiPostRequest = FSHubApiPostRequest;
|
|
|
41
41
|
exports.FSHubApiPutRequest = FSHubApiPutRequest;
|
|
42
42
|
function FSHubApiRequest(url, api, options) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function () {
|
|
44
|
-
var queryParams, response;
|
|
44
|
+
var queryParams, params, queryString, response;
|
|
45
45
|
return __generator(this, function (_a) {
|
|
46
46
|
switch (_a.label) {
|
|
47
47
|
case 0:
|
|
48
48
|
queryParams = '';
|
|
49
49
|
if (options) {
|
|
50
|
-
|
|
50
|
+
params = new URLSearchParams();
|
|
51
|
+
if (options.cursor !== undefined)
|
|
52
|
+
params.set('cursor', String(options.cursor));
|
|
53
|
+
if (options.limit !== undefined)
|
|
54
|
+
params.set('limit', String(options.limit));
|
|
55
|
+
queryString = params.toString();
|
|
56
|
+
if (queryString)
|
|
57
|
+
queryParams = "?".concat(queryString);
|
|
51
58
|
}
|
|
52
59
|
return [4 /*yield*/, api.axios.get(url + queryParams)
|
|
53
60
|
.then(function (res) { return res.data; })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FSHubApiRequest.js","sourceRoot":"","sources":["../../src/api/FSHubApiRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,
|
|
1
|
+
{"version":3,"file":"FSHubApiRequest.js","sourceRoot":"","sources":["../../src/api/FSHubApiRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0CAqBC;AAED,kDAQC;AAED,gDAQC;AAzCD,SAAsB,eAAe,CAAI,GAAW,EAAE,GAAa,EAAE,OAA6B;;;;;;oBAC1F,WAAW,GAAG,EAAE,CAAC;oBACrB,IAAI,OAAO,EAAE,CAAC;wBACJ,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;wBACrC,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS;4BAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;wBAC/E,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS;4BAAE,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;wBACtE,WAAW,GAAG,MAAM,CAAC,QAAQ,EAAE,CAAC;wBACtC,IAAI,WAAW;4BAAE,WAAW,GAAG,WAAI,WAAW,CAAE,CAAC;oBACrD,CAAC;oBAEmC,qBAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,GAAG,WAAW,CAAC;6BACrE,IAAI,CAAC,UAAC,GAAoC,IAAK,OAAA,GAAG,CAAC,IAAI,EAAR,CAAQ,CAAC;6BACxD,KAAK,CAAC,UAAC,GAA2B;;4BAC/B,IAAI,CAAA,MAAA,GAAG,CAAC,QAAQ,0CAAE,IAAI,CAAC,IAAI,MAAK,GAAG,EAAE,CAAC;gCAClC,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC;4BACjC,CAAC;4BAED,MAAM,IAAI,KAAK,CAAC,MAAA,GAAG,CAAC,QAAQ,0CAAE,IAAI,CAAC,OAAO,CAAC,CAAC;wBAChD,CAAC,CAAC,EAAA;;oBARA,QAAQ,GAAsB,SAQ9B;oBAEN,sBAAO,QAAQ,EAAC;;;;CACnB;AAED,SAAsB,mBAAmB,CAAa,GAAW,EAAE,GAAa,EAAE,IAAQ;;;;;wBACnD,qBAAM,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC;yBAC7D,IAAI,CAAC,UAAC,GAAoC,IAAK,OAAA,GAAG,CAAC,IAAI,EAAR,CAAQ,CAAC;yBACxD,KAAK,CAAC,UAAC,GAA2B;;wBAC/B,MAAM,IAAI,KAAK,CAAC,MAAA,GAAG,CAAC,QAAQ,0CAAE,IAAI,CAAC,OAAO,CAAC,CAAC;oBAChD,CAAC,CAAC,EAAA;;oBAJA,QAAQ,GAAqB,SAI7B;oBAEN,sBAAO,QAAQ,EAAC;;;;CACnB;AAED,SAAsB,kBAAkB,CAAa,GAAW,EAAE,GAAa,EAAE,IAAQ;;;;;wBAClD,qBAAM,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC;yBAC5D,IAAI,CAAC,UAAC,GAAoC,IAAK,OAAA,GAAG,CAAC,IAAI,EAAR,CAAQ,CAAC;yBACxD,KAAK,CAAC,UAAC,GAA2B;;wBAC/B,MAAM,IAAI,KAAK,CAAC,MAAA,GAAG,CAAC,QAAQ,0CAAE,IAAI,CAAC,OAAO,CAAC,CAAC;oBAChD,CAAC,CAAC,EAAA;;oBAJA,QAAQ,GAAqB,SAI7B;oBAEN,sBAAO,QAAQ,EAAC;;;;CACnB;AAED,kBAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FSHubApi, FSHubResponse, FSHubApplicationResponse } from "../../types";
|
|
2
|
+
export default function Airline_approveManualPIREP(airlineId: number, flightId: number, api: FSHubApi): Promise<FSHubResponse<FSHubApplicationResponse>>;
|
|
3
|
+
//# sourceMappingURL=Airline_approveManualPIREP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_approveManualPIREP.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_approveManualPIREP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAGhF,wBAA8B,0BAA0B,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC,CAM7J"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.default = Airline_approveManualPIREP;
|
|
40
|
+
var FSHubApiRequest_1 = require("../FSHubApiRequest");
|
|
41
|
+
function Airline_approveManualPIREP(airlineId, flightId, api) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
+
var url, response;
|
|
44
|
+
return __generator(this, function (_a) {
|
|
45
|
+
switch (_a.label) {
|
|
46
|
+
case 0:
|
|
47
|
+
url = "airline/".concat(airlineId, "/pirep/").concat(flightId, "/approve");
|
|
48
|
+
return [4 /*yield*/, (0, FSHubApiRequest_1.FSHubApiPostRequest)(url, api)];
|
|
49
|
+
case 1:
|
|
50
|
+
response = _a.sent();
|
|
51
|
+
return [2 /*return*/, response];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=Airline_approveManualPIREP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_approveManualPIREP.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_approveManualPIREP.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,6CAMC;AARD,sDAAyD;AAEzD,SAA8B,0BAA0B,CAAC,SAAiB,EAAE,QAAgB,EAAE,GAAa;;;;;;oBACjG,GAAG,GAAG,kBAAW,SAAS,oBAAU,QAAQ,aAAU,CAAC;oBAEH,qBAAM,IAAA,qCAAmB,EAAiC,GAAG,EAAE,GAAG,CAAC,EAAA;;oBAAvH,QAAQ,GAA4C,SAAmE;oBAE7H,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, FSHubResponse, Airline } from "../../types";
|
|
2
|
-
export default function Airline_getAll(api: FSHubApi): Promise<FSHubResponse<Airline[]>>;
|
|
1
|
+
import { FSHubApi, FSHubRequestOptions, FSHubResponse, Airline } from "../../types";
|
|
2
|
+
export default function Airline_getAll(api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<Airline[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getAll.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAll.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getAll.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAGpF,wBAA8B,cAAc,CAAC,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAI5H"}
|
|
@@ -41,12 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getAll;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getAll(api) {
|
|
44
|
+
function Airline_getAll(api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline", api)];
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline", api, options)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
52
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAll.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAll.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,iCAIC;AAND,uEAAiD;AAEjD,SAA8B,cAAc,CAAC,GAAa;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getAll.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAll.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,iCAIC;AAND,uEAAiD;AAEjD,SAA8B,cAAc,CAAC,GAAa,EAAE,OAA6B;;;;;wBAC1C,qBAAM,IAAA,yBAAe,EAAC,SAAS,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAAnF,QAAQ,GAA6B,SAA8C;oBAEzF,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Flight, FSHubApi, FSHubResponse } from "../../types";
|
|
2
|
-
export default function Airline_getAllFlightDeparturesAndArrivals(id: number, departureAirportCode: string, arrivalAirportCode: string, api: FSHubApi): Promise<FSHubResponse<Flight[]>>;
|
|
1
|
+
import { Flight, FSHubApi, FSHubRequestOptions, FSHubResponse } from "../../types";
|
|
2
|
+
export default function Airline_getAllFlightDeparturesAndArrivals(id: number, departureAirportCode: string, arrivalAirportCode: string, api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<Flight[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getAllFlightDeparturesAndArrivals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllFlightDeparturesAndArrivals.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightDeparturesAndArrivals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getAllFlightDeparturesAndArrivals.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightDeparturesAndArrivals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGnF,wBAA8B,yCAAyC,CAAC,EAAE,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAI5N"}
|
|
@@ -41,12 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getAllFlightDeparturesAndArrivals;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getAllFlightDeparturesAndArrivals(id, departureAirportCode, arrivalAirportCode, api) {
|
|
44
|
+
function Airline_getAllFlightDeparturesAndArrivals(id, departureAirportCode, arrivalAirportCode, api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/departure/").concat(departureAirportCode, "/arrival/").concat(arrivalAirportCode), api)];
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/departure/").concat(departureAirportCode, "/arrival/").concat(arrivalAirportCode), api, options)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
52
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllFlightDeparturesAndArrivals.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightDeparturesAndArrivals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4DAIC;AAND,uEAAiD;AAEjD,SAA8B,yCAAyC,CAAC,EAAU,EAAE,oBAA4B,EAAE,kBAA0B,EAAE,GAAa;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getAllFlightDeparturesAndArrivals.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightDeparturesAndArrivals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4DAIC;AAND,uEAAiD;AAEjD,SAA8B,yCAAyC,CAAC,EAAU,EAAE,oBAA4B,EAAE,kBAA0B,EAAE,GAAa,EAAE,OAA6B;;;;;wBAC5I,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,wBAAc,oBAAoB,sBAAY,kBAAkB,CAAE,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAAxJ,QAAQ,GAA4B,SAAoH;oBAE9J,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, FSHubResponse, Flight } from "../../types";
|
|
2
|
-
export default function Airline_getAllFlightsArrivals(id: number, airportCode: string, api: FSHubApi): Promise<FSHubResponse<Flight[]>>;
|
|
1
|
+
import { FSHubApi, FSHubRequestOptions, FSHubResponse, Flight } from "../../types";
|
|
2
|
+
export default function Airline_getAllFlightsArrivals(id: number, airportCode: string, api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<Flight[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getAllFlightsArrivals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllFlightsArrivals.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightsArrivals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getAllFlightsArrivals.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightsArrivals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGnF,wBAA8B,6BAA6B,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAI3K"}
|
|
@@ -41,12 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getAllFlightsArrivals;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getAllFlightsArrivals(id, airportCode, api) {
|
|
44
|
+
function Airline_getAllFlightsArrivals(id, airportCode, api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/arrival/").concat(airportCode), api)];
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/arrival/").concat(airportCode), api, options)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
52
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllFlightsArrivals.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightsArrivals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,gDAIC;AAND,uEAAiD;AAEjD,SAA8B,6BAA6B,CAAC,EAAU,EAAE,WAAmB,EAAE,GAAa;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getAllFlightsArrivals.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightsArrivals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,gDAIC;AAND,uEAAiD;AAEjD,SAA8B,6BAA6B,CAAC,EAAU,EAAE,WAAmB,EAAE,GAAa,EAAE,OAA6B;;;;;wBAC3F,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,sBAAY,WAAW,CAAE,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAA/G,QAAQ,GAA4B,SAA2E;oBAErH,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Flight, FSHubApi, FSHubResponse } from "../../types";
|
|
2
|
-
export default function Airline_getAllFlightsDepartures(id: number, airportCode: string, api: FSHubApi): Promise<FSHubResponse<Flight[]>>;
|
|
1
|
+
import { Flight, FSHubApi, FSHubRequestOptions, FSHubResponse } from "../../types";
|
|
2
|
+
export default function Airline_getAllFlightsDepartures(id: number, airportCode: string, api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<Flight[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getAllFlightsDepartures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllFlightsDepartures.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightsDepartures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getAllFlightsDepartures.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightsDepartures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGnF,wBAA8B,+BAA+B,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAI7K"}
|
|
@@ -41,12 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getAllFlightsDepartures;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getAllFlightsDepartures(id, airportCode, api) {
|
|
44
|
+
function Airline_getAllFlightsDepartures(id, airportCode, api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/departure/").concat(airportCode), api)];
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/departure/").concat(airportCode), api, options)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
52
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllFlightsDepartures.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightsDepartures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,kDAIC;AAND,uEAAiD;AAEjD,SAA8B,+BAA+B,CAAC,EAAU,EAAE,WAAmB,EAAE,GAAa;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getAllFlightsDepartures.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllFlightsDepartures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,kDAIC;AAND,uEAAiD;AAEjD,SAA8B,+BAA+B,CAAC,EAAU,EAAE,WAAmB,EAAE,GAAa,EAAE,OAA6B;;;;;wBAC7F,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,wBAAc,WAAW,CAAE,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAAjH,QAAQ,GAA4B,SAA6E;oBAEvH,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, FSHubResponse, FSHubAirlineRank } from "../../types";
|
|
2
|
-
export default function Airline_getAllRanks(airlineId: number, api: FSHubApi): Promise<FSHubResponse<FSHubAirlineRank[]>>;
|
|
1
|
+
import { FSHubApi, FSHubRequestOptions, FSHubResponse, FSHubAirlineRank } from "../../types";
|
|
2
|
+
export default function Airline_getAllRanks(airlineId: number, api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<FSHubAirlineRank[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getAllRanks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllRanks.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRanks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getAllRanks.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRanks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG7F,wBAA8B,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAI7J"}
|
|
@@ -41,12 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getAllRanks;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getAllRanks(airlineId, api) {
|
|
44
|
+
function Airline_getAllRanks(airlineId, api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(airlineId, "/rank"), api)];
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(airlineId, "/rank"), api, options)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
52
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllRanks.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRanks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sCAIC;AAND,uEAAiD;AAEjD,SAA8B,mBAAmB,CAAC,SAAiB,EAAE,GAAa;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getAllRanks.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRanks.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sCAIC;AAND,uEAAiD;AAEjD,SAA8B,mBAAmB,CAAC,SAAiB,EAAE,GAAa,EAAE,OAA6B;;;;;wBACzD,qBAAM,IAAA,yBAAe,EAAC,kBAAW,SAAS,UAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAA9G,QAAQ,GAAsC,SAAgE;oBAEpH,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, FSHubResponse, FSHubAirlineRole } from "../../types";
|
|
2
|
-
export default function Airline_getAllRoles(airlineId: number, api: FSHubApi): Promise<FSHubResponse<FSHubAirlineRole[]>>;
|
|
1
|
+
import { FSHubApi, FSHubRequestOptions, FSHubResponse, FSHubAirlineRole } from "../../types";
|
|
2
|
+
export default function Airline_getAllRoles(airlineId: number, api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<FSHubAirlineRole[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getAllRoles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllRoles.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getAllRoles.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRoles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG7F,wBAA8B,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAI7J"}
|
|
@@ -41,12 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getAllRoles;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getAllRoles(airlineId, api) {
|
|
44
|
+
function Airline_getAllRoles(airlineId, api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(airlineId, "/role"), api)];
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(airlineId, "/role"), api, options)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
52
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllRoles.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRoles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sCAIC;AAND,uEAAiD;AAEjD,SAA8B,mBAAmB,CAAC,SAAiB,EAAE,GAAa;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getAllRoles.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRoles.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sCAIC;AAND,uEAAiD;AAEjD,SAA8B,mBAAmB,CAAC,SAAiB,EAAE,GAAa,EAAE,OAA6B;;;;;wBACzD,qBAAM,IAAA,yBAAe,EAAC,kBAAW,SAAS,UAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAA9G,QAAQ,GAAsC,SAAgE;oBAEpH,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, FSHubResponse, AirlineRoute } from "../../types";
|
|
2
|
-
export default function Airline_getAllRoutes(airlineId: number, api: FSHubApi): Promise<FSHubResponse<AirlineRoute[]>>;
|
|
1
|
+
import { FSHubApi, FSHubRequestOptions, FSHubResponse, AirlineRoute } from "../../types";
|
|
2
|
+
export default function Airline_getAllRoutes(airlineId: number, api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<AirlineRoute[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getAllRoutes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllRoutes.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getAllRoutes.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRoutes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGzF,wBAA8B,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC,CAAC,CAI1J"}
|
|
@@ -41,12 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getAllRoutes;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getAllRoutes(airlineId, api) {
|
|
44
|
+
function Airline_getAllRoutes(airlineId, api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(airlineId, "/route"), api)];
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(airlineId, "/route"), api, options)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
52
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllRoutes.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRoutes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,uCAIC;AAND,uEAAiD;AAEjD,SAA8B,oBAAoB,CAAC,SAAiB,EAAE,GAAa;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getAllRoutes.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllRoutes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,uCAIC;AAND,uEAAiD;AAEjD,SAA8B,oBAAoB,CAAC,SAAiB,EAAE,GAAa,EAAE,OAA6B;;;;;wBAC9D,qBAAM,IAAA,yBAAe,EAAC,kBAAW,SAAS,WAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAA3G,QAAQ,GAAkC,SAAiE;oBAEjH,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, FSHubResponse, Screenshot } from "../../types";
|
|
2
|
-
export default function Airline_getAllScreenshots(id: number, api: FSHubApi): Promise<FSHubResponse<Screenshot[]>>;
|
|
1
|
+
import { FSHubApi, FSHubRequestOptions, FSHubResponse, Screenshot } from "../../types";
|
|
2
|
+
export default function Airline_getAllScreenshots(id: number, api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<Screenshot[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getAllScreenshots.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllScreenshots.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllScreenshots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getAllScreenshots.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllScreenshots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGvF,wBAA8B,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC,CAYtJ"}
|
|
@@ -41,14 +41,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getAllScreenshots;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getAllScreenshots(id, api) {
|
|
44
|
+
function Airline_getAllScreenshots(id, api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response, error_1;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
49
|
case 0:
|
|
50
50
|
_a.trys.push([0, 2, , 3]);
|
|
51
|
-
return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/screenshot"), api)];
|
|
51
|
+
return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/screenshot"), api, options)];
|
|
52
52
|
case 1:
|
|
53
53
|
response = _a.sent();
|
|
54
54
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getAllScreenshots.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllScreenshots.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4CAYC;AAdD,uEAAiD;AAEjD,SAA8B,yBAAyB,CAAC,EAAU,EAAE,GAAa;;;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getAllScreenshots.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllScreenshots.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4CAYC;AAdD,uEAAiD;AAEjD,SAA8B,yBAAyB,CAAC,EAAU,EAAE,GAAa,EAAE,OAA6B;;;;;;;oBAE1D,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,gBAAa,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAAvG,QAAQ,GAAgC,SAA+D;oBAE7G,sBAAO,QAAQ,EAAC;;;oBAEhB,IAAI,OAAK,YAAY,KAAK,IAAI,OAAK,CAAC,OAAO,KAAK,kBAAkB,EAAE,CAAC;wBACjE,sBAAO,EAAE,IAAI,EAAE,EAAE,EAAE,EAAC;oBACxB,CAAC;oBAED,MAAM,OAAK,CAAC;;;;;CAEnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, FSHubResponse, Flight } from "../../types";
|
|
2
|
-
export default function Airline_getFlights(id: number, api: FSHubApi): Promise<FSHubResponse<Flight[]>>;
|
|
1
|
+
import { FSHubApi, FSHubRequestOptions, FSHubResponse, Flight } from "../../types";
|
|
2
|
+
export default function Airline_getFlights(id: number, api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<Flight[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getFlights.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getFlights.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getFlights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getFlights.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getFlights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGnF,wBAA8B,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAI3I"}
|
|
@@ -41,12 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getFlights;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getFlights(id, api) {
|
|
44
|
+
function Airline_getFlights(id, api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/flight"), api)];
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/flight"), api, options)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
52
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getFlights.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getFlights.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,qCAIC;AAND,uEAAiD;AAEjD,SAA8B,kBAAkB,CAAC,EAAU,EAAE,GAAa;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getFlights.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getFlights.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,qCAIC;AAND,uEAAiD;AAEjD,SAA8B,kBAAkB,CAAC,EAAU,EAAE,GAAa,EAAE,OAA6B;;;;;wBAC3D,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,YAAS,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAA/F,QAAQ,GAA4B,SAA2D;oBAErG,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, FSHubResponse, Pilot } from "../../types";
|
|
2
|
-
export default function Airline_getPilots(id: number, api: FSHubApi): Promise<FSHubResponse<Pilot[]>>;
|
|
1
|
+
import { FSHubApi, FSHubRequestOptions, FSHubResponse, Pilot } from "../../types";
|
|
2
|
+
export default function Airline_getPilots(id: number, api: FSHubApi, options?: FSHubRequestOptions): Promise<FSHubResponse<Pilot[]>>;
|
|
3
3
|
//# sourceMappingURL=Airline_getPilots.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getPilots.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getPilots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Airline_getPilots.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getPilots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGlF,wBAA8B,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC,CAIzI"}
|
|
@@ -41,12 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.default = Airline_getPilots;
|
|
43
43
|
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
-
function Airline_getPilots(id, api) {
|
|
44
|
+
function Airline_getPilots(id, api, options) {
|
|
45
45
|
return __awaiter(this, void 0, void 0, function () {
|
|
46
46
|
var response;
|
|
47
47
|
return __generator(this, function (_a) {
|
|
48
48
|
switch (_a.label) {
|
|
49
|
-
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/pilot"), api)];
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/pilot"), api, options)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
52
|
return [2 /*return*/, response];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Airline_getPilots.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getPilots.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oCAIC;AAND,uEAAiD;AAEjD,SAA8B,iBAAiB,CAAC,EAAU,EAAE,GAAa;;;;;
|
|
1
|
+
{"version":3,"file":"Airline_getPilots.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getPilots.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,oCAIC;AAND,uEAAiD;AAEjD,SAA8B,iBAAiB,CAAC,EAAU,EAAE,GAAa,EAAE,OAA6B;;;;;wBAC3D,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,WAAQ,EAAE,GAAG,EAAE,OAAO,CAAC,EAAA;;oBAA7F,QAAQ,GAA2B,SAA0D;oBAEnG,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FSHubApi, FSHubResponse, FSHubApplicationResponse } from "../../types";
|
|
2
|
+
export default function Airline_rejectManualPIREP(airlineId: number, flightId: number, api: FSHubApi): Promise<FSHubResponse<FSHubApplicationResponse>>;
|
|
3
|
+
//# sourceMappingURL=Airline_rejectManualPIREP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_rejectManualPIREP.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_rejectManualPIREP.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAGhF,wBAA8B,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,wBAAwB,CAAC,CAAC,CAM5J"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.default = Airline_rejectManualPIREP;
|
|
40
|
+
var FSHubApiRequest_1 = require("../FSHubApiRequest");
|
|
41
|
+
function Airline_rejectManualPIREP(airlineId, flightId, api) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43
|
+
var url, response;
|
|
44
|
+
return __generator(this, function (_a) {
|
|
45
|
+
switch (_a.label) {
|
|
46
|
+
case 0:
|
|
47
|
+
url = "airline/".concat(airlineId, "/pirep/").concat(flightId, "/reject");
|
|
48
|
+
return [4 /*yield*/, (0, FSHubApiRequest_1.FSHubApiPostRequest)(url, api)];
|
|
49
|
+
case 1:
|
|
50
|
+
response = _a.sent();
|
|
51
|
+
return [2 /*return*/, response];
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=Airline_rejectManualPIREP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_rejectManualPIREP.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_rejectManualPIREP.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4CAMC;AARD,sDAAyD;AAEzD,SAA8B,yBAAyB,CAAC,SAAiB,EAAE,QAAgB,EAAE,GAAa;;;;;;oBAChG,GAAG,GAAG,kBAAW,SAAS,oBAAU,QAAQ,YAAS,CAAC;oBAEF,qBAAM,IAAA,qCAAmB,EAAiC,GAAG,EAAE,GAAG,CAAC,EAAA;;oBAAvH,QAAQ,GAA4C,SAAmE;oBAE7H,sBAAO,QAAQ,EAAC;;;;CACnB"}
|