@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/api/game-base-api.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ export declare class GameBaseApi {
|
|
|
9
9
|
getUsers(gameId: number): Promise<GameUser[]>;
|
|
10
10
|
getMvp(gameId: number): Promise<GameUser[]>;
|
|
11
11
|
getUsersLimitation(gameId: number): Promise<GameUserLimitations[]>;
|
|
12
|
+
downloadApplication(gameId: number, format: 'pdf' | 'xlsx' | 'html', type: 'game_user' | 'tournament_user'): Promise<any>;
|
|
12
13
|
}
|
package/api/rugby-game-api.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { GameBaseApi } from './game-base-api';
|
|
|
5
5
|
import { RugbyGameTeamStatistic } from '../models/rugby-game-team-statistic';
|
|
6
6
|
import { RugbyGameStatistic } from '../models/rugby-game-statistic';
|
|
7
7
|
import { RugbyGameLog } from '../models/rugby-game-log';
|
|
8
|
+
import { RugbyFoulType } from '../models/rugby-foul-type';
|
|
8
9
|
export declare class RugbyGameApi extends GameBaseApi {
|
|
9
10
|
protected httpClient: HttpClient;
|
|
10
11
|
protected configService: ConfigService;
|
|
@@ -13,4 +14,6 @@ export declare class RugbyGameApi extends GameBaseApi {
|
|
|
13
14
|
getTeamStatistic(gameId: number): Promise<RugbyGameTeamStatistic>;
|
|
14
15
|
getUserStatistic(gameId: number): Promise<RugbyGameStatistic[]>;
|
|
15
16
|
getLogs(gameId: number): Promise<RugbyGameLog[]>;
|
|
17
|
+
getFoulTypes(): Promise<RugbyFoulType>;
|
|
18
|
+
downloadProtocol(gameId: number): Promise<any>;
|
|
16
19
|
}
|
|
@@ -1997,6 +1997,41 @@
|
|
|
1997
1997
|
return TournamentGroup;
|
|
1998
1998
|
}(BaseModel));
|
|
1999
1999
|
|
|
2000
|
+
var RugbyGameConfig = /** @class */ (function (_super) {
|
|
2001
|
+
__extends(RugbyGameConfig, _super);
|
|
2002
|
+
function RugbyGameConfig() {
|
|
2003
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2004
|
+
}
|
|
2005
|
+
RugbyGameConfig.toFront = function (data) { };
|
|
2006
|
+
RugbyGameConfig.toBack = function (data) { };
|
|
2007
|
+
__decorate([
|
|
2008
|
+
ToFrontHook
|
|
2009
|
+
], RugbyGameConfig, "toFront", null);
|
|
2010
|
+
__decorate([
|
|
2011
|
+
ToBackHook
|
|
2012
|
+
], RugbyGameConfig, "toBack", null);
|
|
2013
|
+
RugbyGameConfig = __decorate([
|
|
2014
|
+
ModelInstance({
|
|
2015
|
+
mappingFields: {
|
|
2016
|
+
periods_count: 'periodsCount',
|
|
2017
|
+
period_time: 'periodTime',
|
|
2018
|
+
overtime_type: 'overtimeType',
|
|
2019
|
+
overtime_time: 'overtimeTime',
|
|
2020
|
+
overtime_periods: 'overtimePeriods',
|
|
2021
|
+
max_game_players: 'maxGamePlayers',
|
|
2022
|
+
game_time_type: 'gameTimeType',
|
|
2023
|
+
substitute_count: 'substituteCount',
|
|
2024
|
+
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
2025
|
+
},
|
|
2026
|
+
relation: {
|
|
2027
|
+
overtimeType: enumField(exports.OvertimeTypes),
|
|
2028
|
+
gameTimeType: enumField(exports.GameTimeTypes),
|
|
2029
|
+
}
|
|
2030
|
+
})
|
|
2031
|
+
], RugbyGameConfig);
|
|
2032
|
+
return RugbyGameConfig;
|
|
2033
|
+
}(BaseModel));
|
|
2034
|
+
|
|
2000
2035
|
|
|
2001
2036
|
(function (GameStatuses) {
|
|
2002
2037
|
GameStatuses[GameStatuses["open"] = 1] = "open";
|
|
@@ -2124,6 +2159,22 @@
|
|
|
2124
2159
|
enumerable: true,
|
|
2125
2160
|
configurable: true
|
|
2126
2161
|
});
|
|
2162
|
+
Object.defineProperty(Game.prototype, "rugbyGameConfig", {
|
|
2163
|
+
get: function () {
|
|
2164
|
+
if (this._rugbyGameConfig && this._rugbyGameConfig.periodsCount) {
|
|
2165
|
+
return this._rugbyGameConfig;
|
|
2166
|
+
}
|
|
2167
|
+
if (this.gameConfig) {
|
|
2168
|
+
this._rugbyGameConfig = RugbyGameConfig.toFront(this.gameConfig);
|
|
2169
|
+
}
|
|
2170
|
+
return this._rugbyGameConfig;
|
|
2171
|
+
},
|
|
2172
|
+
set: function (value) {
|
|
2173
|
+
this._rugbyGameConfig = value;
|
|
2174
|
+
},
|
|
2175
|
+
enumerable: true,
|
|
2176
|
+
configurable: true
|
|
2177
|
+
});
|
|
2127
2178
|
Object.defineProperty(Game.prototype, "scoreByPeriodList", {
|
|
2128
2179
|
get: function () {
|
|
2129
2180
|
var _this = this;
|
|
@@ -2214,6 +2265,7 @@
|
|
|
2214
2265
|
hockey_game_config: 'hockeyGameConfig',
|
|
2215
2266
|
football_game_config: 'footballGameConfig',
|
|
2216
2267
|
handball_game_config: 'handballGameConfig',
|
|
2268
|
+
rugby_game_config: 'rugbyGameConfig',
|
|
2217
2269
|
score_by_period: 'scoreByPeriod',
|
|
2218
2270
|
playoff_stage: 'playoffStage',
|
|
2219
2271
|
tournament_stage_id: 'tournamentStageId',
|
|
@@ -3118,6 +3170,16 @@
|
|
|
3118
3170
|
});
|
|
3119
3171
|
});
|
|
3120
3172
|
};
|
|
3173
|
+
GameBaseApi.prototype.downloadApplication = function (gameId, format, type) {
|
|
3174
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3175
|
+
return __generator(this, function (_a) {
|
|
3176
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_game/" + gameId + "/game_application/", {
|
|
3177
|
+
params: new http.HttpParams().set('file_type', format).set('application_type', type),
|
|
3178
|
+
responseType: 'blob'
|
|
3179
|
+
}).toPromise()];
|
|
3180
|
+
});
|
|
3181
|
+
});
|
|
3182
|
+
};
|
|
3121
3183
|
GameBaseApi.ctorParameters = function () { return [
|
|
3122
3184
|
{ type: http.HttpClient },
|
|
3123
3185
|
{ type: ConfigService }
|
|
@@ -5357,13 +5419,19 @@
|
|
|
5357
5419
|
points: 'points',
|
|
5358
5420
|
tries: 'tries',
|
|
5359
5421
|
penalty_tries: 'penaltyTries',
|
|
5422
|
+
conversion_shots: 'conversionShots',
|
|
5360
5423
|
conversion_goals: 'conversionGoals',
|
|
5361
5424
|
conversion_misses: 'conversionMisses',
|
|
5425
|
+
conversion_goals_percent: 'conversionGoalsPercent',
|
|
5362
5426
|
drawing_ball: 'drawingBall',
|
|
5427
|
+
penalty_shots: 'penaltyShots',
|
|
5363
5428
|
penalty_misses: 'penaltyMisses',
|
|
5364
5429
|
penalty_goals: 'penaltyGoals',
|
|
5430
|
+
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
5431
|
+
drop_goal_shots: 'dropGoalShots',
|
|
5365
5432
|
drop_goals: 'dropGoals',
|
|
5366
5433
|
drop_goal_misses: 'dropGoalMisses',
|
|
5434
|
+
drop_goal_percent: 'dropGoalPercent',
|
|
5367
5435
|
free_kicks: 'freeKicks',
|
|
5368
5436
|
yellow_cards: 'yellowCards',
|
|
5369
5437
|
red_cards: 'redCards',
|
|
@@ -5375,16 +5443,24 @@
|
|
|
5375
5443
|
plus_minus: 'plusMinus',
|
|
5376
5444
|
game_time: 'gameTime',
|
|
5377
5445
|
// Team statistic
|
|
5446
|
+
scrums: 'scrums',
|
|
5378
5447
|
scrums_won: 'scrumsWon',
|
|
5379
5448
|
scrum_losses: 'scrumLosses',
|
|
5449
|
+
scrums_won_percent: 'scrumsWonPercent',
|
|
5380
5450
|
scrums_won_free: 'scrumsWonFree',
|
|
5451
|
+
lineouts: 'lineouts',
|
|
5381
5452
|
lineouts_success: 'lineoutsSuccess',
|
|
5453
|
+
lineout_loses: 'lineoutLoses',
|
|
5382
5454
|
lineouts_steal: 'lineoutsSteal',
|
|
5383
5455
|
quick_throws: 'quickThrows',
|
|
5456
|
+
rucks: 'rucks',
|
|
5384
5457
|
rucks_won: 'rucksWon',
|
|
5385
5458
|
ruck_losses: 'ruckLosses',
|
|
5459
|
+
rucks_won_percent: 'rucksWonPercent',
|
|
5460
|
+
mauls: 'mauls',
|
|
5386
5461
|
mauls_won: 'maulsWon',
|
|
5387
5462
|
maul_losses: 'maulLosses',
|
|
5463
|
+
mauls_won_percent: 'maulWonPercent',
|
|
5388
5464
|
fouls: 'fouls'
|
|
5389
5465
|
},
|
|
5390
5466
|
relation: {
|
|
@@ -7175,11 +7251,17 @@
|
|
|
7175
7251
|
penalty_tries: 'penaltyTries',
|
|
7176
7252
|
conversion_goals: 'conversionGoals',
|
|
7177
7253
|
conversion_misses: 'conversionMisses',
|
|
7254
|
+
conversion_shots: 'conversionShots',
|
|
7255
|
+
conversion_goals_percent: 'conversionGoalsPercent',
|
|
7178
7256
|
drawing_ball: 'drawingBall',
|
|
7179
7257
|
penalty_misses: 'penaltyMisses',
|
|
7180
7258
|
penalty_goals: 'penaltyGoals',
|
|
7259
|
+
penalty_shots: 'penaltyShots',
|
|
7260
|
+
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
7181
7261
|
drop_goals: 'dropGoals',
|
|
7182
7262
|
drop_goal_misses: 'dropGoalMisses',
|
|
7263
|
+
drop_goal_shots: 'dropGoalShots',
|
|
7264
|
+
drop_goals_percent: 'dropGoalsPercent',
|
|
7183
7265
|
free_kicks: 'freeKicks',
|
|
7184
7266
|
yellow_cards: 'yellowCards',
|
|
7185
7267
|
red_cards: 'redCards',
|
|
@@ -7199,6 +7281,43 @@
|
|
|
7199
7281
|
return RugbyGameStatistic;
|
|
7200
7282
|
}(BaseModel));
|
|
7201
7283
|
|
|
7284
|
+
|
|
7285
|
+
(function (RugbyFoulSanctions) {
|
|
7286
|
+
RugbyFoulSanctions[RugbyFoulSanctions["scrum"] = 1] = "scrum";
|
|
7287
|
+
RugbyFoulSanctions[RugbyFoulSanctions["lineout"] = 2] = "lineout";
|
|
7288
|
+
RugbyFoulSanctions[RugbyFoulSanctions["free_kick"] = 3] = "free_kick";
|
|
7289
|
+
RugbyFoulSanctions[RugbyFoulSanctions["penalty_shot"] = 4] = "penalty_shot";
|
|
7290
|
+
RugbyFoulSanctions[RugbyFoulSanctions["yellow_card"] = 5] = "yellow_card";
|
|
7291
|
+
RugbyFoulSanctions[RugbyFoulSanctions["red_card"] = 6] = "red_card";
|
|
7292
|
+
})(exports.RugbyFoulSanctions || (exports.RugbyFoulSanctions = {}));
|
|
7293
|
+
var RugbyFoulType = /** @class */ (function (_super) {
|
|
7294
|
+
__extends(RugbyFoulType, _super);
|
|
7295
|
+
function RugbyFoulType() {
|
|
7296
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
7297
|
+
}
|
|
7298
|
+
RugbyFoulType.toFront = function (data) { };
|
|
7299
|
+
RugbyFoulType.toBack = function (data) { };
|
|
7300
|
+
__decorate([
|
|
7301
|
+
ToFrontHook
|
|
7302
|
+
], RugbyFoulType, "toFront", null);
|
|
7303
|
+
__decorate([
|
|
7304
|
+
ToBackHook
|
|
7305
|
+
], RugbyFoulType, "toBack", null);
|
|
7306
|
+
RugbyFoulType = __decorate([
|
|
7307
|
+
ModelInstance({
|
|
7308
|
+
mappingFields: {
|
|
7309
|
+
id: 'id',
|
|
7310
|
+
name: 'name',
|
|
7311
|
+
sanction: 'sanction',
|
|
7312
|
+
},
|
|
7313
|
+
relation: {
|
|
7314
|
+
sanction: listField(enumField(exports.RugbyFoulSanctions))
|
|
7315
|
+
}
|
|
7316
|
+
})
|
|
7317
|
+
], RugbyFoulType);
|
|
7318
|
+
return RugbyFoulType;
|
|
7319
|
+
}(BaseModel));
|
|
7320
|
+
|
|
7202
7321
|
var _a$1;
|
|
7203
7322
|
|
|
7204
7323
|
(function (RugbyGameLogTypes) {
|
|
@@ -7214,27 +7333,30 @@
|
|
|
7214
7333
|
RugbyGameLogTypes[RugbyGameLogTypes["drop_goal"] = 10] = "drop_goal";
|
|
7215
7334
|
RugbyGameLogTypes[RugbyGameLogTypes["drop_goal_miss"] = 11] = "drop_goal_miss";
|
|
7216
7335
|
RugbyGameLogTypes[RugbyGameLogTypes["free_kick"] = 12] = "free_kick";
|
|
7217
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7218
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7219
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7220
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7221
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7222
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7223
|
-
RugbyGameLogTypes[RugbyGameLogTypes["
|
|
7336
|
+
RugbyGameLogTypes[RugbyGameLogTypes["foul"] = 13] = "foul";
|
|
7337
|
+
RugbyGameLogTypes[RugbyGameLogTypes["yellow_card"] = 14] = "yellow_card";
|
|
7338
|
+
RugbyGameLogTypes[RugbyGameLogTypes["red_card"] = 15] = "red_card";
|
|
7339
|
+
RugbyGameLogTypes[RugbyGameLogTypes["offload"] = 16] = "offload";
|
|
7340
|
+
RugbyGameLogTypes[RugbyGameLogTypes["tackle"] = 17] = "tackle";
|
|
7341
|
+
RugbyGameLogTypes[RugbyGameLogTypes["out"] = 18] = "out";
|
|
7342
|
+
RugbyGameLogTypes[RugbyGameLogTypes["handling_error"] = 19] = "handling_error";
|
|
7343
|
+
RugbyGameLogTypes[RugbyGameLogTypes["carries_other_gainline"] = 20] = "carries_other_gainline";
|
|
7344
|
+
RugbyGameLogTypes[RugbyGameLogTypes["bleeding_injury"] = 21] = "bleeding_injury";
|
|
7345
|
+
RugbyGameLogTypes[RugbyGameLogTypes["head_injury"] = 22] = "head_injury";
|
|
7224
7346
|
// team actions
|
|
7225
|
-
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] =
|
|
7226
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] =
|
|
7227
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] =
|
|
7228
|
-
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] =
|
|
7229
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] =
|
|
7230
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] =
|
|
7231
|
-
RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] =
|
|
7232
|
-
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] =
|
|
7233
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] =
|
|
7234
|
-
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] =
|
|
7235
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] =
|
|
7236
|
-
RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] =
|
|
7237
|
-
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] =
|
|
7347
|
+
RugbyGameLogTypes[RugbyGameLogTypes["timeout"] = 23] = "timeout";
|
|
7348
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won"] = 24] = "scrum_won";
|
|
7349
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_lose"] = 25] = "scrum_lose";
|
|
7350
|
+
RugbyGameLogTypes[RugbyGameLogTypes["scrum_won_free"] = 26] = "scrum_won_free";
|
|
7351
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_success"] = 27] = "lineout_success";
|
|
7352
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_loss"] = 28] = "lineout_loss";
|
|
7353
|
+
RugbyGameLogTypes[RugbyGameLogTypes["lineout_steal"] = 29] = "lineout_steal";
|
|
7354
|
+
RugbyGameLogTypes[RugbyGameLogTypes["quick_throw"] = 30] = "quick_throw";
|
|
7355
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_won"] = 31] = "ruck_won";
|
|
7356
|
+
RugbyGameLogTypes[RugbyGameLogTypes["ruck_lose"] = 32] = "ruck_lose";
|
|
7357
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_won"] = 33] = "maul_won";
|
|
7358
|
+
RugbyGameLogTypes[RugbyGameLogTypes["maul_lose"] = 34] = "maul_lose";
|
|
7359
|
+
RugbyGameLogTypes[RugbyGameLogTypes["team_foul"] = 35] = "team_foul";
|
|
7238
7360
|
})(exports.RugbyGameLogTypes || (exports.RugbyGameLogTypes = {}));
|
|
7239
7361
|
var RUGBY_GAME_LOG_TYPE_POINTS = (_a$1 = {},
|
|
7240
7362
|
_a$1[exports.RugbyGameLogTypes.penalty_try] = 7,
|
|
@@ -7290,7 +7412,7 @@
|
|
|
7290
7412
|
return this.period > log.period;
|
|
7291
7413
|
};
|
|
7292
7414
|
RugbyGameLog.prototype.isFoulType = function () {
|
|
7293
|
-
return [exports.RugbyGameLogTypes.team_foul, exports.RugbyGameLogTypes.
|
|
7415
|
+
return [exports.RugbyGameLogTypes.team_foul, exports.RugbyGameLogTypes.foul].indexOf(this.logType) > -1;
|
|
7294
7416
|
};
|
|
7295
7417
|
RugbyGameLog.prototype.isTeamType = function () {
|
|
7296
7418
|
return RUGBY_TEAM_LOG_TYPES.includes(this.logType);
|
|
@@ -7308,6 +7430,7 @@
|
|
|
7308
7430
|
mappingFields: {
|
|
7309
7431
|
id: 'id',
|
|
7310
7432
|
unique_id: 'uniqueId',
|
|
7433
|
+
group: 'group',
|
|
7311
7434
|
game_id: 'gameId',
|
|
7312
7435
|
game_user_id: 'gameUserId',
|
|
7313
7436
|
team_id: 'teamId',
|
|
@@ -7317,11 +7440,14 @@
|
|
|
7317
7440
|
period: 'period',
|
|
7318
7441
|
active: 'active',
|
|
7319
7442
|
is_highlight: 'isHighlight',
|
|
7320
|
-
|
|
7443
|
+
foul_type: 'foulType',
|
|
7444
|
+
foul_sanction: 'foulSanction',
|
|
7321
7445
|
},
|
|
7322
7446
|
relation: {
|
|
7323
7447
|
datetime: DateTimeField,
|
|
7324
|
-
logType: enumField(exports.RugbyGameLogTypes)
|
|
7448
|
+
logType: enumField(exports.RugbyGameLogTypes),
|
|
7449
|
+
foulType: RugbyFoulType,
|
|
7450
|
+
foulSanction: enumField(exports.RugbyFoulSanctions),
|
|
7325
7451
|
}
|
|
7326
7452
|
})
|
|
7327
7453
|
], RugbyGameLog);
|
|
@@ -7364,6 +7490,23 @@
|
|
|
7364
7490
|
});
|
|
7365
7491
|
});
|
|
7366
7492
|
};
|
|
7493
|
+
RugbyGameApi.prototype.getFoulTypes = function () {
|
|
7494
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7495
|
+
return __generator(this, function (_a) {
|
|
7496
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/foul_types/").pipe(operators.map(function (result) { return RugbyFoulType.toFront(result); })).toPromise()];
|
|
7497
|
+
});
|
|
7498
|
+
});
|
|
7499
|
+
};
|
|
7500
|
+
RugbyGameApi.prototype.downloadProtocol = function (gameId) {
|
|
7501
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7502
|
+
return __generator(this, function (_a) {
|
|
7503
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_rugby_game/" + gameId + "/game_protocol/", {
|
|
7504
|
+
params: new http.HttpParams().set('file_type', 'pdf'),
|
|
7505
|
+
responseType: 'blob'
|
|
7506
|
+
}).toPromise()];
|
|
7507
|
+
});
|
|
7508
|
+
});
|
|
7509
|
+
};
|
|
7367
7510
|
RugbyGameApi.ctorParameters = function () { return [
|
|
7368
7511
|
{ type: http.HttpClient },
|
|
7369
7512
|
{ type: ConfigService }
|
|
@@ -9195,63 +9338,76 @@
|
|
|
9195
9338
|
_a$6);
|
|
9196
9339
|
|
|
9197
9340
|
var _a$7;
|
|
9198
|
-
var
|
|
9199
|
-
_a$7[exports.
|
|
9200
|
-
_a$7[exports.
|
|
9201
|
-
_a$7[exports.
|
|
9202
|
-
_a$7[exports.
|
|
9203
|
-
_a$7[exports.
|
|
9204
|
-
_a$7[exports.
|
|
9205
|
-
_a$7[exports.RugbyGameLogTypes.drawing_ball] = 'Розыгрыш мяча',
|
|
9206
|
-
_a$7[exports.RugbyGameLogTypes.penalty_miss] = 'Штрафной промах',
|
|
9207
|
-
_a$7[exports.RugbyGameLogTypes.penalty_goal] = 'Штрафной гол',
|
|
9208
|
-
_a$7[exports.RugbyGameLogTypes.drop_goal] = 'Дроп-гол',
|
|
9209
|
-
_a$7[exports.RugbyGameLogTypes.drop_goal_miss] = 'Дроп-гол промах',
|
|
9210
|
-
_a$7[exports.RugbyGameLogTypes.free_kick] = 'Свободный удар',
|
|
9211
|
-
_a$7[exports.RugbyGameLogTypes.yellow_card] = 'Желтая карточка',
|
|
9212
|
-
_a$7[exports.RugbyGameLogTypes.red_card] = 'Красная карточка',
|
|
9213
|
-
_a$7[exports.RugbyGameLogTypes.offload] = 'Скидка при завхвате',
|
|
9214
|
-
_a$7[exports.RugbyGameLogTypes.tackle] = 'Успешный захват',
|
|
9215
|
-
_a$7[exports.RugbyGameLogTypes.out] = 'Аут',
|
|
9216
|
-
_a$7[exports.RugbyGameLogTypes.handling_error] = 'Ошибка приема',
|
|
9217
|
-
_a$7[exports.RugbyGameLogTypes.carries_other_gainline] = 'Прорыв линии',
|
|
9218
|
-
_a$7[exports.RugbyGameLogTypes.timeout] = 'Таймаут',
|
|
9219
|
-
_a$7[exports.RugbyGameLogTypes.scrum_won] = 'Свахтка выиграна',
|
|
9220
|
-
_a$7[exports.RugbyGameLogTypes.scrum_lose] = 'Схватка проиграна',
|
|
9221
|
-
_a$7[exports.RugbyGameLogTypes.scrum_won_free] = 'Схватка выиграна без сопротивления',
|
|
9222
|
-
_a$7[exports.RugbyGameLogTypes.lineout_success] = 'Корридор выиграно',
|
|
9223
|
-
_a$7[exports.RugbyGameLogTypes.lineout_loss] = 'Корридор потеря',
|
|
9224
|
-
_a$7[exports.RugbyGameLogTypes.lineout_steal] = 'Корридор перехват',
|
|
9225
|
-
_a$7[exports.RugbyGameLogTypes.quick_throw] = 'Быстрый вброс',
|
|
9226
|
-
_a$7[exports.RugbyGameLogTypes.ruck_won] = 'Рак выиграно',
|
|
9227
|
-
_a$7[exports.RugbyGameLogTypes.ruck_lose] = 'Рак проиграно',
|
|
9228
|
-
_a$7[exports.RugbyGameLogTypes.maul_won] = 'Мол выиграно',
|
|
9229
|
-
_a$7[exports.RugbyGameLogTypes.maul_lose] = 'Мол проиграно',
|
|
9230
|
-
_a$7[exports.RugbyGameLogTypes.team_foul] = 'Фол',
|
|
9341
|
+
var RugbyFoulSanctionLocalization = (_a$7 = {},
|
|
9342
|
+
_a$7[exports.RugbyFoulSanctions.scrum] = 'Схватка',
|
|
9343
|
+
_a$7[exports.RugbyFoulSanctions.lineout] = 'Корридор',
|
|
9344
|
+
_a$7[exports.RugbyFoulSanctions.free_kick] = 'Свободный удар',
|
|
9345
|
+
_a$7[exports.RugbyFoulSanctions.penalty_shot] = 'Штрафной удар',
|
|
9346
|
+
_a$7[exports.RugbyFoulSanctions.yellow_card] = 'Желтая карточка',
|
|
9347
|
+
_a$7[exports.RugbyFoulSanctions.red_card] = 'Красная карточка',
|
|
9231
9348
|
_a$7);
|
|
9232
9349
|
|
|
9233
9350
|
var _a$8;
|
|
9234
|
-
var
|
|
9235
|
-
_a$8[exports.
|
|
9236
|
-
_a$8[exports.
|
|
9237
|
-
_a$8[exports.
|
|
9238
|
-
_a$8[exports.
|
|
9239
|
-
_a$8[exports.
|
|
9240
|
-
_a$8[exports.
|
|
9241
|
-
_a$8[exports.
|
|
9242
|
-
_a$8[exports.
|
|
9243
|
-
_a$8[exports.
|
|
9244
|
-
_a$8[exports.
|
|
9351
|
+
var RugbyGameLogTypeLocalization = (_a$8 = {},
|
|
9352
|
+
_a$8[exports.RugbyGameLogTypes.enter_game] = 'Выход на площадку',
|
|
9353
|
+
_a$8[exports.RugbyGameLogTypes.exit_game] = 'Ушел с площадки',
|
|
9354
|
+
_a$8[exports.RugbyGameLogTypes.try] = 'Попытка',
|
|
9355
|
+
_a$8[exports.RugbyGameLogTypes.penalty_try] = 'Штрафная попытка',
|
|
9356
|
+
_a$8[exports.RugbyGameLogTypes.conversion_goal] = 'Реализация',
|
|
9357
|
+
_a$8[exports.RugbyGameLogTypes.conversion_miss] = 'Реализация промах',
|
|
9358
|
+
_a$8[exports.RugbyGameLogTypes.drawing_ball] = 'Розыгрыш мяча',
|
|
9359
|
+
_a$8[exports.RugbyGameLogTypes.penalty_miss] = 'Штрафной промах',
|
|
9360
|
+
_a$8[exports.RugbyGameLogTypes.penalty_goal] = 'Штрафной гол',
|
|
9361
|
+
_a$8[exports.RugbyGameLogTypes.drop_goal] = 'Дроп-гол',
|
|
9362
|
+
_a$8[exports.RugbyGameLogTypes.drop_goal_miss] = 'Дроп-гол промах',
|
|
9363
|
+
_a$8[exports.RugbyGameLogTypes.free_kick] = 'Свободный удар',
|
|
9364
|
+
_a$8[exports.RugbyGameLogTypes.foul] = 'Фол',
|
|
9365
|
+
_a$8[exports.RugbyGameLogTypes.yellow_card] = 'Желтая карточка',
|
|
9366
|
+
_a$8[exports.RugbyGameLogTypes.red_card] = 'Красная карточка',
|
|
9367
|
+
_a$8[exports.RugbyGameLogTypes.offload] = 'Скидка при завхвате',
|
|
9368
|
+
_a$8[exports.RugbyGameLogTypes.tackle] = 'Успешный захват',
|
|
9369
|
+
_a$8[exports.RugbyGameLogTypes.out] = 'Аут',
|
|
9370
|
+
_a$8[exports.RugbyGameLogTypes.handling_error] = 'Ошибка приема',
|
|
9371
|
+
_a$8[exports.RugbyGameLogTypes.carries_other_gainline] = 'Прорыв линии',
|
|
9372
|
+
_a$8[exports.RugbyGameLogTypes.bleeding_injury] = 'Кровоточащая травма',
|
|
9373
|
+
_a$8[exports.RugbyGameLogTypes.head_injury] = 'Травма головы',
|
|
9374
|
+
_a$8[exports.RugbyGameLogTypes.timeout] = 'Таймаут',
|
|
9375
|
+
_a$8[exports.RugbyGameLogTypes.scrum_won] = 'Свахтка выиграна',
|
|
9376
|
+
_a$8[exports.RugbyGameLogTypes.scrum_lose] = 'Схватка проиграна',
|
|
9377
|
+
_a$8[exports.RugbyGameLogTypes.scrum_won_free] = 'Схватка выиграна без сопротивления',
|
|
9378
|
+
_a$8[exports.RugbyGameLogTypes.lineout_success] = 'Корридор выиграно',
|
|
9379
|
+
_a$8[exports.RugbyGameLogTypes.lineout_loss] = 'Корридор потеря',
|
|
9380
|
+
_a$8[exports.RugbyGameLogTypes.lineout_steal] = 'Корридор перехват',
|
|
9381
|
+
_a$8[exports.RugbyGameLogTypes.quick_throw] = 'Быстрый вброс',
|
|
9382
|
+
_a$8[exports.RugbyGameLogTypes.ruck_won] = 'Рак выиграно',
|
|
9383
|
+
_a$8[exports.RugbyGameLogTypes.ruck_lose] = 'Рак проиграно',
|
|
9384
|
+
_a$8[exports.RugbyGameLogTypes.maul_won] = 'Мол выиграно',
|
|
9385
|
+
_a$8[exports.RugbyGameLogTypes.maul_lose] = 'Мол проиграно',
|
|
9386
|
+
_a$8[exports.RugbyGameLogTypes.team_foul] = 'Фол',
|
|
9245
9387
|
_a$8);
|
|
9246
9388
|
|
|
9247
|
-
var _a$9
|
|
9248
|
-
var
|
|
9249
|
-
_a$9[exports.
|
|
9250
|
-
_a$9[exports.
|
|
9251
|
-
_a$9[exports.
|
|
9252
|
-
_a$9[exports.
|
|
9253
|
-
_a$9[exports.
|
|
9389
|
+
var _a$9;
|
|
9390
|
+
var TeamUserRoleLocalization = (_a$9 = {},
|
|
9391
|
+
_a$9[exports.TeamUserRole.member] = 'Пользователь',
|
|
9392
|
+
_a$9[exports.TeamUserRole.moderator] = 'Модератор',
|
|
9393
|
+
_a$9[exports.TeamUserRole.admin] = 'Владелец',
|
|
9394
|
+
_a$9[exports.TeamUserRole.coach] = 'Тренер',
|
|
9395
|
+
_a$9[exports.TeamUserRole.head_coach] = 'Главный тренер',
|
|
9396
|
+
_a$9[exports.TeamUserRole.playing_coach] = 'Играющий тренер',
|
|
9397
|
+
_a$9[exports.TeamUserRole.manager] = 'Менеджер',
|
|
9398
|
+
_a$9[exports.TeamUserRole.head_manager] = 'Генеральный менеджер',
|
|
9399
|
+
_a$9[exports.TeamUserRole.captain] = 'Капитан',
|
|
9400
|
+
_a$9[exports.TeamUserRole.assistant] = 'Ассистент',
|
|
9254
9401
|
_a$9);
|
|
9402
|
+
|
|
9403
|
+
var _a$a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
9404
|
+
var GameBasketballPositionLocalization = (_a$a = {},
|
|
9405
|
+
_a$a[exports.GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
|
|
9406
|
+
_a$a[exports.GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
|
|
9407
|
+
_a$a[exports.GameBasketballPosition.small_forward] = 'Легкий форвард',
|
|
9408
|
+
_a$a[exports.GameBasketballPosition.power_forward] = 'Мощный форвард',
|
|
9409
|
+
_a$a[exports.GameBasketballPosition.center] = 'Центровой',
|
|
9410
|
+
_a$a);
|
|
9255
9411
|
var GameBasketballPositionShortLocalization = (_b = {},
|
|
9256
9412
|
_b[exports.GameBasketballPosition.point_guard] = 'PG',
|
|
9257
9413
|
_b[exports.GameBasketballPosition.shooting_guard] = 'SG',
|
|
@@ -9320,31 +9476,31 @@
|
|
|
9320
9476
|
_m[exports.GameRugbyPosition.fullback] = 'Замыкающий',
|
|
9321
9477
|
_m);
|
|
9322
9478
|
|
|
9323
|
-
var _a$
|
|
9324
|
-
var VolleyballGameLogTypeLocalization = (_a$
|
|
9325
|
-
_a$
|
|
9326
|
-
_a$
|
|
9327
|
-
_a$
|
|
9328
|
-
_a$
|
|
9329
|
-
_a$
|
|
9330
|
-
_a$
|
|
9331
|
-
_a$
|
|
9332
|
-
_a$
|
|
9333
|
-
_a$
|
|
9334
|
-
_a$
|
|
9335
|
-
_a$
|
|
9336
|
-
_a$
|
|
9337
|
-
_a$
|
|
9338
|
-
_a$
|
|
9339
|
-
_a$
|
|
9340
|
-
_a$
|
|
9341
|
-
_a$
|
|
9342
|
-
_a$
|
|
9343
|
-
_a$
|
|
9344
|
-
_a$
|
|
9345
|
-
_a$
|
|
9346
|
-
_a$
|
|
9347
|
-
_a$
|
|
9479
|
+
var _a$b;
|
|
9480
|
+
var VolleyballGameLogTypeLocalization = (_a$b = {},
|
|
9481
|
+
_a$b[exports.VolleyballGameLogType.enter_game] = 'Выход на площадку',
|
|
9482
|
+
_a$b[exports.VolleyballGameLogType.exit_game] = 'Уход с площадки',
|
|
9483
|
+
_a$b[exports.VolleyballGameLogType.remove_game] = 'Удаление с площадки',
|
|
9484
|
+
_a$b[exports.VolleyballGameLogType.serve_ace] = 'Эйс',
|
|
9485
|
+
_a$b[exports.VolleyballGameLogType.serve_hit] = 'Подача',
|
|
9486
|
+
_a$b[exports.VolleyballGameLogType.serve_fault] = 'Ошибка на подаче',
|
|
9487
|
+
_a$b[exports.VolleyballGameLogType.attack_spike] = 'Результативная атака',
|
|
9488
|
+
_a$b[exports.VolleyballGameLogType.attack_shot] = 'Атака',
|
|
9489
|
+
_a$b[exports.VolleyballGameLogType.attack_fault] = 'Ошибка атаки',
|
|
9490
|
+
_a$b[exports.VolleyballGameLogType.stuff_block] = 'Результативный блок',
|
|
9491
|
+
_a$b[exports.VolleyballGameLogType.block_rebound] = 'Блок',
|
|
9492
|
+
_a$b[exports.VolleyballGameLogType.block_fault] = 'Ошибка на блоке',
|
|
9493
|
+
_a$b[exports.VolleyballGameLogType.excellent_receive] = 'Отличный прием',
|
|
9494
|
+
_a$b[exports.VolleyballGameLogType.receive] = 'Прием',
|
|
9495
|
+
_a$b[exports.VolleyballGameLogType.receive_fault] = 'Ошибка на приеме',
|
|
9496
|
+
_a$b[exports.VolleyballGameLogType.serve_receive] = 'Прием подачи',
|
|
9497
|
+
_a$b[exports.VolleyballGameLogType.excellent_serve_receive] = 'Отличный прием подачи',
|
|
9498
|
+
_a$b[exports.VolleyballGameLogType.serve_receive_fault] = 'Ошибка приема подачи',
|
|
9499
|
+
_a$b[exports.VolleyballGameLogType.point] = 'Очко',
|
|
9500
|
+
_a$b[exports.VolleyballGameLogType.fault] = 'Ошибка',
|
|
9501
|
+
_a$b[exports.VolleyballGameLogType.timeout] = 'Таймаут',
|
|
9502
|
+
_a$b[exports.VolleyballGameLogType.yellow_card] = 'Предупреждение',
|
|
9503
|
+
_a$b);
|
|
9348
9504
|
|
|
9349
9505
|
var LeaguePlaylist = /** @class */ (function (_super) {
|
|
9350
9506
|
__extends(LeaguePlaylist, _super);
|
|
@@ -9375,41 +9531,6 @@
|
|
|
9375
9531
|
return LeaguePlaylist;
|
|
9376
9532
|
}(BaseModel));
|
|
9377
9533
|
|
|
9378
|
-
var RugbyGameConfig = /** @class */ (function (_super) {
|
|
9379
|
-
__extends(RugbyGameConfig, _super);
|
|
9380
|
-
function RugbyGameConfig() {
|
|
9381
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
9382
|
-
}
|
|
9383
|
-
RugbyGameConfig.toFront = function (data) { };
|
|
9384
|
-
RugbyGameConfig.toBack = function (data) { };
|
|
9385
|
-
__decorate([
|
|
9386
|
-
ToFrontHook
|
|
9387
|
-
], RugbyGameConfig, "toFront", null);
|
|
9388
|
-
__decorate([
|
|
9389
|
-
ToBackHook
|
|
9390
|
-
], RugbyGameConfig, "toBack", null);
|
|
9391
|
-
RugbyGameConfig = __decorate([
|
|
9392
|
-
ModelInstance({
|
|
9393
|
-
mappingFields: {
|
|
9394
|
-
periods_count: 'periodsCount',
|
|
9395
|
-
period_time: 'periodTime',
|
|
9396
|
-
overtime_type: 'overtimeType',
|
|
9397
|
-
overtime_time: 'overtimeTime',
|
|
9398
|
-
overtime_periods: 'overtimePeriods',
|
|
9399
|
-
max_game_players: 'maxGamePlayers',
|
|
9400
|
-
game_time_type: 'gameTimeType',
|
|
9401
|
-
substitute_count: 'substituteCount',
|
|
9402
|
-
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
9403
|
-
},
|
|
9404
|
-
relation: {
|
|
9405
|
-
overtimeType: enumField(exports.OvertimeTypes),
|
|
9406
|
-
gameTimeType: enumField(exports.GameTimeTypes),
|
|
9407
|
-
}
|
|
9408
|
-
})
|
|
9409
|
-
], RugbyGameConfig);
|
|
9410
|
-
return RugbyGameConfig;
|
|
9411
|
-
}(BaseModel));
|
|
9412
|
-
|
|
9413
9534
|
var CentrifugoService = /** @class */ (function () {
|
|
9414
9535
|
function CentrifugoService(httpClient, configService) {
|
|
9415
9536
|
this.httpClient = httpClient;
|
|
@@ -9927,6 +10048,8 @@
|
|
|
9927
10048
|
exports.RUGBY_GAME_LOG_TYPE_POINTS = RUGBY_GAME_LOG_TYPE_POINTS;
|
|
9928
10049
|
exports.RUGBY_TEAM_LOG_TYPES = RUGBY_TEAM_LOG_TYPES;
|
|
9929
10050
|
exports.ReferenceApi = ReferenceApi;
|
|
10051
|
+
exports.RugbyFoulSanctionLocalization = RugbyFoulSanctionLocalization;
|
|
10052
|
+
exports.RugbyFoulType = RugbyFoulType;
|
|
9930
10053
|
exports.RugbyGameApi = RugbyGameApi;
|
|
9931
10054
|
exports.RugbyGameConfig = RugbyGameConfig;
|
|
9932
10055
|
exports.RugbyGameLog = RugbyGameLog;
|