@mtgame/core 0.0.2 → 0.0.4

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 (64) hide show
  1. package/api/feedback-api.d.ts +9 -0
  2. package/api/file-api.d.ts +13 -0
  3. package/api/league-news-api.d.ts +13 -0
  4. package/api/public-api.d.ts +6 -0
  5. package/api/team-api.d.ts +66 -0
  6. package/api/team-event-api.d.ts +16 -0
  7. package/api/user-api.d.ts +51 -0
  8. package/bundles/mtgame-core.umd.js +1790 -538
  9. package/bundles/mtgame-core.umd.js.map +1 -1
  10. package/bundles/mtgame-core.umd.min.js +2 -2
  11. package/bundles/mtgame-core.umd.min.js.map +1 -1
  12. package/esm2015/api/feedback-api.js +32 -0
  13. package/esm2015/api/file-api.js +46 -0
  14. package/esm2015/api/league-news-api.js +59 -0
  15. package/esm2015/api/public-api.js +7 -1
  16. package/esm2015/api/team-api.js +394 -0
  17. package/esm2015/api/team-event-api.js +81 -0
  18. package/esm2015/api/user-api.js +284 -0
  19. package/esm2015/models/basketball-game-config.js +5 -4
  20. package/esm2015/models/feedback.js +32 -0
  21. package/esm2015/models/league-news.js +39 -0
  22. package/esm2015/models/public-api.js +7 -1
  23. package/esm2015/models/team-access.js +45 -0
  24. package/esm2015/models/team-permission.js +38 -0
  25. package/esm2015/models/tournament-event.js +11 -4
  26. package/esm2015/models/tournament.js +2 -1
  27. package/esm2015/models/user-access.js +25 -0
  28. package/esm2015/models/user-permission.js +38 -0
  29. package/esm2015/services/centrifugo.service.js +1 -2
  30. package/esm5/api/feedback-api.js +35 -0
  31. package/esm5/api/file-api.js +64 -0
  32. package/esm5/api/league-news-api.js +68 -0
  33. package/esm5/api/public-api.js +7 -1
  34. package/esm5/api/team-api.js +486 -0
  35. package/esm5/api/team-event-api.js +96 -0
  36. package/esm5/api/user-api.js +350 -0
  37. package/esm5/models/basketball-game-config.js +5 -4
  38. package/esm5/models/feedback.js +35 -0
  39. package/esm5/models/league-news.js +44 -0
  40. package/esm5/models/public-api.js +7 -1
  41. package/esm5/models/team-access.js +50 -0
  42. package/esm5/models/team-permission.js +43 -0
  43. package/esm5/models/tournament-event.js +11 -4
  44. package/esm5/models/tournament.js +2 -1
  45. package/esm5/models/user-access.js +30 -0
  46. package/esm5/models/user-permission.js +43 -0
  47. package/esm5/services/centrifugo.service.js +1 -2
  48. package/fesm2015/mtgame-core.js +1200 -191
  49. package/fesm2015/mtgame-core.js.map +1 -1
  50. package/fesm5/mtgame-core.js +1780 -540
  51. package/fesm5/mtgame-core.js.map +1 -1
  52. package/localization/overtime-types.d.ts +2 -2
  53. package/models/basketball-game-config.d.ts +4 -3
  54. package/models/feedback.d.ts +9 -0
  55. package/models/league-news.d.ts +16 -0
  56. package/models/public-api.d.ts +6 -0
  57. package/models/team-access.d.ts +27 -0
  58. package/models/team-permission.d.ts +15 -0
  59. package/models/tournament-event.d.ts +5 -2
  60. package/models/tournament.d.ts +1 -0
  61. package/models/user-access.d.ts +10 -0
  62. package/models/user-permission.d.ts +16 -0
  63. package/mtgame-core.metadata.json +1 -1
  64. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { OvertimeTypes } from '../models/basketball-game-config';
2
2
  export declare const OvertimeTypeLocalization: {
3
- 1: string;
4
- 0: string;
5
3
  2: string;
4
+ 1: string;
5
+ 3: string;
6
6
  };
@@ -1,9 +1,9 @@
1
1
  import { BaseModel } from './util';
2
2
  import { BasketballStatisticTypes } from './tournament';
3
3
  export declare enum OvertimeTypes {
4
- to_score_total = 0,
5
- to_score_diff = 1,
6
- time = 2
4
+ to_score_total = 1,
5
+ to_score_diff = 2,
6
+ time = 3
7
7
  }
8
8
  export declare class BasketballGameConfig extends BaseModel {
9
9
  periodsCount: number;
@@ -17,6 +17,7 @@ export declare class BasketballGameConfig extends BaseModel {
17
17
  overtimeTimeoutCount: number;
18
18
  timeoutTime: number;
19
19
  statisticType: BasketballStatisticTypes;
20
+ shotClockEnabled: boolean;
20
21
  static toFront(data: any): any;
21
22
  static toBack(data: any): any;
22
23
  }
@@ -0,0 +1,9 @@
1
+ import { File } from './file';
2
+ export declare class Feedback {
3
+ id: number;
4
+ theme: string;
5
+ message: string;
6
+ files: File[];
7
+ static toFront(data: any): any;
8
+ static toBack(value: any): any;
9
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseModel } from './util';
2
+ import { File } from './file';
3
+ import { Tournament } from './tournament';
4
+ export declare class LeagueNews extends BaseModel {
5
+ id: number;
6
+ title: string;
7
+ datetime: Date;
8
+ previewText: string;
9
+ detailText: string;
10
+ picture: File;
11
+ cover: File;
12
+ isMain: boolean;
13
+ tournaments: Tournament[];
14
+ static toFront(data: any): any;
15
+ static toBack(data: any): any;
16
+ }
@@ -5,6 +5,7 @@ export { BasketballGameTeamStatistic } from './basketball-game-team-statistic';
5
5
  export { GameBasketballPosition, WorkHand, BasketballProfile } from './basketball-profile';
6
6
  export { BasketballStatistic } from './basketball-statistic';
7
7
  export { City } from './city';
8
+ export * from './feedback';
8
9
  export { FileEngine, File } from './file';
9
10
  export { GameStatuses, GameResultTypes, Game } from './game';
10
11
  export * from './game-invite';
@@ -13,6 +14,7 @@ export { GameTimelineStageItem, GameTimelineStages } from './game-timeline-stage
13
14
  export { GameUser } from './game-user';
14
15
  export { League } from './league';
15
16
  export { LeagueCourt } from './league-court';
17
+ export * from './league-news';
16
18
  export { MediaItem } from './media-item';
17
19
  export * from './notification';
18
20
  export * from './notification-settings';
@@ -21,11 +23,13 @@ export { PlayoffSettings, Playoff } from './playoff';
21
23
  export * from './poll';
22
24
  export { SportTypes, Sport } from './sport';
23
25
  export { Team } from './team';
26
+ export * from './team-access';
24
27
  export * from './team-event';
25
28
  export * from './team-event-invite';
26
29
  export * from './team-event-type';
27
30
  export * from './team-invite';
28
31
  export * from './team-invite-external';
32
+ export * from './team-permission';
29
33
  export * from './team-user';
30
34
  export * from './tournament';
31
35
  export { TournamentDisqualification } from './tournament-disqualification';
@@ -40,6 +44,8 @@ export { TournamentTeam } from './tournament-team';
40
44
  export { TournamentTeamUser } from './tournament-team-user';
41
45
  export { TournamentTeamUserInvite } from './tournament-team-user-invite';
42
46
  export { UserGender, User } from './user';
47
+ export * from './user-access';
48
+ export * from './user-permission';
43
49
  export { UserProfile } from './user-profile';
44
50
  export { ModelInterface, BaseModel, enumField, listField, DateField, DateTimeField, ModelInstance, ToFrontHook, ToBackHook } from './util';
45
51
  export { VolleyballGameTypes, VolleyballGameConfig } from './volleyball-game-config';
@@ -0,0 +1,27 @@
1
+ import { BaseModel } from './util';
2
+ import { TeamUserRole } from './team-user';
3
+ export declare class TeamAccess extends BaseModel {
4
+ canEdit: boolean;
5
+ canViewUsers: boolean;
6
+ canManagePermission: boolean;
7
+ canChangeOwner: boolean;
8
+ canDelete: boolean;
9
+ canManageInvites: boolean;
10
+ canViewInvites: boolean;
11
+ canManagePolls: boolean;
12
+ canViewPolls: boolean;
13
+ canAnswerPoll: boolean;
14
+ canManageGames: boolean;
15
+ canViewGames: boolean;
16
+ canViewStatistic: boolean;
17
+ canPromoteUsers: boolean;
18
+ canEditUsers: boolean;
19
+ canDeleteUsers: boolean;
20
+ canViewEvents: boolean;
21
+ canManageEvents: boolean;
22
+ canViewTournaments: boolean;
23
+ canManageTournaments: boolean;
24
+ role: TeamUserRole;
25
+ static toFront(data: any): any;
26
+ static toBack(data: any): any;
27
+ }
@@ -0,0 +1,15 @@
1
+ import { BaseModel } from './util';
2
+ export declare enum TeamPermissionTypes {
3
+ for_all = 1,
4
+ for_users = 2,
5
+ for_team = 3
6
+ }
7
+ export declare class TeamPermission extends BaseModel {
8
+ players: TeamPermissionTypes;
9
+ games: TeamPermissionTypes;
10
+ statistic: TeamPermissionTypes;
11
+ polls: TeamPermissionTypes;
12
+ events: TeamPermissionTypes;
13
+ static toFront(data: any): any;
14
+ static toBack(data: any): any;
15
+ }
@@ -1,14 +1,17 @@
1
1
  import { BaseModel } from './util';
2
2
  import { Game } from './game';
3
3
  import { Tournament } from './tournament';
4
+ import { LeagueNews } from './league-news';
4
5
  export declare enum TournamentEventTypes {
5
6
  game_closed = 1,
6
- media_added = 2
7
+ media_added = 2,
8
+ news = 3
7
9
  }
8
10
  export declare class TournamentEvent extends BaseModel {
9
11
  id: number;
10
12
  game: Game;
11
- tournament: Tournament;
13
+ news: LeagueNews;
14
+ tournaments: Tournament[];
12
15
  event: TournamentEventTypes;
13
16
  datetime: Date;
14
17
  static toFront(data: any): any;
@@ -49,6 +49,7 @@ export declare class TournamentSettings extends BaseModel {
49
49
  recruitmentIsOpen: boolean;
50
50
  transferIsOpen: boolean;
51
51
  basketballStatisticType: BasketballStatisticTypes;
52
+ shotClockEnabled: boolean;
52
53
  static toFront(data: any): any;
53
54
  static toBack(data: any): any;
54
55
  }
@@ -0,0 +1,10 @@
1
+ import { BaseModel } from './util';
2
+ export declare class UserAccess extends BaseModel {
3
+ edit: boolean;
4
+ personalData: boolean;
5
+ teams: boolean;
6
+ statistic: boolean;
7
+ games: boolean;
8
+ static toFront(data: any): any;
9
+ static toBack(data: any): any;
10
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseModel } from './util';
2
+ export declare enum UserPermissionTypes {
3
+ denied = 1,
4
+ for_all = 2,
5
+ for_users = 3,
6
+ for_team = 4
7
+ }
8
+ export declare class UserPermission extends BaseModel {
9
+ id: number;
10
+ personalData: UserPermissionTypes;
11
+ games: UserPermissionTypes;
12
+ teams: UserPermissionTypes;
13
+ statistic: UserPermissionTypes;
14
+ static toFront(data: any): any;
15
+ static toBack(data: any): any;
16
+ }