@mtgame/core 0.1.151 → 0.1.154

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.
@@ -2384,136 +2384,6 @@
2384
2384
  })
2385
2385
  ], exports.WaterpoloGameConfig);
2386
2386
 
2387
- exports.TournamentDivision = /** @class */ (function (_super) {
2388
- __extends(TournamentDivision, _super);
2389
- function TournamentDivision() {
2390
- return _super !== null && _super.apply(this, arguments) || this;
2391
- }
2392
- TournamentDivision.toFront = function (data) { };
2393
- TournamentDivision.toBack = function (data) { };
2394
- return TournamentDivision;
2395
- }(BaseModel));
2396
- __decorate([
2397
- ToFrontHook
2398
- ], exports.TournamentDivision, "toFront", null);
2399
- __decorate([
2400
- ToBackHook
2401
- ], exports.TournamentDivision, "toBack", null);
2402
- exports.TournamentDivision = __decorate([
2403
- ModelInstance({
2404
- mappingFields: {
2405
- id: 'id',
2406
- name: 'name',
2407
- cover: 'cover',
2408
- },
2409
- relation: {
2410
- cover: exports.File
2411
- }
2412
- })
2413
- ], exports.TournamentDivision);
2414
-
2415
- exports.TeamAdditionalData = /** @class */ (function () {
2416
- function TeamAdditionalData() {
2417
- }
2418
- TeamAdditionalData.toFront = function (data) { };
2419
- TeamAdditionalData.toBack = function (data) { };
2420
- return TeamAdditionalData;
2421
- }());
2422
- __decorate([
2423
- ToFrontHook
2424
- ], exports.TeamAdditionalData, "toFront", null);
2425
- __decorate([
2426
- ToBackHook
2427
- ], exports.TeamAdditionalData, "toBack", null);
2428
- exports.TeamAdditionalData = __decorate([
2429
- ModelInstance({
2430
- mappingFields: {
2431
- nickname: 'nickname',
2432
- color: 'color',
2433
- }
2434
- })
2435
- ], exports.TeamAdditionalData);
2436
- exports.TournamentTeam = /** @class */ (function (_super) {
2437
- __extends(TournamentTeam, _super);
2438
- function TournamentTeam() {
2439
- return _super !== null && _super.apply(this, arguments) || this;
2440
- }
2441
- Object.defineProperty(TournamentTeam.prototype, "gamesWonPercent", {
2442
- get: function () {
2443
- if (!this.gamesCount) {
2444
- return 0;
2445
- }
2446
- return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
2447
- },
2448
- enumerable: false,
2449
- configurable: true
2450
- });
2451
- TournamentTeam.toFront = function (data) { };
2452
- TournamentTeam.toBack = function (data) { };
2453
- return TournamentTeam;
2454
- }(BaseModel));
2455
- __decorate([
2456
- ToFrontHook
2457
- ], exports.TournamentTeam, "toFront", null);
2458
- __decorate([
2459
- ToBackHook
2460
- ], exports.TournamentTeam, "toBack", null);
2461
- exports.TournamentTeam = __decorate([
2462
- ModelInstance({
2463
- mappingFields: {
2464
- id: 'id',
2465
- name: 'name',
2466
- logo: 'logo',
2467
- team_photo: 'teamPhoto',
2468
- team_uniform: 'teamUniform',
2469
- team_id: 'teamId',
2470
- tournament_id: 'tournamentId',
2471
- tournament: 'tournament',
2472
- team: 'team',
2473
- group: 'group',
2474
- division: 'division',
2475
- final_standing: 'finalStanding',
2476
- games_count: 'gamesCount',
2477
- won_games_count: 'wonGamesCount',
2478
- draw_games_count: 'drawGamesCount',
2479
- lose_games_count: 'loseGamesCount',
2480
- last_games_count: 'lastGamesCount',
2481
- last_games_won: 'lastGamesWon',
2482
- score_sum: 'scoreSum',
2483
- missed_sum: 'missedSum',
2484
- score_points_sum: 'scorePointsSum',
2485
- missed_points_sum: 'missedPointsSum',
2486
- points: 'points',
2487
- mt_points: 'mtPoints',
2488
- users_count: 'usersCount',
2489
- games: 'games',
2490
- notifications_count: 'notificationsCount',
2491
- win_normal_time_games_count: 'winNormalTimeGamesCount',
2492
- lose_normal_time_games_count: 'loseNormalTimeGamesCount',
2493
- win_overtime_games_count: 'winOvertimeGamesCount',
2494
- lose_overtime_games_count: 'loseOvertimeGamesCount',
2495
- last_five_games: 'lastFiveGames',
2496
- tries_scored: 'triesScored',
2497
- tries_missed: 'triesMissed',
2498
- attack_bonuses: 'attackBonuses',
2499
- defense_bonuses: 'defenseBonuses',
2500
- team_additional_data: 'teamAdditionalData',
2501
- },
2502
- relation: {
2503
- logo: exports.File,
2504
- teamPhoto: exports.File,
2505
- teamUniform: exports.File,
2506
- tournament: exports.Tournament,
2507
- team: exports.Team,
2508
- group: exports.TournamentGroup,
2509
- games: exports.Game,
2510
- lastFiveGames: exports.Game,
2511
- division: exports.TournamentDivision,
2512
- teamAdditionalData: exports.TeamAdditionalData,
2513
- }
2514
- })
2515
- ], exports.TournamentTeam);
2516
-
2517
2387
  exports.GameStatuses = void 0;
2518
2388
  (function (GameStatuses) {
2519
2389
  GameStatuses[GameStatuses["open"] = 1] = "open";
@@ -2530,6 +2400,27 @@
2530
2400
  GameResultTypes[GameResultTypes["competitor_team_technical_defeat"] = 4] = "competitor_team_technical_defeat";
2531
2401
  GameResultTypes[GameResultTypes["draw"] = 5] = "draw";
2532
2402
  })(exports.GameResultTypes || (exports.GameResultTypes = {}));
2403
+ exports.GameTeamAdditionalData = /** @class */ (function () {
2404
+ function GameTeamAdditionalData() {
2405
+ }
2406
+ GameTeamAdditionalData.toFront = function (data) { };
2407
+ GameTeamAdditionalData.toBack = function (data) { };
2408
+ return GameTeamAdditionalData;
2409
+ }());
2410
+ __decorate([
2411
+ ToFrontHook
2412
+ ], exports.GameTeamAdditionalData, "toFront", null);
2413
+ __decorate([
2414
+ ToBackHook
2415
+ ], exports.GameTeamAdditionalData, "toBack", null);
2416
+ exports.GameTeamAdditionalData = __decorate([
2417
+ ModelInstance({
2418
+ mappingFields: {
2419
+ nickname: 'nickname',
2420
+ color: 'color',
2421
+ }
2422
+ })
2423
+ ], exports.GameTeamAdditionalData);
2533
2424
  exports.TournamentTeamShort = /** @class */ (function (_super) {
2534
2425
  __extends(TournamentTeamShort, _super);
2535
2426
  function TournamentTeamShort() {
@@ -2555,7 +2446,7 @@
2555
2446
  },
2556
2447
  relation: {
2557
2448
  logo: exports.File,
2558
- additionalData: exports.TeamAdditionalData,
2449
+ additionalData: exports.GameTeamAdditionalData,
2559
2450
  }
2560
2451
  })
2561
2452
  ], exports.TournamentTeamShort);
@@ -3031,6 +2922,136 @@
3031
2922
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [CONFIG_DATA,] }] }
3032
2923
  ]; };
3033
2924
 
2925
+ exports.TournamentDivision = /** @class */ (function (_super) {
2926
+ __extends(TournamentDivision, _super);
2927
+ function TournamentDivision() {
2928
+ return _super !== null && _super.apply(this, arguments) || this;
2929
+ }
2930
+ TournamentDivision.toFront = function (data) { };
2931
+ TournamentDivision.toBack = function (data) { };
2932
+ return TournamentDivision;
2933
+ }(BaseModel));
2934
+ __decorate([
2935
+ ToFrontHook
2936
+ ], exports.TournamentDivision, "toFront", null);
2937
+ __decorate([
2938
+ ToBackHook
2939
+ ], exports.TournamentDivision, "toBack", null);
2940
+ exports.TournamentDivision = __decorate([
2941
+ ModelInstance({
2942
+ mappingFields: {
2943
+ id: 'id',
2944
+ name: 'name',
2945
+ cover: 'cover',
2946
+ },
2947
+ relation: {
2948
+ cover: exports.File
2949
+ }
2950
+ })
2951
+ ], exports.TournamentDivision);
2952
+
2953
+ exports.TeamAdditionalData = /** @class */ (function () {
2954
+ function TeamAdditionalData() {
2955
+ }
2956
+ TeamAdditionalData.toFront = function (data) { };
2957
+ TeamAdditionalData.toBack = function (data) { };
2958
+ return TeamAdditionalData;
2959
+ }());
2960
+ __decorate([
2961
+ ToFrontHook
2962
+ ], exports.TeamAdditionalData, "toFront", null);
2963
+ __decorate([
2964
+ ToBackHook
2965
+ ], exports.TeamAdditionalData, "toBack", null);
2966
+ exports.TeamAdditionalData = __decorate([
2967
+ ModelInstance({
2968
+ mappingFields: {
2969
+ nickname: 'nickname',
2970
+ color: 'color',
2971
+ }
2972
+ })
2973
+ ], exports.TeamAdditionalData);
2974
+ exports.TournamentTeam = /** @class */ (function (_super) {
2975
+ __extends(TournamentTeam, _super);
2976
+ function TournamentTeam() {
2977
+ return _super !== null && _super.apply(this, arguments) || this;
2978
+ }
2979
+ Object.defineProperty(TournamentTeam.prototype, "gamesWonPercent", {
2980
+ get: function () {
2981
+ if (!this.gamesCount) {
2982
+ return 0;
2983
+ }
2984
+ return Math.floor(1000 * this.wonGamesCount / this.gamesCount) / 10;
2985
+ },
2986
+ enumerable: false,
2987
+ configurable: true
2988
+ });
2989
+ TournamentTeam.toFront = function (data) { };
2990
+ TournamentTeam.toBack = function (data) { };
2991
+ return TournamentTeam;
2992
+ }(BaseModel));
2993
+ __decorate([
2994
+ ToFrontHook
2995
+ ], exports.TournamentTeam, "toFront", null);
2996
+ __decorate([
2997
+ ToBackHook
2998
+ ], exports.TournamentTeam, "toBack", null);
2999
+ exports.TournamentTeam = __decorate([
3000
+ ModelInstance({
3001
+ mappingFields: {
3002
+ id: 'id',
3003
+ name: 'name',
3004
+ logo: 'logo',
3005
+ team_photo: 'teamPhoto',
3006
+ team_uniform: 'teamUniform',
3007
+ team_id: 'teamId',
3008
+ tournament_id: 'tournamentId',
3009
+ tournament: 'tournament',
3010
+ team: 'team',
3011
+ group: 'group',
3012
+ division: 'division',
3013
+ final_standing: 'finalStanding',
3014
+ games_count: 'gamesCount',
3015
+ won_games_count: 'wonGamesCount',
3016
+ draw_games_count: 'drawGamesCount',
3017
+ lose_games_count: 'loseGamesCount',
3018
+ last_games_count: 'lastGamesCount',
3019
+ last_games_won: 'lastGamesWon',
3020
+ score_sum: 'scoreSum',
3021
+ missed_sum: 'missedSum',
3022
+ score_points_sum: 'scorePointsSum',
3023
+ missed_points_sum: 'missedPointsSum',
3024
+ points: 'points',
3025
+ mt_points: 'mtPoints',
3026
+ users_count: 'usersCount',
3027
+ games: 'games',
3028
+ notifications_count: 'notificationsCount',
3029
+ win_normal_time_games_count: 'winNormalTimeGamesCount',
3030
+ lose_normal_time_games_count: 'loseNormalTimeGamesCount',
3031
+ win_overtime_games_count: 'winOvertimeGamesCount',
3032
+ lose_overtime_games_count: 'loseOvertimeGamesCount',
3033
+ last_five_games: 'lastFiveGames',
3034
+ tries_scored: 'triesScored',
3035
+ tries_missed: 'triesMissed',
3036
+ attack_bonuses: 'attackBonuses',
3037
+ defense_bonuses: 'defenseBonuses',
3038
+ team_additional_data: 'teamAdditionalData',
3039
+ },
3040
+ relation: {
3041
+ logo: exports.File,
3042
+ teamPhoto: exports.File,
3043
+ teamUniform: exports.File,
3044
+ tournament: exports.Tournament,
3045
+ team: exports.Team,
3046
+ group: exports.TournamentGroup,
3047
+ games: exports.Game,
3048
+ lastFiveGames: exports.Game,
3049
+ division: exports.TournamentDivision,
3050
+ teamAdditionalData: exports.TeamAdditionalData,
3051
+ }
3052
+ })
3053
+ ], exports.TournamentTeam);
3054
+
3034
3055
  exports.TeamUserRole = void 0;
3035
3056
  (function (TeamUserRole) {
3036
3057
  TeamUserRole[TeamUserRole["member"] = 1] = "member";
@@ -4138,6 +4159,9 @@
4138
4159
  HockeyGameLogTypes[HockeyGameLogTypes["after_game_shootout_goal"] = 24] = "after_game_shootout_goal";
4139
4160
  HockeyGameLogTypes[HockeyGameLogTypes["after_game_shootout_save"] = 25] = "after_game_shootout_save";
4140
4161
  HockeyGameLogTypes[HockeyGameLogTypes["shootout_save"] = 26] = "shootout_save";
4162
+ HockeyGameLogTypes[HockeyGameLogTypes["steal"] = 27] = "steal";
4163
+ HockeyGameLogTypes[HockeyGameLogTypes["loss"] = 28] = "loss";
4164
+ HockeyGameLogTypes[HockeyGameLogTypes["sharp_poss"] = 29] = "sharp_poss";
4141
4165
  })(exports.HockeyGameLogTypes || (exports.HockeyGameLogTypes = {}));
4142
4166
  exports.HockeyAdvantageTypes = void 0;
4143
4167
  (function (HockeyAdvantageTypes) {
@@ -4481,7 +4505,12 @@
4481
4505
  safety_rate: 'safetyRate',
4482
4506
  penalty_minutes: 'penaltyMinutes',
4483
4507
  game_time: 'gameTime',
4484
- plus_minus: 'plusMinus'
4508
+ plus_minus: 'plusMinus',
4509
+ steals: 'steals',
4510
+ losses: 'losses',
4511
+ sharp_passes: 'sharpPasses',
4512
+ drawn_fouls: 'drawnFouls',
4513
+ efficiency: 'efficiency',
4485
4514
  },
4486
4515
  relation: {
4487
4516
  updatedAt: DateTimeField,
@@ -4619,6 +4648,11 @@
4619
4648
  penalty_minutes: 'penaltyMinutes',
4620
4649
  game_time: 'gameTime',
4621
4650
  plus_minus: 'plusMinus',
4651
+ steals: 'steals',
4652
+ losses: 'losses',
4653
+ sharp_passes: 'sharpPasses',
4654
+ drawn_fouls: 'drawnFouls',
4655
+ efficiency: 'efficiency',
4622
4656
  newbie: 'newbie',
4623
4657
  rank: 'rank',
4624
4658
  },