fshub-api 1.0.0
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 +252 -0
- package/dist/api/FSHubApiRequest.d.ts +3 -0
- package/dist/api/FSHubApiRequest.d.ts.map +1 -0
- package/dist/api/FSHubApiRequest.js +61 -0
- package/dist/api/FSHubApiRequest.js.map +1 -0
- package/dist/api/airline/Airline_get.d.ts +3 -0
- package/dist/api/airline/Airline_get.d.ts.map +1 -0
- package/dist/api/airline/Airline_get.js +57 -0
- package/dist/api/airline/Airline_get.js.map +1 -0
- package/dist/api/airline/Airline_getAll.d.ts +3 -0
- package/dist/api/airline/Airline_getAll.d.ts.map +1 -0
- package/dist/api/airline/Airline_getAll.js +57 -0
- package/dist/api/airline/Airline_getAll.js.map +1 -0
- package/dist/api/airline/Airline_getAllFlightDeparturesAndArrivals.d.ts +3 -0
- package/dist/api/airline/Airline_getAllFlightDeparturesAndArrivals.d.ts.map +1 -0
- package/dist/api/airline/Airline_getAllFlightDeparturesAndArrivals.js +57 -0
- package/dist/api/airline/Airline_getAllFlightDeparturesAndArrivals.js.map +1 -0
- package/dist/api/airline/Airline_getAllFlightsArrivals.d.ts +3 -0
- package/dist/api/airline/Airline_getAllFlightsArrivals.d.ts.map +1 -0
- package/dist/api/airline/Airline_getAllFlightsArrivals.js +57 -0
- package/dist/api/airline/Airline_getAllFlightsArrivals.js.map +1 -0
- package/dist/api/airline/Airline_getAllFlightsDepartures.d.ts +3 -0
- package/dist/api/airline/Airline_getAllFlightsDepartures.d.ts.map +1 -0
- package/dist/api/airline/Airline_getAllFlightsDepartures.js +57 -0
- package/dist/api/airline/Airline_getAllFlightsDepartures.js.map +1 -0
- package/dist/api/airline/Airline_getAllScreenshots.d.ts +3 -0
- package/dist/api/airline/Airline_getAllScreenshots.d.ts.map +1 -0
- package/dist/api/airline/Airline_getAllScreenshots.js +66 -0
- package/dist/api/airline/Airline_getAllScreenshots.js.map +1 -0
- package/dist/api/airline/Airline_getFlights.d.ts +3 -0
- package/dist/api/airline/Airline_getFlights.d.ts.map +1 -0
- package/dist/api/airline/Airline_getFlights.js +57 -0
- package/dist/api/airline/Airline_getFlights.js.map +1 -0
- package/dist/api/airline/Airline_getPilotStats.d.ts +3 -0
- package/dist/api/airline/Airline_getPilotStats.d.ts.map +1 -0
- package/dist/api/airline/Airline_getPilotStats.js +57 -0
- package/dist/api/airline/Airline_getPilotStats.js.map +1 -0
- package/dist/api/airline/Airline_getPilots.d.ts +3 -0
- package/dist/api/airline/Airline_getPilots.d.ts.map +1 -0
- package/dist/api/airline/Airline_getPilots.js +57 -0
- package/dist/api/airline/Airline_getPilots.js.map +1 -0
- package/dist/api/airline/Airline_getStats.d.ts +3 -0
- package/dist/api/airline/Airline_getStats.d.ts.map +1 -0
- package/dist/api/airline/Airline_getStats.js +57 -0
- package/dist/api/airline/Airline_getStats.js.map +1 -0
- package/dist/api/airline/index.d.ts +23 -0
- package/dist/api/airline/index.d.ts.map +1 -0
- package/dist/api/airline/index.js +29 -0
- package/dist/api/airline/index.js.map +1 -0
- package/dist/api/index.d.ts +28 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +10 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/pilot/Pilot_get.d.ts +3 -0
- package/dist/api/pilot/Pilot_get.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_get.js +57 -0
- package/dist/api/pilot/Pilot_get.js.map +1 -0
- package/dist/api/pilot/Pilot_getAll.d.ts +3 -0
- package/dist/api/pilot/Pilot_getAll.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getAll.js +57 -0
- package/dist/api/pilot/Pilot_getAll.js.map +1 -0
- package/dist/api/pilot/Pilot_getAllAirlines.d.ts +3 -0
- package/dist/api/pilot/Pilot_getAllAirlines.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getAllAirlines.js +57 -0
- package/dist/api/pilot/Pilot_getAllAirlines.js.map +1 -0
- package/dist/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.d.ts +3 -0
- package/dist/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.js +57 -0
- package/dist/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.js.map +1 -0
- package/dist/api/pilot/Pilot_getAllFlights.d.ts +3 -0
- package/dist/api/pilot/Pilot_getAllFlights.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getAllFlights.js +57 -0
- package/dist/api/pilot/Pilot_getAllFlights.js.map +1 -0
- package/dist/api/pilot/Pilot_getAllFlightsArrivals.d.ts +3 -0
- package/dist/api/pilot/Pilot_getAllFlightsArrivals.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getAllFlightsArrivals.js +57 -0
- package/dist/api/pilot/Pilot_getAllFlightsArrivals.js.map +1 -0
- package/dist/api/pilot/Pilot_getAllFlightsDepartures.d.ts +3 -0
- package/dist/api/pilot/Pilot_getAllFlightsDepartures.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getAllFlightsDepartures.js +57 -0
- package/dist/api/pilot/Pilot_getAllFlightsDepartures.js.map +1 -0
- package/dist/api/pilot/Pilot_getAllScreenshots.d.ts +3 -0
- package/dist/api/pilot/Pilot_getAllScreenshots.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getAllScreenshots.js +66 -0
- package/dist/api/pilot/Pilot_getAllScreenshots.js.map +1 -0
- package/dist/api/pilot/Pilot_getCurrent.d.ts +3 -0
- package/dist/api/pilot/Pilot_getCurrent.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getCurrent.js +57 -0
- package/dist/api/pilot/Pilot_getCurrent.js.map +1 -0
- package/dist/api/pilot/Pilot_getLatestFlight.d.ts +3 -0
- package/dist/api/pilot/Pilot_getLatestFlight.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getLatestFlight.js +57 -0
- package/dist/api/pilot/Pilot_getLatestFlight.js.map +1 -0
- package/dist/api/pilot/Pilot_getStats.d.ts +3 -0
- package/dist/api/pilot/Pilot_getStats.d.ts.map +1 -0
- package/dist/api/pilot/Pilot_getStats.js +57 -0
- package/dist/api/pilot/Pilot_getStats.js.map +1 -0
- package/dist/api/pilot/index.d.ts +25 -0
- package/dist/api/pilot/index.d.ts.map +1 -0
- package/dist/api/pilot/index.js +31 -0
- package/dist/api/pilot/index.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +291 -0
- package/dist/index.js.map +1 -0
- package/dist/types/index.d.ts +207 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +3 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.default = Airline_getAllFlightsDepartures;
|
|
43
|
+
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
+
function Airline_getAllFlightsDepartures(id, airportCode, api) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
+
var response;
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/departure/").concat(airportCode), api)];
|
|
50
|
+
case 1:
|
|
51
|
+
response = _a.sent();
|
|
52
|
+
return [2 /*return*/, response.data];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=Airline_getAllFlightsDepartures.js.map
|
|
@@ -0,0 +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;;;;;wBAC9D,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,wBAAc,WAAW,CAAE,EAAE,GAAG,CAAC,EAAA;;oBAAxG,QAAQ,GAA4B,SAAoE;oBAE9G,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_getAllScreenshots.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getAllScreenshots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,UAAU,EAAE,MAAM,SAAS,CAAC;AAG9D,wBAA8B,yBAAyB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAYxG"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.default = Airline_getAllScreenshots;
|
|
43
|
+
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
+
function Airline_getAllScreenshots(id, api) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
+
var response, error_1;
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0:
|
|
50
|
+
_a.trys.push([0, 2, , 3]);
|
|
51
|
+
return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/screenshot"), api)];
|
|
52
|
+
case 1:
|
|
53
|
+
response = _a.sent();
|
|
54
|
+
return [2 /*return*/, response.data];
|
|
55
|
+
case 2:
|
|
56
|
+
error_1 = _a.sent();
|
|
57
|
+
if (error_1 instanceof Error && error_1.message === 'No records found') {
|
|
58
|
+
return [2 /*return*/, []];
|
|
59
|
+
}
|
|
60
|
+
throw error_1;
|
|
61
|
+
case 3: return [2 /*return*/];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=Airline_getAllScreenshots.js.map
|
|
@@ -0,0 +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;;;;;;;oBAE3B,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,gBAAa,EAAE,GAAG,CAAC,EAAA;;oBAA9F,QAAQ,GAAgC,SAAsD;oBAEpG,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;oBAErB,IAAI,OAAK,YAAY,KAAK,IAAI,OAAK,CAAC,OAAO,KAAK,kBAAkB,EAAE,CAAC;wBACjE,sBAAO,EAAE,EAAC;oBACd,CAAC;oBAED,MAAM,OAAK,CAAC;;;;;CAEnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_getFlights.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getFlights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,EAAE,MAAM,SAAS,CAAC;AAG1D,wBAA8B,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAI7F"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.default = Airline_getFlights;
|
|
43
|
+
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
+
function Airline_getFlights(id, api) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
+
var response;
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/flight"), api)];
|
|
50
|
+
case 1:
|
|
51
|
+
response = _a.sent();
|
|
52
|
+
return [2 /*return*/, response.data];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=Airline_getFlights.js.map
|
|
@@ -0,0 +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;;;;;wBAC5B,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,YAAS,EAAE,GAAG,CAAC,EAAA;;oBAAtF,QAAQ,GAA4B,SAAkD;oBAE5F,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_getPilotStats.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getPilotStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,UAAU,EAAE,MAAM,SAAS,CAAC;AAG9D,wBAA8B,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAInH"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.default = Airline_getPilotStats;
|
|
43
|
+
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
+
function Airline_getPilotStats(id, pilotId, api) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
+
var response;
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/pilot/").concat(pilotId, "/stats"), api)];
|
|
50
|
+
case 1:
|
|
51
|
+
response = _a.sent();
|
|
52
|
+
return [2 /*return*/, response.data];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=Airline_getPilotStats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_getPilotStats.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getPilotStats.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wCAIC;AAND,uEAAiD;AAEjD,SAA8B,qBAAqB,CAAC,EAAU,EAAE,OAAe,EAAE,GAAa;;;;;wBAC9C,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,oBAAU,OAAO,WAAQ,EAAE,GAAG,CAAC,EAAA;;oBAAxG,QAAQ,GAA8B,SAAkE;oBAE9G,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_getPilots.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getPilots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,KAAK,EAAE,MAAM,SAAS,CAAC;AAGzD,wBAA8B,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAI3F"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.default = Airline_getPilots;
|
|
43
|
+
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
+
function Airline_getPilots(id, api) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
+
var response;
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/pilot"), api)];
|
|
50
|
+
case 1:
|
|
51
|
+
response = _a.sent();
|
|
52
|
+
return [2 /*return*/, response.data];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=Airline_getPilots.js.map
|
|
@@ -0,0 +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;;;;;wBAC5B,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,WAAQ,EAAE,GAAG,CAAC,EAAA;;oBAApF,QAAQ,GAA2B,SAAiD;oBAE1F,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_getStats.d.ts","sourceRoot":"","sources":["../../../src/api/airline/Airline_getStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAiB,MAAM,SAAS,CAAC;AAGhE,wBAA8B,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC,CAI/F"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.default = Airline_getStats;
|
|
43
|
+
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
+
function Airline_getStats(id, api) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
+
var response;
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("airline/".concat(id, "/stats"), api)];
|
|
50
|
+
case 1:
|
|
51
|
+
response = _a.sent();
|
|
52
|
+
return [2 /*return*/, response.data];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=Airline_getStats.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Airline_getStats.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_getStats.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,mCAIC;AAND,uEAAiD;AAEjD,SAA8B,gBAAgB,CAAC,EAAU,EAAE,GAAa;;;;;wBACtB,qBAAM,IAAA,yBAAe,EAAC,kBAAW,EAAE,WAAQ,EAAE,GAAG,CAAC,EAAA;;oBAAzF,QAAQ,GAAgC,SAAiD;oBAE/F,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;;CACxB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Airline_getAll from './Airline_getAll';
|
|
2
|
+
import Airline_get from './Airline_get';
|
|
3
|
+
import Airline_getPilots from './Airline_getPilots';
|
|
4
|
+
import Airline_getPilotStats from './Airline_getPilotStats';
|
|
5
|
+
import Airline_getFlights from './Airline_getFlights';
|
|
6
|
+
import Airline_getAllFlightsDepartures from './Airline_getAllFlightsDepartures';
|
|
7
|
+
import Airline_getAllFlightsArrivals from './Airline_getAllFlightsArrivals';
|
|
8
|
+
import Airline_getAllFlightDeparturesAndArrivals from './Airline_getAllFlightDeparturesAndArrivals';
|
|
9
|
+
import Airline_getAllScreenshots from './Airline_getAllScreenshots';
|
|
10
|
+
import Airline_getStats from './Airline_getStats';
|
|
11
|
+
export declare const Airline: {
|
|
12
|
+
getAll: typeof Airline_getAll;
|
|
13
|
+
get: typeof Airline_get;
|
|
14
|
+
getPilots: typeof Airline_getPilots;
|
|
15
|
+
getPilotStats: typeof Airline_getPilotStats;
|
|
16
|
+
getFlights: typeof Airline_getFlights;
|
|
17
|
+
getAllFlightsDepartures: typeof Airline_getAllFlightsDepartures;
|
|
18
|
+
getAllFlightsArrivals: typeof Airline_getAllFlightsArrivals;
|
|
19
|
+
getAllFlightDeparturesAndArrivals: typeof Airline_getAllFlightDeparturesAndArrivals;
|
|
20
|
+
getAllScreenshots: typeof Airline_getAllScreenshots;
|
|
21
|
+
getStats: typeof Airline_getStats;
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/airline/index.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,qBAAqB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AACtD,OAAO,+BAA+B,MAAM,mCAAmC,CAAC;AAChF,OAAO,6BAA6B,MAAM,iCAAiC,CAAC;AAC5E,OAAO,yCAAyC,MAAM,6CAA6C,CAAC;AACpG,OAAO,yBAAyB,MAAM,6BAA6B,CAAC;AACpE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,eAAO,MAAM,OAAO;;;;;;;;;;;CAWnB,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Airline = void 0;
|
|
7
|
+
var Airline_getAll_1 = __importDefault(require("./Airline_getAll"));
|
|
8
|
+
var Airline_get_1 = __importDefault(require("./Airline_get"));
|
|
9
|
+
var Airline_getPilots_1 = __importDefault(require("./Airline_getPilots"));
|
|
10
|
+
var Airline_getPilotStats_1 = __importDefault(require("./Airline_getPilotStats"));
|
|
11
|
+
var Airline_getFlights_1 = __importDefault(require("./Airline_getFlights"));
|
|
12
|
+
var Airline_getAllFlightsDepartures_1 = __importDefault(require("./Airline_getAllFlightsDepartures"));
|
|
13
|
+
var Airline_getAllFlightsArrivals_1 = __importDefault(require("./Airline_getAllFlightsArrivals"));
|
|
14
|
+
var Airline_getAllFlightDeparturesAndArrivals_1 = __importDefault(require("./Airline_getAllFlightDeparturesAndArrivals"));
|
|
15
|
+
var Airline_getAllScreenshots_1 = __importDefault(require("./Airline_getAllScreenshots"));
|
|
16
|
+
var Airline_getStats_1 = __importDefault(require("./Airline_getStats"));
|
|
17
|
+
exports.Airline = {
|
|
18
|
+
getAll: Airline_getAll_1.default,
|
|
19
|
+
get: Airline_get_1.default,
|
|
20
|
+
getPilots: Airline_getPilots_1.default,
|
|
21
|
+
getPilotStats: Airline_getPilotStats_1.default,
|
|
22
|
+
getFlights: Airline_getFlights_1.default,
|
|
23
|
+
getAllFlightsDepartures: Airline_getAllFlightsDepartures_1.default,
|
|
24
|
+
getAllFlightsArrivals: Airline_getAllFlightsArrivals_1.default,
|
|
25
|
+
getAllFlightDeparturesAndArrivals: Airline_getAllFlightDeparturesAndArrivals_1.default,
|
|
26
|
+
getAllScreenshots: Airline_getAllScreenshots_1.default,
|
|
27
|
+
getStats: Airline_getStats_1.default,
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/airline/index.ts"],"names":[],"mappings":";;;;;;AAAA,oEAA8C;AAC9C,8DAAwC;AACxC,0EAAoD;AACpD,kFAA4D;AAC5D,4EAAsD;AACtD,sGAAgF;AAChF,kGAA4E;AAC5E,0HAAoG;AACpG,0FAAoE;AACpE,wEAAkD;AAErC,QAAA,OAAO,GAAG;IACnB,MAAM,EAAE,wBAAc;IACtB,GAAG,EAAE,qBAAW;IAChB,SAAS,EAAE,2BAAiB;IAC5B,aAAa,EAAE,+BAAqB;IACpC,UAAU,EAAE,4BAAkB;IAC9B,uBAAuB,EAAE,yCAA+B;IACxD,qBAAqB,EAAE,uCAA6B;IACpD,iCAAiC,EAAE,mDAAyC;IAC5E,iBAAiB,EAAE,mCAAyB;IAC5C,QAAQ,EAAE,0BAAgB;CAC7B,CAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const Api: {
|
|
2
|
+
pilot: {
|
|
3
|
+
getCurrent: typeof import("./pilot/Pilot_getCurrent").default;
|
|
4
|
+
getAll: typeof import("./pilot/Pilot_getAll").default;
|
|
5
|
+
get: typeof import("./pilot/Pilot_get").default;
|
|
6
|
+
getLatestFlight: typeof import("./pilot/Pilot_getLatestFlight").default;
|
|
7
|
+
getAllFlights: typeof import("./pilot/Pilot_getAllFlights").default;
|
|
8
|
+
getAllAirlines: typeof import("./pilot/Pilot_getAllAirlines").default;
|
|
9
|
+
getStats: typeof import("./pilot/Pilot_getStats").default;
|
|
10
|
+
getAllFlightsDepartures: typeof import("./pilot/Pilot_getAllFlightsDepartures").default;
|
|
11
|
+
getAllFlightsArrivals: typeof import("./pilot/Pilot_getAllFlightsArrivals").default;
|
|
12
|
+
getAllFlightDeparturesAndArrivals: typeof import("./pilot/Pilot_getAllFlightDeparturesAndArrivals").default;
|
|
13
|
+
getAllScreenshots: typeof import("./pilot/Pilot_getAllScreenshots").default;
|
|
14
|
+
};
|
|
15
|
+
airline: {
|
|
16
|
+
getAll: typeof import("./airline/Airline_getAll").default;
|
|
17
|
+
get: typeof import("./airline/Airline_get").default;
|
|
18
|
+
getPilots: typeof import("./airline/Airline_getPilots").default;
|
|
19
|
+
getPilotStats: typeof import("./airline/Airline_getPilotStats").default;
|
|
20
|
+
getFlights: typeof import("./airline/Airline_getFlights").default;
|
|
21
|
+
getAllFlightsDepartures: typeof import("./airline/Airline_getAllFlightsDepartures").default;
|
|
22
|
+
getAllFlightsArrivals: typeof import("./airline/Airline_getAllFlightsArrivals").default;
|
|
23
|
+
getAllFlightDeparturesAndArrivals: typeof import("./airline/Airline_getAllFlightDeparturesAndArrivals").default;
|
|
24
|
+
getAllScreenshots: typeof import("./airline/Airline_getAllScreenshots").default;
|
|
25
|
+
getStats: typeof import("./airline/Airline_getStats").default;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;CAGf,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Api = void 0;
|
|
4
|
+
var pilot_1 = require("./pilot");
|
|
5
|
+
var airline_1 = require("./airline");
|
|
6
|
+
exports.Api = {
|
|
7
|
+
pilot: pilot_1.Pilot,
|
|
8
|
+
airline: airline_1.Airline
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,qCAAoC;AAEvB,QAAA,GAAG,GAAG;IACf,KAAK,EAAE,aAAK;IACZ,OAAO,EAAE,iBAAO;CACnB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pilot_get.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAiB,MAAM,SAAS,CAAC;AAGzD,wBAA8B,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,CAIjF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
|
+
};
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.default = Pilot_get;
|
|
43
|
+
var FSHubApiRequest_1 = __importDefault(require("../FSHubApiRequest"));
|
|
44
|
+
function Pilot_get(id, api) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
46
|
+
var response;
|
|
47
|
+
return __generator(this, function (_a) {
|
|
48
|
+
switch (_a.label) {
|
|
49
|
+
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("pilot/".concat(id), api)];
|
|
50
|
+
case 1:
|
|
51
|
+
response = _a.sent();
|
|
52
|
+
return [2 /*return*/, response.data];
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=Pilot_get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pilot_get.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_get.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,4BAIC;AAND,uEAAiD;AAEjD,SAA8B,SAAS,CAAC,EAAU,EAAE,GAAa;;;;;wBACtB,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,CAAE,EAAE,GAAG,CAAC,EAAA;;oBAA1E,QAAQ,GAAyB,SAAyC;oBAEhF,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pilot_getAll.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAiB,MAAM,SAAS,CAAC;AAGzD,wBAA8B,YAAY,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CAI1E"}
|