@mtgame/core 0.2.17 → 0.2.19
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 +53 -6
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/rugby-game-statistic.js +28 -7
- package/esm2015/models/user.js +3 -1
- package/fesm2015/mtgame-core.js +29 -6
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/rugby-game-statistic.d.ts +6 -6
- package/models/user.d.ts +2 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1301,6 +1301,8 @@
|
|
|
1301
1301
|
city: 'city',
|
|
1302
1302
|
gender: 'gender',
|
|
1303
1303
|
is_active: 'isActive',
|
|
1304
|
+
unique_code: 'uniqueCode',
|
|
1305
|
+
created_by_league_id: 'createdByLeagueId',
|
|
1304
1306
|
},
|
|
1305
1307
|
relation: {
|
|
1306
1308
|
birthDate: DateField,
|
|
@@ -9034,6 +9036,57 @@
|
|
|
9034
9036
|
enumerable: false,
|
|
9035
9037
|
configurable: true
|
|
9036
9038
|
});
|
|
9039
|
+
Object.defineProperty(RugbyGameStatistic.prototype, "conversionKicks", {
|
|
9040
|
+
get: function () {
|
|
9041
|
+
return (this.conversionGoals || 0) + (this.conversionMisses || 0);
|
|
9042
|
+
},
|
|
9043
|
+
enumerable: false,
|
|
9044
|
+
configurable: true
|
|
9045
|
+
});
|
|
9046
|
+
Object.defineProperty(RugbyGameStatistic.prototype, "conversionGoalsPercent", {
|
|
9047
|
+
get: function () {
|
|
9048
|
+
if (!this.conversionKicks) {
|
|
9049
|
+
return 0;
|
|
9050
|
+
}
|
|
9051
|
+
return Math.floor(1000 * this.conversionGoals / this.conversionKicks) / 10;
|
|
9052
|
+
},
|
|
9053
|
+
enumerable: false,
|
|
9054
|
+
configurable: true
|
|
9055
|
+
});
|
|
9056
|
+
Object.defineProperty(RugbyGameStatistic.prototype, "penaltyKicksOnGoal", {
|
|
9057
|
+
get: function () {
|
|
9058
|
+
return (this.penaltyGoals || 0) + (this.penaltyMisses || 0);
|
|
9059
|
+
},
|
|
9060
|
+
enumerable: false,
|
|
9061
|
+
configurable: true
|
|
9062
|
+
});
|
|
9063
|
+
Object.defineProperty(RugbyGameStatistic.prototype, "penaltyGoalsPercent", {
|
|
9064
|
+
get: function () {
|
|
9065
|
+
if (!this.penaltyKicksOnGoal) {
|
|
9066
|
+
return 0;
|
|
9067
|
+
}
|
|
9068
|
+
return Math.floor(1000 * this.penaltyGoals / this.penaltyKicksOnGoal) / 10;
|
|
9069
|
+
},
|
|
9070
|
+
enumerable: false,
|
|
9071
|
+
configurable: true
|
|
9072
|
+
});
|
|
9073
|
+
Object.defineProperty(RugbyGameStatistic.prototype, "dropGoalKicks", {
|
|
9074
|
+
get: function () {
|
|
9075
|
+
return (this.dropGoals || 0) + (this.dropGoalMisses || 0);
|
|
9076
|
+
},
|
|
9077
|
+
enumerable: false,
|
|
9078
|
+
configurable: true
|
|
9079
|
+
});
|
|
9080
|
+
Object.defineProperty(RugbyGameStatistic.prototype, "dropGoalsPercent", {
|
|
9081
|
+
get: function () {
|
|
9082
|
+
if (!this.dropGoalKicks) {
|
|
9083
|
+
return 0;
|
|
9084
|
+
}
|
|
9085
|
+
return Math.floor(1000 * this.dropGoals / this.dropGoalKicks) / 10;
|
|
9086
|
+
},
|
|
9087
|
+
enumerable: false,
|
|
9088
|
+
configurable: true
|
|
9089
|
+
});
|
|
9037
9090
|
Object.defineProperty(RugbyGameStatistic.prototype, "totalGoals", {
|
|
9038
9091
|
get: function () {
|
|
9039
9092
|
return (this.conversionGoals || 0) + (this.dropGoals || 0) + (this.penaltyGoals || 0);
|
|
@@ -9075,16 +9128,10 @@
|
|
|
9075
9128
|
penalty_tries: 'penaltyTries',
|
|
9076
9129
|
conversion_goals: 'conversionGoals',
|
|
9077
9130
|
conversion_misses: 'conversionMisses',
|
|
9078
|
-
conversion_kicks: 'conversionKicks',
|
|
9079
|
-
conversion_goals_percent: 'conversionGoalsPercent',
|
|
9080
9131
|
penalty_misses: 'penaltyMisses',
|
|
9081
9132
|
penalty_goals: 'penaltyGoals',
|
|
9082
|
-
penalty_kicks_on_goal: 'penaltyKicksOnGoal',
|
|
9083
|
-
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
9084
9133
|
drop_goals: 'dropGoals',
|
|
9085
9134
|
drop_goal_misses: 'dropGoalMisses',
|
|
9086
|
-
drop_goal_kicks: 'dropGoalKicks',
|
|
9087
|
-
drop_goals_percent: 'dropGoalsPercent',
|
|
9088
9135
|
free_kicks: 'freeKicks',
|
|
9089
9136
|
yellow_cards: 'yellowCards',
|
|
9090
9137
|
red_cards: 'redCards',
|