@mtgame/core 0.2.70 → 0.2.71
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 +59 -8
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/sport.js +6 -1
- package/esm2015/models/team.js +4 -1
- package/esm2015/models/tournament.js +6 -1
- package/esm2015/models/user.js +4 -1
- package/esm2015/models/wrestball-game-config.js +3 -2
- package/esm2015/models/wrestball-profile.js +33 -0
- package/esm2015/mtgame-core.js +3 -2
- package/fesm2015/mtgame-core.js +48 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/sport.d.ts +4 -1
- package/models/tournament.d.ts +5 -1
- package/models/user.d.ts +2 -0
- package/models/wrestball-game-config.d.ts +1 -0
- package/models/wrestball-profile.d.ts +12 -0
- package/mtgame-core.d.ts +2 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -781,6 +781,8 @@
|
|
|
781
781
|
SportTypes[SportTypes["mini_waterpolo"] = 21] = "mini_waterpolo";
|
|
782
782
|
SportTypes[SportTypes["media_basket"] = 22] = "media_basket";
|
|
783
783
|
SportTypes[SportTypes["moneyball_basket"] = 23] = "moneyball_basket";
|
|
784
|
+
SportTypes[SportTypes["wrestball"] = 24] = "wrestball";
|
|
785
|
+
SportTypes[SportTypes["wrestball_classic"] = 25] = "wrestball_classic";
|
|
784
786
|
})(exports.SportTypes || (exports.SportTypes = {}));
|
|
785
787
|
exports.Sport = /** @class */ (function (_super) {
|
|
786
788
|
__extends(Sport, _super);
|
|
@@ -856,6 +858,9 @@
|
|
|
856
858
|
Sport.prototype.isMiniWaterpolo = function () {
|
|
857
859
|
return this.id === exports.SportTypes.mini_waterpolo;
|
|
858
860
|
};
|
|
861
|
+
Sport.prototype.isWrestball = function () {
|
|
862
|
+
return this.id === exports.SportTypes.wrestball || this.parentId === exports.SportTypes.wrestball;
|
|
863
|
+
};
|
|
859
864
|
Sport.toFront = function (data) {
|
|
860
865
|
return null;
|
|
861
866
|
};
|
|
@@ -1230,6 +1235,41 @@
|
|
|
1230
1235
|
})
|
|
1231
1236
|
], exports.WaterpoloProfile);
|
|
1232
1237
|
|
|
1238
|
+
exports.ɵa = void 0;
|
|
1239
|
+
(function (WrestballWorkHand) {
|
|
1240
|
+
WrestballWorkHand[WrestballWorkHand["left"] = 1] = "left";
|
|
1241
|
+
WrestballWorkHand[WrestballWorkHand["right"] = 2] = "right";
|
|
1242
|
+
})(exports.ɵa || (exports.ɵa = {}));
|
|
1243
|
+
exports.ɵb = /** @class */ (function (_super) {
|
|
1244
|
+
__extends(WrestballProfile, _super);
|
|
1245
|
+
function WrestballProfile() {
|
|
1246
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1247
|
+
}
|
|
1248
|
+
WrestballProfile.toFront = function (value) {
|
|
1249
|
+
};
|
|
1250
|
+
WrestballProfile.toBack = function (value) {
|
|
1251
|
+
};
|
|
1252
|
+
return WrestballProfile;
|
|
1253
|
+
}(BaseModel));
|
|
1254
|
+
__decorate([
|
|
1255
|
+
ToFrontHook
|
|
1256
|
+
], exports.ɵb, "toFront", null);
|
|
1257
|
+
__decorate([
|
|
1258
|
+
ToBackHook
|
|
1259
|
+
], exports.ɵb, "toBack", null);
|
|
1260
|
+
exports.ɵb = __decorate([
|
|
1261
|
+
ModelInstance({
|
|
1262
|
+
mappingFields: {
|
|
1263
|
+
id: 'id',
|
|
1264
|
+
user_id: 'userId',
|
|
1265
|
+
work_hand: 'workHand'
|
|
1266
|
+
},
|
|
1267
|
+
relation: {
|
|
1268
|
+
workHand: enumField(exports.ɵa)
|
|
1269
|
+
}
|
|
1270
|
+
})
|
|
1271
|
+
], exports.ɵb);
|
|
1272
|
+
|
|
1233
1273
|
exports.UserGender = void 0;
|
|
1234
1274
|
(function (UserGender) {
|
|
1235
1275
|
UserGender[UserGender["male"] = 1] = "male";
|
|
@@ -1305,6 +1345,7 @@
|
|
|
1305
1345
|
handball_profile: 'handballProfile',
|
|
1306
1346
|
rugby_profile: 'rugbyProfile',
|
|
1307
1347
|
waterpolo_profile: 'waterpoloProfile',
|
|
1348
|
+
wrestball_profile: 'wrestballProfile',
|
|
1308
1349
|
wizards: 'wizards',
|
|
1309
1350
|
city: 'city',
|
|
1310
1351
|
gender: 'gender',
|
|
@@ -1323,6 +1364,7 @@
|
|
|
1323
1364
|
handballProfile: exports.HandballProfile,
|
|
1324
1365
|
rugbyProfile: exports.RugbyProfile,
|
|
1325
1366
|
waterpoloProfile: exports.WaterpoloProfile,
|
|
1367
|
+
wrestballProfile: exports.ɵb,
|
|
1326
1368
|
city: exports.City,
|
|
1327
1369
|
gender: enumField(exports.UserGender)
|
|
1328
1370
|
}
|
|
@@ -1357,6 +1399,9 @@
|
|
|
1357
1399
|
if (this.sport.isWaterpolo()) {
|
|
1358
1400
|
classList.push('empty-logo-waterpolo');
|
|
1359
1401
|
}
|
|
1402
|
+
if (this.sport.isWrestball()) {
|
|
1403
|
+
classList.push('empty-logo-basketball');
|
|
1404
|
+
}
|
|
1360
1405
|
return classList.join(' ');
|
|
1361
1406
|
};
|
|
1362
1407
|
Team.toFront = function (data) {
|
|
@@ -1640,6 +1685,7 @@
|
|
|
1640
1685
|
OvertimeTypes[OvertimeTypes["bullitts"] = 7] = "bullitts";
|
|
1641
1686
|
OvertimeTypes[OvertimeTypes["penalties"] = 8] = "penalties";
|
|
1642
1687
|
OvertimeTypes[OvertimeTypes["time_and_penalties"] = 9] = "time_and_penalties";
|
|
1688
|
+
OvertimeTypes[OvertimeTypes["time_and_first_goal"] = 10] = "time_and_first_goal";
|
|
1643
1689
|
})(exports.OvertimeTypes || (exports.OvertimeTypes = {}));
|
|
1644
1690
|
exports.TimerTypes = void 0;
|
|
1645
1691
|
(function (TimerTypes) {
|
|
@@ -1717,6 +1763,7 @@
|
|
|
1717
1763
|
volleyball_statistic_type: 'volleyballStatisticType',
|
|
1718
1764
|
rugby_statistic_type: 'rugbyStatisticType',
|
|
1719
1765
|
waterpolo_statistic_type: 'waterpoloStatisticType',
|
|
1766
|
+
wrestball_statistic_type: 'wrestballStatisticType',
|
|
1720
1767
|
shot_clock_enabled: 'shotClockEnabled',
|
|
1721
1768
|
game_time_type: 'gameTimeType',
|
|
1722
1769
|
with_result_table: 'withResultTable',
|
|
@@ -1730,6 +1777,8 @@
|
|
|
1730
1777
|
match_penalty_time: 'matchPenaltyTime',
|
|
1731
1778
|
timer_type: 'timerType',
|
|
1732
1779
|
hide_on_league_main_page: 'hideOnLeagueMainPage',
|
|
1780
|
+
wrestler_scrums_count: 'wrestlerScrumsCount',
|
|
1781
|
+
wrestlers_count: 'wrestlersCount',
|
|
1733
1782
|
},
|
|
1734
1783
|
relation: {
|
|
1735
1784
|
type: enumField(exports.TournamentTypes),
|
|
@@ -1738,6 +1787,7 @@
|
|
|
1738
1787
|
volleyballStatisticType: enumField(exports.VolleyballStatisticTypes),
|
|
1739
1788
|
rugbyStatisticType: enumField(exports.RugbyStatisticTypes),
|
|
1740
1789
|
waterpoloStatisticType: enumField(exports.WaterpoloStatisticTypes),
|
|
1790
|
+
wrestballStatisticType: enumField(exports.WrestballStatisticTypes),
|
|
1741
1791
|
gameTimeType: enumField(exports.GameTimeTypes),
|
|
1742
1792
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
1743
1793
|
timerType: enumField(exports.TimerTypes),
|
|
@@ -2430,7 +2480,7 @@
|
|
|
2430
2480
|
})
|
|
2431
2481
|
], exports.WaterpoloGameConfig);
|
|
2432
2482
|
|
|
2433
|
-
exports.ɵ
|
|
2483
|
+
exports.ɵc = /** @class */ (function (_super) {
|
|
2434
2484
|
__extends(WrestballGameConfig, _super);
|
|
2435
2485
|
function WrestballGameConfig() {
|
|
2436
2486
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -2441,11 +2491,11 @@
|
|
|
2441
2491
|
}(BaseModel));
|
|
2442
2492
|
__decorate([
|
|
2443
2493
|
ToFrontHook
|
|
2444
|
-
], exports.ɵ
|
|
2494
|
+
], exports.ɵc, "toFront", null);
|
|
2445
2495
|
__decorate([
|
|
2446
2496
|
ToBackHook
|
|
2447
|
-
], exports.ɵ
|
|
2448
|
-
exports.ɵ
|
|
2497
|
+
], exports.ɵc, "toBack", null);
|
|
2498
|
+
exports.ɵc = __decorate([
|
|
2449
2499
|
ModelInstance({
|
|
2450
2500
|
mappingFields: {
|
|
2451
2501
|
periods_count: 'periodsCount',
|
|
@@ -2462,7 +2512,8 @@
|
|
|
2462
2512
|
shot_clock_enabled: 'shotClockEnabled',
|
|
2463
2513
|
game_time_type: 'gameTimeType',
|
|
2464
2514
|
timer_type: 'timerType',
|
|
2465
|
-
wrestler_scrums_count: 'wrestlerScrumsCount'
|
|
2515
|
+
wrestler_scrums_count: 'wrestlerScrumsCount',
|
|
2516
|
+
wrestlers_count: 'wrestlersCount',
|
|
2466
2517
|
},
|
|
2467
2518
|
relation: {
|
|
2468
2519
|
overtimeType: enumField(exports.OvertimeTypes),
|
|
@@ -2471,7 +2522,7 @@
|
|
|
2471
2522
|
timerType: enumField(exports.TimerTypes),
|
|
2472
2523
|
}
|
|
2473
2524
|
})
|
|
2474
|
-
], exports.ɵ
|
|
2525
|
+
], exports.ɵc);
|
|
2475
2526
|
|
|
2476
2527
|
exports.GameStatuses = void 0;
|
|
2477
2528
|
(function (GameStatuses) {
|
|
@@ -2662,7 +2713,7 @@
|
|
|
2662
2713
|
return this._wrestballGameConfig;
|
|
2663
2714
|
}
|
|
2664
2715
|
if (this.gameConfig) {
|
|
2665
|
-
this._wrestballGameConfig = exports.ɵ
|
|
2716
|
+
this._wrestballGameConfig = exports.ɵc.toFront(this.gameConfig);
|
|
2666
2717
|
}
|
|
2667
2718
|
return this._wrestballGameConfig;
|
|
2668
2719
|
},
|
|
@@ -2825,7 +2876,7 @@
|
|
|
2825
2876
|
handballGameConfig: exports.HandballGameConfig,
|
|
2826
2877
|
rugbyGameConfig: exports.RugbyGameConfig,
|
|
2827
2878
|
waterpoloGameConfig: exports.WaterpoloGameConfig,
|
|
2828
|
-
wrestballGameConfig: exports.ɵ
|
|
2879
|
+
wrestballGameConfig: exports.ɵc,
|
|
2829
2880
|
tournamentPlayoff: exports.Playoff,
|
|
2830
2881
|
tournamentCourt: exports.LeagueCourt,
|
|
2831
2882
|
media: listField(exports.MediaItem),
|