@mtgame/core 0.1.45 → 0.1.46

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.
@@ -1791,6 +1791,16 @@
1791
1791
  function FootballGameConfig() {
1792
1792
  return _super !== null && _super.apply(this, arguments) || this;
1793
1793
  }
1794
+ Object.defineProperty(FootballGameConfig.prototype, "penaltyPeriod", {
1795
+ get: function () {
1796
+ if (this.overtimeType !== exports.OvertimeTypes.time_and_penalties) {
1797
+ return +this.periodsCount + 1;
1798
+ }
1799
+ return +this.periodsCount + this.overtimePeriods + 1;
1800
+ },
1801
+ enumerable: true,
1802
+ configurable: true
1803
+ });
1794
1804
  FootballGameConfig.toFront = function (data) { };
1795
1805
  FootballGameConfig.toBack = function (data) { };
1796
1806
  __decorate([
@@ -1806,11 +1816,14 @@
1806
1816
  period_time: 'periodTime',
1807
1817
  overtime_type: 'overtimeType',
1808
1818
  overtime_time: 'overtimeTime',
1819
+ overtime_periods: 'overtimePeriods',
1809
1820
  max_game_players: 'maxGamePlayers',
1810
1821
  timeout_count: 'timeoutCount',
1811
1822
  overtime_timeout_count: 'overtimeTimeoutCount',
1812
1823
  timeout_time: 'timeoutTime',
1813
1824
  game_time_type: 'gameTimeType',
1825
+ substitute_count: 'substituteCount',
1826
+ free_substitute_enabled: 'freeSubstituteEnabled',
1814
1827
  },
1815
1828
  relation: {
1816
1829
  overtimeType: enumField(exports.OvertimeTypes),
@@ -4002,6 +4015,9 @@
4002
4015
  FootballGameLogTypes[FootballGameLogTypes["out"] = 24] = "out";
4003
4016
  FootballGameLogTypes[FootballGameLogTypes["timeout"] = 25] = "timeout";
4004
4017
  FootballGameLogTypes[FootballGameLogTypes["auto_goal"] = 26] = "auto_goal";
4018
+ FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_miss"] = 27] = "end_game_penalty_miss";
4019
+ FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_goal"] = 28] = "end_game_penalty_goal";
4020
+ FootballGameLogTypes[FootballGameLogTypes["end_game_penalty_save"] = 29] = "end_game_penalty_save";
4005
4021
  })(exports.FootballGameLogTypes || (exports.FootballGameLogTypes = {}));
4006
4022
  var FootballGameLog = /** @class */ (function (_super) {
4007
4023
  __extends(FootballGameLog, _super);
@@ -4275,7 +4291,10 @@
4275
4291
  outs: 'outs',
4276
4292
  block_shots: 'blockShots',
4277
4293
  auto_goals: 'autoGoals',
4278
- auto_goals_against: 'autoGoalsAgainst'
4294
+ auto_goals_against: 'autoGoalsAgainst',
4295
+ end_game_penalty_goals: 'endGamePenaltyGoals',
4296
+ end_game_penalty_misses: 'endGamePenaltyMisses',
4297
+ end_game_penalty_saves: 'endGamePenaltySaves'
4279
4298
  },
4280
4299
  relation: {
4281
4300
  updatedAt: DateTimeField,
@@ -4432,6 +4451,9 @@
4432
4451
  rank: 'rank',
4433
4452
  auto_goals: 'autoGoals',
4434
4453
  auto_goals_against: 'autoGoalsAgainst',
4454
+ end_game_penalty_goals: 'endGamePenaltyGoals',
4455
+ end_game_penalty_misses: 'endGamePenaltyMisses',
4456
+ end_game_penalty_saves: 'endGamePenaltySaves'
4435
4457
  },
4436
4458
  relation: {
4437
4459
  leaguePlayer: LeaguePlayer,
@@ -9323,6 +9345,9 @@
9323
9345
  _a$4[exports.FootballGameLogTypes.out] = 'Аут',
9324
9346
  _a$4[exports.FootballGameLogTypes.timeout] = 'Таймаут',
9325
9347
  _a$4[exports.FootballGameLogTypes.auto_goal] = 'Автогол',
9348
+ _a$4[exports.FootballGameLogTypes.end_game_penalty_goal] = 'Пенальти гол',
9349
+ _a$4[exports.FootballGameLogTypes.end_game_penalty_miss] = 'Пенальти промах',
9350
+ _a$4[exports.FootballGameLogTypes.end_game_penalty_save] = 'Отражен пенальти',
9326
9351
  _a$4);
9327
9352
 
9328
9353
  var _a$5;