@mtgame/core 0.2.70 → 0.2.72
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 +364 -14
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/public-api.js +7 -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-game-log.js +128 -0
- package/esm2015/models/wrestball-game-statistic.js +100 -0
- package/esm2015/models/wrestball-game-team-statistic.js +27 -0
- package/esm2015/models/wrestball-profile.js +33 -0
- package/esm2015/mtgame-core.js +1 -2
- package/fesm2015/mtgame-core.js +293 -2
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/public-api.d.ts +6 -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 +1 -0
- package/models/wrestball-game-log.d.ts +64 -0
- package/models/wrestball-game-statistic.d.ts +52 -0
- package/models/wrestball-game-team-statistic.d.ts +9 -0
- package/models/wrestball-profile.d.ts +12 -0
- package/mtgame-core.d.ts +0 -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.WrestballWorkHand = void 0;
|
|
1239
|
+
(function (WrestballWorkHand) {
|
|
1240
|
+
WrestballWorkHand[WrestballWorkHand["left"] = 1] = "left";
|
|
1241
|
+
WrestballWorkHand[WrestballWorkHand["right"] = 2] = "right";
|
|
1242
|
+
})(exports.WrestballWorkHand || (exports.WrestballWorkHand = {}));
|
|
1243
|
+
exports.WrestballProfile = /** @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.WrestballProfile, "toFront", null);
|
|
1257
|
+
__decorate([
|
|
1258
|
+
ToBackHook
|
|
1259
|
+
], exports.WrestballProfile, "toBack", null);
|
|
1260
|
+
exports.WrestballProfile = __decorate([
|
|
1261
|
+
ModelInstance({
|
|
1262
|
+
mappingFields: {
|
|
1263
|
+
id: 'id',
|
|
1264
|
+
user_id: 'userId',
|
|
1265
|
+
work_hand: 'workHand'
|
|
1266
|
+
},
|
|
1267
|
+
relation: {
|
|
1268
|
+
workHand: enumField(exports.WrestballWorkHand)
|
|
1269
|
+
}
|
|
1270
|
+
})
|
|
1271
|
+
], exports.WrestballProfile);
|
|
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.WrestballProfile,
|
|
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.WrestballGameConfig = /** @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.WrestballGameConfig, "toFront", null);
|
|
2445
2495
|
__decorate([
|
|
2446
2496
|
ToBackHook
|
|
2447
|
-
], exports
|
|
2448
|
-
exports
|
|
2497
|
+
], exports.WrestballGameConfig, "toBack", null);
|
|
2498
|
+
exports.WrestballGameConfig = __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.WrestballGameConfig);
|
|
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.WrestballGameConfig.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.WrestballGameConfig,
|
|
2829
2880
|
tournamentPlayoff: exports.Playoff,
|
|
2830
2881
|
tournamentCourt: exports.LeagueCourt,
|
|
2831
2882
|
media: listField(exports.MediaItem),
|
|
@@ -7404,7 +7455,7 @@
|
|
|
7404
7455
|
})
|
|
7405
7456
|
], exports.TournamentRound);
|
|
7406
7457
|
|
|
7407
|
-
|
|
7458
|
+
exports.WrestballStatistic = /** @class */ (function (_super) {
|
|
7408
7459
|
__extends(WrestballStatistic, _super);
|
|
7409
7460
|
function WrestballStatistic() {
|
|
7410
7461
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7483,11 +7534,11 @@
|
|
|
7483
7534
|
}(BaseModel));
|
|
7484
7535
|
__decorate([
|
|
7485
7536
|
ToFrontHook
|
|
7486
|
-
], WrestballStatistic, "toFront", null);
|
|
7537
|
+
], exports.WrestballStatistic, "toFront", null);
|
|
7487
7538
|
__decorate([
|
|
7488
7539
|
ToBackHook
|
|
7489
|
-
], WrestballStatistic, "toBack", null);
|
|
7490
|
-
WrestballStatistic = __decorate([
|
|
7540
|
+
], exports.WrestballStatistic, "toBack", null);
|
|
7541
|
+
exports.WrestballStatistic = __decorate([
|
|
7491
7542
|
ModelInstance({
|
|
7492
7543
|
mappingFields: {
|
|
7493
7544
|
league_player: 'leaguePlayer',
|
|
@@ -7553,7 +7604,7 @@
|
|
|
7553
7604
|
month: DateField
|
|
7554
7605
|
}
|
|
7555
7606
|
})
|
|
7556
|
-
], WrestballStatistic);
|
|
7607
|
+
], exports.WrestballStatistic);
|
|
7557
7608
|
|
|
7558
7609
|
var TournamentApi = /** @class */ (function () {
|
|
7559
7610
|
function TournamentApi(httpClient, configService) {
|
|
@@ -8045,7 +8096,7 @@
|
|
|
8045
8096
|
params = applyStatisticFilters(filters, params);
|
|
8046
8097
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/wrestball_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
|
|
8047
8098
|
total: +result.headers.get('X-Page-Count'),
|
|
8048
|
-
data: WrestballStatistic.toFront(result.body)
|
|
8099
|
+
data: exports.WrestballStatistic.toFront(result.body)
|
|
8049
8100
|
}); })).toPromise()];
|
|
8050
8101
|
});
|
|
8051
8102
|
});
|
|
@@ -13999,6 +14050,305 @@
|
|
|
13999
14050
|
})
|
|
14000
14051
|
], exports.OrganizationStatistic);
|
|
14001
14052
|
|
|
14053
|
+
exports.WrestballGameLogTypes = void 0;
|
|
14054
|
+
(function (WrestballGameLogTypes) {
|
|
14055
|
+
WrestballGameLogTypes[WrestballGameLogTypes["enter_game"] = 1] = "enter_game";
|
|
14056
|
+
WrestballGameLogTypes[WrestballGameLogTypes["exit_game"] = 2] = "exit_game";
|
|
14057
|
+
WrestballGameLogTypes[WrestballGameLogTypes["remove_game"] = 3] = "remove_game";
|
|
14058
|
+
WrestballGameLogTypes[WrestballGameLogTypes["one_point_made"] = 4] = "one_point_made";
|
|
14059
|
+
WrestballGameLogTypes[WrestballGameLogTypes["one_point_attempt"] = 5] = "one_point_attempt";
|
|
14060
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_made"] = 6] = "two_point_made";
|
|
14061
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_attempt"] = 7] = "two_point_attempt";
|
|
14062
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_made"] = 8] = "three_point_made";
|
|
14063
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_attempt"] = 9] = "three_point_attempt";
|
|
14064
|
+
WrestballGameLogTypes[WrestballGameLogTypes["free_throw_made"] = 10] = "free_throw_made";
|
|
14065
|
+
WrestballGameLogTypes[WrestballGameLogTypes["free_throw_attempt"] = 11] = "free_throw_attempt";
|
|
14066
|
+
WrestballGameLogTypes[WrestballGameLogTypes["assist"] = 12] = "assist";
|
|
14067
|
+
WrestballGameLogTypes[WrestballGameLogTypes["block"] = 13] = "block";
|
|
14068
|
+
WrestballGameLogTypes[WrestballGameLogTypes["rebound"] = 14] = "rebound";
|
|
14069
|
+
WrestballGameLogTypes[WrestballGameLogTypes["offensive_rebound"] = 15] = "offensive_rebound";
|
|
14070
|
+
WrestballGameLogTypes[WrestballGameLogTypes["defensive_rebound"] = 16] = "defensive_rebound";
|
|
14071
|
+
WrestballGameLogTypes[WrestballGameLogTypes["team_rebound"] = 17] = "team_rebound";
|
|
14072
|
+
WrestballGameLogTypes[WrestballGameLogTypes["steal"] = 18] = "steal";
|
|
14073
|
+
WrestballGameLogTypes[WrestballGameLogTypes["turnover"] = 19] = "turnover";
|
|
14074
|
+
WrestballGameLogTypes[WrestballGameLogTypes["personal_foul"] = 20] = "personal_foul";
|
|
14075
|
+
WrestballGameLogTypes[WrestballGameLogTypes["timeout"] = 21] = "timeout";
|
|
14076
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum"] = 22] = "wrestler_scrum";
|
|
14077
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_won"] = 23] = "wrestler_scrum_won";
|
|
14078
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_lost"] = 24] = "wrestler_scrum_lost";
|
|
14079
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_tie"] = 25] = "wrestler_scrum_tie";
|
|
14080
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum"] = 26] = "scrum";
|
|
14081
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_won"] = 27] = "scrum_won";
|
|
14082
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_lost"] = 28] = "scrum_lost";
|
|
14083
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_tie"] = 29] = "scrum_tie";
|
|
14084
|
+
WrestballGameLogTypes[WrestballGameLogTypes["yellow_card"] = 30] = "yellow_card";
|
|
14085
|
+
WrestballGameLogTypes[WrestballGameLogTypes["red_card"] = 31] = "red_card";
|
|
14086
|
+
})(exports.WrestballGameLogTypes || (exports.WrestballGameLogTypes = {}));
|
|
14087
|
+
exports.WrestballGameLog = /** @class */ (function (_super) {
|
|
14088
|
+
__extends(WrestballGameLog, _super);
|
|
14089
|
+
function WrestballGameLog() {
|
|
14090
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
14091
|
+
_this.active = true;
|
|
14092
|
+
return _this;
|
|
14093
|
+
}
|
|
14094
|
+
WrestballGameLog.prototype.isPointsType = function () {
|
|
14095
|
+
return [
|
|
14096
|
+
exports.WrestballGameLogTypes.two_point_made,
|
|
14097
|
+
exports.WrestballGameLogTypes.three_point_made,
|
|
14098
|
+
exports.WrestballGameLogTypes.free_throw_made,
|
|
14099
|
+
exports.WrestballGameLogTypes.one_point_made,
|
|
14100
|
+
exports.WrestballGameLogTypes.scrum_won,
|
|
14101
|
+
exports.WrestballGameLogTypes.wrestler_scrum_won,
|
|
14102
|
+
].indexOf(this.logType) > -1;
|
|
14103
|
+
};
|
|
14104
|
+
WrestballGameLog.prototype.isReboundType = function () {
|
|
14105
|
+
return [
|
|
14106
|
+
exports.WrestballGameLogTypes.rebound,
|
|
14107
|
+
exports.WrestballGameLogTypes.offensive_rebound,
|
|
14108
|
+
exports.WrestballGameLogTypes.defensive_rebound,
|
|
14109
|
+
exports.WrestballGameLogTypes.team_rebound,
|
|
14110
|
+
].indexOf(this.logType) > -1;
|
|
14111
|
+
};
|
|
14112
|
+
WrestballGameLog.prototype.isFoulType = function () {
|
|
14113
|
+
return [
|
|
14114
|
+
exports.WrestballGameLogTypes.personal_foul,
|
|
14115
|
+
].indexOf(this.logType) > -1;
|
|
14116
|
+
};
|
|
14117
|
+
WrestballGameLog.prototype.getScore = function () {
|
|
14118
|
+
var _a;
|
|
14119
|
+
var scoreMapping = (_a = {},
|
|
14120
|
+
_a[exports.WrestballGameLogTypes.one_point_made] = 1,
|
|
14121
|
+
_a[exports.WrestballGameLogTypes.free_throw_made] = 1,
|
|
14122
|
+
_a[exports.WrestballGameLogTypes.two_point_made] = 2,
|
|
14123
|
+
_a[exports.WrestballGameLogTypes.three_point_made] = 3,
|
|
14124
|
+
_a[exports.WrestballGameLogTypes.scrum_won] = 2,
|
|
14125
|
+
_a[exports.WrestballGameLogTypes.wrestler_scrum_won] = 2,
|
|
14126
|
+
_a);
|
|
14127
|
+
return scoreMapping[this.logType] || 0;
|
|
14128
|
+
};
|
|
14129
|
+
WrestballGameLog.prototype.compare = function (model) {
|
|
14130
|
+
if (this.time === model.time && this.period === model.period) {
|
|
14131
|
+
if (this.datetime.getTime() === model.datetime.getTime()) {
|
|
14132
|
+
return this.id > model.id ? 1 : -1;
|
|
14133
|
+
}
|
|
14134
|
+
return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
|
|
14135
|
+
}
|
|
14136
|
+
if (this.period === model.period) {
|
|
14137
|
+
return this.time < model.time ? 1 : -1;
|
|
14138
|
+
}
|
|
14139
|
+
return this.period < model.period ? 1 : -1;
|
|
14140
|
+
};
|
|
14141
|
+
Object.defineProperty(WrestballGameLog.prototype, "timeFormatted", {
|
|
14142
|
+
get: function () {
|
|
14143
|
+
var minutes = Math.floor(this.time / 60);
|
|
14144
|
+
var seconds = this.time - minutes * 60;
|
|
14145
|
+
return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
|
|
14146
|
+
},
|
|
14147
|
+
enumerable: false,
|
|
14148
|
+
configurable: true
|
|
14149
|
+
});
|
|
14150
|
+
WrestballGameLog.toFront = function (value) { };
|
|
14151
|
+
WrestballGameLog.toBack = function (value) { };
|
|
14152
|
+
return WrestballGameLog;
|
|
14153
|
+
}(BaseModel));
|
|
14154
|
+
__decorate([
|
|
14155
|
+
ToFrontHook
|
|
14156
|
+
], exports.WrestballGameLog, "toFront", null);
|
|
14157
|
+
__decorate([
|
|
14158
|
+
ToBackHook
|
|
14159
|
+
], exports.WrestballGameLog, "toBack", null);
|
|
14160
|
+
exports.WrestballGameLog = __decorate([
|
|
14161
|
+
ModelInstance({
|
|
14162
|
+
mappingFields: {
|
|
14163
|
+
id: 'id',
|
|
14164
|
+
unique_id: 'uniqueId',
|
|
14165
|
+
game_id: 'gameId',
|
|
14166
|
+
game_user_id: 'gameUserId',
|
|
14167
|
+
team_id: 'teamId',
|
|
14168
|
+
log_type: 'logType',
|
|
14169
|
+
datetime: 'datetime',
|
|
14170
|
+
time: 'time',
|
|
14171
|
+
period: 'period',
|
|
14172
|
+
active: 'active',
|
|
14173
|
+
is_highlight: 'isHighlight',
|
|
14174
|
+
foul_on_game_user_id: 'foulOnGameUserId',
|
|
14175
|
+
is_coach: 'isCoach',
|
|
14176
|
+
is_bench: 'isBench',
|
|
14177
|
+
marked: 'marked',
|
|
14178
|
+
},
|
|
14179
|
+
relation: {
|
|
14180
|
+
datetime: DateTimeField,
|
|
14181
|
+
logType: enumField(exports.WrestballGameLogTypes),
|
|
14182
|
+
}
|
|
14183
|
+
})
|
|
14184
|
+
], exports.WrestballGameLog);
|
|
14185
|
+
|
|
14186
|
+
exports.WrestballGameStatistic = /** @class */ (function (_super) {
|
|
14187
|
+
__extends(WrestballGameStatistic, _super);
|
|
14188
|
+
function WrestballGameStatistic() {
|
|
14189
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14190
|
+
}
|
|
14191
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "id", {
|
|
14192
|
+
get: function () {
|
|
14193
|
+
return this.gameUserId;
|
|
14194
|
+
},
|
|
14195
|
+
enumerable: false,
|
|
14196
|
+
configurable: true
|
|
14197
|
+
});
|
|
14198
|
+
WrestballGameStatistic.toFront = function (data) { };
|
|
14199
|
+
WrestballGameStatistic.toBack = function (data) { };
|
|
14200
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "totalFouls", {
|
|
14201
|
+
get: function () {
|
|
14202
|
+
return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0) + (this.disqualificationFouls || 0);
|
|
14203
|
+
},
|
|
14204
|
+
enumerable: false,
|
|
14205
|
+
configurable: true
|
|
14206
|
+
});
|
|
14207
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "onePointPercent", {
|
|
14208
|
+
get: function () {
|
|
14209
|
+
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
14210
|
+
return 0;
|
|
14211
|
+
}
|
|
14212
|
+
return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
|
|
14213
|
+
},
|
|
14214
|
+
set: function (v) { },
|
|
14215
|
+
enumerable: false,
|
|
14216
|
+
configurable: true
|
|
14217
|
+
});
|
|
14218
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "twoPointPercent", {
|
|
14219
|
+
get: function () {
|
|
14220
|
+
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
14221
|
+
return 0;
|
|
14222
|
+
}
|
|
14223
|
+
return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
|
|
14224
|
+
},
|
|
14225
|
+
set: function (v) { },
|
|
14226
|
+
enumerable: false,
|
|
14227
|
+
configurable: true
|
|
14228
|
+
});
|
|
14229
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "threePointPercent", {
|
|
14230
|
+
get: function () {
|
|
14231
|
+
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
14232
|
+
return 0;
|
|
14233
|
+
}
|
|
14234
|
+
return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
|
|
14235
|
+
},
|
|
14236
|
+
set: function (v) { },
|
|
14237
|
+
enumerable: false,
|
|
14238
|
+
configurable: true
|
|
14239
|
+
});
|
|
14240
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "freeThrowPercent", {
|
|
14241
|
+
get: function () {
|
|
14242
|
+
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
14243
|
+
return 0;
|
|
14244
|
+
}
|
|
14245
|
+
return Math.round(1000 * this.freeThrowsMade / this.freeThrowAttempts) / 10;
|
|
14246
|
+
},
|
|
14247
|
+
set: function (v) { },
|
|
14248
|
+
enumerable: false,
|
|
14249
|
+
configurable: true
|
|
14250
|
+
});
|
|
14251
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "totalRebounds", {
|
|
14252
|
+
get: function () {
|
|
14253
|
+
return Math.floor(10 * ((this.offensiveRebounds || 0) + (this.defensiveRebounds || 0))) / 10;
|
|
14254
|
+
},
|
|
14255
|
+
enumerable: false,
|
|
14256
|
+
configurable: true
|
|
14257
|
+
});
|
|
14258
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "wrestlerScrums", {
|
|
14259
|
+
get: function () {
|
|
14260
|
+
return (this.wrestlerScrumsWon || 0) + (this.wrestlerScrumsLost || 0) + (this.wrestlerScrumsTie || 0);
|
|
14261
|
+
},
|
|
14262
|
+
enumerable: false,
|
|
14263
|
+
configurable: true
|
|
14264
|
+
});
|
|
14265
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "scrums", {
|
|
14266
|
+
get: function () {
|
|
14267
|
+
return (this.scrumsWon || 0) + (this.scrumsLost || 0) + (this.scrumsTie || 0);
|
|
14268
|
+
},
|
|
14269
|
+
enumerable: false,
|
|
14270
|
+
configurable: true
|
|
14271
|
+
});
|
|
14272
|
+
return WrestballGameStatistic;
|
|
14273
|
+
}(BaseModel));
|
|
14274
|
+
__decorate([
|
|
14275
|
+
ToFrontHook
|
|
14276
|
+
], exports.WrestballGameStatistic, "toFront", null);
|
|
14277
|
+
__decorate([
|
|
14278
|
+
ToBackHook
|
|
14279
|
+
], exports.WrestballGameStatistic, "toBack", null);
|
|
14280
|
+
exports.WrestballGameStatistic = __decorate([
|
|
14281
|
+
ModelInstance({
|
|
14282
|
+
mappingFields: {
|
|
14283
|
+
game_user_id: 'gameUserId',
|
|
14284
|
+
points: 'points',
|
|
14285
|
+
free_throws_made: 'freeThrowsMade',
|
|
14286
|
+
two_points_made: 'twoPointsMade',
|
|
14287
|
+
three_points_made: 'threePointsMade',
|
|
14288
|
+
one_points_made: 'onePointsMade',
|
|
14289
|
+
two_point_attempts: 'twoPointAttempts',
|
|
14290
|
+
three_point_attempts: 'threePointAttempts',
|
|
14291
|
+
free_throw_attempts: 'freeThrowAttempts',
|
|
14292
|
+
one_point_attempts: 'onePointAttempts',
|
|
14293
|
+
one_point_percent: 'onePointPercent',
|
|
14294
|
+
two_point_percent: 'twoPointPercent',
|
|
14295
|
+
three_point_percent: 'threePointPercent',
|
|
14296
|
+
free_throw_percent: 'freeThrowPercent',
|
|
14297
|
+
assists: 'assists',
|
|
14298
|
+
blocks: 'blocks',
|
|
14299
|
+
rebounds: 'rebounds',
|
|
14300
|
+
offensive_rebounds: 'offensiveRebounds',
|
|
14301
|
+
defensive_rebounds: 'defensiveRebounds',
|
|
14302
|
+
steals: 'steals',
|
|
14303
|
+
turnovers: 'turnovers',
|
|
14304
|
+
personal_fouls: 'personalFouls',
|
|
14305
|
+
drawn_fouls: 'drawnFouls',
|
|
14306
|
+
wrestler_scrums_won: 'wrestlerScrumsWon',
|
|
14307
|
+
wrestler_scrums_lost: 'wrestlerScrumsLost',
|
|
14308
|
+
wrestler_scrums_tie: 'wrestlerScrumsTie',
|
|
14309
|
+
wrestler_scrum_points: 'wrestlerScrumPoints',
|
|
14310
|
+
scrums_won: 'scrumsWon',
|
|
14311
|
+
scrums_lost: 'scrumsLost',
|
|
14312
|
+
scrums_tie: 'scrumsTie',
|
|
14313
|
+
scrum_points: 'scrumPoints',
|
|
14314
|
+
yellow_cards: 'yellowCards',
|
|
14315
|
+
red_cards: 'redCards',
|
|
14316
|
+
updated_at: 'updatedAt',
|
|
14317
|
+
},
|
|
14318
|
+
relation: {
|
|
14319
|
+
updatedAt: DateTimeField,
|
|
14320
|
+
}
|
|
14321
|
+
})
|
|
14322
|
+
], exports.WrestballGameStatistic);
|
|
14323
|
+
|
|
14324
|
+
exports.WrestballGameTeamStatistic = /** @class */ (function (_super) {
|
|
14325
|
+
__extends(WrestballGameTeamStatistic, _super);
|
|
14326
|
+
function WrestballGameTeamStatistic() {
|
|
14327
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14328
|
+
}
|
|
14329
|
+
WrestballGameTeamStatistic.toFront = function (data) { };
|
|
14330
|
+
WrestballGameTeamStatistic.toBack = function (data) { };
|
|
14331
|
+
return WrestballGameTeamStatistic;
|
|
14332
|
+
}(BaseModel));
|
|
14333
|
+
__decorate([
|
|
14334
|
+
ToFrontHook
|
|
14335
|
+
], exports.WrestballGameTeamStatistic, "toFront", null);
|
|
14336
|
+
__decorate([
|
|
14337
|
+
ToBackHook
|
|
14338
|
+
], exports.WrestballGameTeamStatistic, "toBack", null);
|
|
14339
|
+
exports.WrestballGameTeamStatistic = __decorate([
|
|
14340
|
+
ModelInstance({
|
|
14341
|
+
mappingFields: {
|
|
14342
|
+
team: 'team',
|
|
14343
|
+
competitor_team: 'competitorTeam'
|
|
14344
|
+
},
|
|
14345
|
+
relation: {
|
|
14346
|
+
team: exports.WrestballStatistic,
|
|
14347
|
+
competitorTeam: exports.WrestballStatistic
|
|
14348
|
+
}
|
|
14349
|
+
})
|
|
14350
|
+
], exports.WrestballGameTeamStatistic);
|
|
14351
|
+
|
|
14002
14352
|
var CentrifugoService = /** @class */ (function () {
|
|
14003
14353
|
function CentrifugoService(httpClient, configService, platformId) {
|
|
14004
14354
|
this.httpClient = httpClient;
|