@mtgame/core 0.0.47 → 0.0.48
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/api/league-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +7 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/league-api.js +7 -1
- package/esm5/api/league-api.js +9 -1
- package/fesm2015/mtgame-core.js +5 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +7 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/league-api.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { TournamentEvent } from '../models/tournament-event';
|
|
|
8
8
|
import { TournamentSeason } from '../models/tournament-season';
|
|
9
9
|
import { Game } from '../models/game';
|
|
10
10
|
import { LeaguePartner } from '../models/league-partner';
|
|
11
|
+
import { LeagueCourt } from '../models/league-court';
|
|
11
12
|
export declare class LeagueApi {
|
|
12
13
|
private httpClient;
|
|
13
14
|
private configService;
|
|
@@ -20,4 +21,5 @@ export declare class LeagueApi {
|
|
|
20
21
|
getGames(leagueId: number, page: number, size: number, filters: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
|
|
21
22
|
getSeasons(leagueId: number, notClosed?: boolean): Promise<TournamentSeason[]>;
|
|
22
23
|
getPartners(leagueId: number): Promise<LeaguePartner[]>;
|
|
24
|
+
getCourts(leagueId: number): Promise<LeagueCourt[]>;
|
|
23
25
|
}
|
|
@@ -3303,6 +3303,13 @@
|
|
|
3303
3303
|
});
|
|
3304
3304
|
});
|
|
3305
3305
|
};
|
|
3306
|
+
LeagueApi.prototype.getCourts = function (leagueId) {
|
|
3307
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3308
|
+
return __generator(this, function (_a) {
|
|
3309
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/courts/").pipe(operators.map(function (result) { return LeagueCourt.toFront(result); })).toPromise()];
|
|
3310
|
+
});
|
|
3311
|
+
});
|
|
3312
|
+
};
|
|
3306
3313
|
LeagueApi.ctorParameters = function () { return [
|
|
3307
3314
|
{ type: http.HttpClient },
|
|
3308
3315
|
{ type: ConfigService }
|