@mtgame/core 0.1.112 → 0.1.114

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.
@@ -3111,6 +3111,7 @@
3111
3111
  disqualification_fouls: 'disqualificationFouls',
3112
3112
  drawn_fouls: 'drawnFouls',
3113
3113
  player_efficiency: 'playerEfficiency',
3114
+ shots_blocked: 'shotsBlocked',
3114
3115
  game_time: 'gameTime',
3115
3116
  newbie: 'newbie',
3116
3117
  rank: 'rank',
@@ -3257,6 +3258,7 @@
3257
3258
  disqualification_fouls: 'disqualificationFouls',
3258
3259
  drawn_fouls: 'drawnFouls',
3259
3260
  player_efficiency: 'playerEfficiency',
3261
+ shots_blocked: 'shotsBlocked',
3260
3262
  updated_at: 'updatedAt',
3261
3263
  },
3262
3264
  relation: {
@@ -4136,6 +4138,13 @@
4136
4138
  enumerable: false,
4137
4139
  configurable: true
4138
4140
  });
4141
+ Object.defineProperty(HockeyGameStatistic.prototype, "goalpass", {
4142
+ get: function () {
4143
+ return (this.totalGoals || 0) + (this.assists || 0);
4144
+ },
4145
+ enumerable: false,
4146
+ configurable: true
4147
+ });
4139
4148
  HockeyGameStatistic.toFront = function (data) { };
4140
4149
  HockeyGameStatistic.toBack = function (data) { };
4141
4150
  return HockeyGameStatistic;
@@ -4203,6 +4212,13 @@
4203
4212
  enumerable: false,
4204
4213
  configurable: true
4205
4214
  });
4215
+ Object.defineProperty(HockeyStatistic.prototype, "goalpass", {
4216
+ get: function () {
4217
+ return (this.totalGoals || 0) + (this.assists || 0);
4218
+ },
4219
+ enumerable: false,
4220
+ configurable: true
4221
+ });
4206
4222
  Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
4207
4223
  get: function () {
4208
4224
  if (!this.gameTime) {
@@ -4674,6 +4690,13 @@
4674
4690
  enumerable: false,
4675
4691
  configurable: true
4676
4692
  });
4693
+ Object.defineProperty(FootballGameStatistic.prototype, "goalpass", {
4694
+ get: function () {
4695
+ return (this.totalGoals || 0) + (this.assists || 0);
4696
+ },
4697
+ enumerable: false,
4698
+ configurable: true
4699
+ });
4677
4700
  Object.defineProperty(FootballGameStatistic.prototype, "gameMinutes", {
4678
4701
  get: function () {
4679
4702
  return Math.floor(this.gameTime / 60);
@@ -4768,6 +4791,13 @@
4768
4791
  enumerable: false,
4769
4792
  configurable: true
4770
4793
  });
4794
+ Object.defineProperty(FootballStatistic.prototype, "goalpass", {
4795
+ get: function () {
4796
+ return (this.totalGoals || 0) + (this.assists || 0);
4797
+ },
4798
+ enumerable: false,
4799
+ configurable: true
4800
+ });
4771
4801
  Object.defineProperty(FootballStatistic.prototype, "tournamentTeamPoints", {
4772
4802
  get: function () {
4773
4803
  return this.tournamentTeam && this.tournamentTeam.points;
@@ -6724,6 +6754,14 @@
6724
6754
  function TeamsAndUsers() {
6725
6755
  return _super !== null && _super.apply(this, arguments) || this;
6726
6756
  }
6757
+ Object.defineProperty(TeamsAndUsers.prototype, "isEmpty", {
6758
+ get: function () {
6759
+ return (!this.teams || this.teams.length === 0) &&
6760
+ (!this.leaguePlayers || this.leaguePlayers.length === 0);
6761
+ },
6762
+ enumerable: false,
6763
+ configurable: true
6764
+ });
6727
6765
  TeamsAndUsers.toFront = function (data) { };
6728
6766
  TeamsAndUsers.toBack = function (data) { };
6729
6767
  return TeamsAndUsers;