@mtgame/core 0.2.72 → 0.2.73
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/public-api.d.ts +1 -0
- package/api/wrestball-game-api.d.ts +16 -0
- package/bundles/mtgame-core.umd.js +445 -397
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/esm2015/api/public-api.js +2 -1
- package/esm2015/api/wrestball-game-api.js +49 -0
- package/fesm2015/mtgame-core.js +282 -246
- package/fesm2015/mtgame-core.js.map +1 -1
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -13332,6 +13332,352 @@
|
|
|
13332
13332
|
{ type: ConfigService }
|
|
13333
13333
|
]; };
|
|
13334
13334
|
|
|
13335
|
+
exports.WrestballGameTeamStatistic = /** @class */ (function (_super) {
|
|
13336
|
+
__extends(WrestballGameTeamStatistic, _super);
|
|
13337
|
+
function WrestballGameTeamStatistic() {
|
|
13338
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13339
|
+
}
|
|
13340
|
+
WrestballGameTeamStatistic.toFront = function (data) { };
|
|
13341
|
+
WrestballGameTeamStatistic.toBack = function (data) { };
|
|
13342
|
+
return WrestballGameTeamStatistic;
|
|
13343
|
+
}(BaseModel));
|
|
13344
|
+
__decorate([
|
|
13345
|
+
ToFrontHook
|
|
13346
|
+
], exports.WrestballGameTeamStatistic, "toFront", null);
|
|
13347
|
+
__decorate([
|
|
13348
|
+
ToBackHook
|
|
13349
|
+
], exports.WrestballGameTeamStatistic, "toBack", null);
|
|
13350
|
+
exports.WrestballGameTeamStatistic = __decorate([
|
|
13351
|
+
ModelInstance({
|
|
13352
|
+
mappingFields: {
|
|
13353
|
+
team: 'team',
|
|
13354
|
+
competitor_team: 'competitorTeam'
|
|
13355
|
+
},
|
|
13356
|
+
relation: {
|
|
13357
|
+
team: exports.WrestballStatistic,
|
|
13358
|
+
competitorTeam: exports.WrestballStatistic
|
|
13359
|
+
}
|
|
13360
|
+
})
|
|
13361
|
+
], exports.WrestballGameTeamStatistic);
|
|
13362
|
+
|
|
13363
|
+
exports.WrestballGameStatistic = /** @class */ (function (_super) {
|
|
13364
|
+
__extends(WrestballGameStatistic, _super);
|
|
13365
|
+
function WrestballGameStatistic() {
|
|
13366
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13367
|
+
}
|
|
13368
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "id", {
|
|
13369
|
+
get: function () {
|
|
13370
|
+
return this.gameUserId;
|
|
13371
|
+
},
|
|
13372
|
+
enumerable: false,
|
|
13373
|
+
configurable: true
|
|
13374
|
+
});
|
|
13375
|
+
WrestballGameStatistic.toFront = function (data) { };
|
|
13376
|
+
WrestballGameStatistic.toBack = function (data) { };
|
|
13377
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "totalFouls", {
|
|
13378
|
+
get: function () {
|
|
13379
|
+
return (this.personalFouls || 0) + (this.technicalFouls || 0) + (this.unsportsmanlikeFouls || 0) + (this.disqualificationFouls || 0);
|
|
13380
|
+
},
|
|
13381
|
+
enumerable: false,
|
|
13382
|
+
configurable: true
|
|
13383
|
+
});
|
|
13384
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "onePointPercent", {
|
|
13385
|
+
get: function () {
|
|
13386
|
+
if (!this.onePointsMade || !this.onePointAttempts) {
|
|
13387
|
+
return 0;
|
|
13388
|
+
}
|
|
13389
|
+
return Math.round(1000 * this.onePointsMade / this.onePointAttempts) / 10;
|
|
13390
|
+
},
|
|
13391
|
+
set: function (v) { },
|
|
13392
|
+
enumerable: false,
|
|
13393
|
+
configurable: true
|
|
13394
|
+
});
|
|
13395
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "twoPointPercent", {
|
|
13396
|
+
get: function () {
|
|
13397
|
+
if (!this.twoPointsMade || !this.twoPointAttempts) {
|
|
13398
|
+
return 0;
|
|
13399
|
+
}
|
|
13400
|
+
return Math.round(1000 * this.twoPointsMade / this.twoPointAttempts) / 10;
|
|
13401
|
+
},
|
|
13402
|
+
set: function (v) { },
|
|
13403
|
+
enumerable: false,
|
|
13404
|
+
configurable: true
|
|
13405
|
+
});
|
|
13406
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "threePointPercent", {
|
|
13407
|
+
get: function () {
|
|
13408
|
+
if (!this.threePointsMade || !this.threePointAttempts) {
|
|
13409
|
+
return 0;
|
|
13410
|
+
}
|
|
13411
|
+
return Math.round(1000 * this.threePointsMade / this.threePointAttempts) / 10;
|
|
13412
|
+
},
|
|
13413
|
+
set: function (v) { },
|
|
13414
|
+
enumerable: false,
|
|
13415
|
+
configurable: true
|
|
13416
|
+
});
|
|
13417
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "freeThrowPercent", {
|
|
13418
|
+
get: function () {
|
|
13419
|
+
if (!this.freeThrowsMade || !this.freeThrowAttempts) {
|
|
13420
|
+
return 0;
|
|
13421
|
+
}
|
|
13422
|
+
return Math.round(1000 * this.freeThrowsMade / this.freeThrowAttempts) / 10;
|
|
13423
|
+
},
|
|
13424
|
+
set: function (v) { },
|
|
13425
|
+
enumerable: false,
|
|
13426
|
+
configurable: true
|
|
13427
|
+
});
|
|
13428
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "totalRebounds", {
|
|
13429
|
+
get: function () {
|
|
13430
|
+
return Math.floor(10 * ((this.offensiveRebounds || 0) + (this.defensiveRebounds || 0))) / 10;
|
|
13431
|
+
},
|
|
13432
|
+
enumerable: false,
|
|
13433
|
+
configurable: true
|
|
13434
|
+
});
|
|
13435
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "wrestlerScrums", {
|
|
13436
|
+
get: function () {
|
|
13437
|
+
return (this.wrestlerScrumsWon || 0) + (this.wrestlerScrumsLost || 0) + (this.wrestlerScrumsTie || 0);
|
|
13438
|
+
},
|
|
13439
|
+
enumerable: false,
|
|
13440
|
+
configurable: true
|
|
13441
|
+
});
|
|
13442
|
+
Object.defineProperty(WrestballGameStatistic.prototype, "scrums", {
|
|
13443
|
+
get: function () {
|
|
13444
|
+
return (this.scrumsWon || 0) + (this.scrumsLost || 0) + (this.scrumsTie || 0);
|
|
13445
|
+
},
|
|
13446
|
+
enumerable: false,
|
|
13447
|
+
configurable: true
|
|
13448
|
+
});
|
|
13449
|
+
return WrestballGameStatistic;
|
|
13450
|
+
}(BaseModel));
|
|
13451
|
+
__decorate([
|
|
13452
|
+
ToFrontHook
|
|
13453
|
+
], exports.WrestballGameStatistic, "toFront", null);
|
|
13454
|
+
__decorate([
|
|
13455
|
+
ToBackHook
|
|
13456
|
+
], exports.WrestballGameStatistic, "toBack", null);
|
|
13457
|
+
exports.WrestballGameStatistic = __decorate([
|
|
13458
|
+
ModelInstance({
|
|
13459
|
+
mappingFields: {
|
|
13460
|
+
game_user_id: 'gameUserId',
|
|
13461
|
+
points: 'points',
|
|
13462
|
+
free_throws_made: 'freeThrowsMade',
|
|
13463
|
+
two_points_made: 'twoPointsMade',
|
|
13464
|
+
three_points_made: 'threePointsMade',
|
|
13465
|
+
one_points_made: 'onePointsMade',
|
|
13466
|
+
two_point_attempts: 'twoPointAttempts',
|
|
13467
|
+
three_point_attempts: 'threePointAttempts',
|
|
13468
|
+
free_throw_attempts: 'freeThrowAttempts',
|
|
13469
|
+
one_point_attempts: 'onePointAttempts',
|
|
13470
|
+
one_point_percent: 'onePointPercent',
|
|
13471
|
+
two_point_percent: 'twoPointPercent',
|
|
13472
|
+
three_point_percent: 'threePointPercent',
|
|
13473
|
+
free_throw_percent: 'freeThrowPercent',
|
|
13474
|
+
assists: 'assists',
|
|
13475
|
+
blocks: 'blocks',
|
|
13476
|
+
rebounds: 'rebounds',
|
|
13477
|
+
offensive_rebounds: 'offensiveRebounds',
|
|
13478
|
+
defensive_rebounds: 'defensiveRebounds',
|
|
13479
|
+
steals: 'steals',
|
|
13480
|
+
turnovers: 'turnovers',
|
|
13481
|
+
personal_fouls: 'personalFouls',
|
|
13482
|
+
drawn_fouls: 'drawnFouls',
|
|
13483
|
+
wrestler_scrums_won: 'wrestlerScrumsWon',
|
|
13484
|
+
wrestler_scrums_lost: 'wrestlerScrumsLost',
|
|
13485
|
+
wrestler_scrums_tie: 'wrestlerScrumsTie',
|
|
13486
|
+
wrestler_scrum_points: 'wrestlerScrumPoints',
|
|
13487
|
+
scrums_won: 'scrumsWon',
|
|
13488
|
+
scrums_lost: 'scrumsLost',
|
|
13489
|
+
scrums_tie: 'scrumsTie',
|
|
13490
|
+
scrum_points: 'scrumPoints',
|
|
13491
|
+
yellow_cards: 'yellowCards',
|
|
13492
|
+
red_cards: 'redCards',
|
|
13493
|
+
updated_at: 'updatedAt',
|
|
13494
|
+
},
|
|
13495
|
+
relation: {
|
|
13496
|
+
updatedAt: DateTimeField,
|
|
13497
|
+
}
|
|
13498
|
+
})
|
|
13499
|
+
], exports.WrestballGameStatistic);
|
|
13500
|
+
|
|
13501
|
+
exports.WrestballGameLogTypes = void 0;
|
|
13502
|
+
(function (WrestballGameLogTypes) {
|
|
13503
|
+
WrestballGameLogTypes[WrestballGameLogTypes["enter_game"] = 1] = "enter_game";
|
|
13504
|
+
WrestballGameLogTypes[WrestballGameLogTypes["exit_game"] = 2] = "exit_game";
|
|
13505
|
+
WrestballGameLogTypes[WrestballGameLogTypes["remove_game"] = 3] = "remove_game";
|
|
13506
|
+
WrestballGameLogTypes[WrestballGameLogTypes["one_point_made"] = 4] = "one_point_made";
|
|
13507
|
+
WrestballGameLogTypes[WrestballGameLogTypes["one_point_attempt"] = 5] = "one_point_attempt";
|
|
13508
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_made"] = 6] = "two_point_made";
|
|
13509
|
+
WrestballGameLogTypes[WrestballGameLogTypes["two_point_attempt"] = 7] = "two_point_attempt";
|
|
13510
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_made"] = 8] = "three_point_made";
|
|
13511
|
+
WrestballGameLogTypes[WrestballGameLogTypes["three_point_attempt"] = 9] = "three_point_attempt";
|
|
13512
|
+
WrestballGameLogTypes[WrestballGameLogTypes["free_throw_made"] = 10] = "free_throw_made";
|
|
13513
|
+
WrestballGameLogTypes[WrestballGameLogTypes["free_throw_attempt"] = 11] = "free_throw_attempt";
|
|
13514
|
+
WrestballGameLogTypes[WrestballGameLogTypes["assist"] = 12] = "assist";
|
|
13515
|
+
WrestballGameLogTypes[WrestballGameLogTypes["block"] = 13] = "block";
|
|
13516
|
+
WrestballGameLogTypes[WrestballGameLogTypes["rebound"] = 14] = "rebound";
|
|
13517
|
+
WrestballGameLogTypes[WrestballGameLogTypes["offensive_rebound"] = 15] = "offensive_rebound";
|
|
13518
|
+
WrestballGameLogTypes[WrestballGameLogTypes["defensive_rebound"] = 16] = "defensive_rebound";
|
|
13519
|
+
WrestballGameLogTypes[WrestballGameLogTypes["team_rebound"] = 17] = "team_rebound";
|
|
13520
|
+
WrestballGameLogTypes[WrestballGameLogTypes["steal"] = 18] = "steal";
|
|
13521
|
+
WrestballGameLogTypes[WrestballGameLogTypes["turnover"] = 19] = "turnover";
|
|
13522
|
+
WrestballGameLogTypes[WrestballGameLogTypes["personal_foul"] = 20] = "personal_foul";
|
|
13523
|
+
WrestballGameLogTypes[WrestballGameLogTypes["timeout"] = 21] = "timeout";
|
|
13524
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum"] = 22] = "wrestler_scrum";
|
|
13525
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_won"] = 23] = "wrestler_scrum_won";
|
|
13526
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_lost"] = 24] = "wrestler_scrum_lost";
|
|
13527
|
+
WrestballGameLogTypes[WrestballGameLogTypes["wrestler_scrum_tie"] = 25] = "wrestler_scrum_tie";
|
|
13528
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum"] = 26] = "scrum";
|
|
13529
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_won"] = 27] = "scrum_won";
|
|
13530
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_lost"] = 28] = "scrum_lost";
|
|
13531
|
+
WrestballGameLogTypes[WrestballGameLogTypes["scrum_tie"] = 29] = "scrum_tie";
|
|
13532
|
+
WrestballGameLogTypes[WrestballGameLogTypes["yellow_card"] = 30] = "yellow_card";
|
|
13533
|
+
WrestballGameLogTypes[WrestballGameLogTypes["red_card"] = 31] = "red_card";
|
|
13534
|
+
})(exports.WrestballGameLogTypes || (exports.WrestballGameLogTypes = {}));
|
|
13535
|
+
exports.WrestballGameLog = /** @class */ (function (_super) {
|
|
13536
|
+
__extends(WrestballGameLog, _super);
|
|
13537
|
+
function WrestballGameLog() {
|
|
13538
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
13539
|
+
_this.active = true;
|
|
13540
|
+
return _this;
|
|
13541
|
+
}
|
|
13542
|
+
WrestballGameLog.prototype.isPointsType = function () {
|
|
13543
|
+
return [
|
|
13544
|
+
exports.WrestballGameLogTypes.two_point_made,
|
|
13545
|
+
exports.WrestballGameLogTypes.three_point_made,
|
|
13546
|
+
exports.WrestballGameLogTypes.free_throw_made,
|
|
13547
|
+
exports.WrestballGameLogTypes.one_point_made,
|
|
13548
|
+
exports.WrestballGameLogTypes.scrum_won,
|
|
13549
|
+
exports.WrestballGameLogTypes.wrestler_scrum_won,
|
|
13550
|
+
].indexOf(this.logType) > -1;
|
|
13551
|
+
};
|
|
13552
|
+
WrestballGameLog.prototype.isReboundType = function () {
|
|
13553
|
+
return [
|
|
13554
|
+
exports.WrestballGameLogTypes.rebound,
|
|
13555
|
+
exports.WrestballGameLogTypes.offensive_rebound,
|
|
13556
|
+
exports.WrestballGameLogTypes.defensive_rebound,
|
|
13557
|
+
exports.WrestballGameLogTypes.team_rebound,
|
|
13558
|
+
].indexOf(this.logType) > -1;
|
|
13559
|
+
};
|
|
13560
|
+
WrestballGameLog.prototype.isFoulType = function () {
|
|
13561
|
+
return [
|
|
13562
|
+
exports.WrestballGameLogTypes.personal_foul,
|
|
13563
|
+
].indexOf(this.logType) > -1;
|
|
13564
|
+
};
|
|
13565
|
+
WrestballGameLog.prototype.getScore = function () {
|
|
13566
|
+
var _a;
|
|
13567
|
+
var scoreMapping = (_a = {},
|
|
13568
|
+
_a[exports.WrestballGameLogTypes.one_point_made] = 1,
|
|
13569
|
+
_a[exports.WrestballGameLogTypes.free_throw_made] = 1,
|
|
13570
|
+
_a[exports.WrestballGameLogTypes.two_point_made] = 2,
|
|
13571
|
+
_a[exports.WrestballGameLogTypes.three_point_made] = 3,
|
|
13572
|
+
_a[exports.WrestballGameLogTypes.scrum_won] = 2,
|
|
13573
|
+
_a[exports.WrestballGameLogTypes.wrestler_scrum_won] = 2,
|
|
13574
|
+
_a);
|
|
13575
|
+
return scoreMapping[this.logType] || 0;
|
|
13576
|
+
};
|
|
13577
|
+
WrestballGameLog.prototype.compare = function (model) {
|
|
13578
|
+
if (this.time === model.time && this.period === model.period) {
|
|
13579
|
+
if (this.datetime.getTime() === model.datetime.getTime()) {
|
|
13580
|
+
return this.id > model.id ? 1 : -1;
|
|
13581
|
+
}
|
|
13582
|
+
return this.datetime.getTime() < model.datetime.getTime() ? 1 : -1;
|
|
13583
|
+
}
|
|
13584
|
+
if (this.period === model.period) {
|
|
13585
|
+
return this.time < model.time ? 1 : -1;
|
|
13586
|
+
}
|
|
13587
|
+
return this.period < model.period ? 1 : -1;
|
|
13588
|
+
};
|
|
13589
|
+
Object.defineProperty(WrestballGameLog.prototype, "timeFormatted", {
|
|
13590
|
+
get: function () {
|
|
13591
|
+
var minutes = Math.floor(this.time / 60);
|
|
13592
|
+
var seconds = this.time - minutes * 60;
|
|
13593
|
+
return "" + (minutes < 10 ? '0' : '') + minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
|
|
13594
|
+
},
|
|
13595
|
+
enumerable: false,
|
|
13596
|
+
configurable: true
|
|
13597
|
+
});
|
|
13598
|
+
WrestballGameLog.toFront = function (value) { };
|
|
13599
|
+
WrestballGameLog.toBack = function (value) { };
|
|
13600
|
+
return WrestballGameLog;
|
|
13601
|
+
}(BaseModel));
|
|
13602
|
+
__decorate([
|
|
13603
|
+
ToFrontHook
|
|
13604
|
+
], exports.WrestballGameLog, "toFront", null);
|
|
13605
|
+
__decorate([
|
|
13606
|
+
ToBackHook
|
|
13607
|
+
], exports.WrestballGameLog, "toBack", null);
|
|
13608
|
+
exports.WrestballGameLog = __decorate([
|
|
13609
|
+
ModelInstance({
|
|
13610
|
+
mappingFields: {
|
|
13611
|
+
id: 'id',
|
|
13612
|
+
unique_id: 'uniqueId',
|
|
13613
|
+
game_id: 'gameId',
|
|
13614
|
+
game_user_id: 'gameUserId',
|
|
13615
|
+
team_id: 'teamId',
|
|
13616
|
+
log_type: 'logType',
|
|
13617
|
+
datetime: 'datetime',
|
|
13618
|
+
time: 'time',
|
|
13619
|
+
period: 'period',
|
|
13620
|
+
active: 'active',
|
|
13621
|
+
is_highlight: 'isHighlight',
|
|
13622
|
+
foul_on_game_user_id: 'foulOnGameUserId',
|
|
13623
|
+
is_coach: 'isCoach',
|
|
13624
|
+
is_bench: 'isBench',
|
|
13625
|
+
marked: 'marked',
|
|
13626
|
+
},
|
|
13627
|
+
relation: {
|
|
13628
|
+
datetime: DateTimeField,
|
|
13629
|
+
logType: enumField(exports.WrestballGameLogTypes),
|
|
13630
|
+
}
|
|
13631
|
+
})
|
|
13632
|
+
], exports.WrestballGameLog);
|
|
13633
|
+
|
|
13634
|
+
var WrestballGameApi = /** @class */ (function (_super) {
|
|
13635
|
+
__extends(WrestballGameApi, _super);
|
|
13636
|
+
function WrestballGameApi(httpClient, configService) {
|
|
13637
|
+
var _this = _super.call(this, httpClient, configService) || this;
|
|
13638
|
+
_this.httpClient = httpClient;
|
|
13639
|
+
_this.configService = configService;
|
|
13640
|
+
return _this;
|
|
13641
|
+
}
|
|
13642
|
+
WrestballGameApi.prototype.getById = function (gameId) {
|
|
13643
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13644
|
+
return __generator(this, function (_a) {
|
|
13645
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_wrestball_game/" + gameId + "/").pipe(operators.map(function (result) { return exports.Game.toFront(result); })).toPromise()];
|
|
13646
|
+
});
|
|
13647
|
+
});
|
|
13648
|
+
};
|
|
13649
|
+
WrestballGameApi.prototype.getTeamStatistic = function (gameId) {
|
|
13650
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13651
|
+
return __generator(this, function (_a) {
|
|
13652
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_wrestball_game/" + gameId + "/team_statistic/").pipe(operators.map(function (result) { return exports.WrestballGameTeamStatistic.toFront(result); })).toPromise()];
|
|
13653
|
+
});
|
|
13654
|
+
});
|
|
13655
|
+
};
|
|
13656
|
+
WrestballGameApi.prototype.getUserStatistic = function (gameId) {
|
|
13657
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13658
|
+
return __generator(this, function (_a) {
|
|
13659
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_wrestball_game/" + gameId + "/user_statistic/").pipe(operators.map(function (result) { return exports.WrestballGameStatistic.toFront(result); })).toPromise()];
|
|
13660
|
+
});
|
|
13661
|
+
});
|
|
13662
|
+
};
|
|
13663
|
+
WrestballGameApi.prototype.getLogs = function (gameId) {
|
|
13664
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13665
|
+
return __generator(this, function (_a) {
|
|
13666
|
+
return [2 /*return*/, this.httpClient.get(this.configService.get('apiUrl') + "/api/v1/tournament_wrestball_game/" + gameId + "/logs/").pipe(operators.map(function (result) { return exports.WrestballGameLog.toFront(result); })).toPromise()];
|
|
13667
|
+
});
|
|
13668
|
+
});
|
|
13669
|
+
};
|
|
13670
|
+
return WrestballGameApi;
|
|
13671
|
+
}(GameBaseApi));
|
|
13672
|
+
WrestballGameApi.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function WrestballGameApi_Factory() { return new WrestballGameApi(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(ConfigService)); }, token: WrestballGameApi, providedIn: "root" });
|
|
13673
|
+
WrestballGameApi.decorators = [
|
|
13674
|
+
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13675
|
+
];
|
|
13676
|
+
WrestballGameApi.ctorParameters = function () { return [
|
|
13677
|
+
{ type: i1.HttpClient },
|
|
13678
|
+
{ type: ConfigService }
|
|
13679
|
+
]; };
|
|
13680
|
+
|
|
13335
13681
|
var PublicTeamApi = /** @class */ (function () {
|
|
13336
13682
|
function PublicTeamApi(httpClient, configService) {
|
|
13337
13683
|
this.httpClient = httpClient;
|
|
@@ -13911,443 +14257,144 @@
|
|
|
13911
14257
|
dateFrom: DateTimeField,
|
|
13912
14258
|
dateTo: DateTimeField,
|
|
13913
14259
|
createdAt: DateTimeField,
|
|
13914
|
-
}
|
|
13915
|
-
})
|
|
13916
|
-
], exports.OrganizationBill);
|
|
13917
|
-
|
|
13918
|
-
var _a;
|
|
13919
|
-
exports.GameBillStatuses = void 0;
|
|
13920
|
-
(function (GameBillStatuses) {
|
|
13921
|
-
GameBillStatuses[GameBillStatuses["pending"] = 1] = "pending";
|
|
13922
|
-
GameBillStatuses[GameBillStatuses["paid"] = 2] = "paid";
|
|
13923
|
-
GameBillStatuses[GameBillStatuses["canceled"] = 3] = "canceled";
|
|
13924
|
-
})(exports.GameBillStatuses || (exports.GameBillStatuses = {}));
|
|
13925
|
-
var GameBillStatusLocalization = (_a = {},
|
|
13926
|
-
_a[exports.GameBillStatuses.pending] = 'Новый',
|
|
13927
|
-
_a[exports.GameBillStatuses.paid] = 'Оплачен',
|
|
13928
|
-
_a[exports.GameBillStatuses.canceled] = 'Отменен',
|
|
13929
|
-
_a);
|
|
13930
|
-
exports.GameBill = /** @class */ (function (_super) {
|
|
13931
|
-
__extends(GameBill, _super);
|
|
13932
|
-
function GameBill() {
|
|
13933
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13934
|
-
}
|
|
13935
|
-
GameBill.toFront = function (data) { };
|
|
13936
|
-
GameBill.toBack = function (data) { };
|
|
13937
|
-
return GameBill;
|
|
13938
|
-
}(BaseModel));
|
|
13939
|
-
__decorate([
|
|
13940
|
-
ToFrontHook
|
|
13941
|
-
], exports.GameBill, "toFront", null);
|
|
13942
|
-
__decorate([
|
|
13943
|
-
ToBackHook
|
|
13944
|
-
], exports.GameBill, "toBack", null);
|
|
13945
|
-
exports.GameBill = __decorate([
|
|
13946
|
-
ModelInstance({
|
|
13947
|
-
mappingFields: {
|
|
13948
|
-
id: 'id',
|
|
13949
|
-
game: 'game',
|
|
13950
|
-
status: 'status',
|
|
13951
|
-
organization_bill: 'organizationBill',
|
|
13952
|
-
paid_date: 'paidDate',
|
|
13953
|
-
price: 'price',
|
|
13954
|
-
created_at: 'createdAt',
|
|
13955
|
-
},
|
|
13956
|
-
relation: {
|
|
13957
|
-
game: exports.Game,
|
|
13958
|
-
organizationBill: exports.OrganizationBill,
|
|
13959
|
-
status: enumField(exports.GameBillStatuses),
|
|
13960
|
-
paidDate: DateTimeField,
|
|
13961
|
-
createdAt: DateTimeField,
|
|
13962
|
-
}
|
|
13963
|
-
})
|
|
13964
|
-
], exports.GameBill);
|
|
13965
|
-
|
|
13966
|
-
exports.LeaguePlaylist = /** @class */ (function (_super) {
|
|
13967
|
-
__extends(LeaguePlaylist, _super);
|
|
13968
|
-
function LeaguePlaylist() {
|
|
13969
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13970
|
-
}
|
|
13971
|
-
LeaguePlaylist.toFront = function (data) { };
|
|
13972
|
-
LeaguePlaylist.toBack = function (data) { };
|
|
13973
|
-
return LeaguePlaylist;
|
|
13974
|
-
}(BaseModel));
|
|
13975
|
-
__decorate([
|
|
13976
|
-
ToFrontHook
|
|
13977
|
-
], exports.LeaguePlaylist, "toFront", null);
|
|
13978
|
-
__decorate([
|
|
13979
|
-
ToBackHook
|
|
13980
|
-
], exports.LeaguePlaylist, "toBack", null);
|
|
13981
|
-
exports.LeaguePlaylist = __decorate([
|
|
13982
|
-
ModelInstance({
|
|
13983
|
-
mappingFields: {
|
|
13984
|
-
id: 'id',
|
|
13985
|
-
name: 'name',
|
|
13986
|
-
files: 'files',
|
|
13987
|
-
key_code: 'keyCode',
|
|
13988
|
-
},
|
|
13989
|
-
relation: {
|
|
13990
|
-
files: listField(exports.File)
|
|
13991
|
-
}
|
|
13992
|
-
})
|
|
13993
|
-
], exports.LeaguePlaylist);
|
|
13994
|
-
|
|
13995
|
-
exports.OrganizationTariff = /** @class */ (function (_super) {
|
|
13996
|
-
__extends(OrganizationTariff, _super);
|
|
13997
|
-
function OrganizationTariff() {
|
|
13998
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13999
|
-
}
|
|
14000
|
-
OrganizationTariff.toFront = function (data) { };
|
|
14001
|
-
OrganizationTariff.toBack = function (data) { };
|
|
14002
|
-
return OrganizationTariff;
|
|
14003
|
-
}(BaseModel));
|
|
14004
|
-
__decorate([
|
|
14005
|
-
ToFrontHook
|
|
14006
|
-
], exports.OrganizationTariff, "toFront", null);
|
|
14007
|
-
__decorate([
|
|
14008
|
-
ToBackHook
|
|
14009
|
-
], exports.OrganizationTariff, "toBack", null);
|
|
14010
|
-
exports.OrganizationTariff = __decorate([
|
|
14011
|
-
ModelInstance({
|
|
14012
|
-
mappingFields: {
|
|
14013
|
-
id: 'id',
|
|
14014
|
-
organization: 'organization',
|
|
14015
|
-
price: 'price',
|
|
14016
|
-
sport: 'sport',
|
|
14017
|
-
},
|
|
14018
|
-
relation: {
|
|
14019
|
-
organization: exports.Organization,
|
|
14020
|
-
sport: exports.Sport,
|
|
14021
|
-
}
|
|
14022
|
-
})
|
|
14023
|
-
], exports.OrganizationTariff);
|
|
14024
|
-
|
|
14025
|
-
exports.OrganizationStatistic = /** @class */ (function (_super) {
|
|
14026
|
-
__extends(OrganizationStatistic, _super);
|
|
14027
|
-
function OrganizationStatistic() {
|
|
14028
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
14029
|
-
}
|
|
14030
|
-
OrganizationStatistic.toFront = function (data) { };
|
|
14031
|
-
OrganizationStatistic.toBack = function (data) { };
|
|
14032
|
-
return OrganizationStatistic;
|
|
14033
|
-
}(BaseModel));
|
|
14034
|
-
__decorate([
|
|
14035
|
-
ToFrontHook
|
|
14036
|
-
], exports.OrganizationStatistic, "toFront", null);
|
|
14037
|
-
__decorate([
|
|
14038
|
-
ToBackHook
|
|
14039
|
-
], exports.OrganizationStatistic, "toBack", null);
|
|
14040
|
-
exports.OrganizationStatistic = __decorate([
|
|
14041
|
-
ModelInstance({
|
|
14042
|
-
mappingFields: {
|
|
14043
|
-
id: 'id',
|
|
14044
|
-
players_count: 'playersCount',
|
|
14045
|
-
teams_count: 'teamsCount',
|
|
14046
|
-
games_count: 'gamesCount',
|
|
14047
|
-
paid_sum: 'paidSum',
|
|
14048
|
-
debt_sum: 'debtSum',
|
|
14049
|
-
},
|
|
14050
|
-
})
|
|
14051
|
-
], exports.OrganizationStatistic);
|
|
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;
|
|
14260
|
+
}
|
|
14261
|
+
})
|
|
14262
|
+
], exports.OrganizationBill);
|
|
14263
|
+
|
|
14264
|
+
var _a;
|
|
14265
|
+
exports.GameBillStatuses = void 0;
|
|
14266
|
+
(function (GameBillStatuses) {
|
|
14267
|
+
GameBillStatuses[GameBillStatuses["pending"] = 1] = "pending";
|
|
14268
|
+
GameBillStatuses[GameBillStatuses["paid"] = 2] = "paid";
|
|
14269
|
+
GameBillStatuses[GameBillStatuses["canceled"] = 3] = "canceled";
|
|
14270
|
+
})(exports.GameBillStatuses || (exports.GameBillStatuses = {}));
|
|
14271
|
+
var GameBillStatusLocalization = (_a = {},
|
|
14272
|
+
_a[exports.GameBillStatuses.pending] = 'Новый',
|
|
14273
|
+
_a[exports.GameBillStatuses.paid] = 'Оплачен',
|
|
14274
|
+
_a[exports.GameBillStatuses.canceled] = 'Отменен',
|
|
14275
|
+
_a);
|
|
14276
|
+
exports.GameBill = /** @class */ (function (_super) {
|
|
14277
|
+
__extends(GameBill, _super);
|
|
14278
|
+
function GameBill() {
|
|
14279
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14280
|
+
}
|
|
14281
|
+
GameBill.toFront = function (data) { };
|
|
14282
|
+
GameBill.toBack = function (data) { };
|
|
14283
|
+
return GameBill;
|
|
14153
14284
|
}(BaseModel));
|
|
14154
14285
|
__decorate([
|
|
14155
14286
|
ToFrontHook
|
|
14156
|
-
], exports.
|
|
14287
|
+
], exports.GameBill, "toFront", null);
|
|
14157
14288
|
__decorate([
|
|
14158
14289
|
ToBackHook
|
|
14159
|
-
], exports.
|
|
14160
|
-
exports.
|
|
14290
|
+
], exports.GameBill, "toBack", null);
|
|
14291
|
+
exports.GameBill = __decorate([
|
|
14161
14292
|
ModelInstance({
|
|
14162
14293
|
mappingFields: {
|
|
14163
14294
|
id: 'id',
|
|
14164
|
-
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
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',
|
|
14295
|
+
game: 'game',
|
|
14296
|
+
status: 'status',
|
|
14297
|
+
organization_bill: 'organizationBill',
|
|
14298
|
+
paid_date: 'paidDate',
|
|
14299
|
+
price: 'price',
|
|
14300
|
+
created_at: 'createdAt',
|
|
14178
14301
|
},
|
|
14179
14302
|
relation: {
|
|
14180
|
-
|
|
14181
|
-
|
|
14303
|
+
game: exports.Game,
|
|
14304
|
+
organizationBill: exports.OrganizationBill,
|
|
14305
|
+
status: enumField(exports.GameBillStatuses),
|
|
14306
|
+
paidDate: DateTimeField,
|
|
14307
|
+
createdAt: DateTimeField,
|
|
14182
14308
|
}
|
|
14183
14309
|
})
|
|
14184
|
-
], exports.
|
|
14310
|
+
], exports.GameBill);
|
|
14185
14311
|
|
|
14186
|
-
exports.
|
|
14187
|
-
__extends(
|
|
14188
|
-
function
|
|
14312
|
+
exports.LeaguePlaylist = /** @class */ (function (_super) {
|
|
14313
|
+
__extends(LeaguePlaylist, _super);
|
|
14314
|
+
function LeaguePlaylist() {
|
|
14189
14315
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14190
14316
|
}
|
|
14191
|
-
|
|
14192
|
-
|
|
14193
|
-
|
|
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;
|
|
14317
|
+
LeaguePlaylist.toFront = function (data) { };
|
|
14318
|
+
LeaguePlaylist.toBack = function (data) { };
|
|
14319
|
+
return LeaguePlaylist;
|
|
14273
14320
|
}(BaseModel));
|
|
14274
14321
|
__decorate([
|
|
14275
14322
|
ToFrontHook
|
|
14276
|
-
], exports.
|
|
14323
|
+
], exports.LeaguePlaylist, "toFront", null);
|
|
14277
14324
|
__decorate([
|
|
14278
14325
|
ToBackHook
|
|
14279
|
-
], exports.
|
|
14280
|
-
exports.
|
|
14326
|
+
], exports.LeaguePlaylist, "toBack", null);
|
|
14327
|
+
exports.LeaguePlaylist = __decorate([
|
|
14281
14328
|
ModelInstance({
|
|
14282
14329
|
mappingFields: {
|
|
14283
|
-
|
|
14284
|
-
|
|
14285
|
-
|
|
14286
|
-
|
|
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',
|
|
14330
|
+
id: 'id',
|
|
14331
|
+
name: 'name',
|
|
14332
|
+
files: 'files',
|
|
14333
|
+
key_code: 'keyCode',
|
|
14317
14334
|
},
|
|
14318
14335
|
relation: {
|
|
14319
|
-
|
|
14336
|
+
files: listField(exports.File)
|
|
14320
14337
|
}
|
|
14321
14338
|
})
|
|
14322
|
-
], exports.
|
|
14339
|
+
], exports.LeaguePlaylist);
|
|
14323
14340
|
|
|
14324
|
-
exports.
|
|
14325
|
-
__extends(
|
|
14326
|
-
function
|
|
14341
|
+
exports.OrganizationTariff = /** @class */ (function (_super) {
|
|
14342
|
+
__extends(OrganizationTariff, _super);
|
|
14343
|
+
function OrganizationTariff() {
|
|
14327
14344
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14328
14345
|
}
|
|
14329
|
-
|
|
14330
|
-
|
|
14331
|
-
return
|
|
14346
|
+
OrganizationTariff.toFront = function (data) { };
|
|
14347
|
+
OrganizationTariff.toBack = function (data) { };
|
|
14348
|
+
return OrganizationTariff;
|
|
14332
14349
|
}(BaseModel));
|
|
14333
14350
|
__decorate([
|
|
14334
14351
|
ToFrontHook
|
|
14335
|
-
], exports.
|
|
14352
|
+
], exports.OrganizationTariff, "toFront", null);
|
|
14336
14353
|
__decorate([
|
|
14337
14354
|
ToBackHook
|
|
14338
|
-
], exports.
|
|
14339
|
-
exports.
|
|
14355
|
+
], exports.OrganizationTariff, "toBack", null);
|
|
14356
|
+
exports.OrganizationTariff = __decorate([
|
|
14340
14357
|
ModelInstance({
|
|
14341
14358
|
mappingFields: {
|
|
14342
|
-
|
|
14343
|
-
|
|
14359
|
+
id: 'id',
|
|
14360
|
+
organization: 'organization',
|
|
14361
|
+
price: 'price',
|
|
14362
|
+
sport: 'sport',
|
|
14344
14363
|
},
|
|
14345
14364
|
relation: {
|
|
14346
|
-
|
|
14347
|
-
|
|
14365
|
+
organization: exports.Organization,
|
|
14366
|
+
sport: exports.Sport,
|
|
14348
14367
|
}
|
|
14349
14368
|
})
|
|
14350
|
-
], exports.
|
|
14369
|
+
], exports.OrganizationTariff);
|
|
14370
|
+
|
|
14371
|
+
exports.OrganizationStatistic = /** @class */ (function (_super) {
|
|
14372
|
+
__extends(OrganizationStatistic, _super);
|
|
14373
|
+
function OrganizationStatistic() {
|
|
14374
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14375
|
+
}
|
|
14376
|
+
OrganizationStatistic.toFront = function (data) { };
|
|
14377
|
+
OrganizationStatistic.toBack = function (data) { };
|
|
14378
|
+
return OrganizationStatistic;
|
|
14379
|
+
}(BaseModel));
|
|
14380
|
+
__decorate([
|
|
14381
|
+
ToFrontHook
|
|
14382
|
+
], exports.OrganizationStatistic, "toFront", null);
|
|
14383
|
+
__decorate([
|
|
14384
|
+
ToBackHook
|
|
14385
|
+
], exports.OrganizationStatistic, "toBack", null);
|
|
14386
|
+
exports.OrganizationStatistic = __decorate([
|
|
14387
|
+
ModelInstance({
|
|
14388
|
+
mappingFields: {
|
|
14389
|
+
id: 'id',
|
|
14390
|
+
players_count: 'playersCount',
|
|
14391
|
+
teams_count: 'teamsCount',
|
|
14392
|
+
games_count: 'gamesCount',
|
|
14393
|
+
paid_sum: 'paidSum',
|
|
14394
|
+
debt_sum: 'debtSum',
|
|
14395
|
+
},
|
|
14396
|
+
})
|
|
14397
|
+
], exports.OrganizationStatistic);
|
|
14351
14398
|
|
|
14352
14399
|
var CentrifugoService = /** @class */ (function () {
|
|
14353
14400
|
function CentrifugoService(httpClient, configService, platformId) {
|
|
@@ -14900,6 +14947,7 @@
|
|
|
14900
14947
|
exports.WaterpoloGameLogTypeLocalization = WaterpoloGameLogTypeLocalization;
|
|
14901
14948
|
exports.WaterpoloWorkHandLocalization = WaterpoloWorkHandLocalization;
|
|
14902
14949
|
exports.WorkHandLocalization = WorkHandLocalization;
|
|
14950
|
+
exports.WrestballGameApi = WrestballGameApi;
|
|
14903
14951
|
exports.addItemInArray = addItemInArray;
|
|
14904
14952
|
exports.addItemsInArray = addItemsInArray;
|
|
14905
14953
|
exports.applyGameMediaFilters = applyGameMediaFilters;
|