@mtgame/core 0.0.21 → 0.0.23

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.
@@ -2522,6 +2522,8 @@
2522
2522
  HockeyGameLogTypes[HockeyGameLogTypes["face_off_win"] = 18] = "face_off_win";
2523
2523
  HockeyGameLogTypes[HockeyGameLogTypes["save"] = 19] = "save";
2524
2524
  HockeyGameLogTypes[HockeyGameLogTypes["timeout"] = 20] = "timeout";
2525
+ HockeyGameLogTypes[HockeyGameLogTypes["penalty_start"] = 21] = "penalty_start";
2526
+ HockeyGameLogTypes[HockeyGameLogTypes["penalty_end"] = 22] = "penalty_end";
2525
2527
  })(exports.HockeyGameLogTypes || (exports.HockeyGameLogTypes = {}));
2526
2528
 
2527
2529
  (function (HockeyAdvantageTypes) {
@@ -2536,6 +2538,19 @@
2536
2538
  _this.active = true;
2537
2539
  return _this;
2538
2540
  }
2541
+ Object.defineProperty(HockeyGameLog.prototype, "penalizedGameUserId", {
2542
+ get: function () {
2543
+ if (this._penalizedGameUserId) {
2544
+ return this._penalizedGameUserId;
2545
+ }
2546
+ return this.gameUserId;
2547
+ },
2548
+ set: function (value) {
2549
+ this._penalizedGameUserId = value;
2550
+ },
2551
+ enumerable: true,
2552
+ configurable: true
2553
+ });
2539
2554
  HockeyGameLog.prototype.compare = function (model) {
2540
2555
  if (this.time === model.time && this.period === model.period) {
2541
2556
  return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
@@ -2596,8 +2611,10 @@
2596
2611
  active: 'active',
2597
2612
  is_highlight: 'isHighlight',
2598
2613
  advantage: 'advantage',
2614
+ advantage_num: 'advantageNum',
2599
2615
  is_goalie: 'isGoalie',
2600
- penalty_type: 'penaltyType'
2616
+ penalty_type: 'penaltyType',
2617
+ penalized_game_user_id: 'penalizedGameUserId',
2601
2618
  },
2602
2619
  relation: {
2603
2620
  datetime: DateTimeField,
@@ -6118,6 +6135,8 @@
6118
6135
  _a$2[exports.HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
6119
6136
  _a$2[exports.HockeyGameLogTypes.save] = 'Отражен бросок',
6120
6137
  _a$2[exports.HockeyGameLogTypes.timeout] = 'Таймаут',
6138
+ _a$2[exports.HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
6139
+ _a$2[exports.HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
6121
6140
  _a$2);
6122
6141
 
6123
6142
  var _a$3;