@mtgame/core 1.0.6 → 1.0.8

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.
@@ -180,6 +180,7 @@ export declare class TournamentApi {
180
180
  getTournamentTeamTournaments(tournamentTeamId: number): Promise<Tournament[]>;
181
181
  getTournamentUserTournaments(tournamentTeamUserId: number): Promise<Tournament[]>;
182
182
  getTournamentTeamUsersLimitation(tournamentTeamId: number): Promise<GameUserLimitations[]>;
183
+ downloadTeamSanctionList(tournamentTeamId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
183
184
  }
184
185
  export declare function applyGamesFilters(filters: TournamentGamesFilters, params: HttpParams): HttpParams;
185
186
  export declare function applyStatisticFilters(filters: StatisticFilters): object;
@@ -1994,6 +1994,7 @@
1994
1994
  season_id: 'seasonId',
1995
1995
  game_price: 'gamePrice',
1996
1996
  season_tournament_id: 'seasonTournamentId',
1997
+ sort: 'sort',
1997
1998
  },
1998
1999
  relation: {
1999
2000
  logo: exports.File,
@@ -8495,6 +8496,16 @@
8495
8496
  });
8496
8497
  });
8497
8498
  };
8499
+ TournamentApi.prototype.downloadTeamSanctionList = function (tournamentTeamId, fileType) {
8500
+ return __awaiter(this, void 0, void 0, function () {
8501
+ return __generator(this, function (_a) {
8502
+ return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_team/" + tournamentTeamId + "/sanction_list_file/?file_type=" + fileType, {
8503
+ params: new i1.HttpParams().set('file_type', fileType),
8504
+ responseType: 'blob'
8505
+ }).toPromise()];
8506
+ });
8507
+ });
8508
+ };
8498
8509
  return TournamentApi;
8499
8510
  }());
8500
8511
  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" });