@mtgame/core 0.0.57 → 0.0.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.
- package/api/basketball-game-api.d.ts +2 -2
- package/api/football-game-api.d.ts +2 -2
- package/api/hockey-game-api.d.ts +2 -2
- package/api/volleyball-game-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +10 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/basketball-game-api.js +1 -1
- package/esm2015/api/football-game-api.js +1 -1
- package/esm2015/api/hockey-game-api.js +1 -1
- package/esm2015/api/volleyball-game-api.js +10 -2
- package/esm5/api/basketball-game-api.js +1 -1
- package/esm5/api/football-game-api.js +1 -1
- package/esm5/api/hockey-game-api.js +1 -1
- package/esm5/api/volleyball-game-api.js +12 -2
- package/fesm2015/mtgame-core.js +8 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +10 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,6 @@ export declare class BasketballGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<BasketballGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<BasketballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<BasketballGameLog[]>;
|
|
16
|
-
downloadProtocol(gameId: number, fileType: 'xlsx' | '
|
|
17
|
-
downloadFibaProtocol(gameId: number, fileType: 'xlsx' | '
|
|
16
|
+
downloadProtocol(gameId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadFibaProtocol(gameId: number, fileType: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
18
18
|
}
|
|
@@ -13,6 +13,6 @@ export declare class FootballGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<FootballGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<FootballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<FootballGameLog[]>;
|
|
16
|
-
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx'): Promise<any>;
|
|
17
|
-
downloadApplication(gameId: number, format: 'pdf' | 'xlsx', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
18
18
|
}
|
package/api/hockey-game-api.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export declare class HockeyGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<HockeyGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<HockeyGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<HockeyGameLog[]>;
|
|
16
|
-
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx'): Promise<any>;
|
|
17
|
-
downloadApplication(gameId: number, format: 'pdf' | 'xlsx', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
18
18
|
}
|
|
@@ -13,4 +13,5 @@ export declare class VolleyballGameApi extends GameBaseApi {
|
|
|
13
13
|
getTeamStatistic(gameId: number): Promise<VolleyballGameTeamStatistic>;
|
|
14
14
|
getUserStatistic(gameId: number): Promise<VolleyballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<VolleyballGameLog[]>;
|
|
16
|
+
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
16
17
|
}
|
|
@@ -7298,6 +7298,16 @@
|
|
|
7298
7298
|
});
|
|
7299
7299
|
});
|
|
7300
7300
|
};
|
|
7301
|
+
VolleyballGameApi.prototype.downloadProtocol = function (gameId, format) {
|
|
7302
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7303
|
+
return __generator(this, function (_a) {
|
|
7304
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_volleyball_game/" + gameId + "/game_protocol/", {
|
|
7305
|
+
params: new http.HttpParams().set('file_type', format),
|
|
7306
|
+
responseType: 'blob'
|
|
7307
|
+
}).toPromise()];
|
|
7308
|
+
});
|
|
7309
|
+
});
|
|
7310
|
+
};
|
|
7301
7311
|
VolleyballGameApi.ctorParameters = function () { return [
|
|
7302
7312
|
{ type: http.HttpClient },
|
|
7303
7313
|
{ type: ConfigService }
|