@mtgame/core 0.1.11 → 0.1.13

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.
@@ -9,6 +9,7 @@ import { TournamentEvent } from '../models/tournament-event';
9
9
  import { GameMediaFilters } from './media-api';
10
10
  import { TournamentTeam } from '../models/tournament-team';
11
11
  import { GameTimelineStages } from '../models/game-timeline-stages';
12
+ import { Playoff } from '../models/playoff';
12
13
  export declare class TournamentSeasonApi {
13
14
  private httpClient;
14
15
  private configService;
@@ -19,5 +20,6 @@ export declare class TournamentSeasonApi {
19
20
  getEvents(seasonId: number, page: number, size: number, filters?: TournamentEventsListFilter): Promise<PaginatedResponse<TournamentEvent[]>>;
20
21
  getGameMedia(seasonId: number, page: number, size: number, filters: GameMediaFilters): Promise<PaginatedResponse<Game[]>>;
21
22
  getTeams(seasonId: number): Promise<TournamentTeam[]>;
23
+ getPlayoffs(seasonId: number): Promise<Playoff[]>;
22
24
  getGamesStages(seasonId: number): Promise<GameTimelineStages>;
23
25
  }
@@ -2260,6 +2260,7 @@
2260
2260
  mappingFields: {
2261
2261
  id: 'id',
2262
2262
  name: 'name',
2263
+ sort: 'sort',
2263
2264
  tournament_stage_id: 'tournamentStageId'
2264
2265
  }
2265
2266
  })
@@ -7526,6 +7527,13 @@
7526
7527
  });
7527
7528
  });
7528
7529
  };
7530
+ TournamentSeasonApi.prototype.getPlayoffs = function (seasonId) {
7531
+ return __awaiter(this, void 0, void 0, function () {
7532
+ return __generator(this, function (_a) {
7533
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_season/" + seasonId + "/playoffs/").pipe(operators.map(function (result) { return Playoff.toFront(result); })).toPromise()];
7534
+ });
7535
+ });
7536
+ };
7529
7537
  TournamentSeasonApi.prototype.getGamesStages = function (seasonId) {
7530
7538
  return __awaiter(this, void 0, void 0, function () {
7531
7539
  return __generator(this, function (_a) {