@spash/frontlib 0.0.11 → 0.0.13-beta.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.
Files changed (3) hide show
  1. package/dist/main.d.ts +61 -1
  2. package/dist/main.js +1069 -1051
  3. package/package.json +2 -2
package/dist/main.d.ts CHANGED
@@ -17,6 +17,15 @@ declare interface AppOptions {
17
17
  };
18
18
  }
19
19
 
20
+ export declare interface Article {
21
+ '@id': string;
22
+ id: number;
23
+ title: string;
24
+ content: string;
25
+ imageUrl: string;
26
+ createdAt: Date;
27
+ }
28
+
20
29
  export declare interface CameraConfiguration {
21
30
  id: number;
22
31
  layer: CameraConfigurationLayer[];
@@ -47,9 +56,58 @@ export declare interface Competition {
47
56
  createdAt: string;
48
57
  }
49
58
 
59
+ export declare interface CompetitionDetail {
60
+ name: string;
61
+ firstLogoImageUrl: string;
62
+ secondLogoImageUrl: string;
63
+ ngtvSessions: CompetitionNgtvSessionDetail[];
64
+ groups: {
65
+ [key: string]: Team[];
66
+ };
67
+ }
68
+
69
+ export declare interface CompetitionNgtvSessionDetail {
70
+ homeScore: number;
71
+ homeTeam: Team;
72
+ awayScore: number;
73
+ awayTeam: Team;
74
+ competitionStage: string;
75
+ field: string;
76
+ plannedStartedAt: Date;
77
+ actualStartedAt: Date;
78
+ status: string;
79
+ }
80
+
50
81
  declare const _default: (app: App, options?: AppOptions) => void;
51
82
  export default _default;
52
83
 
84
+ export declare interface Dooh {
85
+ id: number;
86
+ name: string;
87
+ type: 'lite' | 'full';
88
+ theme: string;
89
+ orientation: 'portrait' | 'landscape';
90
+ }
91
+
92
+ export declare interface DoohContent {
93
+ '@id': string;
94
+ id: number;
95
+ contentType: DoohContentContentType;
96
+ competitionId: number;
97
+ duration: number;
98
+ displayDoohContent: boolean;
99
+ isVideo: boolean;
100
+ isSponsoring: boolean;
101
+ filePath: string;
102
+ article: Article;
103
+ competition: Competition;
104
+ competitionDetails: CompetitionDetail;
105
+ highlight: SessionEvent;
106
+ multiplexEvents: SessionEvent[];
107
+ }
108
+
109
+ declare type DoohContentContentType = 'article' | 'highlights' | 'image' | 'video' | 'competition' | 'multiplex' | 'ads';
110
+
53
111
  export declare interface Field {
54
112
  id: number;
55
113
  name: string;
@@ -59,6 +117,8 @@ export declare interface Field {
59
117
  subscribedOptions: string[];
60
118
  camerasTotal: number;
61
119
  camerasConfiguration: CameraConfiguration[];
120
+ advertHmiPostMatchImage: string;
121
+ advertHmiLoadingImage: string;
62
122
  }
63
123
 
64
124
  export declare interface Player {
@@ -268,7 +328,7 @@ export declare const useHelper: ({ t, router }?: {
268
328
  redirectToUrl: (redirectUrl: string) => void;
269
329
  timeoutRedirectToPage: (routeName: string, timeoutMinutes?: number) => void;
270
330
  buildQueryParams: (queryParams: any) => string;
271
- groupBy: (items: any[], key: string) => any[];
331
+ groupBy: <T, K extends keyof T>(items: T[], key: K) => Record<string, T[]>;
272
332
  timecodeToTimeObject: (timecode: any) => {
273
333
  hours: number;
274
334
  minutes: number;