@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.
@@ -23,6 +23,7 @@ export interface TournamentGamesFilters {
23
23
  playoffId?: number;
24
24
  status?: GameStatuses;
25
25
  statuses?: GameStatuses[];
26
+ tournamentCourtId?: number;
26
27
  }
27
28
  export declare type StatisticGroupByTypes = 'team' | 'user' | 'team_user' | 'tournament_team' | 'tournament_team_user' | 'month' | 'win_loses';
28
29
  export interface StatisticFilters {
@@ -3278,6 +3278,9 @@
3278
3278
  statuses = filters.statuses.map(function (i) { return exports.GameStatuses[i]; });
3279
3279
  params = params.set('statuses', statuses.join(','));
3280
3280
  }
3281
+ if (filters.tournamentCourtId) {
3282
+ params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
3283
+ }
3281
3284
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/league/" + leagueId + "/games/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
3282
3285
  total: +result.headers.get('X-Page-Count'),
3283
3286
  data: Game.toFront(result.body)
@@ -5435,6 +5438,9 @@
5435
5438
  statuses = filters.statuses.map(function (i) { return exports.GameStatuses[i]; });
5436
5439
  params = params.set('statuses', statuses.join(','));
5437
5440
  }
5441
+ if (filters.tournamentCourtId) {
5442
+ params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
5443
+ }
5438
5444
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/games/", { params: params, observe: 'response' })
5439
5445
  .pipe(operators.map(function (result) { return ({
5440
5446
  total: +result.headers.get('X-Page-Count'),
@@ -5763,6 +5769,9 @@
5763
5769
  statuses = filters.statuses.map(function (i) { return exports.GameStatuses[i]; });
5764
5770
  params = params.set('statuses', statuses.join(','));
5765
5771
  }
5772
+ if (filters.tournamentCourtId) {
5773
+ params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
5774
+ }
5766
5775
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_season/" + seasonId + "/games/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
5767
5776
  total: +result.headers.get('X-Page-Count'),
5768
5777
  data: Game.toFront(result.body)