@mtgame/core 0.1.83 → 0.1.85
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 +1 -0
- package/bundles/mtgame-core.umd.js +10 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/tournament-api.js +9 -1
- package/fesm2015/mtgame-core.js +8 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +2 -2
package/api/tournament-api.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export declare class TournamentApi {
|
|
|
97
97
|
getPlayoffGames(playoffId: number, playoffNumber?: string): Promise<Game[]>;
|
|
98
98
|
getGamesStages(tournamentId: number): Promise<GameTimelineStages>;
|
|
99
99
|
getGames(tournamentId: number, page: number, size: number, filters?: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
|
|
100
|
+
getGamesDates(tournamentId: number): Promise<any>;
|
|
100
101
|
getGroups(tournamentId: number): Promise<TournamentGroup[]>;
|
|
101
102
|
getTeams(tournamentId: number, groupId?: number): Promise<TournamentTeam[]>;
|
|
102
103
|
getStageTeams(tournamentId: number): Promise<TournamentStageTeam[]>;
|
|
@@ -5934,6 +5934,16 @@
|
|
|
5934
5934
|
});
|
|
5935
5935
|
});
|
|
5936
5936
|
};
|
|
5937
|
+
TournamentApi.prototype.getGamesDates = function (tournamentId) {
|
|
5938
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5939
|
+
return __generator(this, function (_a) {
|
|
5940
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/games_dates/", { observe: 'response' }).pipe(operators.map(function (result) { return ({
|
|
5941
|
+
total: +result.headers.get('X-Page-Count'),
|
|
5942
|
+
data: result.body
|
|
5943
|
+
}); })).toPromise()];
|
|
5944
|
+
});
|
|
5945
|
+
});
|
|
5946
|
+
};
|
|
5937
5947
|
TournamentApi.prototype.getGroups = function (tournamentId) {
|
|
5938
5948
|
return __awaiter(this, void 0, void 0, function () {
|
|
5939
5949
|
return __generator(this, function (_a) {
|