@mtgame/core 0.0.60 → 0.0.62
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.
- package/bundles/mtgame-core.umd.js +17 -3
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/models/basketball-statistic.js +5 -1
- package/esm2015/models/file.js +5 -3
- package/esm2015/models/league.js +9 -3
- package/esm5/models/basketball-statistic.js +9 -1
- package/esm5/models/file.js +5 -3
- package/esm5/models/league.js +8 -4
- package/fesm2015/mtgame-core.js +14 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +17 -3
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/basketball-statistic.d.ts +2 -0
- package/models/file.d.ts +2 -1
- package/models/league.d.ts +1 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm5/mtgame-core.js
CHANGED
|
@@ -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
|
-
|
|
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);
|
|
@@ -2016,6 +2022,13 @@ var BasketballStatistic = /** @class */ (function (_super) {
|
|
|
2016
2022
|
enumerable: true,
|
|
2017
2023
|
configurable: true
|
|
2018
2024
|
});
|
|
2025
|
+
Object.defineProperty(BasketballStatistic.prototype, "gameMinutes", {
|
|
2026
|
+
get: function () {
|
|
2027
|
+
return Math.floor(this.gameTime / 60);
|
|
2028
|
+
},
|
|
2029
|
+
enumerable: true,
|
|
2030
|
+
configurable: true
|
|
2031
|
+
});
|
|
2019
2032
|
BasketballStatistic.toFront = function (data) { };
|
|
2020
2033
|
BasketballStatistic.toBack = function (data) { };
|
|
2021
2034
|
__decorate([
|
|
@@ -2059,6 +2072,7 @@ var BasketballStatistic = /** @class */ (function (_super) {
|
|
|
2059
2072
|
personal_fouls: 'personalFouls',
|
|
2060
2073
|
technical_fouls: 'technicalFouls',
|
|
2061
2074
|
unsportsmanlike_fouls: 'unsportsmanlikeFouls',
|
|
2075
|
+
game_time: 'gameTime',
|
|
2062
2076
|
newbie: 'newbie',
|
|
2063
2077
|
},
|
|
2064
2078
|
relation: {
|