@smartico/public-api 0.0.351 → 0.0.352

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.
@@ -0,0 +1,265 @@
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
+ }
@@ -0,0 +1 @@
1
+ export * from './GPTypes';
@@ -1,4 +1,12 @@
1
1
  import { RaffleDraw } from "./RaffleDraw";
2
+ export declare enum RaffleTicketCapVisualization {
3
+ /** Show nothing */
4
+ Empty = 0,
5
+ /** Show ticket counter */
6
+ Counter = 1,
7
+ /** Show message when ticket cap is reached */
8
+ Message = 2
9
+ }
2
10
  interface RafflePublicMeta {
3
11
  /** Name of the raffle */
4
12
  name: string;
@@ -18,6 +26,11 @@ interface RafflePublicMeta {
18
26
  * Read more here - <https://help.smartico.ai/welcome/products/general-concepts/custom-fields-attributes>
19
27
  */
20
28
  custom_data: string;
29
+ /**
30
+ * - Value 1 (Counter): Shows a real-time "Tickets Remaining" display available during the whole Raffle activity.
31
+ * - Value 2 (Message): Will show a specific message that triggers only when the cap is reached and inform users that tickets will be no longer be issued.
32
+ */
33
+ ticket_cap_visualization?: RaffleTicketCapVisualization;
21
34
  }
22
35
  interface Raffle {
23
36
  /** ID of the Raffle template */
@@ -25,6 +25,7 @@ import { InboxCategories } from './Inbox/InboxCategories';
25
25
  import { GetDrawRunResponse, GetRaffleDrawRunsHistoryResponse, RaffleClaimPrizeResponse, RaffleOptinResponse } from './Raffle';
26
26
  import { GetJackpotWinnersResponse, JackpotWinnerHistory } from './Jackpots/GetJackpotWinnersResponse';
27
27
  import { GetJackpotEligibleGamesResponse, TGetJackpotEligibleGamesResponse } from './Jackpots/GetJackpotEligibleGamesResponse';
28
+ import { GamesApiResponse, GamePickRound, GamePickRoundBoard, GamePickUserInfo, GamePickGameInfo } from './GamePick';
28
29
  interface Tracker {
29
30
  label_api_key: string;
30
31
  userPublicProps: any;
@@ -47,7 +48,9 @@ declare class SmarticoAPI {
47
48
  private wsUrl;
48
49
  private inboxCdnUrl;
49
50
  private partnerUrl;
51
+ gamesApiUrl: string;
50
52
  avatarDomain: string;
53
+ private envId;
51
54
  private logger;
52
55
  private logCIDs;
53
56
  private logHTTPTiming;
@@ -61,6 +64,7 @@ declare class SmarticoAPI {
61
64
  static getCleanLabelApiKey(label_api_key: string): string;
62
65
  static getPublicUrl(label_api_key: string): string;
63
66
  static getPublicWsUrl(label_api_key: string): string;
67
+ static getGamesApiUrl(label_api_key: string): string;
64
68
  static getAvatarUrl(label_api_key: string): string;
65
69
  private send;
66
70
  private buildMessage;
@@ -153,6 +157,17 @@ declare class SmarticoAPI {
153
157
  markUnmarkInboxMessageAsFavorite(user_ext_id: string, messageGuid: string, mark: boolean): Promise<MarkInboxMessageStarredResponse>;
154
158
  deleteInboxMessage(user_ext_id: string, messageGuid: string): Promise<MarkInboxMessageDeletedResponse>;
155
159
  deleteAllInboxMessages(user_ext_id: string): Promise<MarkInboxMessageDeletedResponse>;
160
+ private buildGamesApiParams;
161
+ private sendGamesApi;
162
+ gpGetActiveRounds(ext_user_id: string, smartico_ext_user_id: string, saw_template_id: number, lang?: string): Promise<GamesApiResponse<GamePickRound[]>>;
163
+ gpGetActiveRound(ext_user_id: string, smartico_ext_user_id: string, saw_template_id: number, lang?: string, round_id?: number): Promise<GamesApiResponse<GamePickRound>>;
164
+ gpGetGamesHistory(ext_user_id: string, smartico_ext_user_id: string, saw_template_id: number, lang?: string): Promise<GamesApiResponse<GamePickRound[]>>;
165
+ gpGetGameBoard(ext_user_id: string, smartico_ext_user_id: string, saw_template_id: number, round_id: number, lang?: string): Promise<GamesApiResponse<GamePickRoundBoard>>;
166
+ gpSubmitSelection(ext_user_id: string, smartico_ext_user_id: string, saw_template_id: number, round: any, isQuiz: boolean, lang?: string): Promise<GamesApiResponse<GamePickRound>>;
167
+ gpGetUserInfo(ext_user_id: string, smartico_ext_user_id: string, saw_template_id: number, lang?: string): Promise<GamesApiResponse<GamePickUserInfo>>;
168
+ gpGetGameInfo(ext_user_id: string, smartico_ext_user_id: string, saw_template_id: number, lang?: string): Promise<GamesApiResponse<GamePickGameInfo>>;
169
+ gpGetTranslations(ext_user_id: string, smartico_ext_user_id: string, saw_template_id: number, lang?: string): Promise<GamesApiResponse<any>>;
170
+ gpGetRoundInfoForUser(ext_user_id: string, smartico_ext_user_id: string, saw_template_id: number, round_id: number, int_user_id: number, lang?: string): Promise<GamesApiResponse<GamePickRound>>;
156
171
  getWSCalls(): WSAPI;
157
172
  getRelatedItemsForGame(user_ext_id: string, related_game_id: string): Promise<GetRelatedAchTourResponse>;
158
173
  getRafflesT(user_ext_id: string): Promise<TRaffle[]>;
@@ -60,5 +60,7 @@ export interface Tournament {
60
60
  minScoreToWin?: number;
61
61
  /** When enabled, users who don't meet the minimum qualifying score will be hidden from the Leaderboard. */
62
62
  hideLeaderboardsMinScores?: boolean;
63
+ /** Total scores across all participants in the tournament */
64
+ totalScores?: number;
63
65
  }
64
66
  export declare const TournamentItemsTransform: (items: Tournament[]) => TTournament[];
@@ -1,6 +1,7 @@
1
1
  import { ActivityTypeLimited } from '../Core';
2
2
  import { SmarticoAPI } from '../SmarticoAPI';
3
3
  import { InboxMarkMessageAction, LeaderBoardDetailsT, TAchCategory, TBuyStoreItemResult, TGetTranslations, TInboxMessage, TInboxMessageBody, TLevel, TMiniGamePlayResult, TMiniGameTemplate, TMissionClaimRewardResult, TMissionOptInResult, TMissionOrBadge, TSegmentCheckResult, TStoreCategory, TStoreItem, TTournament, TTournamentDetailed, TTournamentRegistrationResult, TUICustomSection, TUserProfile, UserLevelExtraCountersT, TBonus, TClaimBonusResult, TMiniGamePlayBatchResult, TSawHistory, TRaffle, TRaffleDraw, TRaffleDrawRun, TransformedRaffleClaimPrizeResponse, TLevelCurrent, TActivityLog, TRaffleOptinResponse } from './WSAPITypes';
4
+ import { GamesApiResponse, GamePickRound, GamePickRoundBoard, GamePickUserInfo, GamePickGameInfo, GamePickRequestParams } from '../GamePick';
4
5
  import { LeaderBoardPeriodType } from '../Leaderboard';
5
6
  import { JackpotDetails, JackpotWinnerHistory, JackpotsOptinResponse, JackpotsOptoutResponse } from '../Jackpots';
6
7
  import { GetRelatedAchTourResponse } from '../Missions/GetRelatedAchTourResponse';
@@ -582,6 +583,216 @@ export declare class WSAPI {
582
583
  to: number;
583
584
  onUpdate?: (data: TActivityLog[]) => void;
584
585
  }): Promise<TActivityLog[]>;
586
+ /**
587
+ * Returns the active rounds for the specified MatchX or Quiz game (identified by saw_template_id).
588
+ * Each round contains events (matches/questions) with user selections.
589
+ *
590
+ * **Example**:
591
+ * ```
592
+ * _smartico.api.getGamePickActiveRounds({
593
+ * saw_template_id: 123,
594
+ * ext_user_id: '149598632',
595
+ * smartico_ext_user_id: 'user@example.com',
596
+ * lang: 'EN'
597
+ * }).then((result) => {
598
+ * console.log(result);
599
+ * });
600
+ * ```
601
+ *
602
+ * **Visitor mode: not supported**
603
+ */
604
+ getGamePickActiveRounds(props: GamePickRequestParams): Promise<GamesApiResponse<GamePickRound[]>>;
605
+ /**
606
+ * Returns a single active round (the "home" round or a specific round by ID) for the specified MatchX or Quiz game.
607
+ * If round_id is not provided, returns the most relevant active round.
608
+ *
609
+ * **Example**:
610
+ * ```
611
+ * _smartico.api.getGamePickActiveRound({
612
+ * saw_template_id: 123,
613
+ * ext_user_id: '149598632',
614
+ * smartico_ext_user_id: 'user@example.com',
615
+ * }).then((result) => {
616
+ * console.log(result);
617
+ * });
618
+ * ```
619
+ *
620
+ * **Visitor mode: not supported**
621
+ */
622
+ getGamePickActiveRound(props: GamePickRequestParams & {
623
+ round_id?: number;
624
+ }): Promise<GamesApiResponse<GamePickRound>>;
625
+ /**
626
+ * Returns the history of all rounds (including resolved) for the specified MatchX or Quiz game.
627
+ *
628
+ * **Example**:
629
+ * ```
630
+ * _smartico.api.getGamePickHistory({
631
+ * saw_template_id: 123,
632
+ * ext_user_id: '149598632',
633
+ * smartico_ext_user_id: 'user@example.com',
634
+ * }).then((result) => {
635
+ * console.log(result);
636
+ * });
637
+ * ```
638
+ *
639
+ * **Visitor mode: not supported**
640
+ */
641
+ getGamePickHistory(props: GamePickRequestParams): Promise<GamesApiResponse<GamePickRound[]>>;
642
+ /**
643
+ * Returns the leaderboard for a specific round within a MatchX or Quiz game.
644
+ * Use round_id = -1 (AllRoundsGameBoardID) for the season/overall leaderboard.
645
+ *
646
+ * **Example**:
647
+ * ```
648
+ * _smartico.api.getGamePickBoard({
649
+ * saw_template_id: 123,
650
+ * ext_user_id: '149598632',
651
+ * smartico_ext_user_id: 'user@example.com',
652
+ * round_id: 456
653
+ * }).then((result) => {
654
+ * console.log(result.data.users, result.data.my_user);
655
+ * });
656
+ * ```
657
+ *
658
+ * **Visitor mode: not supported**
659
+ */
660
+ getGamePickBoard(props: GamePickRequestParams & {
661
+ round_id: number;
662
+ }): Promise<GamesApiResponse<GamePickRoundBoard>>;
663
+ /**
664
+ * Submits picks for a round in a MatchX game.
665
+ * Sends the entire round with user selections for all events at once.
666
+ * Each event should have team1_user_selection and team2_user_selection (predicted scores).
667
+ *
668
+ * **Example**:
669
+ * ```
670
+ * _smartico.api.submitGamePickSelection({
671
+ * saw_template_id: 123,
672
+ * ext_user_id: '149598632',
673
+ * smartico_ext_user_id: 'user@example.com',
674
+ * round: {
675
+ * round_id: 456,
676
+ * events: [
677
+ * { gp_event_id: 789, team1_user_selection: 2, team2_user_selection: 1 },
678
+ * { gp_event_id: 790, team1_user_selection: 0, team2_user_selection: 3 }
679
+ * ]
680
+ * }
681
+ * }).then((result) => {
682
+ * console.log(result);
683
+ * });
684
+ * ```
685
+ *
686
+ * **Visitor mode: not supported**
687
+ */
688
+ submitGamePickSelection(props: GamePickRequestParams & {
689
+ round: any;
690
+ }): Promise<GamesApiResponse<GamePickRound>>;
691
+ /**
692
+ * Submits answers for a round in a Quiz game.
693
+ * Sends the entire round with user answers for all events at once.
694
+ * Each event should have user_selection (answer value from QuizAnswersValueType).
695
+ *
696
+ * **Example**:
697
+ * ```
698
+ * _smartico.api.submitGamePickSelectionQuiz({
699
+ * saw_template_id: 123,
700
+ * ext_user_id: '149598632',
701
+ * smartico_ext_user_id: 'user@example.com',
702
+ * round: {
703
+ * round_id: 456,
704
+ * events: [
705
+ * { gp_event_id: 789, user_selection: '1' },
706
+ * { gp_event_id: 790, user_selection: 'x' }
707
+ * ]
708
+ * }
709
+ * }).then((result) => {
710
+ * console.log(result);
711
+ * });
712
+ * ```
713
+ *
714
+ * **Visitor mode: not supported**
715
+ */
716
+ submitGamePickSelectionQuiz(props: GamePickRequestParams & {
717
+ round: any;
718
+ }): Promise<GamesApiResponse<GamePickRound>>;
719
+ /**
720
+ * Returns the current user's profile information within the specified MatchX or Quiz game.
721
+ * Includes username, avatar, position, scores, and balances.
722
+ *
723
+ * **Example**:
724
+ * ```
725
+ * _smartico.api.getGamePickUserInfo({
726
+ * saw_template_id: 123,
727
+ * ext_user_id: '149598632',
728
+ * smartico_ext_user_id: 'user@example.com',
729
+ * }).then((result) => {
730
+ * console.log(result.data.public_username, result.data.gp_position);
731
+ * });
732
+ * ```
733
+ *
734
+ * **Visitor mode: not supported**
735
+ */
736
+ getGamePickUserInfo(props: GamePickRequestParams): Promise<GamesApiResponse<GamePickUserInfo>>;
737
+ /**
738
+ * Returns the game configuration (template, label info) and the list of all rounds for the specified MatchX or Quiz game.
739
+ *
740
+ * **Example**:
741
+ * ```
742
+ * _smartico.api.getGamePickGameInfo({
743
+ * saw_template_id: 123,
744
+ * ext_user_id: '149598632',
745
+ * smartico_ext_user_id: 'user@example.com',
746
+ * }).then((result) => {
747
+ * console.log(result.data.sawTemplate, result.data.allRounds);
748
+ * });
749
+ * ```
750
+ *
751
+ * **Visitor mode: not supported**
752
+ */
753
+ getGamePickGameInfo(props: GamePickRequestParams): Promise<GamesApiResponse<GamePickGameInfo>>;
754
+ /**
755
+ * Returns translations for the MatchX/Quiz game UI.
756
+ * Translations are returned as a key-value map based on the user's language.
757
+ *
758
+ * **Example**:
759
+ * ```
760
+ * _smartico.api.getGamePickTranslations({
761
+ * saw_template_id: 123,
762
+ * ext_user_id: '149598632',
763
+ * smartico_ext_user_id: 'user@example.com',
764
+ * lang: 'EN'
765
+ * }).then((result) => {
766
+ * console.log(result.data);
767
+ * });
768
+ * ```
769
+ *
770
+ * **Visitor mode: not supported**
771
+ */
772
+ getGamePickTranslations(props: GamePickRequestParams): Promise<GamesApiResponse<any>>;
773
+ /**
774
+ * Returns round data with events and picks for a specific user (identified by their internal user ID).
775
+ * Useful for showing another user's predictions from the leaderboard.
776
+ *
777
+ * **Example**:
778
+ * ```
779
+ * _smartico.api.getGamePickRoundInfoForUser({
780
+ * saw_template_id: 123,
781
+ * ext_user_id: '149598632',
782
+ * smartico_ext_user_id: 'user@example.com',
783
+ * round_id: 456,
784
+ * int_user_id: 789
785
+ * }).then((result) => {
786
+ * console.log(result.data.events);
787
+ * });
788
+ * ```
789
+ *
790
+ * **Visitor mode: not supported**
791
+ */
792
+ getGamePickRoundInfoForUser(props: GamePickRequestParams & {
793
+ round_id: number;
794
+ int_user_id: number;
795
+ }): Promise<GamesApiResponse<GamePickRound>>;
585
796
  private updateOnSpin;
586
797
  private reloadMiniGameTemplate;
587
798
  private updateMissions;
@@ -6,9 +6,11 @@ import { LeaderBoardPeriodType } from '../Leaderboard';
6
6
  import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter, LiquidEntityData } from '../CustomSections';
7
7
  import { PrizeModifiers } from '../MiniGames/PrizeModifiers';
8
8
  import { InboxCategories } from '../Inbox/InboxCategories';
9
- import { RaffleDrawInstanceState, RaffleDrawTypeExecution } from '../Raffle';
9
+ import { RaffleDrawInstanceState, RaffleDrawTypeExecution, RaffleTicketCapVisualization } from '../Raffle';
10
10
  import { PointChangeSourceType } from '../ActivityLog/PointChangeSourceType';
11
11
  import { UserBalanceType } from '../ActivityLog/UserBalanceType';
12
+ import { SAWGPMarketType } from '../Quiz/MarketsType';
13
+ import { QuizAnswersValueType } from '../Quiz/MarketsAnswers';
12
14
  type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string;
13
15
  /**
14
16
  * TMiniGamePrize describes the information of prize in the array of prizes in the TMiniGameTemplate
@@ -380,6 +382,8 @@ export interface TTournament {
380
382
  min_scores_win?: number;
381
383
  /** When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard */
382
384
  hide_leaderboard_min_scores?: boolean;
385
+ /** Total scores across all participants in the tournament */
386
+ total_scores?: number;
383
387
  }
384
388
  /**
385
389
  * TTournamentDetailed describes the information of the tournament item and includes list of participants, their scores and position in the tournament leaderboard
@@ -965,6 +969,10 @@ export interface TRaffle {
965
969
  * Then the list will always return 3 draws, no matter if the draws are already executed or they are in the future.
966
970
  */
967
971
  draws: TRaffleDraw[];
972
+ /**
973
+ * Ticket cap visualization
974
+ */
975
+ ticket_cap_visualization: RaffleTicketCapVisualization;
968
976
  }
969
977
  export interface TRaffleTicket {
970
978
  /**
@@ -1259,4 +1267,4 @@ export interface TRaffleOptinResponse {
1259
1267
  /** Optional error message */
1260
1268
  err_message?: string;
1261
1269
  }
1262
- export { SAWAcknowledgeTypeName, PrizeModifiers, SAWTemplateUI, InboxCategories, AchCustomSectionType, SAWAskForUsername, SAWGameLayout, PointChangeSourceType, UserBalanceType };
1270
+ export { SAWAcknowledgeTypeName, PrizeModifiers, SAWTemplateUI, InboxCategories, AchCustomSectionType, SAWAskForUsername, SAWGameLayout, PointChangeSourceType, UserBalanceType, SAWGPMarketType, QuizAnswersValueType };
package/dist/index.d.ts CHANGED
@@ -19,3 +19,4 @@ export * from './OCache';
19
19
  export * from './Bonuses';
20
20
  export * from './CustomSections';
21
21
  export * from './ActivityLog';
22
+ export * from './GamePick';