@mtgame/core 0.2.52 → 0.2.54

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.
@@ -780,6 +780,7 @@
780
780
  SportTypes[SportTypes["classic_waterpolo"] = 20] = "classic_waterpolo";
781
781
  SportTypes[SportTypes["mini_waterpolo"] = 21] = "mini_waterpolo";
782
782
  SportTypes[SportTypes["media_basket"] = 22] = "media_basket";
783
+ SportTypes[SportTypes["moneyball_basket"] = 23] = "moneyball_basket";
783
784
  })(exports.SportTypes || (exports.SportTypes = {}));
784
785
  exports.Sport = /** @class */ (function (_super) {
785
786
  __extends(Sport, _super);
@@ -801,6 +802,9 @@
801
802
  Sport.prototype.isMediaBasket = function () {
802
803
  return this.id === exports.SportTypes.media_basket;
803
804
  };
805
+ Sport.prototype.isMoneyballBasket = function () {
806
+ return this.id === exports.SportTypes.moneyball_basket;
807
+ };
804
808
  Sport.prototype.isVolleyball = function () {
805
809
  return this.id === exports.SportTypes.volleyball || this.parentId === exports.SportTypes.volleyball;
806
810
  };
@@ -1611,6 +1615,11 @@
1611
1615
  RugbyStatisticTypes[RugbyStatisticTypes["light"] = 1] = "light";
1612
1616
  RugbyStatisticTypes[RugbyStatisticTypes["standard"] = 2] = "standard";
1613
1617
  })(exports.RugbyStatisticTypes || (exports.RugbyStatisticTypes = {}));
1618
+ exports.WaterpoloStatisticTypes = void 0;
1619
+ (function (WaterpoloStatisticTypes) {
1620
+ WaterpoloStatisticTypes[WaterpoloStatisticTypes["standard"] = 1] = "standard";
1621
+ WaterpoloStatisticTypes[WaterpoloStatisticTypes["light"] = 2] = "light";
1622
+ })(exports.WaterpoloStatisticTypes || (exports.WaterpoloStatisticTypes = {}));
1614
1623
  exports.GameTimeTypes = void 0;
1615
1624
  (function (GameTimeTypes) {
1616
1625
  GameTimeTypes[GameTimeTypes["clean"] = 1] = "clean";
@@ -1703,6 +1712,7 @@
1703
1712
  basketball_statistic_type: 'basketballStatisticType',
1704
1713
  volleyball_statistic_type: 'volleyballStatisticType',
1705
1714
  rugby_statistic_type: 'rugbyStatisticType',
1715
+ waterpolo_statistic_type: 'waterpoloStatisticType',
1706
1716
  shot_clock_enabled: 'shotClockEnabled',
1707
1717
  game_time_type: 'gameTimeType',
1708
1718
  with_result_table: 'withResultTable',
@@ -1722,6 +1732,7 @@
1722
1732
  basketballStatisticType: enumField(exports.BasketballStatisticTypes),
1723
1733
  volleyballStatisticType: enumField(exports.VolleyballStatisticTypes),
1724
1734
  rugbyStatisticType: enumField(exports.RugbyStatisticTypes),
1735
+ waterpoloStatisticType: enumField(exports.WaterpoloStatisticTypes),
1725
1736
  gameTimeType: enumField(exports.GameTimeTypes),
1726
1737
  overtimeType: enumField(exports.OvertimeTypes),
1727
1738
  timerType: enumField(exports.TimerTypes),
@@ -2402,10 +2413,12 @@
2402
2413
  game_time_type: 'gameTimeType',
2403
2414
  substitute_manage_enabled: 'substituteManageEnabled',
2404
2415
  shot_clock_enabled: 'shotClockEnabled',
2416
+ statistic_type: 'statisticType',
2405
2417
  },
2406
2418
  relation: {
2407
2419
  overtimeType: enumField(exports.OvertimeTypes),
2408
2420
  gameTimeType: enumField(exports.GameTimeTypes),
2421
+ statisticType: enumField(exports.WaterpoloStatisticTypes),
2409
2422
  }
2410
2423
  })
2411
2424
  ], exports.WaterpoloGameConfig);
@@ -3649,6 +3662,9 @@
3649
3662
  shootouts_lost: 'shootoutsLost',
3650
3663
  shootouts_total: 'shootoutsTotal',
3651
3664
  shootout_won_percent: 'shootoutWonPercent',
3665
+ moneyball_free_throw_attempts: 'moneyballFreeThrowAttempts',
3666
+ moneyball_free_throws_made: 'moneyballFreeThrowsMade',
3667
+ moneyball_free_throw_percent: 'moneyballFreeThrowPercent',
3652
3668
  game_time: 'gameTime',
3653
3669
  newbie: 'newbie',
3654
3670
  rank: 'rank',
@@ -3847,6 +3863,17 @@
3847
3863
  enumerable: false,
3848
3864
  configurable: true
3849
3865
  });
3866
+ Object.defineProperty(BasketballGameStatistic.prototype, "moneyballFreeThrowPercent", {
3867
+ get: function () {
3868
+ if (!this.moneyballFreeThrowsMade || !this.moneyballFreeThrowAttepts) {
3869
+ return 0;
3870
+ }
3871
+ return Math.round(1000 * this.moneyballFreeThrowsMade / this.moneyballFreeThrowAttepts) / 10;
3872
+ },
3873
+ set: function (v) { },
3874
+ enumerable: false,
3875
+ configurable: true
3876
+ });
3850
3877
  return BasketballGameStatistic;
3851
3878
  }(BaseModel));
3852
3879
  __decorate([
@@ -3895,6 +3922,8 @@
3895
3922
  shootouts_lost: 'shootoutsLost',
3896
3923
  shootouts_total: 'shootoutsTotal',
3897
3924
  shootout_won_percent: 'shootoutWonPercent',
3925
+ moneyball_free_throw_attepts: 'moneyballFreeThrowAttepts',
3926
+ moneyball_free_throws_made: 'moneyballFreeThrowsMade',
3898
3927
  updated_at: 'updatedAt',
3899
3928
  },
3900
3929
  relation: {
@@ -3936,6 +3965,8 @@
3936
3965
  BasketballGameLogTypes[BasketballGameLogTypes["shootout"] = 29] = "shootout";
3937
3966
  BasketballGameLogTypes[BasketballGameLogTypes["shootout_won"] = 30] = "shootout_won";
3938
3967
  BasketballGameLogTypes[BasketballGameLogTypes["shootout_lost"] = 31] = "shootout_lost";
3968
+ BasketballGameLogTypes[BasketballGameLogTypes["moneyball_free_throw_attept"] = 32] = "moneyball_free_throw_attept";
3969
+ BasketballGameLogTypes[BasketballGameLogTypes["moneyball_free_throw_made"] = 33] = "moneyball_free_throw_made";
3939
3970
  })(exports.BasketballGameLogTypes || (exports.BasketballGameLogTypes = {}));
3940
3971
  exports.BasketballSubLogTypes = void 0;
3941
3972
  (function (BasketballSubLogTypes) {
@@ -4014,6 +4045,7 @@
4014
4045
  exports.BasketballGameLogTypes.four_point_made,
4015
4046
  exports.BasketballGameLogTypes.dunk_made,
4016
4047
  exports.BasketballGameLogTypes.shootout_won,
4048
+ exports.BasketballGameLogTypes.moneyball_free_throw_made,
4017
4049
  ].indexOf(this.logType) > -1;
4018
4050
  };
4019
4051
  BasketballGameLog.prototype.isReboundType = function () {
@@ -4041,6 +4073,7 @@
4041
4073
  _a[exports.BasketballGameLogTypes.three_point_made] = 3,
4042
4074
  _a[exports.BasketballGameLogTypes.four_point_made] = 4,
4043
4075
  _a[exports.BasketballGameLogTypes.dunk_made] = 3,
4076
+ _a[exports.BasketballGameLogTypes.moneyball_free_throw_made] = 2,
4044
4077
  _a);
4045
4078
  if (this.logType === exports.BasketballGameLogTypes.shootout_won) {
4046
4079
  return this.shootoutPoints;
@@ -13042,6 +13075,8 @@
13042
13075
  _a$f[exports.BasketballGameLogTypes.shootout] = 'Булит',
13043
13076
  _a$f[exports.BasketballGameLogTypes.shootout_won] = 'Булит выигран',
13044
13077
  _a$f[exports.BasketballGameLogTypes.shootout_lost] = 'Булит проигран',
13078
+ _a$f[exports.BasketballGameLogTypes.moneyball_free_throw_attept] = 'Штрафной бросок',
13079
+ _a$f[exports.BasketballGameLogTypes.moneyball_free_throw_made] = '2 очка, штрафной',
13045
13080
  _a$f);
13046
13081
 
13047
13082
  var _a$e;