@mtgame/core 0.1.14 → 0.1.16
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 +11 -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/esm2015/models/volleyball-game-log.js +2 -1
- package/esm5/api/volleyball-game-api.js +11 -1
- package/esm5/models/volleyball-game-log.js +2 -1
- package/fesm2015/mtgame-core.js +9 -0
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +11 -0
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/volleyball-game-log.d.ts +1 -0
- 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
|
}
|
|
@@ -8229,6 +8229,7 @@
|
|
|
8229
8229
|
position: 'position',
|
|
8230
8230
|
team_id: 'teamId',
|
|
8231
8231
|
datetime: 'datetime',
|
|
8232
|
+
is_highlight: 'isHighlight',
|
|
8232
8233
|
},
|
|
8233
8234
|
relation: {
|
|
8234
8235
|
logType: enumField(exports.VolleyballGameLogType),
|
|
@@ -8275,6 +8276,16 @@
|
|
|
8275
8276
|
});
|
|
8276
8277
|
});
|
|
8277
8278
|
};
|
|
8279
|
+
VolleyballGameApi.prototype.downloadProtocolLight = function (gameId, format) {
|
|
8280
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8281
|
+
return __generator(this, function (_a) {
|
|
8282
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_volleyball_game/" + gameId + "/game_protocol_light/", {
|
|
8283
|
+
params: new http.HttpParams().set('file_type', format),
|
|
8284
|
+
responseType: 'blob'
|
|
8285
|
+
}).toPromise()];
|
|
8286
|
+
});
|
|
8287
|
+
});
|
|
8288
|
+
};
|
|
8278
8289
|
VolleyballGameApi.prototype.downloadProtocol = function (gameId, format) {
|
|
8279
8290
|
return __awaiter(this, void 0, void 0, function () {
|
|
8280
8291
|
return __generator(this, function (_a) {
|