@mtgame/core 0.1.14 → 0.1.15
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/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/volleyball-game-api.js +9 -1
- package/esm5/api/volleyball-game-api.js +11 -1
- 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,5 +13,6 @@ 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
|
+
downloadProtocolLight(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
16
17
|
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
18
|
}
|
|
@@ -8275,6 +8275,16 @@
|
|
|
8275
8275
|
});
|
|
8276
8276
|
});
|
|
8277
8277
|
};
|
|
8278
|
+
VolleyballGameApi.prototype.downloadProtocolLight = function (gameId, format) {
|
|
8279
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8280
|
+
return __generator(this, function (_a) {
|
|
8281
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_volleyball_game/" + gameId + "/game_protocol_light/", {
|
|
8282
|
+
params: new http.HttpParams().set('file_type', format),
|
|
8283
|
+
responseType: 'blob'
|
|
8284
|
+
}).toPromise()];
|
|
8285
|
+
});
|
|
8286
|
+
});
|
|
8287
|
+
};
|
|
8278
8288
|
VolleyballGameApi.prototype.downloadProtocol = function (gameId, format) {
|
|
8279
8289
|
return __awaiter(this, void 0, void 0, function () {
|
|
8280
8290
|
return __generator(this, function (_a) {
|