@mtgame/core 0.0.6 → 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 +21 -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/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/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 +22 -4
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +22 -4
- package/fesm5/mtgame-core.js.map +1 -1
- 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;
|
|
@@ -1112,6 +1120,7 @@
|
|
|
1112
1120
|
relation: {
|
|
1113
1121
|
logo: File,
|
|
1114
1122
|
cover: File,
|
|
1123
|
+
previewImage: File,
|
|
1115
1124
|
city: City,
|
|
1116
1125
|
sport: Sport,
|
|
1117
1126
|
regulationFile: File,
|
|
@@ -4196,6 +4205,11 @@
|
|
|
4196
4205
|
return chunks;
|
|
4197
4206
|
}
|
|
4198
4207
|
|
|
4208
|
+
|
|
4209
|
+
(function (PlayoffTypes) {
|
|
4210
|
+
PlayoffTypes["double_elimination"] = "double_elimination";
|
|
4211
|
+
PlayoffTypes["elimination"] = "elimination";
|
|
4212
|
+
})(exports.PlayoffTypes || (exports.PlayoffTypes = {}));
|
|
4199
4213
|
var PlayoffSettings = /** @class */ (function (_super) {
|
|
4200
4214
|
__extends(PlayoffSettings, _super);
|
|
4201
4215
|
function PlayoffSettings() {
|
|
@@ -4215,7 +4229,11 @@
|
|
|
4215
4229
|
rounds: 'rounds',
|
|
4216
4230
|
final_rounds: 'finalRounds',
|
|
4217
4231
|
third_place_rounds: 'thirdPlaceRounds',
|
|
4218
|
-
teams_count: 'teamsCount'
|
|
4232
|
+
teams_count: 'teamsCount',
|
|
4233
|
+
type: 'type',
|
|
4234
|
+
},
|
|
4235
|
+
relation: {
|
|
4236
|
+
type: enumField(exports.PlayoffTypes)
|
|
4219
4237
|
}
|
|
4220
4238
|
})
|
|
4221
4239
|
], PlayoffSettings);
|