@mtgame/core 0.1.99 → 0.1.100
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.
- package/api/tournament-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +10 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/tournament-api.js +9 -1
- package/fesm2015/mtgame-core.js +8 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/tournament-api.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ export declare class TournamentApi {
|
|
|
106
106
|
getTeamById(tournamentTeamId: number): Promise<TournamentTeam>;
|
|
107
107
|
getUserById(userId: number): Promise<TournamentTeamUser>;
|
|
108
108
|
getUserGames(tournamentUserId: number): Promise<Game[]>;
|
|
109
|
+
downloadTable(tournamentId: number, format: 'pdf' | 'xlsx', isChess?: boolean): Promise<any>;
|
|
109
110
|
getBasketballStatisticLeaders(filters: StatisticLeadersFilters): Promise<{
|
|
110
111
|
[key: string]: BasketballStatistic[];
|
|
111
112
|
}>;
|
|
@@ -6207,6 +6207,16 @@
|
|
|
6207
6207
|
});
|
|
6208
6208
|
});
|
|
6209
6209
|
};
|
|
6210
|
+
TournamentApi.prototype.downloadTable = function (tournamentId, format, isChess) {
|
|
6211
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6212
|
+
return __generator(this, function (_a) {
|
|
6213
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/table_file/", {
|
|
6214
|
+
params: new i1.HttpParams().set('file_type', format).set('isChess', isChess),
|
|
6215
|
+
responseType: 'blob'
|
|
6216
|
+
}).toPromise()];
|
|
6217
|
+
});
|
|
6218
|
+
});
|
|
6219
|
+
};
|
|
6210
6220
|
TournamentApi.prototype.getBasketballStatisticLeaders = function (filters) {
|
|
6211
6221
|
return __awaiter(this, void 0, void 0, function () {
|
|
6212
6222
|
var params;
|