@mtgame/core 0.0.48 → 0.0.49
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 +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/league-api.js +4 -1
- package/esm2015/api/tournament-api.js +4 -1
- package/esm2015/api/tournament-season-api.js +4 -1
- package/esm5/api/league-api.js +4 -1
- package/esm5/api/tournament-api.js +4 -1
- package/esm5/api/tournament-season-api.js +4 -1
- package/fesm2015/mtgame-core.js +9 -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/fesm5/mtgame-core.js
CHANGED
|
@@ -3065,6 +3065,9 @@ var LeagueApi = /** @class */ (function () {
|
|
|
3065
3065
|
statuses = filters.statuses.map(function (i) { return GameStatuses[i]; });
|
|
3066
3066
|
params = params.set('statuses', statuses.join(','));
|
|
3067
3067
|
}
|
|
3068
|
+
if (filters.tournamentCourtId) {
|
|
3069
|
+
params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
|
|
3070
|
+
}
|
|
3068
3071
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/games/", { params: params, observe: 'response' }).pipe(map(function (result) { return ({
|
|
3069
3072
|
total: +result.headers.get('X-Page-Count'),
|
|
3070
3073
|
data: Game.toFront(result.body)
|
|
@@ -5222,6 +5225,9 @@ var TournamentApi = /** @class */ (function () {
|
|
|
5222
5225
|
statuses = filters.statuses.map(function (i) { return GameStatuses[i]; });
|
|
5223
5226
|
params = params.set('statuses', statuses.join(','));
|
|
5224
5227
|
}
|
|
5228
|
+
if (filters.tournamentCourtId) {
|
|
5229
|
+
params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
|
|
5230
|
+
}
|
|
5225
5231
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/games/", { params: params, observe: 'response' })
|
|
5226
5232
|
.pipe(map(function (result) { return ({
|
|
5227
5233
|
total: +result.headers.get('X-Page-Count'),
|
|
@@ -5550,6 +5556,9 @@ var TournamentSeasonApi = /** @class */ (function () {
|
|
|
5550
5556
|
statuses = filters.statuses.map(function (i) { return GameStatuses[i]; });
|
|
5551
5557
|
params = params.set('statuses', statuses.join(','));
|
|
5552
5558
|
}
|
|
5559
|
+
if (filters.tournamentCourtId) {
|
|
5560
|
+
params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
|
|
5561
|
+
}
|
|
5553
5562
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_season/" + seasonId + "/games/", { params: params, observe: 'response' }).pipe(map(function (result) { return ({
|
|
5554
5563
|
total: +result.headers.get('X-Page-Count'),
|
|
5555
5564
|
data: Game.toFront(result.body)
|