@mtgame/core 0.2.56 → 0.2.58

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.
@@ -24,6 +24,7 @@ import { WaterpoloStatistic } from '../models/waterpolo-statistic';
24
24
  import { TournamentRound } from '../models/tournament-round';
25
25
  import { TournamentDivision } from '../models/tournament-division';
26
26
  import { UserGender } from '../models/user';
27
+ import { GameUserLimitations } from '../models/game-user-limitation';
27
28
  export interface TournamentGamesFilters {
28
29
  tournamentIds?: number[];
29
30
  tournamentSeasonId?: number;
@@ -153,6 +154,7 @@ export declare class TournamentApi {
153
154
  myPermission(tournamentId: number): Promise<LeagueUserPermissions[]>;
154
155
  getTournamentTeamTournaments(tournamentTeamId: number): Promise<Tournament[]>;
155
156
  getTournamentUserTournaments(tournamentTeamUserId: number): Promise<Tournament[]>;
157
+ getTournamentTeamUsersLimitation(tournamentTeamId: number): Promise<GameUserLimitations[]>;
156
158
  }
157
159
  export declare function applyGamesFilters(filters: TournamentGamesFilters, params: HttpParams): HttpParams;
158
160
  export declare function applyStatisticFilters(filters: StatisticFilters, params: HttpParams): HttpParams;
@@ -7839,6 +7839,13 @@
7839
7839
  });
7840
7840
  });
7841
7841
  };
7842
+ TournamentApi.prototype.getTournamentTeamUsersLimitation = function (tournamentTeamId) {
7843
+ return __awaiter(this, void 0, void 0, function () {
7844
+ return __generator(this, function (_a) {
7845
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_team/" + tournamentTeamId + "/users_limitation/").pipe(operators.map(function (result) { return exports.GameUserLimitations.toFront(result); })).toPromise()];
7846
+ });
7847
+ });
7848
+ };
7842
7849
  return TournamentApi;
7843
7850
  }());
7844
7851
  TournamentApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TournamentApi_Factory() { return new TournamentApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: TournamentApi, providedIn: "root" });
@@ -7900,7 +7907,7 @@
7900
7907
  params = params.set('date_from', filters.date_from);
7901
7908
  }
7902
7909
  if (filters.date_to) {
7903
- params = params.set('date_from', filters.date_to);
7910
+ params = params.set('date_to', filters.date_to);
7904
7911
  }
7905
7912
  if (filters.isPlayoff !== undefined && filters.isPlayoff !== null) {
7906
7913
  params = params.set('is_playoff', filters.isPlayoff ? '1' : '0');