be-components 0.2.6 → 0.2.8
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/lib/commonjs/ApiOverrides/index.js +9 -3
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/BettorSearch/api/index.js +42 -0
- package/lib/commonjs/BettorSearch/api/index.js.map +1 -0
- package/lib/commonjs/BettorSearch/index.js +129 -0
- package/lib/commonjs/BettorSearch/index.js.map +1 -0
- package/lib/commonjs/Components/Icons.js +69 -3
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/Spring.js +5 -3
- package/lib/commonjs/Components/Spring.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +56 -0
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +219 -0
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -0
- package/lib/commonjs/ProfileManager/api/index.js +13 -0
- package/lib/commonjs/ProfileManager/api/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +8 -0
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerCard.js +119 -0
- package/lib/commonjs/SocialComponents/PlayerCard.js.map +1 -0
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js +89 -0
- package/lib/commonjs/SocialComponents/PlayerFollowButton.js.map +1 -0
- package/lib/commonjs/SocialComponents/PlayerList.js +105 -0
- package/lib/commonjs/SocialComponents/PlayerList.js.map +1 -0
- package/lib/commonjs/SocialComponents/api/index.js +29 -0
- package/lib/commonjs/SocialComponents/api/index.js.map +1 -0
- package/lib/commonjs/SocialComponents/index.js +21 -0
- package/lib/commonjs/SocialComponents/index.js.map +1 -0
- package/lib/commonjs/constants/styles.js +4 -5
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/index.js +10 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.d.js +2 -0
- package/lib/commonjs/types.d.js.map +1 -0
- package/lib/module/ApiOverrides/index.js +9 -3
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/BettorSearch/api/index.js +36 -0
- package/lib/module/BettorSearch/api/index.js.map +1 -0
- package/lib/module/BettorSearch/index.js +120 -0
- package/lib/module/BettorSearch/index.js.map +1 -0
- package/lib/module/Components/Icons.js +69 -3
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/Spring.js +6 -4
- package/lib/module/Components/Spring.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +56 -0
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +210 -0
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -0
- package/lib/module/ProfileManager/api/index.js +13 -0
- package/lib/module/ProfileManager/api/index.js.map +1 -1
- package/lib/module/ProfileManager/index.js +8 -0
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/SocialComponents/PlayerCard.js +112 -0
- package/lib/module/SocialComponents/PlayerCard.js.map +1 -0
- package/lib/module/SocialComponents/PlayerFollowButton.js +82 -0
- package/lib/module/SocialComponents/PlayerFollowButton.js.map +1 -0
- package/lib/module/SocialComponents/PlayerList.js +96 -0
- package/lib/module/SocialComponents/PlayerList.js.map +1 -0
- package/lib/module/SocialComponents/api/index.js +23 -0
- package/lib/module/SocialComponents/api/index.js.map +1 -0
- package/lib/module/SocialComponents/index.js +4 -0
- package/lib/module/SocialComponents/index.js.map +1 -0
- package/lib/module/constants/styles.js +4 -5
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.d.js +2 -0
- package/lib/module/types.d.js.map +1 -0
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/BettorSearch/api/index.d.ts +9 -0
- package/lib/typescript/src/BettorSearch/api/index.d.ts.map +1 -0
- package/lib/typescript/src/BettorSearch/index.d.ts +20 -0
- package/lib/typescript/src/BettorSearch/index.d.ts.map +1 -0
- package/lib/typescript/src/Components/Icons.d.ts +3 -1
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/Spring.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +7 -3
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +14 -0
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -0
- package/lib/typescript/src/ProfileManager/api/index.d.ts +7 -1
- package/lib/typescript/src/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PlayerCard.d.ts +18 -0
- package/lib/typescript/src/SocialComponents/PlayerCard.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/PlayerFollowButton.d.ts +13 -0
- package/lib/typescript/src/SocialComponents/PlayerFollowButton.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/PlayerList.d.ts +14 -0
- package/lib/typescript/src/SocialComponents/PlayerList.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/api/index.d.ts +8 -0
- package/lib/typescript/src/SocialComponents/api/index.d.ts.map +1 -0
- package/lib/typescript/src/SocialComponents/index.d.ts +4 -0
- package/lib/typescript/src/SocialComponents/index.d.ts.map +1 -0
- package/lib/typescript/src/constants/styles.d.ts +1 -2
- package/lib/typescript/src/constants/styles.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ApiOverrides/index.ts +10 -3
- package/src/BettorSearch/api/index.ts +30 -0
- package/src/BettorSearch/index.tsx +106 -0
- package/src/Components/Icons.tsx +35 -2
- package/src/Components/Spring.tsx +8 -5
- package/src/ProfileManager/Components/CodeRedeem.tsx +2 -1
- package/src/ProfileManager/Components/ProfileWizard.tsx +63 -5
- package/src/ProfileManager/Components/SettingsManager.tsx +152 -0
- package/src/ProfileManager/api/index.ts +13 -1
- package/src/ProfileManager/api/types.d.ts +15 -25
- package/src/ProfileManager/index.tsx +13 -3
- package/src/SocialComponents/PlayerCard.tsx +86 -0
- package/src/SocialComponents/PlayerFollowButton.tsx +80 -0
- package/src/SocialComponents/PlayerList.tsx +81 -0
- package/src/SocialComponents/api/index.ts +23 -0
- package/src/SocialComponents/index.tsx +8 -0
- package/src/constants/styles.ts +1 -8
- package/src/index.tsx +4 -0
- package/src/types.d.ts +206 -0
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
export interface PublicPlayerProps {
|
|
2
|
+
player_id:string,
|
|
3
|
+
username:string,
|
|
4
|
+
email:string,
|
|
5
|
+
dob?:string,
|
|
6
|
+
first_name:string,
|
|
7
|
+
phone:number,
|
|
8
|
+
premium_tier_id?:string,
|
|
9
|
+
zip?:string;
|
|
10
|
+
last_name:string;
|
|
11
|
+
type:string,
|
|
12
|
+
role:'admin'|'player'|'company'|'support'|'guest',
|
|
13
|
+
create_datetime:any,
|
|
14
|
+
verified:boolean,
|
|
15
|
+
home_location:string,
|
|
16
|
+
anonymous?:boolean,
|
|
17
|
+
auto_generated?:boolean,
|
|
18
|
+
no_password?:boolean,
|
|
19
|
+
show_name:string,
|
|
20
|
+
profile_pic?:string,
|
|
21
|
+
vouched_id?:string,
|
|
22
|
+
phone_verified:boolean,
|
|
23
|
+
bio?:string,
|
|
24
|
+
vouched_status:'unverified' | 'failed' | 'verified',
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
//EVENTS SVC TYPES
|
|
31
|
+
|
|
32
|
+
export interface EventProps {
|
|
33
|
+
event_id:string,
|
|
34
|
+
external_id:string,
|
|
35
|
+
away_team_id: string,
|
|
36
|
+
away?:TeamProps
|
|
37
|
+
away_sub_title?:string,
|
|
38
|
+
home_team_id:string,
|
|
39
|
+
home?:TeamProps,
|
|
40
|
+
home_sub_title?:string,
|
|
41
|
+
event_title:string,
|
|
42
|
+
event_sub_title?:string
|
|
43
|
+
away_team_score: number,
|
|
44
|
+
home_team_score: number,
|
|
45
|
+
scheduled_datetime: any,
|
|
46
|
+
info?: EventInfoProps,
|
|
47
|
+
league_id:string,
|
|
48
|
+
season_type: string,
|
|
49
|
+
league_name?:string,
|
|
50
|
+
time_detail?:string,
|
|
51
|
+
last_play?:string,
|
|
52
|
+
home_athlete_stats?: AthleteStatProps[]
|
|
53
|
+
away_athlete_stats?:AthleteStatProps[],
|
|
54
|
+
event_scoring?: EventScoringProps[],
|
|
55
|
+
is_active?:boolean,
|
|
56
|
+
send_to_client?:boolean,
|
|
57
|
+
status:string,
|
|
58
|
+
supported_markets?:SupportedMarketProps[],
|
|
59
|
+
sent_to_market?:boolean,
|
|
60
|
+
legacy_id?:string,
|
|
61
|
+
last_price_request?:any,
|
|
62
|
+
create_datetime:any,
|
|
63
|
+
last_update_datetime: any
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
export interface AthleteProps {
|
|
68
|
+
athlete_id:string,
|
|
69
|
+
first_name:string,
|
|
70
|
+
last_name:string,
|
|
71
|
+
external_id:string,
|
|
72
|
+
external_odds_id?:string,
|
|
73
|
+
league_id:string,
|
|
74
|
+
team_id?:string,
|
|
75
|
+
jersey_number?:number | string,
|
|
76
|
+
team?:TeamProps,
|
|
77
|
+
position:string,
|
|
78
|
+
league_name?:string,
|
|
79
|
+
abbr_name: string,
|
|
80
|
+
status: string,
|
|
81
|
+
image? :{
|
|
82
|
+
url:string,
|
|
83
|
+
width: number,
|
|
84
|
+
height:number
|
|
85
|
+
},
|
|
86
|
+
create_datetime?: any,
|
|
87
|
+
last_update_datetime?: any
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface TeamProps {
|
|
91
|
+
team_id:string,
|
|
92
|
+
market_name:string,
|
|
93
|
+
external_id:string,
|
|
94
|
+
external_odds_id?:string,
|
|
95
|
+
name:string,
|
|
96
|
+
abbr:string,
|
|
97
|
+
league_id:string,
|
|
98
|
+
status:string,
|
|
99
|
+
image?:{ url: string },
|
|
100
|
+
primary_color?:string,
|
|
101
|
+
secondary_color?:string,
|
|
102
|
+
rank?:number,
|
|
103
|
+
division?:string,
|
|
104
|
+
sub_division?:string,
|
|
105
|
+
athletes?:AthleteProps[]
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface EventInfoProps { team_event_id: string, weather:WeatherType | undefined, venue: VenueType| undefined, broadcast:BroadcastType| undefined }
|
|
109
|
+
|
|
110
|
+
export interface StatProps {
|
|
111
|
+
stat: string,
|
|
112
|
+
stat_label:string,
|
|
113
|
+
loc?:string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface AthleteStatProps {
|
|
117
|
+
athlete_id:string,
|
|
118
|
+
event_id:string,
|
|
119
|
+
stat:StatProps,
|
|
120
|
+
value: number | string
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface SupportedMarketProps {
|
|
124
|
+
market_id:string,
|
|
125
|
+
external_id?:string,
|
|
126
|
+
removed?:boolean //When true - it will no longer accept bets
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface EventScoringProps {
|
|
130
|
+
period: number,
|
|
131
|
+
status: 'not_started' | 'active' | 'closed'
|
|
132
|
+
away_cumulative_score:number,
|
|
133
|
+
home_cumulative_score:number,
|
|
134
|
+
away_period_score:number,
|
|
135
|
+
home_period_score:number
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
export interface TournamentProps {
|
|
140
|
+
tournament_id:string,
|
|
141
|
+
league_id:string,
|
|
142
|
+
external_id:string,
|
|
143
|
+
tournament_name:string,
|
|
144
|
+
tournament_type:string,
|
|
145
|
+
time_detail:string,
|
|
146
|
+
scheduled_datetime:string,
|
|
147
|
+
participants:string[],
|
|
148
|
+
participant_type: 'team'|'athlete',
|
|
149
|
+
status: string,
|
|
150
|
+
league_name?:string,
|
|
151
|
+
create_datetime:any,
|
|
152
|
+
last_update_datetime:any,
|
|
153
|
+
supported_markets:SupportedMarketProps[]
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
export interface MatchProps {
|
|
158
|
+
match_id: string,
|
|
159
|
+
external_id: string,
|
|
160
|
+
match_title:string,
|
|
161
|
+
participants: string[],
|
|
162
|
+
participant_type: 'athlete'|'team',
|
|
163
|
+
status: string,
|
|
164
|
+
scheduled_datetime: any,
|
|
165
|
+
create_datetime: string,
|
|
166
|
+
last_update_datetime: string,
|
|
167
|
+
winner?:string,
|
|
168
|
+
tournament_id:string,
|
|
169
|
+
sent_to_markets?:boolean,
|
|
170
|
+
tournament?:TournamentProps;
|
|
171
|
+
supported_markets:SupportedMarketProps[]
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
//PROFILE SETTINGS
|
|
179
|
+
export interface PlayerSettingProps {
|
|
180
|
+
player_setting_id:string,
|
|
181
|
+
player_id:string,
|
|
182
|
+
setting_id:string,
|
|
183
|
+
selected_option: string,
|
|
184
|
+
status: string,
|
|
185
|
+
create_datetime:string,
|
|
186
|
+
last_update_datetime: string
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
export interface PlayerFollowerProps {
|
|
192
|
+
player_follower_id:string,
|
|
193
|
+
player_id:string,
|
|
194
|
+
following_id:string,
|
|
195
|
+
status:'following' | 'not_following',
|
|
196
|
+
create_datetime:any,
|
|
197
|
+
last_update_datetime:any,
|
|
198
|
+
playerDetails?:PublicPlayerProps
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface PlayerFollowerStatsProps {
|
|
202
|
+
player_id:string,
|
|
203
|
+
following_count: number,
|
|
204
|
+
follower_count:number,
|
|
205
|
+
team_member_count:number
|
|
206
|
+
}
|