@mtgame/core 0.1.40 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/mtgame-core.umd.js +66 -35
- 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/models/game.js +15 -1
- package/esm2015/models/rugby-statistic.js +15 -1
- package/esm5/models/game.js +19 -1
- package/esm5/models/rugby-statistic.js +15 -1
- package/fesm2015/mtgame-core.js +57 -30
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +66 -35
- package/fesm5/mtgame-core.js.map +1 -1
- package/models/game.d.ts +4 -0
- package/models/rugby-statistic.d.ts +14 -0
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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',
|
|
@@ -5357,13 +5409,19 @@
|
|
|
5357
5409
|
points: 'points',
|
|
5358
5410
|
tries: 'tries',
|
|
5359
5411
|
penalty_tries: 'penaltyTries',
|
|
5412
|
+
conversion_shots: 'conversionShots',
|
|
5360
5413
|
conversion_goals: 'conversionGoals',
|
|
5361
5414
|
conversion_misses: 'conversionMisses',
|
|
5415
|
+
conversion_goals_percent: 'conversionGoalsPercent',
|
|
5362
5416
|
drawing_ball: 'drawingBall',
|
|
5417
|
+
penalty_shots: 'penaltyShots',
|
|
5363
5418
|
penalty_misses: 'penaltyMisses',
|
|
5364
5419
|
penalty_goals: 'penaltyGoals',
|
|
5420
|
+
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
5421
|
+
drop_goal_shots: 'dropGoalShots',
|
|
5365
5422
|
drop_goals: 'dropGoals',
|
|
5366
5423
|
drop_goal_misses: 'dropGoalMisses',
|
|
5424
|
+
drop_goal_percent: 'dropGoalPercent',
|
|
5367
5425
|
free_kicks: 'freeKicks',
|
|
5368
5426
|
yellow_cards: 'yellowCards',
|
|
5369
5427
|
red_cards: 'redCards',
|
|
@@ -5375,16 +5433,24 @@
|
|
|
5375
5433
|
plus_minus: 'plusMinus',
|
|
5376
5434
|
game_time: 'gameTime',
|
|
5377
5435
|
// Team statistic
|
|
5436
|
+
scrums: 'scrums',
|
|
5378
5437
|
scrums_won: 'scrumsWon',
|
|
5379
5438
|
scrum_losses: 'scrumLosses',
|
|
5439
|
+
scrums_won_percent: 'scrumsWonPercent',
|
|
5380
5440
|
scrums_won_free: 'scrumsWonFree',
|
|
5441
|
+
lineouts: 'lineouts',
|
|
5381
5442
|
lineouts_success: 'lineoutsSuccess',
|
|
5443
|
+
lineout_loses: 'lineoutLoses',
|
|
5382
5444
|
lineouts_steal: 'lineoutsSteal',
|
|
5383
5445
|
quick_throws: 'quickThrows',
|
|
5446
|
+
rucks: 'rucks',
|
|
5384
5447
|
rucks_won: 'rucksWon',
|
|
5385
5448
|
ruck_losses: 'ruckLosses',
|
|
5449
|
+
rucks_won_percent: 'rucksWonPercent',
|
|
5450
|
+
mauls: 'mauls',
|
|
5386
5451
|
mauls_won: 'maulsWon',
|
|
5387
5452
|
maul_losses: 'maulLosses',
|
|
5453
|
+
mauls_won_percent: 'maulWonPercent',
|
|
5388
5454
|
fouls: 'fouls'
|
|
5389
5455
|
},
|
|
5390
5456
|
relation: {
|
|
@@ -9375,41 +9441,6 @@
|
|
|
9375
9441
|
return LeaguePlaylist;
|
|
9376
9442
|
}(BaseModel));
|
|
9377
9443
|
|
|
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
9444
|
var CentrifugoService = /** @class */ (function () {
|
|
9414
9445
|
function CentrifugoService(httpClient, configService) {
|
|
9415
9446
|
this.httpClient = httpClient;
|