@mtgame/core 0.0.5 → 0.0.7
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 +22 -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/league.js +2 -1
- package/esm2015/models/playoff.js +12 -3
- package/esm2015/models/public-api.js +2 -2
- package/esm2015/models/sport.js +11 -3
- package/esm2015/models/tournament.js +2 -1
- package/esm5/models/league.js +2 -1
- package/esm5/models/playoff.js +12 -3
- package/esm5/models/public-api.js +2 -2
- package/esm5/models/sport.js +11 -3
- package/esm5/models/tournament.js +2 -1
- package/fesm2015/mtgame-core.js +23 -4
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +23 -4
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/league.d.ts +1 -0
- package/models/playoff.d.ts +5 -0
- package/models/public-api.d.ts +1 -1
- package/models/sport.d.ts +6 -2
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -538,6 +538,8 @@
|
|
|
538
538
|
SportTypes[SportTypes["volleyball"] = 2] = "volleyball";
|
|
539
539
|
SportTypes[SportTypes["classic_basketball"] = 3] = "classic_basketball";
|
|
540
540
|
SportTypes[SportTypes["streetball"] = 4] = "streetball";
|
|
541
|
+
SportTypes[SportTypes["classic_volleyball"] = 5] = "classic_volleyball";
|
|
542
|
+
SportTypes[SportTypes["beach_volleyball"] = 6] = "beach_volleyball";
|
|
541
543
|
})(exports.SportTypes || (exports.SportTypes = {}));
|
|
542
544
|
var Sport = /** @class */ (function (_super) {
|
|
543
545
|
__extends(Sport, _super);
|
|
@@ -550,11 +552,17 @@
|
|
|
550
552
|
Sport.prototype.isClassicBasketball = function () {
|
|
551
553
|
return this.id === exports.SportTypes.classic_basketball;
|
|
552
554
|
};
|
|
555
|
+
Sport.prototype.isStreetball = function () {
|
|
556
|
+
return this.id === exports.SportTypes.streetball;
|
|
557
|
+
};
|
|
553
558
|
Sport.prototype.isVolleyball = function () {
|
|
554
559
|
return this.id === exports.SportTypes.volleyball || this.parentId === exports.SportTypes.volleyball;
|
|
555
560
|
};
|
|
556
|
-
Sport.prototype.
|
|
557
|
-
return this.id === exports.SportTypes.
|
|
561
|
+
Sport.prototype.isClassicVolleyball = function () {
|
|
562
|
+
return this.id === exports.SportTypes.classic_volleyball;
|
|
563
|
+
};
|
|
564
|
+
Sport.prototype.isBeachVolleyball = function () {
|
|
565
|
+
return this.id === exports.SportTypes.beach_volleyball;
|
|
558
566
|
};
|
|
559
567
|
Sport.toFront = function (data) {
|
|
560
568
|
return null;
|
|
@@ -939,6 +947,7 @@
|
|
|
939
947
|
tournaments_count: 'tournamentsCount',
|
|
940
948
|
closest_game_datetime: 'closestGameDatetime',
|
|
941
949
|
cover: 'cover',
|
|
950
|
+
about: 'about',
|
|
942
951
|
},
|
|
943
952
|
relation: {
|
|
944
953
|
organization: Organization,
|
|
@@ -1111,6 +1120,7 @@
|
|
|
1111
1120
|
relation: {
|
|
1112
1121
|
logo: File,
|
|
1113
1122
|
cover: File,
|
|
1123
|
+
previewImage: File,
|
|
1114
1124
|
city: City,
|
|
1115
1125
|
sport: Sport,
|
|
1116
1126
|
regulationFile: File,
|
|
@@ -4195,6 +4205,11 @@
|
|
|
4195
4205
|
return chunks;
|
|
4196
4206
|
}
|
|
4197
4207
|
|
|
4208
|
+
|
|
4209
|
+
(function (PlayoffTypes) {
|
|
4210
|
+
PlayoffTypes["double_elimination"] = "double_elimination";
|
|
4211
|
+
PlayoffTypes["elimination"] = "elimination";
|
|
4212
|
+
})(exports.PlayoffTypes || (exports.PlayoffTypes = {}));
|
|
4198
4213
|
var PlayoffSettings = /** @class */ (function (_super) {
|
|
4199
4214
|
__extends(PlayoffSettings, _super);
|
|
4200
4215
|
function PlayoffSettings() {
|
|
@@ -4214,7 +4229,11 @@
|
|
|
4214
4229
|
rounds: 'rounds',
|
|
4215
4230
|
final_rounds: 'finalRounds',
|
|
4216
4231
|
third_place_rounds: 'thirdPlaceRounds',
|
|
4217
|
-
teams_count: 'teamsCount'
|
|
4232
|
+
teams_count: 'teamsCount',
|
|
4233
|
+
type: 'type',
|
|
4234
|
+
},
|
|
4235
|
+
relation: {
|
|
4236
|
+
type: enumField(exports.PlayoffTypes)
|
|
4218
4237
|
}
|
|
4219
4238
|
})
|
|
4220
4239
|
], PlayoffSettings);
|