oraculo-ui 0.1.153 → 0.1.155
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/atoms/OraculoEvent/OraculoEventHeader.d.ts +2 -1
- package/dist/atoms/OraculoEvent/OraculoEventScore.d.ts +1 -1
- package/dist/atoms/OraculoEvent/OraculoEventStatus.d.ts +2 -1
- package/dist/atoms/OraculoEvent/OraculoEventTeamInfo.d.ts +5 -1
- package/dist/atoms/OraculoEvent/OraculoEventTitle.d.ts +2 -1
- package/dist/atoms/OraculoJersey/BasketballJersey.d.ts +4 -0
- package/dist/atoms/OraculoJersey/OraculoJersey.d.ts +3 -0
- package/dist/atoms/OraculoJersey/SoccerJersey.d.ts +4 -0
- package/dist/atoms/OraculoJersey/jerseysConfig.d.ts +3 -0
- package/dist/atoms/OraculoJersey/jerseysInterface.d.ts +27 -0
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +2412 -1946
- package/dist/index.es.js.map +1 -1
- package/dist/interfaces/oraculo/InterfaceCasinoEnVivo.d.ts +3 -0
- package/dist/interfaces/oraculo/InterfaceKambi.d.ts +9 -4
- package/dist/molecules/OraculoEventCard/OraculoTennisScoreboard.d.ts +12 -0
- package/dist/molecules/OraculoLiveCasinoCard/OraculoLiveCasinoCard.d.ts +4 -0
- package/dist/utils/popularityEvents.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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:
|
|
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;
|
|
@@ -109,9 +114,9 @@ export interface EnVivoEventProps {
|
|
|
109
114
|
}
|
|
110
115
|
export interface SemanaEventProps {
|
|
111
116
|
event: EventBase & {
|
|
112
|
-
outcome?: {
|
|
113
|
-
outcomes?: Pick<Outcome, "id" | "label" | "odds">[];
|
|
114
|
-
}
|
|
117
|
+
outcome?: Array<Pick<BetOffer, "id" | "criterion" | "betOfferType"> & {
|
|
118
|
+
outcomes?: Pick<Outcome, "id" | "label" | "odds" | "displayOrder" | "type" | "betOfferId">[];
|
|
119
|
+
}>;
|
|
115
120
|
};
|
|
116
121
|
jersey?: any;
|
|
117
122
|
}
|
|
@@ -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 {};
|
|
@@ -7,6 +7,10 @@ export interface OraculoLiveCasinoCardProps {
|
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
/** si true, renderiza un skeleton en vez de la card */
|
|
9
9
|
loading?: boolean;
|
|
10
|
+
isLogin?: boolean;
|
|
11
|
+
isFavorite?: boolean;
|
|
12
|
+
existFavorite?: boolean;
|
|
13
|
+
onToggleFavorite?: (next: boolean) => void;
|
|
10
14
|
}
|
|
11
15
|
declare const OraculoLiveCasinoCard: React.FC<OraculoLiveCasinoCardProps>;
|
|
12
16
|
export default OraculoLiveCasinoCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const trackPopularityEvent: (itemId: string) => void;
|