@smartico/public-api 0.0.355 → 0.0.357
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/README.md +33 -8
- package/dist/SmarticoAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPI.d.ts +27 -56
- package/dist/WSAPI/WSAPITypes.d.ts +515 -32
- package/dist/index.d.ts +0 -1
- package/dist/index.js +92 -231
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +27 -159
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +27 -0
- package/docs/api/classes/WSAPI.md +37 -57
- package/docs/api/enums/GPRoundStatus.md +43 -0
- package/docs/api/enums/GamePickMarketType.md +19 -0
- package/docs/api/enums/GamePickResolutionType.md +35 -0
- package/docs/api/enums/GamePickScoreType.md +19 -0
- package/docs/api/enums/GamePickSportType.md +375 -0
- package/docs/api/enums/GameRoundOrderType.md +35 -0
- package/docs/api/enums/PointChangeSourceType.md +6 -0
- package/docs/api/interfaces/AchRelatedGame-1.md +1 -1
- package/docs/api/interfaces/BonusTemplateMetaMap.md +1 -1
- package/docs/api/interfaces/GamePickBoardUser.md +75 -0
- package/docs/api/interfaces/GamePickEvent.md +121 -0
- package/docs/api/interfaces/GamePickEventMeta.md +181 -0
- package/docs/api/interfaces/GamePickGameInfo.md +27 -0
- package/docs/api/interfaces/GamePickRequestParams.md +41 -0
- package/docs/api/interfaces/GamePickRound.md +385 -0
- package/docs/api/interfaces/GamePickRoundBase.md +235 -0
- package/docs/api/interfaces/GamePickRoundBoard.md +361 -0
- package/docs/api/interfaces/GamePickRoundPublicMeta.md +103 -0
- package/docs/api/interfaces/GamePickRoundRequestParams.md +65 -0
- package/docs/api/interfaces/GamePickUserInfo.md +107 -0
- package/docs/api/interfaces/GamesApiResponse.md +33 -0
- package/docs/api/interfaces/QuizEventMeta.md +41 -0
- package/docs/api/interfaces/TInboxMessageBody.md +1 -1
- package/docs/api/interfaces/TLevel.md +1 -1
- package/docs/api/interfaces/TLevelCurrent.md +1 -1
- package/docs/api/interfaces/TMiniGamePrize.md +1 -1
- package/docs/api/interfaces/TMiniGameTemplate.md +2 -2
- package/docs/api/interfaces/TMissionOrBadge.md +2 -2
- package/docs/api/interfaces/TRaffle.md +2 -2
- package/docs/api/interfaces/TRaffleDraw.md +14 -2
- package/docs/api/interfaces/TRaffleDrawRun.md +20 -0
- package/docs/api/interfaces/TRafflePrize.md +1 -1
- package/docs/api/interfaces/TStoreItem.md +3 -3
- package/docs/api/interfaces/TTournament.md +4 -4
- package/docs/api/interfaces/TTournamentDetailed.md +4 -4
- package/docs/api/interfaces/TUICustomSection.md +1 -1
- package/package.json +6 -6
- package/src/SmarticoAPI.ts +1 -1
- package/src/WSAPI/WSAPI.ts +27 -63
- package/src/WSAPI/WSAPITypes.ts +525 -32
- package/src/index.ts +1 -2
- package/dist/GamePick/GPTypes.d.ts +0 -268
- package/dist/GamePick/index.d.ts +0 -1
- package/src/GamePick/GPTypes.ts +0 -277
- package/src/GamePick/index.ts +0 -1
package/src/index.ts
CHANGED
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import { SAWGPMarketType } from '../Quiz/MarketsType';
|
|
2
|
-
import { QuizAnswersValueType } from '../Quiz/MarketsAnswers';
|
|
3
|
-
export declare enum GamePickMarketType {
|
|
4
|
-
Goals = 1,
|
|
5
|
-
Winner = 2
|
|
6
|
-
}
|
|
7
|
-
export declare enum GamePickResolutionType {
|
|
8
|
-
None = 0,
|
|
9
|
-
Lost = 2,
|
|
10
|
-
PartialWin = 3,
|
|
11
|
-
FullWin = 4
|
|
12
|
-
}
|
|
13
|
-
export declare enum GPRoundStatus {
|
|
14
|
-
Other = -1,
|
|
15
|
-
NoEventsDefined = 1,
|
|
16
|
-
NoMoreBetsAllowed = 2,
|
|
17
|
-
AllEventsResolved_ButNotRound = 3,
|
|
18
|
-
RoundResolved = 4
|
|
19
|
-
}
|
|
20
|
-
export declare enum GamePickScoreType {
|
|
21
|
-
ExactScore = 1,
|
|
22
|
-
PointsDifference = 2
|
|
23
|
-
}
|
|
24
|
-
export declare enum GamePickSportType {
|
|
25
|
-
Golf = 9,
|
|
26
|
-
Cycling = 17,
|
|
27
|
-
Specials = 18,
|
|
28
|
-
TouringCarRacing = 188,
|
|
29
|
-
StockCarRacing = 191,
|
|
30
|
-
IndyRacing = 129,
|
|
31
|
-
Biathlon = 44,
|
|
32
|
-
Speedway = 131,
|
|
33
|
-
Motorsport = 11,
|
|
34
|
-
AlpineSkiing = 43,
|
|
35
|
-
SkiJumping = 48,
|
|
36
|
-
Lacrosse = 39,
|
|
37
|
-
CrossCountry = 46,
|
|
38
|
-
NordicCombined = 47,
|
|
39
|
-
Chess = 33,
|
|
40
|
-
Athletics = 36,
|
|
41
|
-
ESportOverwatch = 121,
|
|
42
|
-
MMA = 117,
|
|
43
|
-
Futsal = 29,
|
|
44
|
-
IceHockey = 4,
|
|
45
|
-
Kabaddi = 138,
|
|
46
|
-
BeachVolley = 34,
|
|
47
|
-
Formula1 = 40,
|
|
48
|
-
ESporteBasketball = 153,
|
|
49
|
-
MotorcycleRacing = 190,
|
|
50
|
-
Bowls = 32,
|
|
51
|
-
Boxing = 10,
|
|
52
|
-
Floorball = 7,
|
|
53
|
-
GaelicHurling = 136,
|
|
54
|
-
Bandy = 15,
|
|
55
|
-
Handball = 6,
|
|
56
|
-
Waterpolo = 26,
|
|
57
|
-
Rugby = 12,
|
|
58
|
-
ESporteSoccer = 137,
|
|
59
|
-
FieldHockey = 24,
|
|
60
|
-
Pesapallo = 61,
|
|
61
|
-
Snooker = 19,
|
|
62
|
-
Badminton = 31,
|
|
63
|
-
Cricket = 21,
|
|
64
|
-
BeachSoccer = 60,
|
|
65
|
-
Baseball = 3,
|
|
66
|
-
StarCraft = 112,
|
|
67
|
-
ESportCounterStrike = 109,
|
|
68
|
-
ESportArenaofValor = 158,
|
|
69
|
-
Curling = 28,
|
|
70
|
-
Squash = 37,
|
|
71
|
-
Darts = 22,
|
|
72
|
-
TableTennis = 20,
|
|
73
|
-
Basketball3x3 = 155,
|
|
74
|
-
AussieRules = 13,
|
|
75
|
-
GaelicFootball = 135,
|
|
76
|
-
CallOfDuty = 118,
|
|
77
|
-
Soccer = 1,
|
|
78
|
-
Tennis = 5,
|
|
79
|
-
ESportDota = 111,
|
|
80
|
-
Basketball = 2,
|
|
81
|
-
ESportLeagueofLegends = 110,
|
|
82
|
-
AmericanFootball = 16,
|
|
83
|
-
Volleyball = 23,
|
|
84
|
-
Netball = 35,
|
|
85
|
-
ESportRocketLeague = 128,
|
|
86
|
-
Schwingen = 56
|
|
87
|
-
}
|
|
88
|
-
export declare enum GameRoundOrderType {
|
|
89
|
-
HowAdded = 1,
|
|
90
|
-
HowAddedReversed = 2,
|
|
91
|
-
EventDateAscending = 3,
|
|
92
|
-
EventDateDescending = 4
|
|
93
|
-
}
|
|
94
|
-
export declare const AllRoundsGameBoardID = -1;
|
|
95
|
-
export interface QuizEventMeta {
|
|
96
|
-
answers?: {
|
|
97
|
-
value: string;
|
|
98
|
-
text: string;
|
|
99
|
-
_translations: {
|
|
100
|
-
[key: string]: {
|
|
101
|
-
text: string;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
}[];
|
|
105
|
-
question_image?: string;
|
|
106
|
-
result?: QuizAnswersValueType;
|
|
107
|
-
custom_question: string;
|
|
108
|
-
}
|
|
109
|
-
export interface GamePickEventMeta extends QuizEventMeta {
|
|
110
|
-
event_name?: string;
|
|
111
|
-
team1_name: string;
|
|
112
|
-
team1_image: string;
|
|
113
|
-
team2_name: string;
|
|
114
|
-
team2_image: string;
|
|
115
|
-
team1_result?: number;
|
|
116
|
-
team2_result?: number;
|
|
117
|
-
sport_type_id?: number;
|
|
118
|
-
is_canceled?: boolean;
|
|
119
|
-
auto_resolve_enabled?: boolean;
|
|
120
|
-
auto_resolve_date?: string;
|
|
121
|
-
team1_auto_result?: number;
|
|
122
|
-
team2_auto_result?: number;
|
|
123
|
-
auto_result?: string;
|
|
124
|
-
_translations: {
|
|
125
|
-
[key: string]: {
|
|
126
|
-
team1_name: string;
|
|
127
|
-
team2_name: string;
|
|
128
|
-
event_name: string;
|
|
129
|
-
custom_question: string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
export interface GamePickEvent {
|
|
134
|
-
gp_event_id: number;
|
|
135
|
-
event_resolution_date: number;
|
|
136
|
-
match_date: number;
|
|
137
|
-
market_type_id: SAWGPMarketType;
|
|
138
|
-
event_meta: GamePickEventMeta;
|
|
139
|
-
user_placed_bet: boolean;
|
|
140
|
-
team1_user_selection?: number | {
|
|
141
|
-
from: number;
|
|
142
|
-
to: number;
|
|
143
|
-
};
|
|
144
|
-
team2_user_selection?: number | {
|
|
145
|
-
from: number;
|
|
146
|
-
to: number;
|
|
147
|
-
};
|
|
148
|
-
user_selection?: QuizAnswersValueType;
|
|
149
|
-
resolution_type_id: GamePickResolutionType;
|
|
150
|
-
resolution_score?: number;
|
|
151
|
-
is_open_for_bets?: boolean;
|
|
152
|
-
odds_details?: {
|
|
153
|
-
odd_value: {
|
|
154
|
-
[key: string]: number;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
question_image?: string;
|
|
158
|
-
}
|
|
159
|
-
export interface GamePickRoundBase {
|
|
160
|
-
round_id: number;
|
|
161
|
-
round_row_id: number;
|
|
162
|
-
round_name: string;
|
|
163
|
-
round_description: string;
|
|
164
|
-
final_screen_cta_button_title: string;
|
|
165
|
-
final_screen_message: string;
|
|
166
|
-
final_screen_image_desktop: string;
|
|
167
|
-
final_screen_image_mobile: string;
|
|
168
|
-
promo_image: string;
|
|
169
|
-
promo_text: string;
|
|
170
|
-
open_date: number;
|
|
171
|
-
last_bet_date: number;
|
|
172
|
-
resolution_date: number;
|
|
173
|
-
score_full_win: number;
|
|
174
|
-
score_part_win: number;
|
|
175
|
-
score_lost: number;
|
|
176
|
-
is_active_now: boolean;
|
|
177
|
-
is_resolved: boolean;
|
|
178
|
-
round_status_id: GPRoundStatus;
|
|
179
|
-
events_total: number;
|
|
180
|
-
events_resolved: number;
|
|
181
|
-
score_type_id: GamePickScoreType;
|
|
182
|
-
order_events: GameRoundOrderType;
|
|
183
|
-
board_users_count: number;
|
|
184
|
-
hide_users_predictions: boolean;
|
|
185
|
-
public_meta: {
|
|
186
|
-
round_name: string;
|
|
187
|
-
round_description: string;
|
|
188
|
-
promo_image: string;
|
|
189
|
-
promo_text: string;
|
|
190
|
-
hide_resolved_round: boolean;
|
|
191
|
-
final_screen_image_desktop: string;
|
|
192
|
-
final_screen_image_mobile: string;
|
|
193
|
-
final_screen_message: string;
|
|
194
|
-
final_screen_cta_button_title: string;
|
|
195
|
-
final_screen_cta_dp: string;
|
|
196
|
-
allow_edit_answers?: boolean;
|
|
197
|
-
_translations: {
|
|
198
|
-
[key: string]: {
|
|
199
|
-
round_name: string;
|
|
200
|
-
round_description: string;
|
|
201
|
-
promo_image: string;
|
|
202
|
-
promo_text: string;
|
|
203
|
-
final_screen_image_desktop: string;
|
|
204
|
-
final_screen_image_mobile: string;
|
|
205
|
-
final_screen_message: string;
|
|
206
|
-
final_screen_cta_button_title: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
next_round_open_date: number;
|
|
211
|
-
show_users_preference: boolean;
|
|
212
|
-
}
|
|
213
|
-
export interface GamePickRound extends GamePickRoundBase {
|
|
214
|
-
events: GamePickEvent[];
|
|
215
|
-
user_score: number;
|
|
216
|
-
user_placed_bet: boolean;
|
|
217
|
-
has_open_for_bet_events?: boolean;
|
|
218
|
-
has_not_submitted_changes?: boolean;
|
|
219
|
-
}
|
|
220
|
-
export interface GamePickRoundBoard extends GamePickRoundBase {
|
|
221
|
-
my_user: GamePickBoardUser;
|
|
222
|
-
users: GamePickBoardUser[];
|
|
223
|
-
}
|
|
224
|
-
export interface GamePickBoardUser {
|
|
225
|
-
ext_user_id: string;
|
|
226
|
-
int_user_id: number;
|
|
227
|
-
public_username: string;
|
|
228
|
-
avatar_url: string;
|
|
229
|
-
gp_position: number;
|
|
230
|
-
resolution_score: number;
|
|
231
|
-
full_wins_count: number;
|
|
232
|
-
part_wins_count: number;
|
|
233
|
-
lost_count: number;
|
|
234
|
-
}
|
|
235
|
-
export interface GamePickUserInfo {
|
|
236
|
-
ext_user_id: string;
|
|
237
|
-
int_user_id: number;
|
|
238
|
-
public_username: string;
|
|
239
|
-
avatar_url: string;
|
|
240
|
-
gp_position?: number;
|
|
241
|
-
full_wins_count?: number;
|
|
242
|
-
part_wins_count?: number;
|
|
243
|
-
resolution_score?: number;
|
|
244
|
-
last_wallet_sync_time?: Date;
|
|
245
|
-
ach_points_balance?: number;
|
|
246
|
-
ach_gems_balance?: number;
|
|
247
|
-
ach_diamonds_balance?: number;
|
|
248
|
-
pubic_username_set?: boolean;
|
|
249
|
-
}
|
|
250
|
-
export interface GamePickGameInfo {
|
|
251
|
-
sawTemplate: any;
|
|
252
|
-
allRounds: GamePickRoundBase[];
|
|
253
|
-
labelInfo: any;
|
|
254
|
-
}
|
|
255
|
-
export interface GamesApiResponse<T> {
|
|
256
|
-
errCode: number;
|
|
257
|
-
errMessage?: string;
|
|
258
|
-
data?: T;
|
|
259
|
-
}
|
|
260
|
-
export interface GamePickRequestParams {
|
|
261
|
-
saw_template_id: number;
|
|
262
|
-
ext_user_id: string;
|
|
263
|
-
smartico_ext_user_id: string;
|
|
264
|
-
lang?: string;
|
|
265
|
-
}
|
|
266
|
-
export interface GamePickRoundRequestParams extends GamePickRequestParams {
|
|
267
|
-
round_id: number;
|
|
268
|
-
}
|
package/dist/GamePick/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GPTypes';
|
package/src/GamePick/GPTypes.ts
DELETED
|
@@ -1,277 +0,0 @@
|
|
|
1
|
-
import { SAWGPMarketType } from '../Quiz/MarketsType';
|
|
2
|
-
import { QuizAnswersValueType } from '../Quiz/MarketsAnswers';
|
|
3
|
-
|
|
4
|
-
export enum GamePickMarketType {
|
|
5
|
-
Goals = 1,
|
|
6
|
-
Winner = 2,
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export enum GamePickResolutionType {
|
|
10
|
-
None = 0,
|
|
11
|
-
Lost = 2,
|
|
12
|
-
PartialWin = 3,
|
|
13
|
-
FullWin = 4,
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export enum GPRoundStatus {
|
|
17
|
-
Other = -1,
|
|
18
|
-
NoEventsDefined = 1,
|
|
19
|
-
NoMoreBetsAllowed = 2,
|
|
20
|
-
AllEventsResolved_ButNotRound = 3,
|
|
21
|
-
RoundResolved = 4,
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export enum GamePickScoreType {
|
|
25
|
-
ExactScore = 1,
|
|
26
|
-
PointsDifference = 2,
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export enum GamePickSportType {
|
|
30
|
-
Golf = 9,
|
|
31
|
-
Cycling = 17,
|
|
32
|
-
Specials = 18,
|
|
33
|
-
TouringCarRacing = 188,
|
|
34
|
-
StockCarRacing = 191,
|
|
35
|
-
IndyRacing = 129,
|
|
36
|
-
Biathlon = 44,
|
|
37
|
-
Speedway = 131,
|
|
38
|
-
Motorsport = 11,
|
|
39
|
-
AlpineSkiing = 43,
|
|
40
|
-
SkiJumping = 48,
|
|
41
|
-
Lacrosse = 39,
|
|
42
|
-
CrossCountry = 46,
|
|
43
|
-
NordicCombined = 47,
|
|
44
|
-
Chess = 33,
|
|
45
|
-
Athletics = 36,
|
|
46
|
-
ESportOverwatch = 121,
|
|
47
|
-
MMA = 117,
|
|
48
|
-
Futsal = 29,
|
|
49
|
-
IceHockey = 4,
|
|
50
|
-
Kabaddi = 138,
|
|
51
|
-
BeachVolley = 34,
|
|
52
|
-
Formula1 = 40,
|
|
53
|
-
ESporteBasketball = 153,
|
|
54
|
-
MotorcycleRacing = 190,
|
|
55
|
-
Bowls = 32,
|
|
56
|
-
Boxing = 10,
|
|
57
|
-
Floorball = 7,
|
|
58
|
-
GaelicHurling = 136,
|
|
59
|
-
Bandy = 15,
|
|
60
|
-
Handball = 6,
|
|
61
|
-
Waterpolo = 26,
|
|
62
|
-
Rugby = 12,
|
|
63
|
-
ESporteSoccer = 137,
|
|
64
|
-
FieldHockey = 24,
|
|
65
|
-
Pesapallo = 61,
|
|
66
|
-
Snooker = 19,
|
|
67
|
-
Badminton = 31,
|
|
68
|
-
Cricket = 21,
|
|
69
|
-
BeachSoccer = 60,
|
|
70
|
-
Baseball = 3,
|
|
71
|
-
StarCraft = 112,
|
|
72
|
-
ESportCounterStrike = 109,
|
|
73
|
-
ESportArenaofValor = 158,
|
|
74
|
-
Curling = 28,
|
|
75
|
-
Squash = 37,
|
|
76
|
-
Darts = 22,
|
|
77
|
-
TableTennis = 20,
|
|
78
|
-
Basketball3x3 = 155,
|
|
79
|
-
AussieRules = 13,
|
|
80
|
-
GaelicFootball = 135,
|
|
81
|
-
CallOfDuty = 118,
|
|
82
|
-
Soccer = 1,
|
|
83
|
-
Tennis = 5,
|
|
84
|
-
ESportDota = 111,
|
|
85
|
-
Basketball = 2,
|
|
86
|
-
ESportLeagueofLegends = 110,
|
|
87
|
-
AmericanFootball = 16,
|
|
88
|
-
Volleyball = 23,
|
|
89
|
-
Netball = 35,
|
|
90
|
-
ESportRocketLeague = 128,
|
|
91
|
-
Schwingen = 56,
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export enum GameRoundOrderType {
|
|
95
|
-
HowAdded = 1,
|
|
96
|
-
HowAddedReversed = 2,
|
|
97
|
-
EventDateAscending = 3,
|
|
98
|
-
EventDateDescending = 4,
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export const AllRoundsGameBoardID = -1;
|
|
102
|
-
|
|
103
|
-
export interface QuizEventMeta {
|
|
104
|
-
answers?: {
|
|
105
|
-
value: string;
|
|
106
|
-
text: string;
|
|
107
|
-
_translations: {
|
|
108
|
-
[key: string]: {
|
|
109
|
-
text: string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
}[];
|
|
113
|
-
question_image?: string;
|
|
114
|
-
result?: QuizAnswersValueType;
|
|
115
|
-
custom_question: string;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface GamePickEventMeta extends QuizEventMeta {
|
|
119
|
-
event_name?: string;
|
|
120
|
-
team1_name: string;
|
|
121
|
-
team1_image: string;
|
|
122
|
-
team2_name: string;
|
|
123
|
-
team2_image: string;
|
|
124
|
-
team1_result?: number;
|
|
125
|
-
team2_result?: number;
|
|
126
|
-
sport_type_id?: number;
|
|
127
|
-
is_canceled?: boolean;
|
|
128
|
-
auto_resolve_enabled?: boolean;
|
|
129
|
-
auto_resolve_date?: string;
|
|
130
|
-
team1_auto_result?: number;
|
|
131
|
-
team2_auto_result?: number;
|
|
132
|
-
auto_result?: string;
|
|
133
|
-
_translations: {
|
|
134
|
-
[key: string]: {
|
|
135
|
-
team1_name: string;
|
|
136
|
-
team2_name: string;
|
|
137
|
-
event_name: string;
|
|
138
|
-
custom_question: string;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface GamePickEvent {
|
|
144
|
-
gp_event_id: number;
|
|
145
|
-
event_resolution_date: number;
|
|
146
|
-
match_date: number;
|
|
147
|
-
market_type_id: SAWGPMarketType;
|
|
148
|
-
event_meta: GamePickEventMeta;
|
|
149
|
-
user_placed_bet: boolean;
|
|
150
|
-
team1_user_selection?: number | { from: number; to: number };
|
|
151
|
-
team2_user_selection?: number | { from: number; to: number };
|
|
152
|
-
user_selection?: QuizAnswersValueType;
|
|
153
|
-
resolution_type_id: GamePickResolutionType;
|
|
154
|
-
resolution_score?: number;
|
|
155
|
-
is_open_for_bets?: boolean;
|
|
156
|
-
odds_details?: { odd_value: { [key: string]: number } };
|
|
157
|
-
question_image?: string;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
export interface GamePickRoundBase {
|
|
161
|
-
round_id: number;
|
|
162
|
-
round_row_id: number;
|
|
163
|
-
round_name: string;
|
|
164
|
-
round_description: string;
|
|
165
|
-
final_screen_cta_button_title: string;
|
|
166
|
-
final_screen_message: string;
|
|
167
|
-
final_screen_image_desktop: string;
|
|
168
|
-
final_screen_image_mobile: string;
|
|
169
|
-
promo_image: string;
|
|
170
|
-
promo_text: string;
|
|
171
|
-
open_date: number;
|
|
172
|
-
last_bet_date: number;
|
|
173
|
-
resolution_date: number;
|
|
174
|
-
score_full_win: number;
|
|
175
|
-
score_part_win: number;
|
|
176
|
-
score_lost: number;
|
|
177
|
-
is_active_now: boolean;
|
|
178
|
-
is_resolved: boolean;
|
|
179
|
-
round_status_id: GPRoundStatus;
|
|
180
|
-
events_total: number;
|
|
181
|
-
events_resolved: number;
|
|
182
|
-
score_type_id: GamePickScoreType;
|
|
183
|
-
order_events: GameRoundOrderType;
|
|
184
|
-
board_users_count: number;
|
|
185
|
-
hide_users_predictions: boolean;
|
|
186
|
-
public_meta: {
|
|
187
|
-
round_name: string;
|
|
188
|
-
round_description: string;
|
|
189
|
-
promo_image: string;
|
|
190
|
-
promo_text: string;
|
|
191
|
-
hide_resolved_round: boolean;
|
|
192
|
-
final_screen_image_desktop: string;
|
|
193
|
-
final_screen_image_mobile: string;
|
|
194
|
-
final_screen_message: string;
|
|
195
|
-
final_screen_cta_button_title: string;
|
|
196
|
-
final_screen_cta_dp: string;
|
|
197
|
-
allow_edit_answers?: boolean;
|
|
198
|
-
_translations: {
|
|
199
|
-
[key: string]: {
|
|
200
|
-
round_name: string;
|
|
201
|
-
round_description: string;
|
|
202
|
-
promo_image: string;
|
|
203
|
-
promo_text: string;
|
|
204
|
-
final_screen_image_desktop: string;
|
|
205
|
-
final_screen_image_mobile: string;
|
|
206
|
-
final_screen_message: string;
|
|
207
|
-
final_screen_cta_button_title: string;
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
next_round_open_date: number;
|
|
212
|
-
show_users_preference: boolean;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface GamePickRound extends GamePickRoundBase {
|
|
216
|
-
events: GamePickEvent[];
|
|
217
|
-
user_score: number;
|
|
218
|
-
user_placed_bet: boolean;
|
|
219
|
-
has_open_for_bet_events?: boolean;
|
|
220
|
-
has_not_submitted_changes?: boolean;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export interface GamePickRoundBoard extends GamePickRoundBase {
|
|
224
|
-
my_user: GamePickBoardUser;
|
|
225
|
-
users: GamePickBoardUser[];
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export interface GamePickBoardUser {
|
|
229
|
-
ext_user_id: string;
|
|
230
|
-
int_user_id: number;
|
|
231
|
-
public_username: string;
|
|
232
|
-
avatar_url: string;
|
|
233
|
-
gp_position: number;
|
|
234
|
-
resolution_score: number;
|
|
235
|
-
full_wins_count: number;
|
|
236
|
-
part_wins_count: number;
|
|
237
|
-
lost_count: number;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export interface GamePickUserInfo {
|
|
241
|
-
ext_user_id: string;
|
|
242
|
-
int_user_id: number;
|
|
243
|
-
public_username: string;
|
|
244
|
-
avatar_url: string;
|
|
245
|
-
gp_position?: number;
|
|
246
|
-
full_wins_count?: number;
|
|
247
|
-
part_wins_count?: number;
|
|
248
|
-
resolution_score?: number;
|
|
249
|
-
last_wallet_sync_time?: Date;
|
|
250
|
-
ach_points_balance?: number;
|
|
251
|
-
ach_gems_balance?: number;
|
|
252
|
-
ach_diamonds_balance?: number;
|
|
253
|
-
pubic_username_set?: boolean;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
export interface GamePickGameInfo {
|
|
257
|
-
sawTemplate: any;
|
|
258
|
-
allRounds: GamePickRoundBase[];
|
|
259
|
-
labelInfo: any;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export interface GamesApiResponse<T> {
|
|
263
|
-
errCode: number;
|
|
264
|
-
errMessage?: string;
|
|
265
|
-
data?: T;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export interface GamePickRequestParams {
|
|
269
|
-
saw_template_id: number;
|
|
270
|
-
ext_user_id: string;
|
|
271
|
-
smartico_ext_user_id: string;
|
|
272
|
-
lang?: string;
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export interface GamePickRoundRequestParams extends GamePickRequestParams {
|
|
276
|
-
round_id: number;
|
|
277
|
-
}
|
package/src/GamePick/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './GPTypes';
|