@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.
@@ -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)