@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.
- package/api/game-base-api.d.ts +2 -0
- package/bundles/mtgame-core.umd.js +195 -118
- package/bundles/mtgame-core.umd.js.map +1 -1
- package/bundles/mtgame-core.umd.min.js +1 -1
- package/bundles/mtgame-core.umd.min.js.map +1 -1
- package/esm2015/api/game-base-api.js +7 -1
- package/esm2015/localization/game-user-limitation-types.js +6 -0
- package/esm2015/localization/public-api.js +2 -1
- package/esm2015/models/game-user-limitation.js +32 -0
- package/esm2015/models/game.js +4 -1
- package/esm2015/models/league.js +14 -4
- package/esm2015/models/playoff.js +3 -1
- package/esm2015/models/public-api.js +2 -1
- package/esm2015/models/util.js +3 -3
- package/esm5/api/game-base-api.js +9 -1
- package/esm5/localization/game-user-limitation-types.js +7 -0
- package/esm5/localization/public-api.js +2 -1
- package/esm5/models/game-user-limitation.js +37 -0
- package/esm5/models/game.js +4 -1
- package/esm5/models/league.js +28 -4
- package/esm5/models/playoff.js +3 -1
- package/esm5/models/public-api.js +2 -1
- package/esm5/models/util.js +3 -3
- package/fesm2015/mtgame-core.js +159 -106
- package/fesm2015/mtgame-core.js.map +1 -1
- package/fesm5/mtgame-core.js +194 -119
- package/fesm5/mtgame-core.js.map +1 -1
- package/localization/game-user-limitation-types.d.ts +5 -0
- package/localization/public-api.d.ts +1 -0
- package/models/game-user-limitation.d.ts +11 -0
- package/models/game.d.ts +2 -0
- package/models/league.d.ts +3 -0
- package/models/playoff.d.ts +2 -0
- package/models/public-api.d.ts +1 -0
- package/models/util.d.ts +2 -2
- package/mtgame-core.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -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;
|
package/models/league.d.ts
CHANGED
package/models/playoff.d.ts
CHANGED
package/models/public-api.d.ts
CHANGED
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;
|