@mtgame/core 0.0.1
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/README.md +24 -0
- package/api/basketball-game-api.d.ts +17 -0
- package/api/league-api.d.ts +16 -0
- package/api/media-api.d.ts +24 -0
- package/api/notification-api.d.ts +4 -0
- package/api/notification-base-api.d.ts +22 -0
- package/api/org-notification-api.d.ts +4 -0
- package/api/paginated-response.interface.d.ts +4 -0
- package/api/public-api.d.ts +12 -0
- package/api/reference-api.d.ts +11 -0
- package/api/tournament-api.d.ts +64 -0
- package/api/tournament-join-api.d.ts +14 -0
- package/api/tournament-stage-api.d.ts +15 -0
- package/api/volleyball-game-api.d.ts +17 -0
- package/bundles/mtgame-core.umd.js +4785 -0
- package/bundles/mtgame-core.umd.js.map +1 -0
- package/bundles/mtgame-core.umd.min.js +16 -0
- package/bundles/mtgame-core.umd.min.js.map +1 -0
- package/esm2015/api/basketball-game-api.js +54 -0
- package/esm2015/api/league-api.js +60 -0
- package/esm2015/api/media-api.js +110 -0
- package/esm2015/api/notification-api.js +18 -0
- package/esm2015/api/notification-base-api.js +83 -0
- package/esm2015/api/org-notification-api.js +18 -0
- package/esm2015/api/paginated-response.interface.js +1 -0
- package/esm2015/api/public-api.js +12 -0
- package/esm2015/api/reference-api.js +40 -0
- package/esm2015/api/tournament-api.js +187 -0
- package/esm2015/api/tournament-join-api.js +51 -0
- package/esm2015/api/tournament-stage-api.js +56 -0
- package/esm2015/api/volleyball-game-api.js +54 -0
- package/esm2015/http-cookie.interceptor.js +34 -0
- package/esm2015/localization/basketball-game-log-types.js +26 -0
- package/esm2015/localization/overtime-types.js +7 -0
- package/esm2015/localization/public-api.js +7 -0
- package/esm2015/localization/team-event-type.js +6 -0
- package/esm2015/localization/team-user-role.js +7 -0
- package/esm2015/localization/user-profile.js +46 -0
- package/esm2015/localization/volleyball-game-log-types.js +25 -0
- package/esm2015/models/basketball-game-config.js +42 -0
- package/esm2015/models/basketball-game-log.js +109 -0
- package/esm2015/models/basketball-game-statistic.js +50 -0
- package/esm2015/models/basketball-game-team-statistic.js +27 -0
- package/esm2015/models/basketball-profile.js +43 -0
- package/esm2015/models/basketball-statistic.js +69 -0
- package/esm2015/models/city.js +22 -0
- package/esm2015/models/file.js +38 -0
- package/esm2015/models/game-invite.js +37 -0
- package/esm2015/models/game-log-base.js +1 -0
- package/esm2015/models/game-statistic-base.js +1 -0
- package/esm2015/models/game-timeline-stages.js +49 -0
- package/esm2015/models/game-user.js +32 -0
- package/esm2015/models/game.js +108 -0
- package/esm2015/models/league-court.js +24 -0
- package/esm2015/models/league.js +52 -0
- package/esm2015/models/media-item.js +40 -0
- package/esm2015/models/notification-settings.js +35 -0
- package/esm2015/models/notification.js +134 -0
- package/esm2015/models/organization.js +27 -0
- package/esm2015/models/playoff.js +78 -0
- package/esm2015/models/poll.js +132 -0
- package/esm2015/models/public-api.js +50 -0
- package/esm2015/models/sport.js +47 -0
- package/esm2015/models/team-event-invite.js +32 -0
- package/esm2015/models/team-event-type.js +6 -0
- package/esm2015/models/team-event.js +45 -0
- package/esm2015/models/team-invite-external.js +25 -0
- package/esm2015/models/team-invite.js +41 -0
- package/esm2015/models/team-user.js +39 -0
- package/esm2015/models/team.js +56 -0
- package/esm2015/models/tournament-disqualification.js +29 -0
- package/esm2015/models/tournament-event.js +38 -0
- package/esm2015/models/tournament-group.js +23 -0
- package/esm2015/models/tournament-invite.js +39 -0
- package/esm2015/models/tournament-join-team.js +55 -0
- package/esm2015/models/tournament-news.js +33 -0
- package/esm2015/models/tournament-stage-team.js +45 -0
- package/esm2015/models/tournament-stage.js +35 -0
- package/esm2015/models/tournament-team-user-invite.js +29 -0
- package/esm2015/models/tournament-team-user.js +49 -0
- package/esm2015/models/tournament-team.js +54 -0
- package/esm2015/models/tournament.js +161 -0
- package/esm2015/models/user-profile.js +24 -0
- package/esm2015/models/user.js +74 -0
- package/esm2015/models/util.js +208 -0
- package/esm2015/models/volleyball-game-config.js +40 -0
- package/esm2015/models/volleyball-game-log.js +139 -0
- package/esm2015/models/volleyball-game-statistic.js +50 -0
- package/esm2015/models/volleyball-game-team-statistic.js +27 -0
- package/esm2015/models/volleyball-profile.js +43 -0
- package/esm2015/models/volleyball-statistic.js +66 -0
- package/esm2015/mtgame-core.js +5 -0
- package/esm2015/public-api.js +8 -0
- package/esm2015/services/base.service.js +18 -0
- package/esm2015/services/centrifugo.service.js +107 -0
- package/esm2015/services/config.service.js +40 -0
- package/esm2015/services/public-api.js +4 -0
- package/esm2015/storage/local-storage-engine.js +18 -0
- package/esm2015/storage/public-api.js +4 -0
- package/esm2015/storage/storage-engine.js +61 -0
- package/esm2015/storage/store.js +63 -0
- package/esm2015/utils/array.js +18 -0
- package/esm2015/utils/component-destroyed.js +21 -0
- package/esm2015/utils/cookie.js +9 -0
- package/esm2015/utils/data.js +75 -0
- package/esm2015/utils/device.js +14 -0
- package/esm2015/utils/enum.js +7 -0
- package/esm2015/utils/errors.js +10 -0
- package/esm2015/utils/favicon.js +25 -0
- package/esm2015/utils/form.js +22 -0
- package/esm2015/utils/public-api.js +11 -0
- package/esm2015/utils/validators.js +47 -0
- package/esm5/api/basketball-game-api.js +65 -0
- package/esm5/api/league-api.js +70 -0
- package/esm5/api/media-api.js +125 -0
- package/esm5/api/notification-api.js +21 -0
- package/esm5/api/notification-base-api.js +109 -0
- package/esm5/api/org-notification-api.js +21 -0
- package/esm5/api/paginated-response.interface.js +1 -0
- package/esm5/api/public-api.js +12 -0
- package/esm5/api/reference-api.js +45 -0
- package/esm5/api/tournament-api.js +245 -0
- package/esm5/api/tournament-join-api.js +59 -0
- package/esm5/api/tournament-stage-api.js +65 -0
- package/esm5/api/volleyball-game-api.js +65 -0
- package/esm5/http-cookie.interceptor.js +35 -0
- package/esm5/localization/basketball-game-log-types.js +27 -0
- package/esm5/localization/overtime-types.js +8 -0
- package/esm5/localization/public-api.js +7 -0
- package/esm5/localization/team-event-type.js +7 -0
- package/esm5/localization/team-user-role.js +8 -0
- package/esm5/localization/user-profile.js +47 -0
- package/esm5/localization/volleyball-game-log-types.js +26 -0
- package/esm5/models/basketball-game-config.js +47 -0
- package/esm5/models/basketball-game-log.js +117 -0
- package/esm5/models/basketball-game-statistic.js +63 -0
- package/esm5/models/basketball-game-team-statistic.js +32 -0
- package/esm5/models/basketball-profile.js +48 -0
- package/esm5/models/basketball-statistic.js +78 -0
- package/esm5/models/city.js +27 -0
- package/esm5/models/file.js +41 -0
- package/esm5/models/game-invite.js +42 -0
- package/esm5/models/game-log-base.js +1 -0
- package/esm5/models/game-statistic-base.js +1 -0
- package/esm5/models/game-timeline-stages.js +57 -0
- package/esm5/models/game-user.js +37 -0
- package/esm5/models/game.js +134 -0
- package/esm5/models/league-court.js +29 -0
- package/esm5/models/league.js +69 -0
- package/esm5/models/media-item.js +49 -0
- package/esm5/models/notification-settings.js +40 -0
- package/esm5/models/notification.js +143 -0
- package/esm5/models/organization.js +32 -0
- package/esm5/models/playoff.js +91 -0
- package/esm5/models/poll.js +154 -0
- package/esm5/models/public-api.js +50 -0
- package/esm5/models/sport.js +52 -0
- package/esm5/models/team-event-invite.js +35 -0
- package/esm5/models/team-event-type.js +6 -0
- package/esm5/models/team-event.js +58 -0
- package/esm5/models/team-invite-external.js +30 -0
- package/esm5/models/team-invite.js +46 -0
- package/esm5/models/team-user.js +44 -0
- package/esm5/models/team.js +61 -0
- package/esm5/models/tournament-disqualification.js +34 -0
- package/esm5/models/tournament-event.js +43 -0
- package/esm5/models/tournament-group.js +28 -0
- package/esm5/models/tournament-invite.js +48 -0
- package/esm5/models/tournament-join-team.js +73 -0
- package/esm5/models/tournament-news.js +38 -0
- package/esm5/models/tournament-stage-team.js +54 -0
- package/esm5/models/tournament-stage.js +40 -0
- package/esm5/models/tournament-team-user-invite.js +34 -0
- package/esm5/models/tournament-team-user.js +66 -0
- package/esm5/models/tournament-team.js +63 -0
- package/esm5/models/tournament.js +176 -0
- package/esm5/models/user-profile.js +27 -0
- package/esm5/models/user.js +95 -0
- package/esm5/models/util.js +275 -0
- package/esm5/models/volleyball-game-config.js +49 -0
- package/esm5/models/volleyball-game-log.js +142 -0
- package/esm5/models/volleyball-game-statistic.js +71 -0
- package/esm5/models/volleyball-game-team-statistic.js +32 -0
- package/esm5/models/volleyball-profile.js +48 -0
- package/esm5/models/volleyball-statistic.js +71 -0
- package/esm5/mtgame-core.js +5 -0
- package/esm5/public-api.js +8 -0
- package/esm5/services/base.service.js +19 -0
- package/esm5/services/centrifugo.service.js +111 -0
- package/esm5/services/config.service.js +52 -0
- package/esm5/services/public-api.js +4 -0
- package/esm5/storage/local-storage-engine.js +25 -0
- package/esm5/storage/public-api.js +4 -0
- package/esm5/storage/storage-engine.js +77 -0
- package/esm5/storage/store.js +77 -0
- package/esm5/utils/array.js +18 -0
- package/esm5/utils/component-destroyed.js +21 -0
- package/esm5/utils/cookie.js +9 -0
- package/esm5/utils/data.js +79 -0
- package/esm5/utils/device.js +14 -0
- package/esm5/utils/enum.js +7 -0
- package/esm5/utils/errors.js +12 -0
- package/esm5/utils/favicon.js +47 -0
- package/esm5/utils/form.js +22 -0
- package/esm5/utils/public-api.js +11 -0
- package/esm5/utils/validators.js +49 -0
- package/fesm2015/mtgame-core.js +3749 -0
- package/fesm2015/mtgame-core.js.map +1 -0
- package/fesm5/mtgame-core.js +4455 -0
- package/fesm5/mtgame-core.js.map +1 -0
- package/http-cookie.interceptor.d.ts +10 -0
- package/localization/basketball-game-log-types.d.ts +25 -0
- package/localization/overtime-types.d.ts +6 -0
- package/localization/public-api.d.ts +6 -0
- package/localization/team-event-type.d.ts +5 -0
- package/localization/team-user-role.d.ts +6 -0
- package/localization/user-profile.d.ts +45 -0
- package/localization/volleyball-game-log-types.d.ts +24 -0
- package/models/basketball-game-config.d.ts +22 -0
- package/models/basketball-game-log.d.ts +52 -0
- package/models/basketball-game-statistic.d.ts +29 -0
- package/models/basketball-game-team-statistic.d.ts +8 -0
- package/models/basketball-profile.d.ts +20 -0
- package/models/basketball-statistic.d.ts +44 -0
- package/models/city.d.ts +7 -0
- package/models/file.d.ts +14 -0
- package/models/game-invite.d.ts +16 -0
- package/models/game-log-base.d.ts +10 -0
- package/models/game-statistic-base.d.ts +3 -0
- package/models/game-timeline-stages.d.ts +18 -0
- package/models/game-user.d.ts +12 -0
- package/models/game.d.ts +56 -0
- package/models/league-court.d.ts +9 -0
- package/models/league.d.ts +25 -0
- package/models/media-item.d.ts +15 -0
- package/models/notification-settings.d.ts +15 -0
- package/models/notification.d.ts +98 -0
- package/models/organization.d.ts +9 -0
- package/models/playoff.d.ts +25 -0
- package/models/poll.d.ts +46 -0
- package/models/public-api.d.ts +50 -0
- package/models/sport.d.ts +19 -0
- package/models/team-event-invite.d.ts +12 -0
- package/models/team-event-type.d.ts +4 -0
- package/models/team-event.d.ts +17 -0
- package/models/team-invite-external.d.ts +10 -0
- package/models/team-invite.d.ts +20 -0
- package/models/team-user.d.ts +18 -0
- package/models/team.d.ts +21 -0
- package/models/tournament-disqualification.d.ts +10 -0
- package/models/tournament-event.d.ts +16 -0
- package/models/tournament-group.d.ts +10 -0
- package/models/tournament-invite.d.ts +17 -0
- package/models/tournament-join-team.d.ts +19 -0
- package/models/tournament-news.d.ts +13 -0
- package/models/tournament-stage-team.d.ts +21 -0
- package/models/tournament-stage.d.ts +15 -0
- package/models/tournament-team-user-invite.d.ts +11 -0
- package/models/tournament-team-user.d.ts +22 -0
- package/models/tournament-team.d.ts +28 -0
- package/models/tournament.d.ts +87 -0
- package/models/user-profile.d.ts +8 -0
- package/models/user.d.ts +33 -0
- package/models/util.d.ts +49 -0
- package/models/volleyball-game-config.d.ts +17 -0
- package/models/volleyball-game-log.d.ts +54 -0
- package/models/volleyball-game-statistic.d.ts +28 -0
- package/models/volleyball-game-team-statistic.d.ts +8 -0
- package/models/volleyball-profile.d.ts +20 -0
- package/models/volleyball-statistic.d.ts +43 -0
- package/mtgame-core.d.ts +4 -0
- package/mtgame-core.metadata.json +1 -0
- package/package.json +23 -0
- package/public-api.d.ts +7 -0
- package/services/base.service.d.ts +5 -0
- package/services/centrifugo.service.d.ts +20 -0
- package/services/config.service.d.ts +11 -0
- package/services/public-api.d.ts +3 -0
- package/storage/local-storage-engine.d.ts +6 -0
- package/storage/public-api.d.ts +3 -0
- package/storage/storage-engine.d.ts +24 -0
- package/storage/store.d.ts +21 -0
- package/utils/array.d.ts +2 -0
- package/utils/component-destroyed.d.ts +7 -0
- package/utils/cookie.d.ts +1 -0
- package/utils/data.d.ts +6 -0
- package/utils/device.d.ts +1 -0
- package/utils/enum.d.ts +1 -0
- package/utils/errors.d.ts +1 -0
- package/utils/favicon.d.ts +9 -0
- package/utils/form.d.ts +2 -0
- package/utils/public-api.d.ts +10 -0
- package/utils/validators.d.ts +25 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { GameBasketballPosition, WorkHand } from '../models/basketball-profile';
|
|
2
|
+
import { GameVolleyballPosition, VolleyballWorkHand } from '../models/volleyball-profile';
|
|
3
|
+
export declare const GameBasketballPositionLocalization: {
|
|
4
|
+
1: string;
|
|
5
|
+
2: string;
|
|
6
|
+
3: string;
|
|
7
|
+
4: string;
|
|
8
|
+
5: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const GameBasketballPositionShortLocalization: {
|
|
11
|
+
1: string;
|
|
12
|
+
2: string;
|
|
13
|
+
3: string;
|
|
14
|
+
4: string;
|
|
15
|
+
5: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const WorkHandLocalization: {
|
|
18
|
+
1: string;
|
|
19
|
+
2: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const GameVolleyballPositionLocalization: {
|
|
22
|
+
1: string;
|
|
23
|
+
2: string;
|
|
24
|
+
3: string;
|
|
25
|
+
4: string;
|
|
26
|
+
5: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const GameVolleyballPositionShortLocalization: {
|
|
29
|
+
1: string;
|
|
30
|
+
2: string;
|
|
31
|
+
3: string;
|
|
32
|
+
4: string;
|
|
33
|
+
5: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const GameVolleyballPositionShortRuLocalization: {
|
|
36
|
+
1: string;
|
|
37
|
+
2: string;
|
|
38
|
+
3: string;
|
|
39
|
+
4: string;
|
|
40
|
+
5: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const VolleyballWorkHandLocalization: {
|
|
43
|
+
1: string;
|
|
44
|
+
2: string;
|
|
45
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VolleyballGameLogType } from '../models/volleyball-game-log';
|
|
2
|
+
export declare const VolleyballGameLogTypeLocalization: {
|
|
3
|
+
1: string;
|
|
4
|
+
2: string;
|
|
5
|
+
3: string;
|
|
6
|
+
6: string;
|
|
7
|
+
4: string;
|
|
8
|
+
5: string;
|
|
9
|
+
10: string;
|
|
10
|
+
12: string;
|
|
11
|
+
11: string;
|
|
12
|
+
7: string;
|
|
13
|
+
9: string;
|
|
14
|
+
8: string;
|
|
15
|
+
15: string;
|
|
16
|
+
13: string;
|
|
17
|
+
14: string;
|
|
18
|
+
18: string;
|
|
19
|
+
20: string;
|
|
20
|
+
19: string;
|
|
21
|
+
16: string;
|
|
22
|
+
17: string;
|
|
23
|
+
21: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { BasketballStatisticTypes } from './tournament';
|
|
3
|
+
export declare enum OvertimeTypes {
|
|
4
|
+
to_score_total = 0,
|
|
5
|
+
to_score_diff = 1,
|
|
6
|
+
time = 2
|
|
7
|
+
}
|
|
8
|
+
export declare class BasketballGameConfig extends BaseModel {
|
|
9
|
+
periodsCount: number;
|
|
10
|
+
periodTime: number;
|
|
11
|
+
gameUpToScore: number;
|
|
12
|
+
overtimeType: OvertimeTypes;
|
|
13
|
+
overtimeTime: number;
|
|
14
|
+
overtimeScore: number;
|
|
15
|
+
maxGamePlayers: number;
|
|
16
|
+
timeoutCount: number;
|
|
17
|
+
overtimeTimeoutCount: number;
|
|
18
|
+
timeoutTime: number;
|
|
19
|
+
statisticType: BasketballStatisticTypes;
|
|
20
|
+
static toFront(data: any): any;
|
|
21
|
+
static toBack(data: any): any;
|
|
22
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { GameUser } from './game-user';
|
|
3
|
+
import { GameLogBase } from './game-log-base';
|
|
4
|
+
export declare enum BasketballGameLogTypes {
|
|
5
|
+
enter_game = 1,
|
|
6
|
+
exit_game = 2,
|
|
7
|
+
remove_game = 3,
|
|
8
|
+
two_point_made = 4,
|
|
9
|
+
three_point_made = 5,
|
|
10
|
+
free_throw_made = 6,
|
|
11
|
+
two_point_attempt = 7,
|
|
12
|
+
three_point_attempt = 8,
|
|
13
|
+
free_throw_attempt = 9,
|
|
14
|
+
assist = 10,
|
|
15
|
+
block = 11,
|
|
16
|
+
rebound = 12,
|
|
17
|
+
offensive_rebound = 13,
|
|
18
|
+
defensive_rebound = 14,
|
|
19
|
+
steal = 15,
|
|
20
|
+
turnover = 16,
|
|
21
|
+
personal_foul = 17,
|
|
22
|
+
technical_foul = 18,
|
|
23
|
+
unsportsmanlike_foul = 19,
|
|
24
|
+
one_point_attempt = 20,
|
|
25
|
+
one_point_made = 21,
|
|
26
|
+
timeout = 22
|
|
27
|
+
}
|
|
28
|
+
export declare class BasketballGameLog extends BaseModel implements GameLogBase {
|
|
29
|
+
id: number;
|
|
30
|
+
uniqueId: string;
|
|
31
|
+
gameId: number;
|
|
32
|
+
gameUserId: number;
|
|
33
|
+
gameUser: GameUser;
|
|
34
|
+
teamId: number;
|
|
35
|
+
logType: BasketballGameLogTypes;
|
|
36
|
+
datetime: Date;
|
|
37
|
+
time: number;
|
|
38
|
+
period: number;
|
|
39
|
+
active: boolean;
|
|
40
|
+
combined: BasketballGameLog;
|
|
41
|
+
teamScore: number;
|
|
42
|
+
competitorTeamScore: number;
|
|
43
|
+
isHighlight: boolean;
|
|
44
|
+
isPointsType(): boolean;
|
|
45
|
+
isReboundType(): boolean;
|
|
46
|
+
isFoulType(): boolean;
|
|
47
|
+
getScore(): any;
|
|
48
|
+
compare(model: BasketballGameLog): number;
|
|
49
|
+
get timeFormatted(): string;
|
|
50
|
+
static toFront(value: any): any;
|
|
51
|
+
static toBack(value: any): any;
|
|
52
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { GameStatisticBase } from './game-statistic-base';
|
|
3
|
+
export declare class BasketballGameStatistic extends BaseModel implements GameStatisticBase {
|
|
4
|
+
gameUserId: number;
|
|
5
|
+
points: number;
|
|
6
|
+
freeThrowsMade: number;
|
|
7
|
+
twoPointsMade: number;
|
|
8
|
+
threePointsMade: number;
|
|
9
|
+
onePointsMade: number;
|
|
10
|
+
twoPointAttempts: number;
|
|
11
|
+
threePointAttempts: number;
|
|
12
|
+
freeThrowAttempts: number;
|
|
13
|
+
onePointAttempts: number;
|
|
14
|
+
assists: number;
|
|
15
|
+
blocks: number;
|
|
16
|
+
rebounds: number;
|
|
17
|
+
offensiveRebounds: number;
|
|
18
|
+
defensiveRebounds: number;
|
|
19
|
+
steals: number;
|
|
20
|
+
turnovers: number;
|
|
21
|
+
personalFouls: number;
|
|
22
|
+
technicalFouls: number;
|
|
23
|
+
unsportsmanlikeFouls: number;
|
|
24
|
+
updatedAt: Date;
|
|
25
|
+
get id(): number;
|
|
26
|
+
static toFront(data: any): any;
|
|
27
|
+
static toBack(data: any): any;
|
|
28
|
+
get totalFouls(): number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { BasketballStatistic } from './basketball-statistic';
|
|
3
|
+
export declare class BasketballGameTeamStatistic extends BaseModel {
|
|
4
|
+
team: BasketballStatistic;
|
|
5
|
+
competitorTeam: BasketballStatistic;
|
|
6
|
+
static toFront(data: any): any;
|
|
7
|
+
static toBack(data: any): any;
|
|
8
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare enum GameBasketballPosition {
|
|
3
|
+
point_guard = 1,
|
|
4
|
+
shooting_guard = 2,
|
|
5
|
+
small_forward = 3,
|
|
6
|
+
power_forward = 4,
|
|
7
|
+
center = 5
|
|
8
|
+
}
|
|
9
|
+
export declare enum WorkHand {
|
|
10
|
+
left = 1,
|
|
11
|
+
right = 2
|
|
12
|
+
}
|
|
13
|
+
export declare class BasketballProfile extends BaseModel {
|
|
14
|
+
id: number;
|
|
15
|
+
userId: number;
|
|
16
|
+
position: GameBasketballPosition;
|
|
17
|
+
workHand: WorkHand;
|
|
18
|
+
static toFront(value: any): any;
|
|
19
|
+
static toBack(value: any): any;
|
|
20
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { TournamentTeamUser } from './tournament-team-user';
|
|
3
|
+
import { Team } from './team';
|
|
4
|
+
import { TeamUser } from './team-user';
|
|
5
|
+
import { User } from './user';
|
|
6
|
+
import { TournamentTeam } from './tournament-team';
|
|
7
|
+
export declare class BasketballStatistic extends BaseModel {
|
|
8
|
+
tournamentTeamUser: TournamentTeamUser;
|
|
9
|
+
team: Team;
|
|
10
|
+
teamUser: TeamUser;
|
|
11
|
+
user: User;
|
|
12
|
+
tournamentTeam: TournamentTeam;
|
|
13
|
+
month: Date;
|
|
14
|
+
winLose: boolean;
|
|
15
|
+
gamesCount: number;
|
|
16
|
+
wonGamesCount: number;
|
|
17
|
+
points: number;
|
|
18
|
+
twoPointsMade: number;
|
|
19
|
+
threePointsMade: number;
|
|
20
|
+
freeThrowsMade: number;
|
|
21
|
+
onePointsMade: number;
|
|
22
|
+
twoPointAttempts: number;
|
|
23
|
+
threePointAttempts: number;
|
|
24
|
+
freeThrowAttempts: number;
|
|
25
|
+
onePointAttempts: number;
|
|
26
|
+
twoPointPercent: number;
|
|
27
|
+
threePointPercent: number;
|
|
28
|
+
freeThrowPercent: number;
|
|
29
|
+
onePointPercent: number;
|
|
30
|
+
assists: number;
|
|
31
|
+
blocks: number;
|
|
32
|
+
rebounds: number;
|
|
33
|
+
offensiveRebounds: number;
|
|
34
|
+
defensiveRebounds: number;
|
|
35
|
+
steals: number;
|
|
36
|
+
turnovers: number;
|
|
37
|
+
personalFouls: number;
|
|
38
|
+
technicalFouls: number;
|
|
39
|
+
unsportsmanlikeFouls: number;
|
|
40
|
+
newbie: boolean;
|
|
41
|
+
get totalFouls(): number;
|
|
42
|
+
static toFront(data: any): any;
|
|
43
|
+
static toBack(data: any): any;
|
|
44
|
+
}
|
package/models/city.d.ts
ADDED
package/models/file.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum FileEngine {
|
|
2
|
+
django = 1,
|
|
3
|
+
s3 = 2
|
|
4
|
+
}
|
|
5
|
+
export declare class File {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
path: string;
|
|
9
|
+
mimeType: string;
|
|
10
|
+
size: string;
|
|
11
|
+
engine: FileEngine;
|
|
12
|
+
static toFront(data: any): File;
|
|
13
|
+
static toBack(file: File): any;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { TeamUser } from './team-user';
|
|
3
|
+
import { Game } from './game';
|
|
4
|
+
export declare enum GameInviteStatus {
|
|
5
|
+
accepted = 1,
|
|
6
|
+
declined = 2
|
|
7
|
+
}
|
|
8
|
+
export declare class GameInvite extends BaseModel {
|
|
9
|
+
id: number;
|
|
10
|
+
teamUser: TeamUser;
|
|
11
|
+
gameId: number;
|
|
12
|
+
game: Game;
|
|
13
|
+
status: GameInviteStatus;
|
|
14
|
+
static toFront(data: any): any;
|
|
15
|
+
static toBack(data: any): any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare class GameTimelineStageItem {
|
|
3
|
+
stageId: number;
|
|
4
|
+
toursCount: number;
|
|
5
|
+
playoffStagesCount: number;
|
|
6
|
+
static toFront(data: any): any;
|
|
7
|
+
static toBack(data: any): any;
|
|
8
|
+
}
|
|
9
|
+
export declare class GameTimelineStages extends BaseModel {
|
|
10
|
+
toursCount: number;
|
|
11
|
+
playoffStagesCount: number;
|
|
12
|
+
currentTour: number;
|
|
13
|
+
currentPlayoffStage: number;
|
|
14
|
+
stages: GameTimelineStageItem[];
|
|
15
|
+
tournamentStageId: number;
|
|
16
|
+
static toFront(data: any): any;
|
|
17
|
+
static toBack(data: any): any;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { TeamUser } from './team-user';
|
|
3
|
+
import { TournamentTeamUser } from './tournament-team-user';
|
|
4
|
+
export declare class GameUser extends BaseModel {
|
|
5
|
+
id: number;
|
|
6
|
+
gameId: number;
|
|
7
|
+
teamUser: TeamUser;
|
|
8
|
+
tournamentTeamUser: TournamentTeamUser;
|
|
9
|
+
updatedAt: Date;
|
|
10
|
+
static toFront(data: any): any;
|
|
11
|
+
static toBack(data: any): any;
|
|
12
|
+
}
|
package/models/game.d.ts
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { Team } from './team';
|
|
3
|
+
import { BasketballGameConfig } from './basketball-game-config';
|
|
4
|
+
import { VolleyballGameConfig } from './volleyball-game-config';
|
|
5
|
+
import { LeagueCourt } from './league-court';
|
|
6
|
+
import { MediaItem } from './media-item';
|
|
7
|
+
export declare enum GameStatuses {
|
|
8
|
+
open = 1,
|
|
9
|
+
in_progress = 2,
|
|
10
|
+
closed = 3,
|
|
11
|
+
archived = 4,
|
|
12
|
+
draft = 5
|
|
13
|
+
}
|
|
14
|
+
export declare enum GameResultTypes {
|
|
15
|
+
team_won = 1,
|
|
16
|
+
competitor_team_won = 2,
|
|
17
|
+
team_technical_defeat = 3,
|
|
18
|
+
competitor_team_technical_defeat = 4
|
|
19
|
+
}
|
|
20
|
+
export declare class Game extends BaseModel {
|
|
21
|
+
id: number;
|
|
22
|
+
status: GameStatuses;
|
|
23
|
+
team: Team;
|
|
24
|
+
teamId: number;
|
|
25
|
+
competitorTeam: Team;
|
|
26
|
+
competitorTeamId: number;
|
|
27
|
+
competitorTeamName: string;
|
|
28
|
+
datetime: Date;
|
|
29
|
+
location: string;
|
|
30
|
+
teamScore: number;
|
|
31
|
+
competitorTeamScore: number;
|
|
32
|
+
archive: boolean;
|
|
33
|
+
playoffNumber: string;
|
|
34
|
+
tournamentId: number;
|
|
35
|
+
tournamentTour: number;
|
|
36
|
+
basketballGameConfig: BasketballGameConfig;
|
|
37
|
+
volleyballGameConfig: VolleyballGameConfig;
|
|
38
|
+
scoreByPeriod: any;
|
|
39
|
+
playoffStage: string;
|
|
40
|
+
tournamentStageId: number;
|
|
41
|
+
tournamentPlayoffId: number;
|
|
42
|
+
tournamentCourt: LeagueCourt;
|
|
43
|
+
mediaCount: number;
|
|
44
|
+
media: MediaItem[];
|
|
45
|
+
get scoreByPeriodList(): {
|
|
46
|
+
period: number;
|
|
47
|
+
teamScore: number;
|
|
48
|
+
competitorTeamScore: number;
|
|
49
|
+
}[];
|
|
50
|
+
get isClosed(): boolean;
|
|
51
|
+
get isTeamWon(): boolean;
|
|
52
|
+
get isCompetitorTeamWon(): boolean;
|
|
53
|
+
get teamWinnerId(): number;
|
|
54
|
+
static toFront(data: any): any;
|
|
55
|
+
static toBack(data: any): any;
|
|
56
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { Organization } from './organization';
|
|
3
|
+
import { File } from './file';
|
|
4
|
+
import { Sport } from './sport';
|
|
5
|
+
export declare class League extends BaseModel {
|
|
6
|
+
id: number;
|
|
7
|
+
logo: File;
|
|
8
|
+
contactEmail: string;
|
|
9
|
+
contactPhone: string;
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
sport: Sport;
|
|
13
|
+
description: string;
|
|
14
|
+
socialLinks: string[];
|
|
15
|
+
links: string[];
|
|
16
|
+
organization: Organization;
|
|
17
|
+
tournamentsCount: number;
|
|
18
|
+
closestGameDatetime: string;
|
|
19
|
+
cover: File;
|
|
20
|
+
static toFront(data: any): any;
|
|
21
|
+
static toBack(data: any): any;
|
|
22
|
+
get vkLink(): string;
|
|
23
|
+
get fbLink(): string;
|
|
24
|
+
get instaLink(): string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { File } from './file';
|
|
3
|
+
export declare class MediaItem extends BaseModel {
|
|
4
|
+
id: number;
|
|
5
|
+
originalPhoto: File;
|
|
6
|
+
listPhoto: File;
|
|
7
|
+
detailPhoto: File;
|
|
8
|
+
gameId: number;
|
|
9
|
+
tournamentId: number;
|
|
10
|
+
videoUrl: string;
|
|
11
|
+
videoPreview: File;
|
|
12
|
+
get isVideo(): boolean;
|
|
13
|
+
static toFront(data: any): any;
|
|
14
|
+
static toBack(data: any): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare enum NotificationAllowTypes {
|
|
3
|
+
all = 1,
|
|
4
|
+
important = 2,
|
|
5
|
+
none = 3
|
|
6
|
+
}
|
|
7
|
+
export declare class NotificationSettings extends BaseModel {
|
|
8
|
+
userId: number;
|
|
9
|
+
popup: boolean;
|
|
10
|
+
sound: NotificationAllowTypes;
|
|
11
|
+
browser: NotificationAllowTypes;
|
|
12
|
+
email: boolean;
|
|
13
|
+
static toFront(data: any): any;
|
|
14
|
+
static toBack(data: any): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { Team } from './team';
|
|
3
|
+
import { Poll } from './poll';
|
|
4
|
+
import { Game } from './game';
|
|
5
|
+
import { TeamInvite } from './team-invite';
|
|
6
|
+
import { TeamUser } from './team-user';
|
|
7
|
+
import { GameInvite } from './game-invite';
|
|
8
|
+
import { TeamEvent } from './team-event';
|
|
9
|
+
import { TeamEventInvite } from './team-event-invite';
|
|
10
|
+
import { Tournament } from './tournament';
|
|
11
|
+
import { TournamentInvite } from './tournament-invite';
|
|
12
|
+
import { TournamentTeam } from './tournament-team';
|
|
13
|
+
import { User } from './user';
|
|
14
|
+
export declare enum NotificationType {
|
|
15
|
+
team_updated = 1,
|
|
16
|
+
team_invited = 2,
|
|
17
|
+
team_join_request = 3,
|
|
18
|
+
team_join_declined_by_team = 4,
|
|
19
|
+
team_join_declined_by_user = 5,
|
|
20
|
+
team_join_canceled_by_team = 6,
|
|
21
|
+
team_join_canceled_by_user = 7,
|
|
22
|
+
team_joined_for_user = 8,
|
|
23
|
+
team_joined_for_team = 9,
|
|
24
|
+
team_user_role_changed_for_user = 10,
|
|
25
|
+
team_user_role_changed_for_team = 11,
|
|
26
|
+
team_user_number_changed = 12,
|
|
27
|
+
team_user_deleted_for_user = 13,
|
|
28
|
+
team_user_deleted_for_team = 14,
|
|
29
|
+
team_user_left = 15,
|
|
30
|
+
game_updated = 16,
|
|
31
|
+
game_invited = 17,
|
|
32
|
+
game_invite_accepted = 18,
|
|
33
|
+
game_invite_declined = 19,
|
|
34
|
+
game_remind = 20,
|
|
35
|
+
game_won = 21,
|
|
36
|
+
game_losing = 22,
|
|
37
|
+
game_tech_defeat = 23,
|
|
38
|
+
game_tech_victory = 24,
|
|
39
|
+
poll_created = 25,
|
|
40
|
+
poll_closed = 26,
|
|
41
|
+
team_event_invited = 27,
|
|
42
|
+
team_event_accepted = 28,
|
|
43
|
+
team_event_declined = 29,
|
|
44
|
+
team_event_remind = 30,
|
|
45
|
+
tournament_invited = 31,
|
|
46
|
+
tournament_joined = 32,
|
|
47
|
+
tournament_join_declined = 33,
|
|
48
|
+
tournament_join_canceled = 34,
|
|
49
|
+
tournament_user_invited = 35,
|
|
50
|
+
tournament_user_accepted_for_team = 36,
|
|
51
|
+
tournament_user_accepted_for_user = 37,
|
|
52
|
+
tournament_user_added = 38,
|
|
53
|
+
tournament_user_declined_for_team = 39,
|
|
54
|
+
tournament_user_declined_for_user = 40,
|
|
55
|
+
tournament_user_invite_deleted = 41,
|
|
56
|
+
tournament_user_deleted = 42,
|
|
57
|
+
tournament_user_disqualified_for_team = 43,
|
|
58
|
+
tournament_user_disqualified_for_user = 44,
|
|
59
|
+
tournament_user_disqualification_updated_for_team = 45,
|
|
60
|
+
tournament_user_disqualification_updated_for_user = 46,
|
|
61
|
+
tournament_team_deleted = 47,
|
|
62
|
+
org_tournament_invite_created = 48,
|
|
63
|
+
org_tournament_invite_declined = 49,
|
|
64
|
+
org_tournament_invite_deleted = 50,
|
|
65
|
+
org_tournament_invite_changed = 51,
|
|
66
|
+
org_tournament_user_deleted = 52,
|
|
67
|
+
org_tournament_user_invited = 53,
|
|
68
|
+
org_tournament_user_has_changes = 54,
|
|
69
|
+
org_tournament_team_leave = 55
|
|
70
|
+
}
|
|
71
|
+
export declare enum NotificationServiceEnum {
|
|
72
|
+
public = 1,
|
|
73
|
+
org = 2
|
|
74
|
+
}
|
|
75
|
+
export declare class Notification extends BaseModel {
|
|
76
|
+
id: number;
|
|
77
|
+
event: NotificationType;
|
|
78
|
+
data: any;
|
|
79
|
+
initiator: User;
|
|
80
|
+
team: Team;
|
|
81
|
+
teamInvite: TeamInvite;
|
|
82
|
+
teamUser: TeamUser;
|
|
83
|
+
poll: Poll;
|
|
84
|
+
game: Game;
|
|
85
|
+
gameInvite: GameInvite;
|
|
86
|
+
teamEvent: TeamEvent;
|
|
87
|
+
teamEventInvite: TeamEventInvite;
|
|
88
|
+
tournament: Tournament;
|
|
89
|
+
tournamentInvite: TournamentInvite;
|
|
90
|
+
tournamentTeam: TournamentTeam;
|
|
91
|
+
viewed: boolean;
|
|
92
|
+
protected: boolean;
|
|
93
|
+
service: NotificationServiceEnum;
|
|
94
|
+
createdAt: Date;
|
|
95
|
+
get important(): boolean;
|
|
96
|
+
static toFront(value: any): any;
|
|
97
|
+
static toBack(value: any): any;
|
|
98
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare class PlayoffSettings extends BaseModel {
|
|
3
|
+
rounds: number;
|
|
4
|
+
finalRounds: number;
|
|
5
|
+
thirdPlaceRounds: number;
|
|
6
|
+
teamsCount: number;
|
|
7
|
+
static toFront(data: any): any;
|
|
8
|
+
static toBack(data: any): any;
|
|
9
|
+
}
|
|
10
|
+
export declare class Playoff extends BaseModel {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
settings: PlayoffSettings;
|
|
14
|
+
tournamentId: number;
|
|
15
|
+
tournamentStageId: number;
|
|
16
|
+
isOfficial: boolean;
|
|
17
|
+
private stages;
|
|
18
|
+
static toFront(data: any): any;
|
|
19
|
+
static toBack(data: any): any;
|
|
20
|
+
get stagesCount(): number;
|
|
21
|
+
getPlayoffStages(): {
|
|
22
|
+
title: string;
|
|
23
|
+
value: number;
|
|
24
|
+
}[];
|
|
25
|
+
}
|
package/models/poll.d.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
export declare enum PollStatuses {
|
|
4
|
+
open = 1,
|
|
5
|
+
closed = 2,
|
|
6
|
+
archived = 3
|
|
7
|
+
}
|
|
8
|
+
export declare class PollVariant extends BaseModel {
|
|
9
|
+
uuid: string;
|
|
10
|
+
name: string;
|
|
11
|
+
static toFront(data: any): any;
|
|
12
|
+
static toBack(data: any): any;
|
|
13
|
+
}
|
|
14
|
+
export declare class PollAnswer extends BaseModel {
|
|
15
|
+
id: number;
|
|
16
|
+
answerUuid: string;
|
|
17
|
+
user: User;
|
|
18
|
+
pollId: number;
|
|
19
|
+
static toFront(data: any): any;
|
|
20
|
+
static toBack(data: any): any;
|
|
21
|
+
}
|
|
22
|
+
export declare class Poll extends BaseModel {
|
|
23
|
+
id: number;
|
|
24
|
+
active: boolean;
|
|
25
|
+
teamId: number;
|
|
26
|
+
status: PollStatuses;
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
_variants: PollVariant[];
|
|
30
|
+
author: User;
|
|
31
|
+
_answers: PollAnswer[];
|
|
32
|
+
multipleAnswer: boolean;
|
|
33
|
+
anonymous: boolean;
|
|
34
|
+
createdAt: Date;
|
|
35
|
+
variantsWithAnswers: {
|
|
36
|
+
variant: PollVariant;
|
|
37
|
+
percent: number;
|
|
38
|
+
}[];
|
|
39
|
+
set variants(value: PollVariant[]);
|
|
40
|
+
get variants(): PollVariant[];
|
|
41
|
+
set answers(value: PollAnswer[]);
|
|
42
|
+
get answers(): PollAnswer[];
|
|
43
|
+
calculateAnswersPercentage(): void;
|
|
44
|
+
static toFront(data: any): any;
|
|
45
|
+
static toBack(data: any): any;
|
|
46
|
+
}
|