@mtgame/core 0.2.69 → 0.2.70

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.
@@ -2430,6 +2430,49 @@
2430
2430
  })
2431
2431
  ], exports.WaterpoloGameConfig);
2432
2432
 
2433
+ exports.ɵa = /** @class */ (function (_super) {
2434
+ __extends(WrestballGameConfig, _super);
2435
+ function WrestballGameConfig() {
2436
+ return _super !== null && _super.apply(this, arguments) || this;
2437
+ }
2438
+ WrestballGameConfig.toFront = function (data) { };
2439
+ WrestballGameConfig.toBack = function (data) { };
2440
+ return WrestballGameConfig;
2441
+ }(BaseModel));
2442
+ __decorate([
2443
+ ToFrontHook
2444
+ ], exports.ɵa, "toFront", null);
2445
+ __decorate([
2446
+ ToBackHook
2447
+ ], exports.ɵa, "toBack", null);
2448
+ exports.ɵa = __decorate([
2449
+ ModelInstance({
2450
+ mappingFields: {
2451
+ periods_count: 'periodsCount',
2452
+ period_time: 'periodTime',
2453
+ game_up_to_score: 'gameUpToScore',
2454
+ overtime_type: 'overtimeType',
2455
+ overtime_time: 'overtimeTime',
2456
+ overtime_score: 'overtimeScore',
2457
+ max_game_players: 'maxGamePlayers',
2458
+ timeout_count: 'timeoutCount',
2459
+ overtime_timeout_count: 'overtimeTimeoutCount',
2460
+ timeout_time: 'timeoutTime',
2461
+ statistic_type: 'statisticType',
2462
+ shot_clock_enabled: 'shotClockEnabled',
2463
+ game_time_type: 'gameTimeType',
2464
+ timer_type: 'timerType',
2465
+ wrestler_scrums_count: 'wrestlerScrumsCount'
2466
+ },
2467
+ relation: {
2468
+ overtimeType: enumField(exports.OvertimeTypes),
2469
+ statisticType: enumField(exports.WrestballStatisticTypes),
2470
+ gameTimeType: enumField(exports.GameTimeTypes),
2471
+ timerType: enumField(exports.TimerTypes),
2472
+ }
2473
+ })
2474
+ ], exports.ɵa);
2475
+
2433
2476
  exports.GameStatuses = void 0;
2434
2477
  (function (GameStatuses) {
2435
2478
  GameStatuses[GameStatuses["open"] = 1] = "open";
@@ -2613,6 +2656,22 @@
2613
2656
  enumerable: false,
2614
2657
  configurable: true
2615
2658
  });
2659
+ Object.defineProperty(Game.prototype, "wrestballGameConfig", {
2660
+ get: function () {
2661
+ if (this._wrestballGameConfig && this._wrestballGameConfig.periodsCount) {
2662
+ return this._wrestballGameConfig;
2663
+ }
2664
+ if (this.gameConfig) {
2665
+ this._wrestballGameConfig = exports.ɵa.toFront(this.gameConfig);
2666
+ }
2667
+ return this._wrestballGameConfig;
2668
+ },
2669
+ set: function (value) {
2670
+ this._wrestballGameConfig = value;
2671
+ },
2672
+ enumerable: false,
2673
+ configurable: true
2674
+ });
2616
2675
  Object.defineProperty(Game.prototype, "scoreByPeriodList", {
2617
2676
  get: function () {
2618
2677
  var _this = this;
@@ -2737,6 +2796,7 @@
2737
2796
  handball_game_config: 'handballGameConfig',
2738
2797
  rugby_game_config: 'rugbyGameConfig',
2739
2798
  waterpolo_game_config: 'waterpoloGameConfig',
2799
+ wrestball_game_config: 'wrestballGameConfig',
2740
2800
  score_by_period: 'scoreByPeriod',
2741
2801
  playoff_stage: 'playoffStage',
2742
2802
  playoff_round: 'playoffRound',
@@ -2765,6 +2825,7 @@
2765
2825
  handballGameConfig: exports.HandballGameConfig,
2766
2826
  rugbyGameConfig: exports.RugbyGameConfig,
2767
2827
  waterpoloGameConfig: exports.WaterpoloGameConfig,
2828
+ wrestballGameConfig: exports.ɵa,
2768
2829
  tournamentPlayoff: exports.Playoff,
2769
2830
  tournamentCourt: exports.LeagueCourt,
2770
2831
  media: listField(exports.MediaItem),