@mtgame/core 0.1.20 → 0.1.22
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 -1
- package/bundles/mtgame-core.umd.js +10 -2
- 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 +10 -3
- package/esm2015/models/game.js +1 -1
- package/esm5/api/tournament-api.js +11 -3
- package/esm5/models/game.js +1 -1
- package/fesm2015/mtgame-core.js +9 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +10 -2
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game.d.ts +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -3942,9 +3942,13 @@ let TournamentApi = class TournamentApi {
|
|
|
3942
3942
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament/${tournamentId}/playoff/`).pipe(map(result => Playoff.toFront(result))).toPromise();
|
|
3943
3943
|
});
|
|
3944
3944
|
}
|
|
3945
|
-
getPlayoffGames(playoffId) {
|
|
3945
|
+
getPlayoffGames(playoffId, playoffNumber) {
|
|
3946
3946
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3947
|
-
|
|
3947
|
+
let params = new HttpParams();
|
|
3948
|
+
if (playoffNumber) {
|
|
3949
|
+
params = params.set('playoff_number', playoffNumber);
|
|
3950
|
+
}
|
|
3951
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_playoff/${playoffId}/games/`, { params }).pipe(map(result => Game.toFront(result))).toPromise();
|
|
3948
3952
|
});
|
|
3949
3953
|
}
|
|
3950
3954
|
getGamesStages(tournamentId) {
|
|
@@ -4174,6 +4178,9 @@ function applyGamesFilters(filters, params) {
|
|
|
4174
4178
|
if (filters.query) {
|
|
4175
4179
|
params = params.set('query', filters.query);
|
|
4176
4180
|
}
|
|
4181
|
+
if (filters.isPlayoff !== undefined && filters.isPlayoff !== null) {
|
|
4182
|
+
params = params.set('is_playoff', filters.isPlayoff ? '1' : '0');
|
|
4183
|
+
}
|
|
4177
4184
|
return params;
|
|
4178
4185
|
}
|
|
4179
4186
|
function applyStatisticFilters(filters, params) {
|