@mtgame/core 0.1.39 → 0.1.40
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/tournament-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +9 -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/tournament-api.js +9 -1
- package/esm5/api/tournament-api.js +11 -1
- package/fesm2015/mtgame-core.js +7 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +9 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/tournament-api.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import { FootballStatistic } from '../models/football-statistic';
|
|
|
18
18
|
import { LeagueUserPermissions } from '../models/league-user';
|
|
19
19
|
import { HandballStatistic } from '../models/handball-statistic';
|
|
20
20
|
import { RugbyStatistic } from '../models/rugby-statistic';
|
|
21
|
+
import { TournamentGroup } from '../models/tournament-group';
|
|
21
22
|
export interface TournamentGamesFilters {
|
|
22
23
|
tournamentIds?: number[];
|
|
23
24
|
tournamentSeasonId?: number;
|
|
@@ -94,6 +95,7 @@ export declare class TournamentApi {
|
|
|
94
95
|
getPlayoffGames(playoffId: number, playoffNumber?: string): Promise<Game[]>;
|
|
95
96
|
getGamesStages(tournamentId: number): Promise<GameTimelineStages>;
|
|
96
97
|
getGames(tournamentId: number, page: number, size: number, filters?: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
|
|
98
|
+
getGroups(tournamentId: number): Promise<TournamentGroup[]>;
|
|
97
99
|
getTeams(tournamentId: number, groupId?: number): Promise<TournamentTeam[]>;
|
|
98
100
|
getStageTeams(tournamentId: number): Promise<TournamentStageTeam[]>;
|
|
99
101
|
getTeamById(tournamentTeamId: number): Promise<TournamentTeam>;
|
|
@@ -5511,6 +5511,15 @@
|
|
|
5511
5511
|
});
|
|
5512
5512
|
});
|
|
5513
5513
|
};
|
|
5514
|
+
TournamentApi.prototype.getGroups = function (tournamentId) {
|
|
5515
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5516
|
+
return __generator(this, function (_a) {
|
|
5517
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/groups/")
|
|
5518
|
+
.pipe(operators.map(function (result) { return TournamentGroup.toFront(result); }))
|
|
5519
|
+
.toPromise()];
|
|
5520
|
+
});
|
|
5521
|
+
});
|
|
5522
|
+
};
|
|
5514
5523
|
TournamentApi.prototype.getTeams = function (tournamentId, groupId) {
|
|
5515
5524
|
return __awaiter(this, void 0, void 0, function () {
|
|
5516
5525
|
var params;
|