@mtgame/core 0.0.20 → 0.0.22

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;
@@ -2564,6 +2579,15 @@
2564
2579
  exports.HockeyGameLogTypes.penalty_shot, exports.HockeyGameLogTypes.match_penalty
2565
2580
  ].indexOf(this.logType) > -1;
2566
2581
  };
2582
+ HockeyGameLog.prototype.isAfter = function (log) {
2583
+ if (this.time === log.time && this.period === log.period) {
2584
+ return this.id > log.id;
2585
+ }
2586
+ if (this.period === log.period) {
2587
+ return this.time > log.time;
2588
+ }
2589
+ return this.period > log.period;
2590
+ };
2567
2591
  HockeyGameLog.toFront = function (value) { };
2568
2592
  HockeyGameLog.toBack = function (value) { };
2569
2593
  __decorate([
@@ -2588,7 +2612,8 @@
2588
2612
  is_highlight: 'isHighlight',
2589
2613
  advantage: 'advantage',
2590
2614
  is_goalie: 'isGoalie',
2591
- penalty_type: 'penaltyType'
2615
+ penalty_type: 'penaltyType',
2616
+ penalized_game_user_id: 'penalizedGameUserId',
2592
2617
  },
2593
2618
  relation: {
2594
2619
  datetime: DateTimeField,
@@ -6109,6 +6134,8 @@
6109
6134
  _a$2[exports.HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
6110
6135
  _a$2[exports.HockeyGameLogTypes.save] = 'Отражен бросок',
6111
6136
  _a$2[exports.HockeyGameLogTypes.timeout] = 'Таймаут',
6137
+ _a$2[exports.HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
6138
+ _a$2[exports.HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
6112
6139
  _a$2);
6113
6140
 
6114
6141
  var _a$3;