@mtgame/core 0.1.28 → 0.1.30
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/api/tournament-api.d.ts +1 -0
- package/bundles/mtgame-core.umd.js +64 -1
- 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/api/tournament-api.js +4 -1
- package/esm2015/models/base-statistic.js +1 -1
- package/esm2015/models/basketball-statistic.js +7 -1
- package/esm2015/models/football-statistic.js +7 -1
- package/esm2015/models/handball-statistic.js +7 -1
- package/esm2015/models/hockey-statistic.js +7 -1
- package/esm2015/models/league-player.js +15 -3
- package/esm2015/models/volleyball-statistic.js +7 -1
- package/esm5/api/tournament-api.js +4 -1
- package/esm5/models/base-statistic.js +1 -1
- package/esm5/models/basketball-statistic.js +11 -1
- package/esm5/models/football-statistic.js +11 -1
- package/esm5/models/handball-statistic.js +11 -1
- package/esm5/models/hockey-statistic.js +11 -1
- package/esm5/models/league-player.js +19 -3
- package/esm5/models/volleyball-statistic.js +11 -1
- package/fesm2015/mtgame-core.js +40 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +64 -1
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/base-statistic.d.ts +3 -0
- package/models/basketball-statistic.d.ts +3 -0
- package/models/football-statistic.d.ts +3 -0
- package/models/handball-statistic.d.ts +3 -0
- package/models/hockey-statistic.d.ts +3 -0
- package/models/league-player.d.ts +4 -0
- package/models/volleyball-statistic.d.ts +3 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/api/tournament-api.d.ts
CHANGED
|
@@ -2541,6 +2541,17 @@
|
|
|
2541
2541
|
enumerable: true,
|
|
2542
2542
|
configurable: true
|
|
2543
2543
|
});
|
|
2544
|
+
Object.defineProperty(LeaguePlayer.prototype, "age", {
|
|
2545
|
+
get: function () {
|
|
2546
|
+
if (!this.birthDate) {
|
|
2547
|
+
return null;
|
|
2548
|
+
}
|
|
2549
|
+
var diff = (new Date()).getTime() - this.birthDate.getTime();
|
|
2550
|
+
return Math.floor(diff / (365 * 86400 * 1000));
|
|
2551
|
+
},
|
|
2552
|
+
enumerable: true,
|
|
2553
|
+
configurable: true
|
|
2554
|
+
});
|
|
2544
2555
|
LeaguePlayer.toFront = function (data) {
|
|
2545
2556
|
};
|
|
2546
2557
|
LeaguePlayer.toBack = function (data) {
|
|
@@ -2560,12 +2571,16 @@
|
|
|
2560
2571
|
first_name: 'firstName',
|
|
2561
2572
|
last_name: 'lastName',
|
|
2562
2573
|
middle_name: 'middleName',
|
|
2574
|
+
birth_date: 'birthDate',
|
|
2563
2575
|
photo: 'photo',
|
|
2576
|
+
user: 'user',
|
|
2564
2577
|
has_changes: 'hasChanges',
|
|
2565
|
-
rating: 'rating'
|
|
2578
|
+
rating: 'rating',
|
|
2566
2579
|
},
|
|
2567
2580
|
relation: {
|
|
2581
|
+
birthDate: DateField,
|
|
2568
2582
|
photo: File,
|
|
2583
|
+
user: User,
|
|
2569
2584
|
}
|
|
2570
2585
|
})
|
|
2571
2586
|
], LeaguePlayer);
|
|
@@ -2625,6 +2640,13 @@
|
|
|
2625
2640
|
enumerable: true,
|
|
2626
2641
|
configurable: true
|
|
2627
2642
|
});
|
|
2643
|
+
Object.defineProperty(BasketballStatistic.prototype, "tournamentTeamPoints", {
|
|
2644
|
+
get: function () {
|
|
2645
|
+
return this.tournamentTeam && this.tournamentTeam.points;
|
|
2646
|
+
},
|
|
2647
|
+
enumerable: true,
|
|
2648
|
+
configurable: true
|
|
2649
|
+
});
|
|
2628
2650
|
BasketballStatistic.toFront = function (data) { };
|
|
2629
2651
|
BasketballStatistic.toBack = function (data) { };
|
|
2630
2652
|
__decorate([
|
|
@@ -2636,6 +2658,7 @@
|
|
|
2636
2658
|
BasketballStatistic = __decorate([
|
|
2637
2659
|
ModelInstance({
|
|
2638
2660
|
mappingFields: {
|
|
2661
|
+
league_player: 'leaguePlayer',
|
|
2639
2662
|
tournament_team_user: 'tournamentTeamUser',
|
|
2640
2663
|
team: 'team',
|
|
2641
2664
|
team_user: 'teamUser',
|
|
@@ -2673,6 +2696,7 @@
|
|
|
2673
2696
|
rank: 'rank',
|
|
2674
2697
|
},
|
|
2675
2698
|
relation: {
|
|
2699
|
+
leaguePlayer: LeaguePlayer,
|
|
2676
2700
|
tournamentTeamUser: TournamentTeamUser,
|
|
2677
2701
|
team: Team,
|
|
2678
2702
|
teamUser: TeamUser,
|
|
@@ -3525,6 +3549,13 @@
|
|
|
3525
3549
|
enumerable: true,
|
|
3526
3550
|
configurable: true
|
|
3527
3551
|
});
|
|
3552
|
+
Object.defineProperty(HockeyStatistic.prototype, "tournamentTeamPoints", {
|
|
3553
|
+
get: function () {
|
|
3554
|
+
return this.tournamentTeam && this.tournamentTeam.points;
|
|
3555
|
+
},
|
|
3556
|
+
enumerable: true,
|
|
3557
|
+
configurable: true
|
|
3558
|
+
});
|
|
3528
3559
|
HockeyStatistic.toFront = function (data) { };
|
|
3529
3560
|
HockeyStatistic.toBack = function (data) { };
|
|
3530
3561
|
__decorate([
|
|
@@ -3536,6 +3567,7 @@
|
|
|
3536
3567
|
HockeyStatistic = __decorate([
|
|
3537
3568
|
ModelInstance({
|
|
3538
3569
|
mappingFields: {
|
|
3570
|
+
league_player: 'leaguePlayer',
|
|
3539
3571
|
tournament_team_user: 'tournamentTeamUser',
|
|
3540
3572
|
team: 'team',
|
|
3541
3573
|
team_user: 'teamUser',
|
|
@@ -3593,6 +3625,7 @@
|
|
|
3593
3625
|
rank: 'rank',
|
|
3594
3626
|
},
|
|
3595
3627
|
relation: {
|
|
3628
|
+
leaguePlayer: LeaguePlayer,
|
|
3596
3629
|
tournamentTeamUser: TournamentTeamUser,
|
|
3597
3630
|
team: Team,
|
|
3598
3631
|
teamUser: TeamUser,
|
|
@@ -4028,6 +4061,13 @@
|
|
|
4028
4061
|
enumerable: true,
|
|
4029
4062
|
configurable: true
|
|
4030
4063
|
});
|
|
4064
|
+
Object.defineProperty(FootballStatistic.prototype, "tournamentTeamPoints", {
|
|
4065
|
+
get: function () {
|
|
4066
|
+
return this.tournamentTeam && this.tournamentTeam.points;
|
|
4067
|
+
},
|
|
4068
|
+
enumerable: true,
|
|
4069
|
+
configurable: true
|
|
4070
|
+
});
|
|
4031
4071
|
FootballStatistic.toFront = function (data) { };
|
|
4032
4072
|
FootballStatistic.toBack = function (data) { };
|
|
4033
4073
|
__decorate([
|
|
@@ -4039,6 +4079,7 @@
|
|
|
4039
4079
|
FootballStatistic = __decorate([
|
|
4040
4080
|
ModelInstance({
|
|
4041
4081
|
mappingFields: {
|
|
4082
|
+
league_player: 'leaguePlayer',
|
|
4042
4083
|
tournament_team_user: 'tournamentTeamUser',
|
|
4043
4084
|
team: 'team',
|
|
4044
4085
|
team_user: 'teamUser',
|
|
@@ -4097,6 +4138,7 @@
|
|
|
4097
4138
|
auto_goals_against: 'autoGoalsAgainst',
|
|
4098
4139
|
},
|
|
4099
4140
|
relation: {
|
|
4141
|
+
leaguePlayer: LeaguePlayer,
|
|
4100
4142
|
tournamentTeamUser: TournamentTeamUser,
|
|
4101
4143
|
team: Team,
|
|
4102
4144
|
teamUser: TeamUser,
|
|
@@ -4476,6 +4518,13 @@
|
|
|
4476
4518
|
enumerable: true,
|
|
4477
4519
|
configurable: true
|
|
4478
4520
|
});
|
|
4521
|
+
Object.defineProperty(HandballStatistic.prototype, "tournamentTeamPoints", {
|
|
4522
|
+
get: function () {
|
|
4523
|
+
return this.tournamentTeam && this.tournamentTeam.points;
|
|
4524
|
+
},
|
|
4525
|
+
enumerable: true,
|
|
4526
|
+
configurable: true
|
|
4527
|
+
});
|
|
4479
4528
|
HandballStatistic.toFront = function (data) { };
|
|
4480
4529
|
HandballStatistic.toBack = function (data) { };
|
|
4481
4530
|
__decorate([
|
|
@@ -4487,6 +4536,7 @@
|
|
|
4487
4536
|
HandballStatistic = __decorate([
|
|
4488
4537
|
ModelInstance({
|
|
4489
4538
|
mappingFields: {
|
|
4539
|
+
league_player: 'leaguePlayer',
|
|
4490
4540
|
tournament_team_user: 'tournamentTeamUser',
|
|
4491
4541
|
team: 'team',
|
|
4492
4542
|
team_user: 'teamUser',
|
|
@@ -4534,6 +4584,7 @@
|
|
|
4534
4584
|
rank: 'rank',
|
|
4535
4585
|
},
|
|
4536
4586
|
relation: {
|
|
4587
|
+
leaguePlayer: LeaguePlayer,
|
|
4537
4588
|
tournamentTeamUser: TournamentTeamUser,
|
|
4538
4589
|
team: Team,
|
|
4539
4590
|
teamUser: TeamUser,
|
|
@@ -4769,6 +4820,13 @@
|
|
|
4769
4820
|
function VolleyballStatistic() {
|
|
4770
4821
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
4771
4822
|
}
|
|
4823
|
+
Object.defineProperty(VolleyballStatistic.prototype, "tournamentTeamPoints", {
|
|
4824
|
+
get: function () {
|
|
4825
|
+
return this.tournamentTeam && this.tournamentTeam.points;
|
|
4826
|
+
},
|
|
4827
|
+
enumerable: true,
|
|
4828
|
+
configurable: true
|
|
4829
|
+
});
|
|
4772
4830
|
VolleyballStatistic.toFront = function (data) { };
|
|
4773
4831
|
VolleyballStatistic.toBack = function (data) { };
|
|
4774
4832
|
__decorate([
|
|
@@ -4782,6 +4840,7 @@
|
|
|
4782
4840
|
mappingFields: {
|
|
4783
4841
|
team: 'team',
|
|
4784
4842
|
team_user: 'teamUser',
|
|
4843
|
+
league_player: 'leaguePlayer',
|
|
4785
4844
|
tournament_team_user: 'tournamentTeamUser',
|
|
4786
4845
|
tournament_team: 'tournamentTeam',
|
|
4787
4846
|
user: 'user',
|
|
@@ -4818,6 +4877,7 @@
|
|
|
4818
4877
|
relation: {
|
|
4819
4878
|
team: Team,
|
|
4820
4879
|
teamUser: TeamUser,
|
|
4880
|
+
leaguePlayer: LeaguePlayer,
|
|
4821
4881
|
tournamentTeamUser: TournamentTeamUser,
|
|
4822
4882
|
tournamentTeam: TournamentTeam,
|
|
4823
4883
|
user: User,
|
|
@@ -5442,6 +5502,9 @@
|
|
|
5442
5502
|
if (filters.tournamentCourtId) {
|
|
5443
5503
|
params = params.set('tournament_court_id', filters.tournamentCourtId.toString());
|
|
5444
5504
|
}
|
|
5505
|
+
if (filters.leaguePlayerId) {
|
|
5506
|
+
params = params.set('league_player_id', filters.leaguePlayerId.toString());
|
|
5507
|
+
}
|
|
5445
5508
|
if (filters.userId) {
|
|
5446
5509
|
params = params.set('user_id', filters.userId.toString());
|
|
5447
5510
|
}
|