fshub-api 3.0.0 → 4.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/dist/api/FSHubApiRequest.d.ts +2 -2
- package/dist/api/FSHubApiRequest.d.ts.map +1 -1
- package/dist/api/FSHubApiRequest.js +16 -11
- package/dist/api/FSHubApiRequest.js.map +1 -1
- package/dist/api/airline/Airline_get.d.ts +2 -2
- package/dist/api/airline/Airline_get.d.ts.map +1 -1
- package/dist/api/airline/Airline_get.js +1 -1
- package/dist/api/airline/Airline_get.js.map +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/api/airline/Airline_getAllFlightsDepartures.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 +1 -1
- package/dist/api/airline/Airline_getFlights.js.map +1 -1
- package/dist/api/airline/Airline_getPilotStats.d.ts +2 -2
- package/dist/api/airline/Airline_getPilotStats.d.ts.map +1 -1
- package/dist/api/airline/Airline_getPilotStats.js +1 -1
- package/dist/api/airline/Airline_getPilotStats.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 +1 -1
- package/dist/api/airline/Airline_getPilots.js.map +1 -1
- package/dist/api/airline/Airline_getStats.d.ts +2 -2
- package/dist/api/airline/Airline_getStats.d.ts.map +1 -1
- package/dist/api/airline/Airline_getStats.js +1 -1
- package/dist/api/airline/Airline_getStats.js.map +1 -1
- package/dist/api/flight/Flight_getFlightById.d.ts +2 -2
- package/dist/api/flight/Flight_getFlightById.d.ts.map +1 -1
- package/dist/api/flight/Flight_getFlightById.js +1 -1
- package/dist/api/flight/Flight_getFlightById.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 +12 -3
- package/dist/api/flight/Flight_getFlightScreenshotsById.js.map +1 -1
- package/dist/api/flight/Flight_getFlights.d.ts +3 -0
- package/dist/api/flight/Flight_getFlights.d.ts.map +1 -0
- package/dist/api/flight/Flight_getFlights.js +57 -0
- package/dist/api/flight/Flight_getFlights.js.map +1 -0
- package/dist/api/flight/index.d.ts +2 -0
- package/dist/api/flight/index.d.ts.map +1 -1
- package/dist/api/flight/index.js +2 -0
- package/dist/api/flight/index.js.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_get.d.ts +2 -2
- package/dist/api/pilot/Pilot_get.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_get.js +1 -1
- package/dist/api/pilot/Pilot_get.js.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/api/pilot/Pilot_getCurrent.d.ts +2 -2
- package/dist/api/pilot/Pilot_getCurrent.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getCurrent.js +1 -1
- package/dist/api/pilot/Pilot_getCurrent.js.map +1 -1
- package/dist/api/pilot/Pilot_getLatestFlight.d.ts +2 -2
- package/dist/api/pilot/Pilot_getLatestFlight.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getLatestFlight.js +1 -1
- package/dist/api/pilot/Pilot_getLatestFlight.js.map +1 -1
- package/dist/api/pilot/Pilot_getStats.d.ts +2 -2
- package/dist/api/pilot/Pilot_getStats.d.ts.map +1 -1
- package/dist/api/pilot/Pilot_getStats.js +1 -1
- package/dist/api/pilot/Pilot_getStats.js.map +1 -1
- package/dist/index.d.ts +25 -24
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +47 -34
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/release.ps1 +15 -0
- package/src/api/FSHubApiRequest.ts +8 -3
- package/src/api/airline/Airline_get.ts +2 -2
- package/src/api/airline/Airline_getAll.ts +2 -2
- package/src/api/airline/Airline_getAllFlightDeparturesAndArrivals.ts +2 -2
- package/src/api/airline/Airline_getAllFlightsArrivals.ts +2 -2
- package/src/api/airline/Airline_getAllFlightsDepartures.ts +2 -2
- package/src/api/airline/Airline_getAllScreenshots.ts +3 -3
- package/src/api/airline/Airline_getFlights.ts +2 -2
- package/src/api/airline/Airline_getPilotStats.ts +2 -2
- package/src/api/airline/Airline_getPilots.ts +2 -2
- package/src/api/airline/Airline_getStats.ts +2 -2
- package/src/api/flight/Flight_getFlightById.ts +2 -2
- package/src/api/flight/Flight_getFlightScreenshotsById.ts +12 -3
- package/src/api/flight/Flight_getFlights.ts +9 -0
- package/src/api/flight/index.ts +2 -0
- package/src/api/pilot/Pilot_get.ts +2 -2
- package/src/api/pilot/Pilot_getAll.ts +2 -2
- package/src/api/pilot/Pilot_getAllAirlines.ts +2 -2
- package/src/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.ts +2 -2
- package/src/api/pilot/Pilot_getAllFlights.ts +2 -2
- package/src/api/pilot/Pilot_getAllFlightsArrivals.ts +2 -2
- package/src/api/pilot/Pilot_getAllFlightsDepartures.ts +2 -2
- package/src/api/pilot/Pilot_getAllScreenshots.ts +3 -3
- package/src/api/pilot/Pilot_getCurrent.ts +2 -2
- package/src/api/pilot/Pilot_getLatestFlight.ts +2 -2
- package/src/api/pilot/Pilot_getStats.ts +2 -2
- package/src/index.spec.ts +111 -77
- package/src/index.ts +20 -1
- package/src/types/index.ts +50 -36
|
@@ -1 +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,
|
|
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,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Pilot, FSHubApi } from "../../types";
|
|
2
|
-
export default function Pilot_getAll(api: FSHubApi): Promise<Pilot[]
|
|
1
|
+
import { Pilot, FSHubApi, FSHubResponse } from "../../types";
|
|
2
|
+
export default function Pilot_getAll(api: FSHubApi): Promise<FSHubResponse<Pilot[]>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getAll.d.ts.map
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"Pilot_getAll.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG7D,wBAA8B,YAAY,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC,CAIzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAll.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAll.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,+BAIC;AAND,uEAAiD;AAEjD,SAA8B,YAAY,CAAC,GAAa;;;;;wBACX,qBAAM,IAAA,yBAAe,EAAC,OAAO,EAAE,GAAG,CAAC,EAAA;;oBAAtE,QAAQ,GAA2B,SAAmC;oBAE5E,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAll.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAll.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,+BAIC;AAND,uEAAiD;AAEjD,SAA8B,YAAY,CAAC,GAAa;;;;;wBACX,qBAAM,IAAA,yBAAe,EAAC,OAAO,EAAE,GAAG,CAAC,EAAA;;oBAAtE,QAAQ,GAA2B,SAAmC;oBAE5E,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Airline, FSHubApi } from "../../types";
|
|
2
|
-
export default function Pilot_getAllAirlines(id: number, api: FSHubApi): Promise<Airline[]
|
|
1
|
+
import { Airline, FSHubApi, FSHubResponse } from "../../types";
|
|
2
|
+
export default function Pilot_getAllAirlines(id: number, api: FSHubApi): Promise<FSHubResponse<Airline[]>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getAllAirlines.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllAirlines.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllAirlines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllAirlines.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllAirlines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG/D,wBAA8B,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,CAI/G"}
|
|
@@ -49,7 +49,7 @@ function Pilot_getAllAirlines(id, api) {
|
|
|
49
49
|
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("pilot/".concat(id, "/airline"), api)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
|
-
return [2 /*return*/, response
|
|
52
|
+
return [2 /*return*/, response];
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllAirlines.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllAirlines.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,uCAIC;AAND,uEAAiD;AAEjD,SAA8B,oBAAoB,CAAC,EAAU,EAAE,GAAa;;;;;wBAC7B,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,aAAU,EAAE,GAAG,CAAC,EAAA;;oBAAtF,QAAQ,GAA6B,SAAiD;oBAE5F,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllAirlines.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllAirlines.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,uCAIC;AAND,uEAAiD;AAEjD,SAA8B,oBAAoB,CAAC,EAAU,EAAE,GAAa;;;;;wBAC7B,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,aAAU,EAAE,GAAG,CAAC,EAAA;;oBAAtF,QAAQ,GAA6B,SAAiD;oBAE5F,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Flight, FSHubApi } from "../../types";
|
|
2
|
-
export default function Pilot_getAllFlightDeparturesAndArrivals(id: number, departureAirportCode: string, arrivalAirportCode: string, api: FSHubApi): Promise<Flight[]
|
|
1
|
+
import { Flight, FSHubApi, FSHubResponse } from "../../types";
|
|
2
|
+
export default function Pilot_getAllFlightDeparturesAndArrivals(id: number, departureAirportCode: string, arrivalAirportCode: string, api: FSHubApi): Promise<FSHubResponse<Flight[]>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getAllFlightDeparturesAndArrivals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllFlightDeparturesAndArrivals.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllFlightDeparturesAndArrivals.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG9D,wBAA8B,uCAAuC,CAAC,EAAE,EAAE,MAAM,EAAE,oBAAoB,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAI3L"}
|
|
@@ -49,7 +49,7 @@ function Pilot_getAllFlightDeparturesAndArrivals(id, departureAirportCode, arriv
|
|
|
49
49
|
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("pilot/".concat(id, "/flight/departure/").concat(departureAirportCode, "/arrival/").concat(arrivalAirportCode), api)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
|
-
return [2 /*return*/, response
|
|
52
|
+
return [2 /*return*/, response];
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllFlightDeparturesAndArrivals.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0DAIC;AAND,uEAAiD;AAEjD,SAA8B,uCAAuC,CAAC,EAAU,EAAE,oBAA4B,EAAE,kBAA0B,EAAE,GAAa;;;;;wBAC3G,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,+BAAqB,oBAAoB,sBAAY,kBAAkB,CAAE,EAAE,GAAG,CAAC,EAAA;;oBAApJ,QAAQ,GAA4B,SAAgH;oBAE1J,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllFlightDeparturesAndArrivals.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightDeparturesAndArrivals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0DAIC;AAND,uEAAiD;AAEjD,SAA8B,uCAAuC,CAAC,EAAU,EAAE,oBAA4B,EAAE,kBAA0B,EAAE,GAAa;;;;;wBAC3G,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,+BAAqB,oBAAoB,sBAAY,kBAAkB,CAAE,EAAE,GAAG,CAAC,EAAA;;oBAApJ,QAAQ,GAA4B,SAAgH;oBAE1J,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, Flight } from "../../types";
|
|
2
|
-
export default function Pilot_getAllFlights(id: number, api: FSHubApi): Promise<Flight[]
|
|
1
|
+
import { FSHubApi, FSHubResponse, Flight } from "../../types";
|
|
2
|
+
export default function Pilot_getAllFlights(id: number, api: FSHubApi): Promise<FSHubResponse<Flight[]>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getAllFlights.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllFlights.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllFlights.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlights.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG9D,wBAA8B,mBAAmB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAI7G"}
|
|
@@ -49,7 +49,7 @@ function Pilot_getAllFlights(id, api) {
|
|
|
49
49
|
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("pilot/".concat(id, "/flight"), api)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
|
-
return [2 /*return*/, response
|
|
52
|
+
return [2 /*return*/, response];
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllFlights.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlights.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sCAIC;AAND,uEAAiD;AAEjD,SAA8B,mBAAmB,CAAC,EAAU,EAAE,GAAa;;;;;wBAC7B,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,YAAS,EAAE,GAAG,CAAC,EAAA;;oBAApF,QAAQ,GAA4B,SAAgD;oBAE1F,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllFlights.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlights.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sCAIC;AAND,uEAAiD;AAEjD,SAA8B,mBAAmB,CAAC,EAAU,EAAE,GAAa;;;;;wBAC7B,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,YAAS,EAAE,GAAG,CAAC,EAAA;;oBAApF,QAAQ,GAA4B,SAAgD;oBAE1F,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, Flight } from "../../types";
|
|
2
|
-
export default function Pilot_getAllFlightsArrivals(id: number, airportCode: string, api: FSHubApi): Promise<Flight[]
|
|
1
|
+
import { FSHubApi, FSHubResponse, Flight } from "../../types";
|
|
2
|
+
export default function Pilot_getAllFlightsArrivals(id: number, airportCode: string, api: FSHubApi): Promise<FSHubResponse<Flight[]>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getAllFlightsArrivals.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllFlightsArrivals.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightsArrivals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllFlightsArrivals.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightsArrivals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG9D,wBAA8B,2BAA2B,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAI1I"}
|
|
@@ -49,7 +49,7 @@ function Pilot_getAllFlightsArrivals(id, airportCode, api) {
|
|
|
49
49
|
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("pilot/".concat(id, "/flight/arrival/").concat(airportCode), api)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
|
-
return [2 /*return*/, response
|
|
52
|
+
return [2 /*return*/, response];
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllFlightsArrivals.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightsArrivals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,8CAIC;AAND,uEAAiD;AAEjD,SAA8B,2BAA2B,CAAC,EAAU,EAAE,WAAmB,EAAE,GAAa;;;;;wBAC1D,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,6BAAmB,WAAW,CAAE,EAAE,GAAG,CAAC,EAAA;;oBAA3G,QAAQ,GAA4B,SAAuE;oBAEjH,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllFlightsArrivals.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightsArrivals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,8CAIC;AAND,uEAAiD;AAEjD,SAA8B,2BAA2B,CAAC,EAAU,EAAE,WAAmB,EAAE,GAAa;;;;;wBAC1D,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,6BAAmB,WAAW,CAAE,EAAE,GAAG,CAAC,EAAA;;oBAA3G,QAAQ,GAA4B,SAAuE;oBAEjH,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Flight, FSHubApi } from "../../types";
|
|
2
|
-
export default function Pilot_getAllFlightsDepartures(id: number, airportCode: string, api: FSHubApi): Promise<Flight[]
|
|
1
|
+
import { Flight, FSHubApi, FSHubResponse } from "../../types";
|
|
2
|
+
export default function Pilot_getAllFlightsDepartures(id: number, airportCode: string, api: FSHubApi): Promise<FSHubResponse<Flight[]>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getAllFlightsDepartures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllFlightsDepartures.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightsDepartures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllFlightsDepartures.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightsDepartures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG9D,wBAA8B,6BAA6B,CAAC,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,CAAC,CAI5I"}
|
|
@@ -49,7 +49,7 @@ function Pilot_getAllFlightsDepartures(id, airportCode, api) {
|
|
|
49
49
|
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("pilot/".concat(id, "/flight/departure/").concat(airportCode), api)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
|
-
return [2 /*return*/, response
|
|
52
|
+
return [2 /*return*/, response];
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllFlightsDepartures.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightsDepartures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,gDAIC;AAND,uEAAiD;AAEjD,SAA8B,6BAA6B,CAAC,EAAU,EAAE,WAAmB,EAAE,GAAa;;;;;wBAC5D,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,+BAAqB,WAAW,CAAE,EAAE,GAAG,CAAC,EAAA;;oBAA7G,QAAQ,GAA4B,SAAyE;oBAEnH,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllFlightsDepartures.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllFlightsDepartures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,gDAIC;AAND,uEAAiD;AAEjD,SAA8B,6BAA6B,CAAC,EAAU,EAAE,WAAmB,EAAE,GAAa;;;;;wBAC5D,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,+BAAqB,WAAW,CAAE,EAAE,GAAG,CAAC,EAAA;;oBAA7G,QAAQ,GAA4B,SAAyE;oBAEnH,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, Screenshot } from "../../types";
|
|
2
|
-
export default function Pilot_getAllScreenshots(id: number, api: FSHubApi): Promise<Screenshot[]
|
|
1
|
+
import { FSHubApi, FSHubResponse, Screenshot } from "../../types";
|
|
2
|
+
export default function Pilot_getAllScreenshots(id: number, api: FSHubApi): Promise<FSHubResponse<Screenshot[]>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getAllScreenshots.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllScreenshots.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllScreenshots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllScreenshots.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllScreenshots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGlE,wBAA8B,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC,CAAC,CAYrH"}
|
|
@@ -51,11 +51,11 @@ function Pilot_getAllScreenshots(id, api) {
|
|
|
51
51
|
return [4 /*yield*/, (0, FSHubApiRequest_1.default)("pilot/".concat(id, "/screenshot"), api)];
|
|
52
52
|
case 1:
|
|
53
53
|
response = _a.sent();
|
|
54
|
-
return [2 /*return*/, response
|
|
54
|
+
return [2 /*return*/, response];
|
|
55
55
|
case 2:
|
|
56
56
|
error_1 = _a.sent();
|
|
57
57
|
if (error_1 instanceof Error && error_1.message === 'No records found') {
|
|
58
|
-
return [2 /*return*/, []];
|
|
58
|
+
return [2 /*return*/, { data: [] }];
|
|
59
59
|
}
|
|
60
60
|
throw error_1;
|
|
61
61
|
case 3: return [2 /*return*/];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getAllScreenshots.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllScreenshots.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0CAYC;AAdD,uEAAiD;AAEjD,SAA8B,uBAAuB,CAAC,EAAU,EAAE,GAAa;;;;;;;oBAEzB,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,gBAAa,EAAE,GAAG,CAAC,EAAA;;oBAA5F,QAAQ,GAAgC,SAAoD;oBAElG,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getAllScreenshots.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getAllScreenshots.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0CAYC;AAdD,uEAAiD;AAEjD,SAA8B,uBAAuB,CAAC,EAAU,EAAE,GAAa;;;;;;;oBAEzB,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,gBAAa,EAAE,GAAG,CAAC,EAAA;;oBAA5F,QAAQ,GAAgC,SAAoD;oBAElG,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 { CurrentPilot, FSHubApi } from "../../types";
|
|
2
|
-
export default function Pilot_getCurrent(api: FSHubApi): Promise<CurrentPilot
|
|
1
|
+
import { CurrentPilot, FSHubApi, FSHubResponse } from "../../types";
|
|
2
|
+
export default function Pilot_getCurrent(api: FSHubApi): Promise<FSHubResponse<CurrentPilot>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getCurrent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getCurrent.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getCurrent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getCurrent.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getCurrent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAGpE,wBAA8B,gBAAgB,CAAC,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAIlG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getCurrent.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getCurrent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,mCAIC;AAND,uEAAiD;AAEjD,SAA8B,gBAAgB,CAAC,GAAa;;;;;wBACV,qBAAM,IAAA,yBAAe,EAAC,MAAM,EAAE,GAAG,CAAC,EAAA;;oBAA1E,QAAQ,GAAgC,SAAkC;oBAEhF,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getCurrent.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getCurrent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,mCAIC;AAND,uEAAiD;AAEjD,SAA8B,gBAAgB,CAAC,GAAa;;;;;wBACV,qBAAM,IAAA,yBAAe,EAAC,MAAM,EAAE,GAAG,CAAC,EAAA;;oBAA1E,QAAQ,GAAgC,SAAkC;oBAEhF,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, Flight } from "../../types";
|
|
2
|
-
export default function Pilot_getLatestFlight(id: number, api: FSHubApi): Promise<Flight
|
|
1
|
+
import { FSHubApi, FSHubResponse, Flight } from "../../types";
|
|
2
|
+
export default function Pilot_getLatestFlight(id: number, api: FSHubApi): Promise<FSHubResponse<Flight>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getLatestFlight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getLatestFlight.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getLatestFlight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getLatestFlight.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getLatestFlight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG9D,wBAA8B,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAI7G"}
|
|
@@ -49,7 +49,7 @@ function Pilot_getLatestFlight(id, api) {
|
|
|
49
49
|
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("pilot/".concat(id, "/flight/latest"), api)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
|
-
return [2 /*return*/, response
|
|
52
|
+
return [2 /*return*/, response];
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getLatestFlight.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getLatestFlight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wCAIC;AAND,uEAAiD;AAEjD,SAA8B,qBAAqB,CAAC,EAAU,EAAE,GAAa;;;;;wBACjC,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,mBAAgB,EAAE,GAAG,CAAC,EAAA;;oBAAzF,QAAQ,GAA0B,SAAuD;oBAE/F,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getLatestFlight.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getLatestFlight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wCAIC;AAND,uEAAiD;AAEjD,SAA8B,qBAAqB,CAAC,EAAU,EAAE,GAAa;;;;;wBACjC,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,mBAAgB,EAAE,GAAG,CAAC,EAAA;;oBAAzF,QAAQ,GAA0B,SAAuD;oBAE/F,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FSHubApi, PilotStats } from "../../types";
|
|
2
|
-
export default function Pilot_getStats(id: number, api: FSHubApi): Promise<PilotStats
|
|
1
|
+
import { FSHubApi, FSHubResponse, PilotStats } from "../../types";
|
|
2
|
+
export default function Pilot_getStats(id: number, api: FSHubApi): Promise<FSHubResponse<PilotStats>>;
|
|
3
3
|
//# sourceMappingURL=Pilot_getStats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getStats.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getStats.d.ts","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getStats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGlE,wBAA8B,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAI1G"}
|
|
@@ -49,7 +49,7 @@ function Pilot_getStats(id, api) {
|
|
|
49
49
|
case 0: return [4 /*yield*/, (0, FSHubApiRequest_1.default)("pilot/".concat(id, "/stats"), api)];
|
|
50
50
|
case 1:
|
|
51
51
|
response = _a.sent();
|
|
52
|
-
return [2 /*return*/, response
|
|
52
|
+
return [2 /*return*/, response];
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pilot_getStats.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getStats.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,iCAIC;AAND,uEAAiD;AAEjD,SAA8B,cAAc,CAAC,EAAU,EAAE,GAAa;;;;;wBACtB,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,WAAQ,EAAE,GAAG,CAAC,EAAA;;oBAArF,QAAQ,GAA8B,SAA+C;oBAE3F,sBAAO,QAAQ,
|
|
1
|
+
{"version":3,"file":"Pilot_getStats.js","sourceRoot":"","sources":["../../../src/api/pilot/Pilot_getStats.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,iCAIC;AAND,uEAAiD;AAEjD,SAA8B,cAAc,CAAC,EAAU,EAAE,GAAa;;;;;wBACtB,qBAAM,IAAA,yBAAe,EAAC,gBAAS,EAAE,WAAQ,EAAE,GAAG,CAAC,EAAA;;oBAArF,QAAQ,GAA8B,SAA+C;oBAE3F,sBAAO,QAAQ,EAAC;;;;CACnB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
import { AxiosInstance } from 'axios';
|
|
2
|
-
import type { Config, FSHubApi } from './types';
|
|
2
|
+
import type { Config, FSHubApi, FSHubRequestOptions } from './types';
|
|
3
3
|
export * from './types';
|
|
4
4
|
export default class FSHubApiClass implements FSHubApi {
|
|
5
5
|
private readonly config;
|
|
6
6
|
readonly axios: AxiosInstance;
|
|
7
7
|
constructor(config: Config);
|
|
8
|
-
Pilot_getCurrent(): Promise<import("./types").CurrentPilot
|
|
9
|
-
Pilot_getAll(): Promise<import("./types").Pilot[]
|
|
10
|
-
Pilot_get(id: number): Promise<import("./types").Pilot
|
|
11
|
-
Pilot_getLatestFlight(id: number): Promise<import("./types").Flight
|
|
12
|
-
Pilot_getAllFlights(id: number): Promise<import("./types").Flight[]
|
|
13
|
-
Pilot_getAllAirlines(id: number): Promise<import("./types").Airline[]
|
|
14
|
-
Pilot_getStats(id: number): Promise<import("./types").PilotStats
|
|
15
|
-
Pilot_getAllFlightsDepartures(id: number, airportCode: string): Promise<import("./types").Flight[]
|
|
16
|
-
Pilot_getAllFlightsArrivals(id: number, airportCode: string): Promise<import("./types").Flight[]
|
|
17
|
-
Pilot_getAllFlightDeparturesAndArrivals(id: number, departureAirportCode: string, arrivalAirportCode: string): Promise<import("./types").Flight[]
|
|
18
|
-
Pilot_getAllScreenshots(id: number): Promise<import("./types").Screenshot[]
|
|
19
|
-
Airline_getAll(): Promise<import("./types").Airline[]
|
|
20
|
-
Airline_get(id: number): Promise<import("./types").Airline
|
|
21
|
-
Airline_getPilots(id: number): Promise<import("./types").Pilot[]
|
|
22
|
-
Airline_getPilotStats(id: number, pilotId: number): Promise<import("./types").PilotStats
|
|
23
|
-
Airline_getFlights(id: number): Promise<import("./types").Flight[]
|
|
24
|
-
Airline_getAllFlightsDepartures(id: number, airportCode: string): Promise<import("./types").Flight[]
|
|
25
|
-
Airline_getAllFlightsArrivals(id: number, airportCode: string): Promise<import("./types").Flight[]
|
|
26
|
-
Airline_getAllFlightDeparturesAndArrivals(id: number, departureAirportCode: string, arrivalAirportCode: string): Promise<import("./types").Flight[]
|
|
27
|
-
Airline_getAllScreenshots(id: number): Promise<import("./types").Screenshot[]
|
|
28
|
-
Airline_getStats(id: number): Promise<import("./types").AirlineStats
|
|
29
|
-
Flight_getFlightById(id: number): Promise<import("./types").Flight
|
|
30
|
-
Flight_getFlightScreenshotsById(id: number): Promise<import("./types").Screenshot[]
|
|
8
|
+
Pilot_getCurrent(): Promise<import("./types").FSHubResponse<import("./types").CurrentPilot>>;
|
|
9
|
+
Pilot_getAll(): Promise<import("./types").FSHubResponse<import("./types").Pilot[]>>;
|
|
10
|
+
Pilot_get(id: number): Promise<import("./types").FSHubResponse<import("./types").Pilot>>;
|
|
11
|
+
Pilot_getLatestFlight(id: number): Promise<import("./types").FSHubResponse<import("./types").Flight>>;
|
|
12
|
+
Pilot_getAllFlights(id: number): Promise<import("./types").FSHubResponse<import("./types").Flight[]>>;
|
|
13
|
+
Pilot_getAllAirlines(id: number): Promise<import("./types").FSHubResponse<import("./types").Airline[]>>;
|
|
14
|
+
Pilot_getStats(id: number): Promise<import("./types").FSHubResponse<import("./types").PilotStats>>;
|
|
15
|
+
Pilot_getAllFlightsDepartures(id: number, airportCode: string): Promise<import("./types").FSHubResponse<import("./types").Flight[]>>;
|
|
16
|
+
Pilot_getAllFlightsArrivals(id: number, airportCode: string): Promise<import("./types").FSHubResponse<import("./types").Flight[]>>;
|
|
17
|
+
Pilot_getAllFlightDeparturesAndArrivals(id: number, departureAirportCode: string, arrivalAirportCode: string): Promise<import("./types").FSHubResponse<import("./types").Flight[]>>;
|
|
18
|
+
Pilot_getAllScreenshots(id: number): Promise<import("./types").FSHubResponse<import("./types").Screenshot[]>>;
|
|
19
|
+
Airline_getAll(): Promise<import("./types").FSHubResponse<import("./types").Airline[]>>;
|
|
20
|
+
Airline_get(id: number): Promise<import("./types").FSHubResponse<import("./types").Airline>>;
|
|
21
|
+
Airline_getPilots(id: number): Promise<import("./types").FSHubResponse<import("./types").Pilot[]>>;
|
|
22
|
+
Airline_getPilotStats(id: number, pilotId: number): Promise<import("./types").FSHubResponse<import("./types").PilotStats>>;
|
|
23
|
+
Airline_getFlights(id: number): Promise<import("./types").FSHubResponse<import("./types").Flight[]>>;
|
|
24
|
+
Airline_getAllFlightsDepartures(id: number, airportCode: string): Promise<import("./types").FSHubResponse<import("./types").Flight[]>>;
|
|
25
|
+
Airline_getAllFlightsArrivals(id: number, airportCode: string): Promise<import("./types").FSHubResponse<import("./types").Flight[]>>;
|
|
26
|
+
Airline_getAllFlightDeparturesAndArrivals(id: number, departureAirportCode: string, arrivalAirportCode: string): Promise<import("./types").FSHubResponse<import("./types").Flight[]>>;
|
|
27
|
+
Airline_getAllScreenshots(id: number): Promise<import("./types").FSHubResponse<import("./types").Screenshot[]>>;
|
|
28
|
+
Airline_getStats(id: number): Promise<import("./types").FSHubResponse<import("./types").AirlineStats>>;
|
|
29
|
+
Flight_getFlightById(id: number): Promise<import("./types").FSHubResponse<import("./types").Flight>>;
|
|
30
|
+
Flight_getFlightScreenshotsById(id: number): Promise<import("./types").FSHubResponse<import("./types").Screenshot[]>>;
|
|
31
|
+
Flight_getFlights(options?: FSHubRequestOptions): Promise<import("./types").FSHubResponse<import("./types").Flight[]>>;
|
|
31
32
|
}
|
|
32
33
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEpE,cAAc,SAAS,CAAC;AAExB,MAAM,CAAC,OAAO,OAAO,aAAc,YAAW,QAAQ;IAClD,OAAO,CAAC,QAAQ,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@ var FSHubApiClass = /** @class */ (function () {
|
|
|
89
89
|
this.Pilot_getAllFlightsArrivals = this.Pilot_getAllFlightsArrivals.bind(this);
|
|
90
90
|
this.Pilot_getAllFlightDeparturesAndArrivals = this.Pilot_getAllFlightDeparturesAndArrivals.bind(this);
|
|
91
91
|
this.Pilot_getAllScreenshots = this.Pilot_getAllScreenshots.bind(this);
|
|
92
|
+
this.Airline_getAll = this.Airline_getAll.bind(this);
|
|
93
|
+
this.Airline_get = this.Airline_get.bind(this);
|
|
94
|
+
this.Airline_getPilots = this.Airline_getPilots.bind(this);
|
|
95
|
+
this.Airline_getPilotStats = this.Airline_getPilotStats.bind(this);
|
|
96
|
+
this.Airline_getFlights = this.Airline_getFlights.bind(this);
|
|
97
|
+
this.Airline_getAllFlightsDepartures = this.Airline_getAllFlightsDepartures.bind(this);
|
|
98
|
+
this.Airline_getAllFlightsArrivals = this.Airline_getAllFlightsArrivals.bind(this);
|
|
99
|
+
this.Airline_getAllFlightDeparturesAndArrivals = this.Airline_getAllFlightDeparturesAndArrivals.bind(this);
|
|
100
|
+
this.Airline_getAllScreenshots = this.Airline_getAllScreenshots.bind(this);
|
|
101
|
+
this.Airline_getStats = this.Airline_getStats.bind(this);
|
|
102
|
+
this.Flight_getFlightById = this.Flight_getFlightById.bind(this);
|
|
103
|
+
this.Flight_getFlightScreenshotsById = this.Flight_getFlightScreenshotsById.bind(this);
|
|
104
|
+
this.Flight_getFlights = this.Flight_getFlights.bind(this);
|
|
92
105
|
}
|
|
93
106
|
FSHubApiClass.prototype.Pilot_getCurrent = function () {
|
|
94
107
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -320,6 +333,16 @@ var FSHubApiClass = /** @class */ (function () {
|
|
|
320
333
|
});
|
|
321
334
|
});
|
|
322
335
|
};
|
|
336
|
+
FSHubApiClass.prototype.Flight_getFlights = function (options) {
|
|
337
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
338
|
+
return __generator(this, function (_a) {
|
|
339
|
+
switch (_a.label) {
|
|
340
|
+
case 0: return [4 /*yield*/, api_1.Api.flight.getFlights(this, options)];
|
|
341
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
};
|
|
323
346
|
return FSHubApiClass;
|
|
324
347
|
}());
|
|
325
348
|
exports.default = FSHubApiClass;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA6C;AAE7C,6BAA4B;AAC5B,0CAAwB;AAExB;IAII,uBAAY,MAAc;QACtB,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,IAAI,CAAC,KAAK,GAAG,eAAK,CAAC,MAAM,CAAC;YACtB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,0BAA0B;YAC1D,OAAO,aACH,cAAc,EAAE,kBAAkB,EAClC,eAAe,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,IAChC,IAAI,CAAC,MAAM,CAAC,OAAO,CACzB;YACD,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,KAAK;SACxC,CAAC,CAAC;QAEH,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,IA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,qBAAM,SAAG,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,EAAA;4BAAjD,sBAAO,SAA0C,EAAC;;;;KACrD;IACL,oBAAC;AAAD,CAAC,AAhJD,IAgJC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -41,17 +41,6 @@ export type Gps = {
|
|
|
41
41
|
lat: number;
|
|
42
42
|
lng: number;
|
|
43
43
|
};
|
|
44
|
-
export type FSHubResponse<T> = {
|
|
45
|
-
data: T;
|
|
46
|
-
};
|
|
47
|
-
export type FSHubError = {
|
|
48
|
-
message: string;
|
|
49
|
-
code: number;
|
|
50
|
-
error?: boolean;
|
|
51
|
-
details?: {
|
|
52
|
-
pilot: number;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
44
|
export type Flight = {
|
|
56
45
|
id: number;
|
|
57
46
|
user: User;
|
|
@@ -180,30 +169,54 @@ export type Urls = {
|
|
|
180
169
|
fullsize: string;
|
|
181
170
|
thumbnail: string;
|
|
182
171
|
};
|
|
172
|
+
export type FSHubRequestOptions = {
|
|
173
|
+
cursor?: number;
|
|
174
|
+
limit?: number;
|
|
175
|
+
};
|
|
183
176
|
export type FSHubApi = {
|
|
184
177
|
axios: AxiosInstance;
|
|
185
|
-
Pilot_getCurrent: () => Promise<CurrentPilot
|
|
186
|
-
Pilot_getAll: () => Promise<Pilot[]
|
|
187
|
-
Pilot_get: (id: number) => Promise<Pilot
|
|
188
|
-
Pilot_getLatestFlight: (id: number) => Promise<Flight
|
|
189
|
-
Pilot_getAllFlights: (id: number) => Promise<Flight[]
|
|
190
|
-
Pilot_getAllAirlines: (id: number) => Promise<Airline[]
|
|
191
|
-
Pilot_getStats: (id: number) => Promise<PilotStats
|
|
192
|
-
Pilot_getAllFlightsDepartures: (id: number, airportCode: string) => Promise<Flight[]
|
|
193
|
-
Pilot_getAllFlightsArrivals: (id: number, airportCode: string) => Promise<Flight[]
|
|
194
|
-
Pilot_getAllFlightDeparturesAndArrivals: (id: number, departureAirportCode: string, arrivalAirportCode: string) => Promise<Flight[]
|
|
195
|
-
Pilot_getAllScreenshots: (id: number) => Promise<Screenshot[]
|
|
196
|
-
Airline_getAll: () => Promise<Airline[]
|
|
197
|
-
Airline_get: (id: number) => Promise<Airline
|
|
198
|
-
Airline_getPilots: (id: number) => Promise<Pilot[]
|
|
199
|
-
Airline_getPilotStats: (id: number, pilotId: number) => Promise<PilotStats
|
|
200
|
-
Airline_getFlights: (id: number) => Promise<Flight[]
|
|
201
|
-
Airline_getAllFlightsDepartures: (id: number, airportCode: string) => Promise<Flight[]
|
|
202
|
-
Airline_getAllFlightsArrivals: (id: number, airportCode: string) => Promise<Flight[]
|
|
203
|
-
Airline_getAllFlightDeparturesAndArrivals: (id: number, departureAirportCode: string, arrivalAirportCode: string) => Promise<Flight[]
|
|
204
|
-
Airline_getAllScreenshots: (id: number) => Promise<Screenshot[]
|
|
205
|
-
Airline_getStats: (id: number) => Promise<AirlineStats
|
|
206
|
-
Flight_getFlightById: (id: number) => Promise<Flight
|
|
207
|
-
Flight_getFlightScreenshotsById: (id: number) => Promise<Screenshot[]
|
|
178
|
+
Pilot_getCurrent: () => Promise<FSHubResponse<CurrentPilot>>;
|
|
179
|
+
Pilot_getAll: () => Promise<FSHubResponse<Pilot[]>>;
|
|
180
|
+
Pilot_get: (id: number) => Promise<FSHubResponse<Pilot>>;
|
|
181
|
+
Pilot_getLatestFlight: (id: number) => Promise<FSHubResponse<Flight>>;
|
|
182
|
+
Pilot_getAllFlights: (id: number) => Promise<FSHubResponse<Flight[]>>;
|
|
183
|
+
Pilot_getAllAirlines: (id: number) => Promise<FSHubResponse<Airline[]>>;
|
|
184
|
+
Pilot_getStats: (id: number) => Promise<FSHubResponse<PilotStats>>;
|
|
185
|
+
Pilot_getAllFlightsDepartures: (id: number, airportCode: string) => Promise<FSHubResponse<Flight[]>>;
|
|
186
|
+
Pilot_getAllFlightsArrivals: (id: number, airportCode: string) => Promise<FSHubResponse<Flight[]>>;
|
|
187
|
+
Pilot_getAllFlightDeparturesAndArrivals: (id: number, departureAirportCode: string, arrivalAirportCode: string) => Promise<FSHubResponse<Flight[]>>;
|
|
188
|
+
Pilot_getAllScreenshots: (id: number) => Promise<FSHubResponse<Screenshot[]>>;
|
|
189
|
+
Airline_getAll: () => Promise<FSHubResponse<Airline[]>>;
|
|
190
|
+
Airline_get: (id: number) => Promise<FSHubResponse<Airline>>;
|
|
191
|
+
Airline_getPilots: (id: number) => Promise<FSHubResponse<Pilot[]>>;
|
|
192
|
+
Airline_getPilotStats: (id: number, pilotId: number) => Promise<FSHubResponse<PilotStats>>;
|
|
193
|
+
Airline_getFlights: (id: number) => Promise<FSHubResponse<Flight[]>>;
|
|
194
|
+
Airline_getAllFlightsDepartures: (id: number, airportCode: string) => Promise<FSHubResponse<Flight[]>>;
|
|
195
|
+
Airline_getAllFlightsArrivals: (id: number, airportCode: string) => Promise<FSHubResponse<Flight[]>>;
|
|
196
|
+
Airline_getAllFlightDeparturesAndArrivals: (id: number, departureAirportCode: string, arrivalAirportCode: string) => Promise<FSHubResponse<Flight[]>>;
|
|
197
|
+
Airline_getAllScreenshots: (id: number) => Promise<FSHubResponse<Screenshot[]>>;
|
|
198
|
+
Airline_getStats: (id: number) => Promise<FSHubResponse<AirlineStats>>;
|
|
199
|
+
Flight_getFlightById: (id: number) => Promise<FSHubResponse<Flight>>;
|
|
200
|
+
Flight_getFlightScreenshotsById: (id: number) => Promise<FSHubResponse<Screenshot[]>>;
|
|
201
|
+
Flight_getFlights: (options?: FSHubRequestOptions) => Promise<FSHubResponse<Flight[]>>;
|
|
202
|
+
};
|
|
203
|
+
export type FSHubResponse<T> = {
|
|
204
|
+
data: T;
|
|
205
|
+
meta?: {
|
|
206
|
+
cursor: {
|
|
207
|
+
current: number;
|
|
208
|
+
prev: number;
|
|
209
|
+
next: number;
|
|
210
|
+
count: number;
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
export type FSHubError = {
|
|
215
|
+
message: string;
|
|
216
|
+
code: number;
|
|
217
|
+
error?: boolean;
|
|
218
|
+
details?: {
|
|
219
|
+
pilot: number;
|
|
220
|
+
};
|
|
208
221
|
};
|
|
209
222
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;GAEG;AAEH,MAAM,MAAM,MAAM,GAAG;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,GAAG,CAAA;IACR,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAA;CACf,CAAA;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,EAAE,GAAG,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,GAAG,CAAA;IACZ,MAAM,EAAE,MAAM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