@mtgame/core 0.2.118 → 0.2.120

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.
@@ -1697,6 +1697,13 @@
1697
1697
  TimerTypes[TimerTypes["backward"] = 1] = "backward";
1698
1698
  TimerTypes[TimerTypes["forward"] = 2] = "forward";
1699
1699
  })(exports.TimerTypes || (exports.TimerTypes = {}));
1700
+ exports.SubstituteManageTypes = void 0;
1701
+ (function (SubstituteManageTypes) {
1702
+ SubstituteManageTypes[SubstituteManageTypes["goalkeeper_only"] = 1] = "goalkeeper_only";
1703
+ SubstituteManageTypes[SubstituteManageTypes["additional_screen"] = 2] = "additional_screen";
1704
+ SubstituteManageTypes[SubstituteManageTypes["one_screen"] = 3] = "one_screen";
1705
+ SubstituteManageTypes[SubstituteManageTypes["split_screen"] = 4] = "split_screen";
1706
+ })(exports.SubstituteManageTypes || (exports.SubstituteManageTypes = {}));
1700
1707
  exports.TournamentSettings = /** @class */ (function (_super) {
1701
1708
  __extends(TournamentSettings, _super);
1702
1709
  function TournamentSettings() {
@@ -1774,6 +1781,7 @@
1774
1781
  with_result_table: 'withResultTable',
1775
1782
  free_substitute_enabled: 'freeSubstituteEnabled',
1776
1783
  substitute_manage_enabled: 'substituteManageEnabled',
1784
+ substitute_manage_mode: 'substituteManageMode',
1777
1785
  bonus_points_enabled: 'bonusPointsEnabled',
1778
1786
  minor_penalty_time: 'minorPenaltyTime',
1779
1787
  major_penalty_time: 'majorPenaltyTime',
@@ -1796,6 +1804,7 @@
1796
1804
  gameTimeType: enumField(exports.GameTimeTypes),
1797
1805
  overtimeType: enumField(exports.OvertimeTypes),
1798
1806
  timerType: enumField(exports.TimerTypes),
1807
+ substituteManageMode: enumField(exports.SubstituteManageTypes),
1799
1808
  }
1800
1809
  })
1801
1810
  ], exports.TournamentSettings);
@@ -5491,6 +5500,11 @@
5491
5500
  FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_miss"] = 27] = "end_game_penalty_miss";
5492
5501
  FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_goal"] = 28] = "end_game_penalty_goal";
5493
5502
  FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_save"] = 29] = "end_game_penalty_save";
5503
+ FootballGameLogTypes[FootballGameLogTypes["duel_won"] = 30] = "duel_won";
5504
+ FootballGameLogTypes[FootballGameLogTypes["duel_lost"] = 31] = "duel_lost";
5505
+ FootballGameLogTypes[FootballGameLogTypes["double_goal"] = 32] = "double_goal";
5506
+ FootballGameLogTypes[FootballGameLogTypes["super_game"] = 33] = "super_game";
5507
+ FootballGameLogTypes[FootballGameLogTypes["color_ball"] = 34] = "color_ball";
5494
5508
  })(exports.FootballGameLogTypes || (exports.FootballGameLogTypes = {}));
5495
5509
  exports.FootballGameLog = /** @class */ (function (_super) {
5496
5510
  __extends(FootballGameLog, _super);
@@ -5524,6 +5538,7 @@
5524
5538
  exports.FootballGameLogTypes.small_penalty_goal,
5525
5539
  exports.FootballGameLogTypes.auto_goal,
5526
5540
  exports.FootballGameLogTypes.end_game_penalty_goal,
5541
+ exports.FootballGameLogTypes.double_goal
5527
5542
  ].indexOf(this.logType) > -1;
5528
5543
  };
5529
5544
  FootballGameLog.prototype.isAfter = function (log) {
@@ -5589,7 +5604,10 @@
5589
5604
  });
5590
5605
  Object.defineProperty(FootballGameStatistic.prototype, "totalGoals", {
5591
5606
  get: function () {
5592
- return Math.floor(10 * ((this.goals || 0) + (this.penaltyGoals || 0) + (this.smallPenaltyGoals || 0))) / 10;
5607
+ return Math.floor(10 * ((this.goals || 0) +
5608
+ (this.penaltyGoals || 0) +
5609
+ (this.smallPenaltyGoals || 0) +
5610
+ ((this.doubleGoals || 0) * 2))) / 10;
5593
5611
  },
5594
5612
  enumerable: false,
5595
5613
  configurable: true
@@ -5650,7 +5668,7 @@
5650
5668
  });
5651
5669
  Object.defineProperty(FootballGameStatistic.prototype, "shotsAgainst", {
5652
5670
  get: function () {
5653
- return Math.floor(10 * ((this.saves || 0) + (this.goalsAgainst || 0))) / 10;
5671
+ return Math.floor(10 * ((this.saves || 0) + (this.goalsAgainst || 0) + (this.doubleGoalsAgainst || 0))) / 10;
5654
5672
  },
5655
5673
  enumerable: false,
5656
5674
  configurable: true
@@ -5671,7 +5689,11 @@
5671
5689
  });
5672
5690
  Object.defineProperty(FootballGameStatistic.prototype, "totalGoalsAgainst", {
5673
5691
  get: function () {
5674
- return Math.floor(10 * ((this.goalsAgainst || 0) + (this.penaltyGoalsAgainst || 0) + (this.smallPenaltyGoalsAgainst || 0) + (this.autoGoalsAgainst || 0))) / 10;
5692
+ return Math.floor(10 * ((this.goalsAgainst || 0) +
5693
+ (this.penaltyGoalsAgainst || 0) +
5694
+ (this.smallPenaltyGoalsAgainst || 0) +
5695
+ (this.autoGoalsAgainst || 0) +
5696
+ ((this.doubleGoalsAgainst || 0) * 2))) / 10;
5675
5697
  },
5676
5698
  enumerable: false,
5677
5699
  configurable: true
@@ -5775,7 +5797,11 @@
5775
5797
  auto_goals_against: 'autoGoalsAgainst',
5776
5798
  end_game_penalty_goals: 'endGamePenaltyGoals',
5777
5799
  end_game_penalty_misses: 'endGamePenaltyMisses',
5778
- end_game_penalty_saves: 'endGamePenaltySaves'
5800
+ end_game_penalty_saves: 'endGamePenaltySaves',
5801
+ duels_won: 'duelsWon',
5802
+ duels_lost: 'duelsLost',
5803
+ double_goals: 'doubleGoals',
5804
+ double_goals_against: 'doubleGoalsAgainst',
5779
5805
  },
5780
5806
  relation: {
5781
5807
  updatedAt: DateTimeField,
@@ -5969,7 +5995,11 @@
5969
5995
  end_game_penalty_misses: 'endGamePenaltyMisses',
5970
5996
  end_game_penalty_saves: 'endGamePenaltySaves',
5971
5997
  shutout: 'shutout',
5972
- shutout_percent: 'shutoutPercent'
5998
+ shutout_percent: 'shutoutPercent',
5999
+ duels_won: 'duelsWon',
6000
+ duels_lost: 'duelsLost',
6001
+ double_goals: 'doubleGoals',
6002
+ double_goals_against: 'doubleGoalsAgainst',
5973
6003
  },
5974
6004
  relation: {
5975
6005
  leaguePlayer: exports.LeaguePlayer,
@@ -14240,6 +14270,11 @@
14240
14270
  _a$d[exports.FootballGameLogTypes.end_game_penalty_goal] = 'Пенальти гол',
14241
14271
  _a$d[exports.FootballGameLogTypes.end_game_penalty_miss] = 'Пенальти промах',
14242
14272
  _a$d[exports.FootballGameLogTypes.end_game_penalty_save] = 'Отражен пенальти',
14273
+ _a$d[exports.FootballGameLogTypes.duel_won] = 'Дуэль выиграна',
14274
+ _a$d[exports.FootballGameLogTypes.duel_lost] = 'Дуэль проиграна',
14275
+ _a$d[exports.FootballGameLogTypes.double_goal] = 'Гол+2',
14276
+ _a$d[exports.FootballGameLogTypes.super_game] = 'Супер игра',
14277
+ _a$d[exports.FootballGameLogTypes.color_ball] = 'Цветной мяч',
14243
14278
  _a$d);
14244
14279
 
14245
14280
  var _a$c;