@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.
@@ -382,9 +382,11 @@ var File = /** @class */ (function () {
382
382
  mime_type: 'mimeType',
383
383
  size: 'size',
384
384
  engine: 'engine',
385
+ created_at: 'createdAt',
385
386
  },
386
387
  relation: {
387
- engine: enumField(FileEngine)
388
+ engine: enumField(FileEngine),
389
+ createdAt: DateTimeField,
388
390
  }
389
391
  })
390
392
  ], File);
@@ -880,7 +882,9 @@ var Organization = /** @class */ (function (_super) {
880
882
  var League = /** @class */ (function (_super) {
881
883
  __extends(League, _super);
882
884
  function League() {
883
- return _super !== null && _super.apply(this, arguments) || this;
885
+ var _this = _super !== null && _super.apply(this, arguments) || this;
886
+ _this.regulationFiles = [];
887
+ return _this;
884
888
  }
885
889
  League.toFront = function (data) { };
886
890
  League.toBack = function (data) { };
@@ -929,12 +933,14 @@ var League = /** @class */ (function (_super) {
929
933
  closest_game_datetime: 'closestGameDatetime',
930
934
  cover: 'cover',
931
935
  about: 'about',
936
+ regulation_files: 'regulationFiles',
932
937
  },
933
938
  relation: {
934
939
  organization: Organization,
935
940
  logo: File,
936
941
  cover: File,
937
- sport: Sport
942
+ sport: Sport,
943
+ regulationFiles: listField(File),
938
944
  }
939
945
  })
940
946
  ], League);
@@ -2827,6 +2833,9 @@ var HockeyStatistic = /** @class */ (function (_super) {
2827
2833
  });
2828
2834
  Object.defineProperty(HockeyStatistic.prototype, "userMinutes", {
2829
2835
  get: function () {
2836
+ if (!this.gameTime) {
2837
+ return '00:00';
2838
+ }
2830
2839
  var minutes = Math.floor(this.gameTime / 60);
2831
2840
  var seconds = Math.floor(this.gameTime - minutes * 60);
2832
2841
  return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;
@@ -3326,6 +3335,9 @@ var FootballStatistic = /** @class */ (function (_super) {
3326
3335
  }
3327
3336
  Object.defineProperty(FootballStatistic.prototype, "userMinutes", {
3328
3337
  get: function () {
3338
+ if (!this.gameTime) {
3339
+ return '00:00';
3340
+ }
3329
3341
  var minutes = Math.floor(this.gameTime / 60);
3330
3342
  var seconds = Math.floor(this.gameTime - minutes * 60);
3331
3343
  return "" + (minutes < 10 ? 0 : '') + minutes + ":" + (seconds < 10 ? 0 : '') + seconds;