@smartico/public-api 0.0.331 → 0.0.333
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/Base/AchRelatedGame.d.ts +1 -0
- package/dist/Jackpots/GetJackpotEligibleGamesResponse.d.ts +2 -0
- package/dist/MiniGames/SAWGameType.d.ts +2 -2
- package/dist/SmarticoLib/index.d.ts +6 -0
- package/dist/WSAPI/WSAPITypes.d.ts +6 -0
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +12 -9
- package/dist/index.modern.mjs.map +1 -1
- package/docs/enums/SAWGameType.md +6 -0
- package/docs/enums/SAWGameTypeName.md +6 -0
- package/docs/interfaces/AchRelatedGame-1.md +1 -0
- package/docs/interfaces/AchRelatedGame.md +1 -0
- package/docs/interfaces/JackpotEligibleGame.md +8 -0
- package/docs/interfaces/TUserProfile.md +16 -0
- package/package.json +1 -1
- package/src/Base/AchRelatedGame.ts +1 -0
- package/src/Jackpots/GetJackpotEligibleGamesResponse.ts +4 -1
- package/src/MiniGames/SAWGameType.ts +3 -3
- package/src/Missions/UserAchievement.ts +3 -2
- package/src/SmarticoLib/index.ts +7 -0
- package/src/Tournaments/GetTournamentInfoResponse.ts +2 -1
- package/src/WSAPI/WSAPITypes.ts +6 -0
|
@@ -10,7 +10,7 @@ export declare enum SAWGameType {
|
|
|
10
10
|
TreasureHunt = 9,
|
|
11
11
|
Voyager = 10,
|
|
12
12
|
Plinko = 11,
|
|
13
|
-
|
|
13
|
+
CoinFlip = 12
|
|
14
14
|
}
|
|
15
15
|
export declare enum SAWGameTypeName {
|
|
16
16
|
SpinAWheel = "wheel",
|
|
@@ -24,7 +24,7 @@ export declare enum SAWGameTypeName {
|
|
|
24
24
|
TreasureHunt = "treasure_hunt",
|
|
25
25
|
Voyager = "voyager",
|
|
26
26
|
Plinko = "plinko",
|
|
27
|
-
|
|
27
|
+
CoinFlip = "coin_flip",
|
|
28
28
|
Unknown = "unknown"
|
|
29
29
|
}
|
|
30
30
|
/** @hidden */
|
|
@@ -113,6 +113,8 @@ export interface PublicProperties {
|
|
|
113
113
|
core_inbox_unread_count?: number;
|
|
114
114
|
is_visitor?: boolean;
|
|
115
115
|
core_registration_date?: number;
|
|
116
|
+
core_recommended_deposit_amount?: number;
|
|
117
|
+
core_recommended_casino_bet_amount?: number;
|
|
116
118
|
}
|
|
117
119
|
declare enum ClassId {
|
|
118
120
|
PING = 1,
|
|
@@ -819,6 +821,10 @@ export interface TUserProfile {
|
|
|
819
821
|
public_username?: string;
|
|
820
822
|
/** THe number of unread inbox messages */
|
|
821
823
|
core_inbox_unread_count?: number;
|
|
824
|
+
/** The recommended deposit amount for the user */
|
|
825
|
+
core_recommended_deposit_amount?: number;
|
|
826
|
+
/** The recommended casino bet amount for the user */
|
|
827
|
+
core_recommended_casino_bet_amount?: number;
|
|
822
828
|
}
|
|
823
829
|
/**
|
|
824
830
|
* TLevel describes the information of each level defined in the system
|
|
@@ -210,6 +210,10 @@ export interface TUserProfile {
|
|
|
210
210
|
public_username?: string;
|
|
211
211
|
/** THe number of unread inbox messages */
|
|
212
212
|
core_inbox_unread_count?: number;
|
|
213
|
+
/** The recommended deposit amount for the user */
|
|
214
|
+
core_recommended_deposit_amount?: number;
|
|
215
|
+
/** The recommended casino bet amount for the user */
|
|
216
|
+
core_recommended_casino_bet_amount?: number;
|
|
213
217
|
}
|
|
214
218
|
/**
|
|
215
219
|
* TLevel describes the information of each level defined in the system
|
|
@@ -642,6 +646,8 @@ export interface AchRelatedGame {
|
|
|
642
646
|
game_provider: string;
|
|
643
647
|
/** The URL to the mobile game */
|
|
644
648
|
mobile_spec_link: string;
|
|
649
|
+
/** The priority of the game */
|
|
650
|
+
priority?: number;
|
|
645
651
|
};
|
|
646
652
|
}
|
|
647
653
|
/**
|
package/dist/index.js
CHANGED
|
@@ -366,7 +366,7 @@ exports.SAWGameType = void 0;
|
|
|
366
366
|
SAWGameType[SAWGameType["TreasureHunt"] = 9] = "TreasureHunt";
|
|
367
367
|
SAWGameType[SAWGameType["Voyager"] = 10] = "Voyager";
|
|
368
368
|
SAWGameType[SAWGameType["Plinko"] = 11] = "Plinko";
|
|
369
|
-
SAWGameType[SAWGameType["
|
|
369
|
+
SAWGameType[SAWGameType["CoinFlip"] = 12] = "CoinFlip";
|
|
370
370
|
})(exports.SAWGameType || (exports.SAWGameType = {}));
|
|
371
371
|
exports.SAWGameTypeName = void 0;
|
|
372
372
|
(function (SAWGameTypeName) {
|
|
@@ -381,13 +381,13 @@ exports.SAWGameTypeName = void 0;
|
|
|
381
381
|
SAWGameTypeName["TreasureHunt"] = "treasure_hunt";
|
|
382
382
|
SAWGameTypeName["Voyager"] = "voyager";
|
|
383
383
|
SAWGameTypeName["Plinko"] = "plinko";
|
|
384
|
-
SAWGameTypeName["
|
|
384
|
+
SAWGameTypeName["CoinFlip"] = "coin_flip";
|
|
385
385
|
SAWGameTypeName["Unknown"] = "unknown";
|
|
386
386
|
})(exports.SAWGameTypeName || (exports.SAWGameTypeName = {}));
|
|
387
387
|
/** @hidden */
|
|
388
388
|
var SAWGameTypeNamed = function SAWGameTypeNamed(type) {
|
|
389
389
|
var _SAWGameType$SpinAWhe;
|
|
390
|
-
return (_SAWGameType$SpinAWhe = {}, _SAWGameType$SpinAWhe[exports.SAWGameType.SpinAWheel] = exports.SAWGameTypeName.SpinAWheel, _SAWGameType$SpinAWhe[exports.SAWGameType.ScratchCard] = exports.SAWGameTypeName.ScratchCard, _SAWGameType$SpinAWhe[exports.SAWGameType.MatchX] = exports.SAWGameTypeName.MatchX, _SAWGameType$SpinAWhe[exports.SAWGameType.GiftBox] = exports.SAWGameTypeName.GiftBox, _SAWGameType$SpinAWhe[exports.SAWGameType.PrizeDrop] = exports.SAWGameTypeName.PrizeDrop, _SAWGameType$SpinAWhe[exports.SAWGameType.Quiz] = exports.SAWGameTypeName.Quiz, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxWeekdays] = exports.SAWGameTypeName.LootboxWeekdays, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxCalendarDays] = exports.SAWGameTypeName.LootboxCalendarDays, _SAWGameType$SpinAWhe[exports.SAWGameType.TreasureHunt] = exports.SAWGameTypeName.TreasureHunt, _SAWGameType$SpinAWhe[exports.SAWGameType.Voyager] = exports.SAWGameTypeName.Voyager, _SAWGameType$SpinAWhe[exports.SAWGameType.Plinko] = exports.SAWGameTypeName.Plinko, _SAWGameType$SpinAWhe[exports.SAWGameType
|
|
390
|
+
return (_SAWGameType$SpinAWhe = {}, _SAWGameType$SpinAWhe[exports.SAWGameType.SpinAWheel] = exports.SAWGameTypeName.SpinAWheel, _SAWGameType$SpinAWhe[exports.SAWGameType.ScratchCard] = exports.SAWGameTypeName.ScratchCard, _SAWGameType$SpinAWhe[exports.SAWGameType.MatchX] = exports.SAWGameTypeName.MatchX, _SAWGameType$SpinAWhe[exports.SAWGameType.GiftBox] = exports.SAWGameTypeName.GiftBox, _SAWGameType$SpinAWhe[exports.SAWGameType.PrizeDrop] = exports.SAWGameTypeName.PrizeDrop, _SAWGameType$SpinAWhe[exports.SAWGameType.Quiz] = exports.SAWGameTypeName.Quiz, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxWeekdays] = exports.SAWGameTypeName.LootboxWeekdays, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxCalendarDays] = exports.SAWGameTypeName.LootboxCalendarDays, _SAWGameType$SpinAWhe[exports.SAWGameType.TreasureHunt] = exports.SAWGameTypeName.TreasureHunt, _SAWGameType$SpinAWhe[exports.SAWGameType.Voyager] = exports.SAWGameTypeName.Voyager, _SAWGameType$SpinAWhe[exports.SAWGameType.Plinko] = exports.SAWGameTypeName.Plinko, _SAWGameType$SpinAWhe[exports.SAWGameType.CoinFlip] = exports.SAWGameTypeName.CoinFlip, _SAWGameType$SpinAWhe)[type] || exports.SAWGameTypeName.Unknown;
|
|
391
391
|
};
|
|
392
392
|
|
|
393
393
|
exports.SAWPrizeType = void 0;
|
|
@@ -1517,7 +1517,7 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
|
|
|
1517
1517
|
stage_image: t.task_public_meta.stage_image
|
|
1518
1518
|
};
|
|
1519
1519
|
}),
|
|
1520
|
-
related_games: (r.related_games || []).map(function (g) {
|
|
1520
|
+
related_games: (r.related_games || []).map(function (g, i) {
|
|
1521
1521
|
return {
|
|
1522
1522
|
ext_game_id: g.ext_game_id,
|
|
1523
1523
|
game_public_meta: {
|
|
@@ -1527,7 +1527,8 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
|
|
|
1527
1527
|
enabled: g.game_public_meta.enabled,
|
|
1528
1528
|
game_categories: g.game_public_meta.game_categories,
|
|
1529
1529
|
game_provider: g.game_public_meta.game_provider,
|
|
1530
|
-
mobile_spec_link: g.game_public_meta.mobile_spec_link
|
|
1530
|
+
mobile_spec_link: g.game_public_meta.mobile_spec_link,
|
|
1531
|
+
priority: i + 1
|
|
1531
1532
|
}
|
|
1532
1533
|
};
|
|
1533
1534
|
}),
|
|
@@ -1778,7 +1779,7 @@ var TournamentItemsTransform = function TournamentItemsTransform(items) {
|
|
|
1778
1779
|
|
|
1779
1780
|
var tournamentInfoItemTransform = function tournamentInfoItemTransform(t) {
|
|
1780
1781
|
var response = _extends({}, TournamentItemsTransform([t.tournamentInfo.tournamentLobbyInfo])[0], {
|
|
1781
|
-
related_games: (t.tournamentInfo.tournamentLobbyInfo.related_games || []).map(function (g) {
|
|
1782
|
+
related_games: (t.tournamentInfo.tournamentLobbyInfo.related_games || []).map(function (g, i) {
|
|
1782
1783
|
return {
|
|
1783
1784
|
ext_game_id: g.ext_game_id,
|
|
1784
1785
|
game_public_meta: {
|
|
@@ -1788,7 +1789,8 @@ var tournamentInfoItemTransform = function tournamentInfoItemTransform(t) {
|
|
|
1788
1789
|
enabled: g.game_public_meta.enabled,
|
|
1789
1790
|
game_categories: g.game_public_meta.game_categories,
|
|
1790
1791
|
game_provider: g.game_public_meta.game_provider,
|
|
1791
|
-
mobile_spec_link: g.game_public_meta.mobile_spec_link
|
|
1792
|
+
mobile_spec_link: g.game_public_meta.mobile_spec_link,
|
|
1793
|
+
priority: i + 1
|
|
1792
1794
|
}
|
|
1793
1795
|
};
|
|
1794
1796
|
}),
|
|
@@ -3943,7 +3945,7 @@ var GetJackpotWinnersResponseTransform = function GetJackpotWinnersResponseTrans
|
|
|
3943
3945
|
*/
|
|
3944
3946
|
var GetJackpotEligibleGamesResponseTransform = function GetJackpotEligibleGamesResponseTransform(_ref) {
|
|
3945
3947
|
var eligible_games = _ref.eligible_games;
|
|
3946
|
-
var games = eligible_games.map(function (game) {
|
|
3948
|
+
var games = eligible_games.map(function (game, i) {
|
|
3947
3949
|
return {
|
|
3948
3950
|
game_id: game.ach_game_id,
|
|
3949
3951
|
ext_game_id: game.ext_game_id,
|
|
@@ -3953,7 +3955,8 @@ var GetJackpotEligibleGamesResponseTransform = function GetJackpotEligibleGamesR
|
|
|
3953
3955
|
enabled: game.game_public_meta.enabled,
|
|
3954
3956
|
game_categories: game.game_public_meta.game_categories,
|
|
3955
3957
|
game_provider: game.game_public_meta.game_provider,
|
|
3956
|
-
mobile_spec_link: game.game_public_meta.mobile_spec_link
|
|
3958
|
+
mobile_spec_link: game.game_public_meta.mobile_spec_link,
|
|
3959
|
+
priority: i + 1
|
|
3957
3960
|
};
|
|
3958
3961
|
});
|
|
3959
3962
|
return {
|