oraculo-ui 0.2.49 → 0.2.50

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.
@@ -4,6 +4,8 @@ export interface EventPath {
4
4
  englishName: string;
5
5
  termKey: string;
6
6
  }
7
+ export type SportType = 'FOOTBALL' | 'TENNIS' | 'BASKETBALL';
8
+ export type GenderType = 'men' | 'women';
7
9
  export interface EventBase {
8
10
  id: number;
9
11
  name: string;
@@ -17,7 +19,7 @@ export interface EventBase {
17
19
  path: EventPath[];
18
20
  nonLiveBoCount?: number;
19
21
  liveBoCount?: number;
20
- sport: string;
22
+ sport: SportType;
21
23
  tags: string[];
22
24
  state: string;
23
25
  groupSortOrder?: number;
@@ -38,6 +40,7 @@ export interface Outcome {
38
40
  status: string;
39
41
  cashOutStatus: string;
40
42
  line?: number;
43
+ displayOrder?: number;
41
44
  }
42
45
  export interface Criterion {
43
46
  id: number;
@@ -67,6 +70,8 @@ export interface MatchClock {
67
70
  second: number;
68
71
  running: boolean;
69
72
  version: number;
73
+ period: string;
74
+ periodId: string;
70
75
  }
71
76
  export interface LiveScore {
72
77
  home: string;
@@ -110,7 +115,7 @@ export interface EnVivoEventProps {
110
115
  export interface SemanaEventProps {
111
116
  event: EventBase & {
112
117
  outcome?: {
113
- outcomes?: Pick<Outcome, "id" | "label" | "odds">[];
118
+ outcomes?: Pick<Outcome, "id" | "label" | "odds" | "displayOrder" | "type">[];
114
119
  }[];
115
120
  };
116
121
  jersey?: any;
@@ -0,0 +1,12 @@
1
+ import { default as React } from 'react';
2
+ interface TennisScoreboardProps {
3
+ homeName?: string;
4
+ awayName?: string;
5
+ homeSets: number[];
6
+ awaySets: number[];
7
+ homePoints: string | number;
8
+ awayPoints: string | number;
9
+ homeServe?: boolean;
10
+ }
11
+ export default function OraculoTennisScoreboard({ homeName, awayName, homeSets, awaySets, homePoints, awayPoints, homeServe, }: TennisScoreboardProps): React.JSX.Element;
12
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oraculo-ui",
3
- "version": "0.2.49",
3
+ "version": "0.2.50",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",