@mtgame/core 0.1.89 → 0.1.91
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 +8 -3
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/basketball-game-log.js +3 -2
- package/esm2015/models/basketball-game-statistic.js +3 -2
- package/esm2015/models/basketball-statistic.js +3 -2
- package/esm2015/models/tournament-stage-team.js +2 -1
- package/esm2015/models/tournament-team.js +2 -1
- package/fesm2015/mtgame-core.js +8 -3
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/basketball-game-statistic.d.ts +1 -0
- package/models/basketball-statistic.d.ts +1 -0
- package/models/tournament-stage-team.d.ts +1 -0
- package/models/tournament-team.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -2762,6 +2762,7 @@
|
|
|
2762
2762
|
score_points_sum: 'scorePointsSum',
|
|
2763
2763
|
missed_points_sum: 'missedPointsSum',
|
|
2764
2764
|
points: 'points',
|
|
2765
|
+
mt_points: 'mtPoints',
|
|
2765
2766
|
users_count: 'usersCount',
|
|
2766
2767
|
games: 'games',
|
|
2767
2768
|
notifications_count: 'notificationsCount',
|
|
@@ -2978,7 +2979,7 @@
|
|
|
2978
2979
|
}
|
|
2979
2980
|
Object.defineProperty(BasketballStatistic.prototype, "totalFouls", {
|
|
2980
2981
|
get: function () {
|
|
2981
|
-
return this.personalFouls + this.technicalFouls + this.unsportsmanlikeFouls;
|
|
2982
|
+
return this.personalFouls + this.technicalFouls + this.unsportsmanlikeFouls + this.disqualificationFouls;
|
|
2982
2983
|
},
|
|
2983
2984
|
enumerable: false,
|
|
2984
2985
|
configurable: true
|
|
@@ -3090,6 +3091,7 @@
|
|
|
3090
3091
|
personal_fouls: 'personalFouls',
|
|
3091
3092
|
technical_fouls: 'technicalFouls',
|
|
3092
3093
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
3094
|
+
disqualification_fouls: 'disqualificationFouls',
|
|
3093
3095
|
game_time: 'gameTime',
|
|
3094
3096
|
newbie: 'newbie',
|
|
3095
3097
|
rank: 'rank',
|
|
@@ -3150,7 +3152,7 @@
|
|
|
3150
3152
|
BasketballGameStatistic.toBack = function (data) { };
|
|
3151
3153
|
Object.defineProperty(BasketballGameStatistic.prototype, "totalFouls", {
|
|
3152
3154
|
get: function () {
|
|
3153
|
-
return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0);
|
|
3155
|
+
return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0) + (this.disqualificationFouls || 0);
|
|
3154
3156
|
},
|
|
3155
3157
|
enumerable: false,
|
|
3156
3158
|
configurable: true
|
|
@@ -3233,6 +3235,7 @@
|
|
|
3233
3235
|
personal_fouls: 'personalFouls',
|
|
3234
3236
|
technical_fouls: 'technicalFouls',
|
|
3235
3237
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
3238
|
+
disqualification_fouls: 'disqualificationFouls',
|
|
3236
3239
|
updated_at: 'updatedAt',
|
|
3237
3240
|
},
|
|
3238
3241
|
relation: {
|
|
@@ -3353,7 +3356,8 @@
|
|
|
3353
3356
|
return [
|
|
3354
3357
|
exports.BasketballGameLogTypes.personal_foul,
|
|
3355
3358
|
exports.BasketballGameLogTypes.technical_foul,
|
|
3356
|
-
exports.BasketballGameLogTypes.unsportsmanlike_foul
|
|
3359
|
+
exports.BasketballGameLogTypes.unsportsmanlike_foul,
|
|
3360
|
+
exports.BasketballGameLogTypes.disqualification_foul,
|
|
3357
3361
|
].indexOf(this.logType) > -1;
|
|
3358
3362
|
};
|
|
3359
3363
|
BasketballGameLog.prototype.getScore = function () {
|
|
@@ -5668,6 +5672,7 @@
|
|
|
5668
5672
|
last_games_count: 'lastGamesCount',
|
|
5669
5673
|
last_games_won: 'lastGamesWon',
|
|
5670
5674
|
points: 'points',
|
|
5675
|
+
mt_points: 'mtPoints',
|
|
5671
5676
|
final_standing: 'finalStanding',
|
|
5672
5677
|
received_points: 'receivedPoints',
|
|
5673
5678
|
},
|