@mtgame/core 0.1.99 → 0.1.101
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 +16 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/tournament-api.js +14 -1
- package/fesm2015/mtgame-core.js +13 -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,22 @@
|
|
|
6207
6207
|
});
|
|
6208
6208
|
});
|
|
6209
6209
|
};
|
|
6210
|
+
TournamentApi.prototype.downloadTable = function (tournamentId, format, isChess) {
|
|
6211
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6212
|
+
var httpParams;
|
|
6213
|
+
return __generator(this, function (_a) {
|
|
6214
|
+
httpParams = new i1.HttpParams();
|
|
6215
|
+
httpParams.set('file_type', format);
|
|
6216
|
+
if (isChess) {
|
|
6217
|
+
httpParams.set('isChess', isChess);
|
|
6218
|
+
}
|
|
6219
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament/" + tournamentId + "/table_file/", {
|
|
6220
|
+
params: httpParams,
|
|
6221
|
+
responseType: 'blob'
|
|
6222
|
+
}).toPromise()];
|
|
6223
|
+
});
|
|
6224
|
+
});
|
|
6225
|
+
};
|
|
6210
6226
|
TournamentApi.prototype.getBasketballStatisticLeaders = function (filters) {
|
|
6211
6227
|
return __awaiter(this, void 0, void 0, function () {
|
|
6212
6228
|
var params;
|