@mtgame/core 0.1.5 → 0.1.7

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.
Files changed (37) hide show
  1. package/api/game-base-api.d.ts +2 -0
  2. package/bundles/mtgame-core.umd.js +195 -118
  3. package/bundles/mtgame-core.umd.js.map +1 -1
  4. package/bundles/mtgame-core.umd.min.js +1 -1
  5. package/bundles/mtgame-core.umd.min.js.map +1 -1
  6. package/esm2015/api/game-base-api.js +7 -1
  7. package/esm2015/localization/game-user-limitation-types.js +6 -0
  8. package/esm2015/localization/public-api.js +2 -1
  9. package/esm2015/models/game-user-limitation.js +32 -0
  10. package/esm2015/models/game.js +4 -1
  11. package/esm2015/models/league.js +14 -4
  12. package/esm2015/models/playoff.js +3 -1
  13. package/esm2015/models/public-api.js +2 -1
  14. package/esm2015/models/util.js +3 -3
  15. package/esm5/api/game-base-api.js +9 -1
  16. package/esm5/localization/game-user-limitation-types.js +7 -0
  17. package/esm5/localization/public-api.js +2 -1
  18. package/esm5/models/game-user-limitation.js +37 -0
  19. package/esm5/models/game.js +4 -1
  20. package/esm5/models/league.js +28 -4
  21. package/esm5/models/playoff.js +3 -1
  22. package/esm5/models/public-api.js +2 -1
  23. package/esm5/models/util.js +3 -3
  24. package/fesm2015/mtgame-core.js +159 -106
  25. package/fesm2015/mtgame-core.js.map +1 -1
  26. package/fesm5/mtgame-core.js +194 -119
  27. package/fesm5/mtgame-core.js.map +1 -1
  28. package/localization/game-user-limitation-types.d.ts +5 -0
  29. package/localization/public-api.d.ts +1 -0
  30. package/models/game-user-limitation.d.ts +11 -0
  31. package/models/game.d.ts +2 -0
  32. package/models/league.d.ts +3 -0
  33. package/models/playoff.d.ts +2 -0
  34. package/models/public-api.d.ts +1 -0
  35. package/models/util.d.ts +2 -2
  36. package/mtgame-core.metadata.json +1 -1
  37. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ import { GameUserLimitationTypes } from '../models/game-user-limitation';
2
+ export declare const GameUserLimitationTypeLocalization: {
3
+ min_user_games_count: string;
4
+ min_user_time: string;
5
+ };
@@ -8,3 +8,4 @@ export * from './team-event-type';
8
8
  export * from './team-user-role';
9
9
  export * from './user-profile';
10
10
  export * from './volleyball-game-log-types';
11
+ export * from './game-user-limitation-types';
@@ -0,0 +1,11 @@
1
+ import { BaseModel } from './util';
2
+ export declare enum GameUserLimitationTypes {
3
+ min_user_games_count = "min_user_games_count",
4
+ min_user_time = "min_user_time"
5
+ }
6
+ export declare class GameUserLimitations extends BaseModel {
7
+ tournamentTeamUserId: number;
8
+ limitations: GameUserLimitationTypes[];
9
+ static toFront(data: any): any;
10
+ static toBack(data: any): any;
11
+ }
package/models/game.d.ts CHANGED
@@ -8,6 +8,7 @@ import { HockeyGameConfig } from './hockey-game-config';
8
8
  import { Tournament } from './tournament';
9
9
  import { FootballGameConfig } from './football-game-config';
10
10
  import { HandballGameConfig } from './handball-game-config';
11
+ import { Playoff } from './playoff';
11
12
  export declare enum GameStatuses {
12
13
  open = 1,
13
14
  in_progress = 2,
@@ -48,6 +49,7 @@ export declare class Game extends BaseModel {
48
49
  playoffStage: string;
49
50
  tournamentStageId: number;
50
51
  tournamentPlayoffId: number;
52
+ tournamentPlayoff: Playoff;
51
53
  tournamentCourt: LeagueCourt;
52
54
  mediaCount: number;
53
55
  mediaLiveCount: number;
@@ -24,4 +24,7 @@ export declare class League extends BaseModel {
24
24
  get vkLink(): string;
25
25
  get fbLink(): string;
26
26
  get instaLink(): string;
27
+ get youtubeLink(): string;
28
+ get telegramLink(): string;
29
+ get tiktokLink(): string;
27
30
  }
@@ -9,6 +9,8 @@ export declare class PlayoffSettings extends BaseModel {
9
9
  thirdPlaceRounds: number;
10
10
  teamsCount: number;
11
11
  type: PlayoffTypes;
12
+ minPlayerGamesCount: number;
13
+ minPlayerTime: number;
12
14
  static toFront(data: any): any;
13
15
  static toBack(data: any): any;
14
16
  }
@@ -81,3 +81,4 @@ export * from './volleyball-game-statistic';
81
81
  export * from './volleyball-game-team-statistic';
82
82
  export * from './volleyball-profile';
83
83
  export * from './volleyball-statistic';
84
+ export * from './game-user-limitation';
package/models/util.d.ts CHANGED
@@ -25,8 +25,8 @@ export declare function penaltyTypeField(): {
25
25
  toBack: (data: any) => any;
26
26
  };
27
27
  export declare function listField(modelClass: any): {
28
- toFront: (value: any) => any;
29
- toBack: (value: any) => any;
28
+ toFront: (value: any) => any[];
29
+ toBack: (value: any) => any[];
30
30
  };
31
31
  export declare class DateField extends BaseModel {
32
32
  static toFront(date: any): any;