@mtgame/core 0.2.16 → 0.2.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.
@@ -1301,6 +1301,7 @@
1301
1301
  city: 'city',
1302
1302
  gender: 'gender',
1303
1303
  is_active: 'isActive',
1304
+ unique_code: 'uniqueCode',
1304
1305
  },
1305
1306
  relation: {
1306
1307
  birthDate: DateField,
@@ -9034,6 +9035,57 @@
9034
9035
  enumerable: false,
9035
9036
  configurable: true
9036
9037
  });
9038
+ Object.defineProperty(RugbyGameStatistic.prototype, "conversionKicks", {
9039
+ get: function () {
9040
+ return (this.conversionGoals || 0) + (this.conversionMisses || 0);
9041
+ },
9042
+ enumerable: false,
9043
+ configurable: true
9044
+ });
9045
+ Object.defineProperty(RugbyGameStatistic.prototype, "conversionGoalsPercent", {
9046
+ get: function () {
9047
+ if (!this.conversionKicks) {
9048
+ return 0;
9049
+ }
9050
+ return Math.floor(1000 * this.conversionGoals / this.conversionKicks) / 10;
9051
+ },
9052
+ enumerable: false,
9053
+ configurable: true
9054
+ });
9055
+ Object.defineProperty(RugbyGameStatistic.prototype, "penaltyKicksOnGoal", {
9056
+ get: function () {
9057
+ return (this.penaltyGoals || 0) + (this.penaltyMisses || 0);
9058
+ },
9059
+ enumerable: false,
9060
+ configurable: true
9061
+ });
9062
+ Object.defineProperty(RugbyGameStatistic.prototype, "penaltyGoalsPercent", {
9063
+ get: function () {
9064
+ if (!this.penaltyKicksOnGoal) {
9065
+ return 0;
9066
+ }
9067
+ return Math.floor(1000 * this.penaltyGoals / this.penaltyKicksOnGoal) / 10;
9068
+ },
9069
+ enumerable: false,
9070
+ configurable: true
9071
+ });
9072
+ Object.defineProperty(RugbyGameStatistic.prototype, "dropGoalKicks", {
9073
+ get: function () {
9074
+ return (this.dropGoals || 0) + (this.dropGoalMisses || 0);
9075
+ },
9076
+ enumerable: false,
9077
+ configurable: true
9078
+ });
9079
+ Object.defineProperty(RugbyGameStatistic.prototype, "dropGoalsPercent", {
9080
+ get: function () {
9081
+ if (!this.dropGoalKicks) {
9082
+ return 0;
9083
+ }
9084
+ return Math.floor(1000 * this.dropGoals / this.dropGoalKicks) / 10;
9085
+ },
9086
+ enumerable: false,
9087
+ configurable: true
9088
+ });
9037
9089
  Object.defineProperty(RugbyGameStatistic.prototype, "totalGoals", {
9038
9090
  get: function () {
9039
9091
  return (this.conversionGoals || 0) + (this.dropGoals || 0) + (this.penaltyGoals || 0);
@@ -9075,16 +9127,10 @@
9075
9127
  penalty_tries: 'penaltyTries',
9076
9128
  conversion_goals: 'conversionGoals',
9077
9129
  conversion_misses: 'conversionMisses',
9078
- conversion_kicks: 'conversionKicks',
9079
- conversion_goals_percent: 'conversionGoalsPercent',
9080
9130
  penalty_misses: 'penaltyMisses',
9081
9131
  penalty_goals: 'penaltyGoals',
9082
- penalty_kicks_on_goal: 'penaltyKicksOnGoal',
9083
- penalty_goals_percent: 'penaltyGoalsPercent',
9084
9132
  drop_goals: 'dropGoals',
9085
9133
  drop_goal_misses: 'dropGoalMisses',
9086
- drop_goal_kicks: 'dropGoalKicks',
9087
- drop_goals_percent: 'dropGoalsPercent',
9088
9134
  free_kicks: 'freeKicks',
9089
9135
  yellow_cards: 'yellowCards',
9090
9136
  red_cards: 'redCards',
@@ -12912,8 +12958,8 @@
12912
12958
  _a$a[exports.WaterpoloGameLogTypes.assist] = 'Голевая передача',
12913
12959
  _a$a[exports.WaterpoloGameLogTypes.block_shot] = 'Блокировка броска',
12914
12960
  _a$a[exports.WaterpoloGameLogTypes.minor_penalty] = 'Удаление на 20 сек.',
12915
- _a$a[exports.WaterpoloGameLogTypes.major_penalty] = 'Удаление + 4 мин. штраф',
12916
- _a$a[exports.WaterpoloGameLogTypes.match_penalty] = 'Удаление до конца матча',
12961
+ _a$a[exports.WaterpoloGameLogTypes.major_penalty] = 'Удаление + 20 сек. штраф',
12962
+ _a$a[exports.WaterpoloGameLogTypes.match_penalty] = 'Удаление + 4 мин. штраф',
12917
12963
  _a$a[exports.WaterpoloGameLogTypes.foul] = 'Фол',
12918
12964
  _a$a[exports.WaterpoloGameLogTypes.penalty_foul] = 'Фол пенальти',
12919
12965
  _a$a[exports.WaterpoloGameLogTypes.attack_foul] = 'Фол в нападении',