@mtgame/core 0.0.59 → 0.0.61

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.
@@ -595,9 +595,11 @@
595
595
  mime_type: 'mimeType',
596
596
  size: 'size',
597
597
  engine: 'engine',
598
+ created_at: 'createdAt',
598
599
  },
599
600
  relation: {
600
- engine: enumField(exports.FileEngine)
601
+ engine: enumField(exports.FileEngine),
602
+ createdAt: DateTimeField,
601
603
  }
602
604
  })
603
605
  ], File);
@@ -1093,7 +1095,9 @@
1093
1095
  var League = /** @class */ (function (_super) {
1094
1096
  __extends(League, _super);
1095
1097
  function League() {
1096
- return _super !== null && _super.apply(this, arguments) || this;
1098
+ var _this = _super !== null && _super.apply(this, arguments) || this;
1099
+ _this.regulationFiles = [];
1100
+ return _this;
1097
1101
  }
1098
1102
  League.toFront = function (data) { };
1099
1103
  League.toBack = function (data) { };
@@ -1142,12 +1146,14 @@
1142
1146
  closest_game_datetime: 'closestGameDatetime',
1143
1147
  cover: 'cover',
1144
1148
  about: 'about',
1149
+ regulation_files: 'regulationFiles',
1145
1150
  },
1146
1151
  relation: {
1147
1152
  organization: Organization,
1148
1153
  logo: File,
1149
1154
  cover: File,
1150
- sport: Sport
1155
+ sport: Sport,
1156
+ regulationFiles: listField(File),
1151
1157
  }
1152
1158
  })
1153
1159
  ], League);
@@ -3040,6 +3046,9 @@
3040
3046
  });
3041
3047
  Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
3042
3048
  get: function () {
3049
+ if (!this.gameTime) {
3050
+ return '00:00';
3051
+ }
3043
3052
  var minutes = Math.floor(this.gameTime / 60);
3044
3053
  var seconds = Math.floor(this.gameTime - minutes * 60);
3045
3054
  return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
@@ -3539,6 +3548,9 @@
3539
3548
  }
3540
3549
  Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
3541
3550
  get: function () {
3551
+ if (!this.gameTime) {
3552
+ return '00:00';
3553
+ }
3542
3554
  var minutes = Math.floor(this.gameTime / 60);
3543
3555
  var seconds = Math.floor(this.gameTime - minutes * 60);
3544
3556
  return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;