@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.
@@ -2309,6 +2309,8 @@ var HockeyGameLogTypes;
2309
2309
  HockeyGameLogTypes[HockeyGameLogTypes["face_off_win"] = 18] = "face_off_win";
2310
2310
  HockeyGameLogTypes[HockeyGameLogTypes["save"] = 19] = "save";
2311
2311
  HockeyGameLogTypes[HockeyGameLogTypes["timeout"] = 20] = "timeout";
2312
+ HockeyGameLogTypes[HockeyGameLogTypes["penalty_start"] = 21] = "penalty_start";
2313
+ HockeyGameLogTypes[HockeyGameLogTypes["penalty_end"] = 22] = "penalty_end";
2312
2314
  })(HockeyGameLogTypes || (HockeyGameLogTypes = {}));
2313
2315
  var HockeyAdvantageTypes;
2314
2316
  (function (HockeyAdvantageTypes) {
@@ -2323,6 +2325,19 @@ var HockeyGameLog = /** @class */ (function (_super) {
2323
2325
  _this.active = true;
2324
2326
  return _this;
2325
2327
  }
2328
+ Object.defineProperty(HockeyGameLog.prototype, "penalizedGameUserId", {
2329
+ get: function () {
2330
+ if (this._penalizedGameUserId) {
2331
+ return this._penalizedGameUserId;
2332
+ }
2333
+ return this.gameUserId;
2334
+ },
2335
+ set: function (value) {
2336
+ this._penalizedGameUserId = value;
2337
+ },
2338
+ enumerable: true,
2339
+ configurable: true
2340
+ });
2326
2341
  HockeyGameLog.prototype.compare = function (model) {
2327
2342
  if (this.time === model.time && this.period === model.period) {
2328
2343
  return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
@@ -2351,6 +2366,15 @@ var HockeyGameLog = /** @class */ (function (_super) {
2351
2366
  HockeyGameLogTypes.penalty_shot, HockeyGameLogTypes.match_penalty
2352
2367
  ].indexOf(this.logType) > -1;
2353
2368
  };
2369
+ HockeyGameLog.prototype.isAfter = function (log) {
2370
+ if (this.time === log.time && this.period === log.period) {
2371
+ return this.id > log.id;
2372
+ }
2373
+ if (this.period === log.period) {
2374
+ return this.time > log.time;
2375
+ }
2376
+ return this.period > log.period;
2377
+ };
2354
2378
  HockeyGameLog.toFront = function (value) { };
2355
2379
  HockeyGameLog.toBack = function (value) { };
2356
2380
  __decorate([
@@ -2375,7 +2399,8 @@ var HockeyGameLog = /** @class */ (function (_super) {
2375
2399
  is_highlight: 'isHighlight',
2376
2400
  advantage: 'advantage',
2377
2401
  is_goalie: 'isGoalie',
2378
- penalty_type: 'penaltyType'
2402
+ penalty_type: 'penaltyType',
2403
+ penalized_game_user_id: 'penalizedGameUserId',
2379
2404
  },
2380
2405
  relation: {
2381
2406
  datetime: DateTimeField,
@@ -5896,6 +5921,8 @@ var HockeyGameLogTypeLocalization = (_a$2 = {},
5896
5921
  _a$2[HockeyGameLogTypes.face_off_win] = 'Победа в вбрасывании',
5897
5922
  _a$2[HockeyGameLogTypes.save] = 'Отражен бросок',
5898
5923
  _a$2[HockeyGameLogTypes.timeout] = 'Таймаут',
5924
+ _a$2[HockeyGameLogTypes.penalty_start] = 'Начало штрафного времени',
5925
+ _a$2[HockeyGameLogTypes.penalty_end] = 'Конец штрафного времени',
5899
5926
  _a$2);
5900
5927
 
5901
5928
  var _a$3;