@mtgame/core 0.2.81 → 0.2.83

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.
@@ -2518,6 +2518,7 @@
2518
2518
  timer_type: 'timerType',
2519
2519
  wrestler_scrums_count: 'wrestlerScrumsCount',
2520
2520
  wrestlers_count: 'wrestlersCount',
2521
+ wrestler_user_ids: 'wrestlerUserIds',
2521
2522
  },
2522
2523
  relation: {
2523
2524
  overtimeType: enumField(exports.OvertimeTypes),
@@ -7582,21 +7583,30 @@
7582
7583
  turnovers: 'turnovers',
7583
7584
  personal_fouls: 'personalFouls',
7584
7585
  drawn_fouls: 'drawnFouls',
7586
+ drawn_wrestler_attempts: 'drawnWrestlerAttempts',
7585
7587
  wrestler_scrums_won: 'wrestlerScrumsWon',
7586
7588
  wrestler_scrums_lost: 'wrestlerScrumsLost',
7587
7589
  wrestler_scrums_tie: 'wrestlerScrumsTie',
7588
7590
  wrestler_scrum_points: 'wrestlerScrumPoints',
7591
+ wrestler_scrums_counterattack: 'wrestlerScrumsCounterattack',
7589
7592
  scrums_won: 'scrumsWon',
7590
7593
  scrums_lost: 'scrumsLost',
7591
7594
  scrums_tie: 'scrumsTie',
7592
7595
  scrum_points: 'scrumPoints',
7596
+ scrums_ball_advantage_won: 'scrumsBallAdvantageWon',
7597
+ scrums_ball_advantage_lost: 'scrumsBallAdvantageLost',
7598
+ scrums_ball_advantage_tie: 'scrumsBallAdvantageTie',
7599
+ scrums_ball_advantage_total: 'scrumsBallAdvantageTotal',
7600
+ scrums_ball_advantage_won_percent: 'scrumsBallAdvantageWonPercent',
7593
7601
  yellow_cards: 'yellowCards',
7594
7602
  red_cards: 'redCards',
7595
7603
  wrestler_scrums: 'wrestlerScrums',
7596
7604
  wrestler_scrums_won_percent: 'wrestlerScrumsWonPercent',
7597
7605
  scrums: 'scrums',
7598
7606
  scrums_won_percent: 'scrumsWonPercent',
7607
+ total_scrums: 'totalScrums',
7599
7608
  game_time: 'gameTime',
7609
+ plus_minus: 'plusMinus',
7600
7610
  newbie: 'newbie',
7601
7611
  rank: 'rank',
7602
7612
  },
@@ -13440,7 +13450,17 @@
13440
13450
  });
13441
13451
  Object.defineProperty(WrestballGameStatistic.prototype, "wrestlerScrums", {
13442
13452
  get: function () {
13443
- return (this.wrestlerScrumsWon || 0) + (this.wrestlerScrumsLost || 0) + (this.wrestlerScrumsTie || 0);
13453
+ return (this.wrestlerScrumsWon || 0) + (this.wrestlerScrumsLost || 0) + (this.wrestlerScrumsTie || 0) + (this.wrestlerScrumsCounterattack || 0);
13454
+ },
13455
+ enumerable: false,
13456
+ configurable: true
13457
+ });
13458
+ Object.defineProperty(WrestballGameStatistic.prototype, "wrestlerScrumsWonPercent", {
13459
+ get: function () {
13460
+ if (!this.wrestlerScrumsWon || !this.wrestlerScrums) {
13461
+ return 0;
13462
+ }
13463
+ return Math.round(1000 * this.wrestlerScrumsWon / this.wrestlerScrums) / 10;
13444
13464
  },
13445
13465
  enumerable: false,
13446
13466
  configurable: true
@@ -13452,6 +13472,40 @@
13452
13472
  enumerable: false,
13453
13473
  configurable: true
13454
13474
  });
13475
+ Object.defineProperty(WrestballGameStatistic.prototype, "scrumsWonPercent", {
13476
+ get: function () {
13477
+ if (!this.scrumsWon || !this.scrums) {
13478
+ return 0;
13479
+ }
13480
+ return Math.round(1000 * this.scrumsWon / this.scrums) / 10;
13481
+ },
13482
+ enumerable: false,
13483
+ configurable: true
13484
+ });
13485
+ Object.defineProperty(WrestballGameStatistic.prototype, "scrumsBallAdvantageTotal", {
13486
+ get: function () {
13487
+ return (this.scrumsBallAdvantageWon || 0) + (this.scrumsBallAdvantageLost || 0) + (this.scrumsBallAdvantageTie || 0);
13488
+ },
13489
+ enumerable: false,
13490
+ configurable: true
13491
+ });
13492
+ Object.defineProperty(WrestballGameStatistic.prototype, "scrumsBallAdvantageWonPercent", {
13493
+ get: function () {
13494
+ if (!this.scrumsBallAdvantageWon || !this.scrumsBallAdvantageTotal) {
13495
+ return 0;
13496
+ }
13497
+ return Math.round(1000 * this.scrumsBallAdvantageWon / this.scrumsBallAdvantageTotal) / 10;
13498
+ },
13499
+ enumerable: false,
13500
+ configurable: true
13501
+ });
13502
+ Object.defineProperty(WrestballGameStatistic.prototype, "totalScrums", {
13503
+ get: function () {
13504
+ return (this.wrestlerScrums || 0) + (this.scrums || 0) + (this.scrumsBallAdvantageTotal || 0);
13505
+ },
13506
+ enumerable: false,
13507
+ configurable: true
13508
+ });
13455
13509
  return WrestballGameStatistic;
13456
13510
  }(BaseModel));
13457
13511
  __decorate([
@@ -13486,16 +13540,23 @@
13486
13540
  turnovers: 'turnovers',
13487
13541
  personal_fouls: 'personalFouls',
13488
13542
  drawn_fouls: 'drawnFouls',
13543
+ drawn_wrestler_attempts: 'drawnWrestlerAttempts',
13489
13544
  wrestler_scrums_won: 'wrestlerScrumsWon',
13490
13545
  wrestler_scrums_lost: 'wrestlerScrumsLost',
13491
13546
  wrestler_scrums_tie: 'wrestlerScrumsTie',
13492
13547
  wrestler_scrum_points: 'wrestlerScrumPoints',
13548
+ wrestler_scrums_counterattack: 'wrestlerScrumsCounterattack',
13493
13549
  scrums_won: 'scrumsWon',
13494
13550
  scrums_lost: 'scrumsLost',
13495
13551
  scrums_tie: 'scrumsTie',
13496
13552
  scrum_points: 'scrumPoints',
13553
+ scrums_ball_advantage_won: 'scrumsBallAdvantageWon',
13554
+ scrums_ball_advantage_lost: 'scrumsBallAdvantageLost',
13555
+ scrums_ball_advantage_tie: 'scrumsBallAdvantageTie',
13497
13556
  yellow_cards: 'yellowCards',
13498
13557
  red_cards: 'redCards',
13558
+ game_time: 'gameTime',
13559
+ plus_minus: 'plusMinus',
13499
13560
  updated_at: 'updatedAt',
13500
13561
  },
13501
13562
  relation: {
@@ -13537,6 +13598,10 @@
13537
13598
  WrestballGameLogTypes[WrestballGameLogTypes["scrum_tie"] = 29] = "scrum_tie";
13538
13599
  WrestballGameLogTypes[WrestballGameLogTypes["yellow_card"] = 30] = "yellow_card";
13539
13600
  WrestballGameLogTypes[WrestballGameLogTypes["red_card"] = 31] = "red_card";
13601
+ WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_counterattack"] = 32] = "wrestler_scrum_counterattack";
13602
+ WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_won"] = 33] = "scrum_ball_advantage_won";
13603
+ WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_lost"] = 34] = "scrum_ball_advantage_lost";
13604
+ WrestballGameLogTypes[WrestballGameLogTypes["scrum_ball_advantage_tie"] = 35] = "scrum_ball_advantage_tie";
13540
13605
  })(exports.WrestballGameLogTypes || (exports.WrestballGameLogTypes = {}));
13541
13606
  exports.WrestballGameLog = /** @class */ (function (_super) {
13542
13607
  __extends(WrestballGameLog, _super);
@@ -13553,6 +13618,7 @@
13553
13618
  exports.WrestballGameLogTypes.one_point_made,
13554
13619
  exports.WrestballGameLogTypes.scrum_won,
13555
13620
  exports.WrestballGameLogTypes.wrestler_scrum_won,
13621
+ exports.WrestballGameLogTypes.wrestler_scrum_counterattack,
13556
13622
  ].indexOf(this.logType) > -1;
13557
13623
  };
13558
13624
  WrestballGameLog.prototype.isReboundType = function () {
@@ -13568,6 +13634,19 @@
13568
13634
  exports.WrestballGameLogTypes.personal_foul,
13569
13635
  ].indexOf(this.logType) > -1;
13570
13636
  };
13637
+ WrestballGameLog.prototype.isScrumType = function () {
13638
+ return [
13639
+ exports.WrestballGameLogTypes.wrestler_scrum_won,
13640
+ exports.WrestballGameLogTypes.wrestler_scrum_lost,
13641
+ exports.WrestballGameLogTypes.wrestler_scrum_tie,
13642
+ exports.WrestballGameLogTypes.scrum_won,
13643
+ exports.WrestballGameLogTypes.scrum_lost,
13644
+ exports.WrestballGameLogTypes.scrum_tie,
13645
+ exports.WrestballGameLogTypes.scrum_ball_advantage_won,
13646
+ exports.WrestballGameLogTypes.scrum_ball_advantage_lost,
13647
+ exports.WrestballGameLogTypes.scrum_ball_advantage_tie,
13648
+ ].indexOf(this.logType) > -1;
13649
+ };
13571
13650
  WrestballGameLog.prototype.getScore = function () {
13572
13651
  var _a;
13573
13652
  var scoreMapping = (_a = {},
@@ -13577,6 +13656,7 @@
13577
13656
  _a[exports.WrestballGameLogTypes.three_point_made] = 3,
13578
13657
  _a[exports.WrestballGameLogTypes.scrum_won] = 2,
13579
13658
  _a[exports.WrestballGameLogTypes.wrestler_scrum_won] = 2,
13659
+ _a[exports.WrestballGameLogTypes.wrestler_scrum_counterattack] = 2,
13580
13660
  _a);
13581
13661
  return scoreMapping[this.logType] || 0;
13582
13662
  };
@@ -13626,6 +13706,7 @@
13626
13706
  active: 'active',
13627
13707
  is_highlight: 'isHighlight',
13628
13708
  foul_on_game_user_id: 'foulOnGameUserId',
13709
+ wrestler_attempt_on_game_user_id: 'wrestlerAttemptOnGameUserId',
13629
13710
  is_coach: 'isCoach',
13630
13711
  is_bench: 'isBench',
13631
13712
  marked: 'marked',
@@ -14242,10 +14323,14 @@
14242
14323
  _a$2[exports.WrestballGameLogTypes.scrum_won] = 'Схватка выиграна',
14243
14324
  _a$2[exports.WrestballGameLogTypes.scrum_lost] = 'Схватка проиграна',
14244
14325
  _a$2[exports.WrestballGameLogTypes.scrum_tie] = 'Схватка в ничью',
14245
- _a$2[exports.WrestballGameLogTypes.wrestler_scrum] = 'Схватка рестлера',
14246
- _a$2[exports.WrestballGameLogTypes.wrestler_scrum_won] = 'Схватка рестлера выиграна',
14247
- _a$2[exports.WrestballGameLogTypes.wrestler_scrum_lost] = 'Схватка рестлера проиграна',
14248
- _a$2[exports.WrestballGameLogTypes.wrestler_scrum_tie] = 'Схватка рестлера в ничью',
14326
+ _a$2[exports.WrestballGameLogTypes.wrestler_scrum] = 'Атака рестлера',
14327
+ _a$2[exports.WrestballGameLogTypes.wrestler_scrum_won] = 'Атака рестлера успешна',
14328
+ _a$2[exports.WrestballGameLogTypes.wrestler_scrum_lost] = 'Атака рестлера неудачна',
14329
+ _a$2[exports.WrestballGameLogTypes.wrestler_scrum_tie] = 'Атака рестлера в ничью',
14330
+ _a$2[exports.WrestballGameLogTypes.wrestler_scrum_counterattack] = 'Контратака на рестлере',
14331
+ _a$2[exports.WrestballGameLogTypes.scrum_ball_advantage_won] = 'Схватка за начало выиграна',
14332
+ _a$2[exports.WrestballGameLogTypes.scrum_ball_advantage_lost] = 'Схватка за начало проиграна',
14333
+ _a$2[exports.WrestballGameLogTypes.scrum_ball_advantage_tie] = 'Схватка за начало в ничью',
14249
14334
  _a$2[exports.WrestballGameLogTypes.yellow_card] = 'Желтая карточка',
14250
14335
  _a$2[exports.WrestballGameLogTypes.red_card] = 'Красная карточка',
14251
14336
  _a$2);