@mtgame/core 0.2.69 → 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 +112 -0
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/game.js +16 -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 +43 -0
- package/esm2015/models/wrestball-profile.js +33 -0
- package/esm2015/mtgame-core.js +3 -1
- package/fesm2015/mtgame-core.js +99 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/game.d.ts +4 -0
- 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 +22 -0
- package/models/wrestball-profile.d.ts +12 -0
- package/mtgame-core.d.ts +2 -0
- 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,6 +2480,50 @@
|
|
|
2430
2480
|
})
|
|
2431
2481
|
], exports.WaterpoloGameConfig);
|
|
2432
2482
|
|
|
2483
|
+
exports.ɵc = /** @class */ (function (_super) {
|
|
2484
|
+
__extends(WrestballGameConfig, _super);
|
|
2485
|
+
function WrestballGameConfig() {
|
|
2486
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2487
|
+
}
|
|
2488
|
+
WrestballGameConfig.toFront = function (data) { };
|
|
2489
|
+
WrestballGameConfig.toBack = function (data) { };
|
|
2490
|
+
return WrestballGameConfig;
|
|
2491
|
+
}(BaseModel));
|
|
2492
|
+
__decorate([
|
|
2493
|
+
ToFrontHook
|
|
2494
|
+
], exports.ɵc, "toFront", null);
|
|
2495
|
+
__decorate([
|
|
2496
|
+
ToBackHook
|
|
2497
|
+
], exports.ɵc, "toBack", null);
|
|
2498
|
+
exports.ɵc = __decorate([
|
|
2499
|
+
ModelInstance({
|
|
2500
|
+
mappingFields: {
|
|
2501
|
+
periods_count: 'periodsCount',
|
|
2502
|
+
period_time: 'periodTime',
|
|
2503
|
+
game_up_to_score: 'gameUpToScore',
|
|
2504
|
+
overtime_type: 'overtimeType',
|
|
2505
|
+
overtime_time: 'overtimeTime',
|
|
2506
|
+
overtime_score: 'overtimeScore',
|
|
2507
|
+
max_game_players: 'maxGamePlayers',
|
|
2508
|
+
timeout_count: 'timeoutCount',
|
|
2509
|
+
overtime_timeout_count: 'overtimeTimeoutCount',
|
|
2510
|
+
timeout_time: 'timeoutTime',
|
|
2511
|
+
statistic_type: 'statisticType',
|
|
2512
|
+
shot_clock_enabled: 'shotClockEnabled',
|
|
2513
|
+
game_time_type: 'gameTimeType',
|
|
2514
|
+
timer_type: 'timerType',
|
|
2515
|
+
wrestler_scrums_count: 'wrestlerScrumsCount',
|
|
2516
|
+
wrestlers_count: 'wrestlersCount',
|
|
2517
|
+
},
|
|
2518
|
+
relation: {
|
|
2519
|
+
overtimeType: enumField(exports.OvertimeTypes),
|
|
2520
|
+
statisticType: enumField(exports.WrestballStatisticTypes),
|
|
2521
|
+
gameTimeType: enumField(exports.GameTimeTypes),
|
|
2522
|
+
timerType: enumField(exports.TimerTypes),
|
|
2523
|
+
}
|
|
2524
|
+
})
|
|
2525
|
+
], exports.ɵc);
|
|
2526
|
+
|
|
2433
2527
|
exports.GameStatuses = void 0;
|
|
2434
2528
|
(function (GameStatuses) {
|
|
2435
2529
|
GameStatuses[GameStatuses["open"] = 1] = "open";
|
|
@@ -2613,6 +2707,22 @@
|
|
|
2613
2707
|
enumerable: false,
|
|
2614
2708
|
configurable: true
|
|
2615
2709
|
});
|
|
2710
|
+
Object.defineProperty(Game.prototype, "wrestballGameConfig", {
|
|
2711
|
+
get: function () {
|
|
2712
|
+
if (this._wrestballGameConfig && this._wrestballGameConfig.periodsCount) {
|
|
2713
|
+
return this._wrestballGameConfig;
|
|
2714
|
+
}
|
|
2715
|
+
if (this.gameConfig) {
|
|
2716
|
+
this._wrestballGameConfig = exports.ɵc.toFront(this.gameConfig);
|
|
2717
|
+
}
|
|
2718
|
+
return this._wrestballGameConfig;
|
|
2719
|
+
},
|
|
2720
|
+
set: function (value) {
|
|
2721
|
+
this._wrestballGameConfig = value;
|
|
2722
|
+
},
|
|
2723
|
+
enumerable: false,
|
|
2724
|
+
configurable: true
|
|
2725
|
+
});
|
|
2616
2726
|
Object.defineProperty(Game.prototype, "scoreByPeriodList", {
|
|
2617
2727
|
get: function () {
|
|
2618
2728
|
var _this = this;
|
|
@@ -2737,6 +2847,7 @@
|
|
|
2737
2847
|
handball_game_config: 'handballGameConfig',
|
|
2738
2848
|
rugby_game_config: 'rugbyGameConfig',
|
|
2739
2849
|
waterpolo_game_config: 'waterpoloGameConfig',
|
|
2850
|
+
wrestball_game_config: 'wrestballGameConfig',
|
|
2740
2851
|
score_by_period: 'scoreByPeriod',
|
|
2741
2852
|
playoff_stage: 'playoffStage',
|
|
2742
2853
|
playoff_round: 'playoffRound',
|
|
@@ -2765,6 +2876,7 @@
|
|
|
2765
2876
|
handballGameConfig: exports.HandballGameConfig,
|
|
2766
2877
|
rugbyGameConfig: exports.RugbyGameConfig,
|
|
2767
2878
|
waterpoloGameConfig: exports.WaterpoloGameConfig,
|
|
2879
|
+
wrestballGameConfig: exports.ɵc,
|
|
2768
2880
|
tournamentPlayoff: exports.Playoff,
|
|
2769
2881
|
tournamentCourt: exports.LeagueCourt,
|
|
2770
2882
|
media: listField(exports.MediaItem),
|