@mtgame/core 0.1.40 → 0.1.42
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/game-base-api.d.ts +1 -0
- package/api/rugby-game-api.d.ts +3 -0
- package/bundles/mtgame-core.umd.js +257 -134
- 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/game-base-api.js +10 -2
- package/esm2015/api/rugby-game-api.js +16 -2
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/localization/rugby-foul-sanction.js +10 -0
- package/esm2015/localization/rugby-game-log-types.js +4 -1
- package/esm2015/models/game.js +15 -1
- package/esm2015/models/public-api.js +2 -1
- package/esm2015/models/rugby-foul-type.js +35 -0
- package/esm2015/models/rugby-game-log.js +32 -24
- package/esm2015/models/rugby-game-statistic.js +7 -1
- package/esm2015/models/rugby-statistic.js +15 -1
- package/esm5/api/game-base-api.js +12 -2
- package/esm5/api/rugby-game-api.js +20 -2
- package/esm5/localization/public-api.js +2 -1
- package/esm5/localization/rugby-foul-sanction.js +11 -0
- package/esm5/localization/rugby-game-log-types.js +4 -1
- package/esm5/models/game.js +19 -1
- package/esm5/models/public-api.js +2 -1
- package/esm5/models/rugby-foul-type.js +40 -0
- package/esm5/models/rugby-game-log.js +32 -24
- package/esm5/models/rugby-game-statistic.js +7 -1
- package/esm5/models/rugby-statistic.js +15 -1
- package/fesm2015/mtgame-core.js +160 -55
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +257 -136
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/public-api.d.ts +1 -0
- package/localization/rugby-foul-sanction.d.ts +9 -0
- package/localization/rugby-game-log-types.d.ts +3 -0
- package/models/game.d.ts +4 -0
- package/models/public-api.d.ts +1 -0
- package/models/rugby-foul-type.d.ts +16 -0
- package/models/rugby-game-log.d.ts +27 -21
- package/models/rugby-game-statistic.d.ts +6 -0
- package/models/rugby-statistic.d.ts +14 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
package/fesm2015/mtgame-core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __decorate, __param, __awaiter } from 'tslib';
|
|
2
2
|
import { ɵɵdefineInjectable, Injectable, Optional, Inject, ɵɵinject, Injector, PLATFORM_ID } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { HttpParams, HttpClient } from '@angular/common/http';
|
|
4
4
|
import { filter, map, delay, switchMap } from 'rxjs/operators';
|
|
5
5
|
import { BehaviorSubject, Observable, of } from 'rxjs';
|
|
6
6
|
import { Subject } from 'rxjs/internal/Subject';
|
|
@@ -1512,6 +1512,36 @@ TournamentGroup = __decorate([
|
|
|
1512
1512
|
})
|
|
1513
1513
|
], TournamentGroup);
|
|
1514
1514
|
|
|
1515
|
+
let RugbyGameConfig = class RugbyGameConfig extends BaseModel {
|
|
1516
|
+
static toFront(data) { }
|
|
1517
|
+
static toBack(data) { }
|
|
1518
|
+
};
|
|
1519
|
+
__decorate([
|
|
1520
|
+
ToFrontHook
|
|
1521
|
+
], RugbyGameConfig, "toFront", null);
|
|
1522
|
+
__decorate([
|
|
1523
|
+
ToBackHook
|
|
1524
|
+
], RugbyGameConfig, "toBack", null);
|
|
1525
|
+
RugbyGameConfig = __decorate([
|
|
1526
|
+
ModelInstance({
|
|
1527
|
+
mappingFields: {
|
|
1528
|
+
periods_count: 'periodsCount',
|
|
1529
|
+
period_time: 'periodTime',
|
|
1530
|
+
overtime_type: 'overtimeType',
|
|
1531
|
+
overtime_time: 'overtimeTime',
|
|
1532
|
+
overtime_periods: 'overtimePeriods',
|
|
1533
|
+
max_game_players: 'maxGamePlayers',
|
|
1534
|
+
game_time_type: 'gameTimeType',
|
|
1535
|
+
substitute_count: 'substituteCount',
|
|
1536
|
+
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
1537
|
+
},
|
|
1538
|
+
relation: {
|
|
1539
|
+
overtimeType: enumField(OvertimeTypes),
|
|
1540
|
+
gameTimeType: enumField(GameTimeTypes),
|
|
1541
|
+
}
|
|
1542
|
+
})
|
|
1543
|
+
], RugbyGameConfig);
|
|
1544
|
+
|
|
1515
1545
|
var GameStatuses;
|
|
1516
1546
|
(function (GameStatuses) {
|
|
1517
1547
|
GameStatuses[GameStatuses["open"] = 1] = "open";
|
|
@@ -1610,6 +1640,18 @@ let Game = class Game extends BaseModel {
|
|
|
1610
1640
|
set footballGameConfig(value) {
|
|
1611
1641
|
this._footballGameConfig = value;
|
|
1612
1642
|
}
|
|
1643
|
+
get rugbyGameConfig() {
|
|
1644
|
+
if (this._rugbyGameConfig && this._rugbyGameConfig.periodsCount) {
|
|
1645
|
+
return this._rugbyGameConfig;
|
|
1646
|
+
}
|
|
1647
|
+
if (this.gameConfig) {
|
|
1648
|
+
this._rugbyGameConfig = RugbyGameConfig.toFront(this.gameConfig);
|
|
1649
|
+
}
|
|
1650
|
+
return this._rugbyGameConfig;
|
|
1651
|
+
}
|
|
1652
|
+
set rugbyGameConfig(value) {
|
|
1653
|
+
this._rugbyGameConfig = value;
|
|
1654
|
+
}
|
|
1613
1655
|
get scoreByPeriodList() {
|
|
1614
1656
|
if (!this.scoreByPeriod) {
|
|
1615
1657
|
return [];
|
|
@@ -1680,6 +1722,7 @@ Game = __decorate([
|
|
|
1680
1722
|
hockey_game_config: 'hockeyGameConfig',
|
|
1681
1723
|
football_game_config: 'footballGameConfig',
|
|
1682
1724
|
handball_game_config: 'handballGameConfig',
|
|
1725
|
+
rugby_game_config: 'rugbyGameConfig',
|
|
1683
1726
|
score_by_period: 'scoreByPeriod',
|
|
1684
1727
|
playoff_stage: 'playoffStage',
|
|
1685
1728
|
tournament_stage_id: 'tournamentStageId',
|
|
@@ -2445,6 +2488,14 @@ let GameBaseApi = class GameBaseApi {
|
|
|
2445
2488
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_game/${gameId}/users_limitation/`).pipe(map(result => GameUserLimitations.toFront(result))).toPromise();
|
|
2446
2489
|
});
|
|
2447
2490
|
}
|
|
2491
|
+
downloadApplication(gameId, format, type) {
|
|
2492
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2493
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_game/${gameId}/game_application/`, {
|
|
2494
|
+
params: new HttpParams().set('file_type', format).set('application_type', type),
|
|
2495
|
+
responseType: 'blob'
|
|
2496
|
+
}).toPromise();
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2448
2499
|
};
|
|
2449
2500
|
GameBaseApi.ctorParameters = () => [
|
|
2450
2501
|
{ type: HttpClient },
|
|
@@ -4185,13 +4236,19 @@ RugbyStatistic = __decorate([
|
|
|
4185
4236
|
points: 'points',
|
|
4186
4237
|
tries: 'tries',
|
|
4187
4238
|
penalty_tries: 'penaltyTries',
|
|
4239
|
+
conversion_shots: 'conversionShots',
|
|
4188
4240
|
conversion_goals: 'conversionGoals',
|
|
4189
4241
|
conversion_misses: 'conversionMisses',
|
|
4242
|
+
conversion_goals_percent: 'conversionGoalsPercent',
|
|
4190
4243
|
drawing_ball: 'drawingBall',
|
|
4244
|
+
penalty_shots: 'penaltyShots',
|
|
4191
4245
|
penalty_misses: 'penaltyMisses',
|
|
4192
4246
|
penalty_goals: 'penaltyGoals',
|
|
4247
|
+
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
4248
|
+
drop_goal_shots: 'dropGoalShots',
|
|
4193
4249
|
drop_goals: 'dropGoals',
|
|
4194
4250
|
drop_goal_misses: 'dropGoalMisses',
|
|
4251
|
+
drop_goal_percent: 'dropGoalPercent',
|
|
4195
4252
|
free_kicks: 'freeKicks',
|
|
4196
4253
|
yellow_cards: 'yellowCards',
|
|
4197
4254
|
red_cards: 'redCards',
|
|
@@ -4203,16 +4260,24 @@ RugbyStatistic = __decorate([
|
|
|
4203
4260
|
plus_minus: 'plusMinus',
|
|
4204
4261
|
game_time: 'gameTime',
|
|
4205
4262
|
// Team statistic
|
|
4263
|
+
scrums: 'scrums',
|
|
4206
4264
|
scrums_won: 'scrumsWon',
|
|
4207
4265
|
scrum_losses: 'scrumLosses',
|
|
4266
|
+
scrums_won_percent: 'scrumsWonPercent',
|
|
4208
4267
|
scrums_won_free: 'scrumsWonFree',
|
|
4268
|
+
lineouts: 'lineouts',
|
|
4209
4269
|
lineouts_success: 'lineoutsSuccess',
|
|
4270
|
+
lineout_loses: 'lineoutLoses',
|
|
4210
4271
|
lineouts_steal: 'lineoutsSteal',
|
|
4211
4272
|
quick_throws: 'quickThrows',
|
|
4273
|
+
rucks: 'rucks',
|
|
4212
4274
|
rucks_won: 'rucksWon',
|
|
4213
4275
|
ruck_losses: 'ruckLosses',
|
|
4276
|
+
rucks_won_percent: 'rucksWonPercent',
|
|
4277
|
+
mauls: 'mauls',
|
|
4214
4278
|
mauls_won: 'maulsWon',
|
|
4215
4279
|
maul_losses: 'maulLosses',
|
|
4280
|
+
mauls_won_percent: 'maulWonPercent',
|
|
4216
4281
|
fouls: 'fouls'
|
|
4217
4282
|
},
|
|
4218
4283
|
relation: {
|
|
@@ -5635,11 +5700,17 @@ RugbyGameStatistic = __decorate([
|
|
|
5635
5700
|
penalty_tries: 'penaltyTries',
|
|
5636
5701
|
conversion_goals: 'conversionGoals',
|
|
5637
5702
|
conversion_misses: 'conversionMisses',
|
|
5703
|
+
conversion_shots: 'conversionShots',
|
|
5704
|
+
conversion_goals_percent: 'conversionGoalsPercent',
|
|
5638
5705
|
drawing_ball: 'drawingBall',
|
|
5639
5706
|
penalty_misses: 'penaltyMisses',
|
|
5640
5707
|
penalty_goals: 'penaltyGoals',
|
|
5708
|
+
penalty_shots: 'penaltyShots',
|
|
5709
|
+
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
5641
5710
|
drop_goals: 'dropGoals',
|
|
5642
5711
|
drop_goal_misses: 'dropGoalMisses',
|
|
5712
|
+
drop_goal_shots: 'dropGoalShots',
|
|
5713
|
+
drop_goals_percent: 'dropGoalsPercent',
|
|
5643
5714
|
free_kicks: 'freeKicks',
|
|
5644
5715
|
yellow_cards: 'yellowCards',
|
|
5645
5716
|
red_cards: 'redCards',
|
|
@@ -5657,6 +5728,38 @@ RugbyGameStatistic = __decorate([
|
|
|
5657
5728
|
})
|
|
5658
5729
|
], RugbyGameStatistic);
|
|
5659
5730
|
|
|
5731
|
+
var RugbyFoulSanctions;
|
|
5732
|
+
(function (RugbyFoulSanctions) {
|
|
5733
|
+
RugbyFoulSanctions[RugbyFoulSanctions["scrum"] = 1] = "scrum";
|
|
5734
|
+
RugbyFoulSanctions[RugbyFoulSanctions["lineout"] = 2] = "lineout";
|
|
5735
|
+
RugbyFoulSanctions[RugbyFoulSanctions["free_kick"] = 3] = "free_kick";
|
|
5736
|
+
RugbyFoulSanctions[RugbyFoulSanctions["penalty_shot"] = 4] = "penalty_shot";
|
|
5737
|
+
RugbyFoulSanctions[RugbyFoulSanctions["yellow_card"] = 5] = "yellow_card";
|
|
5738
|
+
RugbyFoulSanctions[RugbyFoulSanctions["red_card"] = 6] = "red_card";
|
|
5739
|
+
})(RugbyFoulSanctions || (RugbyFoulSanctions = {}));
|
|
5740
|
+
let RugbyFoulType = class RugbyFoulType extends BaseModel {
|
|
5741
|
+
static toFront(data) { }
|
|
5742
|
+
static toBack(data) { }
|
|
5743
|
+
};
|
|
5744
|
+
__decorate([
|
|
5745
|
+
ToFrontHook
|
|
5746
|
+
], RugbyFoulType, "toFront", null);
|
|
5747
|
+
__decorate([
|
|
5748
|
+
ToBackHook
|
|
5749
|
+
], RugbyFoulType, "toBack", null);
|
|
5750
|
+
RugbyFoulType = __decorate([
|
|
5751
|
+
ModelInstance({
|
|
5752
|
+
mappingFields: {
|
|
5753
|
+
id: 'id',
|
|
5754
|
+
name: 'name',
|
|
5755
|
+
sanction: 'sanction',
|
|
5756
|
+
},
|
|
5757
|
+
relation: {
|
|
5758
|
+
sanction: listField(enumField(RugbyFoulSanctions))
|
|
5759
|
+
}
|
|
5760
|
+
})
|
|
5761
|
+
], RugbyFoulType);
|
|
5762
|
+
|
|
5660
5763
|
var RugbyGameLogTypes;
|
|
5661
5764
|
(function (RugbyGameLogTypes) {
|
|
5662
5765
|
RugbyGameLogTypes[RugbyGameLogTypes["enter_game"] = 1] = "enter_game";
|
|
@@ -5671,27 +5774,30 @@ var RugbyGameLogTypes;
|
|
|
5671
5774
|
RugbyGameLogTypes[RugbyGameLogTypes["drop_goal"] = 10] = "drop_goal";
|
|
5672
5775
|
RugbyGameLogTypes[RugbyGameLogTypes["drop_goal_miss"] = 11] = "drop_goal_miss";
|
|
5673
5776
|
RugbyGameLogTypes[RugbyGameLogTypes["free_kick"] = 12] = "free_kick";
|
|
5674
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
5675
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
5676
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
5677
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
5678
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
5679
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
5680
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
5777
|
+
RugbyGameLogTypes[RugbyGameLogTypes["foul"] = 13] = "foul";
|
|
5778
|
+
RugbyGameLogTypes[RugbyGameLogTypes["yellow_card"] = 14] = "yellow_card";
|
|
5779
|
+
RugbyGameLogTypes[RugbyGameLogTypes["red_card"] = 15] = "red_card";
|
|
5780
|
+
RugbyGameLogTypes[RugbyGameLogTypes["offload"] = 16] = "offload";
|
|
5781
|
+
RugbyGameLogTypes[RugbyGameLogTypes["tackle"] = 17] = "tackle";
|
|
5782
|
+
RugbyGameLogTypes[RugbyGameLogTypes["out"] = 18] = "out";
|
|
5783
|
+
RugbyGameLogTypes[RugbyGameLogTypes["handling_error"] = 19] = "handling_error";
|
|
5784
|
+
RugbyGameLogTypes[RugbyGameLogTypes["carries_other_gainline"] = 20] = "carries_other_gainline";
|
|
5785
|
+
RugbyGameLogTypes[RugbyGameLogTypes["bleeding_injury"] = 21] = "bleeding_injury";
|
|
5786
|
+
RugbyGameLogTypes[RugbyGameLogTypes["head_injury"] = 22] = "head_injury";
|
|
5681
5787
|
// team actions
|
|
5682
|
-
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] =
|
|
5683
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] =
|
|
5684
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] =
|
|
5685
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] =
|
|
5686
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] =
|
|
5687
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] =
|
|
5688
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] =
|
|
5689
|
-
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] =
|
|
5690
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] =
|
|
5691
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] =
|
|
5692
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] =
|
|
5693
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] =
|
|
5694
|
-
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] =
|
|
5788
|
+
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 23] = "timeout";
|
|
5789
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 24] = "scrum_won";
|
|
5790
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] = 25] = "scrum_lose";
|
|
5791
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 26] = "scrum_won_free";
|
|
5792
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] = 27] = "lineout_success";
|
|
5793
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] = 28] = "lineout_loss";
|
|
5794
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] = 29] = "lineout_steal";
|
|
5795
|
+
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 30] = "quick_throw";
|
|
5796
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 31] = "ruck_won";
|
|
5797
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] = 32] = "ruck_lose";
|
|
5798
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 33] = "maul_won";
|
|
5799
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] = 34] = "maul_lose";
|
|
5800
|
+
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 35] = "team_foul";
|
|
5695
5801
|
})(RugbyGameLogTypes || (RugbyGameLogTypes = {}));
|
|
5696
5802
|
const RUGBY_GAME_LOG_TYPE_POINTS = {
|
|
5697
5803
|
[RugbyGameLogTypes.penalty_try]: 7,
|
|
@@ -5741,7 +5847,7 @@ let RugbyGameLog = class RugbyGameLog extends BaseModel {
|
|
|
5741
5847
|
return this.period > log.period;
|
|
5742
5848
|
}
|
|
5743
5849
|
isFoulType() {
|
|
5744
|
-
return [RugbyGameLogTypes.team_foul, RugbyGameLogTypes.
|
|
5850
|
+
return [RugbyGameLogTypes.team_foul, RugbyGameLogTypes.foul].indexOf(this.logType) > -1;
|
|
5745
5851
|
}
|
|
5746
5852
|
isTeamType() {
|
|
5747
5853
|
return RUGBY_TEAM_LOG_TYPES.includes(this.logType);
|
|
@@ -5760,6 +5866,7 @@ RugbyGameLog = __decorate([
|
|
|
5760
5866
|
mappingFields: {
|
|
5761
5867
|
id: 'id',
|
|
5762
5868
|
unique_id: 'uniqueId',
|
|
5869
|
+
group: 'group',
|
|
5763
5870
|
game_id: 'gameId',
|
|
5764
5871
|
game_user_id: 'gameUserId',
|
|
5765
5872
|
team_id: 'teamId',
|
|
@@ -5769,11 +5876,14 @@ RugbyGameLog = __decorate([
|
|
|
5769
5876
|
period: 'period',
|
|
5770
5877
|
active: 'active',
|
|
5771
5878
|
is_highlight: 'isHighlight',
|
|
5772
|
-
|
|
5879
|
+
foul_type: 'foulType',
|
|
5880
|
+
foul_sanction: 'foulSanction',
|
|
5773
5881
|
},
|
|
5774
5882
|
relation: {
|
|
5775
5883
|
datetime: DateTimeField,
|
|
5776
|
-
logType: enumField(RugbyGameLogTypes)
|
|
5884
|
+
logType: enumField(RugbyGameLogTypes),
|
|
5885
|
+
foulType: RugbyFoulType,
|
|
5886
|
+
foulSanction: enumField(RugbyFoulSanctions),
|
|
5777
5887
|
}
|
|
5778
5888
|
})
|
|
5779
5889
|
], RugbyGameLog);
|
|
@@ -5804,6 +5914,19 @@ let RugbyGameApi = class RugbyGameApi extends GameBaseApi {
|
|
|
5804
5914
|
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_rugby_game/${gameId}/logs/`).pipe(map(result => RugbyGameLog.toFront(result))).toPromise();
|
|
5805
5915
|
});
|
|
5806
5916
|
}
|
|
5917
|
+
getFoulTypes() {
|
|
5918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5919
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_rugby_game/foul_types/`).pipe(map(result => RugbyFoulType.toFront(result))).toPromise();
|
|
5920
|
+
});
|
|
5921
|
+
}
|
|
5922
|
+
downloadProtocol(gameId) {
|
|
5923
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5924
|
+
return this.httpClient.get(`${this.configService.get('apiUrl')}/api/v1/tournament_rugby_game/${gameId}/game_protocol/`, {
|
|
5925
|
+
params: new HttpParams().set('file_type', 'pdf'),
|
|
5926
|
+
responseType: 'blob'
|
|
5927
|
+
}).toPromise();
|
|
5928
|
+
});
|
|
5929
|
+
}
|
|
5807
5930
|
};
|
|
5808
5931
|
RugbyGameApi.ctorParameters = () => [
|
|
5809
5932
|
{ type: HttpClient },
|
|
@@ -7328,6 +7451,15 @@ const OvertimeTypeLocalization = {
|
|
|
7328
7451
|
[OvertimeTypes.time_and_penalties]: 'Дополнительное время + пенальти'
|
|
7329
7452
|
};
|
|
7330
7453
|
|
|
7454
|
+
const RugbyFoulSanctionLocalization = {
|
|
7455
|
+
[RugbyFoulSanctions.scrum]: 'Схватка',
|
|
7456
|
+
[RugbyFoulSanctions.lineout]: 'Корридор',
|
|
7457
|
+
[RugbyFoulSanctions.free_kick]: 'Свободный удар',
|
|
7458
|
+
[RugbyFoulSanctions.penalty_shot]: 'Штрафной удар',
|
|
7459
|
+
[RugbyFoulSanctions.yellow_card]: 'Желтая карточка',
|
|
7460
|
+
[RugbyFoulSanctions.red_card]: 'Красная карточка',
|
|
7461
|
+
};
|
|
7462
|
+
|
|
7331
7463
|
const RugbyGameLogTypeLocalization = {
|
|
7332
7464
|
[RugbyGameLogTypes.enter_game]: 'Выход на площадку',
|
|
7333
7465
|
[RugbyGameLogTypes.exit_game]: 'Ушел с площадки',
|
|
@@ -7341,6 +7473,7 @@ const RugbyGameLogTypeLocalization = {
|
|
|
7341
7473
|
[RugbyGameLogTypes.drop_goal]: 'Дроп-гол',
|
|
7342
7474
|
[RugbyGameLogTypes.drop_goal_miss]: 'Дроп-гол промах',
|
|
7343
7475
|
[RugbyGameLogTypes.free_kick]: 'Свободный удар',
|
|
7476
|
+
[RugbyGameLogTypes.foul]: 'Фол',
|
|
7344
7477
|
[RugbyGameLogTypes.yellow_card]: 'Желтая карточка',
|
|
7345
7478
|
[RugbyGameLogTypes.red_card]: 'Красная карточка',
|
|
7346
7479
|
[RugbyGameLogTypes.offload]: 'Скидка при завхвате',
|
|
@@ -7348,6 +7481,8 @@ const RugbyGameLogTypeLocalization = {
|
|
|
7348
7481
|
[RugbyGameLogTypes.out]: 'Аут',
|
|
7349
7482
|
[RugbyGameLogTypes.handling_error]: 'Ошибка приема',
|
|
7350
7483
|
[RugbyGameLogTypes.carries_other_gainline]: 'Прорыв линии',
|
|
7484
|
+
[RugbyGameLogTypes.bleeding_injury]: 'Кровоточащая травма',
|
|
7485
|
+
[RugbyGameLogTypes.head_injury]: 'Травма головы',
|
|
7351
7486
|
[RugbyGameLogTypes.timeout]: 'Таймаут',
|
|
7352
7487
|
[RugbyGameLogTypes.scrum_won]: 'Свахтка выиграна',
|
|
7353
7488
|
[RugbyGameLogTypes.scrum_lose]: 'Схватка проиграна',
|
|
@@ -7500,36 +7635,6 @@ LeaguePlaylist = __decorate([
|
|
|
7500
7635
|
})
|
|
7501
7636
|
], LeaguePlaylist);
|
|
7502
7637
|
|
|
7503
|
-
let RugbyGameConfig = class RugbyGameConfig extends BaseModel {
|
|
7504
|
-
static toFront(data) { }
|
|
7505
|
-
static toBack(data) { }
|
|
7506
|
-
};
|
|
7507
|
-
__decorate([
|
|
7508
|
-
ToFrontHook
|
|
7509
|
-
], RugbyGameConfig, "toFront", null);
|
|
7510
|
-
__decorate([
|
|
7511
|
-
ToBackHook
|
|
7512
|
-
], RugbyGameConfig, "toBack", null);
|
|
7513
|
-
RugbyGameConfig = __decorate([
|
|
7514
|
-
ModelInstance({
|
|
7515
|
-
mappingFields: {
|
|
7516
|
-
periods_count: 'periodsCount',
|
|
7517
|
-
period_time: 'periodTime',
|
|
7518
|
-
overtime_type: 'overtimeType',
|
|
7519
|
-
overtime_time: 'overtimeTime',
|
|
7520
|
-
overtime_periods: 'overtimePeriods',
|
|
7521
|
-
max_game_players: 'maxGamePlayers',
|
|
7522
|
-
game_time_type: 'gameTimeType',
|
|
7523
|
-
substitute_count: 'substituteCount',
|
|
7524
|
-
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
7525
|
-
},
|
|
7526
|
-
relation: {
|
|
7527
|
-
overtimeType: enumField(OvertimeTypes),
|
|
7528
|
-
gameTimeType: enumField(GameTimeTypes),
|
|
7529
|
-
}
|
|
7530
|
-
})
|
|
7531
|
-
], RugbyGameConfig);
|
|
7532
|
-
|
|
7533
7638
|
let CentrifugoService = class CentrifugoService {
|
|
7534
7639
|
constructor(httpClient, configService) {
|
|
7535
7640
|
this.httpClient = httpClient;
|
|
@@ -7898,5 +8003,5 @@ HttpCookieInterceptor = __decorate([
|
|
|
7898
8003
|
* Generated bundle index. Do not edit.
|
|
7899
8004
|
*/
|
|
7900
8005
|
|
|
7901
|
-
export { BannerLocation, BaseModel, BaseService, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, 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, GameFootballPosition, GameFootballPositionLocalization, GameHandballPosition, GameHandballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameRugbyPosition, GameRugbyPositionLocalization, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, 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, 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, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, PublicTeamApi, PublicUserApi, RUGBY_GAME_LOG_TYPE_POINTS, RUGBY_TEAM_LOG_TYPES, ReferenceApi, RugbyGameApi, RugbyGameConfig, RugbyGameLog, RugbyGameLogTypeLocalization, RugbyGameLogTypes, RugbyGameStatistic, RugbyGameTeamStatistic, RugbyProfile, RugbyStatistic, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, 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, applyGameMediaFilters, applyGamesFilters, applyStatisticFilters, applyStatisticLeadersFilters, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, penaltyTypeField, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
|
|
8006
|
+
export { BannerLocation, BaseModel, BaseService, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, 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, GameFootballPosition, GameFootballPositionLocalization, GameHandballPosition, GameHandballPositionLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameRugbyPosition, GameRugbyPositionLocalization, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, 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, 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, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, PublicTeamApi, PublicUserApi, RUGBY_GAME_LOG_TYPE_POINTS, RUGBY_TEAM_LOG_TYPES, ReferenceApi, RugbyFoulSanctionLocalization, RugbyFoulSanctions, RugbyFoulType, RugbyGameApi, RugbyGameConfig, RugbyGameLog, RugbyGameLogTypeLocalization, RugbyGameLogTypes, RugbyGameStatistic, RugbyGameTeamStatistic, RugbyProfile, RugbyStatistic, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, 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, applyGameMediaFilters, applyGamesFilters, applyStatisticFilters, applyStatisticLeadersFilters, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, penaltyTypeField, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
|
|
7902
8007
|
//# sourceMappingURL=mtgame-core.js.map
|