@mtgame/core 0.1.114 → 0.1.115
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/public-api.d.ts +1 -0
- package/api/tournament-api.d.ts +5 -0
- package/api/waterpolo-game-api.d.ts +18 -0
- package/bundles/mtgame-core.umd.js +1029 -155
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/tournament-api.js +24 -1
- package/esm2015/api/waterpolo-game-api.js +65 -0
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/localization/user-profile.js +18 -1
- package/esm2015/localization/waterpolo-game-log-types.js +34 -0
- package/esm2015/models/game.js +18 -2
- package/esm2015/models/public-api.js +7 -1
- package/esm2015/models/sport.js +13 -1
- package/esm2015/models/team.js +7 -1
- package/esm2015/models/tournament.js +10 -1
- package/esm2015/models/user.js +4 -1
- package/esm2015/models/waterpolo-game-config.js +44 -0
- package/esm2015/models/waterpolo-game-log.js +125 -0
- package/esm2015/models/waterpolo-game-statistic.js +152 -0
- package/esm2015/models/waterpolo-game-team-statistic.js +27 -0
- package/esm2015/models/waterpolo-profile.js +42 -0
- package/esm2015/models/waterpolo-statistic.js +133 -0
- package/fesm2015/mtgame-core.js +665 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/localization/public-api.d.ts +1 -0
- package/localization/user-profile.d.ts +16 -0
- package/localization/waterpolo-game-log-types.d.ts +32 -0
- package/models/game.d.ts +5 -1
- package/models/public-api.d.ts +6 -0
- package/models/sport.d.ts +7 -1
- package/models/user.d.ts +2 -0
- package/models/waterpolo-game-config.d.ts +19 -0
- package/models/waterpolo-game-log.d.ts +72 -0
- package/models/waterpolo-game-statistic.d.ts +73 -0
- package/models/waterpolo-game-team-statistic.d.ts +9 -0
- package/models/waterpolo-profile.d.ts +19 -0
- package/models/waterpolo-statistic.d.ts +92 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -369,6 +369,9 @@ var SportTypes;
|
|
|
369
369
|
SportTypes[SportTypes["rugby7"] = 16] = "rugby7";
|
|
370
370
|
SportTypes[SportTypes["rugby15"] = 17] = "rugby15";
|
|
371
371
|
SportTypes[SportTypes["basketball_1x1"] = 18] = "basketball_1x1";
|
|
372
|
+
SportTypes[SportTypes["waterpolo"] = 19] = "waterpolo";
|
|
373
|
+
SportTypes[SportTypes["classic_waterpolo"] = 20] = "classic_waterpolo";
|
|
374
|
+
SportTypes[SportTypes["mini_waterpolo"] = 21] = "mini_waterpolo";
|
|
372
375
|
})(SportTypes || (SportTypes = {}));
|
|
373
376
|
let Sport = class Sport extends BaseModel {
|
|
374
377
|
isBasketball() {
|
|
@@ -425,6 +428,15 @@ let Sport = class Sport extends BaseModel {
|
|
|
425
428
|
isRugby7() {
|
|
426
429
|
return this.id === SportTypes.rugby7;
|
|
427
430
|
}
|
|
431
|
+
isWaterpolo() {
|
|
432
|
+
return this.id === SportTypes.waterpolo || this.parentId === SportTypes.waterpolo;
|
|
433
|
+
}
|
|
434
|
+
isClassicWaterpolo() {
|
|
435
|
+
return this.id === SportTypes.classic_waterpolo;
|
|
436
|
+
}
|
|
437
|
+
isMiniWaterpolo() {
|
|
438
|
+
return this.id === SportTypes.mini_waterpolo;
|
|
439
|
+
}
|
|
428
440
|
static toFront(data) {
|
|
429
441
|
return null;
|
|
430
442
|
}
|
|
@@ -716,6 +728,45 @@ RugbyProfile = __decorate([
|
|
|
716
728
|
})
|
|
717
729
|
], RugbyProfile);
|
|
718
730
|
|
|
731
|
+
var GameWaterpoloPosition;
|
|
732
|
+
(function (GameWaterpoloPosition) {
|
|
733
|
+
GameWaterpoloPosition[GameWaterpoloPosition["goalkeeper"] = 1] = "goalkeeper";
|
|
734
|
+
GameWaterpoloPosition[GameWaterpoloPosition["defensemen"] = 2] = "defensemen";
|
|
735
|
+
GameWaterpoloPosition[GameWaterpoloPosition["center_forward"] = 3] = "center_forward";
|
|
736
|
+
GameWaterpoloPosition[GameWaterpoloPosition["mobile_forward"] = 4] = "mobile_forward";
|
|
737
|
+
})(GameWaterpoloPosition || (GameWaterpoloPosition = {}));
|
|
738
|
+
var WaterpoloWorkHand;
|
|
739
|
+
(function (WaterpoloWorkHand) {
|
|
740
|
+
WaterpoloWorkHand[WaterpoloWorkHand["left"] = 1] = "left";
|
|
741
|
+
WaterpoloWorkHand[WaterpoloWorkHand["right"] = 2] = "right";
|
|
742
|
+
})(WaterpoloWorkHand || (WaterpoloWorkHand = {}));
|
|
743
|
+
let WaterpoloProfile = class WaterpoloProfile extends BaseModel {
|
|
744
|
+
static toFront(value) {
|
|
745
|
+
}
|
|
746
|
+
static toBack(value) {
|
|
747
|
+
}
|
|
748
|
+
};
|
|
749
|
+
__decorate([
|
|
750
|
+
ToFrontHook
|
|
751
|
+
], WaterpoloProfile, "toFront", null);
|
|
752
|
+
__decorate([
|
|
753
|
+
ToBackHook
|
|
754
|
+
], WaterpoloProfile, "toBack", null);
|
|
755
|
+
WaterpoloProfile = __decorate([
|
|
756
|
+
ModelInstance({
|
|
757
|
+
mappingFields: {
|
|
758
|
+
id: 'id',
|
|
759
|
+
user_id: 'userId',
|
|
760
|
+
position: 'position',
|
|
761
|
+
work_hand: 'workHand'
|
|
762
|
+
},
|
|
763
|
+
relation: {
|
|
764
|
+
position: enumField(GameWaterpoloPosition),
|
|
765
|
+
workHand: enumField(WaterpoloWorkHand)
|
|
766
|
+
}
|
|
767
|
+
})
|
|
768
|
+
], WaterpoloProfile);
|
|
769
|
+
|
|
719
770
|
var UserGender;
|
|
720
771
|
(function (UserGender) {
|
|
721
772
|
UserGender[UserGender["male"] = 1] = "male";
|
|
@@ -769,6 +820,7 @@ User = __decorate([
|
|
|
769
820
|
football_profile: 'footballProfile',
|
|
770
821
|
handball_profile: 'handballProfile',
|
|
771
822
|
rugby_profile: 'rugbyProfile',
|
|
823
|
+
wateprolo_profile: 'waterpoloProfile',
|
|
772
824
|
wizards: 'wizards',
|
|
773
825
|
city: 'city',
|
|
774
826
|
gender: 'gender',
|
|
@@ -784,6 +836,7 @@ User = __decorate([
|
|
|
784
836
|
footballProfile: FootballProfile,
|
|
785
837
|
handballProfile: HandballProfile,
|
|
786
838
|
rugbyProfile: RugbyProfile,
|
|
839
|
+
waterpoloProfile: WaterpoloProfile,
|
|
787
840
|
city: City,
|
|
788
841
|
gender: enumField(UserGender)
|
|
789
842
|
}
|
|
@@ -808,6 +861,12 @@ let Team = class Team extends BaseModel {
|
|
|
808
861
|
if (this.sport.isHandball()) {
|
|
809
862
|
classList.push('empty-logo-handball');
|
|
810
863
|
}
|
|
864
|
+
if (this.sport.isRugby()) {
|
|
865
|
+
classList.push('empty-logo-rugby');
|
|
866
|
+
}
|
|
867
|
+
if (this.sport.isWaterpolo()) {
|
|
868
|
+
classList.push('empty-logo-waterpolo');
|
|
869
|
+
}
|
|
811
870
|
return classList.join(' ');
|
|
812
871
|
}
|
|
813
872
|
static toFront(data) {
|
|
@@ -1156,6 +1215,15 @@ let Tournament = class Tournament extends BaseModel {
|
|
|
1156
1215
|
if (this.sport.isFootball()) {
|
|
1157
1216
|
classList.push('empty-logo-football');
|
|
1158
1217
|
}
|
|
1218
|
+
if (this.sport.isHandball()) {
|
|
1219
|
+
classList.push('empty-logo-handball');
|
|
1220
|
+
}
|
|
1221
|
+
if (this.sport.isRugby()) {
|
|
1222
|
+
classList.push('empty-logo-rugby');
|
|
1223
|
+
}
|
|
1224
|
+
if (this.sport.isWaterpolo()) {
|
|
1225
|
+
classList.push('empty-logo-waterpolo');
|
|
1226
|
+
}
|
|
1159
1227
|
return classList.join(' ');
|
|
1160
1228
|
}
|
|
1161
1229
|
static toFront(data) { }
|
|
@@ -1618,6 +1686,46 @@ RugbyGameConfig = __decorate([
|
|
|
1618
1686
|
})
|
|
1619
1687
|
], RugbyGameConfig);
|
|
1620
1688
|
|
|
1689
|
+
let WaterpoloGameConfig = class WaterpoloGameConfig extends BaseModel {
|
|
1690
|
+
static toFront(data) { }
|
|
1691
|
+
static toBack(data) { }
|
|
1692
|
+
get overtimePeriod() {
|
|
1693
|
+
return this.periodsCount + 1;
|
|
1694
|
+
}
|
|
1695
|
+
get bullitsPeriod() {
|
|
1696
|
+
return this.periodsCount + 2;
|
|
1697
|
+
}
|
|
1698
|
+
get playoffBullitsPeriod() {
|
|
1699
|
+
return this.periodsCount + 3;
|
|
1700
|
+
}
|
|
1701
|
+
};
|
|
1702
|
+
__decorate([
|
|
1703
|
+
ToFrontHook
|
|
1704
|
+
], WaterpoloGameConfig, "toFront", null);
|
|
1705
|
+
__decorate([
|
|
1706
|
+
ToBackHook
|
|
1707
|
+
], WaterpoloGameConfig, "toBack", null);
|
|
1708
|
+
WaterpoloGameConfig = __decorate([
|
|
1709
|
+
ModelInstance({
|
|
1710
|
+
mappingFields: {
|
|
1711
|
+
periods_count: 'periodsCount',
|
|
1712
|
+
period_time: 'periodTime',
|
|
1713
|
+
overtime_type: 'overtimeType',
|
|
1714
|
+
overtime_time: 'overtimeTime',
|
|
1715
|
+
max_game_players: 'maxGamePlayers',
|
|
1716
|
+
timeout_count: 'timeoutCount',
|
|
1717
|
+
overtime_timeout_count: 'overtimeTimeoutCount',
|
|
1718
|
+
timeout_time: 'timeoutTime',
|
|
1719
|
+
game_time_type: 'gameTimeType',
|
|
1720
|
+
substitute_manage_enabled: 'substituteManageEnabled',
|
|
1721
|
+
},
|
|
1722
|
+
relation: {
|
|
1723
|
+
overtimeType: enumField(OvertimeTypes),
|
|
1724
|
+
gameTimeType: enumField(GameTimeTypes),
|
|
1725
|
+
}
|
|
1726
|
+
})
|
|
1727
|
+
], WaterpoloGameConfig);
|
|
1728
|
+
|
|
1621
1729
|
var GameStatuses;
|
|
1622
1730
|
(function (GameStatuses) {
|
|
1623
1731
|
GameStatuses[GameStatuses["open"] = 1] = "open";
|
|
@@ -1728,6 +1836,18 @@ let Game = class Game extends BaseModel {
|
|
|
1728
1836
|
set rugbyGameConfig(value) {
|
|
1729
1837
|
this._rugbyGameConfig = value;
|
|
1730
1838
|
}
|
|
1839
|
+
get waterpoloGameConfig() {
|
|
1840
|
+
if (this._waterpoloGameConfig && this._waterpoloGameConfig.periodsCount) {
|
|
1841
|
+
return this._waterpoloGameConfig;
|
|
1842
|
+
}
|
|
1843
|
+
if (this.gameConfig) {
|
|
1844
|
+
this._waterpoloGameConfig = WaterpoloGameConfig.toFront(this.gameConfig);
|
|
1845
|
+
}
|
|
1846
|
+
return this._waterpoloGameConfig;
|
|
1847
|
+
}
|
|
1848
|
+
set waterpoloGameConfig(value) {
|
|
1849
|
+
this._waterpoloGameConfig = value;
|
|
1850
|
+
}
|
|
1731
1851
|
get scoreByPeriodList() {
|
|
1732
1852
|
if (!this.scoreByPeriod) {
|
|
1733
1853
|
return [];
|
|
@@ -1797,6 +1917,7 @@ Game = __decorate([
|
|
|
1797
1917
|
football_game_config: 'footballGameConfig',
|
|
1798
1918
|
handball_game_config: 'handballGameConfig',
|
|
1799
1919
|
rugby_game_config: 'rugbyGameConfig',
|
|
1920
|
+
waterpolo_game_config: 'waterpoloGameConfig',
|
|
1800
1921
|
score_by_period: 'scoreByPeriod',
|
|
1801
1922
|
playoff_stage: 'playoffStage',
|
|
1802
1923
|
playoff_round: 'playoffRound',
|
|
@@ -1823,6 +1944,8 @@ Game = __decorate([
|
|
|
1823
1944
|
hockeyGameConfig: HockeyGameConfig,
|
|
1824
1945
|
footballGameConfig: FootballGameConfig,
|
|
1825
1946
|
handballGameConfig: HandballGameConfig,
|
|
1947
|
+
rugbyGameConfig: RugbyGameConfig,
|
|
1948
|
+
waterpoloGameConfig: WaterpoloGameConfig,
|
|
1826
1949
|
tournamentPlayoff: Playoff,
|
|
1827
1950
|
tournamentCourt: LeagueCourt,
|
|
1828
1951
|
media: listField(MediaItem),
|
|
@@ -4680,6 +4803,130 @@ TeamAchievement = __decorate([
|
|
|
4680
4803
|
})
|
|
4681
4804
|
], TeamAchievement);
|
|
4682
4805
|
|
|
4806
|
+
let WaterpoloStatistic = class WaterpoloStatistic extends BaseModel {
|
|
4807
|
+
get assists() {
|
|
4808
|
+
return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
|
|
4809
|
+
}
|
|
4810
|
+
get goalpass() {
|
|
4811
|
+
return (this.totalGoals || 0) + (this.assists || 0);
|
|
4812
|
+
}
|
|
4813
|
+
get userMinutes() {
|
|
4814
|
+
if (!this.gameTime) {
|
|
4815
|
+
return '00:00';
|
|
4816
|
+
}
|
|
4817
|
+
const minutes = Math.floor(this.gameTime / 60);
|
|
4818
|
+
const seconds = Math.floor(this.gameTime - minutes * 60);
|
|
4819
|
+
return `${minutes < 10 ? 0 : ''}${minutes}:${seconds < 10 ? 0 : ''}${seconds}`;
|
|
4820
|
+
}
|
|
4821
|
+
get gamesWonPercent() {
|
|
4822
|
+
if (!this.gamesCount) {
|
|
4823
|
+
return 0;
|
|
4824
|
+
}
|
|
4825
|
+
return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
|
|
4826
|
+
}
|
|
4827
|
+
get tournamentTeamPoints() {
|
|
4828
|
+
return this.tournamentTeam && this.tournamentTeam.points;
|
|
4829
|
+
}
|
|
4830
|
+
static toFront(data) { }
|
|
4831
|
+
static toBack(data) { }
|
|
4832
|
+
};
|
|
4833
|
+
__decorate([
|
|
4834
|
+
ToFrontHook
|
|
4835
|
+
], WaterpoloStatistic, "toFront", null);
|
|
4836
|
+
__decorate([
|
|
4837
|
+
ToBackHook
|
|
4838
|
+
], WaterpoloStatistic, "toBack", null);
|
|
4839
|
+
WaterpoloStatistic = __decorate([
|
|
4840
|
+
ModelInstance({
|
|
4841
|
+
mappingFields: {
|
|
4842
|
+
league_player: 'leaguePlayer',
|
|
4843
|
+
tournament_team_user: 'tournamentTeamUser',
|
|
4844
|
+
team: 'team',
|
|
4845
|
+
team_user: 'teamUser',
|
|
4846
|
+
user: 'user',
|
|
4847
|
+
tournament_team: 'tournamentTeam',
|
|
4848
|
+
month: 'month',
|
|
4849
|
+
win_lose: 'winLose',
|
|
4850
|
+
games_count: 'gamesCount',
|
|
4851
|
+
won_games_count: 'wonGamesCount',
|
|
4852
|
+
lose_games_count: 'loseGamesCount',
|
|
4853
|
+
points: 'points',
|
|
4854
|
+
pp_shots: 'ppShots',
|
|
4855
|
+
pp_shot_misses: 'ppShotMisses',
|
|
4856
|
+
pp_shots_on_goal: 'ppShotsOnGoal',
|
|
4857
|
+
pp_shots_blocked: 'ppShotsBlocked',
|
|
4858
|
+
ev_shots: 'evShots',
|
|
4859
|
+
ev_shot_misses: 'evShotMisses',
|
|
4860
|
+
ev_shots_on_goal: 'evShotsOnGoal',
|
|
4861
|
+
ev_shots_blocked: 'evShotsBlocked',
|
|
4862
|
+
sh_shots: 'shShots',
|
|
4863
|
+
sh_shot_misses: 'shShotMisses',
|
|
4864
|
+
sh_shots_on_goal: 'shShotsOnGoal',
|
|
4865
|
+
sh_shots_blocked: 'shShotsBlocked',
|
|
4866
|
+
pp_goals_percent: 'ppGoalsPercent',
|
|
4867
|
+
pp_goals: 'ppGoals',
|
|
4868
|
+
ev_goals_percent: 'evGoalsPercent',
|
|
4869
|
+
ev_goals: 'evGoals',
|
|
4870
|
+
sh_goals_percent: 'shGoalsPercent',
|
|
4871
|
+
goals: 'goals',
|
|
4872
|
+
total_goals: 'totalGoals',
|
|
4873
|
+
sh_goals: 'shGoals',
|
|
4874
|
+
shot_misses: 'shotMisses',
|
|
4875
|
+
shots_on_goal: 'shotsOnGoal',
|
|
4876
|
+
shots_blocked: 'shotsBlocked',
|
|
4877
|
+
shots: 'shots',
|
|
4878
|
+
total_shots: 'totalShots',
|
|
4879
|
+
goals_percent: 'goalsPercent',
|
|
4880
|
+
total_goals_percent: 'totalGoalsPercent',
|
|
4881
|
+
pp_assists: 'ppAssists',
|
|
4882
|
+
ev_assists: 'evAssists',
|
|
4883
|
+
sh_assists: 'shAssists',
|
|
4884
|
+
shootout_attempts: 'shootoutAttempts',
|
|
4885
|
+
shootout_goals: 'shootoutGoals',
|
|
4886
|
+
after_game_shootout_attempts: 'afterGameShootoutAttempts',
|
|
4887
|
+
after_game_shootout_goals: 'afterGameShootoutGoals',
|
|
4888
|
+
block_shots: 'blockShots',
|
|
4889
|
+
face_off_losses: 'faceOffLosses',
|
|
4890
|
+
face_off_wins: 'faceOffWins',
|
|
4891
|
+
face_offs: 'faceOffs',
|
|
4892
|
+
face_off_percent: 'faceOffPercent',
|
|
4893
|
+
saves: 'saves',
|
|
4894
|
+
total_saves: 'totalSaves',
|
|
4895
|
+
shootout_saves: 'shootoutSaves',
|
|
4896
|
+
shots_against: 'shotsAgainst',
|
|
4897
|
+
shootout_shots_against: 'shootoutShotsAgainst',
|
|
4898
|
+
total_shots_against: 'totalShotsAgainst',
|
|
4899
|
+
saves_percent: 'savesPercent',
|
|
4900
|
+
total_saves_percent: 'totalSavesPercent',
|
|
4901
|
+
goals_against: 'goalsAgainst',
|
|
4902
|
+
shootout_goals_against: 'shootoutGoalsAgainst',
|
|
4903
|
+
total_goals_against: 'totalGoalsAgainst',
|
|
4904
|
+
safety_rate: 'safetyRate',
|
|
4905
|
+
penalty_minutes: 'penaltyMinutes',
|
|
4906
|
+
game_time: 'gameTime',
|
|
4907
|
+
plus_minus: 'plusMinus',
|
|
4908
|
+
free_kicks: 'freeKicks',
|
|
4909
|
+
yellow_cards: 'yellowCards',
|
|
4910
|
+
red_cards: 'redCards',
|
|
4911
|
+
fouls: 'fouls',
|
|
4912
|
+
losses: 'losses',
|
|
4913
|
+
steals: 'steals',
|
|
4914
|
+
drawn_fouls: 'drawnFouls',
|
|
4915
|
+
newbie: 'newbie',
|
|
4916
|
+
rank: 'rank',
|
|
4917
|
+
},
|
|
4918
|
+
relation: {
|
|
4919
|
+
leaguePlayer: LeaguePlayer,
|
|
4920
|
+
tournamentTeamUser: TournamentTeamUser,
|
|
4921
|
+
team: Team,
|
|
4922
|
+
teamUser: TeamUser,
|
|
4923
|
+
user: User,
|
|
4924
|
+
tournamentTeam: TournamentTeam,
|
|
4925
|
+
month: DateField
|
|
4926
|
+
}
|
|
4927
|
+
})
|
|
4928
|
+
], WaterpoloStatistic);
|
|
4929
|
+
|
|
4683
4930
|
class TournamentApi {
|
|
4684
4931
|
constructor(httpClient, configService) {
|
|
4685
4932
|
this.httpClient = httpClient;
|
|
@@ -4902,6 +5149,18 @@ class TournamentApi {
|
|
|
4902
5149
|
})).toPromise();
|
|
4903
5150
|
});
|
|
4904
5151
|
}
|
|
5152
|
+
getWaterpoloStatisticLeaders(filters) {
|
|
5153
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5154
|
+
let params = new HttpParams();
|
|
5155
|
+
params = applyStatisticLeadersFilters(filters, params);
|
|
5156
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/waterpolo_statistic_leaders/`, { params }).pipe(map((result) => {
|
|
5157
|
+
for (const key of Object.keys(result)) {
|
|
5158
|
+
result[key] = WaterpoloStatistic.toFront(result[key]);
|
|
5159
|
+
}
|
|
5160
|
+
return result;
|
|
5161
|
+
})).toPromise();
|
|
5162
|
+
});
|
|
5163
|
+
}
|
|
4905
5164
|
getBasketballStatistic(filters) {
|
|
4906
5165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4907
5166
|
let params = new HttpParams();
|
|
@@ -4962,6 +5221,16 @@ class TournamentApi {
|
|
|
4962
5221
|
}))).toPromise();
|
|
4963
5222
|
});
|
|
4964
5223
|
}
|
|
5224
|
+
getWaterpoloStatistic(filters) {
|
|
5225
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5226
|
+
let params = new HttpParams();
|
|
5227
|
+
params = applyStatisticFilters(filters, params);
|
|
5228
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/waterpolo_statistic/`, { params, observe: 'response' }).pipe(map(result => ({
|
|
5229
|
+
total: +result.headers.get('X-Page-Count'),
|
|
5230
|
+
data: WaterpoloStatistic.toFront(result.body)
|
|
5231
|
+
}))).toPromise();
|
|
5232
|
+
});
|
|
5233
|
+
}
|
|
4965
5234
|
getTournamentTeamUsers(tournamentTeamId) {
|
|
4966
5235
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4967
5236
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_team/${tournamentTeamId}/users/`).pipe(map(result => TournamentTeamUser.toFront(result))).toPromise();
|
|
@@ -7815,6 +8084,352 @@ VolleyballGameApi.ctorParameters = () => [
|
|
|
7815
8084
|
{ type: ConfigService }
|
|
7816
8085
|
];
|
|
7817
8086
|
|
|
8087
|
+
var WaterpoloGameLogTypes;
|
|
8088
|
+
(function (WaterpoloGameLogTypes) {
|
|
8089
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["enter_game"] = 1] = "enter_game";
|
|
8090
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["exit_game"] = 2] = "exit_game";
|
|
8091
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shot_miss"] = 3] = "shot_miss";
|
|
8092
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shot_on_goal"] = 4] = "shot_on_goal";
|
|
8093
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shot_blocked"] = 5] = "shot_blocked";
|
|
8094
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["goal"] = 6] = "goal";
|
|
8095
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_attempt"] = 7] = "shootout_attempt";
|
|
8096
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_goal"] = 8] = "shootout_goal";
|
|
8097
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["assist"] = 9] = "assist";
|
|
8098
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["block_shot"] = 10] = "block_shot";
|
|
8099
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["free_kick"] = 11] = "free_kick";
|
|
8100
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["minor_penalty"] = 12] = "minor_penalty";
|
|
8101
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["major_penalty"] = 13] = "major_penalty";
|
|
8102
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["match_penalty"] = 14] = "match_penalty";
|
|
8103
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["foul"] = 15] = "foul";
|
|
8104
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["yellow_card"] = 16] = "yellow_card";
|
|
8105
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["red_card"] = 17] = "red_card";
|
|
8106
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_shot"] = 18] = "penalty_shot";
|
|
8107
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["face_off_lose"] = 19] = "face_off_lose";
|
|
8108
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["face_off_win"] = 20] = "face_off_win";
|
|
8109
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["save"] = 21] = "save";
|
|
8110
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["timeout"] = 22] = "timeout";
|
|
8111
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_start"] = 23] = "penalty_start";
|
|
8112
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["penalty_end"] = 24] = "penalty_end";
|
|
8113
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["after_game_shootout_attempt"] = 25] = "after_game_shootout_attempt";
|
|
8114
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["after_game_shootout_goal"] = 26] = "after_game_shootout_goal";
|
|
8115
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["after_game_shootout_save"] = 27] = "after_game_shootout_save";
|
|
8116
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["shootout_save"] = 28] = "shootout_save";
|
|
8117
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["loss"] = 29] = "loss";
|
|
8118
|
+
WaterpoloGameLogTypes[WaterpoloGameLogTypes["steal"] = 30] = "steal";
|
|
8119
|
+
})(WaterpoloGameLogTypes || (WaterpoloGameLogTypes = {}));
|
|
8120
|
+
var WaterpoloAdvantageTypes;
|
|
8121
|
+
(function (WaterpoloAdvantageTypes) {
|
|
8122
|
+
WaterpoloAdvantageTypes[WaterpoloAdvantageTypes["power_play"] = 1] = "power_play";
|
|
8123
|
+
WaterpoloAdvantageTypes[WaterpoloAdvantageTypes["shorthanded"] = 2] = "shorthanded";
|
|
8124
|
+
WaterpoloAdvantageTypes[WaterpoloAdvantageTypes["even_strength"] = 3] = "even_strength";
|
|
8125
|
+
})(WaterpoloAdvantageTypes || (WaterpoloAdvantageTypes = {}));
|
|
8126
|
+
let WaterpoloGameLog = class WaterpoloGameLog extends BaseModel {
|
|
8127
|
+
constructor() {
|
|
8128
|
+
super(...arguments);
|
|
8129
|
+
this.active = true;
|
|
8130
|
+
}
|
|
8131
|
+
get penalizedGameUserId() {
|
|
8132
|
+
if (this._penalizedGameUserId) {
|
|
8133
|
+
return this._penalizedGameUserId;
|
|
8134
|
+
}
|
|
8135
|
+
return this.gameUserId;
|
|
8136
|
+
}
|
|
8137
|
+
set penalizedGameUserId(value) {
|
|
8138
|
+
this._penalizedGameUserId = value;
|
|
8139
|
+
}
|
|
8140
|
+
compare(model) {
|
|
8141
|
+
if (this.time === model.time && this.period === model.period) {
|
|
8142
|
+
return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
|
|
8143
|
+
}
|
|
8144
|
+
if (this.period === model.period) {
|
|
8145
|
+
return this.time < model.time ? 1 : -1;
|
|
8146
|
+
}
|
|
8147
|
+
return this.period < model.period ? 1 : -1;
|
|
8148
|
+
}
|
|
8149
|
+
get timeFormatted() {
|
|
8150
|
+
const minutes = Math.floor(this.time / 60);
|
|
8151
|
+
const seconds = this.time - minutes * 60;
|
|
8152
|
+
return `${minutes < 10 ? '0' : ''}${minutes}:${seconds < 10 ? '0' : ''}${seconds}`;
|
|
8153
|
+
}
|
|
8154
|
+
isScoreType() {
|
|
8155
|
+
return [WaterpoloGameLogTypes.goal, WaterpoloGameLogTypes.shootout_goal, WaterpoloGameLogTypes.after_game_shootout_goal].indexOf(this.logType) > -1;
|
|
8156
|
+
}
|
|
8157
|
+
isPenaltyType() {
|
|
8158
|
+
return [
|
|
8159
|
+
WaterpoloGameLogTypes.minor_penalty, WaterpoloGameLogTypes.major_penalty, WaterpoloGameLogTypes.match_penalty
|
|
8160
|
+
].indexOf(this.logType) > -1;
|
|
8161
|
+
}
|
|
8162
|
+
isAfter(log) {
|
|
8163
|
+
if (this.time === log.time && this.period === log.period) {
|
|
8164
|
+
return this.id > log.id;
|
|
8165
|
+
}
|
|
8166
|
+
if (this.period === log.period) {
|
|
8167
|
+
return this.time > log.time;
|
|
8168
|
+
}
|
|
8169
|
+
return this.period > log.period;
|
|
8170
|
+
}
|
|
8171
|
+
static toFront(value) { }
|
|
8172
|
+
static toBack(value) { }
|
|
8173
|
+
};
|
|
8174
|
+
__decorate([
|
|
8175
|
+
ToFrontHook
|
|
8176
|
+
], WaterpoloGameLog, "toFront", null);
|
|
8177
|
+
__decorate([
|
|
8178
|
+
ToBackHook
|
|
8179
|
+
], WaterpoloGameLog, "toBack", null);
|
|
8180
|
+
WaterpoloGameLog = __decorate([
|
|
8181
|
+
ModelInstance({
|
|
8182
|
+
mappingFields: {
|
|
8183
|
+
id: 'id',
|
|
8184
|
+
unique_id: 'uniqueId',
|
|
8185
|
+
game_id: 'gameId',
|
|
8186
|
+
game_user_id: 'gameUserId',
|
|
8187
|
+
team_id: 'teamId',
|
|
8188
|
+
log_type: 'logType',
|
|
8189
|
+
datetime: 'datetime',
|
|
8190
|
+
time: 'time',
|
|
8191
|
+
period: 'period',
|
|
8192
|
+
active: 'active',
|
|
8193
|
+
is_highlight: 'isHighlight',
|
|
8194
|
+
advantage: 'advantage',
|
|
8195
|
+
advantage_num: 'advantageNum',
|
|
8196
|
+
is_goalie: 'isGoalie',
|
|
8197
|
+
penalized_game_user_id: 'penalizedGameUserId',
|
|
8198
|
+
foul_on_game_user_id: 'foulOnGameUserId',
|
|
8199
|
+
mutual_penalty: 'mutualPenalty',
|
|
8200
|
+
},
|
|
8201
|
+
relation: {
|
|
8202
|
+
datetime: DateTimeField,
|
|
8203
|
+
logType: enumField(WaterpoloGameLogTypes),
|
|
8204
|
+
advantage: enumField(WaterpoloAdvantageTypes),
|
|
8205
|
+
}
|
|
8206
|
+
})
|
|
8207
|
+
], WaterpoloGameLog);
|
|
8208
|
+
|
|
8209
|
+
let WaterpoloGameStatistic = class WaterpoloGameStatistic extends BaseModel {
|
|
8210
|
+
get id() {
|
|
8211
|
+
return this.gameUserId;
|
|
8212
|
+
}
|
|
8213
|
+
get shotsOnGoal() {
|
|
8214
|
+
return (this.evShotsOnGoal || 0) + (this.ppShotsOnGoal || 0) + (this.shShotsOnGoal || 0);
|
|
8215
|
+
}
|
|
8216
|
+
get shotsBlocked() {
|
|
8217
|
+
return (this.evShotsBlocked || 0) + (this.ppShotsBlocked || 0) + (this.shShotsBlocked || 0);
|
|
8218
|
+
}
|
|
8219
|
+
get shotMisses() {
|
|
8220
|
+
return (this.evShotMisses || 0) + (this.ppShotMisses || 0) + (this.shShotMisses || 0);
|
|
8221
|
+
}
|
|
8222
|
+
get ppShots() {
|
|
8223
|
+
return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
|
|
8224
|
+
}
|
|
8225
|
+
get evShots() {
|
|
8226
|
+
return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0);
|
|
8227
|
+
}
|
|
8228
|
+
get shShots() {
|
|
8229
|
+
return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0);
|
|
8230
|
+
}
|
|
8231
|
+
get shots() {
|
|
8232
|
+
return this.ppShots + this.evShots + this.shShots + (this.shootoutAttempts || 0);
|
|
8233
|
+
}
|
|
8234
|
+
get totalShots() {
|
|
8235
|
+
return this.shots + (this.shootoutAttempts || 0);
|
|
8236
|
+
}
|
|
8237
|
+
get goals() {
|
|
8238
|
+
return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0);
|
|
8239
|
+
}
|
|
8240
|
+
get totalGoals() {
|
|
8241
|
+
return this.goals + (this.shootoutGoals || 0);
|
|
8242
|
+
}
|
|
8243
|
+
get assists() {
|
|
8244
|
+
return (this.ppAssists || 0) + (this.evAssists || 0) + (this.shAssists || 0);
|
|
8245
|
+
}
|
|
8246
|
+
get faceOffs() {
|
|
8247
|
+
return (this.faceOffWins || 0) + (this.faceOffLosses || 0);
|
|
8248
|
+
}
|
|
8249
|
+
get shootOuts() {
|
|
8250
|
+
return (this.shootoutAttempts || 0) + (this.shootoutGoals || 0);
|
|
8251
|
+
}
|
|
8252
|
+
get shotsAgainst() {
|
|
8253
|
+
return (this.saves || 0) + (this.goalsAgainst || 0);
|
|
8254
|
+
}
|
|
8255
|
+
get shootoutShotsAgainst() {
|
|
8256
|
+
return (this.shootoutSaves || 0) + (this.shootoutGoalsAgainst || 0);
|
|
8257
|
+
}
|
|
8258
|
+
get totalShotsAgainst() {
|
|
8259
|
+
return this.shotsAgainst + this.shootoutShotsAgainst;
|
|
8260
|
+
}
|
|
8261
|
+
get savesPercent() {
|
|
8262
|
+
if (!this.shotsAgainst || !this.saves) {
|
|
8263
|
+
return 0;
|
|
8264
|
+
}
|
|
8265
|
+
return Math.round(1000 * this.saves / this.shotsAgainst) / 10;
|
|
8266
|
+
}
|
|
8267
|
+
get totalSaves() {
|
|
8268
|
+
return (this.saves || 0) + (this.shootoutSaves || 0);
|
|
8269
|
+
}
|
|
8270
|
+
get totalSavesPercent() {
|
|
8271
|
+
if (!this.totalShotsAgainst || !this.totalSaves) {
|
|
8272
|
+
return 0;
|
|
8273
|
+
}
|
|
8274
|
+
return Math.round(1000 * this.totalSaves / this.totalShotsAgainst) / 10;
|
|
8275
|
+
}
|
|
8276
|
+
get totalGoalsAgainst() {
|
|
8277
|
+
return (this.goalsAgainst || 0) + (this.shootoutGoalsAgainst || 0);
|
|
8278
|
+
}
|
|
8279
|
+
get gameMinutes() {
|
|
8280
|
+
return Math.floor(this.gameTime / 60);
|
|
8281
|
+
}
|
|
8282
|
+
get goalsPercent() {
|
|
8283
|
+
if (!this.totalGoals || !this.totalShots) {
|
|
8284
|
+
return 0;
|
|
8285
|
+
}
|
|
8286
|
+
return Math.round(1000 * this.totalGoals / this.totalShots) / 10;
|
|
8287
|
+
}
|
|
8288
|
+
get faceOffPercent() {
|
|
8289
|
+
if (!this.faceOffWins || !this.faceOffs) {
|
|
8290
|
+
return 0;
|
|
8291
|
+
}
|
|
8292
|
+
return Math.round(1000 * this.faceOffWins / this.faceOffs) / 10;
|
|
8293
|
+
}
|
|
8294
|
+
get goalpass() {
|
|
8295
|
+
return (this.totalGoals || 0) + (this.assists || 0);
|
|
8296
|
+
}
|
|
8297
|
+
static toFront(data) { }
|
|
8298
|
+
static toBack(data) { }
|
|
8299
|
+
};
|
|
8300
|
+
__decorate([
|
|
8301
|
+
ToFrontHook
|
|
8302
|
+
], WaterpoloGameStatistic, "toFront", null);
|
|
8303
|
+
__decorate([
|
|
8304
|
+
ToBackHook
|
|
8305
|
+
], WaterpoloGameStatistic, "toBack", null);
|
|
8306
|
+
WaterpoloGameStatistic = __decorate([
|
|
8307
|
+
ModelInstance({
|
|
8308
|
+
mappingFields: {
|
|
8309
|
+
game_user_id: 'gameUserId',
|
|
8310
|
+
updated_at: 'updatedAt',
|
|
8311
|
+
points: 'points',
|
|
8312
|
+
pp_shot_misses: 'ppShotMisses',
|
|
8313
|
+
pp_shots_on_goal: 'ppShotsOnGoal',
|
|
8314
|
+
pp_shots_blocked: 'ppShotsBlocked',
|
|
8315
|
+
ev_shot_misses: 'evShotMisses',
|
|
8316
|
+
ev_shots_on_goal: 'evShotsOnGoal',
|
|
8317
|
+
ev_shots_blocked: 'evShotsBlocked',
|
|
8318
|
+
sh_shot_misses: 'shShotMisses',
|
|
8319
|
+
sh_shots_on_goal: 'shShotsOnGoal',
|
|
8320
|
+
sh_shots_blocked: 'shShotsBlocked',
|
|
8321
|
+
pp_goals: 'ppGoals',
|
|
8322
|
+
ev_goals: 'evGoals',
|
|
8323
|
+
sh_goals: 'shGoals',
|
|
8324
|
+
pp_assists: 'ppAssists',
|
|
8325
|
+
ev_assists: 'evAssists',
|
|
8326
|
+
sh_assists: 'shAssists',
|
|
8327
|
+
shootout_attempts: 'shootoutAttempts',
|
|
8328
|
+
shootout_goals: 'shootoutGoals',
|
|
8329
|
+
after_game_shootout_attempts: 'afterGameShootoutAttempts',
|
|
8330
|
+
after_game_shootout_goals: 'afterGameShootoutGoals',
|
|
8331
|
+
block_shots: 'blockShots',
|
|
8332
|
+
face_off_losses: 'faceOffLosses',
|
|
8333
|
+
face_off_wins: 'faceOffWins',
|
|
8334
|
+
saves: 'saves',
|
|
8335
|
+
shootout_save: 'shootoutSaves',
|
|
8336
|
+
after_game_shootout_saves: 'afterGameShootoutSaves',
|
|
8337
|
+
goals_against: 'goalsAgainst',
|
|
8338
|
+
shootout_goals_against: 'shootoutGoalsAgainst',
|
|
8339
|
+
after_game_shootout_goals_against: 'afterGameShootoutGoalsAgainst',
|
|
8340
|
+
safety_rate: 'safetyRate',
|
|
8341
|
+
penalty_minutes: 'penaltyMinutes',
|
|
8342
|
+
game_time: 'gameTime',
|
|
8343
|
+
plus_minus: 'plusMinus',
|
|
8344
|
+
free_kicks: 'freeKicks',
|
|
8345
|
+
yellow_cards: 'yellowCards',
|
|
8346
|
+
red_cards: 'redCards',
|
|
8347
|
+
fouls: 'fouls',
|
|
8348
|
+
losses: 'losses',
|
|
8349
|
+
steals: 'steals',
|
|
8350
|
+
drawn_fouls: 'drawnFouls',
|
|
8351
|
+
},
|
|
8352
|
+
relation: {
|
|
8353
|
+
updatedAt: DateTimeField,
|
|
8354
|
+
}
|
|
8355
|
+
})
|
|
8356
|
+
], WaterpoloGameStatistic);
|
|
8357
|
+
|
|
8358
|
+
let WaterpoloGameTeamStatistic = class WaterpoloGameTeamStatistic extends BaseModel {
|
|
8359
|
+
static toFront(data) { }
|
|
8360
|
+
static toBack(data) { }
|
|
8361
|
+
};
|
|
8362
|
+
__decorate([
|
|
8363
|
+
ToFrontHook
|
|
8364
|
+
], WaterpoloGameTeamStatistic, "toFront", null);
|
|
8365
|
+
__decorate([
|
|
8366
|
+
ToBackHook
|
|
8367
|
+
], WaterpoloGameTeamStatistic, "toBack", null);
|
|
8368
|
+
WaterpoloGameTeamStatistic = __decorate([
|
|
8369
|
+
ModelInstance({
|
|
8370
|
+
mappingFields: {
|
|
8371
|
+
team: 'team',
|
|
8372
|
+
competitor_team: 'competitorTeam'
|
|
8373
|
+
},
|
|
8374
|
+
relation: {
|
|
8375
|
+
team: WaterpoloStatistic,
|
|
8376
|
+
competitorTeam: WaterpoloStatistic
|
|
8377
|
+
}
|
|
8378
|
+
})
|
|
8379
|
+
], WaterpoloGameTeamStatistic);
|
|
8380
|
+
|
|
8381
|
+
class WaterpoloGameApi extends GameBaseApi {
|
|
8382
|
+
constructor(httpClient, configService) {
|
|
8383
|
+
super(httpClient, configService);
|
|
8384
|
+
this.httpClient = httpClient;
|
|
8385
|
+
this.configService = configService;
|
|
8386
|
+
}
|
|
8387
|
+
getById(gameId) {
|
|
8388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8389
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_waterpolo_game/${gameId}/`).pipe(map(result => Game.toFront(result))).toPromise();
|
|
8390
|
+
});
|
|
8391
|
+
}
|
|
8392
|
+
getTeamStatistic(gameId) {
|
|
8393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8394
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_waterpolo_game/${gameId}/team_statistic/`).pipe(map(result => WaterpoloGameTeamStatistic.toFront(result))).toPromise();
|
|
8395
|
+
});
|
|
8396
|
+
}
|
|
8397
|
+
getUserStatistic(gameId) {
|
|
8398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8399
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_waterpolo_game/${gameId}/user_statistic/`).pipe(map(result => WaterpoloGameStatistic.toFront(result))).toPromise();
|
|
8400
|
+
});
|
|
8401
|
+
}
|
|
8402
|
+
getLogs(gameId) {
|
|
8403
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8404
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_waterpolo_game/${gameId}/logs/`).pipe(map(result => WaterpoloGameLog.toFront(result))).toPromise();
|
|
8405
|
+
});
|
|
8406
|
+
}
|
|
8407
|
+
downloadProtocol(gameId, format) {
|
|
8408
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8409
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_waterpolo_game/${gameId}/game_protocol/`, {
|
|
8410
|
+
params: new HttpParams().set('file_type', format),
|
|
8411
|
+
responseType: 'blob'
|
|
8412
|
+
}).toPromise();
|
|
8413
|
+
});
|
|
8414
|
+
}
|
|
8415
|
+
downloadApplication(gameId, format, type) {
|
|
8416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8417
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_waterpolo_game/${gameId}/game_application_file/`, {
|
|
8418
|
+
params: new HttpParams().set('file_type', format).set('application_type', type),
|
|
8419
|
+
responseType: 'blob'
|
|
8420
|
+
}).toPromise();
|
|
8421
|
+
});
|
|
8422
|
+
}
|
|
8423
|
+
}
|
|
8424
|
+
WaterpoloGameApi.ɵprov = i0.ɵɵdefineInjectable({ factory: function WaterpoloGameApi_Factory() { return new WaterpoloGameApi(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(ConfigService)); }, token: WaterpoloGameApi, providedIn: "root" });
|
|
8425
|
+
WaterpoloGameApi.decorators = [
|
|
8426
|
+
{ type: Injectable, args: [{ providedIn: 'root' },] }
|
|
8427
|
+
];
|
|
8428
|
+
WaterpoloGameApi.ctorParameters = () => [
|
|
8429
|
+
{ type: HttpClient },
|
|
8430
|
+
{ type: ConfigService }
|
|
8431
|
+
];
|
|
8432
|
+
|
|
7818
8433
|
class PublicTeamApi {
|
|
7819
8434
|
constructor(httpClient, configService) {
|
|
7820
8435
|
this.httpClient = httpClient;
|
|
@@ -8006,6 +8621,39 @@ const HandballGameLogTypeLocalization = {
|
|
|
8006
8621
|
[HandballGameLogTypes.timeout]: 'Таймаут'
|
|
8007
8622
|
};
|
|
8008
8623
|
|
|
8624
|
+
const WaterpoloGameLogTypeLocalization = {
|
|
8625
|
+
[WaterpoloGameLogTypes.enter_game]: 'Выход на площадку',
|
|
8626
|
+
[WaterpoloGameLogTypes.exit_game]: 'Ушел с площадки',
|
|
8627
|
+
[WaterpoloGameLogTypes.shot_miss]: 'Бросок мимо',
|
|
8628
|
+
[WaterpoloGameLogTypes.shot_on_goal]: 'Бросок по воротам',
|
|
8629
|
+
[WaterpoloGameLogTypes.shot_blocked]: 'Заблокированный бросок',
|
|
8630
|
+
[WaterpoloGameLogTypes.goal]: 'Гол',
|
|
8631
|
+
[WaterpoloGameLogTypes.shootout_attempt]: 'Пенальти промах',
|
|
8632
|
+
[WaterpoloGameLogTypes.shootout_goal]: 'Пенальти гол',
|
|
8633
|
+
[WaterpoloGameLogTypes.after_game_shootout_attempt]: 'Пенальти промах',
|
|
8634
|
+
[WaterpoloGameLogTypes.after_game_shootout_goal]: 'Пенальти гол',
|
|
8635
|
+
[WaterpoloGameLogTypes.assist]: 'Передача',
|
|
8636
|
+
[WaterpoloGameLogTypes.block_shot]: 'Блокировка броска',
|
|
8637
|
+
[WaterpoloGameLogTypes.minor_penalty]: 'Штраф 20 сек.',
|
|
8638
|
+
[WaterpoloGameLogTypes.major_penalty]: 'Штраф 4 мин.',
|
|
8639
|
+
[WaterpoloGameLogTypes.match_penalty]: 'Матч-штраф',
|
|
8640
|
+
[WaterpoloGameLogTypes.foul]: 'Фол',
|
|
8641
|
+
[WaterpoloGameLogTypes.penalty_shot]: 'Штрафной бросок',
|
|
8642
|
+
[WaterpoloGameLogTypes.face_off_lose]: 'Проигрыш в спринте',
|
|
8643
|
+
[WaterpoloGameLogTypes.face_off_win]: 'Победа в спринте',
|
|
8644
|
+
[WaterpoloGameLogTypes.save]: 'Отражен бросок',
|
|
8645
|
+
[WaterpoloGameLogTypes.shootout_save]: 'Отражен бросок',
|
|
8646
|
+
[WaterpoloGameLogTypes.after_game_shootout_save]: 'Отражен бросок',
|
|
8647
|
+
[WaterpoloGameLogTypes.timeout]: 'Таймаут',
|
|
8648
|
+
[WaterpoloGameLogTypes.penalty_start]: 'Начало штрафного времени',
|
|
8649
|
+
[WaterpoloGameLogTypes.penalty_end]: 'Конец штрафного времени',
|
|
8650
|
+
[WaterpoloGameLogTypes.yellow_card]: 'Желтая карточка',
|
|
8651
|
+
[WaterpoloGameLogTypes.red_card]: 'Красная карточка',
|
|
8652
|
+
[WaterpoloGameLogTypes.free_kick]: 'Свободный удар',
|
|
8653
|
+
[WaterpoloGameLogTypes.loss]: 'Потеря',
|
|
8654
|
+
[WaterpoloGameLogTypes.steal]: 'Перехват'
|
|
8655
|
+
};
|
|
8656
|
+
|
|
8009
8657
|
const OvertimeTypeLocalization = {
|
|
8010
8658
|
[OvertimeTypes.to_score_diff]: 'До разницы в N мячей',
|
|
8011
8659
|
[OvertimeTypes.to_score_total]: 'До N очков',
|
|
@@ -8157,6 +8805,22 @@ const GameRugbyPositionLocalization = {
|
|
|
8157
8805
|
[GameRugbyPosition.three_quarter]: 'Трехчетвертный',
|
|
8158
8806
|
[GameRugbyPosition.fullback]: 'Замыкающий'
|
|
8159
8807
|
};
|
|
8808
|
+
const GameWaterpoloPositionLocalization = {
|
|
8809
|
+
[GameWaterpoloPosition.defensemen]: 'Защитник',
|
|
8810
|
+
[GameWaterpoloPosition.goalkeeper]: 'Вратарь',
|
|
8811
|
+
[GameWaterpoloPosition.center_forward]: 'Центральный нападающий',
|
|
8812
|
+
[GameWaterpoloPosition.mobile_forward]: 'Подвижный нападающий',
|
|
8813
|
+
};
|
|
8814
|
+
const GameWaterpoloPositionShortRuLocalization = {
|
|
8815
|
+
[GameWaterpoloPosition.defensemen]: 'З',
|
|
8816
|
+
[GameWaterpoloPosition.goalkeeper]: 'Вр',
|
|
8817
|
+
[GameWaterpoloPosition.center_forward]: 'ЦН',
|
|
8818
|
+
[GameWaterpoloPosition.mobile_forward]: 'ПН',
|
|
8819
|
+
};
|
|
8820
|
+
const WaterpoloWorkHandLocalization = {
|
|
8821
|
+
[WaterpoloWorkHand.left]: 'Левая',
|
|
8822
|
+
[WaterpoloWorkHand.right]: 'Правая'
|
|
8823
|
+
};
|
|
8160
8824
|
|
|
8161
8825
|
const VolleyballGameLogTypeLocalization = {
|
|
8162
8826
|
[VolleyballGameLogType.enter_game]: 'Выход на площадку',
|
|
@@ -8735,5 +9399,5 @@ HttpCookieInterceptor.ctorParameters = () => [
|
|
|
8735
9399
|
* Generated bundle index. Do not edit.
|
|
8736
9400
|
*/
|
|
8737
9401
|
|
|
8738
|
-
export { Achievement, AchievementTypes, BannerLocation, BaseModel, BaseService, BasketballCourtSides, BasketballCourtZones, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameSubLogTypesLocalization, BasketballGameTeamStatistic, BasketballPenaltyTypes, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, BasketballSubLogTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBaseApi, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameBill, GameBillStatusLocalization, GameBillStatuses, GameFootballPosition, GameFootballPositionLocalization, GameHandballPosition, GameHandballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameRugbyPosition, GameRugbyPositionLocalization, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameUserDisqualification, GameUserLimitationTypes, GameUserLimitations, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HandballGameApi, HandballGameConfig, HandballGameLog, HandballGameLogTypeLocalization, HandballGameLogTypes, HandballGameStatistic, HandballGameTeamStatistic, HandballProfile, HandballStatistic, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HockeyWorkHandLocalization, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueDocument, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlayer, LeaguePlayerApi, LeaguePlaylist, LocalStorageEngine, MODEL_MAPPING_FIELDS_KEY, MODEL_RELATION_KEY, MODEL_TO_BACK_KEY, MODEL_TO_FRONT_KEY, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OrganizationBill, OrganizationBillStatusLocalization, OrganizationBillStatuses, OrganizationStatistic, OrganizationStatuses, OrganizationStatusesLocalization, OrganizationTariff, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, PublicTeamApi, PublicUserApi, Qualification, QualificationLocalization, RUGBY_GAME_LOG_TYPE_POINTS, RUGBY_TEAM_LOG_TYPES, ReferenceApi, RugbyFoulSanctionLocalization, RugbyFoulSanctions, RugbyFoulType, RugbyGameApi, RugbyGameConfig, RugbyGameLog, RugbyGameLogTypeLocalization, RugbyGameLogTypes, RugbyGameStatistic, RugbyGameTeamStatistic, RugbyProfile, RugbyStatistic, RugbyStatisticTypes, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamAchievement, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, TeamsAndUsers, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoin1x1Data, TournamentJoin1x1Status, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamShort, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, addItemsInArray, applyGameMediaFilters, applyGamesFilters, applyStatisticFilters, applyStatisticLeadersFilters, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, parseDate, patchItemInArray, penaltyTypeField, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
|
|
9402
|
+
export { Achievement, AchievementTypes, BannerLocation, BaseModel, BaseService, BasketballCourtSides, BasketballCourtZones, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameSubLogTypesLocalization, BasketballGameTeamStatistic, BasketballPenaltyTypes, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, BasketballSubLogTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, FootballGameApi, FootballGameConfig, FootballGameLog, FootballGameLogTypeLocalization, FootballGameLogTypes, FootballGameStatistic, FootballGameTeamStatistic, FootballProfile, FootballStatistic, FootballWorkFoot, FootballWorkFootLocalization, Game, GameBaseApi, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameBill, GameBillStatusLocalization, GameBillStatuses, GameFootballPosition, GameFootballPositionLocalization, GameHandballPosition, GameHandballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameRugbyPosition, GameRugbyPositionLocalization, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameUserDisqualification, GameUserLimitationTypes, GameUserLimitations, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, GameWaterpoloPosition, GameWaterpoloPositionLocalization, GameWaterpoloPositionShortRuLocalization, HandballGameApi, HandballGameConfig, HandballGameLog, HandballGameLogTypeLocalization, HandballGameLogTypes, HandballGameStatistic, HandballGameTeamStatistic, HandballProfile, HandballStatistic, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyPenaltyTypes, HockeyProfile, HockeyStatistic, HockeyWorkHand, HockeyWorkHandLocalization, HttpCookieInterceptor, League, LeagueApi, LeagueBanner, LeagueCourt, LeagueDocument, LeagueNews, LeagueNewsApi, LeagueNewsType, LeaguePartner, LeaguePlayer, LeaguePlayerApi, LeaguePlaylist, LocalStorageEngine, MODEL_MAPPING_FIELDS_KEY, MODEL_RELATION_KEY, MODEL_TO_BACK_KEY, MODEL_TO_FRONT_KEY, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OrganizationBill, OrganizationBillStatusLocalization, OrganizationBillStatuses, OrganizationStatistic, OrganizationStatuses, OrganizationStatusesLocalization, OrganizationTariff, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, PublicTeamApi, PublicUserApi, Qualification, QualificationLocalization, RUGBY_GAME_LOG_TYPE_POINTS, RUGBY_TEAM_LOG_TYPES, ReferenceApi, RugbyFoulSanctionLocalization, RugbyFoulSanctions, RugbyFoulType, RugbyGameApi, RugbyGameConfig, RugbyGameLog, RugbyGameLogTypeLocalization, RugbyGameLogTypes, RugbyGameStatistic, RugbyGameTeamStatistic, RugbyProfile, RugbyStatistic, RugbyStatisticTypes, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamAchievement, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, TeamsAndUsers, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoin1x1Data, TournamentJoin1x1Status, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSeason, TournamentSeasonApi, TournamentSeasonStatuses, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamShort, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballStatisticTypes, VolleyballWorkHand, VolleyballWorkHandLocalization, WaterpoloAdvantageTypes, WaterpoloGameApi, WaterpoloGameConfig, WaterpoloGameLog, WaterpoloGameLogTypeLocalization, WaterpoloGameLogTypes, WaterpoloGameStatistic, WaterpoloGameTeamStatistic, WaterpoloProfile, WaterpoloStatistic, WaterpoloWorkHand, WaterpoloWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, addItemsInArray, applyGameMediaFilters, applyGamesFilters, applyStatisticFilters, applyStatisticLeadersFilters, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, parseDate, patchItemInArray, penaltyTypeField, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
|
|
8739
9403
|
//# sourceMappingURL=mtgame-core.js.map
|