@spash/frontlib 0.0.14-beta.4 → 0.0.14-beta.5

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/dist/main.d.ts CHANGED
@@ -6,6 +6,7 @@ import { DateTimeUnit } from 'luxon';
6
6
  import { MonthNumbers } from 'luxon';
7
7
  import { PluginCreator } from 'tailwindcss/types/config';
8
8
  import { Ref } from 'vue';
9
+ import { default as useCookies } from './composables/useCookies.ts';
9
10
  import { useI18n } from 'vue-i18n';
10
11
 
11
12
  declare interface AppOptions {
@@ -101,6 +102,14 @@ export declare interface DoohContent {
101
102
  isVideo: boolean;
102
103
  isSponsoring: boolean;
103
104
  filePath: string;
105
+ bookingsSessions: Record<number, (Session & {
106
+ isMainSession: boolean;
107
+ })[]>;
108
+ bookingsData: {
109
+ x: number;
110
+ y: number;
111
+ fieldId: number;
112
+ }[];
104
113
  article: Article;
105
114
  competition: Competition;
106
115
  competitionDetails: CompetitionDetail;
@@ -108,13 +117,17 @@ export declare interface DoohContent {
108
117
  multiplexEvents: SessionEvent[];
109
118
  }
110
119
 
111
- declare type DoohContentContentType = 'article' | 'highlights' | 'image' | 'video' | 'competition' | 'multiplex' | 'ads';
120
+ declare type DoohContentContentType = 'article' | 'highlights' | 'image' | 'video' | 'competition' | 'multiplex' | 'ads' | 'bookings';
112
121
 
113
122
  export declare interface Field {
114
123
  id: number;
115
124
  name: string;
116
125
  theme: string;
117
126
  planningAvailable: boolean;
127
+ hi5Available?: boolean;
128
+ competitionAvailable?: boolean;
129
+ scoreCounterAvailable?: boolean;
130
+ easyConnectAvailable?: boolean;
118
131
  sport: Sport;
119
132
  subscribedOptions: string[];
120
133
  camerasTotal: number;
@@ -129,6 +142,13 @@ export declare interface Player {
129
142
  email: string;
130
143
  }
131
144
 
145
+ declare interface PlayerTeam {
146
+ id: number;
147
+ jerseyNumber?: number;
148
+ player: Player;
149
+ team?: Team;
150
+ }
151
+
132
152
  declare const Plugin_2: {
133
153
  handler: PluginCreator;
134
154
  config?: Partial<Config> | undefined;
@@ -144,6 +164,7 @@ export declare interface Session {
144
164
  actualStartedAt: string;
145
165
  actualEndedAt: string;
146
166
  actualDuration: number;
167
+ actualCompetitionBreakDuration?: number | null;
147
168
  plannedDuration: number;
148
169
  status: string;
149
170
  reference: string;
@@ -160,6 +181,7 @@ export declare interface Session {
160
181
  field: Field;
161
182
  ngtvSessionEvents: SessionEvent[];
162
183
  ngtvSessionPlayers: SessionPlayer[];
184
+ exportVideosEnabled?: boolean;
163
185
  }
164
186
 
165
187
  export declare interface SessionEvent {
@@ -183,6 +205,7 @@ export declare interface SessionEventInput {
183
205
  secondNgtvSessionPlayer?: string | null;
184
206
  matchTimecode: number;
185
207
  videoTimecode: number;
208
+ ngtvSessionEventType?: string | null;
186
209
  }
187
210
 
188
211
  export declare interface SessionEventTypes {
@@ -208,10 +231,28 @@ export declare interface SessionPlayer {
208
231
  id: number;
209
232
  numberOfGoalScored: number;
210
233
  numberOfAssists: number;
234
+ numberOfFouls?: number;
211
235
  player: Player;
212
236
  ngtvSessionTeam: SessionTeam;
213
237
  }
214
238
 
239
+ export declare enum SessionStatus {
240
+ NOT_PLAYED = "not_played",
241
+ PLAYING = "playing",
242
+ PLAYED = "played",
243
+ DELETED = "deleted",
244
+ PROCESSING = "processing",
245
+ PROCESSING_ERROR = "processing_error",
246
+ PROCESSED = "processed",
247
+ EXPORTING = "exporting",
248
+ EXPORTING_ERROR = "exporting_error",
249
+ EXPORTED = "exported",
250
+ EXPORTED_DELETED = "exported_deleted",
251
+ ERROR = "error",
252
+ FAKE = "fake",
253
+ FAKE_DELETED = "fake_deleted"
254
+ }
255
+
215
256
  export declare interface SessionTeam {
216
257
  id: number;
217
258
  home: boolean;
@@ -285,10 +326,13 @@ export declare interface Team {
285
326
  primaryColor: string;
286
327
  secondaryColor: string;
287
328
  maxConsecutiveGoals: number;
329
+ logoImageUrl?: string;
330
+ playerTeams?: PlayerTeam[];
331
+ ngtvId?: number;
288
332
  }
289
333
 
290
334
  export declare const useAdServer: () => {
291
- hasAdServerContent: Ref<boolean>;
335
+ hasAdServerContent: Ref<boolean, boolean>;
292
336
  initAdServer: () => void;
293
337
  callAdServer: (attributes: SponsoringAttributes | null, siteId: number, pageId: number, formats: string) => void;
294
338
  addAdvertising: (advertId: number, divClasses?: string, divStyles?: string, target?: string, el?: any) => void;
@@ -316,9 +360,11 @@ export declare const useCompetition: ({ t }?: {
316
360
  */
317
361
  export declare const useComponent: (app: App, components: any, moduleComponents: any) => void;
318
362
 
363
+ export { useCookies }
364
+
319
365
  export declare const useDisplayImage: () => {
320
- logoInline: Ref<any>;
321
- logoSmall: Ref<any>;
366
+ logoInline: Ref<any, any>;
367
+ logoSmall: Ref<any, any>;
322
368
  homeBackgroundLeft: string;
323
369
  homeBackgroundRight: string;
324
370
  matchBackground: string;
@@ -329,7 +375,7 @@ export declare const useHelper: ({ t, router }?: {
329
375
  t?: any;
330
376
  router?: any;
331
377
  }) => {
332
- timeout: Ref<any>;
378
+ timeout: Ref<any, any>;
333
379
  getAndParseObjectFromLocalStorage: (key: string) => any;
334
380
  timecodeToString: (timecode: any, mode?: string, displayEmpty?: boolean) => string;
335
381
  dynamicSort: (property: any, sortType?: string) => (a: any, b: any) => number;
@@ -343,12 +389,13 @@ export declare const useHelper: ({ t, router }?: {
343
389
  seconds: number;
344
390
  };
345
391
  arrayUniqueValue: (array: any[], key: string) => any[];
392
+ sleep: (ms: number) => Promise<unknown>;
346
393
  };
347
394
 
348
395
  export { useI18n }
349
396
 
350
397
  export declare const useIdle: (time: number, callback?: () => void) => {
351
- isIdle: Ref<boolean>;
398
+ isIdle: Ref<boolean, boolean>;
352
399
  };
353
400
 
354
401
  export declare const useLuxon: () => {
@@ -372,13 +419,13 @@ export declare const useLuxon: () => {
372
419
  };
373
420
 
374
421
  export declare const useSse: (apiUrl: string) => {
375
- eventSource: Ref<EventSource | undefined>;
422
+ eventSource: Ref<EventSource | undefined, EventSource | undefined>;
376
423
  addSubscriber: (topic: string, callback?: SseCallback) => EventSource;
377
424
  };
378
425
 
379
426
  export declare const useTheme: () => {
380
- defaultTheme: Ref<string>;
381
- currentTheme: Ref<string>;
427
+ defaultTheme: Ref<string, string>;
428
+ currentTheme: Ref<string, string>;
382
429
  setTheme: (newTheme: string) => void;
383
430
  };
384
431