@mtgame/core 0.0.11 → 0.0.13

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.
@@ -2307,6 +2307,41 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
2307
2307
  enumerable: true,
2308
2308
  configurable: true
2309
2309
  });
2310
+ Object.defineProperty(HockeyGameStatistic.prototype, "ppShots", {
2311
+ get: function () {
2312
+ return (this.ppShotMisses || 0) + (this.ppShotsOnGoal || 0) + (this.ppShotsBlocked || 0);
2313
+ },
2314
+ enumerable: true,
2315
+ configurable: true
2316
+ });
2317
+ Object.defineProperty(HockeyGameStatistic.prototype, "evShots", {
2318
+ get: function () {
2319
+ return (this.evShotMisses || 0) + (this.evShotsOnGoal || 0) + (this.evShotsBlocked || 0);
2320
+ },
2321
+ enumerable: true,
2322
+ configurable: true
2323
+ });
2324
+ Object.defineProperty(HockeyGameStatistic.prototype, "shShots", {
2325
+ get: function () {
2326
+ return (this.shShotMisses || 0) + (this.shShotsOnGoal || 0) + (this.shShotsBlocked || 0);
2327
+ },
2328
+ enumerable: true,
2329
+ configurable: true
2330
+ });
2331
+ Object.defineProperty(HockeyGameStatistic.prototype, "shots", {
2332
+ get: function () {
2333
+ return this.ppShots + this.evShots + this.shShots;
2334
+ },
2335
+ enumerable: true,
2336
+ configurable: true
2337
+ });
2338
+ Object.defineProperty(HockeyGameStatistic.prototype, "goals", {
2339
+ get: function () {
2340
+ return (this.ppGoals || 0) + (this.shGoals || 0) + (this.evGoals || 0);
2341
+ },
2342
+ enumerable: true,
2343
+ configurable: true
2344
+ });
2310
2345
  Object.defineProperty(HockeyGameStatistic.prototype, "assists", {
2311
2346
  get: function () {
2312
2347
  return (this.ppAssists || 0) + (this.evAssists || 0) + (this.shAssists || 0);
@@ -2342,32 +2377,18 @@ var HockeyGameStatistic = /** @class */ (function (_super) {
2342
2377
  game_user_id: 'gameUserId',
2343
2378
  updated_at: 'updatedAt',
2344
2379
  points: 'points',
2345
- pp_shots: 'ppShots',
2346
2380
  pp_shot_misses: 'ppShotMisses',
2347
2381
  pp_shots_on_goal: 'ppShotsOnGoal',
2348
2382
  pp_shots_blocked: 'ppShotsBlocked',
2349
- ev_shots: 'evShots',
2350
2383
  ev_shot_misses: 'evShotMisses',
2351
2384
  ev_shots_on_goal: 'evShotsOnGoal',
2352
2385
  ev_shots_blocked: 'evShotsBlocked',
2353
- sh_shots: 'shShots',
2354
2386
  sh_shot_misses: 'shShotMisses',
2355
2387
  sh_shots_on_goal: 'shShotsOnGoal',
2356
2388
  sh_shots_blocked: 'shShotsBlocked',
2357
- pp_goals_percent: 'ppGoalsPercent',
2358
2389
  pp_goals: 'ppGoals',
2359
- ev_goals_percent: 'evGoalsPercent',
2360
2390
  ev_goals: 'evGoals',
2361
- sh_goals_percent: 'shGoalsPercent',
2362
- goals: 'goals',
2363
2391
  sh_goals: 'shGoals',
2364
- shot_misses: 'shotMisses',
2365
- shots_on_goal: 'shotsOnGoal',
2366
- shots_blocked: 'shotsBlocked',
2367
- shots: 'shots',
2368
- goals_percent: 'goalsPercent',
2369
- shots_against: 'shotsAgainst',
2370
- saves_percent: 'savesPercent',
2371
2392
  pp_assists: 'ppAssists',
2372
2393
  ev_assists: 'evAssists',
2373
2394
  sh_assists: 'shAssists',
@@ -2396,6 +2417,13 @@ var HockeyStatistic = /** @class */ (function (_super) {
2396
2417
  function HockeyStatistic() {
2397
2418
  return _super !== null && _super.apply(this, arguments) || this;
2398
2419
  }
2420
+ Object.defineProperty(HockeyStatistic.prototype, "assists", {
2421
+ get: function () {
2422
+ return (this.ppAssists || 0) + (this.shAssists || 0) + (this.evAssists || 0);
2423
+ },
2424
+ enumerable: true,
2425
+ configurable: true
2426
+ });
2399
2427
  HockeyStatistic.toFront = function (data) { };
2400
2428
  HockeyStatistic.toBack = function (data) { };
2401
2429
  __decorate([
@@ -2417,18 +2445,32 @@ var HockeyStatistic = /** @class */ (function (_super) {
2417
2445
  games_count: 'gamesCount',
2418
2446
  won_games_count: 'wonGamesCount',
2419
2447
  points: 'points',
2448
+ pp_shots: 'ppShots',
2420
2449
  pp_shot_misses: 'ppShotMisses',
2421
2450
  pp_shots_on_goal: 'ppShotsOnGoal',
2422
2451
  pp_shots_blocked: 'ppShotsBlocked',
2452
+ ev_shots: 'evShots',
2423
2453
  ev_shot_misses: 'evShotMisses',
2424
2454
  ev_shots_on_goal: 'evShotsOnGoal',
2425
2455
  ev_shots_blocked: 'evShotsBlocked',
2426
- sh_shot_misses: 'evShotMisses',
2456
+ sh_shots: 'shShots',
2457
+ sh_shot_misses: 'shShotMisses',
2427
2458
  sh_shots_on_goal: 'shShotsOnGoal',
2428
2459
  sh_shots_blocked: 'shShotsBlocked',
2460
+ pp_goals_percent: 'ppGoalsPercent',
2429
2461
  pp_goals: 'ppGoals',
2462
+ ev_goals_percent: 'evGoalsPercent',
2430
2463
  ev_goals: 'evGoals',
2464
+ sh_goals_percent: 'shGoalsPercent',
2465
+ goals: 'goals',
2431
2466
  sh_goals: 'shGoals',
2467
+ shot_misses: 'shotMisses',
2468
+ shots_on_goal: 'shotsOnGoal',
2469
+ shots_blocked: 'shotsBlocked',
2470
+ shots: 'shots',
2471
+ goals_percent: 'goalsPercent',
2472
+ shots_against: 'shotsAgainst',
2473
+ saves_percent: 'savesPercent',
2432
2474
  pp_assists: 'ppAssists',
2433
2475
  ev_assists: 'evAssists',
2434
2476
  sh_assists: 'shAssists',
@@ -2437,6 +2479,8 @@ var HockeyStatistic = /** @class */ (function (_super) {
2437
2479
  block_shots: 'blockShots',
2438
2480
  face_off_losses: 'faceOffLosses',
2439
2481
  face_off_wins: 'faceOffWins',
2482
+ face_offs: 'faceOffs',
2483
+ face_off_percent: 'faceOffPercent',
2440
2484
  saves: 'saves',
2441
2485
  goals_against: 'goalsAgainst',
2442
2486
  safety_rate: 'safetyRate',
@@ -5751,7 +5795,7 @@ var TeamUserRoleLocalization = (_a$4 = {},
5751
5795
  _a$4[TeamUserRole.admin] = 'Владелец',
5752
5796
  _a$4);
5753
5797
 
5754
- var _a$5, _b, _c, _d, _e, _f, _g;
5798
+ var _a$5, _b, _c, _d, _e, _f, _g, _h;
5755
5799
  var GameBasketballPositionLocalization = (_a$5 = {},
5756
5800
  _a$5[GameBasketballPosition.point_guard] = 'Разыгрывающий защитник',
5757
5801
  _a$5[GameBasketballPosition.shooting_guard] = 'Атакующий защитник',
@@ -5795,6 +5839,11 @@ var VolleyballWorkHandLocalization = (_g = {},
5795
5839
  _g[VolleyballWorkHand.left] = 'Левая',
5796
5840
  _g[VolleyballWorkHand.right] = 'Правая',
5797
5841
  _g);
5842
+ var GameHockeyPositionLocalization = (_h = {},
5843
+ _h[GameHockeyPosition.goaltender] = 'Вратарь',
5844
+ _h[GameHockeyPosition.defensemen] = 'Защитник',
5845
+ _h[GameHockeyPosition.forward] = 'Нападающий',
5846
+ _h);
5798
5847
 
5799
5848
  var _a$6;
5800
5849
  var VolleyballGameLogTypeLocalization = (_a$6 = {},
@@ -6224,5 +6273,5 @@ var HttpCookieInterceptor = /** @class */ (function () {
6224
6273
  * Generated bundle index. Do not edit.
6225
6274
  */
6226
6275
 
6227
- export { BaseModel, BaseService, BaseStatistic, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameHockeyPosition, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueCourt, LeagueNews, LeagueNewsApi, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, ReferenceApi, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
6276
+ export { BaseModel, BaseService, BaseStatistic, BasketballGameApi, BasketballGameConfig, BasketballGameLog, BasketballGameLogTypeLocalization, BasketballGameLogTypes, BasketballGameStatistic, BasketballGameTeamStatistic, BasketballProfile, BasketballStatistic, BasketballStatisticTypes, CONFIG_DATA, CentrifugoService, City, ConfigService, DateField, DateTimeField, FAULT_LOG_TYPES, Feedback, FeedbackApi, File, FileApi, FileEngine, Game, GameBasketballPosition, GameBasketballPositionLocalization, GameBasketballPositionShortLocalization, GameHockeyPosition, GameHockeyPositionLocalization, GameInvite, GameInviteStatus, GameResultTypes, GameStatuses, GameTimeTypes, GameTimelineStageItem, GameTimelineStages, GameUser, GameVolleyballPosition, GameVolleyballPositionLocalization, GameVolleyballPositionShortLocalization, GameVolleyballPositionShortRuLocalization, HockeyAdvantageTypes, HockeyGameApi, HockeyGameConfig, HockeyGameLog, HockeyGameLogTypeLocalization, HockeyGameLogTypes, HockeyGameStatistic, HockeyGameTeamStatistic, HockeyProfile, HockeyStatistic, HockeyWorkHand, HttpCookieInterceptor, League, LeagueApi, LeagueCourt, LeagueNews, LeagueNewsApi, LocalStorageEngine, MediaApi, MediaItem, ModelInstance, Notification, NotificationAllowTypes, NotificationApi, NotificationBaseApi, NotificationServiceEnum, NotificationSettings, NotificationType, OrgNotificationApi, Organization, OvertimeTypeLocalization, OvertimeTypes, Playoff, PlayoffSettings, PlayoffTypes, Poll, PollAnswer, PollStatuses, PollVariant, ReferenceApi, SCORE_LOG_TYPES, Sport, SportTypes, StorageEngine, StorageEngineField, Store, Team, TeamAccess, TeamApi, TeamEvent, TeamEventApi, TeamEventInvite, TeamEventInviteStatuses, TeamEventTypeLocalization, TeamEventTypes, TeamInvite, TeamInviteExternal, TeamPermission, TeamPermissionTypes, TeamUser, TeamUserRole, TeamUserRoleLocalization, ToBackHook, ToFrontHook, Tournament, TournamentApi, TournamentDisqualification, TournamentEvent, TournamentEventTypes, TournamentGender, TournamentGroup, TournamentInvite, TournamentJoinApi, TournamentJoinData, TournamentJoinTeam, TournamentNews, TournamentSettings, TournamentStage, TournamentStageApi, TournamentStageStatuses, TournamentStageTeam, TournamentStatuses, TournamentTeam, TournamentTeamUser, TournamentTeamUserInvite, TournamentTeamWinner, TournamentTypes, UntilDestroy, User, UserAccess, UserApi, UserGender, UserPermission, UserPermissionTypes, UserProfile, VolleyballGameApi, VolleyballGameConfig, VolleyballGameLog, VolleyballGameLogType, VolleyballGameLogTypeLocalization, VolleyballGameStatistic, VolleyballGameTeamStatistic, VolleyballGameTypes, VolleyballProfile, VolleyballStatistic, VolleyballWorkHand, VolleyballWorkHandLocalization, WorkHand, WorkHandLocalization, addItemInArray, changeFavicons, componentDestroyed, deleteItemFromArray, enumField, fileSizeValidator, generateArray, getArrayChunks, getCookie, getEnumOptions, getIconsData, handleError, isTouchDevice, listField, markFormGroupTouched, minLengthArrayValidator, patchItemInArray, updateItemInArray, updateItemsInArray, validateDate, validateEmail, validatePhone, validateUrl };
6228
6277
  //# sourceMappingURL=mtgame-core.js.map