@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
package/fesm5/mtgame-core.js
CHANGED
|
@@ -1784,6 +1784,41 @@ var TournamentGroup = /** @class */ (function (_super) {
|
|
|
1784
1784
|
return TournamentGroup;
|
|
1785
1785
|
}(BaseModel));
|
|
1786
1786
|
|
|
1787
|
+
var RugbyGameConfig = /** @class */ (function (_super) {
|
|
1788
|
+
__extends(RugbyGameConfig, _super);
|
|
1789
|
+
function RugbyGameConfig() {
|
|
1790
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1791
|
+
}
|
|
1792
|
+
RugbyGameConfig.toFront = function (data) { };
|
|
1793
|
+
RugbyGameConfig.toBack = function (data) { };
|
|
1794
|
+
__decorate([
|
|
1795
|
+
ToFrontHook
|
|
1796
|
+
], RugbyGameConfig, "toFront", null);
|
|
1797
|
+
__decorate([
|
|
1798
|
+
ToBackHook
|
|
1799
|
+
], RugbyGameConfig, "toBack", null);
|
|
1800
|
+
RugbyGameConfig = __decorate([
|
|
1801
|
+
ModelInstance({
|
|
1802
|
+
mappingFields: {
|
|
1803
|
+
periods_count: 'periodsCount',
|
|
1804
|
+
period_time: 'periodTime',
|
|
1805
|
+
overtime_type: 'overtimeType',
|
|
1806
|
+
overtime_time: 'overtimeTime',
|
|
1807
|
+
overtime_periods: 'overtimePeriods',
|
|
1808
|
+
max_game_players: 'maxGamePlayers',
|
|
1809
|
+
game_time_type: 'gameTimeType',
|
|
1810
|
+
substitute_count: 'substituteCount',
|
|
1811
|
+
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
1812
|
+
},
|
|
1813
|
+
relation: {
|
|
1814
|
+
overtimeType: enumField(OvertimeTypes),
|
|
1815
|
+
gameTimeType: enumField(GameTimeTypes),
|
|
1816
|
+
}
|
|
1817
|
+
})
|
|
1818
|
+
], RugbyGameConfig);
|
|
1819
|
+
return RugbyGameConfig;
|
|
1820
|
+
}(BaseModel));
|
|
1821
|
+
|
|
1787
1822
|
var GameStatuses;
|
|
1788
1823
|
(function (GameStatuses) {
|
|
1789
1824
|
GameStatuses[GameStatuses["open"] = 1] = "open";
|
|
@@ -1911,6 +1946,22 @@ var Game = /** @class */ (function (_super) {
|
|
|
1911
1946
|
enumerable: true,
|
|
1912
1947
|
configurable: true
|
|
1913
1948
|
});
|
|
1949
|
+
Object.defineProperty(Game.prototype, "rugbyGameConfig", {
|
|
1950
|
+
get: function () {
|
|
1951
|
+
if (this._rugbyGameConfig && this._rugbyGameConfig.periodsCount) {
|
|
1952
|
+
return this._rugbyGameConfig;
|
|
1953
|
+
}
|
|
1954
|
+
if (this.gameConfig) {
|
|
1955
|
+
this._rugbyGameConfig = RugbyGameConfig.toFront(this.gameConfig);
|
|
1956
|
+
}
|
|
1957
|
+
return this._rugbyGameConfig;
|
|
1958
|
+
},
|
|
1959
|
+
set: function (value) {
|
|
1960
|
+
this._rugbyGameConfig = value;
|
|
1961
|
+
},
|
|
1962
|
+
enumerable: true,
|
|
1963
|
+
configurable: true
|
|
1964
|
+
});
|
|
1914
1965
|
Object.defineProperty(Game.prototype, "scoreByPeriodList", {
|
|
1915
1966
|
get: function () {
|
|
1916
1967
|
var _this = this;
|
|
@@ -2001,6 +2052,7 @@ var Game = /** @class */ (function (_super) {
|
|
|
2001
2052
|
hockey_game_config: 'hockeyGameConfig',
|
|
2002
2053
|
football_game_config: 'footballGameConfig',
|
|
2003
2054
|
handball_game_config: 'handballGameConfig',
|
|
2055
|
+
rugby_game_config: 'rugbyGameConfig',
|
|
2004
2056
|
score_by_period: 'scoreByPeriod',
|
|
2005
2057
|
playoff_stage: 'playoffStage',
|
|
2006
2058
|
tournament_stage_id: 'tournamentStageId',
|
|
@@ -5144,13 +5196,19 @@ var RugbyStatistic = /** @class */ (function (_super) {
|
|
|
5144
5196
|
points: 'points',
|
|
5145
5197
|
tries: 'tries',
|
|
5146
5198
|
penalty_tries: 'penaltyTries',
|
|
5199
|
+
conversion_shots: 'conversionShots',
|
|
5147
5200
|
conversion_goals: 'conversionGoals',
|
|
5148
5201
|
conversion_misses: 'conversionMisses',
|
|
5202
|
+
conversion_goals_percent: 'conversionGoalsPercent',
|
|
5149
5203
|
drawing_ball: 'drawingBall',
|
|
5204
|
+
penalty_shots: 'penaltyShots',
|
|
5150
5205
|
penalty_misses: 'penaltyMisses',
|
|
5151
5206
|
penalty_goals: 'penaltyGoals',
|
|
5207
|
+
penalty_goals_percent: 'penaltyGoalsPercent',
|
|
5208
|
+
drop_goal_shots: 'dropGoalShots',
|
|
5152
5209
|
drop_goals: 'dropGoals',
|
|
5153
5210
|
drop_goal_misses: 'dropGoalMisses',
|
|
5211
|
+
drop_goal_percent: 'dropGoalPercent',
|
|
5154
5212
|
free_kicks: 'freeKicks',
|
|
5155
5213
|
yellow_cards: 'yellowCards',
|
|
5156
5214
|
red_cards: 'redCards',
|
|
@@ -5162,16 +5220,24 @@ var RugbyStatistic = /** @class */ (function (_super) {
|
|
|
5162
5220
|
plus_minus: 'plusMinus',
|
|
5163
5221
|
game_time: 'gameTime',
|
|
5164
5222
|
// Team statistic
|
|
5223
|
+
scrums: 'scrums',
|
|
5165
5224
|
scrums_won: 'scrumsWon',
|
|
5166
5225
|
scrum_losses: 'scrumLosses',
|
|
5226
|
+
scrums_won_percent: 'scrumsWonPercent',
|
|
5167
5227
|
scrums_won_free: 'scrumsWonFree',
|
|
5228
|
+
lineouts: 'lineouts',
|
|
5168
5229
|
lineouts_success: 'lineoutsSuccess',
|
|
5230
|
+
lineout_loses: 'lineoutLoses',
|
|
5169
5231
|
lineouts_steal: 'lineoutsSteal',
|
|
5170
5232
|
quick_throws: 'quickThrows',
|
|
5233
|
+
rucks: 'rucks',
|
|
5171
5234
|
rucks_won: 'rucksWon',
|
|
5172
5235
|
ruck_losses: 'ruckLosses',
|
|
5236
|
+
rucks_won_percent: 'rucksWonPercent',
|
|
5237
|
+
mauls: 'mauls',
|
|
5173
5238
|
mauls_won: 'maulsWon',
|
|
5174
5239
|
maul_losses: 'maulLosses',
|
|
5240
|
+
mauls_won_percent: 'maulWonPercent',
|
|
5175
5241
|
fouls: 'fouls'
|
|
5176
5242
|
},
|
|
5177
5243
|
relation: {
|
|
@@ -9162,41 +9228,6 @@ var LeaguePlaylist = /** @class */ (function (_super) {
|
|
|
9162
9228
|
return LeaguePlaylist;
|
|
9163
9229
|
}(BaseModel));
|
|
9164
9230
|
|
|
9165
|
-
var RugbyGameConfig = /** @class */ (function (_super) {
|
|
9166
|
-
__extends(RugbyGameConfig, _super);
|
|
9167
|
-
function RugbyGameConfig() {
|
|
9168
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
9169
|
-
}
|
|
9170
|
-
RugbyGameConfig.toFront = function (data) { };
|
|
9171
|
-
RugbyGameConfig.toBack = function (data) { };
|
|
9172
|
-
__decorate([
|
|
9173
|
-
ToFrontHook
|
|
9174
|
-
], RugbyGameConfig, "toFront", null);
|
|
9175
|
-
__decorate([
|
|
9176
|
-
ToBackHook
|
|
9177
|
-
], RugbyGameConfig, "toBack", null);
|
|
9178
|
-
RugbyGameConfig = __decorate([
|
|
9179
|
-
ModelInstance({
|
|
9180
|
-
mappingFields: {
|
|
9181
|
-
periods_count: 'periodsCount',
|
|
9182
|
-
period_time: 'periodTime',
|
|
9183
|
-
overtime_type: 'overtimeType',
|
|
9184
|
-
overtime_time: 'overtimeTime',
|
|
9185
|
-
overtime_periods: 'overtimePeriods',
|
|
9186
|
-
max_game_players: 'maxGamePlayers',
|
|
9187
|
-
game_time_type: 'gameTimeType',
|
|
9188
|
-
substitute_count: 'substituteCount',
|
|
9189
|
-
free_substitute_enabled: 'freeSubstituteEnabled',
|
|
9190
|
-
},
|
|
9191
|
-
relation: {
|
|
9192
|
-
overtimeType: enumField(OvertimeTypes),
|
|
9193
|
-
gameTimeType: enumField(GameTimeTypes),
|
|
9194
|
-
}
|
|
9195
|
-
})
|
|
9196
|
-
], RugbyGameConfig);
|
|
9197
|
-
return RugbyGameConfig;
|
|
9198
|
-
}(BaseModel));
|
|
9199
|
-
|
|
9200
9231
|
var CentrifugoService = /** @class */ (function () {
|
|
9201
9232
|
function CentrifugoService(httpClient, configService) {
|
|
9202
9233
|
this.httpClient = httpClient;
|