@mtgame/core 0.2.108 → 0.2.110
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 +80 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/game.js +70 -1
- package/esm2015/models/hockey-game-log.js +2 -1
- package/fesm2015/mtgame-core.js +68 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/game.d.ts +23 -0
- package/models/hockey-game-log.d.ts +2 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2576,6 +2576,26 @@
|
|
|
2576
2576
|
GameResultTypes[GameResultTypes["competitor_team_technical_defeat"] = 4] = "competitor_team_technical_defeat";
|
|
2577
2577
|
GameResultTypes[GameResultTypes["draw"] = 5] = "draw";
|
|
2578
2578
|
})(exports.GameResultTypes || (exports.GameResultTypes = {}));
|
|
2579
|
+
exports.GameAdditionalData = /** @class */ (function () {
|
|
2580
|
+
function GameAdditionalData() {
|
|
2581
|
+
}
|
|
2582
|
+
GameAdditionalData.toFront = function (data) { };
|
|
2583
|
+
GameAdditionalData.toBack = function (data) { };
|
|
2584
|
+
return GameAdditionalData;
|
|
2585
|
+
}());
|
|
2586
|
+
__decorate([
|
|
2587
|
+
ToFrontHook
|
|
2588
|
+
], exports.GameAdditionalData, "toFront", null);
|
|
2589
|
+
__decorate([
|
|
2590
|
+
ToBackHook
|
|
2591
|
+
], exports.GameAdditionalData, "toBack", null);
|
|
2592
|
+
exports.GameAdditionalData = __decorate([
|
|
2593
|
+
ModelInstance({
|
|
2594
|
+
mappingFields: {
|
|
2595
|
+
mhl_carousel: 'mhlCarousel',
|
|
2596
|
+
}
|
|
2597
|
+
})
|
|
2598
|
+
], exports.GameAdditionalData);
|
|
2579
2599
|
exports.GameTeamAdditionalData = /** @class */ (function () {
|
|
2580
2600
|
function GameTeamAdditionalData() {
|
|
2581
2601
|
}
|
|
@@ -2626,6 +2646,61 @@
|
|
|
2626
2646
|
}
|
|
2627
2647
|
})
|
|
2628
2648
|
], exports.TournamentTeamShort);
|
|
2649
|
+
exports.MhlCarouselTeam = /** @class */ (function (_super) {
|
|
2650
|
+
__extends(MhlCarouselTeam, _super);
|
|
2651
|
+
function MhlCarouselTeam() {
|
|
2652
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2653
|
+
}
|
|
2654
|
+
MhlCarouselTeam.toFront = function (data) { };
|
|
2655
|
+
MhlCarouselTeam.toBack = function (data) { };
|
|
2656
|
+
return MhlCarouselTeam;
|
|
2657
|
+
}(BaseModel));
|
|
2658
|
+
__decorate([
|
|
2659
|
+
ToFrontHook
|
|
2660
|
+
], exports.MhlCarouselTeam, "toFront", null);
|
|
2661
|
+
__decorate([
|
|
2662
|
+
ToBackHook
|
|
2663
|
+
], exports.MhlCarouselTeam, "toBack", null);
|
|
2664
|
+
exports.MhlCarouselTeam = __decorate([
|
|
2665
|
+
ModelInstance({
|
|
2666
|
+
mappingFields: {
|
|
2667
|
+
team: 'team',
|
|
2668
|
+
tournament_team: 'tournamentTeam',
|
|
2669
|
+
score: 'score',
|
|
2670
|
+
score_by_period: 'scoreByPeriod',
|
|
2671
|
+
},
|
|
2672
|
+
relation: {
|
|
2673
|
+
team: exports.Team,
|
|
2674
|
+
tournamentTeam: exports.TournamentTeamShort,
|
|
2675
|
+
}
|
|
2676
|
+
})
|
|
2677
|
+
], exports.MhlCarouselTeam);
|
|
2678
|
+
exports.MhlCarousel = /** @class */ (function (_super) {
|
|
2679
|
+
__extends(MhlCarousel, _super);
|
|
2680
|
+
function MhlCarousel() {
|
|
2681
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2682
|
+
}
|
|
2683
|
+
MhlCarousel.toFront = function (data) { };
|
|
2684
|
+
MhlCarousel.toBack = function (data) { };
|
|
2685
|
+
return MhlCarousel;
|
|
2686
|
+
}(BaseModel));
|
|
2687
|
+
__decorate([
|
|
2688
|
+
ToFrontHook
|
|
2689
|
+
], exports.MhlCarousel, "toFront", null);
|
|
2690
|
+
__decorate([
|
|
2691
|
+
ToBackHook
|
|
2692
|
+
], exports.MhlCarousel, "toBack", null);
|
|
2693
|
+
exports.MhlCarousel = __decorate([
|
|
2694
|
+
ModelInstance({
|
|
2695
|
+
mappingFields: {
|
|
2696
|
+
game_ids: 'gameIds',
|
|
2697
|
+
teams: 'teams',
|
|
2698
|
+
},
|
|
2699
|
+
relation: {
|
|
2700
|
+
teams: listField(exports.MhlCarouselTeam),
|
|
2701
|
+
}
|
|
2702
|
+
})
|
|
2703
|
+
], exports.MhlCarousel);
|
|
2629
2704
|
exports.Game = /** @class */ (function (_super) {
|
|
2630
2705
|
__extends(Game, _super);
|
|
2631
2706
|
function Game() {
|
|
@@ -2896,6 +2971,8 @@
|
|
|
2896
2971
|
media: 'media',
|
|
2897
2972
|
tournament: 'tournament',
|
|
2898
2973
|
tournament_group: 'tournamentGroup',
|
|
2974
|
+
additional_data: 'additionalData',
|
|
2975
|
+
mhl_carousel: 'mhlCarousel',
|
|
2899
2976
|
},
|
|
2900
2977
|
relation: {
|
|
2901
2978
|
status: enumField(exports.GameStatuses),
|
|
@@ -2918,6 +2995,8 @@
|
|
|
2918
2995
|
media: listField(exports.MediaItem),
|
|
2919
2996
|
tournament: exports.Tournament,
|
|
2920
2997
|
tournamentGroup: exports.TournamentGroup,
|
|
2998
|
+
additionalData: exports.GameAdditionalData,
|
|
2999
|
+
mhlCarousel: exports.MhlCarousel,
|
|
2921
3000
|
}
|
|
2922
3001
|
})
|
|
2923
3002
|
], exports.Game);
|
|
@@ -4717,6 +4796,7 @@
|
|
|
4717
4796
|
HockeyGameLogTypes[HockeyGameLogTypes["loss"] = 28] = "loss";
|
|
4718
4797
|
HockeyGameLogTypes[HockeyGameLogTypes["sharp_pass"] = 29] = "sharp_pass";
|
|
4719
4798
|
HockeyGameLogTypes[HockeyGameLogTypes["qualified_for_playoff"] = 30] = "qualified_for_playoff";
|
|
4799
|
+
HockeyGameLogTypes[HockeyGameLogTypes["mhl_carousel_segment_end"] = 31] = "mhl_carousel_segment_end";
|
|
4720
4800
|
})(exports.HockeyGameLogTypes || (exports.HockeyGameLogTypes = {}));
|
|
4721
4801
|
exports.HockeyAdvantageTypes = void 0;
|
|
4722
4802
|
(function (HockeyAdvantageTypes) {
|