@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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -1466,6 +1466,27 @@ var HockeyGameConfig = /** @class */ (function (_super) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
HockeyGameConfig.toFront = function (data) { };
|
|
1468
1468
|
HockeyGameConfig.toBack = function (data) { };
|
|
1469
|
+
Object.defineProperty(HockeyGameConfig.prototype, "overtimePeriod", {
|
|
1470
|
+
get: function () {
|
|
1471
|
+
return this.periodsCount + 1;
|
|
1472
|
+
},
|
|
1473
|
+
enumerable: true,
|
|
1474
|
+
configurable: true
|
|
1475
|
+
});
|
|
1476
|
+
Object.defineProperty(HockeyGameConfig.prototype, "bullitsPeriod", {
|
|
1477
|
+
get: function () {
|
|
1478
|
+
return this.periodsCount + 2;
|
|
1479
|
+
},
|
|
1480
|
+
enumerable: true,
|
|
1481
|
+
configurable: true
|
|
1482
|
+
});
|
|
1483
|
+
Object.defineProperty(HockeyGameConfig.prototype, "playoffBullitsPeriod", {
|
|
1484
|
+
get: function () {
|
|
1485
|
+
return this.periodsCount + 3;
|
|
1486
|
+
},
|
|
1487
|
+
enumerable: true,
|
|
1488
|
+
configurable: true
|
|
1489
|
+
});
|
|
1469
1490
|
__decorate([
|
|
1470
1491
|
ToFrontHook
|
|
1471
1492
|
], HockeyGameConfig, "toFront", null);
|
|
@@ -5680,7 +5701,7 @@ var MediaApi = /** @class */ (function () {
|
|
|
5680
5701
|
MediaApi.prototype.getGameMedia = function (gameId) {
|
|
5681
5702
|
return __awaiter(this, void 0, void 0, function () {
|
|
5682
5703
|
return __generator(this, function (_a) {
|
|
5683
|
-
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_game/" + gameId + "/media
|
|
5704
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_game/" + gameId + "/media/?size=1000").pipe(map(function (result) { return MediaItem.toFront(result); })).toPromise()];
|
|
5684
5705
|
});
|
|
5685
5706
|
});
|
|
5686
5707
|
};
|