fshub-api 4.1.1 → 4.1.2

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.
@@ -44,7 +44,7 @@ function Airline_pilotSetRank(pilotId, airlineId, data, api) {
44
44
  return __generator(this, function (_a) {
45
45
  switch (_a.label) {
46
46
  case 0:
47
- url = "airline/".concat(airlineId, "/application/").concat(pilotId, "/rank");
47
+ url = "airline/".concat(airlineId, "/pilot/").concat(pilotId, "/rank");
48
48
  return [4 /*yield*/, (0, FSHubApiRequest_1.FSHubApiPutRequest)(url, api, data)];
49
49
  case 1:
50
50
  response = _a.sent();
@@ -1 +1 @@
1
- {"version":3,"file":"Airline_pilotSetRank.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_pilotSetRank.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,uCAMC;AARD,sDAAwD;AAExD,SAA8B,oBAAoB,CAAC,OAAe,EAAE,SAAiB,EAAE,IAA2B,EAAE,GAAa;;;;;;oBACvH,GAAG,GAAG,kBAAW,SAAS,0BAAgB,OAAO,UAAO,CAAC;oBAEL,qBAAM,IAAA,oCAAkB,EAAkD,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAA;;oBAA7I,QAAQ,GAA4C,SAAyF;oBAEnJ,sBAAO,QAAQ,EAAC;;;;CACnB"}
1
+ {"version":3,"file":"Airline_pilotSetRank.js","sourceRoot":"","sources":["../../../src/api/airline/Airline_pilotSetRank.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,uCAMC;AARD,sDAAwD;AAExD,SAA8B,oBAAoB,CAAC,OAAe,EAAE,SAAiB,EAAE,IAA2B,EAAE,GAAa;;;;;;oBACvH,GAAG,GAAG,kBAAW,SAAS,oBAAU,OAAO,UAAO,CAAC;oBAEC,qBAAM,IAAA,oCAAkB,EAAkD,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAA;;oBAA7I,QAAQ,GAA4C,SAAyF;oBAEnJ,sBAAO,QAAQ,EAAC;;;;CACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fshub-api",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "TypeScript HTTP API wrapper library for FSHub REST API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,7 +2,7 @@ import { FSHubApi, FSHubResponse, FSHubApplicationResponse, FSHubPilotSetRankDat
2
2
  import { FSHubApiPutRequest } from "../FSHubApiRequest";
3
3
 
4
4
  export default async function Airline_pilotSetRank(pilotId: number, airlineId: number, data: FSHubPilotSetRankData, api: FSHubApi): Promise<FSHubResponse<FSHubApplicationResponse>> {
5
- const url = `airline/${airlineId}/application/${pilotId}/rank`;
5
+ const url = `airline/${airlineId}/pilot/${pilotId}/rank`;
6
6
 
7
7
  const response: FSHubResponse<FSHubApplicationResponse> = await FSHubApiPutRequest<FSHubApplicationResponse, FSHubPilotSetRankData>(url, api, data);
8
8