@mtgame/core 1.0.17 → 1.0.20

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.
@@ -142,7 +142,7 @@ export declare class TournamentApi {
142
142
  getGames(tournamentId: number, page: number, size: number, filters?: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
143
143
  getGamesDates(tournamentId: number): Promise<any>;
144
144
  getGroups(tournamentId: number): Promise<TournamentGroup[]>;
145
- getTeams(tournamentId: number, groupId?: number, short?: boolean): Promise<TournamentTeam[]>;
145
+ getTeams(tournamentId: number, groupId?: number, short?: boolean, micro?: boolean): Promise<TournamentTeam[]>;
146
146
  getStageTeams(tournamentId: number): Promise<TournamentStageTeam[]>;
147
147
  getTeamsAchievements(tournamentId: number): Promise<TeamAchievement[]>;
148
148
  getTeamById(tournamentTeamId: number): Promise<TournamentTeam>;
@@ -19,7 +19,7 @@ export declare class TournamentSeasonApi {
19
19
  getGames(seasonId: number, page: number, size: number, filters: TournamentGamesFilters): Promise<PaginatedResponse<Game[]>>;
20
20
  getEvents(seasonId: number, page: number, size: number, filters?: TournamentEventsListFilter): Promise<PaginatedResponse<TournamentEvent[]>>;
21
21
  getGameMedia(seasonId: number, page: number, size: number, filters: GameMediaFilters): Promise<PaginatedResponse<Game[]>>;
22
- getTeams(seasonId: number, short?: boolean): Promise<TournamentTeam[]>;
22
+ getTeams(seasonId: number, short?: boolean, micro?: boolean): Promise<TournamentTeam[]>;
23
23
  getPlayoffs(seasonId: number): Promise<Playoff[]>;
24
24
  getGamesStages(seasonId: number): Promise<GameTimelineStages>;
25
25
  }
@@ -8121,7 +8121,7 @@
8121
8121
  });
8122
8122
  });
8123
8123
  };
8124
- TournamentApi.prototype.getTeams = function (tournamentId, groupId, short) {
8124
+ TournamentApi.prototype.getTeams = function (tournamentId, groupId, short, micro) {
8125
8125
  return __awaiter(this, void 0, void 0, function () {
8126
8126
  var params;
8127
8127
  return __generator(this, function (_a) {
@@ -8132,6 +8132,9 @@
8132
8132
  if (short) {
8133
8133
  params = params.set('short', '1');
8134
8134
  }
8135
+ if (micro) {
8136
+ params = params.set('micro', '1');
8137
+ }
8135
8138
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/teams/", { params: params })
8136
8139
  .pipe(operators.map(function (result) { return exports.TournamentTeam.toFront(result); }))
8137
8140
  .toPromise()];
@@ -11529,7 +11532,7 @@
11529
11532
  });
11530
11533
  });
11531
11534
  };
11532
- TournamentSeasonApi.prototype.getTeams = function (seasonId, short) {
11535
+ TournamentSeasonApi.prototype.getTeams = function (seasonId, short, micro) {
11533
11536
  return __awaiter(this, void 0, void 0, function () {
11534
11537
  var params;
11535
11538
  return __generator(this, function (_a) {
@@ -11537,6 +11540,9 @@
11537
11540
  if (short) {
11538
11541
  params = params.set('short', '1');
11539
11542
  }
11543
+ if (micro) {
11544
+ params = params.set('micro', '1');
11545
+ }
11540
11546
  return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_season/" + seasonId + "/teams/", { params: params }).pipe(operators.map(function (result) { return exports.TournamentTeam.toFront(result); })).toPromise()];
11541
11547
  });
11542
11548
  });
@@ -15666,12 +15672,15 @@
15666
15672
  });
15667
15673
  _this.centrifuge.on('disconnected', function () {
15668
15674
  _this.connectedSubject.next(false);
15669
- _this.initializeEngineSubject.next(false);
15670
15675
  });
15671
15676
  _this.centrifuge.connect();
15672
15677
  });
15673
15678
  }
15674
- return this.initializeEngineSubject.pipe(operators.filter(function (item) { return Boolean(item); }), operators.take(1));
15679
+ return this.initializeEngineSubject.pipe(operators.filter(function (item) { return Boolean(item); }), operators.take(1), operators.tap(function () {
15680
+ if (_this.centrifuge && _this.centrifuge.state === 'disconnected') {
15681
+ _this.centrifuge.connect();
15682
+ }
15683
+ }));
15675
15684
  };
15676
15685
  CentrifugoService.prototype.publish = function (channel, message) {
15677
15686
  var _this = this;