@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,50 @@
|
|
|
1
|
+
export { BasketballGameConfig, OvertimeTypes } from './basketball-game-config';
|
|
2
|
+
export { BasketballGameLog, BasketballGameLogTypes } from './basketball-game-log';
|
|
3
|
+
export { BasketballGameStatistic } from './basketball-game-statistic';
|
|
4
|
+
export { BasketballGameTeamStatistic } from './basketball-game-team-statistic';
|
|
5
|
+
export { GameBasketballPosition, WorkHand, BasketballProfile } from './basketball-profile';
|
|
6
|
+
export { BasketballStatistic } from './basketball-statistic';
|
|
7
|
+
export { City } from './city';
|
|
8
|
+
export { FileEngine, File } from './file';
|
|
9
|
+
export { GameStatuses, GameResultTypes, Game } from './game';
|
|
10
|
+
export * from './game-invite';
|
|
11
|
+
export { GameLogBase } from './game-log-base';
|
|
12
|
+
export { GameTimelineStageItem, GameTimelineStages } from './game-timeline-stages';
|
|
13
|
+
export { GameUser } from './game-user';
|
|
14
|
+
export { League } from './league';
|
|
15
|
+
export { LeagueCourt } from './league-court';
|
|
16
|
+
export { MediaItem } from './media-item';
|
|
17
|
+
export * from './notification';
|
|
18
|
+
export * from './notification-settings';
|
|
19
|
+
export { Organization } from './organization';
|
|
20
|
+
export { PlayoffSettings, Playoff } from './playoff';
|
|
21
|
+
export * from './poll';
|
|
22
|
+
export { SportTypes, Sport } from './sport';
|
|
23
|
+
export { Team } from './team';
|
|
24
|
+
export * from './team-event';
|
|
25
|
+
export * from './team-event-invite';
|
|
26
|
+
export * from './team-event-type';
|
|
27
|
+
export * from './team-invite';
|
|
28
|
+
export * from './team-invite-external';
|
|
29
|
+
export * from './team-user';
|
|
30
|
+
export * from './tournament';
|
|
31
|
+
export { TournamentDisqualification } from './tournament-disqualification';
|
|
32
|
+
export { TournamentEventTypes, TournamentEvent } from './tournament-event';
|
|
33
|
+
export { TournamentGroup } from './tournament-group';
|
|
34
|
+
export { TournamentInvite } from './tournament-invite';
|
|
35
|
+
export { TournamentJoinData, TournamentJoinTeam } from './tournament-join-team';
|
|
36
|
+
export { TournamentNews } from './tournament-news';
|
|
37
|
+
export { TournamentStageStatuses, TournamentStage } from './tournament-stage';
|
|
38
|
+
export { TournamentStageTeam } from './tournament-stage-team';
|
|
39
|
+
export { TournamentTeam } from './tournament-team';
|
|
40
|
+
export { TournamentTeamUser } from './tournament-team-user';
|
|
41
|
+
export { TournamentTeamUserInvite } from './tournament-team-user-invite';
|
|
42
|
+
export { UserGender, User } from './user';
|
|
43
|
+
export { UserProfile } from './user-profile';
|
|
44
|
+
export { ModelInterface, BaseModel, enumField, listField, DateField, DateTimeField, ModelInstance, ToFrontHook, ToBackHook } from './util';
|
|
45
|
+
export { VolleyballGameTypes, VolleyballGameConfig } from './volleyball-game-config';
|
|
46
|
+
export { VolleyballGameLogType, SCORE_LOG_TYPES, FAULT_LOG_TYPES, VolleyballGameLog } from './volleyball-game-log';
|
|
47
|
+
export { VolleyballGameStatistic } from './volleyball-game-statistic';
|
|
48
|
+
export { VolleyballGameTeamStatistic } from './volleyball-game-team-statistic';
|
|
49
|
+
export { GameVolleyballPosition, VolleyballWorkHand, VolleyballProfile } from './volleyball-profile';
|
|
50
|
+
export { VolleyballStatistic } from './volleyball-statistic';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare enum SportTypes {
|
|
3
|
+
basketball = 1,
|
|
4
|
+
volleyball = 2,
|
|
5
|
+
classic_basketball = 3,
|
|
6
|
+
streetball = 4
|
|
7
|
+
}
|
|
8
|
+
export declare class Sport extends BaseModel {
|
|
9
|
+
id: number;
|
|
10
|
+
name: string;
|
|
11
|
+
parentId: number;
|
|
12
|
+
subSports: Sport[];
|
|
13
|
+
isBasketball(): boolean;
|
|
14
|
+
isClassicBasketball(): boolean;
|
|
15
|
+
isVolleyball(): boolean;
|
|
16
|
+
isStreetball(): boolean;
|
|
17
|
+
static toFront(data: any): any;
|
|
18
|
+
static toBack(sport: Sport): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum TeamEventInviteStatuses {
|
|
2
|
+
accepted = 1,
|
|
3
|
+
declined = 2
|
|
4
|
+
}
|
|
5
|
+
export declare class TeamEventInvite {
|
|
6
|
+
id: number;
|
|
7
|
+
teamEventId: number;
|
|
8
|
+
teamUserId: number;
|
|
9
|
+
status: TeamEventInviteStatuses;
|
|
10
|
+
static toFront(data: any): any;
|
|
11
|
+
static toBack(data: any): any;
|
|
12
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { Team } from './team';
|
|
3
|
+
import { TeamEventTypes } from './team-event-type';
|
|
4
|
+
export declare class TeamEvent extends BaseModel {
|
|
5
|
+
id: number;
|
|
6
|
+
teamId: number;
|
|
7
|
+
team: Team;
|
|
8
|
+
eventType: TeamEventTypes;
|
|
9
|
+
eventCustomName: string;
|
|
10
|
+
description: string;
|
|
11
|
+
datetime: Date;
|
|
12
|
+
location: string;
|
|
13
|
+
get name(): string;
|
|
14
|
+
get isClosed(): boolean;
|
|
15
|
+
static toFront(data: any): any;
|
|
16
|
+
static toBack(data: any): any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
import { Team } from './team';
|
|
4
|
+
export declare class TeamInvite extends BaseModel {
|
|
5
|
+
id: number;
|
|
6
|
+
userId: number;
|
|
7
|
+
user: User;
|
|
8
|
+
teamId: number;
|
|
9
|
+
team: Team;
|
|
10
|
+
userAccept: boolean;
|
|
11
|
+
teamAccept: boolean;
|
|
12
|
+
usersCount: number;
|
|
13
|
+
gamesCount: number;
|
|
14
|
+
wonGamesCount: number;
|
|
15
|
+
scoreSum: number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
updatedAt: Date;
|
|
18
|
+
static toFront(data: any): any;
|
|
19
|
+
static toBack(data: any): any;
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { User } from './user';
|
|
3
|
+
import { Team } from './team';
|
|
4
|
+
export declare enum TeamUserRole {
|
|
5
|
+
member = 1,
|
|
6
|
+
moderator = 2,
|
|
7
|
+
admin = 3
|
|
8
|
+
}
|
|
9
|
+
export declare class TeamUser extends BaseModel {
|
|
10
|
+
id: number;
|
|
11
|
+
teamId: number;
|
|
12
|
+
user: User;
|
|
13
|
+
team: Team;
|
|
14
|
+
number: number;
|
|
15
|
+
role: TeamUserRole;
|
|
16
|
+
static toFront(data: any): any;
|
|
17
|
+
static toBack(teamPlayer: TeamUser): any;
|
|
18
|
+
}
|
package/models/team.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { File } from './file';
|
|
3
|
+
import { Sport } from './sport';
|
|
4
|
+
import { User } from './user';
|
|
5
|
+
import { City } from './city';
|
|
6
|
+
export declare class Team extends BaseModel {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
sport: Sport;
|
|
10
|
+
logo: File;
|
|
11
|
+
owner: User;
|
|
12
|
+
city: City;
|
|
13
|
+
usersCount: number;
|
|
14
|
+
wonGamesCount: number;
|
|
15
|
+
gamesCount: number;
|
|
16
|
+
scoreSum: number;
|
|
17
|
+
closestGameDatetime: Date;
|
|
18
|
+
getEmptyLogoClass(): string;
|
|
19
|
+
static toFront(data: any): any;
|
|
20
|
+
static toBack(team: Team): any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare class TournamentDisqualification extends BaseModel {
|
|
3
|
+
id: number;
|
|
4
|
+
tournamentTeamUserId: number;
|
|
5
|
+
dateFrom: Date;
|
|
6
|
+
dateTo: Date;
|
|
7
|
+
matchesCount: number;
|
|
8
|
+
static toFront(data: any): any;
|
|
9
|
+
static toBack(data: any): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { Game } from './game';
|
|
3
|
+
import { Tournament } from './tournament';
|
|
4
|
+
export declare enum TournamentEventTypes {
|
|
5
|
+
game_closed = 1,
|
|
6
|
+
media_added = 2
|
|
7
|
+
}
|
|
8
|
+
export declare class TournamentEvent extends BaseModel {
|
|
9
|
+
id: number;
|
|
10
|
+
game: Game;
|
|
11
|
+
tournament: Tournament;
|
|
12
|
+
event: TournamentEventTypes;
|
|
13
|
+
datetime: Date;
|
|
14
|
+
static toFront(data: any): any;
|
|
15
|
+
static toBack(data: any): any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { TournamentTeam } from './tournament-team';
|
|
3
|
+
export declare class TournamentGroup extends BaseModel {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
tournamentStageId: number;
|
|
7
|
+
teams: TournamentTeam[];
|
|
8
|
+
static toFront(data: any): any;
|
|
9
|
+
static toBack(data: any): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { Team } from './team';
|
|
3
|
+
import { Tournament } from './tournament';
|
|
4
|
+
import { TournamentTeamUserInvite } from './tournament-team-user-invite';
|
|
5
|
+
export declare class TournamentInvite extends BaseModel {
|
|
6
|
+
id: number;
|
|
7
|
+
team: Team;
|
|
8
|
+
tournament: Tournament;
|
|
9
|
+
teamAccept: boolean;
|
|
10
|
+
organizationAccept: boolean;
|
|
11
|
+
userInvitesCount: number;
|
|
12
|
+
userInvites: TournamentTeamUserInvite[];
|
|
13
|
+
notificationsCount: number;
|
|
14
|
+
get isOpen(): boolean;
|
|
15
|
+
static toFront(data: any): any;
|
|
16
|
+
static toBack(data: any): any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { Team } from './team';
|
|
3
|
+
export declare class TournamentJoinData extends BaseModel {
|
|
4
|
+
validUsersCount: number;
|
|
5
|
+
invalidUsersCount: number;
|
|
6
|
+
hasAccess: boolean;
|
|
7
|
+
inviteSent: boolean;
|
|
8
|
+
alreadyInTournament: boolean;
|
|
9
|
+
get usersCount(): number;
|
|
10
|
+
get valid(): boolean;
|
|
11
|
+
static toFront(data: any): any;
|
|
12
|
+
static toBack(data: any): any;
|
|
13
|
+
}
|
|
14
|
+
export declare class TournamentJoinTeam extends BaseModel {
|
|
15
|
+
team: Team;
|
|
16
|
+
joinData: TournamentJoinData;
|
|
17
|
+
static toFront(data: any): any;
|
|
18
|
+
static toBack(data: any): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { File } from './file';
|
|
3
|
+
import { User } from './user';
|
|
4
|
+
export declare class TournamentNews extends BaseModel {
|
|
5
|
+
id: number;
|
|
6
|
+
title: string;
|
|
7
|
+
picture: File;
|
|
8
|
+
text: string;
|
|
9
|
+
author: User;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
static toFront(data: any): any;
|
|
12
|
+
static toBack(data: any): any;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { TournamentTeam } from './tournament-team';
|
|
3
|
+
import { TournamentGroup } from './tournament-group';
|
|
4
|
+
export declare class TournamentStageTeam extends BaseModel {
|
|
5
|
+
id: number;
|
|
6
|
+
tournamentTeam: TournamentTeam;
|
|
7
|
+
group: TournamentGroup;
|
|
8
|
+
tournamentStageId: number;
|
|
9
|
+
gamesCount: number;
|
|
10
|
+
wonGamesCount: number;
|
|
11
|
+
scoreSum: number;
|
|
12
|
+
missedSum: number;
|
|
13
|
+
lastGamesCount: number;
|
|
14
|
+
lastGamesWon: number;
|
|
15
|
+
points: number;
|
|
16
|
+
finalStanding: number;
|
|
17
|
+
receivedPoints: number;
|
|
18
|
+
get gamesWonPercent(): number;
|
|
19
|
+
static toFront(data: any): any;
|
|
20
|
+
static toBack(data: any): any;
|
|
21
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare enum TournamentStageStatuses {
|
|
3
|
+
open = 0,
|
|
4
|
+
in_progress = 1,
|
|
5
|
+
closed = 2
|
|
6
|
+
}
|
|
7
|
+
export declare class TournamentStage extends BaseModel {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
date: Date;
|
|
11
|
+
tournamentId: number;
|
|
12
|
+
status: TournamentStageStatuses;
|
|
13
|
+
static toFront(data: any): any;
|
|
14
|
+
static toBack(data: any): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { TeamUser } from './team-user';
|
|
3
|
+
export declare class TournamentTeamUserInvite extends BaseModel {
|
|
4
|
+
id: number;
|
|
5
|
+
tournamentTeamInviteId: number;
|
|
6
|
+
tournamentTeamId: number;
|
|
7
|
+
teamUser: TeamUser;
|
|
8
|
+
accepted: boolean;
|
|
9
|
+
static toFront(data: any): any;
|
|
10
|
+
static toBack(data: any): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { TournamentTeam } from './tournament-team';
|
|
3
|
+
import { TeamUser } from './team-user';
|
|
4
|
+
import { File } from './file';
|
|
5
|
+
import { TournamentDisqualification } from './tournament-disqualification';
|
|
6
|
+
export declare class TournamentTeamUser extends BaseModel {
|
|
7
|
+
id: number;
|
|
8
|
+
tournamentTeam: TournamentTeam;
|
|
9
|
+
teamUser: TeamUser;
|
|
10
|
+
disqualified: boolean;
|
|
11
|
+
firstName: string;
|
|
12
|
+
lastName: string;
|
|
13
|
+
middleName: string;
|
|
14
|
+
photo: File;
|
|
15
|
+
disqualification: TournamentDisqualification;
|
|
16
|
+
hasChanges: boolean;
|
|
17
|
+
get fullName(): string;
|
|
18
|
+
get shortName(): string;
|
|
19
|
+
get initials(): string;
|
|
20
|
+
static toFront(data: any): any;
|
|
21
|
+
static toBack(data: any): any;
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { Team } from './team';
|
|
3
|
+
import { TournamentGroup } from './tournament-group';
|
|
4
|
+
import { Game } from './game';
|
|
5
|
+
import { Tournament } from './tournament';
|
|
6
|
+
export declare class TournamentTeam extends BaseModel {
|
|
7
|
+
id: number;
|
|
8
|
+
teamId: number;
|
|
9
|
+
tournamentId: number;
|
|
10
|
+
tournament: Tournament;
|
|
11
|
+
team: Team;
|
|
12
|
+
group: TournamentGroup;
|
|
13
|
+
gamesCount: number;
|
|
14
|
+
wonGamesCount: number;
|
|
15
|
+
lastGamesCount: number;
|
|
16
|
+
lastGamesWon: number;
|
|
17
|
+
scoreSum: number;
|
|
18
|
+
missedSum: number;
|
|
19
|
+
scorePointsSum: number;
|
|
20
|
+
missedPointsSum: number;
|
|
21
|
+
points: number;
|
|
22
|
+
usersCount: number;
|
|
23
|
+
games: Game[];
|
|
24
|
+
notificationsCount: number;
|
|
25
|
+
get gamesWonPercent(): number;
|
|
26
|
+
static toFront(data: any): any;
|
|
27
|
+
static toBack(data: any): any;
|
|
28
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { City } from './city';
|
|
3
|
+
import { File } from './file';
|
|
4
|
+
import { League } from './league';
|
|
5
|
+
import { Sport } from './sport';
|
|
6
|
+
import { Team } from './team';
|
|
7
|
+
export declare enum TournamentTypes {
|
|
8
|
+
group = "group",
|
|
9
|
+
elimination = "elimination",
|
|
10
|
+
fiba = "fiba"
|
|
11
|
+
}
|
|
12
|
+
export declare enum TournamentStatuses {
|
|
13
|
+
open = 0,
|
|
14
|
+
in_progress = 1,
|
|
15
|
+
closed = 2
|
|
16
|
+
}
|
|
17
|
+
export declare enum TournamentGender {
|
|
18
|
+
male = 1,
|
|
19
|
+
female = 2,
|
|
20
|
+
all = 3
|
|
21
|
+
}
|
|
22
|
+
export declare enum BasketballStatisticTypes {
|
|
23
|
+
standard = 1,
|
|
24
|
+
light = 2,
|
|
25
|
+
extended = 3
|
|
26
|
+
}
|
|
27
|
+
export declare class TournamentSettings extends BaseModel {
|
|
28
|
+
id: number;
|
|
29
|
+
gender: TournamentGender;
|
|
30
|
+
ageFrom: number;
|
|
31
|
+
ageTo: number;
|
|
32
|
+
maxTeamPlayers: number;
|
|
33
|
+
maxGamePlayers: number;
|
|
34
|
+
type: TournamentTypes;
|
|
35
|
+
toursCount: number;
|
|
36
|
+
periodsCount: number;
|
|
37
|
+
periodTime: number;
|
|
38
|
+
overtimeType: string;
|
|
39
|
+
overtimeTime: number;
|
|
40
|
+
overtimeScore: number;
|
|
41
|
+
gameType: string;
|
|
42
|
+
timeoutCount: number;
|
|
43
|
+
timeoutTime: number;
|
|
44
|
+
substituteCount: number;
|
|
45
|
+
gameUpToScore: number;
|
|
46
|
+
volleyballScoreInSet: number;
|
|
47
|
+
volleyballScoreInLastSet: number;
|
|
48
|
+
manageTeamApplication: boolean;
|
|
49
|
+
recruitmentIsOpen: boolean;
|
|
50
|
+
transferIsOpen: boolean;
|
|
51
|
+
basketballStatisticType: BasketballStatisticTypes;
|
|
52
|
+
static toFront(data: any): any;
|
|
53
|
+
static toBack(data: any): any;
|
|
54
|
+
}
|
|
55
|
+
export declare class TournamentTeamWinner extends BaseModel {
|
|
56
|
+
id: number;
|
|
57
|
+
teamId: number;
|
|
58
|
+
tournamentId: number;
|
|
59
|
+
team: Team;
|
|
60
|
+
points: number;
|
|
61
|
+
static toFront(data: any): any;
|
|
62
|
+
static toBack(data: any): any;
|
|
63
|
+
}
|
|
64
|
+
export declare class Tournament extends BaseModel {
|
|
65
|
+
id: number;
|
|
66
|
+
name: string;
|
|
67
|
+
alias: string;
|
|
68
|
+
logo: File;
|
|
69
|
+
cover: File;
|
|
70
|
+
previewImage: File;
|
|
71
|
+
city: City;
|
|
72
|
+
sport: Sport;
|
|
73
|
+
location: string;
|
|
74
|
+
description: string;
|
|
75
|
+
date: Date;
|
|
76
|
+
price: number;
|
|
77
|
+
regulationFiles: File[];
|
|
78
|
+
settings: TournamentSettings;
|
|
79
|
+
league: League;
|
|
80
|
+
teamsCount: number;
|
|
81
|
+
closestGameDatetime: string;
|
|
82
|
+
status: TournamentStatuses;
|
|
83
|
+
teamWinner: TournamentTeamWinner;
|
|
84
|
+
getEmptyLogoClass(): string;
|
|
85
|
+
static toFront(data: any): any;
|
|
86
|
+
static toBack(data: any): any;
|
|
87
|
+
}
|
package/models/user.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { UserProfile } from './user-profile';
|
|
3
|
+
import { File } from './file';
|
|
4
|
+
import { City } from './city';
|
|
5
|
+
import { BasketballProfile } from './basketball-profile';
|
|
6
|
+
import { VolleyballProfile } from './volleyball-profile';
|
|
7
|
+
export declare enum UserGender {
|
|
8
|
+
male = 1,
|
|
9
|
+
female = 2
|
|
10
|
+
}
|
|
11
|
+
export declare class User extends BaseModel {
|
|
12
|
+
id: number;
|
|
13
|
+
lastName: string;
|
|
14
|
+
firstName: string;
|
|
15
|
+
middleName: string;
|
|
16
|
+
email: string;
|
|
17
|
+
phone: string;
|
|
18
|
+
birthDate: Date;
|
|
19
|
+
profile: UserProfile;
|
|
20
|
+
basketballProfile: BasketballProfile;
|
|
21
|
+
volleyballProfile: VolleyballProfile;
|
|
22
|
+
photo: File;
|
|
23
|
+
wizards: string[];
|
|
24
|
+
city: City;
|
|
25
|
+
gender: UserGender;
|
|
26
|
+
isActive: boolean;
|
|
27
|
+
static toFront(data: any): any;
|
|
28
|
+
static toBack(user: User): any;
|
|
29
|
+
get fullName(): string;
|
|
30
|
+
get shortName(): string;
|
|
31
|
+
get initials(): string;
|
|
32
|
+
get age(): number;
|
|
33
|
+
}
|
package/models/util.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const MODEL_MAPPING_FIELDS_KEY = "_mapping_fields_";
|
|
2
|
+
export declare const MODEL_RELATION_KEY = "_relation_";
|
|
3
|
+
export declare const MODEL_TO_FRONT_KEY = "_to_front_";
|
|
4
|
+
export declare const MODEL_TO_BACK_KEY = "_to_back_";
|
|
5
|
+
interface ModelTypeInterface {
|
|
6
|
+
new (data?: any): any;
|
|
7
|
+
}
|
|
8
|
+
export interface ModelInterface {
|
|
9
|
+
toFront(dto: any): any;
|
|
10
|
+
toBack(dto: any): any;
|
|
11
|
+
}
|
|
12
|
+
export declare abstract class BaseModel {
|
|
13
|
+
constructor(data?: {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
});
|
|
16
|
+
static toFront(dto: any): any;
|
|
17
|
+
static toBack(dto: any): any;
|
|
18
|
+
}
|
|
19
|
+
export declare function enumField(enumClass: any): {
|
|
20
|
+
toFront: (value: any) => any;
|
|
21
|
+
toBack: (value: any) => any;
|
|
22
|
+
};
|
|
23
|
+
export declare function listField(modelClass: any): {
|
|
24
|
+
toFront: (value: any) => any;
|
|
25
|
+
toBack: (value: any) => any;
|
|
26
|
+
};
|
|
27
|
+
export declare class DateField extends BaseModel {
|
|
28
|
+
static toFront(date: any): any;
|
|
29
|
+
static toBack(date: Date): any;
|
|
30
|
+
}
|
|
31
|
+
export declare class DateTimeField extends BaseModel {
|
|
32
|
+
static toFront(date: any): any;
|
|
33
|
+
static toBack(date: Date): any;
|
|
34
|
+
}
|
|
35
|
+
export declare function ModelInstance(config: {
|
|
36
|
+
mappingFields?: {
|
|
37
|
+
[key: string]: string;
|
|
38
|
+
};
|
|
39
|
+
relation?: {
|
|
40
|
+
[key: string]: BaseModel;
|
|
41
|
+
};
|
|
42
|
+
}): (target: ModelTypeInterface) => void;
|
|
43
|
+
export declare const ToFrontHook: (target: ModelTypeInterface, key: string | symbol, descriptor: TypedPropertyDescriptor<Function>) => {
|
|
44
|
+
value: (...args: any[]) => any;
|
|
45
|
+
};
|
|
46
|
+
export declare const ToBackHook: (target: ModelTypeInterface, key: string | symbol, descriptor: TypedPropertyDescriptor<Function>) => {
|
|
47
|
+
value: (...args: any[]) => any;
|
|
48
|
+
};
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
export declare enum VolleyballGameTypes {
|
|
3
|
+
best_of_five = 1,
|
|
4
|
+
best_of_three = 2
|
|
5
|
+
}
|
|
6
|
+
export declare class VolleyballGameConfig extends BaseModel {
|
|
7
|
+
gameType: VolleyballGameTypes;
|
|
8
|
+
timeoutCount: number;
|
|
9
|
+
timeoutTime: number;
|
|
10
|
+
substituteCount: number;
|
|
11
|
+
scoreInSet: number;
|
|
12
|
+
scoreInLastSet: number;
|
|
13
|
+
get setsCount(): number;
|
|
14
|
+
getSetMaxScore(set: number): number;
|
|
15
|
+
static toFront(data: any): any;
|
|
16
|
+
static toBack(data: any): any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { GameLogBase } from './game-log-base';
|
|
3
|
+
import { GameUser } from './game-user';
|
|
4
|
+
export declare enum VolleyballGameLogType {
|
|
5
|
+
enter_game = 1,
|
|
6
|
+
exit_game = 2,
|
|
7
|
+
remove_game = 3,
|
|
8
|
+
serve_hit = 4,
|
|
9
|
+
serve_fault = 5,
|
|
10
|
+
serve_ace = 6,
|
|
11
|
+
stuff_block = 7,
|
|
12
|
+
block_fault = 8,
|
|
13
|
+
block_rebound = 9,
|
|
14
|
+
attack_spike = 10,
|
|
15
|
+
attack_fault = 11,
|
|
16
|
+
attack_shot = 12,
|
|
17
|
+
receive = 13,
|
|
18
|
+
receive_fault = 14,
|
|
19
|
+
excellent_receive = 15,
|
|
20
|
+
point = 16,
|
|
21
|
+
fault = 17,
|
|
22
|
+
serve_receive = 18,
|
|
23
|
+
serve_receive_fault = 19,
|
|
24
|
+
excellent_serve_receive = 20,
|
|
25
|
+
timeout = 21
|
|
26
|
+
}
|
|
27
|
+
export declare const SCORE_LOG_TYPES: VolleyballGameLogType[];
|
|
28
|
+
export declare const FAULT_LOG_TYPES: VolleyballGameLogType[];
|
|
29
|
+
export declare class VolleyballGameLog extends BaseModel implements GameLogBase {
|
|
30
|
+
id: number;
|
|
31
|
+
uniqueId: string;
|
|
32
|
+
active: boolean;
|
|
33
|
+
gameId: number;
|
|
34
|
+
gameUserId: number;
|
|
35
|
+
logType: VolleyballGameLogType;
|
|
36
|
+
set: number;
|
|
37
|
+
rally: number;
|
|
38
|
+
position: number;
|
|
39
|
+
teamId: number;
|
|
40
|
+
datetime: Date;
|
|
41
|
+
gameUser: GameUser;
|
|
42
|
+
compare(model: VolleyballGameLog): number;
|
|
43
|
+
isScoreType(): boolean;
|
|
44
|
+
isFaultType(): boolean;
|
|
45
|
+
isServe(): boolean;
|
|
46
|
+
isAttack(): boolean;
|
|
47
|
+
isReceive(): boolean;
|
|
48
|
+
isServeReceive(): boolean;
|
|
49
|
+
isBlock(): boolean;
|
|
50
|
+
isEnterExit(): boolean;
|
|
51
|
+
isComboType(): boolean;
|
|
52
|
+
static toFront(data: any): any;
|
|
53
|
+
static toBack(data: any): any;
|
|
54
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { GameStatisticBase } from './game-statistic-base';
|
|
3
|
+
export declare class VolleyballGameStatistic extends BaseModel implements GameStatisticBase {
|
|
4
|
+
gameUserId: number;
|
|
5
|
+
serveHits: number;
|
|
6
|
+
serveFaults: number;
|
|
7
|
+
serveAces: number;
|
|
8
|
+
stuffBlocks: number;
|
|
9
|
+
blockFaults: number;
|
|
10
|
+
blockRebounds: number;
|
|
11
|
+
attackSpikes: number;
|
|
12
|
+
attackFaults: number;
|
|
13
|
+
attackShots: number;
|
|
14
|
+
receives: number;
|
|
15
|
+
receiveFaults: number;
|
|
16
|
+
excellentReceives: number;
|
|
17
|
+
serveReceives: number;
|
|
18
|
+
serveReceiveFaults: number;
|
|
19
|
+
excellentServeReceives: number;
|
|
20
|
+
points: number;
|
|
21
|
+
faults: number;
|
|
22
|
+
get id(): number;
|
|
23
|
+
get attacks(): number;
|
|
24
|
+
get blocks(): number;
|
|
25
|
+
get totalReceives(): number;
|
|
26
|
+
static toFront(data: any): any;
|
|
27
|
+
static toBack(data: any): any;
|
|
28
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseModel } from './util';
|
|
2
|
+
import { VolleyballStatistic } from './volleyball-statistic';
|
|
3
|
+
export declare class VolleyballGameTeamStatistic extends BaseModel {
|
|
4
|
+
team: VolleyballStatistic;
|
|
5
|
+
competitorTeam: VolleyballStatistic;
|
|
6
|
+
static toFront(data: any): any;
|
|
7
|
+
static toBack(data: any): any;
|
|
8
|
+
}
|