@mtgame/core 0.1.38 → 0.1.39

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.
@@ -94,7 +94,7 @@ export declare class TournamentApi {
94
94
  getPlayoffGames(playoffId: number, playoffNumber?: string): Promise<Game[]>;
95
95
  getGamesStages(tournamentId: number): Promise<GameTimelineStages>;
96
96
  getGames(tournamentId: number, page: number, size: number, filters?: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
97
- getTeams(tournamentId: number): Promise<TournamentTeam[]>;
97
+ getTeams(tournamentId: number, groupId?: number): Promise<TournamentTeam[]>;
98
98
  getStageTeams(tournamentId: number): Promise<TournamentStageTeam[]>;
99
99
  getTeamById(tournamentTeamId: number): Promise<TournamentTeam>;
100
100
  getUserById(userId: number): Promise<TournamentTeamUser>;
@@ -5511,10 +5511,15 @@
5511
5511
  });
5512
5512
  });
5513
5513
  };
5514
- TournamentApi.prototype.getTeams = function (tournamentId) {
5514
+ TournamentApi.prototype.getTeams = function (tournamentId, groupId) {
5515
5515
  return __awaiter(this, void 0, void 0, function () {
5516
+ var params;
5516
5517
  return __generator(this, function (_a) {
5517
- return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/teams/")
5518
+ params = new http.HttpParams();
5519
+ if (groupId) {
5520
+ params = params.set('group_id', groupId.toString());
5521
+ }
5522
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/teams/", { params: params })
5518
5523
  .pipe(operators.map(function (result) { return TournamentTeam.toFront(result); }))
5519
5524
  .toPromise()];
5520
5525
  });