be-components 0.2.7 → 0.2.9
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 +41 -3
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +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/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 +41 -3
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +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/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 +8 -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/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 +28 -3
- package/src/Authenticator/Components/LoginForm.tsx +1 -1
- package/src/BettorSearch/api/index.ts +30 -0
- package/src/BettorSearch/index.tsx +106 -0
- package/src/Components/Icons.tsx +35 -2
- 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 +354 -0
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,354 @@
|
|
|
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
|
+
}
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
//POLL TYPES
|
|
213
|
+
export interface PollCampaignProps {
|
|
214
|
+
poll_campaign_id:string,
|
|
215
|
+
name: string,
|
|
216
|
+
player_id:string,
|
|
217
|
+
company_id?:string,
|
|
218
|
+
admins:string[],
|
|
219
|
+
phone:string,
|
|
220
|
+
total_responses:number,
|
|
221
|
+
status: string,
|
|
222
|
+
campaign_type: 'predict'|'trivia'|'feedback',
|
|
223
|
+
active_polls?:number,
|
|
224
|
+
auth_strategy_id?:string,
|
|
225
|
+
total_polls?:number,
|
|
226
|
+
share_coupon_campaign_id?:string,
|
|
227
|
+
total_responders?:number,
|
|
228
|
+
referral_code?:string,
|
|
229
|
+
break_ties?:boolean,
|
|
230
|
+
coupon_campaign_id?:string,
|
|
231
|
+
coupon_payout_type?:any,
|
|
232
|
+
campaign_image?: {
|
|
233
|
+
url: string,
|
|
234
|
+
width?: number,
|
|
235
|
+
height?: number
|
|
236
|
+
},
|
|
237
|
+
stream?:{
|
|
238
|
+
url: string,
|
|
239
|
+
stream_type: string,
|
|
240
|
+
id:string,
|
|
241
|
+
twitch_type?:'video'|'channel'
|
|
242
|
+
},
|
|
243
|
+
close_message_sent: boolean,
|
|
244
|
+
create_datetime: any,
|
|
245
|
+
last_update_datetime: any
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface PollCampaignGoalProps {
|
|
249
|
+
poll_campaign_goal_id:string,
|
|
250
|
+
poll_campaign_id:string,
|
|
251
|
+
goal_description: string,
|
|
252
|
+
goal_type: 'total_responses'|'total_responders'
|
|
253
|
+
goal_total:number,
|
|
254
|
+
goal_progress: number,
|
|
255
|
+
goal_progress_status: string,
|
|
256
|
+
status: 'active' | 'inactive',
|
|
257
|
+
create_datetime: any,
|
|
258
|
+
last_update_datetime:any
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
export interface PollCampaignLeaderProps {
|
|
263
|
+
poll_campaign_leader_id:string,
|
|
264
|
+
poll_campaign_id:string,
|
|
265
|
+
player_id:string,
|
|
266
|
+
place:number,
|
|
267
|
+
winnings:number,
|
|
268
|
+
stake:number,
|
|
269
|
+
responses:number,
|
|
270
|
+
create_datetime:any,
|
|
271
|
+
last_update_datetime:any
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface PollProps {
|
|
275
|
+
poll_id:string,
|
|
276
|
+
poll_campaign_id:string,
|
|
277
|
+
poll_question: string,
|
|
278
|
+
status:string,
|
|
279
|
+
coupon_campaign_id?:string,
|
|
280
|
+
coupon_payout_type?:any,
|
|
281
|
+
require_resolution?:boolean,
|
|
282
|
+
tie_breaker?:boolean,
|
|
283
|
+
poll_type: 'select'|'input',
|
|
284
|
+
input_type?:'string'|'number',
|
|
285
|
+
show_responses:boolean,
|
|
286
|
+
poll_image?:{
|
|
287
|
+
url:string,
|
|
288
|
+
width?:number,
|
|
289
|
+
height?:number
|
|
290
|
+
},
|
|
291
|
+
hidden_clue?:string,
|
|
292
|
+
minimum_stake:number,
|
|
293
|
+
priority: number,
|
|
294
|
+
end_datetime: any,
|
|
295
|
+
winning_option_id?:string,
|
|
296
|
+
winning_value?:string,
|
|
297
|
+
responded?:boolean,
|
|
298
|
+
seconds_allowed?:number,
|
|
299
|
+
manual_close_only?:boolean,
|
|
300
|
+
total_responses?:number,
|
|
301
|
+
total_options?:number,
|
|
302
|
+
poll_options?:PollOptionProps[],
|
|
303
|
+
poll_summaries?:PollSummaryProps[],
|
|
304
|
+
create_datetime:any,
|
|
305
|
+
last_update_datetime:any
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface PollSummaryProps {
|
|
309
|
+
poll_id:string,
|
|
310
|
+
poll_option_id:string,
|
|
311
|
+
count:number,
|
|
312
|
+
stake:number,
|
|
313
|
+
pct:number
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export interface PollOptionProps {
|
|
317
|
+
poll_option_id:string,
|
|
318
|
+
poll_id:string,
|
|
319
|
+
option_type: 'select'|'input',
|
|
320
|
+
option_name: string,
|
|
321
|
+
option_value:string,
|
|
322
|
+
input_type?:string,
|
|
323
|
+
input_result:number,
|
|
324
|
+
priority:number,
|
|
325
|
+
status:string,
|
|
326
|
+
result_ind?:'win'|'lose'|'draw'
|
|
327
|
+
parimutuel_odds?:number,
|
|
328
|
+
response_message?:string,
|
|
329
|
+
respond?:boolean,
|
|
330
|
+
create_datetime:any,
|
|
331
|
+
last_update_datetime:any
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
export interface PollResponseProps {
|
|
336
|
+
poll_response_id:string,
|
|
337
|
+
poll_id:string,
|
|
338
|
+
poll_option_id?:string,
|
|
339
|
+
input_value?:string,
|
|
340
|
+
phone?:string,
|
|
341
|
+
email?:string,
|
|
342
|
+
device_id?:string,
|
|
343
|
+
parimutuel_odds?:number,
|
|
344
|
+
stake:number,
|
|
345
|
+
market_type: 'FREE' | 'FOR_MONEY',
|
|
346
|
+
result_ind?:'win'|'lose'|'draw',
|
|
347
|
+
winnings:number,
|
|
348
|
+
timed_out?:boolean,
|
|
349
|
+
player_id:string,
|
|
350
|
+
status:string,
|
|
351
|
+
response_body:any,
|
|
352
|
+
create_datetime:any,
|
|
353
|
+
last_update_datetime:any
|
|
354
|
+
}
|