@mtgame/core 0.2.12 → 0.2.14
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 +12 -3
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/volleyball-game-api.js +9 -1
- package/esm2015/models/waterpolo-game-statistic.js +3 -4
- package/fesm2015/mtgame-core.js +10 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -14,5 +14,6 @@ export declare class VolleyballGameApi extends GameBaseApi {
|
|
|
14
14
|
getUserStatistic(gameId: number): Promise<VolleyballGameStatistic[]>;
|
|
15
15
|
getLogs(gameId: number): Promise<VolleyballGameLog[]>;
|
|
16
16
|
downloadProtocolLight(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
|
+
downloadProtocolAdvanced(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
17
18
|
downloadProtocol(gameId: number, format: 'pdf' | 'xlsx' | 'html'): Promise<any>;
|
|
18
19
|
}
|
|
@@ -11261,6 +11261,16 @@
|
|
|
11261
11261
|
});
|
|
11262
11262
|
});
|
|
11263
11263
|
};
|
|
11264
|
+
VolleyballGameApi.prototype.downloadProtocolAdvanced = function (gameId, format) {
|
|
11265
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11266
|
+
return __generator(this, function (_a) {
|
|
11267
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_volleyball_game/" + gameId + "/game_protocol_advanced/", {
|
|
11268
|
+
params: new i1.HttpParams().set('file_type', format),
|
|
11269
|
+
responseType: 'blob'
|
|
11270
|
+
}).toPromise()];
|
|
11271
|
+
});
|
|
11272
|
+
});
|
|
11273
|
+
};
|
|
11264
11274
|
VolleyballGameApi.prototype.downloadProtocol = function (gameId, format) {
|
|
11265
11275
|
return __awaiter(this, void 0, void 0, function () {
|
|
11266
11276
|
return __generator(this, function (_a) {
|
|
@@ -11828,7 +11838,7 @@
|
|
|
11828
11838
|
});
|
|
11829
11839
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalShots", {
|
|
11830
11840
|
get: function () {
|
|
11831
|
-
return this.shots +
|
|
11841
|
+
return this.shots + this.shootoutShots;
|
|
11832
11842
|
},
|
|
11833
11843
|
enumerable: false,
|
|
11834
11844
|
configurable: true
|
|
@@ -11933,8 +11943,7 @@
|
|
|
11933
11943
|
});
|
|
11934
11944
|
Object.defineProperty(WaterpoloGameStatistic.prototype, "totalFouls", {
|
|
11935
11945
|
get: function () {
|
|
11936
|
-
return (this.fouls || 0) + (this.
|
|
11937
|
-
(this.minorPenalties || 0) + (this.majorPenalties || 0) + (this.matchPenalties || 0);
|
|
11946
|
+
return (this.fouls || 0) + (this.personalFouls || 0);
|
|
11938
11947
|
},
|
|
11939
11948
|
enumerable: false,
|
|
11940
11949
|
configurable: true
|