@mtgame/core 0.2.71 → 0.2.72
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 +321 -22
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/models/public-api.js +7 -1
- package/esm2015/models/wrestball-game-log.js +128 -0
- package/esm2015/models/wrestball-game-statistic.js +100 -0
- package/esm2015/models/wrestball-game-team-statistic.js +27 -0
- package/esm2015/mtgame-core.js +1 -3
- package/fesm2015/mtgame-core.js +246 -1
- package/fesm2015/mtgame-core.js.map +1 -1
- package/models/public-api.d.ts +6 -0
- package/models/wrestball-game-log.d.ts +64 -0
- package/models/wrestball-game-statistic.d.ts +52 -0
- package/models/wrestball-game-team-statistic.d.ts +9 -0
- package/mtgame-core.d.ts +0 -2
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1235,12 +1235,12 @@
|
|
|
1235
1235
|
})
|
|
1236
1236
|
], exports.WaterpoloProfile);
|
|
1237
1237
|
|
|
1238
|
-
exports
|
|
1238
|
+
exports.WrestballWorkHand = void 0;
|
|
1239
1239
|
(function (WrestballWorkHand) {
|
|
1240
1240
|
WrestballWorkHand[WrestballWorkHand["left"] = 1] = "left";
|
|
1241
1241
|
WrestballWorkHand[WrestballWorkHand["right"] = 2] = "right";
|
|
1242
|
-
})(exports
|
|
1243
|
-
exports
|
|
1242
|
+
})(exports.WrestballWorkHand || (exports.WrestballWorkHand = {}));
|
|
1243
|
+
exports.WrestballProfile = /** @class */ (function (_super) {
|
|
1244
1244
|
__extends(WrestballProfile, _super);
|
|
1245
1245
|
function WrestballProfile() {
|
|
1246
1246
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -1253,11 +1253,11 @@
|
|
|
1253
1253
|
}(BaseModel));
|
|
1254
1254
|
__decorate([
|
|
1255
1255
|
ToFrontHook
|
|
1256
|
-
], exports
|
|
1256
|
+
], exports.WrestballProfile, "toFront", null);
|
|
1257
1257
|
__decorate([
|
|
1258
1258
|
ToBackHook
|
|
1259
|
-
], exports
|
|
1260
|
-
exports
|
|
1259
|
+
], exports.WrestballProfile, "toBack", null);
|
|
1260
|
+
exports.WrestballProfile = __decorate([
|
|
1261
1261
|
ModelInstance({
|
|
1262
1262
|
mappingFields: {
|
|
1263
1263
|
id: 'id',
|
|
@@ -1265,10 +1265,10 @@
|
|
|
1265
1265
|
work_hand: 'workHand'
|
|
1266
1266
|
},
|
|
1267
1267
|
relation: {
|
|
1268
|
-
workHand: enumField(exports
|
|
1268
|
+
workHand: enumField(exports.WrestballWorkHand)
|
|
1269
1269
|
}
|
|
1270
1270
|
})
|
|
1271
|
-
], exports
|
|
1271
|
+
], exports.WrestballProfile);
|
|
1272
1272
|
|
|
1273
1273
|
exports.UserGender = void 0;
|
|
1274
1274
|
(function (UserGender) {
|
|
@@ -1364,7 +1364,7 @@
|
|
|
1364
1364
|
handballProfile: exports.HandballProfile,
|
|
1365
1365
|
rugbyProfile: exports.RugbyProfile,
|
|
1366
1366
|
waterpoloProfile: exports.WaterpoloProfile,
|
|
1367
|
-
wrestballProfile: exports
|
|
1367
|
+
wrestballProfile: exports.WrestballProfile,
|
|
1368
1368
|
city: exports.City,
|
|
1369
1369
|
gender: enumField(exports.UserGender)
|
|
1370
1370
|
}
|
|
@@ -2480,7 +2480,7 @@
|
|
|
2480
2480
|
})
|
|
2481
2481
|
], exports.WaterpoloGameConfig);
|
|
2482
2482
|
|
|
2483
|
-
exports
|
|
2483
|
+
exports.WrestballGameConfig = /** @class */ (function (_super) {
|
|
2484
2484
|
__extends(WrestballGameConfig, _super);
|
|
2485
2485
|
function WrestballGameConfig() {
|
|
2486
2486
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -2491,11 +2491,11 @@
|
|
|
2491
2491
|
}(BaseModel));
|
|
2492
2492
|
__decorate([
|
|
2493
2493
|
ToFrontHook
|
|
2494
|
-
], exports
|
|
2494
|
+
], exports.WrestballGameConfig, "toFront", null);
|
|
2495
2495
|
__decorate([
|
|
2496
2496
|
ToBackHook
|
|
2497
|
-
], exports
|
|
2498
|
-
exports
|
|
2497
|
+
], exports.WrestballGameConfig, "toBack", null);
|
|
2498
|
+
exports.WrestballGameConfig = __decorate([
|
|
2499
2499
|
ModelInstance({
|
|
2500
2500
|
mappingFields: {
|
|
2501
2501
|
periods_count: 'periodsCount',
|
|
@@ -2522,7 +2522,7 @@
|
|
|
2522
2522
|
timerType: enumField(exports.TimerTypes),
|
|
2523
2523
|
}
|
|
2524
2524
|
})
|
|
2525
|
-
], exports
|
|
2525
|
+
], exports.WrestballGameConfig);
|
|
2526
2526
|
|
|
2527
2527
|
exports.GameStatuses = void 0;
|
|
2528
2528
|
(function (GameStatuses) {
|
|
@@ -2713,7 +2713,7 @@
|
|
|
2713
2713
|
return this._wrestballGameConfig;
|
|
2714
2714
|
}
|
|
2715
2715
|
if (this.gameConfig) {
|
|
2716
|
-
this._wrestballGameConfig = exports
|
|
2716
|
+
this._wrestballGameConfig = exports.WrestballGameConfig.toFront(this.gameConfig);
|
|
2717
2717
|
}
|
|
2718
2718
|
return this._wrestballGameConfig;
|
|
2719
2719
|
},
|
|
@@ -2876,7 +2876,7 @@
|
|
|
2876
2876
|
handballGameConfig: exports.HandballGameConfig,
|
|
2877
2877
|
rugbyGameConfig: exports.RugbyGameConfig,
|
|
2878
2878
|
waterpoloGameConfig: exports.WaterpoloGameConfig,
|
|
2879
|
-
wrestballGameConfig: exports
|
|
2879
|
+
wrestballGameConfig: exports.WrestballGameConfig,
|
|
2880
2880
|
tournamentPlayoff: exports.Playoff,
|
|
2881
2881
|
tournamentCourt: exports.LeagueCourt,
|
|
2882
2882
|
media: listField(exports.MediaItem),
|
|
@@ -7455,7 +7455,7 @@
|
|
|
7455
7455
|
})
|
|
7456
7456
|
], exports.TournamentRound);
|
|
7457
7457
|
|
|
7458
|
-
|
|
7458
|
+
exports.WrestballStatistic = /** @class */ (function (_super) {
|
|
7459
7459
|
__extends(WrestballStatistic, _super);
|
|
7460
7460
|
function WrestballStatistic() {
|
|
7461
7461
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -7534,11 +7534,11 @@
|
|
|
7534
7534
|
}(BaseModel));
|
|
7535
7535
|
__decorate([
|
|
7536
7536
|
ToFrontHook
|
|
7537
|
-
], WrestballStatistic, "toFront", null);
|
|
7537
|
+
], exports.WrestballStatistic, "toFront", null);
|
|
7538
7538
|
__decorate([
|
|
7539
7539
|
ToBackHook
|
|
7540
|
-
], WrestballStatistic, "toBack", null);
|
|
7541
|
-
WrestballStatistic = __decorate([
|
|
7540
|
+
], exports.WrestballStatistic, "toBack", null);
|
|
7541
|
+
exports.WrestballStatistic = __decorate([
|
|
7542
7542
|
ModelInstance({
|
|
7543
7543
|
mappingFields: {
|
|
7544
7544
|
league_player: 'leaguePlayer',
|
|
@@ -7604,7 +7604,7 @@
|
|
|
7604
7604
|
month: DateField
|
|
7605
7605
|
}
|
|
7606
7606
|
})
|
|
7607
|
-
], WrestballStatistic);
|
|
7607
|
+
], exports.WrestballStatistic);
|
|
7608
7608
|
|
|
7609
7609
|
var TournamentApi = /** @class */ (function () {
|
|
7610
7610
|
function TournamentApi(httpClient, configService) {
|
|
@@ -8096,7 +8096,7 @@
|
|
|
8096
8096
|
params = applyStatisticFilters(filters, params);
|
|
8097
8097
|
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/wrestball_statistic/", { params: params, observe: 'response' }).pipe(operators.map(function (result) { return ({
|
|
8098
8098
|
total: +result.headers.get('X-Page-Count'),
|
|
8099
|
-
data: WrestballStatistic.toFront(result.body)
|
|
8099
|
+
data: exports.WrestballStatistic.toFront(result.body)
|
|
8100
8100
|
}); })).toPromise()];
|
|
8101
8101
|
});
|
|
8102
8102
|
});
|
|
@@ -14050,6 +14050,305 @@
|
|
|
14050
14050
|
})
|
|
14051
14051
|
], exports.OrganizationStatistic);
|
|
14052
14052
|
|
|
14053
|
+
exports.WrestballGameLogTypes = void 0;
|
|
14054
|
+
(function (WrestballGameLogTypes) {
|
|
14055
|
+
WrestballGameLogTypes[WrestballGameLogTypes["enter_game"] = 1] = "enter_game";
|
|
14056
|
+
WrestballGameLogTypes[WrestballGameLogTypes["exit_game"] = 2] = "exit_game";
|
|
14057
|
+
WrestballGameLogTypes[WrestballGameLogTypes["remove_game"] = 3] = "remove_game";
|
|
14058
|
+
WrestballGameLogTypes[WrestballGameLogTypes["one_point_made"] = 4] = "one_point_made";
|
|
14059
|
+
WrestballGameLogTypes[WrestballGameLogTypes["one_point_attempt"] = 5] = "one_point_attempt";
|
|
14060
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_made"] = 6] = "two_point_made";
|
|
14061
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_attempt"] = 7] = "two_point_attempt";
|
|
14062
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_made"] = 8] = "three_point_made";
|
|
14063
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_attempt"] = 9] = "three_point_attempt";
|
|
14064
|
+
WrestballGameLogTypes[WrestballGameLogTypes["free_throw_made"] = 10] = "free_throw_made";
|
|
14065
|
+
WrestballGameLogTypes[WrestballGameLogTypes["free_throw_attempt"] = 11] = "free_throw_attempt";
|
|
14066
|
+
WrestballGameLogTypes[WrestballGameLogTypes["assist"] = 12] = "assist";
|
|
14067
|
+
WrestballGameLogTypes[WrestballGameLogTypes["block"] = 13] = "block";
|
|
14068
|
+
WrestballGameLogTypes[WrestballGameLogTypes["rebound"] = 14] = "rebound";
|
|
14069
|
+
WrestballGameLogTypes[WrestballGameLogTypes["offensive_rebound"] = 15] = "offensive_rebound";
|
|
14070
|
+
WrestballGameLogTypes[WrestballGameLogTypes["defensive_rebound"] = 16] = "defensive_rebound";
|
|
14071
|
+
WrestballGameLogTypes[WrestballGameLogTypes["team_rebound"] = 17] = "team_rebound";
|
|
14072
|
+
WrestballGameLogTypes[WrestballGameLogTypes["steal"] = 18] = "steal";
|
|
14073
|
+
WrestballGameLogTypes[WrestballGameLogTypes["turnover"] = 19] = "turnover";
|
|
14074
|
+
WrestballGameLogTypes[WrestballGameLogTypes["personal_foul"] = 20] = "personal_foul";
|
|
14075
|
+
WrestballGameLogTypes[WrestballGameLogTypes["timeout"] = 21] = "timeout";
|
|
14076
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum"] = 22] = "wrestler_scrum";
|
|
14077
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_won"] = 23] = "wrestler_scrum_won";
|
|
14078
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_lost"] = 24] = "wrestler_scrum_lost";
|
|
14079
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_tie"] = 25] = "wrestler_scrum_tie";
|
|
14080
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum"] = 26] = "scrum";
|
|
14081
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_won"] = 27] = "scrum_won";
|
|
14082
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_lost"] = 28] = "scrum_lost";
|
|
14083
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_tie"] = 29] = "scrum_tie";
|
|
14084
|
+
WrestballGameLogTypes[WrestballGameLogTypes["yellow_card"] = 30] = "yellow_card";
|
|
14085
|
+
WrestballGameLogTypes[WrestballGameLogTypes["red_card"] = 31] = "red_card";
|
|
14086
|
+
})(exports.WrestballGameLogTypes || (exports.WrestballGameLogTypes = {}));
|
|
14087
|
+
exports.WrestballGameLog = /** @class */ (function (_super) {
|
|
14088
|
+
__extends(WrestballGameLog, _super);
|
|
14089
|
+
function WrestballGameLog() {
|
|
14090
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
14091
|
+
_this.active = true;
|
|
14092
|
+
return _this;
|
|
14093
|
+
}
|
|
14094
|
+
WrestballGameLog.prototype.isPointsType = function () {
|
|
14095
|
+
return [
|
|
14096
|
+
exports.WrestballGameLogTypes.two_point_made,
|
|
14097
|
+
exports.WrestballGameLogTypes.three_point_made,
|
|
14098
|
+
exports.WrestballGameLogTypes.free_throw_made,
|
|
14099
|
+
exports.WrestballGameLogTypes.one_point_made,
|
|
14100
|
+
exports.WrestballGameLogTypes.scrum_won,
|
|
14101
|
+
exports.WrestballGameLogTypes.wrestler_scrum_won,
|
|
14102
|
+
].indexOf(this.logType) > -1;
|
|
14103
|
+
};
|
|
14104
|
+
WrestballGameLog.prototype.isReboundType = function () {
|
|
14105
|
+
return [
|
|
14106
|
+
exports.WrestballGameLogTypes.rebound,
|
|
14107
|
+
exports.WrestballGameLogTypes.offensive_rebound,
|
|
14108
|
+
exports.WrestballGameLogTypes.defensive_rebound,
|
|
14109
|
+
exports.WrestballGameLogTypes.team_rebound,
|
|
14110
|
+
].indexOf(this.logType) > -1;
|
|
14111
|
+
};
|
|
14112
|
+
WrestballGameLog.prototype.isFoulType = function () {
|
|
14113
|
+
return [
|
|
14114
|
+
exports.WrestballGameLogTypes.personal_foul,
|
|
14115
|
+
].indexOf(this.logType) > -1;
|
|
14116
|
+
};
|
|
14117
|
+
WrestballGameLog.prototype.getScore = function () {
|
|
14118
|
+
var _a;
|
|
14119
|
+
var scoreMapping = (_a = {},
|
|
14120
|
+
_a[exports.WrestballGameLogTypes.one_point_made] = 1,
|
|
14121
|
+
_a[exports.WrestballGameLogTypes.free_throw_made] = 1,
|
|
14122
|
+
_a[exports.WrestballGameLogTypes.two_point_made] = 2,
|
|
14123
|
+
_a[exports.WrestballGameLogTypes.three_point_made] = 3,
|
|
14124
|
+
_a[exports.WrestballGameLogTypes.scrum_won] = 2,
|
|
14125
|
+
_a[exports.WrestballGameLogTypes.wrestler_scrum_won] = 2,
|
|
14126
|
+
_a);
|
|
14127
|
+
return scoreMapping[this.logType] || 0;
|
|
14128
|
+
};
|
|
14129
|
+
WrestballGameLog.prototype.compare = function (model) {
|
|
14130
|
+
if (this.time === model.time && this.period === model.period) {
|
|
14131
|
+
if (this.datetime.getTime() === model.datetime.getTime()) {
|
|
14132
|
+
return this.id > model.id ? 1 : -1;
|
|
14133
|
+
}
|
|
14134
|
+
return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
|
|
14135
|
+
}
|
|
14136
|
+
if (this.period === model.period) {
|
|
14137
|
+
return this.time < model.time ? 1 : -1;
|
|
14138
|
+
}
|
|
14139
|
+
return this.period < model.period ? 1 : -1;
|
|
14140
|
+
};
|
|
14141
|
+
Object.defineProperty(WrestballGameLog.prototype, "timeFormatted", {
|
|
14142
|
+
get: function () {
|
|
14143
|
+
var minutes = Math.floor(this.time / 60);
|
|
14144
|
+
var seconds = this.time - minutes * 60;
|
|
14145
|
+
return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
|
|
14146
|
+
},
|
|
14147
|
+
enumerable: false,
|
|
14148
|
+
configurable: true
|
|
14149
|
+
});
|
|
14150
|
+
WrestballGameLog.toFront = function (value) { };
|
|
14151
|
+
WrestballGameLog.toBack = function (value) { };
|
|
14152
|
+
return WrestballGameLog;
|
|
14153
|
+
}(BaseModel));
|
|
14154
|
+
__decorate([
|
|
14155
|
+
ToFrontHook
|
|
14156
|
+
], exports.WrestballGameLog, "toFront", null);
|
|
14157
|
+
__decorate([
|
|
14158
|
+
ToBackHook
|
|
14159
|
+
], exports.WrestballGameLog, "toBack", null);
|
|
14160
|
+
exports.WrestballGameLog = __decorate([
|
|
14161
|
+
ModelInstance({
|
|
14162
|
+
mappingFields: {
|
|
14163
|
+
id: 'id',
|
|
14164
|
+
unique_id: 'uniqueId',
|
|
14165
|
+
game_id: 'gameId',
|
|
14166
|
+
game_user_id: 'gameUserId',
|
|
14167
|
+
team_id: 'teamId',
|
|
14168
|
+
log_type: 'logType',
|
|
14169
|
+
datetime: 'datetime',
|
|
14170
|
+
time: 'time',
|
|
14171
|
+
period: 'period',
|
|
14172
|
+
active: 'active',
|
|
14173
|
+
is_highlight: 'isHighlight',
|
|
14174
|
+
foul_on_game_user_id: 'foulOnGameUserId',
|
|
14175
|
+
is_coach: 'isCoach',
|
|
14176
|
+
is_bench: 'isBench',
|
|
14177
|
+
marked: 'marked',
|
|
14178
|
+
},
|
|
14179
|
+
relation: {
|
|
14180
|
+
datetime: DateTimeField,
|
|
14181
|
+
logType: enumField(exports.WrestballGameLogTypes),
|
|
14182
|
+
}
|
|
14183
|
+
})
|
|
14184
|
+
], exports.WrestballGameLog);
|
|
14185
|
+
|
|
14186
|
+
exports.WrestballGameStatistic = /** @class */ (function (_super) {
|
|
14187
|
+
__extends(WrestballGameStatistic, _super);
|
|
14188
|
+
function WrestballGameStatistic() {
|
|
14189
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14190
|
+
}
|
|
14191
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "id", {
|
|
14192
|
+
get: function () {
|
|
14193
|
+
return this.gameUserId;
|
|
14194
|
+
},
|
|
14195
|
+
enumerable: false,
|
|
14196
|
+
configurable: true
|
|
14197
|
+
});
|
|
14198
|
+
WrestballGameStatistic.toFront = function (data) { };
|
|
14199
|
+
WrestballGameStatistic.toBack = function (data) { };
|
|
14200
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "totalFouls", {
|
|
14201
|
+
get: function () {
|
|
14202
|
+
return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0) + (this.disqualificationFouls || 0);
|
|
14203
|
+
},
|
|
14204
|
+
enumerable: false,
|
|
14205
|
+
configurable: true
|
|
14206
|
+
});
|
|
14207
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "onePointPercent", {
|
|
14208
|
+
get: function () {
|
|
14209
|
+
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
14210
|
+
return 0;
|
|
14211
|
+
}
|
|
14212
|
+
return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
|
|
14213
|
+
},
|
|
14214
|
+
set: function (v) { },
|
|
14215
|
+
enumerable: false,
|
|
14216
|
+
configurable: true
|
|
14217
|
+
});
|
|
14218
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "twoPointPercent", {
|
|
14219
|
+
get: function () {
|
|
14220
|
+
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
14221
|
+
return 0;
|
|
14222
|
+
}
|
|
14223
|
+
return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
|
|
14224
|
+
},
|
|
14225
|
+
set: function (v) { },
|
|
14226
|
+
enumerable: false,
|
|
14227
|
+
configurable: true
|
|
14228
|
+
});
|
|
14229
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "threePointPercent", {
|
|
14230
|
+
get: function () {
|
|
14231
|
+
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
14232
|
+
return 0;
|
|
14233
|
+
}
|
|
14234
|
+
return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
|
|
14235
|
+
},
|
|
14236
|
+
set: function (v) { },
|
|
14237
|
+
enumerable: false,
|
|
14238
|
+
configurable: true
|
|
14239
|
+
});
|
|
14240
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "freeThrowPercent", {
|
|
14241
|
+
get: function () {
|
|
14242
|
+
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
14243
|
+
return 0;
|
|
14244
|
+
}
|
|
14245
|
+
return Math.round(1000 * this.freeThrowsMade / this.freeThrowAttempts) / 10;
|
|
14246
|
+
},
|
|
14247
|
+
set: function (v) { },
|
|
14248
|
+
enumerable: false,
|
|
14249
|
+
configurable: true
|
|
14250
|
+
});
|
|
14251
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "totalRebounds", {
|
|
14252
|
+
get: function () {
|
|
14253
|
+
return Math.floor(10 * ((this.offensiveRebounds || 0) + (this.defensiveRebounds || 0))) / 10;
|
|
14254
|
+
},
|
|
14255
|
+
enumerable: false,
|
|
14256
|
+
configurable: true
|
|
14257
|
+
});
|
|
14258
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "wrestlerScrums", {
|
|
14259
|
+
get: function () {
|
|
14260
|
+
return (this.wrestlerScrumsWon || 0) + (this.wrestlerScrumsLost || 0) + (this.wrestlerScrumsTie || 0);
|
|
14261
|
+
},
|
|
14262
|
+
enumerable: false,
|
|
14263
|
+
configurable: true
|
|
14264
|
+
});
|
|
14265
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "scrums", {
|
|
14266
|
+
get: function () {
|
|
14267
|
+
return (this.scrumsWon || 0) + (this.scrumsLost || 0) + (this.scrumsTie || 0);
|
|
14268
|
+
},
|
|
14269
|
+
enumerable: false,
|
|
14270
|
+
configurable: true
|
|
14271
|
+
});
|
|
14272
|
+
return WrestballGameStatistic;
|
|
14273
|
+
}(BaseModel));
|
|
14274
|
+
__decorate([
|
|
14275
|
+
ToFrontHook
|
|
14276
|
+
], exports.WrestballGameStatistic, "toFront", null);
|
|
14277
|
+
__decorate([
|
|
14278
|
+
ToBackHook
|
|
14279
|
+
], exports.WrestballGameStatistic, "toBack", null);
|
|
14280
|
+
exports.WrestballGameStatistic = __decorate([
|
|
14281
|
+
ModelInstance({
|
|
14282
|
+
mappingFields: {
|
|
14283
|
+
game_user_id: 'gameUserId',
|
|
14284
|
+
points: 'points',
|
|
14285
|
+
free_throws_made: 'freeThrowsMade',
|
|
14286
|
+
two_points_made: 'twoPointsMade',
|
|
14287
|
+
three_points_made: 'threePointsMade',
|
|
14288
|
+
one_points_made: 'onePointsMade',
|
|
14289
|
+
two_point_attempts: 'twoPointAttempts',
|
|
14290
|
+
three_point_attempts: 'threePointAttempts',
|
|
14291
|
+
free_throw_attempts: 'freeThrowAttempts',
|
|
14292
|
+
one_point_attempts: 'onePointAttempts',
|
|
14293
|
+
one_point_percent: 'onePointPercent',
|
|
14294
|
+
two_point_percent: 'twoPointPercent',
|
|
14295
|
+
three_point_percent: 'threePointPercent',
|
|
14296
|
+
free_throw_percent: 'freeThrowPercent',
|
|
14297
|
+
assists: 'assists',
|
|
14298
|
+
blocks: 'blocks',
|
|
14299
|
+
rebounds: 'rebounds',
|
|
14300
|
+
offensive_rebounds: 'offensiveRebounds',
|
|
14301
|
+
defensive_rebounds: 'defensiveRebounds',
|
|
14302
|
+
steals: 'steals',
|
|
14303
|
+
turnovers: 'turnovers',
|
|
14304
|
+
personal_fouls: 'personalFouls',
|
|
14305
|
+
drawn_fouls: 'drawnFouls',
|
|
14306
|
+
wrestler_scrums_won: 'wrestlerScrumsWon',
|
|
14307
|
+
wrestler_scrums_lost: 'wrestlerScrumsLost',
|
|
14308
|
+
wrestler_scrums_tie: 'wrestlerScrumsTie',
|
|
14309
|
+
wrestler_scrum_points: 'wrestlerScrumPoints',
|
|
14310
|
+
scrums_won: 'scrumsWon',
|
|
14311
|
+
scrums_lost: 'scrumsLost',
|
|
14312
|
+
scrums_tie: 'scrumsTie',
|
|
14313
|
+
scrum_points: 'scrumPoints',
|
|
14314
|
+
yellow_cards: 'yellowCards',
|
|
14315
|
+
red_cards: 'redCards',
|
|
14316
|
+
updated_at: 'updatedAt',
|
|
14317
|
+
},
|
|
14318
|
+
relation: {
|
|
14319
|
+
updatedAt: DateTimeField,
|
|
14320
|
+
}
|
|
14321
|
+
})
|
|
14322
|
+
], exports.WrestballGameStatistic);
|
|
14323
|
+
|
|
14324
|
+
exports.WrestballGameTeamStatistic = /** @class */ (function (_super) {
|
|
14325
|
+
__extends(WrestballGameTeamStatistic, _super);
|
|
14326
|
+
function WrestballGameTeamStatistic() {
|
|
14327
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14328
|
+
}
|
|
14329
|
+
WrestballGameTeamStatistic.toFront = function (data) { };
|
|
14330
|
+
WrestballGameTeamStatistic.toBack = function (data) { };
|
|
14331
|
+
return WrestballGameTeamStatistic;
|
|
14332
|
+
}(BaseModel));
|
|
14333
|
+
__decorate([
|
|
14334
|
+
ToFrontHook
|
|
14335
|
+
], exports.WrestballGameTeamStatistic, "toFront", null);
|
|
14336
|
+
__decorate([
|
|
14337
|
+
ToBackHook
|
|
14338
|
+
], exports.WrestballGameTeamStatistic, "toBack", null);
|
|
14339
|
+
exports.WrestballGameTeamStatistic = __decorate([
|
|
14340
|
+
ModelInstance({
|
|
14341
|
+
mappingFields: {
|
|
14342
|
+
team: 'team',
|
|
14343
|
+
competitor_team: 'competitorTeam'
|
|
14344
|
+
},
|
|
14345
|
+
relation: {
|
|
14346
|
+
team: exports.WrestballStatistic,
|
|
14347
|
+
competitorTeam: exports.WrestballStatistic
|
|
14348
|
+
}
|
|
14349
|
+
})
|
|
14350
|
+
], exports.WrestballGameTeamStatistic);
|
|
14351
|
+
|
|
14053
14352
|
var CentrifugoService = /** @class */ (function () {
|
|
14054
14353
|
function CentrifugoService(httpClient, configService, platformId) {
|
|
14055
14354
|
this.httpClient = httpClient;
|