@mtgame/core 0.0.35 → 0.0.37
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 +1 -1
- package/bundles/mtgame-core.umd.js +3 -2
- 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 +3 -3
- package/esm2015/models/hockey-game-log.js +2 -1
- package/esm5/api/basketball-game-api.js +3 -3
- package/esm5/models/hockey-game-log.js +2 -1
- package/fesm2015/mtgame-core.js +3 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +3 -2
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/hockey-game-log.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -14,5 +14,5 @@ export declare class BasketballGameApi {
|
|
|
14
14
|
getTeamStatistic(gameId: number): Promise<BasketballGameTeamStatistic>;
|
|
15
15
|
getUserStatistic(gameId: number): Promise<BasketballGameStatistic[]>;
|
|
16
16
|
getLogs(gameId: number): Promise<BasketballGameLog[]>;
|
|
17
|
-
downloadProtocol(gameId: number): Promise<any>;
|
|
17
|
+
downloadProtocol(gameId: number, fileType: 'xlsx' | 'pdf'): Promise<any>;
|
|
18
18
|
}
|
|
@@ -2389,10 +2389,10 @@
|
|
|
2389
2389
|
});
|
|
2390
2390
|
});
|
|
2391
2391
|
};
|
|
2392
|
-
BasketballGameApi.prototype.downloadProtocol = function (gameId) {
|
|
2392
|
+
BasketballGameApi.prototype.downloadProtocol = function (gameId, fileType) {
|
|
2393
2393
|
return __awaiter(this, void 0, void 0, function () {
|
|
2394
2394
|
return __generator(this, function (_a) {
|
|
2395
|
-
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_basketball_game/" + gameId + "/game_protocol
|
|
2395
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_basketball_game/" + gameId + "/game_protocol/?file_type=" + fileType, { responseType: 'blob' })
|
|
2396
2396
|
.toPromise()];
|
|
2397
2397
|
});
|
|
2398
2398
|
});
|
|
@@ -2633,6 +2633,7 @@
|
|
|
2633
2633
|
is_goalie: 'isGoalie',
|
|
2634
2634
|
penalty_type: 'penaltyType',
|
|
2635
2635
|
penalized_game_user_id: 'penalizedGameUserId',
|
|
2636
|
+
mutual_penalty: 'mutualPenalty',
|
|
2636
2637
|
},
|
|
2637
2638
|
relation: {
|
|
2638
2639
|
datetime: DateTimeField,
|