@mtgame/core 0.1.31 → 0.1.33
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 +64 -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/localization/hockey-game-log-types.js +3 -1
- package/esm2015/models/football-statistic.js +28 -1
- package/esm2015/models/hockey-game-log.js +4 -2
- package/esm2015/models/hockey-game-statistic.js +3 -1
- package/esm2015/models/hockey-statistic.js +3 -1
- package/esm5/localization/hockey-game-log-types.js +3 -1
- package/esm5/models/football-statistic.js +56 -1
- package/esm5/models/hockey-game-log.js +4 -2
- package/esm5/models/hockey-game-statistic.js +3 -1
- package/esm5/models/hockey-statistic.js +3 -1
- package/fesm2015/mtgame-core.js +36 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +64 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/hockey-game-log-types.d.ts +2 -0
- package/models/football-statistic.d.ts +7 -0
- package/models/hockey-game-log.d.ts +3 -1
- package/models/hockey-game-statistic.d.ts +2 -0
- package/models/hockey-statistic.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3286,6 +3286,8 @@
|
|
|
3286
3286
|
HockeyGameLogTypes[HockeyGameLogTypes["timeout"] = 20] = "timeout";
|
|
3287
3287
|
HockeyGameLogTypes[HockeyGameLogTypes["penalty_start"] = 21] = "penalty_start";
|
|
3288
3288
|
HockeyGameLogTypes[HockeyGameLogTypes["penalty_end"] = 22] = "penalty_end";
|
|
3289
|
+
HockeyGameLogTypes[HockeyGameLogTypes["after_game_shootout_attempt"] = 23] = "after_game_shootout_attempt";
|
|
3290
|
+
HockeyGameLogTypes[HockeyGameLogTypes["after_game_shootout_goal"] = 24] = "after_game_shootout_goal";
|
|
3289
3291
|
})(exports.HockeyGameLogTypes || (exports.HockeyGameLogTypes = {}));
|
|
3290
3292
|
|
|
3291
3293
|
(function (HockeyAdvantageTypes) {
|
|
@@ -3332,7 +3334,7 @@
|
|
|
3332
3334
|
configurable: true
|
|
3333
3335
|
});
|
|
3334
3336
|
HockeyGameLog.prototype.isScoreType = function () {
|
|
3335
|
-
return [exports.HockeyGameLogTypes.goal, exports.HockeyGameLogTypes.shootout_goal].indexOf(this.logType) > -1;
|
|
3337
|
+
return [exports.HockeyGameLogTypes.goal, exports.HockeyGameLogTypes.shootout_goal, exports.HockeyGameLogTypes.after_game_shootout_goal].indexOf(this.logType) > -1;
|
|
3336
3338
|
};
|
|
3337
3339
|
HockeyGameLog.prototype.isPenaltyType = function () {
|
|
3338
3340
|
return [
|
|
@@ -3534,6 +3536,8 @@
|
|
|
3534
3536
|
sh_assists: 'shAssists',
|
|
3535
3537
|
shootout_attempts: 'shootoutAttempts',
|
|
3536
3538
|
shootout_goals: 'shootoutGoals',
|
|
3539
|
+
after_game_shootout_attempts: 'afterGameShootoutAttempts',
|
|
3540
|
+
after_game_shootout_goals: 'afterGameShootoutGoals',
|
|
3537
3541
|
block_shots: 'blockShots',
|
|
3538
3542
|
face_off_losses: 'faceOffLosses',
|
|
3539
3543
|
face_off_wins: 'faceOffWins',
|
|
@@ -3647,6 +3651,8 @@
|
|
|
3647
3651
|
sh_assists: 'shAssists',
|
|
3648
3652
|
shootout_attempts: 'shootoutAttempts',
|
|
3649
3653
|
shootout_goals: 'shootoutGoals',
|
|
3654
|
+
after_game_shootout_attempts: 'afterGameShootoutAttempts',
|
|
3655
|
+
after_game_shootout_goals: 'afterGameShootoutGoals',
|
|
3650
3656
|
block_shots: 'blockShots',
|
|
3651
3657
|
face_off_losses: 'faceOffLosses',
|
|
3652
3658
|
face_off_wins: 'faceOffWins',
|
|
@@ -4105,6 +4111,61 @@
|
|
|
4105
4111
|
enumerable: true,
|
|
4106
4112
|
configurable: true
|
|
4107
4113
|
});
|
|
4114
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamGamesCount", {
|
|
4115
|
+
get: function () {
|
|
4116
|
+
return this.tournamentTeam && this.tournamentTeam.gamesCount;
|
|
4117
|
+
},
|
|
4118
|
+
enumerable: true,
|
|
4119
|
+
configurable: true
|
|
4120
|
+
});
|
|
4121
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamWonGamesCount", {
|
|
4122
|
+
get: function () {
|
|
4123
|
+
return this.tournamentTeam && this.tournamentTeam.wonGamesCount;
|
|
4124
|
+
},
|
|
4125
|
+
enumerable: true,
|
|
4126
|
+
configurable: true
|
|
4127
|
+
});
|
|
4128
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamDrawGamesCount", {
|
|
4129
|
+
get: function () {
|
|
4130
|
+
return this.tournamentTeam && this.tournamentTeam.drawGamesCount;
|
|
4131
|
+
},
|
|
4132
|
+
enumerable: true,
|
|
4133
|
+
configurable: true
|
|
4134
|
+
});
|
|
4135
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamLostGamesCount", {
|
|
4136
|
+
get: function () {
|
|
4137
|
+
if (!this.tournamentTeam) {
|
|
4138
|
+
return null;
|
|
4139
|
+
}
|
|
4140
|
+
return this.tournamentTeam.gamesCount - this.tournamentTeam.drawGamesCount - this.tournamentTeam.wonGamesCount;
|
|
4141
|
+
},
|
|
4142
|
+
enumerable: true,
|
|
4143
|
+
configurable: true
|
|
4144
|
+
});
|
|
4145
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamScoreSum", {
|
|
4146
|
+
get: function () {
|
|
4147
|
+
return this.tournamentTeam && this.tournamentTeam.scoreSum;
|
|
4148
|
+
},
|
|
4149
|
+
enumerable: true,
|
|
4150
|
+
configurable: true
|
|
4151
|
+
});
|
|
4152
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamMissedSum", {
|
|
4153
|
+
get: function () {
|
|
4154
|
+
return this.tournamentTeam && this.tournamentTeam.missedSum;
|
|
4155
|
+
},
|
|
4156
|
+
enumerable: true,
|
|
4157
|
+
configurable: true
|
|
4158
|
+
});
|
|
4159
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamPlusMinus", {
|
|
4160
|
+
get: function () {
|
|
4161
|
+
if (!this.tournamentTeam) {
|
|
4162
|
+
return null;
|
|
4163
|
+
}
|
|
4164
|
+
return this.tournamentTeam.scoreSum - this.tournamentTeam.missedSum;
|
|
4165
|
+
},
|
|
4166
|
+
enumerable: true,
|
|
4167
|
+
configurable: true
|
|
4168
|
+
});
|
|
4108
4169
|
FootballStatistic.toFront = function (data) { };
|
|
4109
4170
|
FootballStatistic.toBack = function (data) { };
|
|
4110
4171
|
__decorate([
|
|
@@ -8539,6 +8600,8 @@
|
|
|
8539
8600
|
_a$2[exports.HockeyGameLogTypes.goal] = 'Гол',
|
|
8540
8601
|
_a$2[exports.HockeyGameLogTypes.shootout_attempt] = 'Булит промах',
|
|
8541
8602
|
_a$2[exports.HockeyGameLogTypes.shootout_goal] = 'Булит гол',
|
|
8603
|
+
_a$2[exports.HockeyGameLogTypes.after_game_shootout_attempt] = 'Булит промах',
|
|
8604
|
+
_a$2[exports.HockeyGameLogTypes.after_game_shootout_goal] = 'Булит гол',
|
|
8542
8605
|
_a$2[exports.HockeyGameLogTypes.assist] = 'Передача',
|
|
8543
8606
|
_a$2[exports.HockeyGameLogTypes.block_shot] = 'Блокировка броска',
|
|
8544
8607
|
_a$2[exports.HockeyGameLogTypes.minor_penalty] = 'Малый штраф',
|