@smartico/public-api 0.0.351 → 0.0.353
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/GamePick/GPTypes.d.ts +268 -0
- package/dist/GamePick/index.d.ts +1 -0
- package/dist/Raffle/Raffle.d.ts +13 -0
- package/dist/SmarticoAPI.d.ts +20 -0
- package/dist/Tournaments/Tournament.d.ts +2 -0
- package/dist/WSAPI/WSAPI.d.ts +334 -1
- package/dist/WSAPI/WSAPITypes.d.ts +10 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1223 -452
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +731 -83
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +3 -0
- package/docs/api/classes/WSAPI.md +199 -0
- package/docs/api/enums/QuizAnswersValueType.md +121 -0
- package/docs/api/enums/RaffleTicketCapVisualization.md +25 -0
- package/docs/api/enums/SAWGPMarketType.md +157 -0
- package/docs/api/interfaces/RafflePublicMeta.md +9 -0
- package/docs/api/interfaces/TRaffle.md +8 -0
- package/docs/api/interfaces/TTournament.md +8 -0
- package/docs/api/interfaces/TTournamentDetailed.md +12 -0
- package/docs/api/interfaces/Tournament.md +8 -0
- package/package.json +4 -2
- package/src/GamePick/GPTypes.ts +277 -0
- package/src/GamePick/index.ts +1 -0
- package/src/Raffle/GetRafflesResponse.ts +1 -0
- package/src/Raffle/Raffle.ts +14 -0
- package/src/SmarticoAPI.ts +158 -13
- package/src/Tournaments/Tournament.ts +5 -2
- package/src/WSAPI/WSAPI.ts +476 -62
- package/src/WSAPI/WSAPITypes.ts +10 -2
- package/src/index.ts +3 -1
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -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
|
|
|
13
15
|
|
|
14
16
|
type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string;
|
|
@@ -413,6 +415,8 @@ export interface TTournament {
|
|
|
413
415
|
min_scores_win?: number;
|
|
414
416
|
/** When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard */
|
|
415
417
|
hide_leaderboard_min_scores?: boolean;
|
|
418
|
+
/** Total scores across all participants in the tournament */
|
|
419
|
+
total_scores?: number;
|
|
416
420
|
}
|
|
417
421
|
|
|
418
422
|
/**
|
|
@@ -1050,6 +1054,10 @@ export interface TRaffle {
|
|
|
1050
1054
|
* Then the list will always return 3 draws, no matter if the draws are already executed or they are in the future.
|
|
1051
1055
|
*/
|
|
1052
1056
|
draws: TRaffleDraw[];
|
|
1057
|
+
/**
|
|
1058
|
+
* Ticket cap visualization
|
|
1059
|
+
*/
|
|
1060
|
+
ticket_cap_visualization: RaffleTicketCapVisualization;
|
|
1053
1061
|
}
|
|
1054
1062
|
|
|
1055
1063
|
export interface TRaffleTicket {
|
|
@@ -1377,4 +1385,4 @@ export interface TRaffleOptinResponse {
|
|
|
1377
1385
|
err_message?: string;
|
|
1378
1386
|
}
|
|
1379
1387
|
|
|
1380
|
-
export { SAWAcknowledgeTypeName, PrizeModifiers, SAWTemplateUI, InboxCategories, AchCustomSectionType, SAWAskForUsername, SAWGameLayout, PointChangeSourceType, UserBalanceType }
|
|
1388
|
+
export { SAWAcknowledgeTypeName, PrizeModifiers, SAWTemplateUI, InboxCategories, AchCustomSectionType, SAWAskForUsername, SAWGameLayout, PointChangeSourceType, UserBalanceType, SAWGPMarketType, QuizAnswersValueType }
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './Base/ClassId';
|
|
2
2
|
export * from './ILogger';
|
|
3
3
|
export * from './SmarticoAPI';
|
|
4
|
+
export * from './WSAPI/WSAPI';
|
|
4
5
|
export * from './CookieStore';
|
|
5
6
|
|
|
6
7
|
export * from './Analytics';
|
|
@@ -20,4 +21,5 @@ export * from './Raffle';
|
|
|
20
21
|
export * from './OCache';
|
|
21
22
|
export * from './Bonuses';
|
|
22
23
|
export * from './CustomSections';
|
|
23
|
-
export * from './ActivityLog';
|
|
24
|
+
export * from './ActivityLog';
|
|
25
|
+
export * from './GamePick';
|