@mtgame/core 0.1.16 → 0.1.18
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/bundles/mtgame-core.umd.js +22 -1
- 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/media-api.js +2 -2
- package/esm2015/models/hockey-game-config.js +10 -1
- package/esm5/api/media-api.js +2 -2
- package/esm5/models/hockey-game-config.js +22 -1
- package/fesm2015/mtgame-core.js +10 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +22 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/hockey-game-config.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1679,6 +1679,27 @@
|
|
|
1679
1679
|
}
|
|
1680
1680
|
HockeyGameConfig.toFront = function (data) { };
|
|
1681
1681
|
HockeyGameConfig.toBack = function (data) { };
|
|
1682
|
+
Object.defineProperty(HockeyGameConfig.prototype, "overtimePeriod", {
|
|
1683
|
+
get: function () {
|
|
1684
|
+
return this.periodsCount + 1;
|
|
1685
|
+
},
|
|
1686
|
+
enumerable: true,
|
|
1687
|
+
configurable: true
|
|
1688
|
+
});
|
|
1689
|
+
Object.defineProperty(HockeyGameConfig.prototype, "bullitsPeriod", {
|
|
1690
|
+
get: function () {
|
|
1691
|
+
return this.periodsCount + 2;
|
|
1692
|
+
},
|
|
1693
|
+
enumerable: true,
|
|
1694
|
+
configurable: true
|
|
1695
|
+
});
|
|
1696
|
+
Object.defineProperty(HockeyGameConfig.prototype, "playoffBullitsPeriod", {
|
|
1697
|
+
get: function () {
|
|
1698
|
+
return this.periodsCount + 3;
|
|
1699
|
+
},
|
|
1700
|
+
enumerable: true,
|
|
1701
|
+
configurable: true
|
|
1702
|
+
});
|
|
1682
1703
|
__decorate([
|
|
1683
1704
|
ToFrontHook
|
|
1684
1705
|
], HockeyGameConfig, "toFront", null);
|
|
@@ -5893,7 +5914,7 @@
|
|
|
5893
5914
|
MediaApi.prototype.getGameMedia = function (gameId) {
|
|
5894
5915
|
return __awaiter(this, void 0, void 0, function () {
|
|
5895
5916
|
return __generator(this, function (_a) {
|
|
5896
|
-
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_game/" + gameId + "/media
|
|
5917
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_game/" + gameId + "/media/?size=1000").pipe(operators.map(function (result) { return MediaItem.toFront(result); })).toPromise()];
|
|
5897
5918
|
});
|
|
5898
5919
|
});
|
|
5899
5920
|
};
|