@mtgame/core 0.1.10 → 0.1.12

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
  }
@@ -2835,7 +2835,8 @@
2835
2835
  ModelInstance({
2836
2836
  mappingFields: {
2837
2837
  min_user_games_count: 'minUserGamesCount',
2838
- min_user_time: 'minUserTime'
2838
+ min_user_time: 'minUserTime',
2839
+ manual: 'manual',
2839
2840
  },
2840
2841
  })
2841
2842
  ], GameUserLimitationTypes);
@@ -7525,6 +7526,13 @@
7525
7526
  });
7526
7527
  });
7527
7528
  };
7529
+ TournamentSeasonApi.prototype.getPlayoffs = function (seasonId) {
7530
+ return __awaiter(this, void 0, void 0, function () {
7531
+ return __generator(this, function (_a) {
7532
+ 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()];
7533
+ });
7534
+ });
7535
+ };
7528
7536
  TournamentSeasonApi.prototype.getGamesStages = function (seasonId) {
7529
7537
  return __awaiter(this, void 0, void 0, function () {
7530
7538
  return __generator(this, function (_a) {