@smartico/public-api 0.0.154 → 0.0.155
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/.prettierrc +12 -0
- package/dist/Base/ProtocolRequest.d.ts +1 -1
- package/dist/Base/ProtocolResponse.d.ts +1 -1
- package/dist/Core/CheckSegmentMatchRequest.d.ts +1 -1
- package/dist/Core/CheckSegmentMatchResponse.d.ts +1 -1
- package/dist/Core/GetAchievementsUserInfoRequest.d.ts +1 -1
- package/dist/Core/GetAchievementsUserInfoResponse.d.ts +1 -1
- package/dist/Core/GetLabelInfoRequest.d.ts +1 -1
- package/dist/Core/GetLabelInfoResponse.d.ts +1 -1
- package/dist/Core/GetTranslationsRequest.d.ts +2 -2
- package/dist/Core/GetTranslationsResponse.d.ts +1 -1
- package/dist/Core/ResponseIdentify.d.ts +2 -2
- package/dist/CustomSections/GetCustomSectionsRequest.d.ts +1 -1
- package/dist/CustomSections/GetCustomSectionsResponse.d.ts +2 -2
- package/dist/CustomSections/UICustomSection.d.ts +2 -2
- package/dist/GResponse.d.ts +1 -1
- package/dist/Inbox/GetInboxMessagesRequest.d.ts +1 -1
- package/dist/Inbox/GetInboxMessagesResponse.d.ts +3 -3
- package/dist/Inbox/InboxMessage.d.ts +2 -2
- package/dist/Inbox/MarkInboxMessageDeletedRequest.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageDeletedResponse.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +1 -1
- package/dist/Inbox/index.d.ts +8 -8
- package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +1 -1
- package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +2 -2
- package/dist/Jackpots/GetJackpotsRequest.d.ts +1 -1
- package/dist/Jackpots/GetJackpotsResponse.d.ts +2 -2
- package/dist/Jackpots/JackpotDetails.d.ts +6 -6
- package/dist/Jackpots/JackpotWinPush.d.ts +3 -3
- package/dist/Jackpots/JackpotsOptinRequest.d.ts +1 -1
- package/dist/Jackpots/JackpotsOptinResponse.d.ts +1 -1
- package/dist/Jackpots/JackpotsOptoutRequest.d.ts +1 -1
- package/dist/Jackpots/JackpotsOptoutResponse.d.ts +1 -1
- package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +2 -2
- package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +2 -2
- package/dist/Leaderboard/LeaderBoardDetails.d.ts +3 -3
- package/dist/Leaderboard/LeaderBoards.d.ts +2 -2
- package/dist/Leaderboard/index.d.ts +6 -6
- package/dist/Level/GetLevelMapResponse.d.ts +3 -3
- package/dist/Level/Level.d.ts +1 -1
- package/dist/MiniGames/SAWAcknowledgeSpinPushRequest.d.ts +1 -1
- package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +1 -1
- package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +1 -1
- package/dist/MiniGames/SAWDoSpinRequest.d.ts +1 -1
- package/dist/MiniGames/SAWDoSpinResponse.d.ts +2 -2
- package/dist/MiniGames/SAWEventSawPush.d.ts +1 -1
- package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +1 -1
- package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +3 -3
- package/dist/MiniGames/SAWPrize.d.ts +2 -2
- package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +3 -1
- package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +1 -1
- package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +4 -3
- package/dist/MiniGames/SAWPrizeUI.d.ts +2 -2
- package/dist/MiniGames/SAWSpinsCountPush.d.ts +1 -1
- package/dist/MiniGames/SAWTemplate.d.ts +4 -4
- package/dist/MiniGames/SAWTemplateUI.d.ts +1 -1
- package/dist/MiniGames/SAWUtils.d.ts +1 -1
- package/dist/MiniGames/index.d.ts +24 -22
- package/dist/Missions/AchClaimPrizeRequest.d.ts +1 -1
- package/dist/Missions/AchClaimPrizeResponse.d.ts +1 -1
- package/dist/Missions/AchievementCategory.d.ts +2 -2
- package/dist/Missions/AchievementOptinRequest.d.ts +1 -1
- package/dist/Missions/AchievementOptinResponse.d.ts +1 -1
- package/dist/Missions/GetAchCategoriesRequest.d.ts +1 -1
- package/dist/Missions/GetAchCategoriesResponse.d.ts +2 -2
- package/dist/Missions/GetAchievementMapRequest.d.ts +1 -1
- package/dist/Missions/GetAchievementMapResponse.d.ts +2 -2
- package/dist/Missions/GetRelatedAchTourRequest.d.ts +1 -1
- package/dist/Missions/GetRelatedAchTourResponse.d.ts +3 -3
- package/dist/Missions/ReloadAchievementsEvent.d.ts +2 -2
- package/dist/Missions/UserAchievement.d.ts +7 -7
- package/dist/Missions/UserAchievementTask.d.ts +2 -2
- package/dist/Missions/index.d.ts +13 -13
- package/dist/Quiz/MarketsInfo.d.ts +2 -2
- package/dist/Quiz/MarketsPerSport.d.ts +1 -1
- package/dist/SmarticoAPI.d.ts +8 -8
- package/dist/SmarticoLib/index.d.ts +39 -39
- package/dist/Store/BuyStoreItemRequest.d.ts +1 -1
- package/dist/Store/BuyStoreItemResponse.d.ts +1 -1
- package/dist/Store/GetCategoriesStoreResponse.d.ts +2 -2
- package/dist/Store/GetStoreHistoryRequest.d.ts +1 -1
- package/dist/Store/GetStoreHistoryResponse.d.ts +2 -2
- package/dist/Store/GetStoreItemsResponse.d.ts +2 -2
- package/dist/Store/StoreCategory.d.ts +2 -2
- package/dist/Store/StoreItem.d.ts +3 -3
- package/dist/Store/StoreItemPurchased.d.ts +2 -2
- package/dist/Store/index.d.ts +10 -10
- package/dist/Tournaments/GetTournamentInfoRequest.d.ts +1 -1
- package/dist/Tournaments/GetTournamentInfoResponse.d.ts +5 -5
- package/dist/Tournaments/GetTournamentsRequest.d.ts +1 -1
- package/dist/Tournaments/GetTournamentsResponse.d.ts +2 -2
- package/dist/Tournaments/Tournament.d.ts +8 -8
- package/dist/Tournaments/TournamentPrize.d.ts +1 -1
- package/dist/Tournaments/TournamentRegisterRequest.d.ts +1 -1
- package/dist/Tournaments/TournamentRegisterResponse.d.ts +2 -2
- package/dist/Tournaments/TournamentUtils.d.ts +3 -3
- package/dist/Tournaments/index.d.ts +16 -16
- package/dist/WSAPI/WSAPI.d.ts +65 -65
- package/dist/WSAPI/WSAPITypes.d.ts +18 -18
- package/dist/index.js +76 -78
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +103 -103
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Base/AchRelatedGame.ts +13 -13
- package/src/Base/ClassId.ts +118 -121
- package/src/Base/ProtocolMessage.ts +6 -7
- package/src/Base/ProtocolRequest.ts +4 -5
- package/src/Base/ProtocolResponse.ts +3 -5
- package/src/CookieStore.ts +10 -11
- package/src/Core/ActivityTypeLimited.ts +17 -18
- package/src/Core/CheckSegmentMatchRequest.ts +2 -3
- package/src/Core/CheckSegmentMatchResponse.ts +6 -6
- package/src/Core/CoreUtils.ts +37 -39
- package/src/Core/GetAchievementsUserInfoRequest.ts +2 -4
- package/src/Core/GetAchievementsUserInfoResponse.ts +4 -4
- package/src/Core/GetLabelInfoRequest.ts +2 -4
- package/src/Core/GetLabelInfoResponse.ts +4 -4
- package/src/Core/GetTranslationsRequest.ts +5 -7
- package/src/Core/GetTranslationsResponse.ts +3 -5
- package/src/Core/PublicLabelSettings.ts +29 -30
- package/src/Core/PublicProperties.ts +7 -7
- package/src/Core/ResponseIdentify.ts +12 -12
- package/src/Core/TranslationArea.ts +8 -9
- package/src/Core/index.ts +1 -1
- package/src/CustomSections/AchCustomSection.ts +20 -20
- package/src/CustomSections/GetCustomSectionsRequest.ts +2 -4
- package/src/CustomSections/GetCustomSectionsResponse.ts +4 -5
- package/src/CustomSections/UICustomSection.ts +30 -29
- package/src/CustomSections/index.ts +4 -4
- package/src/ErrorCodes.ts +11 -12
- package/src/GResponse.ts +5 -5
- package/src/ILogger.ts +6 -10
- package/src/Inbox/GetInboxMessagesRequest.ts +4 -5
- package/src/Inbox/GetInboxMessagesResponse.ts +15 -17
- package/src/Inbox/InboxMessage.ts +31 -33
- package/src/Inbox/InboxMessageType.ts +9 -9
- package/src/Inbox/MarkInboxMessageDeletedRequest.ts +3 -3
- package/src/Inbox/MarkInboxMessageDeletedResponse.ts +3 -3
- package/src/Inbox/MarkInboxMessageReadRequest.ts +4 -5
- package/src/Inbox/MarkInboxMessageReadResponse.ts +4 -5
- package/src/Inbox/MarkInboxMessageStarredRequest.ts +4 -5
- package/src/Inbox/MarkInboxMessageStarredResponse.ts +4 -5
- package/src/Inbox/index.ts +10 -10
- package/src/IntUtils.ts +72 -85
- package/src/Jackpots/GetJackpotsPotsRequest.ts +3 -3
- package/src/Jackpots/GetJackpotsPotsResponse.ts +3 -5
- package/src/Jackpots/GetJackpotsRequest.ts +4 -6
- package/src/Jackpots/GetJackpotsResponse.ts +5 -7
- package/src/Jackpots/JackPotWinner.ts +11 -12
- package/src/Jackpots/JackpotContributionType.ts +3 -4
- package/src/Jackpots/JackpotDetails.ts +31 -31
- package/src/Jackpots/JackpotHtmlTemplate.ts +3 -3
- package/src/Jackpots/JackpotPot.ts +11 -12
- package/src/Jackpots/JackpotPublicMeta.ts +16 -16
- package/src/Jackpots/JackpotType.ts +2 -5
- package/src/Jackpots/JackpotWinPush.ts +6 -6
- package/src/Jackpots/JackpotsOptinRequest.ts +3 -5
- package/src/Jackpots/JackpotsOptinResponse.ts +2 -4
- package/src/Jackpots/JackpotsOptoutRequest.ts +3 -5
- package/src/Jackpots/JackpotsOptoutResponse.ts +2 -4
- package/src/Jackpots/index.ts +16 -16
- package/src/Leaderboard/GetLeaderBoardsRequest.ts +8 -9
- package/src/Leaderboard/GetLeaderBoardsResponse.ts +4 -6
- package/src/Leaderboard/LeaderBoardDetails.ts +11 -12
- package/src/Leaderboard/LeaderBoardPeriodType.ts +3 -3
- package/src/Leaderboard/LeaderBoardPosition.ts +9 -10
- package/src/Leaderboard/LeaderBoardPublicMeta.ts +3 -4
- package/src/Leaderboard/LeaderBoards.ts +42 -42
- package/src/Leaderboard/index.ts +6 -6
- package/src/Level/GetLevelMapResponse.ts +18 -21
- package/src/Level/Level.ts +10 -11
- package/src/Level/LevelPublicMeta.ts +17 -17
- package/src/Level/index.ts +3 -3
- package/src/MiniGames/SAWAcknowledgeSpinPushRequest.ts +3 -4
- package/src/MiniGames/SAWAcknowledgeType.ts +3 -4
- package/src/MiniGames/SAWAskForUsername.ts +3 -4
- package/src/MiniGames/SAWBuyInType.ts +15 -13
- package/src/MiniGames/SAWDoAknowledgeRequest.ts +3 -3
- package/src/MiniGames/SAWDoAknowledgeResponse.ts +3 -3
- package/src/MiniGames/SAWDoSpinRequest.ts +3 -5
- package/src/MiniGames/SAWDoSpinResponse.ts +10 -11
- package/src/MiniGames/SAWEventSawPush.ts +3 -4
- package/src/MiniGames/SAWGameType.ts +23 -21
- package/src/MiniGames/SAWGetTemplatesRequest.ts +3 -3
- package/src/MiniGames/SAWGetTemplatesResponse.ts +53 -65
- package/src/MiniGames/SAWPrize.ts +11 -12
- package/src/MiniGames/SAWPrizeDropAknowledgeRequest.ts +5 -3
- package/src/MiniGames/SAWPrizeDropAknowledgeResponse.ts +3 -3
- package/src/MiniGames/SAWPrizeDropWinPush.ts +9 -8
- package/src/MiniGames/SAWPrizeType.ts +23 -22
- package/src/MiniGames/SAWPrizeUI.ts +17 -17
- package/src/MiniGames/SAWSpinErrorCode.ts +15 -16
- package/src/MiniGames/SAWSpinsCountPush.ts +4 -4
- package/src/MiniGames/SAWTemplate.ts +29 -29
- package/src/MiniGames/SAWTemplateUI.ts +45 -47
- package/src/MiniGames/SAWUtils.ts +23 -26
- package/src/MiniGames/SAWWinSoundType.ts +10 -11
- package/src/MiniGames/index.ts +24 -22
- package/src/Missions/AchCategoryPublicMeta.ts +2 -3
- package/src/Missions/AchClaimPrizeRequest.ts +4 -5
- package/src/Missions/AchClaimPrizeResponse.ts +3 -4
- package/src/Missions/AchievementCategory.ts +14 -15
- package/src/Missions/AchievementOptinRequest.ts +3 -5
- package/src/Missions/AchievementOptinResponse.ts +2 -4
- package/src/Missions/AchievementPublicMeta.ts +19 -20
- package/src/Missions/AchievementStatus.ts +7 -8
- package/src/Missions/AchievementTaskPublicMeta.ts +2 -3
- package/src/Missions/AchievementTaskType.ts +2 -2
- package/src/Missions/AchievementType.ts +2 -3
- package/src/Missions/GetAchCategoriesRequest.ts +2 -4
- package/src/Missions/GetAchCategoriesResponse.ts +4 -5
- package/src/Missions/GetAchievementMapRequest.ts +2 -4
- package/src/Missions/GetAchievementMapResponse.ts +3 -5
- package/src/Missions/GetRelatedAchTourRequest.ts +3 -4
- package/src/Missions/GetRelatedAchTourResponse.ts +5 -7
- package/src/Missions/ReloadAchievementsEvent.ts +5 -5
- package/src/Missions/ScheduledMissionType.ts +4 -5
- package/src/Missions/UserAchievement.ts +104 -108
- package/src/Missions/UserAchievementTask.ts +13 -15
- package/src/Missions/index.ts +19 -19
- package/src/NodeCache.ts +44 -49
- package/src/OCache.ts +51 -57
- package/src/Quiz/MarketsAnswers.ts +34 -34
- package/src/Quiz/MarketsInfo.ts +184 -177
- package/src/Quiz/MarketsPerSport.ts +30 -37
- package/src/Quiz/MarketsType.ts +28 -28
- package/src/Quiz/ScoreResultTypes.ts +18 -18
- package/src/Quiz/SportTypes.ts +4 -4
- package/src/Quiz/index.ts +6 -6
- package/src/SmarticoAPI.ts +769 -730
- package/src/SmarticoLib/index.ts +1053 -1069
- package/src/Store/BuyStoreItemErrorCode.ts +10 -10
- package/src/Store/BuyStoreItemRequest.ts +2 -2
- package/src/Store/BuyStoreItemResponse.ts +2 -3
- package/src/Store/GetCategoriesStoreResponse.ts +3 -8
- package/src/Store/GetStoreHistoryRequest.ts +3 -3
- package/src/Store/GetStoreHistoryResponse.ts +4 -4
- package/src/Store/GetStoreItemsResponse.ts +3 -4
- package/src/Store/StoreCategory.ts +14 -15
- package/src/Store/StoreCategoryPublicMeta.ts +2 -3
- package/src/Store/StoreItem.ts +32 -33
- package/src/Store/StoreItemPublicMeta.ts +10 -10
- package/src/Store/StoreItemPurchased.ts +40 -40
- package/src/Store/StoreItemType.ts +20 -19
- package/src/Store/index.ts +13 -13
- package/src/Tournaments/GetTournamentInfoRequest.ts +2 -3
- package/src/Tournaments/GetTournamentInfoResponse.ts +45 -48
- package/src/Tournaments/GetTournamentsRequest.ts +2 -4
- package/src/Tournaments/GetTournamentsResponse.ts +7 -14
- package/src/Tournaments/Tournament.ts +109 -115
- package/src/Tournaments/TournamentInstanceStatus.ts +17 -18
- package/src/Tournaments/TournamentPlayer.ts +7 -8
- package/src/Tournaments/TournamentPrize.ts +9 -10
- package/src/Tournaments/TournamentPublicMeta.ts +26 -26
- package/src/Tournaments/TournamentRegisterRequest.ts +2 -3
- package/src/Tournaments/TournamentRegisterResponse.ts +3 -7
- package/src/Tournaments/TournamentRegistrationError.ts +9 -9
- package/src/Tournaments/TournamentRegistrationStatus.ts +25 -27
- package/src/Tournaments/TournamentRegistrationType.ts +15 -16
- package/src/Tournaments/TournamentType.ts +3 -4
- package/src/Tournaments/TournamentUtils.ts +90 -89
- package/src/Tournaments/index.ts +16 -16
- package/src/WSAPI/WSAPI.ts +781 -763
- package/src/WSAPI/WSAPITypes.ts +574 -586
- package/src/index.ts +15 -15
package/src/SmarticoLib/index.ts
CHANGED
|
@@ -24,45 +24,45 @@ declare enum CJMActivityType {
|
|
|
24
24
|
WebHook = 200,
|
|
25
25
|
UserStateCheck = 201,
|
|
26
26
|
Pixel = 300,
|
|
27
|
-
WhatsApp_Connect = 400
|
|
27
|
+
WhatsApp_Connect = 400,
|
|
28
28
|
}
|
|
29
29
|
declare enum PublicLabelSettings {
|
|
30
|
-
PUBLIC_API_URL =
|
|
31
|
-
FCM_CLIENT_CONFIG =
|
|
32
|
-
FCM_SW_URL_V2 =
|
|
33
|
-
RECORDING_ENABLED_FOR_ALL_USERS =
|
|
34
|
-
JS_INJECTION =
|
|
35
|
-
GAMIFICATION_UI_MAIN =
|
|
36
|
-
GAMIFICATION_UI_WIDGET =
|
|
37
|
-
GAMIFICATION_UI_MINI_GAME =
|
|
38
|
-
GAMIFICATION_UI_SETTINGS_V2 =
|
|
39
|
-
GAMIFICATION_UI_MAIN_TEST =
|
|
40
|
-
GAMIFICATION_UI_WIDGET_TEST =
|
|
41
|
-
GAMIFICATION_UI_SETTINGS_TEST_V2 =
|
|
42
|
-
FRONT_END_ALLOWED_LANGUAGES =
|
|
43
|
-
FRONT_END_ALLOW_DOMAINS =
|
|
44
|
-
DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS =
|
|
45
|
-
SHADOW_LABEL_PUBLIC_KEY =
|
|
46
|
-
DYNAMIC_IMAGE_DOMAIN =
|
|
47
|
-
GAMIFICATION_MATCHX_NEW_VERSION =
|
|
48
|
-
GAMIFICATION_WIDGET_BG_OPACITY =
|
|
49
|
-
GAMIFICATION_POPUP_BG_OPACITY =
|
|
50
|
-
GAMIFICATION_POPUP_BG_BLUR =
|
|
51
|
-
GAMIFICATION_UI_LEVEL_ENABLED =
|
|
52
|
-
GAMIFICATION_UI_LEVEL_IMAGE_MOB =
|
|
53
|
-
GAMIFICATION_UI_LEVEL_IMAGE_DESK =
|
|
54
|
-
GAMIFICATION_LEVELS_LOGIC2 =
|
|
55
|
-
GAMIFICATION_LEVELS_LOGIC3 =
|
|
56
|
-
AVATAR_CUSTOM_IMAGE_MAX_ID =
|
|
57
|
-
AVATAR_CUSTOM_IMAGE_FOLDER =
|
|
58
|
-
GAMIFICATION_SHOW_POWERED_BY =
|
|
59
|
-
INBOX_PUBLIC_CDN =
|
|
60
|
-
GAMIFICATION_INBOX_NEW_VERSION =
|
|
61
|
-
GAMIFICATION_INBOX_NEW_VERSION_FOR_TEST_USERS =
|
|
62
|
-
GF_TOURNAMENT_LOBBY_NEW_UI_TEST_USERS =
|
|
63
|
-
GF_TOURNAMENT_LOBBY_NEW_UI =
|
|
64
|
-
GAMIFICATION_CUSTOM_JS =
|
|
65
|
-
GAMIFICATION_DISABLE_FOR_BRAND =
|
|
30
|
+
PUBLIC_API_URL = 'PUBLIC_API_URL',
|
|
31
|
+
FCM_CLIENT_CONFIG = 'FCM_CLIENT_CONFIG',
|
|
32
|
+
FCM_SW_URL_V2 = 'FCM_SW_URL_V2',
|
|
33
|
+
RECORDING_ENABLED_FOR_ALL_USERS = 'RECORDING_ENABLED_FOR_ALL_USERS',
|
|
34
|
+
JS_INJECTION = 'JS_INJECTION',
|
|
35
|
+
GAMIFICATION_UI_MAIN = 'GAMIFICATION_UI_MAIN',
|
|
36
|
+
GAMIFICATION_UI_WIDGET = 'GAMIFICATION_UI_WIDGET',
|
|
37
|
+
GAMIFICATION_UI_MINI_GAME = 'GAMIFICATION_UI_MINI_GAME',
|
|
38
|
+
GAMIFICATION_UI_SETTINGS_V2 = 'GAMIFICATION_UI_SETTINGS_V2',
|
|
39
|
+
GAMIFICATION_UI_MAIN_TEST = 'GAMIFICATION_UI_MAIN_TEST',
|
|
40
|
+
GAMIFICATION_UI_WIDGET_TEST = 'GAMIFICATION_UI_WIDGET_TEST',
|
|
41
|
+
GAMIFICATION_UI_SETTINGS_TEST_V2 = 'GAMIFICATION_UI_SETTINGS_TEST_V2',
|
|
42
|
+
FRONT_END_ALLOWED_LANGUAGES = 'FRONT_END_ALLOWED_LANGUAGES',
|
|
43
|
+
FRONT_END_ALLOW_DOMAINS = 'FRONT_END_ALLOW_DOMAINS',
|
|
44
|
+
DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS = 'DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS',
|
|
45
|
+
SHADOW_LABEL_PUBLIC_KEY = 'SHADOW_LABEL_PUBLIC_KEY',
|
|
46
|
+
DYNAMIC_IMAGE_DOMAIN = 'DYNAMIC_IMAGE_DOMAIN',
|
|
47
|
+
GAMIFICATION_MATCHX_NEW_VERSION = 'GAMIFICATION_MATCHX_NEW_VERSION',
|
|
48
|
+
GAMIFICATION_WIDGET_BG_OPACITY = 'GAMIFICATION_WIDGET_BG_OPACITY',
|
|
49
|
+
GAMIFICATION_POPUP_BG_OPACITY = 'GAMIFICATION_POPUP_BG_OPACITY',
|
|
50
|
+
GAMIFICATION_POPUP_BG_BLUR = 'GAMIFICATION_POPUP_BG_BLUR',
|
|
51
|
+
GAMIFICATION_UI_LEVEL_ENABLED = 'GAMIFICATION_UI_LEVEL_ENABLED',
|
|
52
|
+
GAMIFICATION_UI_LEVEL_IMAGE_MOB = 'GAMIFICATION_UI_LEVEL_IMAGE_MOB',
|
|
53
|
+
GAMIFICATION_UI_LEVEL_IMAGE_DESK = 'GAMIFICATION_UI_LEVEL_IMAGE_DESK',
|
|
54
|
+
GAMIFICATION_LEVELS_LOGIC2 = 'GAMIFICATION_LEVELS_LOGIC2',
|
|
55
|
+
GAMIFICATION_LEVELS_LOGIC3 = 'GAMIFICATION_LEVELS_LOGIC3',
|
|
56
|
+
AVATAR_CUSTOM_IMAGE_MAX_ID = 'AVATAR_CUSTOM_IMAGE_MAX_ID',
|
|
57
|
+
AVATAR_CUSTOM_IMAGE_FOLDER = 'AVATAR_CUSTOM_IMAGE_FOLDER',
|
|
58
|
+
GAMIFICATION_SHOW_POWERED_BY = 'GAMIFICATION_SHOW_POWERED_BY',
|
|
59
|
+
INBOX_PUBLIC_CDN = 'INBOX_PUBLIC_CDN',
|
|
60
|
+
GAMIFICATION_INBOX_NEW_VERSION = 'GAMIFICATION_INBOX_NEW_VERSION',
|
|
61
|
+
GAMIFICATION_INBOX_NEW_VERSION_FOR_TEST_USERS = 'GAMIFICATION_INBOX_NEW_VERSION_FOR_TEST_USERS',
|
|
62
|
+
GF_TOURNAMENT_LOBBY_NEW_UI_TEST_USERS = 'GF_TOURNAMENT_LOBBY_NEW_UI_TEST_USERS',
|
|
63
|
+
GF_TOURNAMENT_LOBBY_NEW_UI = 'GF_TOURNAMENT_LOBBY_NEW_UI',
|
|
64
|
+
GAMIFICATION_CUSTOM_JS = 'GAMIFICATION_CUSTOM_JS',
|
|
65
|
+
GAMIFICATION_DISABLE_FOR_BRAND = 'GAMIFICATION_DISABLE_FOR_BRAND',
|
|
66
66
|
}
|
|
67
67
|
declare enum PushClientPlatform {
|
|
68
68
|
CHROME_DESKTOP = 0,
|
|
@@ -76,7 +76,7 @@ declare enum PushClientPlatform {
|
|
|
76
76
|
CHROME_MOBILE = 8,
|
|
77
77
|
FIREFOX_MOBILE = 9,
|
|
78
78
|
SAFARI_MOBILE = 10,
|
|
79
|
-
OPERA_MOBILE = 11
|
|
79
|
+
OPERA_MOBILE = 11,
|
|
80
80
|
}
|
|
81
81
|
declare enum ClientActivityRequestId {
|
|
82
82
|
MINI_WIDGET_SHOWN = 1,
|
|
@@ -98,23 +98,23 @@ declare enum ClientActivityRequestId {
|
|
|
98
98
|
ENGAGEMENT_FAILED = 30,
|
|
99
99
|
ENGAGEMENT_ACTION = 31,
|
|
100
100
|
ENGAGEMENT_IMPRESSION = 32,
|
|
101
|
-
MISSIONS_CLICK = 201
|
|
101
|
+
MISSIONS_CLICK = 201,
|
|
102
102
|
}
|
|
103
103
|
export interface PublicProperties {
|
|
104
|
-
core_user_language?: string
|
|
105
|
-
ach_points_balance?: number
|
|
106
|
-
ach_points_ever?: number
|
|
107
|
-
core_public_tags?: string[]
|
|
108
|
-
ach_level_current_id?: number
|
|
109
|
-
ach_level_current?: string
|
|
110
|
-
core_is_test_account?: boolean
|
|
111
|
-
avatar_id?: string
|
|
112
|
-
ach_gamification_in_control_group?: boolean
|
|
113
|
-
ach_gamification_ui_explicitly_on?: boolean
|
|
114
|
-
public_username?: string
|
|
115
|
-
core_inbox_unread_count?: number
|
|
116
|
-
is_visitor?: boolean
|
|
117
|
-
core_registration_date?: number
|
|
104
|
+
core_user_language?: string
|
|
105
|
+
ach_points_balance?: number
|
|
106
|
+
ach_points_ever?: number
|
|
107
|
+
core_public_tags?: string[]
|
|
108
|
+
ach_level_current_id?: number
|
|
109
|
+
ach_level_current?: string
|
|
110
|
+
core_is_test_account?: boolean
|
|
111
|
+
avatar_id?: string
|
|
112
|
+
ach_gamification_in_control_group?: boolean
|
|
113
|
+
ach_gamification_ui_explicitly_on?: boolean
|
|
114
|
+
public_username?: string
|
|
115
|
+
core_inbox_unread_count?: number
|
|
116
|
+
is_visitor?: boolean
|
|
117
|
+
core_registration_date?: number
|
|
118
118
|
}
|
|
119
119
|
declare enum ClassId {
|
|
120
120
|
PING = 1,
|
|
@@ -211,14 +211,14 @@ declare enum ClassId {
|
|
|
211
211
|
REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
|
|
212
212
|
REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
|
|
213
213
|
CLIENT_DEBUG_REQUEST = 77777,
|
|
214
|
-
UNSUPPORTED_COMMAND = 99999
|
|
214
|
+
UNSUPPORTED_COMMAND = 99999,
|
|
215
215
|
}
|
|
216
216
|
export interface ILogger {
|
|
217
|
-
debug(...any: any[]): void
|
|
218
|
-
error(...any: any[]): void
|
|
219
|
-
info(...any: any[]): void
|
|
220
|
-
warn(...any: any[]): void
|
|
221
|
-
always(...any: any[]): void
|
|
217
|
+
debug(...any: any[]): void
|
|
218
|
+
error(...any: any[]): void
|
|
219
|
+
info(...any: any[]): void
|
|
220
|
+
warn(...any: any[]): void
|
|
221
|
+
always(...any: any[]): void
|
|
222
222
|
}
|
|
223
223
|
declare enum BuyStoreItemErrorCode {
|
|
224
224
|
FAILED_TO_BUY_SHOP_ITEM = 121,
|
|
@@ -229,91 +229,91 @@ declare enum BuyStoreItemErrorCode {
|
|
|
229
229
|
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004,
|
|
230
230
|
SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
|
|
231
231
|
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006,
|
|
232
|
-
SHOP_FAILED_POOL_EMPTY = 11009
|
|
232
|
+
SHOP_FAILED_POOL_EMPTY = 11009,
|
|
233
233
|
}
|
|
234
234
|
export interface ProtocolMessage {
|
|
235
|
-
cid: number
|
|
236
|
-
ts?: number
|
|
237
|
-
uuid?: string
|
|
235
|
+
cid: number
|
|
236
|
+
ts?: number
|
|
237
|
+
uuid?: string
|
|
238
238
|
}
|
|
239
239
|
export interface ProtocolResponse extends ProtocolMessage {
|
|
240
|
-
errCode?: number
|
|
241
|
-
errMsg?: string
|
|
240
|
+
errCode?: number
|
|
241
|
+
errMsg?: string
|
|
242
242
|
}
|
|
243
243
|
export interface BuyStoreItemResponse extends ProtocolResponse {
|
|
244
|
-
success?: boolean
|
|
244
|
+
success?: boolean
|
|
245
245
|
}
|
|
246
246
|
export interface StoreCategoryPublicMeta {
|
|
247
|
-
name?: string
|
|
248
|
-
order?: number
|
|
247
|
+
name?: string
|
|
248
|
+
order?: number
|
|
249
249
|
}
|
|
250
250
|
export interface StoreCategory {
|
|
251
|
-
id?: number
|
|
252
|
-
publicMeta?: StoreCategoryPublicMeta
|
|
251
|
+
id?: number
|
|
252
|
+
publicMeta?: StoreCategoryPublicMeta
|
|
253
253
|
}
|
|
254
254
|
export interface GetCategoriesStoreResponse extends ProtocolResponse {
|
|
255
|
-
categories: StoreCategory[]
|
|
255
|
+
categories: StoreCategory[]
|
|
256
256
|
}
|
|
257
257
|
export interface StoreItemPublicMeta {
|
|
258
|
-
price: string
|
|
259
|
-
image_url: string
|
|
260
|
-
name: string
|
|
261
|
-
description: string
|
|
262
|
-
label_tag: string
|
|
263
|
-
custom_label_tag?: string
|
|
264
|
-
limit_message: string
|
|
265
|
-
priority: number
|
|
266
|
-
related_items: number[]
|
|
267
|
-
hint_text: string
|
|
258
|
+
price: string
|
|
259
|
+
image_url: string
|
|
260
|
+
name: string
|
|
261
|
+
description: string
|
|
262
|
+
label_tag: string
|
|
263
|
+
custom_label_tag?: string
|
|
264
|
+
limit_message: string
|
|
265
|
+
priority: number
|
|
266
|
+
related_items: number[]
|
|
267
|
+
hint_text: string
|
|
268
268
|
}
|
|
269
269
|
declare enum StoreItemType {
|
|
270
270
|
Bonus = 1,
|
|
271
|
-
Manual = 2
|
|
271
|
+
Manual = 2,
|
|
272
272
|
}
|
|
273
273
|
export interface StoreItem {
|
|
274
|
-
id: number
|
|
275
|
-
itemTypeId: StoreItemType
|
|
276
|
-
itemPublicMeta: StoreItemPublicMeta
|
|
277
|
-
categoryIds?: number[]
|
|
278
|
-
canBuy?: boolean
|
|
279
|
-
shopPool: number
|
|
274
|
+
id: number
|
|
275
|
+
itemTypeId: StoreItemType
|
|
276
|
+
itemPublicMeta: StoreItemPublicMeta
|
|
277
|
+
categoryIds?: number[]
|
|
278
|
+
canBuy?: boolean
|
|
279
|
+
shopPool: number
|
|
280
280
|
}
|
|
281
281
|
export interface GetStoreItemsResponse extends ProtocolResponse {
|
|
282
|
-
items: StoreItem[]
|
|
282
|
+
items: StoreItem[]
|
|
283
283
|
}
|
|
284
284
|
export interface StoreItemPurchased extends StoreItem {
|
|
285
|
-
purchase_ts: number
|
|
286
|
-
purchase_points_amount: number
|
|
285
|
+
purchase_ts: number
|
|
286
|
+
purchase_points_amount: number
|
|
287
287
|
}
|
|
288
288
|
export interface GetStoreHistoryResponse extends ProtocolResponse {
|
|
289
|
-
items: StoreItemPurchased[]
|
|
290
|
-
hasMore: boolean
|
|
289
|
+
items: StoreItemPurchased[]
|
|
290
|
+
hasMore: boolean
|
|
291
291
|
}
|
|
292
292
|
declare enum SAWBuyInType {
|
|
293
293
|
Free = 1,
|
|
294
294
|
Points = 2,
|
|
295
|
-
Spins = 3
|
|
295
|
+
Spins = 3,
|
|
296
296
|
}
|
|
297
297
|
declare enum SAWBuyInTypeName {
|
|
298
|
-
Free =
|
|
299
|
-
Points =
|
|
300
|
-
Spins =
|
|
301
|
-
Unknown =
|
|
298
|
+
Free = 'free',
|
|
299
|
+
Points = 'points',
|
|
300
|
+
Spins = 'spins',
|
|
301
|
+
Unknown = 'unknown',
|
|
302
302
|
}
|
|
303
303
|
declare enum SAWGameType {
|
|
304
304
|
SpinAWheel = 1,
|
|
305
305
|
ScratchCard = 2,
|
|
306
306
|
MatchX = 3,
|
|
307
307
|
GiftBox = 4,
|
|
308
|
-
PrizeDrop = 5
|
|
308
|
+
PrizeDrop = 5,
|
|
309
309
|
}
|
|
310
310
|
declare enum SAWGameTypeName {
|
|
311
|
-
SpinAWheel =
|
|
312
|
-
ScratchCard =
|
|
313
|
-
MatchX =
|
|
314
|
-
GiftBox =
|
|
315
|
-
PrizeDrop =
|
|
316
|
-
Unknown =
|
|
311
|
+
SpinAWheel = 'wheel',
|
|
312
|
+
ScratchCard = 'scratch',
|
|
313
|
+
MatchX = 'matchx',
|
|
314
|
+
GiftBox = 'giftbox',
|
|
315
|
+
PrizeDrop = 'prizedrop',
|
|
316
|
+
Unknown = 'unknown',
|
|
317
317
|
}
|
|
318
318
|
declare enum SAWPrizeType {
|
|
319
319
|
NO_PRIZE = 1,
|
|
@@ -321,124 +321,124 @@ declare enum SAWPrizeType {
|
|
|
321
321
|
BONUS = 3,
|
|
322
322
|
MANUAL = 4,
|
|
323
323
|
SPIN = 5,
|
|
324
|
-
JACKPOT = 6
|
|
324
|
+
JACKPOT = 6,
|
|
325
325
|
}
|
|
326
326
|
declare enum MiniGamePrizeTypeName {
|
|
327
|
-
NO_PRIZE =
|
|
328
|
-
POINTS =
|
|
329
|
-
BONUS =
|
|
330
|
-
MANUAL =
|
|
331
|
-
SPIN =
|
|
332
|
-
JACKPOT =
|
|
333
|
-
UNKNOWN =
|
|
327
|
+
NO_PRIZE = 'no-prize',
|
|
328
|
+
POINTS = 'points',
|
|
329
|
+
BONUS = 'bonus',
|
|
330
|
+
MANUAL = 'manual',
|
|
331
|
+
SPIN = 'spin',
|
|
332
|
+
JACKPOT = 'jackpot',
|
|
333
|
+
UNKNOWN = 'unknown',
|
|
334
334
|
}
|
|
335
335
|
declare enum SAWAcknowledgeType {
|
|
336
336
|
Silent = 1,
|
|
337
337
|
QuickMessage = 2,
|
|
338
|
-
FullMessage = 3
|
|
338
|
+
FullMessage = 3,
|
|
339
339
|
}
|
|
340
340
|
declare enum SAWWinSoundType {
|
|
341
341
|
Disappointing = 1,
|
|
342
342
|
Positive = 2,
|
|
343
343
|
HighlyPositive = 3,
|
|
344
344
|
NoSound = 4,
|
|
345
|
-
Custom = 5
|
|
345
|
+
Custom = 5,
|
|
346
346
|
}
|
|
347
347
|
export interface SAWPrizeUI {
|
|
348
|
-
position?: number
|
|
349
|
-
name: string
|
|
350
|
-
name_original: string
|
|
351
|
-
aknowledge_message: string
|
|
352
|
-
sectors: number[]
|
|
353
|
-
acknowledge_type: SAWAcknowledgeType
|
|
354
|
-
acknowledge_dp?: string
|
|
355
|
-
font_size?: number
|
|
356
|
-
font_size_mobile?: number
|
|
357
|
-
sound_type: SAWWinSoundType
|
|
358
|
-
icon?: string
|
|
359
|
-
replace_name_with_image?: boolean
|
|
360
|
-
acknowledge_action_title?: string
|
|
361
|
-
custom_win_sound?: string
|
|
348
|
+
position?: number
|
|
349
|
+
name: string
|
|
350
|
+
name_original: string
|
|
351
|
+
aknowledge_message: string
|
|
352
|
+
sectors: number[]
|
|
353
|
+
acknowledge_type: SAWAcknowledgeType
|
|
354
|
+
acknowledge_dp?: string
|
|
355
|
+
font_size?: number
|
|
356
|
+
font_size_mobile?: number
|
|
357
|
+
sound_type: SAWWinSoundType
|
|
358
|
+
icon?: string
|
|
359
|
+
replace_name_with_image?: boolean
|
|
360
|
+
acknowledge_action_title?: string
|
|
361
|
+
custom_win_sound?: string
|
|
362
362
|
}
|
|
363
363
|
export interface SAWPrize {
|
|
364
|
-
saw_prize_id: number
|
|
365
|
-
saw_prize_ui_definition: SAWPrizeUI
|
|
366
|
-
prize_value?: number
|
|
367
|
-
prize_type_id: SAWPrizeType
|
|
368
|
-
place_from?: number
|
|
369
|
-
place_to?: number
|
|
370
|
-
sawUniqueWinId?: string
|
|
364
|
+
saw_prize_id: number
|
|
365
|
+
saw_prize_ui_definition: SAWPrizeUI
|
|
366
|
+
prize_value?: number
|
|
367
|
+
prize_type_id: SAWPrizeType
|
|
368
|
+
place_from?: number
|
|
369
|
+
place_to?: number
|
|
370
|
+
sawUniqueWinId?: string
|
|
371
371
|
}
|
|
372
372
|
declare enum SAWAskForUsername {
|
|
373
|
-
NOASK =
|
|
374
|
-
ONSUMBIT =
|
|
373
|
+
NOASK = 'no-ask',
|
|
374
|
+
ONSUMBIT = 'on-submit',
|
|
375
375
|
}
|
|
376
376
|
export interface SAWTemplateUI {
|
|
377
|
-
skin: string
|
|
378
|
-
name: string
|
|
379
|
-
description?: string
|
|
380
|
-
over_limit_message?: string
|
|
381
|
-
no_attempts_message?: string
|
|
382
|
-
thumbnail?: string
|
|
383
|
-
sectors_count: number
|
|
384
|
-
priority: number
|
|
385
|
-
flow_builder_only: boolean
|
|
386
|
-
background_image?: string
|
|
387
|
-
background_image_mobile?: string
|
|
388
|
-
background_sound?: string
|
|
389
|
-
spin_animation_duration?: number
|
|
390
|
-
scratch_logo?: string
|
|
391
|
-
scratch_cover?: string
|
|
392
|
-
scratch_bg_desktop?: string
|
|
393
|
-
scratch_bg_mobile?: string
|
|
394
|
-
scratch_cursor?: string
|
|
395
|
-
custom_css?: string
|
|
396
|
-
custom_skin_folder?: string
|
|
397
|
-
jackpot_symbol?: string
|
|
398
|
-
promo_image?: string
|
|
399
|
-
promo_text?: string
|
|
400
|
-
matchx_banner?: string
|
|
401
|
-
matchx_seasonal_ranking?: boolean
|
|
402
|
-
matchx_is_completed?: boolean
|
|
403
|
-
matchx_general_board_users_count?: number
|
|
404
|
-
matchx_hide_ranking?: boolean
|
|
405
|
-
ask_for_username?: SAWAskForUsername
|
|
406
|
-
show_prize_board?: boolean
|
|
407
|
-
max_spins_period_ms?: number
|
|
408
|
-
show_countdown_for_next_availability?: boolean
|
|
409
|
-
disable_background_music?: boolean
|
|
410
|
-
custom_section_id?: number
|
|
411
|
-
only_in_custom_section?: boolean
|
|
412
|
-
custom_data: any
|
|
413
|
-
placeholder1?: string
|
|
414
|
-
placeholder2?: string
|
|
377
|
+
skin: string
|
|
378
|
+
name: string
|
|
379
|
+
description?: string
|
|
380
|
+
over_limit_message?: string
|
|
381
|
+
no_attempts_message?: string
|
|
382
|
+
thumbnail?: string
|
|
383
|
+
sectors_count: number
|
|
384
|
+
priority: number
|
|
385
|
+
flow_builder_only: boolean
|
|
386
|
+
background_image?: string
|
|
387
|
+
background_image_mobile?: string
|
|
388
|
+
background_sound?: string
|
|
389
|
+
spin_animation_duration?: number
|
|
390
|
+
scratch_logo?: string
|
|
391
|
+
scratch_cover?: string
|
|
392
|
+
scratch_bg_desktop?: string
|
|
393
|
+
scratch_bg_mobile?: string
|
|
394
|
+
scratch_cursor?: string
|
|
395
|
+
custom_css?: string
|
|
396
|
+
custom_skin_folder?: string
|
|
397
|
+
jackpot_symbol?: string
|
|
398
|
+
promo_image?: string
|
|
399
|
+
promo_text?: string
|
|
400
|
+
matchx_banner?: string
|
|
401
|
+
matchx_seasonal_ranking?: boolean
|
|
402
|
+
matchx_is_completed?: boolean
|
|
403
|
+
matchx_general_board_users_count?: number
|
|
404
|
+
matchx_hide_ranking?: boolean
|
|
405
|
+
ask_for_username?: SAWAskForUsername
|
|
406
|
+
show_prize_board?: boolean
|
|
407
|
+
max_spins_period_ms?: number
|
|
408
|
+
show_countdown_for_next_availability?: boolean
|
|
409
|
+
disable_background_music?: boolean
|
|
410
|
+
custom_section_id?: number
|
|
411
|
+
only_in_custom_section?: boolean
|
|
412
|
+
custom_data: any
|
|
413
|
+
placeholder1?: string
|
|
414
|
+
placeholder2?: string
|
|
415
415
|
prize_drop_template?: {
|
|
416
|
-
id: string
|
|
417
|
-
content: string
|
|
418
|
-
}
|
|
416
|
+
id: string
|
|
417
|
+
content: string
|
|
418
|
+
}
|
|
419
419
|
}
|
|
420
420
|
export interface SAWTemplate {
|
|
421
|
-
saw_template_id: number
|
|
422
|
-
saw_game_type_id: SAWGameType
|
|
423
|
-
saw_template_ui_definition: SAWTemplateUI
|
|
424
|
-
saw_buyin_type_id: SAWBuyInType
|
|
425
|
-
buyin_cost_points?: number
|
|
426
|
-
visibile_when_can_spin: boolean
|
|
427
|
-
spin_count?: number
|
|
428
|
-
prizes: SAWPrize[]
|
|
429
|
-
is_visible: boolean
|
|
430
|
-
jackpot_add_on_attempt: number
|
|
431
|
-
jackpot_current: number
|
|
432
|
-
jackpot_guaranteed: number
|
|
433
|
-
maxActiveSpinsAllowed: number
|
|
434
|
-
maxSpinsCount: number
|
|
435
|
-
maxSpinsPediodMs: number
|
|
436
|
-
next_available_spin_ts?: number
|
|
437
|
-
saw_skin_key: string
|
|
421
|
+
saw_template_id: number
|
|
422
|
+
saw_game_type_id: SAWGameType
|
|
423
|
+
saw_template_ui_definition: SAWTemplateUI
|
|
424
|
+
saw_buyin_type_id: SAWBuyInType
|
|
425
|
+
buyin_cost_points?: number
|
|
426
|
+
visibile_when_can_spin: boolean
|
|
427
|
+
spin_count?: number
|
|
428
|
+
prizes: SAWPrize[]
|
|
429
|
+
is_visible: boolean
|
|
430
|
+
jackpot_add_on_attempt: number
|
|
431
|
+
jackpot_current: number
|
|
432
|
+
jackpot_guaranteed: number
|
|
433
|
+
maxActiveSpinsAllowed: number
|
|
434
|
+
maxSpinsCount: number
|
|
435
|
+
maxSpinsPediodMs: number
|
|
436
|
+
next_available_spin_ts?: number
|
|
437
|
+
saw_skin_key: string
|
|
438
438
|
saw_skin_ui_definition: {
|
|
439
|
-
skin_folder: string
|
|
440
|
-
skin_css: string
|
|
441
|
-
}
|
|
439
|
+
skin_folder: string
|
|
440
|
+
skin_css: string
|
|
441
|
+
}
|
|
442
442
|
}
|
|
443
443
|
declare enum SAWSpinErrorCode {
|
|
444
444
|
/** No error */
|
|
@@ -452,28 +452,28 @@ declare enum SAWSpinErrorCode {
|
|
|
452
452
|
/** User reached max number of game attempts defined in the BackOffice */
|
|
453
453
|
SAW_FAILED_MAX_SPINS_REACHED = 40004,
|
|
454
454
|
/** Special code for the 'visitor' mode */
|
|
455
|
-
SAW_VISITOR_STOP_SPIN_REQUEST = -40001
|
|
455
|
+
SAW_VISITOR_STOP_SPIN_REQUEST = -40001,
|
|
456
456
|
}
|
|
457
457
|
export interface SAWDoSpinResponse extends ProtocolResponse {
|
|
458
|
-
errCode: SAWSpinErrorCode
|
|
459
|
-
errMsg?: string
|
|
460
|
-
request_id: string
|
|
461
|
-
saw_prize_id: number
|
|
462
|
-
jackpot_amount?: number
|
|
463
|
-
first_spin_in_period: number
|
|
464
|
-
visitor_win_uuid?: string
|
|
458
|
+
errCode: SAWSpinErrorCode
|
|
459
|
+
errMsg?: string
|
|
460
|
+
request_id: string
|
|
461
|
+
saw_prize_id: number
|
|
462
|
+
jackpot_amount?: number
|
|
463
|
+
first_spin_in_period: number
|
|
464
|
+
visitor_win_uuid?: string
|
|
465
465
|
}
|
|
466
466
|
export interface SAWDoAknowledgeResponse extends ProtocolMessage {
|
|
467
|
-
request_id: string
|
|
467
|
+
request_id: string
|
|
468
468
|
}
|
|
469
469
|
declare enum TournamentRegistrationType {
|
|
470
470
|
AUTO = 1,
|
|
471
471
|
OPT_IN = 2,
|
|
472
472
|
BUY_IN_POINTS = 3,
|
|
473
473
|
MANUAL_APPROVAL = 4,
|
|
474
|
-
REQUIRES_QUALIFICATION = 5
|
|
474
|
+
REQUIRES_QUALIFICATION = 5,
|
|
475
475
|
}
|
|
476
|
-
export type TournamentRegistrationTypeName =
|
|
476
|
+
export type TournamentRegistrationTypeName = 'AUTO' | 'OPT_IN' | 'BUY_IN_POINTS' | 'MANUAL_APPROVAL' | 'REQUIRES_QUALIFICATION' | 'UNKNOWN'
|
|
477
477
|
declare enum TournamentInstanceStatus {
|
|
478
478
|
PUBLISHED = 1,
|
|
479
479
|
REGISTER = 2,
|
|
@@ -481,7 +481,7 @@ declare enum TournamentInstanceStatus {
|
|
|
481
481
|
FINISHED = 4,
|
|
482
482
|
CANCELLED = 5,
|
|
483
483
|
FAILED = 6,
|
|
484
|
-
FINALIZING = 7
|
|
484
|
+
FINALIZING = 7,
|
|
485
485
|
}
|
|
486
486
|
declare enum TournamentRegistrationStatus {
|
|
487
487
|
NOT_REGISTERED = 0,
|
|
@@ -490,120 +490,120 @@ declare enum TournamentRegistrationStatus {
|
|
|
490
490
|
PENDING = 3,
|
|
491
491
|
CANCELLED = 4,
|
|
492
492
|
REGISTERED_PENDING_QUALIFICATION = 5,
|
|
493
|
-
QUALIFIED_PENDING_REGISTRATION = 6
|
|
493
|
+
QUALIFIED_PENDING_REGISTRATION = 6,
|
|
494
494
|
}
|
|
495
495
|
declare enum TournamentRegistrationStatusName {
|
|
496
|
-
NOT_REGISTERED =
|
|
497
|
-
REGISTERED =
|
|
498
|
-
FINISHED =
|
|
499
|
-
PENDING =
|
|
500
|
-
CANCELLED =
|
|
501
|
-
REGISTERED_PENDING_QUALIFICATION =
|
|
502
|
-
QUALIFIED_PENDING_REGISTRATION =
|
|
503
|
-
UNKNOWN =
|
|
496
|
+
NOT_REGISTERED = 'NOT_REGISTERED',
|
|
497
|
+
REGISTERED = 'REGISTERED',
|
|
498
|
+
FINISHED = 'FINISHED',
|
|
499
|
+
PENDING = 'PENDING',
|
|
500
|
+
CANCELLED = 'CANCELLED',
|
|
501
|
+
REGISTERED_PENDING_QUALIFICATION = 'REGISTERED_PENDING_QUALIFICATION',
|
|
502
|
+
QUALIFIED_PENDING_REGISTRATION = 'QUALIFIED_PENDING_REGISTRATION',
|
|
503
|
+
UNKNOWN = 'UNKNOWN',
|
|
504
504
|
}
|
|
505
505
|
declare enum TournamentType {
|
|
506
506
|
SCHEDULED = 1,
|
|
507
507
|
SNG = 2,
|
|
508
|
-
TEST = 3
|
|
508
|
+
TEST = 3,
|
|
509
509
|
}
|
|
510
510
|
export interface TournamentPublicMeta {
|
|
511
511
|
/** Name of tournament */
|
|
512
|
-
name?: string
|
|
512
|
+
name?: string
|
|
513
513
|
/** 1st image */
|
|
514
|
-
image_url?: string
|
|
514
|
+
image_url?: string
|
|
515
515
|
/** 2nd image */
|
|
516
|
-
image_url2?: string
|
|
516
|
+
image_url2?: string
|
|
517
517
|
/** 2nd image for mobile */
|
|
518
|
-
image_url2_mobile?: string
|
|
518
|
+
image_url2_mobile?: string
|
|
519
519
|
/** Description, html capable */
|
|
520
|
-
description?: string
|
|
520
|
+
description?: string
|
|
521
521
|
/** Short explanation of prize pool */
|
|
522
|
-
prize_pool_short?: string
|
|
522
|
+
prize_pool_short?: string
|
|
523
523
|
/** Message to show when user is not matching to the segment allowed to register (error code 30005 in registration response) */
|
|
524
|
-
segment_dont_match_message?: string
|
|
524
|
+
segment_dont_match_message?: string
|
|
525
525
|
/** Short explanation of registration price */
|
|
526
|
-
custom_price_text?: string
|
|
526
|
+
custom_price_text?: string
|
|
527
527
|
/** Indicator if the scores of other users should be shown in the leaderboard of tournament */
|
|
528
|
-
show_other_users_score?: boolean
|
|
529
|
-
custom_section_id?: number
|
|
530
|
-
only_in_custom_section?: boolean
|
|
531
|
-
label_tag?: string
|
|
532
|
-
custom_label_tag?: string
|
|
533
|
-
featured?: boolean
|
|
534
|
-
position?: number
|
|
535
|
-
custom_data?: string
|
|
528
|
+
show_other_users_score?: boolean
|
|
529
|
+
custom_section_id?: number
|
|
530
|
+
only_in_custom_section?: boolean
|
|
531
|
+
label_tag?: string
|
|
532
|
+
custom_label_tag?: string
|
|
533
|
+
featured?: boolean
|
|
534
|
+
position?: number
|
|
535
|
+
custom_data?: string
|
|
536
536
|
}
|
|
537
537
|
export interface AchRelatedGame {
|
|
538
|
-
ach_game_id: number
|
|
539
|
-
ext_game_id: string
|
|
538
|
+
ach_game_id: number
|
|
539
|
+
ext_game_id: string
|
|
540
540
|
game_public_meta: {
|
|
541
|
-
name: string
|
|
542
|
-
link: string
|
|
543
|
-
image: string
|
|
544
|
-
enabled: boolean
|
|
545
|
-
game_categories?: string[]
|
|
546
|
-
game_provider?: string
|
|
547
|
-
}
|
|
541
|
+
name: string
|
|
542
|
+
link: string
|
|
543
|
+
image: string
|
|
544
|
+
enabled: boolean
|
|
545
|
+
game_categories?: string[]
|
|
546
|
+
game_provider?: string
|
|
547
|
+
}
|
|
548
548
|
}
|
|
549
549
|
export interface Tournament {
|
|
550
550
|
/** ID of tournament template */
|
|
551
|
-
tournamentId?: number
|
|
551
|
+
tournamentId?: number
|
|
552
552
|
/** ID of tournament instance. Generated every time when tournament based on specific template is scheduled for run */
|
|
553
|
-
tournamentInstanceId?: number
|
|
553
|
+
tournamentInstanceId?: number
|
|
554
554
|
/** Type of the tournament. For now only SCHEDULED is support */
|
|
555
|
-
tournamentType?: TournamentType
|
|
555
|
+
tournamentType?: TournamentType
|
|
556
556
|
/** Meta information about tournament that should be used to build UI */
|
|
557
|
-
publicMeta?: TournamentPublicMeta
|
|
557
|
+
publicMeta?: TournamentPublicMeta
|
|
558
558
|
/** Cost of registration in the tournament in gamification points */
|
|
559
|
-
buyInAmount?: number
|
|
559
|
+
buyInAmount?: number
|
|
560
560
|
/** Not in use */
|
|
561
|
-
prizePool?: number
|
|
561
|
+
prizePool?: number
|
|
562
562
|
/** The time when tournament is going to start */
|
|
563
|
-
startTime?: string
|
|
563
|
+
startTime?: string
|
|
564
564
|
/** The time when tournament is going to finish */
|
|
565
|
-
endTime?: string
|
|
565
|
+
endTime?: string
|
|
566
566
|
/** The time when tournament is going to start, epoch */
|
|
567
|
-
startTimeTs?: number
|
|
567
|
+
startTimeTs?: number
|
|
568
568
|
/** The time when tournament is going to finish, epoch */
|
|
569
|
-
endTimeTs?: number
|
|
569
|
+
endTimeTs?: number
|
|
570
570
|
/** Number of users registered in the tournament */
|
|
571
|
-
registrationCount?: number
|
|
571
|
+
registrationCount?: number
|
|
572
572
|
/** Not in use */
|
|
573
|
-
totalCount?: number
|
|
573
|
+
totalCount?: number
|
|
574
574
|
/** Type of registration in the tournament */
|
|
575
|
-
registrationType?: TournamentRegistrationType
|
|
575
|
+
registrationType?: TournamentRegistrationType
|
|
576
576
|
/** Status of registration in the tournament for current user */
|
|
577
|
-
tournamentRegistrationStatus?: TournamentRegistrationStatus
|
|
577
|
+
tournamentRegistrationStatus?: TournamentRegistrationStatus
|
|
578
578
|
/** Status of tournament instance */
|
|
579
|
-
tournamentInstanceStatus?: TournamentInstanceStatus
|
|
579
|
+
tournamentInstanceStatus?: TournamentInstanceStatus
|
|
580
580
|
/** flag indicating if current user is registered in the tournament */
|
|
581
|
-
isUserRegistered?: boolean
|
|
581
|
+
isUserRegistered?: boolean
|
|
582
582
|
/** Indicator if tournament allows later registration, when tournament is already started */
|
|
583
|
-
allowLateRegistration?: boolean
|
|
583
|
+
allowLateRegistration?: boolean
|
|
584
584
|
/** Minimum number of participant for this tournament. If tournament doesnt have enough registrations, it will not start */
|
|
585
|
-
playersMinCount?: number
|
|
585
|
+
playersMinCount?: number
|
|
586
586
|
/** Maximum number of participant for this tournament. When reached, new users won't be able to register */
|
|
587
|
-
playersMaxCount?: number
|
|
587
|
+
playersMaxCount?: number
|
|
588
588
|
/** Tournament duration in millisecnnds */
|
|
589
|
-
durationMs?: number
|
|
589
|
+
durationMs?: number
|
|
590
590
|
/** prizes structure */
|
|
591
591
|
prizeStructure?: {
|
|
592
|
-
prizes: TournamentPrize[]
|
|
593
|
-
}
|
|
592
|
+
prizes: TournamentPrize[]
|
|
593
|
+
}
|
|
594
594
|
/** Information about current user */
|
|
595
|
-
tournamentPlayer?: TournamentPlayer
|
|
595
|
+
tournamentPlayer?: TournamentPlayer
|
|
596
596
|
/** List of casino games (or other types of entities) related to the tournament */
|
|
597
|
-
related_games?: AchRelatedGame[]
|
|
597
|
+
related_games?: AchRelatedGame[]
|
|
598
598
|
}
|
|
599
599
|
export interface TournamentPlayer {
|
|
600
|
-
userAltName: string
|
|
601
|
-
position: number
|
|
602
|
-
scores: number
|
|
603
|
-
isMe: boolean
|
|
604
|
-
userId: number
|
|
605
|
-
avatar_id: string
|
|
606
|
-
avatar_url?: string
|
|
600
|
+
userAltName: string
|
|
601
|
+
position: number
|
|
602
|
+
scores: number
|
|
603
|
+
isMe: boolean
|
|
604
|
+
userId: number
|
|
605
|
+
avatar_id: string
|
|
606
|
+
avatar_url?: string
|
|
607
607
|
}
|
|
608
608
|
declare enum ActivityTypeLimited {
|
|
609
609
|
DoNothing = 8,
|
|
@@ -621,36 +621,36 @@ declare enum ActivityTypeLimited {
|
|
|
621
621
|
Bonus = 100,
|
|
622
622
|
WebHook = 200,
|
|
623
623
|
TagCustomer = 504,
|
|
624
|
-
UnTagCustomer = 505
|
|
624
|
+
UnTagCustomer = 505,
|
|
625
625
|
}
|
|
626
626
|
export interface TournamentPrize {
|
|
627
|
-
name: string
|
|
628
|
-
description: string
|
|
629
|
-
image_url: string
|
|
630
|
-
place_from: number
|
|
631
|
-
place_to: number
|
|
632
|
-
type: ActivityTypeLimited
|
|
633
|
-
points: number
|
|
627
|
+
name: string
|
|
628
|
+
description: string
|
|
629
|
+
image_url: string
|
|
630
|
+
place_from: number
|
|
631
|
+
place_to: number
|
|
632
|
+
type: ActivityTypeLimited
|
|
633
|
+
points: number
|
|
634
634
|
}
|
|
635
635
|
export interface GetTournamentInfoResponse extends ProtocolResponse {
|
|
636
636
|
/** tournament info */
|
|
637
637
|
tournamentInfo: {
|
|
638
638
|
/** id of label, not in use */
|
|
639
|
-
labelId: number
|
|
640
|
-
tournamentLobbyInfo: Tournament
|
|
639
|
+
labelId: number
|
|
640
|
+
tournamentLobbyInfo: Tournament
|
|
641
641
|
/** list of registered users */
|
|
642
|
-
players: TournamentPlayer[]
|
|
643
|
-
}
|
|
642
|
+
players: TournamentPlayer[]
|
|
643
|
+
}
|
|
644
644
|
/** information about current user position */
|
|
645
|
-
userPosition: TournamentPlayer
|
|
645
|
+
userPosition: TournamentPlayer
|
|
646
646
|
/** prizes structure */
|
|
647
647
|
prizeStructure?: {
|
|
648
|
-
prizes: TournamentPrize[]
|
|
649
|
-
}
|
|
648
|
+
prizes: TournamentPrize[]
|
|
649
|
+
}
|
|
650
650
|
}
|
|
651
651
|
export interface GetTournamentsResponse extends ProtocolResponse {
|
|
652
652
|
/** array of the tournaments */
|
|
653
|
-
tournaments?: Tournament[]
|
|
653
|
+
tournaments?: Tournament[]
|
|
654
654
|
}
|
|
655
655
|
declare enum TournamentRegistrationError {
|
|
656
656
|
NO_ERROR = 0,
|
|
@@ -661,147 +661,147 @@ declare enum TournamentRegistrationError {
|
|
|
661
661
|
TOURNAMENT_USER_DONT_MATCH_CONDITIONS = 30005,
|
|
662
662
|
TOURNAMENT_USER_NOT_REGISTERED = 30006,
|
|
663
663
|
TOURNAMENT_CANT_CHANGE_REGISTRATION_STATUS = 30007,
|
|
664
|
-
TOURNAMENT_MAX_REGISTRATIONS_REACHED = 30008
|
|
664
|
+
TOURNAMENT_MAX_REGISTRATIONS_REACHED = 30008,
|
|
665
665
|
}
|
|
666
666
|
export interface TournamentRegisterResponse extends ProtocolResponse {
|
|
667
|
-
errCode?: TournamentRegistrationError
|
|
667
|
+
errCode?: TournamentRegistrationError
|
|
668
668
|
}
|
|
669
669
|
declare enum LeaderBoardPeriodType {
|
|
670
670
|
DAILY = 1,
|
|
671
671
|
WEEKLY = 2,
|
|
672
|
-
MONTHLY = 3
|
|
672
|
+
MONTHLY = 3,
|
|
673
673
|
}
|
|
674
674
|
export interface LeaderBoardPosition {
|
|
675
|
-
public_username?: string
|
|
676
|
-
user_alt_name: string
|
|
677
|
-
position_in_board: number
|
|
678
|
-
points_accumulated: number
|
|
679
|
-
is_me: boolean
|
|
680
|
-
level_id: number
|
|
681
|
-
avatar_id: string
|
|
682
|
-
avatar_url?: string
|
|
675
|
+
public_username?: string
|
|
676
|
+
user_alt_name: string
|
|
677
|
+
position_in_board: number
|
|
678
|
+
points_accumulated: number
|
|
679
|
+
is_me: boolean
|
|
680
|
+
level_id: number
|
|
681
|
+
avatar_id: string
|
|
682
|
+
avatar_url?: string
|
|
683
683
|
}
|
|
684
684
|
export interface LeaderBoardPublicMeta {
|
|
685
|
-
name: string
|
|
686
|
-
description: string
|
|
687
|
-
rules: string
|
|
685
|
+
name: string
|
|
686
|
+
description: string
|
|
687
|
+
rules: string
|
|
688
688
|
}
|
|
689
689
|
export interface LeaderBoardDetails {
|
|
690
|
-
board_id: number
|
|
691
|
-
period_type_id: LeaderBoardPeriodType
|
|
692
|
-
create_date?: number
|
|
693
|
-
versiod_id: number
|
|
694
|
-
reward_points: number[]
|
|
695
|
-
board_public_meta: LeaderBoardPublicMeta
|
|
696
|
-
positions: LeaderBoardPosition[]
|
|
697
|
-
userPosition: LeaderBoardPosition
|
|
698
|
-
}
|
|
699
|
-
export type TRibbon =
|
|
690
|
+
board_id: number
|
|
691
|
+
period_type_id: LeaderBoardPeriodType
|
|
692
|
+
create_date?: number
|
|
693
|
+
versiod_id: number
|
|
694
|
+
reward_points: number[]
|
|
695
|
+
board_public_meta: LeaderBoardPublicMeta
|
|
696
|
+
positions: LeaderBoardPosition[]
|
|
697
|
+
userPosition: LeaderBoardPosition
|
|
698
|
+
}
|
|
699
|
+
export type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string
|
|
700
700
|
/**
|
|
701
701
|
* TMiniGamePrize describes the information of prize in the array of prizes in the TMiniGameTemplate
|
|
702
|
-
*/
|
|
702
|
+
*/
|
|
703
703
|
export interface TMiniGamePrize {
|
|
704
704
|
/** ID of the prize */
|
|
705
|
-
id: number
|
|
705
|
+
id: number
|
|
706
706
|
/** The visual name of the prize */
|
|
707
|
-
name: string
|
|
707
|
+
name: string
|
|
708
708
|
/** The type of the prize, no-prize, points, bonus, manual, spin, jackpot */
|
|
709
|
-
prize_type: MiniGamePrizeTypeName
|
|
709
|
+
prize_type: MiniGamePrizeTypeName
|
|
710
710
|
/** Numeric value of the prize in case it's pints or spin type */
|
|
711
|
-
prize_value?: number
|
|
711
|
+
prize_value?: number
|
|
712
712
|
/** Custom font size for the prize (desktop) */
|
|
713
|
-
font_size?: number
|
|
713
|
+
font_size?: number
|
|
714
714
|
/** Custom font size for the prize (mobile) */
|
|
715
|
-
font_size_mobile?: number
|
|
715
|
+
font_size_mobile?: number
|
|
716
716
|
/** The URL of the icon of the prize */
|
|
717
|
-
icon?: string
|
|
718
|
-
position: number
|
|
719
|
-
aknowledge_message: string
|
|
720
|
-
acknowledge_dp: string
|
|
721
|
-
acknowledge_action_title: string
|
|
717
|
+
icon?: string
|
|
718
|
+
position: number
|
|
719
|
+
aknowledge_message: string
|
|
720
|
+
acknowledge_dp: string
|
|
721
|
+
acknowledge_action_title: string
|
|
722
722
|
}
|
|
723
723
|
/**
|
|
724
724
|
* TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
|
|
725
|
-
*/
|
|
725
|
+
*/
|
|
726
726
|
export interface TMiniGamePlayResult {
|
|
727
727
|
/** Error code that represents outcome of the game play attempt. Game succeed to be played in case err_code is 0 */
|
|
728
|
-
err_code: SAWSpinErrorCode
|
|
728
|
+
err_code: SAWSpinErrorCode
|
|
729
729
|
/** Optional error message */
|
|
730
|
-
err_message: string
|
|
730
|
+
err_message: string
|
|
731
731
|
/** The prize_id that user won, details of the prize can be found in the mini-game definition */
|
|
732
|
-
prize_id: number
|
|
732
|
+
prize_id: number
|
|
733
733
|
}
|
|
734
734
|
/**
|
|
735
735
|
* TMiniGameTemplate describes the information of mini-games available for the user
|
|
736
|
-
*/
|
|
736
|
+
*/
|
|
737
737
|
export interface TMiniGameTemplate {
|
|
738
738
|
/** ID of the mini-game template */
|
|
739
|
-
id: number
|
|
739
|
+
id: number
|
|
740
740
|
/** Name of the mini-game template, translated to the user language */
|
|
741
|
-
name: string
|
|
741
|
+
name: string
|
|
742
742
|
/** Description of the mini-game template, translated to the user language */
|
|
743
|
-
description: string
|
|
743
|
+
description: string
|
|
744
744
|
/** URL of the icon of the mini-game template */
|
|
745
|
-
thumbnail: string
|
|
745
|
+
thumbnail: string
|
|
746
746
|
/** The type of the game, e.g. Spin the Wheel, Gift Box, Scratch card, MatchX etc */
|
|
747
|
-
saw_game_type: SAWGameTypeName
|
|
747
|
+
saw_game_type: SAWGameTypeName
|
|
748
748
|
/** How the user is charged for each game attempt e.g. Free, Points or Spin attempts */
|
|
749
|
-
saw_buyin_type: SAWBuyInTypeName
|
|
749
|
+
saw_buyin_type: SAWBuyInTypeName
|
|
750
750
|
/** in case of charging type 'Points', what is the points amount will be deducted from user balance */
|
|
751
|
-
buyin_cost_points: number
|
|
751
|
+
buyin_cost_points: number
|
|
752
752
|
/** in case of charging type 'Spin attempts', shows the current number of spin attempts that user has */
|
|
753
|
-
spin_count?: number
|
|
753
|
+
spin_count?: number
|
|
754
754
|
/** if the game is limit to the number of spins that user can do during period of time, this property shows the epoch time in UTC when the next attempt will be available */
|
|
755
|
-
next_available_spin_ts: number
|
|
755
|
+
next_available_spin_ts: number
|
|
756
756
|
/** The message that should be shown to the user when he cannot play the game, server rejected attempt with error code SAWSpinErrorCode.SAW_FAILED_MAX_SPINS_REACHED */
|
|
757
|
-
over_limit_message: string
|
|
757
|
+
over_limit_message: string
|
|
758
758
|
/** The message that should be shown to the user when he cannot play the game because he doesn't have spin attempts or points. */
|
|
759
|
-
no_attempts_message: string
|
|
759
|
+
no_attempts_message: string
|
|
760
760
|
/** Current jackpont amount, if jackpot is enabled. */
|
|
761
|
-
jackpot_current: number
|
|
761
|
+
jackpot_current: number
|
|
762
762
|
/** The amount that will be added to the jackpot every time when somebody plays the game. Note that the contribution amount is abstract, means that no money or points are deducted from the user balance. */
|
|
763
|
-
jackpot_add_on_attempt: number
|
|
763
|
+
jackpot_add_on_attempt: number
|
|
764
764
|
/** The symbol of jackpot that is giving the sense to the 'amount' E.g. the symbol could be EUR and connected to the amount it can indicate that amount is monetary, e.g. '100 EUR'. Or the symbol can be 'Free spins' and connected to the amount it can indicate that amount is number of free spins, e.g. '100 Free spins'.
|
|
765
765
|
*/
|
|
766
|
-
jackpot_symbol: string
|
|
766
|
+
jackpot_symbol: string
|
|
767
767
|
/** The promo image */
|
|
768
|
-
promo_image: string
|
|
768
|
+
promo_image: string
|
|
769
769
|
/** The promo text */
|
|
770
|
-
promo_text: string
|
|
770
|
+
promo_text: string
|
|
771
771
|
/** The custom data of the mini-game defined by operator in the BackOffice. Can be a JSON object, string or number */
|
|
772
|
-
custom_data: any
|
|
773
|
-
prizes: TMiniGamePrize[]
|
|
772
|
+
custom_data: any
|
|
773
|
+
prizes: TMiniGamePrize[]
|
|
774
774
|
}
|
|
775
775
|
/**
|
|
776
776
|
* TUser describes the information of the user
|
|
777
777
|
* The user object is returned by _smartico.api.getUserProfile() method.
|
|
778
778
|
* If you want to track the changes of the user profile, you can subscribe to the callback in the following way
|
|
779
779
|
* _smartico.on('props_change', () => console.log(_smartico.api.getUserProfile()) );
|
|
780
|
-
*/
|
|
780
|
+
*/
|
|
781
781
|
export interface TUserProfile {
|
|
782
782
|
/** The language of the user */
|
|
783
|
-
core_user_language: string
|
|
783
|
+
core_user_language: string
|
|
784
784
|
/** The current points balance that user can use in the Store, Mini-games, Tournaments, etc.. */
|
|
785
|
-
ach_points_balance: number
|
|
785
|
+
ach_points_balance: number
|
|
786
786
|
/** The amount of points that user collected in total */
|
|
787
|
-
ach_points_ever: number
|
|
787
|
+
ach_points_ever: number
|
|
788
788
|
/**
|
|
789
789
|
* The array of the public tags set on the user object.
|
|
790
790
|
* They can be treated as server-based cookies.
|
|
791
791
|
* You can set tags using following method _smartico.event('core_public_tags_update', { core_public_tags: ['A', 'B'] } );
|
|
792
792
|
* And then you can check for the tags
|
|
793
|
-
|
|
794
|
-
core_public_tags: string[]
|
|
793
|
+
*/
|
|
794
|
+
core_public_tags: string[]
|
|
795
795
|
/** The ID of the current level of the user */
|
|
796
|
-
ach_level_current_id?: number
|
|
796
|
+
ach_level_current_id?: number
|
|
797
797
|
/** The indicator if user is marked as test user */
|
|
798
|
-
core_is_test_account?: boolean
|
|
798
|
+
core_is_test_account?: boolean
|
|
799
799
|
/** The URL to the user avatar */
|
|
800
|
-
avatar_url?: string
|
|
800
|
+
avatar_url?: string
|
|
801
801
|
/** The username of current user */
|
|
802
|
-
public_username?: string
|
|
802
|
+
public_username?: string
|
|
803
803
|
/** THe number of unread inbox messages */
|
|
804
|
-
core_inbox_unread_count?: number
|
|
804
|
+
core_inbox_unread_count?: number
|
|
805
805
|
}
|
|
806
806
|
/**
|
|
807
807
|
* TLevel describes the information of each level defined in the system
|
|
@@ -811,459 +811,459 @@ export interface TUserProfile {
|
|
|
811
811
|
*/
|
|
812
812
|
export interface TLevel {
|
|
813
813
|
/** The ID of the Level */
|
|
814
|
-
id: number
|
|
814
|
+
id: number
|
|
815
815
|
/** The name of the Level, translated to the user language */
|
|
816
|
-
name: string
|
|
816
|
+
name: string
|
|
817
817
|
/** The description of the Level, translated to the user language */
|
|
818
|
-
description: string
|
|
818
|
+
description: string
|
|
819
819
|
/** The URL of the image of the Level */
|
|
820
|
-
image: string
|
|
820
|
+
image: string
|
|
821
821
|
/** The amount of points required to reach the Level */
|
|
822
|
-
required_points: number
|
|
822
|
+
required_points: number
|
|
823
823
|
/** Number of points that user should collect in order to see this level */
|
|
824
|
-
visibility_points: number
|
|
824
|
+
visibility_points: number
|
|
825
825
|
/**
|
|
826
826
|
* The counter of 1st metric used to reach the Level.
|
|
827
827
|
* Relevant in case of using advanced leveling logic
|
|
828
828
|
* https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
829
829
|
*
|
|
830
|
-
|
|
831
|
-
required_level_counter_1: number
|
|
830
|
+
*/
|
|
831
|
+
required_level_counter_1: number
|
|
832
832
|
/**
|
|
833
833
|
* The counter of 2nd metric used to reach the Level.
|
|
834
834
|
* Relevant in case of using advanced leveling logic
|
|
835
835
|
* https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
836
836
|
*
|
|
837
|
-
|
|
838
|
-
required_level_counter_2: number
|
|
837
|
+
*/
|
|
838
|
+
required_level_counter_2: number
|
|
839
839
|
/** The custom data of the Level defined by operator in the BackOffice. Can be a JSON object, string or number */
|
|
840
|
-
custom_data: string
|
|
840
|
+
custom_data: string
|
|
841
841
|
}
|
|
842
842
|
/**
|
|
843
843
|
* TTournament describes the general information of the tournament item
|
|
844
844
|
*/
|
|
845
845
|
export interface TTournament {
|
|
846
846
|
/** ID of tournament instance. Generated every time when tournament based on specific template is scheduled for run */
|
|
847
|
-
instance_id: number
|
|
847
|
+
instance_id: number
|
|
848
848
|
/** ID of tournament template */
|
|
849
|
-
tournament_id: number
|
|
849
|
+
tournament_id: number
|
|
850
850
|
/** Name of the tournament, translated to the user language */
|
|
851
|
-
name: string
|
|
851
|
+
name: string
|
|
852
852
|
/** Description of the tournament, translated to the user language */
|
|
853
|
-
description: string
|
|
854
|
-
image1: string
|
|
855
|
-
image2: string
|
|
856
|
-
prize_pool_short: string
|
|
857
|
-
custom_price_text: string
|
|
853
|
+
description: string
|
|
854
|
+
image1: string
|
|
855
|
+
image2: string
|
|
856
|
+
prize_pool_short: string
|
|
857
|
+
custom_price_text: string
|
|
858
858
|
/** The message that should be shown to the user when the user cannot register in tournament with error code TOURNAMENT_USER_DONT_MATCH_CONDITIONS */
|
|
859
|
-
segment_dont_match_message: string
|
|
859
|
+
segment_dont_match_message: string
|
|
860
860
|
/**
|
|
861
861
|
* The ID of the custom section where the tournament is assigned
|
|
862
862
|
* The list of custom sections can be retrieved using _smartico.api.getCustomSections() method (TODO-API)
|
|
863
|
-
|
|
864
|
-
custom_section_id: number
|
|
863
|
+
*/
|
|
864
|
+
custom_section_id: number
|
|
865
865
|
/** The custom data of the tournament defined by operator. Can be a JSON object, string or number */
|
|
866
|
-
custom_data: any
|
|
866
|
+
custom_data: any
|
|
867
867
|
/** The indicator if the tournament is 'Featured' */
|
|
868
|
-
is_featured: boolean
|
|
868
|
+
is_featured: boolean
|
|
869
869
|
/** The ribbon of the tournament item. Can be 'sale', 'hot', 'new', 'vip' or URL to the image in case of custom ribbon */
|
|
870
|
-
ribbon: TRibbon
|
|
870
|
+
ribbon: TRibbon
|
|
871
871
|
/** A number is used to order the tournaments, representing their priority in the list */
|
|
872
|
-
priority: number
|
|
872
|
+
priority: number
|
|
873
873
|
/** Info about current player in tournament */
|
|
874
874
|
me?: {
|
|
875
875
|
/** The username of the participant */
|
|
876
|
-
public_username: string
|
|
876
|
+
public_username: string
|
|
877
877
|
/** The URL to the avatar of the participant */
|
|
878
|
-
avatar_url: string
|
|
878
|
+
avatar_url: string
|
|
879
879
|
/** The position of the participant in the tournament */
|
|
880
|
-
position: number
|
|
880
|
+
position: number
|
|
881
881
|
/** The scores of the participant in the tournament */
|
|
882
|
-
scores: number
|
|
883
|
-
}
|
|
882
|
+
scores: number
|
|
883
|
+
}
|
|
884
884
|
/** Prize structure */
|
|
885
885
|
prizes?: {
|
|
886
886
|
/** The name of the prize */
|
|
887
|
-
name: string
|
|
887
|
+
name: string
|
|
888
888
|
/** The description of the prize */
|
|
889
|
-
description: string
|
|
889
|
+
description: string
|
|
890
890
|
/** The image of the prize */
|
|
891
|
-
image_url: string
|
|
891
|
+
image_url: string
|
|
892
892
|
/** from-to range of the places to which this prize */
|
|
893
|
-
place_from: number
|
|
894
|
-
place_to: number
|
|
893
|
+
place_from: number
|
|
894
|
+
place_to: number
|
|
895
895
|
/** type of the prize: TANGIBLE, POINTS_ADD, POINTS_DEDUCT, POINTS_RESET, MINI_GAME_ATTEMPT, BONUS */
|
|
896
|
-
type: string
|
|
896
|
+
type: string
|
|
897
897
|
/** if the prize is points related, indicates amount of points */
|
|
898
|
-
points?: number
|
|
899
|
-
}[]
|
|
898
|
+
points?: number
|
|
899
|
+
}[]
|
|
900
900
|
/** The time when tournament is going to start, epoch with milliseconds */
|
|
901
|
-
start_time: number
|
|
901
|
+
start_time: number
|
|
902
902
|
/** The time when tournament is going to finish, epoch with milliseconds */
|
|
903
|
-
end_time: number
|
|
903
|
+
end_time: number
|
|
904
904
|
/** Type of registration in the tournament */
|
|
905
|
-
registration_type: TournamentRegistrationTypeName
|
|
905
|
+
registration_type: TournamentRegistrationTypeName
|
|
906
906
|
/** Number of users registered in the tournament */
|
|
907
|
-
registration_count: number
|
|
907
|
+
registration_count: number
|
|
908
908
|
/** flag indicating if current user is registered in the tournament */
|
|
909
|
-
is_user_registered: boolean
|
|
909
|
+
is_user_registered: boolean
|
|
910
910
|
/** Minimum number of participant for this tournament. If tournament doesnt have enough registrations, it will not start */
|
|
911
|
-
players_min_count: number
|
|
911
|
+
players_min_count: number
|
|
912
912
|
/** Maximum number of participant for this tournament. When reached, new users won't be able to register */
|
|
913
|
-
players_max_count: number
|
|
913
|
+
players_max_count: number
|
|
914
914
|
/** Status of registration in the tournament for current user */
|
|
915
|
-
registration_status: TournamentRegistrationStatusName
|
|
915
|
+
registration_status: TournamentRegistrationStatusName
|
|
916
916
|
/** Tournament duration in millisecnnds */
|
|
917
|
-
duration_ms: number
|
|
917
|
+
duration_ms: number
|
|
918
918
|
/** Cost of registration in the tournament in gamification points */
|
|
919
|
-
registration_cost_points: number
|
|
919
|
+
registration_cost_points: number
|
|
920
920
|
/** Indicator if tournament instance is active, means in one of the statues - PUBLISHED, REGISTED, STARTED */
|
|
921
|
-
is_active: boolean
|
|
921
|
+
is_active: boolean
|
|
922
922
|
/** Indicator if user can register in this tournament instance, e.g tournament is active, max users is not reached, user is not registered yet */
|
|
923
|
-
is_can_register: boolean
|
|
923
|
+
is_can_register: boolean
|
|
924
924
|
/** Indicator if tournament instance is cancelled (status CANCELLED) */
|
|
925
|
-
is_cancelled: boolean
|
|
925
|
+
is_cancelled: boolean
|
|
926
926
|
/** Indicator if tournament instance is finished (status FINISHED, CANCELLED OR FINIALIZING) */
|
|
927
|
-
is_finished: boolean
|
|
927
|
+
is_finished: boolean
|
|
928
928
|
/** Indicator if tournament instance is running (status STARTED) */
|
|
929
|
-
is_in_progress: boolean
|
|
929
|
+
is_in_progress: boolean
|
|
930
930
|
/** Indicator if tournament instance is upcoming (status PUBLISHED or REGISTER) */
|
|
931
|
-
is_upcoming: boolean
|
|
931
|
+
is_upcoming: boolean
|
|
932
932
|
}
|
|
933
933
|
/**
|
|
934
934
|
* TTournamentDetailed describes the information of the tournament item and includes list of participants, their scores and position in the tournament leaderboard
|
|
935
935
|
*/
|
|
936
936
|
export interface TTournamentDetailed extends TTournament {
|
|
937
937
|
/** List of casino games (or other types of entities) related to the tournament */
|
|
938
|
-
related_games?: AchRelatedGame$1[]
|
|
938
|
+
related_games?: AchRelatedGame$1[]
|
|
939
939
|
/** The list of the tournament participants */
|
|
940
940
|
players?: {
|
|
941
941
|
/** The username of the participant */
|
|
942
|
-
public_username: string
|
|
942
|
+
public_username: string
|
|
943
943
|
/** The URL to the avatar of the participant */
|
|
944
|
-
avatar_url: string
|
|
944
|
+
avatar_url: string
|
|
945
945
|
/** The position of the participant in the tournament */
|
|
946
|
-
position: number
|
|
946
|
+
position: number
|
|
947
947
|
/** The scores of the participant in the tournament */
|
|
948
|
-
scores: number
|
|
948
|
+
scores: number
|
|
949
949
|
/** The indicator if the participant is current user */
|
|
950
|
-
is_me: boolean
|
|
951
|
-
}[]
|
|
950
|
+
is_me: boolean
|
|
951
|
+
}[]
|
|
952
952
|
/** The information about current user in the tournament if he is registered in the tournamnet */
|
|
953
953
|
me?: {
|
|
954
954
|
/** The username of the current user */
|
|
955
|
-
public_username: string
|
|
955
|
+
public_username: string
|
|
956
956
|
/** The URL to the avatar of the current user */
|
|
957
|
-
avatar_url: string
|
|
957
|
+
avatar_url: string
|
|
958
958
|
/** The position of the current user in the tournament */
|
|
959
|
-
position: number
|
|
959
|
+
position: number
|
|
960
960
|
/** The scores of the current user in the tournament */
|
|
961
|
-
scores: number
|
|
962
|
-
}
|
|
961
|
+
scores: number
|
|
962
|
+
}
|
|
963
963
|
prizes?: {
|
|
964
964
|
/** The name of the prize */
|
|
965
|
-
name: string
|
|
965
|
+
name: string
|
|
966
966
|
/** The description of the prize */
|
|
967
|
-
description: string
|
|
967
|
+
description: string
|
|
968
968
|
/** The image of the prize */
|
|
969
|
-
image_url: string
|
|
969
|
+
image_url: string
|
|
970
970
|
/** from-to range of the places to which this prize */
|
|
971
|
-
place_from: number
|
|
972
|
-
place_to: number
|
|
971
|
+
place_from: number
|
|
972
|
+
place_to: number
|
|
973
973
|
/** type of the prize: TANGIBLE, POINTS_ADD, POINTS_DEDUCT, POINTS_RESET, MINI_GAME_ATTEMPT, BONUS */
|
|
974
|
-
type: string
|
|
974
|
+
type: string
|
|
975
975
|
/** if the prize is points related, indicates amount of points */
|
|
976
|
-
points?: number
|
|
977
|
-
}[]
|
|
976
|
+
points?: number
|
|
977
|
+
}[]
|
|
978
978
|
}
|
|
979
979
|
/**
|
|
980
980
|
* TStoreCategory describes the store category item. Each store item can be assigned to 1 or more categories
|
|
981
981
|
*/
|
|
982
982
|
export interface TStoreCategory {
|
|
983
|
-
id: number
|
|
984
|
-
name: string
|
|
985
|
-
order: number
|
|
983
|
+
id: number
|
|
984
|
+
name: string
|
|
985
|
+
order: number
|
|
986
986
|
}
|
|
987
987
|
/**
|
|
988
988
|
* TStoreItem describes the information of the store item defined in the system
|
|
989
989
|
*/
|
|
990
990
|
export interface TStoreItem {
|
|
991
991
|
/** ID of the store item */
|
|
992
|
-
id: number
|
|
992
|
+
id: number
|
|
993
993
|
/** Name of the store item, translated to the user language */
|
|
994
|
-
name: string
|
|
994
|
+
name: string
|
|
995
995
|
/** Description of the store item, translated to the user language */
|
|
996
|
-
description: string
|
|
996
|
+
description: string
|
|
997
997
|
/** URL of the image of the store item */
|
|
998
|
-
image: string
|
|
998
|
+
image: string
|
|
999
999
|
/** Type of the store item. Can be 'bonus' or 'manual'. Manual, means it's tangible item, e.g. iPhone */
|
|
1000
|
-
type:
|
|
1000
|
+
type: 'bonus' | 'manual'
|
|
1001
1001
|
/** The price of the store item in the gamification points */
|
|
1002
|
-
price: number
|
|
1002
|
+
price: number
|
|
1003
1003
|
/** The ribbon of the store item. Can be 'sale', 'hot', 'new', 'vip' or URL to the image in case of custom ribbon */
|
|
1004
|
-
ribbon: TRibbon
|
|
1004
|
+
ribbon: TRibbon
|
|
1005
1005
|
/**
|
|
1006
1006
|
* The message that should be shown to the user if he is not eligible to buy it. this message can be used to explain the reason why user cannot buy the item, e.g. 'You should be VIP to buy this item' and can be used in case can_buy property is false.
|
|
1007
1007
|
The message is translated to the user language.
|
|
1008
1008
|
**Note**: when user is trying to buy the item, the response from server can return custom error messages that can be shown to the user as well
|
|
1009
1009
|
*/
|
|
1010
|
-
limit_message: string
|
|
1010
|
+
limit_message: string
|
|
1011
1011
|
/** The priority of the store item. Can be used to sort the items in the store */
|
|
1012
|
-
priority: number
|
|
1012
|
+
priority: number
|
|
1013
1013
|
/** The list of IDs of the related items. Can be used to show the related items in the store */
|
|
1014
|
-
related_item_ids: number[]
|
|
1014
|
+
related_item_ids: number[]
|
|
1015
1015
|
/** The indicator if the user can buy the item
|
|
1016
1016
|
* This indicator is taking into account the segment conditions for the store item, the price of item towards users balance,
|
|
1017
|
-
|
|
1018
|
-
can_buy: boolean
|
|
1017
|
+
*/
|
|
1018
|
+
can_buy: boolean
|
|
1019
1019
|
/** The list of IDs of the categories where the store item is assigned, information about categories can be retrieved with getStoreCategories method */
|
|
1020
|
-
category_ids: number[]
|
|
1020
|
+
category_ids: number[]
|
|
1021
1021
|
/** Number of items in the pool avaliable for the purchase.*/
|
|
1022
|
-
pool?: number
|
|
1022
|
+
pool?: number
|
|
1023
1023
|
/** The T&C text for the store item */
|
|
1024
|
-
hint_text?: string
|
|
1024
|
+
hint_text?: string
|
|
1025
1025
|
/** Purchase time to show in purchase history screen */
|
|
1026
|
-
purchase_ts?: number
|
|
1026
|
+
purchase_ts?: number
|
|
1027
1027
|
/** The amount of points you can purchase an item */
|
|
1028
|
-
purchase_points_amount?: number
|
|
1028
|
+
purchase_points_amount?: number
|
|
1029
1029
|
}
|
|
1030
1030
|
/**
|
|
1031
1031
|
* TAchCategory describes the badge category item. Each badge item can be assigned to 1 or more categories
|
|
1032
1032
|
*/
|
|
1033
1033
|
export interface TAchCategory {
|
|
1034
|
-
id: number
|
|
1035
|
-
name: string
|
|
1036
|
-
order: number
|
|
1034
|
+
id: number
|
|
1035
|
+
name: string
|
|
1036
|
+
order: number
|
|
1037
1037
|
}
|
|
1038
1038
|
/**
|
|
1039
1039
|
* TMissionOrBadge describes the information of mission or badge defined in the system
|
|
1040
1040
|
*/
|
|
1041
1041
|
export interface TMissionOrBadge {
|
|
1042
1042
|
/** ID of the mission or badge */
|
|
1043
|
-
id: number
|
|
1043
|
+
id: number
|
|
1044
1044
|
/** Type of entity. Can be 'mission' or 'badge' */
|
|
1045
|
-
type:
|
|
1045
|
+
type: 'mission' | 'badge'
|
|
1046
1046
|
/** Name of the mission or badge, translated to the user language */
|
|
1047
|
-
name: string
|
|
1047
|
+
name: string
|
|
1048
1048
|
/** Description of the mission or badge, translated to the user language */
|
|
1049
|
-
description: string
|
|
1049
|
+
description: string
|
|
1050
1050
|
/** Description of the mission reward if defined */
|
|
1051
|
-
reward: string
|
|
1051
|
+
reward: string
|
|
1052
1052
|
/** URL of the image of the mission or badge */
|
|
1053
|
-
image: string
|
|
1053
|
+
image: string
|
|
1054
1054
|
/** Indicator if the mission is completed or badge is granted */
|
|
1055
|
-
is_completed: boolean
|
|
1055
|
+
is_completed: boolean
|
|
1056
1056
|
/** Indicator if the mission is locked. Means that it's visible to the user, but he cannot progress in it until it's unlocked.
|
|
1057
1057
|
* Mission may optionally contain the explanation of what should be done to unlock it in the unlock_mission_description property
|
|
1058
1058
|
*/
|
|
1059
|
-
is_locked: boolean
|
|
1059
|
+
is_locked: boolean
|
|
1060
1060
|
/** Optional explaination of what should be done to unlock the mission */
|
|
1061
|
-
unlock_mission_description: string
|
|
1061
|
+
unlock_mission_description: string
|
|
1062
1062
|
/** Indicator if the mission requires opt-in. Means that user should explicitly opt-in to the mission in order to start progressing in it */
|
|
1063
|
-
is_requires_optin: boolean
|
|
1063
|
+
is_requires_optin: boolean
|
|
1064
1064
|
/** Indicator if the user opted-in to the mission */
|
|
1065
|
-
is_opted_in: boolean
|
|
1065
|
+
is_opted_in: boolean
|
|
1066
1066
|
/** The amount of time in milliseconds that user has to complete the mission */
|
|
1067
|
-
time_limit_ms: number
|
|
1067
|
+
time_limit_ms: number
|
|
1068
1068
|
/** The date when the mission was started, relevant for the time limited missions */
|
|
1069
|
-
dt_start: number
|
|
1069
|
+
dt_start: number
|
|
1070
1070
|
/** The progress of the mission in percents calculated as the aggregated relative percentage of all tasks */
|
|
1071
|
-
progress: number
|
|
1071
|
+
progress: number
|
|
1072
1072
|
/**
|
|
1073
1073
|
* The action that should be performed when user clicks on the mission or badge
|
|
1074
1074
|
* Can be URL or deep link, e.g. 'dp:deposit'. The most safe to execute CTA is to pass it to _smartico.dp(cta_action);
|
|
1075
1075
|
* The 'dp' function will handle the CTA and will execute it in the most safe way
|
|
1076
1076
|
*/
|
|
1077
|
-
cta_action: string
|
|
1077
|
+
cta_action: string
|
|
1078
1078
|
/** The text of the CTA button, e.g. 'Make a deposit' */
|
|
1079
|
-
cta_text: string
|
|
1079
|
+
cta_text: string
|
|
1080
1080
|
/**
|
|
1081
1081
|
* The ID of the custom section where the mission or badge is assigned
|
|
1082
1082
|
* The list of custom sections can be retrieved using _smartico.api.getCustomSections() method (TODO-API)
|
|
1083
|
-
|
|
1084
|
-
custom_section_id: number
|
|
1083
|
+
*/
|
|
1084
|
+
custom_section_id: number
|
|
1085
1085
|
/** The indicator if the mission or badge is visible only in the custom section and should be hidden from the main overview of missions/badges */
|
|
1086
|
-
only_in_custom_section: boolean
|
|
1086
|
+
only_in_custom_section: boolean
|
|
1087
1087
|
/** The custom data of the mission or badge defined by operator. Can be a JSON object, string or number */
|
|
1088
|
-
custom_data: any
|
|
1088
|
+
custom_data: any
|
|
1089
1089
|
/** The list of tasks of the mission or badge */
|
|
1090
|
-
tasks: TMissionOrBadgeTask[]
|
|
1090
|
+
tasks: TMissionOrBadgeTask[]
|
|
1091
1091
|
/** List of casino games (or other types of entities) related to the mission or badge */
|
|
1092
|
-
related_games?: AchRelatedGame$1[]
|
|
1092
|
+
related_games?: AchRelatedGame$1[]
|
|
1093
1093
|
/** The list of IDs of the categories where the badge item is assigned, information about categories can be retrieved with getAchCategories method */
|
|
1094
|
-
category_ids: number[]
|
|
1094
|
+
category_ids: number[]
|
|
1095
1095
|
/** The T&C text for the missions */
|
|
1096
|
-
hint_text?: string
|
|
1096
|
+
hint_text?: string
|
|
1097
1097
|
/** Priority (or position) of the mission in the UI. Low value indicates higher position in the UI */
|
|
1098
|
-
position?: number
|
|
1098
|
+
position?: number
|
|
1099
1099
|
/** The ribbon of the mission/badge item. Can be 'sale', 'hot', 'new', 'vip' or URL to the image in case of custom ribbon */
|
|
1100
|
-
ribbon?: TRibbon
|
|
1100
|
+
ribbon?: TRibbon
|
|
1101
1101
|
/** ID of the completion fact from ach_completed or ach_completed_recurring tables */
|
|
1102
|
-
ach_completed_id?: number
|
|
1102
|
+
ach_completed_id?: number
|
|
1103
1103
|
/** Flag from achievement if the mission prize will be given only after user claims it */
|
|
1104
|
-
requires_prize_claim?: boolean
|
|
1104
|
+
requires_prize_claim?: boolean
|
|
1105
1105
|
/** The date/timestamp indicating when the prize was claimed by the user */
|
|
1106
|
-
prize_claimed_date_ts?: number
|
|
1106
|
+
prize_claimed_date_ts?: number
|
|
1107
1107
|
}
|
|
1108
1108
|
interface AchRelatedGame$1 {
|
|
1109
1109
|
/** The ID of the related game */
|
|
1110
|
-
ext_game_id: string
|
|
1110
|
+
ext_game_id: string
|
|
1111
1111
|
/** Game public meta information */
|
|
1112
1112
|
game_public_meta: {
|
|
1113
1113
|
/** The name of the game */
|
|
1114
|
-
name: string
|
|
1114
|
+
name: string
|
|
1115
1115
|
/** The URL to the game */
|
|
1116
|
-
link: string
|
|
1116
|
+
link: string
|
|
1117
1117
|
/** The URL to the image of the game */
|
|
1118
|
-
image: string
|
|
1118
|
+
image: string
|
|
1119
1119
|
/** The indicator if the game is enabled */
|
|
1120
|
-
enabled: boolean
|
|
1120
|
+
enabled: boolean
|
|
1121
1121
|
/** The list of categories of the game */
|
|
1122
|
-
game_categories: string[]
|
|
1122
|
+
game_categories: string[]
|
|
1123
1123
|
/** The name of the game provider */
|
|
1124
|
-
game_provider: string
|
|
1125
|
-
}
|
|
1124
|
+
game_provider: string
|
|
1125
|
+
}
|
|
1126
1126
|
}
|
|
1127
1127
|
/**
|
|
1128
1128
|
* TMissionOrBadgeTask describes the information of tasks that belings to mission or badge. See also TMissionOrBadge
|
|
1129
1129
|
*/
|
|
1130
1130
|
export interface TMissionOrBadgeTask {
|
|
1131
1131
|
/** ID of the task */
|
|
1132
|
-
id: number
|
|
1132
|
+
id: number
|
|
1133
1133
|
/** Name of the task, translated to the user language */
|
|
1134
|
-
name: string
|
|
1134
|
+
name: string
|
|
1135
1135
|
/** Indicator if the task is completed */
|
|
1136
|
-
is_completed: boolean
|
|
1136
|
+
is_completed: boolean
|
|
1137
1137
|
/** The progress of the task in percents */
|
|
1138
|
-
progress: number
|
|
1138
|
+
progress: number
|
|
1139
1139
|
/** Reward for completing the task in points */
|
|
1140
|
-
points_reward: number
|
|
1140
|
+
points_reward: number
|
|
1141
1141
|
}
|
|
1142
1142
|
/**
|
|
1143
1143
|
* TMissionOptInResult describes the response of call to _smartico.api.requestMissionOptIn(mission_id) method
|
|
1144
|
-
*/
|
|
1144
|
+
*/
|
|
1145
1145
|
export interface TMissionOptInResult {
|
|
1146
1146
|
/** Error code that represents outcome of the opt-in request. Successful opt-in in case err_code is 0 */
|
|
1147
|
-
err_code: number
|
|
1147
|
+
err_code: number
|
|
1148
1148
|
/** Optional error message */
|
|
1149
|
-
err_message: string
|
|
1149
|
+
err_message: string
|
|
1150
1150
|
}
|
|
1151
1151
|
/**
|
|
1152
1152
|
* TMissionClaimRewardResult describes the response of call to _smartico.api.requestMissionClaimReward(mission_id, ach_completed_id) method
|
|
1153
|
-
*/
|
|
1153
|
+
*/
|
|
1154
1154
|
export interface TMissionClaimRewardResult {
|
|
1155
1155
|
/** Error code that represents outcome of the claim request. Successful claim reward in case err_code is 0 */
|
|
1156
|
-
err_code: number
|
|
1156
|
+
err_code: number
|
|
1157
1157
|
/** Optional error message */
|
|
1158
|
-
err_message: string
|
|
1158
|
+
err_message: string
|
|
1159
1159
|
}
|
|
1160
1160
|
export interface TTournamentRegistrationResult {
|
|
1161
1161
|
/** Error code that represents outcome of the tournament registration request. Successful registration in case err_code is 0 */
|
|
1162
|
-
err_code: TournamentRegistrationError
|
|
1162
|
+
err_code: TournamentRegistrationError
|
|
1163
1163
|
/** Optional error message */
|
|
1164
|
-
err_message: string
|
|
1164
|
+
err_message: string
|
|
1165
1165
|
}
|
|
1166
1166
|
export interface TBuyStoreItemResult {
|
|
1167
1167
|
/** Error code representing the result of the purchase of the shop item. Successful purchase if err_code is 0 */
|
|
1168
|
-
err_code: BuyStoreItemErrorCode
|
|
1168
|
+
err_code: BuyStoreItemErrorCode
|
|
1169
1169
|
/** Optional error message */
|
|
1170
|
-
err_message: string
|
|
1170
|
+
err_message: string
|
|
1171
1171
|
}
|
|
1172
1172
|
export interface TGetTranslations {
|
|
1173
1173
|
translations: {
|
|
1174
|
-
[key: string]: string
|
|
1175
|
-
}
|
|
1174
|
+
[key: string]: string
|
|
1175
|
+
}
|
|
1176
1176
|
}
|
|
1177
1177
|
export interface TInboxMessage {
|
|
1178
1178
|
/** Uniq identifier of the message. It is needed to request the message body, mark the message as read/deleted/favorite. */
|
|
1179
|
-
message_guid: string
|
|
1179
|
+
message_guid: string
|
|
1180
1180
|
/** Date when the message was sent */
|
|
1181
|
-
sent_date: string
|
|
1181
|
+
sent_date: string
|
|
1182
1182
|
/** Indicator if a message is read */
|
|
1183
|
-
read: boolean
|
|
1183
|
+
read: boolean
|
|
1184
1184
|
/** Indicator if a message is added to favorites */
|
|
1185
|
-
favorite: boolean
|
|
1185
|
+
favorite: boolean
|
|
1186
1186
|
}
|
|
1187
1187
|
export interface TInboxMessageBody {
|
|
1188
1188
|
/** Message title */
|
|
1189
|
-
title: string
|
|
1189
|
+
title: string
|
|
1190
1190
|
/** Short preview body of the message */
|
|
1191
|
-
preview_body: string
|
|
1191
|
+
preview_body: string
|
|
1192
1192
|
/** Message icon */
|
|
1193
|
-
icon: string
|
|
1193
|
+
icon: string
|
|
1194
1194
|
/** The action that should be performed when user clicks on the message.
|
|
1195
1195
|
* Can be URL or deep link, e.g. 'dp:deposit'. The most safe to execute CTA is to pass it to _smartico.dp(cta_action);
|
|
1196
1196
|
* The 'dp' function will handle the CTA and will execute it in the most safe way.
|
|
1197
1197
|
* If the message has a rich html body - the action will always be 'dp:inbox' which will open the inbox widget when triggered. */
|
|
1198
|
-
action: string
|
|
1198
|
+
action: string
|
|
1199
1199
|
/** Rich HTML body of the message. */
|
|
1200
|
-
html_body?: string
|
|
1200
|
+
html_body?: string
|
|
1201
1201
|
/** Optional additional buttons to show in the message, available only if message has rich HTML body. Max count - 2. */
|
|
1202
1202
|
buttons?: {
|
|
1203
1203
|
/** The action that should be performed when user clicks on the button. The logic is the same as for message actions */
|
|
1204
|
-
action: string
|
|
1204
|
+
action: string
|
|
1205
1205
|
/** Button text */
|
|
1206
|
-
text: string
|
|
1207
|
-
}[]
|
|
1206
|
+
text: string
|
|
1207
|
+
}[]
|
|
1208
1208
|
}
|
|
1209
1209
|
export interface InboxMarkMessageAction {
|
|
1210
1210
|
/** An error code representing the result of marking a message as deleted, favorite or read. Successful marking action if err_code is 0 */
|
|
1211
|
-
err_code: number
|
|
1211
|
+
err_code: number
|
|
1212
1212
|
/** Optional error message */
|
|
1213
|
-
err_message: string
|
|
1213
|
+
err_message: string
|
|
1214
1214
|
}
|
|
1215
1215
|
export interface LeaderBoardDetailsT {
|
|
1216
1216
|
/** ID of the leaderboard */
|
|
1217
|
-
board_id: number
|
|
1217
|
+
board_id: number
|
|
1218
1218
|
/** Name of the leaderboard */
|
|
1219
|
-
name: string
|
|
1219
|
+
name: string
|
|
1220
1220
|
/** Description of the leaderboard */
|
|
1221
|
-
description: string
|
|
1221
|
+
description: string
|
|
1222
1222
|
/** Rules of the leaderboard */
|
|
1223
|
-
rules: string
|
|
1223
|
+
rules: string
|
|
1224
1224
|
/** Leaderboard period type ID */
|
|
1225
|
-
period_type_id: LeaderBoardPeriodType
|
|
1225
|
+
period_type_id: LeaderBoardPeriodType
|
|
1226
1226
|
/** Leaderboard points rewards */
|
|
1227
|
-
rewards: LeaderBoardsRewardsT[]
|
|
1227
|
+
rewards: LeaderBoardsRewardsT[]
|
|
1228
1228
|
/** Leaderboard users */
|
|
1229
|
-
users: LeaderBoardUserT[]
|
|
1229
|
+
users: LeaderBoardUserT[]
|
|
1230
1230
|
/** Info about current user in leaderboard */
|
|
1231
|
-
me?: LeaderBoardUserT
|
|
1231
|
+
me?: LeaderBoardUserT
|
|
1232
1232
|
}
|
|
1233
1233
|
export interface LeaderBoardsRewardsT {
|
|
1234
|
-
place: number
|
|
1235
|
-
points: number
|
|
1234
|
+
place: number
|
|
1235
|
+
points: number
|
|
1236
1236
|
}
|
|
1237
1237
|
export interface LeaderBoardUserT {
|
|
1238
1238
|
/** The username of the participant */
|
|
1239
|
-
public_username: string
|
|
1239
|
+
public_username: string
|
|
1240
1240
|
/** The URL to the avatar of the participant */
|
|
1241
|
-
avatar_url: string
|
|
1241
|
+
avatar_url: string
|
|
1242
1242
|
/** The position of the participant in the leaderboard */
|
|
1243
|
-
position: number
|
|
1243
|
+
position: number
|
|
1244
1244
|
/** The points of the participant in the leaderboard */
|
|
1245
|
-
points: number
|
|
1245
|
+
points: number
|
|
1246
1246
|
/** The indicator if the participant is current user */
|
|
1247
|
-
is_me: boolean
|
|
1247
|
+
is_me: boolean
|
|
1248
1248
|
}
|
|
1249
1249
|
export interface UserLevelExtraCountersT {
|
|
1250
1250
|
/** The counter of 1st metric used to reach the level. */
|
|
1251
|
-
level_counter_1?: number
|
|
1251
|
+
level_counter_1?: number
|
|
1252
1252
|
/** The counter of 2nd metric used to reach the level. */
|
|
1253
|
-
level_counter_2?: number
|
|
1253
|
+
level_counter_2?: number
|
|
1254
1254
|
}
|
|
1255
1255
|
export interface TSegmentCheckResult {
|
|
1256
|
-
segment_id: number
|
|
1257
|
-
is_matching: boolean
|
|
1256
|
+
segment_id: number
|
|
1257
|
+
is_matching: boolean
|
|
1258
1258
|
}
|
|
1259
1259
|
export interface SAWGetTemplatesResponse extends ProtocolResponse {
|
|
1260
|
-
templates: SAWTemplate[]
|
|
1260
|
+
templates: SAWTemplate[]
|
|
1261
1261
|
}
|
|
1262
1262
|
export interface GetLabelInfoResponse extends ProtocolResponse {
|
|
1263
1263
|
settings: {
|
|
1264
|
-
[key: string]: string
|
|
1265
|
-
}
|
|
1266
|
-
label_id: string
|
|
1264
|
+
[key: string]: string
|
|
1265
|
+
}
|
|
1266
|
+
label_id: string
|
|
1267
1267
|
}
|
|
1268
1268
|
declare enum TranslationArea {
|
|
1269
1269
|
Casino = 1,
|
|
@@ -1272,58 +1272,58 @@ declare enum TranslationArea {
|
|
|
1272
1272
|
Archived = 4,
|
|
1273
1273
|
Affiliation = 5,
|
|
1274
1274
|
RetentionGames = 6,
|
|
1275
|
-
AffIliateAdminNew = 7
|
|
1275
|
+
AffIliateAdminNew = 7,
|
|
1276
1276
|
}
|
|
1277
1277
|
export interface GetTranslationsResponse extends ProtocolResponse {
|
|
1278
|
-
hash_code: number
|
|
1278
|
+
hash_code: number
|
|
1279
1279
|
translations: {
|
|
1280
|
-
[key: string]: string
|
|
1281
|
-
}
|
|
1280
|
+
[key: string]: string
|
|
1281
|
+
}
|
|
1282
1282
|
}
|
|
1283
1283
|
declare enum PublicLabelSettings$1 {
|
|
1284
|
-
PUBLIC_API_URL =
|
|
1285
|
-
RECORDING_ENABLED_FOR_ALL_USERS =
|
|
1286
|
-
JS_INJECTION =
|
|
1287
|
-
GAMIFICATION_UI_MAIN =
|
|
1288
|
-
GAMIFICATION_UI_WIDGET =
|
|
1289
|
-
GAMIFICATION_UI_MINI_GAME =
|
|
1290
|
-
GAMIFICATION_UI_SETTINGS =
|
|
1291
|
-
GAMIFICATION_UI_MAIN_TEST =
|
|
1292
|
-
GAMIFICATION_UI_WIDGET_TEST =
|
|
1293
|
-
GAMIFICATION_UI_SETTINGS_TEST =
|
|
1294
|
-
FRONT_END_ALLOWED_LANGUAGES =
|
|
1295
|
-
FRONT_END_ALLOW_DOMAINS =
|
|
1296
|
-
DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS =
|
|
1297
|
-
SHADOW_LABEL_PUBLIC_KEY =
|
|
1298
|
-
DYNAMIC_IMAGE_DOMAIN =
|
|
1299
|
-
GAMIFICATION_UI_LEVEL_ENABLED =
|
|
1300
|
-
GAMIFICATION_UI_LEVEL_IMAGE_MOB =
|
|
1301
|
-
GAMIFICATION_UI_LEVEL_IMAGE_DESK =
|
|
1302
|
-
GAMIFICATION_LEVELS_LOGIC2 =
|
|
1303
|
-
GAMIFICATION_LEVELS_LOGIC3 =
|
|
1304
|
-
AVATAR_CUSTOM_IMAGE_MAX_ID =
|
|
1305
|
-
AVATAR_CUSTOM_IMAGE_FOLDER =
|
|
1306
|
-
GAMIFICATION_SHOW_POWERED_BY =
|
|
1307
|
-
_system_leader_board_mask_username =
|
|
1308
|
-
INBOX_PUBLIC_CDN =
|
|
1284
|
+
PUBLIC_API_URL = 'PUBLIC_API_URL',
|
|
1285
|
+
RECORDING_ENABLED_FOR_ALL_USERS = 'RECORDING_ENABLED_FOR_ALL_USERS',
|
|
1286
|
+
JS_INJECTION = 'JS_INJECTION',
|
|
1287
|
+
GAMIFICATION_UI_MAIN = 'GAMIFICATION_UI_MAIN',
|
|
1288
|
+
GAMIFICATION_UI_WIDGET = 'GAMIFICATION_UI_WIDGET',
|
|
1289
|
+
GAMIFICATION_UI_MINI_GAME = 'GAMIFICATION_UI_MINI_GAME',
|
|
1290
|
+
GAMIFICATION_UI_SETTINGS = 'GAMIFICATION_UI_SETTINGS',
|
|
1291
|
+
GAMIFICATION_UI_MAIN_TEST = 'GAMIFICATION_UI_MAIN_TEST',
|
|
1292
|
+
GAMIFICATION_UI_WIDGET_TEST = 'GAMIFICATION_UI_WIDGET_TEST',
|
|
1293
|
+
GAMIFICATION_UI_SETTINGS_TEST = 'GAMIFICATION_UI_SETTINGS_TEST',
|
|
1294
|
+
FRONT_END_ALLOWED_LANGUAGES = 'FRONT_END_ALLOWED_LANGUAGES',
|
|
1295
|
+
FRONT_END_ALLOW_DOMAINS = 'FRONT_END_ALLOW_DOMAINS',
|
|
1296
|
+
DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS = 'DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS',
|
|
1297
|
+
SHADOW_LABEL_PUBLIC_KEY = 'SHADOW_LABEL_PUBLIC_KEY',
|
|
1298
|
+
DYNAMIC_IMAGE_DOMAIN = 'DYNAMIC_IMAGE_DOMAIN',
|
|
1299
|
+
GAMIFICATION_UI_LEVEL_ENABLED = 'GAMIFICATION_UI_LEVEL_ENABLED',
|
|
1300
|
+
GAMIFICATION_UI_LEVEL_IMAGE_MOB = 'GAMIFICATION_UI_LEVEL_IMAGE_MOB',
|
|
1301
|
+
GAMIFICATION_UI_LEVEL_IMAGE_DESK = 'GAMIFICATION_UI_LEVEL_IMAGE_DESK',
|
|
1302
|
+
GAMIFICATION_LEVELS_LOGIC2 = 'GAMIFICATION_LEVELS_LOGIC2',
|
|
1303
|
+
GAMIFICATION_LEVELS_LOGIC3 = 'GAMIFICATION_LEVELS_LOGIC2',
|
|
1304
|
+
AVATAR_CUSTOM_IMAGE_MAX_ID = 'AVATAR_CUSTOM_IMAGE_MAX_ID',
|
|
1305
|
+
AVATAR_CUSTOM_IMAGE_FOLDER = 'AVATAR_CUSTOM_IMAGE_FOLDER',
|
|
1306
|
+
GAMIFICATION_SHOW_POWERED_BY = 'GAMIFICATION_SHOW_POWERED_BY',
|
|
1307
|
+
_system_leader_board_mask_username = '_system_leader_board_mask_username',
|
|
1308
|
+
INBOX_PUBLIC_CDN = 'INBOX_PUBLIC_CDN',
|
|
1309
1309
|
}
|
|
1310
1310
|
interface PublicProperties$1 {
|
|
1311
|
-
core_user_language?: string
|
|
1312
|
-
ach_points_balance?: number
|
|
1313
|
-
ach_points_ever?: number
|
|
1314
|
-
ach_level_current_id?: number
|
|
1315
|
-
ach_level_current?: string
|
|
1316
|
-
core_is_test_account?: boolean
|
|
1317
|
-
ach_gamification_in_control_group?: boolean
|
|
1311
|
+
core_user_language?: string
|
|
1312
|
+
ach_points_balance?: number
|
|
1313
|
+
ach_points_ever?: number
|
|
1314
|
+
ach_level_current_id?: number
|
|
1315
|
+
ach_level_current?: string
|
|
1316
|
+
core_is_test_account?: boolean
|
|
1317
|
+
ach_gamification_in_control_group?: boolean
|
|
1318
1318
|
}
|
|
1319
1319
|
export interface ResponseIdentify extends ProtocolResponse {
|
|
1320
|
-
user_id: number
|
|
1321
|
-
ext_user_id: string
|
|
1322
|
-
public_username: string
|
|
1323
|
-
avatar_id: string
|
|
1324
|
-
job: boolean
|
|
1325
|
-
props?: PublicProperties$1
|
|
1326
|
-
pubic_username_set: boolean
|
|
1320
|
+
user_id: number
|
|
1321
|
+
ext_user_id: string
|
|
1322
|
+
public_username: string
|
|
1323
|
+
avatar_id: string
|
|
1324
|
+
job: boolean
|
|
1325
|
+
props?: PublicProperties$1
|
|
1326
|
+
pubic_username_set: boolean
|
|
1327
1327
|
}
|
|
1328
1328
|
declare enum InboxMessageType {
|
|
1329
1329
|
Custom = 0,
|
|
@@ -1334,64 +1334,63 @@ declare enum InboxMessageType {
|
|
|
1334
1334
|
BonusGiven = 5,
|
|
1335
1335
|
PointsAdded = 6,
|
|
1336
1336
|
PointsUsed = 7,
|
|
1337
|
-
PersonalMessage = 8
|
|
1337
|
+
PersonalMessage = 8,
|
|
1338
1338
|
}
|
|
1339
1339
|
export interface InboxMessageBody {
|
|
1340
|
-
action: string
|
|
1341
|
-
body: string
|
|
1342
|
-
type: InboxMessageType
|
|
1343
|
-
image: string
|
|
1344
|
-
title: string
|
|
1345
|
-
html_body: string
|
|
1340
|
+
action: string
|
|
1341
|
+
body: string
|
|
1342
|
+
type: InboxMessageType
|
|
1343
|
+
image: string
|
|
1344
|
+
title: string
|
|
1345
|
+
html_body: string
|
|
1346
1346
|
additional_buttons?: {
|
|
1347
|
-
inbox_cta_text: string
|
|
1348
|
-
action: string
|
|
1349
|
-
}[]
|
|
1347
|
+
inbox_cta_text: string
|
|
1348
|
+
action: string
|
|
1349
|
+
}[]
|
|
1350
1350
|
}
|
|
1351
1351
|
export interface InboxMessage {
|
|
1352
|
-
createDate: string
|
|
1353
|
-
body: InboxMessageBody
|
|
1354
|
-
engagement_uid: string
|
|
1355
|
-
is_read: boolean
|
|
1356
|
-
is_starred: boolean
|
|
1357
|
-
is_deleted?: boolean
|
|
1352
|
+
createDate: string
|
|
1353
|
+
body: InboxMessageBody
|
|
1354
|
+
engagement_uid: string
|
|
1355
|
+
is_read: boolean
|
|
1356
|
+
is_starred: boolean
|
|
1357
|
+
is_deleted?: boolean
|
|
1358
1358
|
}
|
|
1359
1359
|
export interface GetInboxMessagesResponse extends ProtocolResponse {
|
|
1360
|
-
log: InboxMessage[]
|
|
1360
|
+
log: InboxMessage[]
|
|
1361
1361
|
}
|
|
1362
1362
|
export interface MarkInboxMessageReadResponse extends ProtocolMessage {
|
|
1363
|
-
errCode: number
|
|
1364
|
-
errMsg?: string
|
|
1363
|
+
errCode: number
|
|
1364
|
+
errMsg?: string
|
|
1365
1365
|
}
|
|
1366
1366
|
export interface MarkInboxMessageStarredResponse extends ProtocolMessage {
|
|
1367
|
-
errCode: number
|
|
1368
|
-
errMsg?: string
|
|
1367
|
+
errCode: number
|
|
1368
|
+
errMsg?: string
|
|
1369
1369
|
}
|
|
1370
1370
|
export interface MarkInboxMessageDeletedResponse extends ProtocolMessage {
|
|
1371
|
-
errCode: number
|
|
1372
|
-
errMsg?: string
|
|
1373
|
-
}
|
|
1374
|
-
export interface AchievementOptinResponse extends ProtocolResponse {
|
|
1371
|
+
errCode: number
|
|
1372
|
+
errMsg?: string
|
|
1375
1373
|
}
|
|
1374
|
+
export interface AchievementOptinResponse extends ProtocolResponse {}
|
|
1376
1375
|
export interface AchievementPublicMeta {
|
|
1377
|
-
description?: string
|
|
1378
|
-
unlock_mission_description?: string
|
|
1379
|
-
custom_data?: string
|
|
1380
|
-
cta_text?: string
|
|
1381
|
-
cta_action?: string
|
|
1382
|
-
label_tag?: string
|
|
1383
|
-
custom_label_tag?: string
|
|
1384
|
-
reward?: string
|
|
1385
|
-
image_url?: string
|
|
1386
|
-
name?: string
|
|
1387
|
-
position?: number
|
|
1388
|
-
hide_tasks?: boolean
|
|
1389
|
-
hide_locked_mission?: boolean
|
|
1390
|
-
custom_section_id?: number
|
|
1391
|
-
only_in_custom_section?: boolean
|
|
1392
|
-
hint_text?: string
|
|
1393
|
-
hide_badge_from_ui?: boolean
|
|
1394
|
-
show_badge_first_task_completed?: boolean
|
|
1376
|
+
description?: string
|
|
1377
|
+
unlock_mission_description?: string
|
|
1378
|
+
custom_data?: string
|
|
1379
|
+
cta_text?: string
|
|
1380
|
+
cta_action?: string
|
|
1381
|
+
label_tag?: string
|
|
1382
|
+
custom_label_tag?: string
|
|
1383
|
+
reward?: string
|
|
1384
|
+
image_url?: string
|
|
1385
|
+
name?: string
|
|
1386
|
+
position?: number
|
|
1387
|
+
hide_tasks?: boolean
|
|
1388
|
+
hide_locked_mission?: boolean
|
|
1389
|
+
custom_section_id?: number
|
|
1390
|
+
only_in_custom_section?: boolean
|
|
1391
|
+
hint_text?: string
|
|
1392
|
+
hide_badge_from_ui?: boolean
|
|
1393
|
+
show_badge_first_task_completed?: boolean
|
|
1395
1394
|
}
|
|
1396
1395
|
declare enum AchievementStatus {
|
|
1397
1396
|
Draft = 1,
|
|
@@ -1399,116 +1398,115 @@ declare enum AchievementStatus {
|
|
|
1399
1398
|
AvailableLocked = 3,
|
|
1400
1399
|
Archived = 4,
|
|
1401
1400
|
FeaturedManually = 5,
|
|
1402
|
-
FeaturedAI = 6
|
|
1401
|
+
FeaturedAI = 6,
|
|
1403
1402
|
}
|
|
1404
1403
|
export interface AchievementTaskPublicMeta {
|
|
1405
|
-
name?: string
|
|
1404
|
+
name?: string
|
|
1406
1405
|
}
|
|
1407
1406
|
declare enum AchievementTaskType {
|
|
1408
1407
|
CompleteAchievement = 1,
|
|
1409
|
-
UnlockAchievement = 2
|
|
1408
|
+
UnlockAchievement = 2,
|
|
1410
1409
|
}
|
|
1411
1410
|
declare enum AchievementType {
|
|
1412
1411
|
Mission = 1,
|
|
1413
|
-
Badge = 2
|
|
1412
|
+
Badge = 2,
|
|
1414
1413
|
}
|
|
1415
1414
|
declare enum ScheduledMissionType {
|
|
1416
1415
|
Future = 1,
|
|
1417
1416
|
Past = 2,
|
|
1418
|
-
Present = 3
|
|
1417
|
+
Present = 3,
|
|
1419
1418
|
}
|
|
1420
1419
|
export interface UserAchievementTask {
|
|
1421
|
-
task_id?: number
|
|
1422
|
-
task_public_meta?: AchievementTaskPublicMeta
|
|
1423
|
-
points_reward?: number
|
|
1424
|
-
task_type_id: AchievementTaskType
|
|
1425
|
-
isCompleted?: boolean
|
|
1426
|
-
userExecutedCount?: number
|
|
1427
|
-
userProgress?: number
|
|
1428
|
-
lastExecutionDate: string
|
|
1429
|
-
unlocked_by_mission_id?: number
|
|
1430
|
-
unlocked_by_level_id?: number
|
|
1420
|
+
task_id?: number
|
|
1421
|
+
task_public_meta?: AchievementTaskPublicMeta
|
|
1422
|
+
points_reward?: number
|
|
1423
|
+
task_type_id: AchievementTaskType
|
|
1424
|
+
isCompleted?: boolean
|
|
1425
|
+
userExecutedCount?: number
|
|
1426
|
+
userProgress?: number
|
|
1427
|
+
lastExecutionDate: string
|
|
1428
|
+
unlocked_by_mission_id?: number
|
|
1429
|
+
unlocked_by_level_id?: number
|
|
1431
1430
|
}
|
|
1432
1431
|
export interface UserAchievement {
|
|
1433
|
-
ach_id?: number
|
|
1434
|
-
ach_type_id?: AchievementType
|
|
1435
|
-
ach_public_meta?: AchievementPublicMeta
|
|
1436
|
-
isCompleted?: boolean
|
|
1437
|
-
isLocked?: boolean
|
|
1438
|
-
requiresOptin?: boolean
|
|
1439
|
-
isOptedIn?: boolean
|
|
1440
|
-
start_date?: string
|
|
1441
|
-
start_date_ts?: number
|
|
1442
|
-
time_limit_ms?: number
|
|
1443
|
-
progress?: number
|
|
1444
|
-
complete_date?: string
|
|
1445
|
-
unlock_date?: string
|
|
1446
|
-
milliseconds_till_available?: number
|
|
1447
|
-
completed_tasks?: number
|
|
1448
|
-
achievementTasks?: UserAchievementTask[]
|
|
1449
|
-
ach_status_id?: AchievementStatus
|
|
1450
|
-
scheduledMissionType?: ScheduledMissionType
|
|
1451
|
-
related_games?: AchRelatedGame[]
|
|
1452
|
-
active_from_ts?: number
|
|
1453
|
-
ach_categories?: number[]
|
|
1454
|
-
ach_completed_id?: number
|
|
1455
|
-
requires_prize_claim?: boolean
|
|
1456
|
-
prize_claimed_date_ts?: number
|
|
1432
|
+
ach_id?: number
|
|
1433
|
+
ach_type_id?: AchievementType
|
|
1434
|
+
ach_public_meta?: AchievementPublicMeta
|
|
1435
|
+
isCompleted?: boolean
|
|
1436
|
+
isLocked?: boolean
|
|
1437
|
+
requiresOptin?: boolean
|
|
1438
|
+
isOptedIn?: boolean
|
|
1439
|
+
start_date?: string
|
|
1440
|
+
start_date_ts?: number
|
|
1441
|
+
time_limit_ms?: number
|
|
1442
|
+
progress?: number
|
|
1443
|
+
complete_date?: string
|
|
1444
|
+
unlock_date?: string
|
|
1445
|
+
milliseconds_till_available?: number
|
|
1446
|
+
completed_tasks?: number
|
|
1447
|
+
achievementTasks?: UserAchievementTask[]
|
|
1448
|
+
ach_status_id?: AchievementStatus
|
|
1449
|
+
scheduledMissionType?: ScheduledMissionType
|
|
1450
|
+
related_games?: AchRelatedGame[]
|
|
1451
|
+
active_from_ts?: number
|
|
1452
|
+
ach_categories?: number[]
|
|
1453
|
+
ach_completed_id?: number
|
|
1454
|
+
requires_prize_claim?: boolean
|
|
1455
|
+
prize_claimed_date_ts?: number
|
|
1457
1456
|
}
|
|
1458
1457
|
export interface GetAchievementMapResponse extends ProtocolResponse {
|
|
1459
|
-
achievements?: UserAchievement[]
|
|
1458
|
+
achievements?: UserAchievement[]
|
|
1460
1459
|
}
|
|
1461
1460
|
export interface AchCategoryPublicMeta {
|
|
1462
|
-
name?: string
|
|
1463
|
-
order?: number
|
|
1461
|
+
name?: string
|
|
1462
|
+
order?: number
|
|
1464
1463
|
}
|
|
1465
1464
|
export interface AchCategory {
|
|
1466
|
-
id?: number
|
|
1467
|
-
publicMeta?: AchCategoryPublicMeta
|
|
1465
|
+
id?: number
|
|
1466
|
+
publicMeta?: AchCategoryPublicMeta
|
|
1468
1467
|
}
|
|
1469
1468
|
export interface GetAchCategoriesResponse extends ProtocolResponse {
|
|
1470
|
-
categories: AchCategory[]
|
|
1471
|
-
}
|
|
1472
|
-
export interface AchClaimPrizeResponse extends ProtocolResponse {
|
|
1469
|
+
categories: AchCategory[]
|
|
1473
1470
|
}
|
|
1471
|
+
export interface AchClaimPrizeResponse extends ProtocolResponse {}
|
|
1474
1472
|
export interface LevelPublicMeta {
|
|
1475
1473
|
/** Description of level, HTML capabable */
|
|
1476
|
-
description?: string
|
|
1474
|
+
description?: string
|
|
1477
1475
|
/** URL to the image of level */
|
|
1478
|
-
image_url?: string
|
|
1476
|
+
image_url?: string
|
|
1479
1477
|
/** Name of level */
|
|
1480
|
-
name?: string
|
|
1478
|
+
name?: string
|
|
1481
1479
|
/** Number of points that user should have collected in order to see this level */
|
|
1482
|
-
visibility_points?: number
|
|
1480
|
+
visibility_points?: number
|
|
1483
1481
|
/** X & Y coordinates of level on the visual mission map, for desktop and mobile */
|
|
1484
1482
|
position?: {
|
|
1485
|
-
mx: number
|
|
1486
|
-
my: number
|
|
1487
|
-
dx: number
|
|
1488
|
-
dy: number
|
|
1489
|
-
}
|
|
1483
|
+
mx: number
|
|
1484
|
+
my: number
|
|
1485
|
+
dx: number
|
|
1486
|
+
dy: number
|
|
1487
|
+
}
|
|
1490
1488
|
/**custom data as string or JSON string that can be used in UIWidget */
|
|
1491
|
-
custom_data: string
|
|
1489
|
+
custom_data: string
|
|
1492
1490
|
}
|
|
1493
1491
|
export interface Level {
|
|
1494
|
-
level_id: number
|
|
1495
|
-
level_public_meta: LevelPublicMeta
|
|
1496
|
-
required_points: number
|
|
1497
|
-
is_first_level: boolean
|
|
1492
|
+
level_id: number
|
|
1493
|
+
level_public_meta: LevelPublicMeta
|
|
1494
|
+
required_points: number
|
|
1495
|
+
is_first_level: boolean
|
|
1498
1496
|
/** Internal status of level. Not in use right now on the front-end */
|
|
1499
|
-
level_status_id: number
|
|
1500
|
-
required_level_counter_1: number
|
|
1501
|
-
required_level_counter_2: number
|
|
1502
|
-
general_level_progress: number
|
|
1497
|
+
level_status_id: number
|
|
1498
|
+
required_level_counter_1: number
|
|
1499
|
+
required_level_counter_2: number
|
|
1500
|
+
general_level_progress: number
|
|
1503
1501
|
}
|
|
1504
1502
|
export interface GetLevelMapResponse extends ProtocolResponse {
|
|
1505
|
-
levels: Level[]
|
|
1503
|
+
levels: Level[]
|
|
1506
1504
|
}
|
|
1507
1505
|
declare class WSAPI {
|
|
1508
|
-
private api
|
|
1509
|
-
private onUpdateCallback
|
|
1506
|
+
private api
|
|
1507
|
+
private onUpdateCallback
|
|
1510
1508
|
/** @private */
|
|
1511
|
-
constructor(api: SmarticoAPI)
|
|
1509
|
+
constructor(api: SmarticoAPI)
|
|
1512
1510
|
/** Returns information about current user
|
|
1513
1511
|
* Example usage:
|
|
1514
1512
|
* ```
|
|
@@ -1517,7 +1515,7 @@ declare class WSAPI {
|
|
|
1517
1515
|
* });
|
|
1518
1516
|
* ```
|
|
1519
1517
|
* */
|
|
1520
|
-
getUserProfile(): TUserProfile
|
|
1518
|
+
getUserProfile(): TUserProfile
|
|
1521
1519
|
/** Check if user belongs to specific segments
|
|
1522
1520
|
* Example usage:
|
|
1523
1521
|
* ```
|
|
@@ -1525,8 +1523,8 @@ declare class WSAPI {
|
|
|
1525
1523
|
* console.log(result);
|
|
1526
1524
|
* });
|
|
1527
1525
|
* ```
|
|
1528
|
-
|
|
1529
|
-
checkSegmentMatch(segment_id: number): Promise<boolean
|
|
1526
|
+
*/
|
|
1527
|
+
checkSegmentMatch(segment_id: number): Promise<boolean>
|
|
1530
1528
|
/** Check if user belongs to specific list of segments
|
|
1531
1529
|
* Example usage:
|
|
1532
1530
|
* ```
|
|
@@ -1534,8 +1532,8 @@ declare class WSAPI {
|
|
|
1534
1532
|
* console.log(result);
|
|
1535
1533
|
* });
|
|
1536
1534
|
* ```
|
|
1537
|
-
|
|
1538
|
-
checkSegmentListMatch(segment_ids: number[]): Promise<TSegmentCheckResult[]
|
|
1535
|
+
*/
|
|
1536
|
+
checkSegmentListMatch(segment_ids: number[]): Promise<TSegmentCheckResult[]>
|
|
1539
1537
|
/** Returns all the levels available the current user
|
|
1540
1538
|
* Example usage:
|
|
1541
1539
|
* ```
|
|
@@ -1543,8 +1541,8 @@ declare class WSAPI {
|
|
|
1543
1541
|
* console.log(result);
|
|
1544
1542
|
* });
|
|
1545
1543
|
* ```
|
|
1546
|
-
|
|
1547
|
-
getLevels(): Promise<TLevel[]
|
|
1544
|
+
*/
|
|
1545
|
+
getLevels(): Promise<TLevel[]>
|
|
1548
1546
|
/** Returns all the missions available the current user.
|
|
1549
1547
|
* The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
1550
1548
|
* Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
@@ -1558,11 +1556,9 @@ declare class WSAPI {
|
|
|
1558
1556
|
/**
|
|
1559
1557
|
* @param params
|
|
1560
1558
|
*/
|
|
1561
|
-
getMissions({ onUpdate }?: {
|
|
1562
|
-
onUpdate?: (data: TMissionOrBadge[]) => void;
|
|
1563
|
-
}): Promise<TMissionOrBadge[]>;
|
|
1559
|
+
getMissions({ onUpdate }?: { onUpdate?: (data: TMissionOrBadge[]) => void }): Promise<TMissionOrBadge[]>
|
|
1564
1560
|
/** Returns all the badges available the current user */
|
|
1565
|
-
getBadges(): Promise<TMissionOrBadge[]
|
|
1561
|
+
getBadges(): Promise<TMissionOrBadge[]>
|
|
1566
1562
|
/**
|
|
1567
1563
|
* Returns the extra counters for the current user level.
|
|
1568
1564
|
* These are counters that are configured for each Smartico client separatly by request.
|
|
@@ -1573,41 +1569,37 @@ declare class WSAPI {
|
|
|
1573
1569
|
* console.log(result);
|
|
1574
1570
|
* });
|
|
1575
1571
|
* ```
|
|
1576
|
-
|
|
1577
|
-
getUserLevelExtraCounters(): Promise<UserLevelExtraCountersT
|
|
1572
|
+
*/
|
|
1573
|
+
getUserLevelExtraCounters(): Promise<UserLevelExtraCountersT>
|
|
1578
1574
|
/** Returns all the store items available the current user
|
|
1579
1575
|
* Example usage:
|
|
1580
1576
|
* ```
|
|
1581
1577
|
* _smartico.api.getStoreItems().then((result) => {
|
|
1582
1578
|
* console.log(result);
|
|
1583
1579
|
* });
|
|
1584
|
-
|
|
1585
|
-
getStoreItems(): Promise<TStoreItem[]
|
|
1580
|
+
*/
|
|
1581
|
+
getStoreItems(): Promise<TStoreItem[]>
|
|
1586
1582
|
/** Buy the specific shop item by item_id. Returns the err_code in case of success or error.
|
|
1587
1583
|
* Example usage:
|
|
1588
1584
|
* ```
|
|
1589
1585
|
* _smartico.api.buyStoreItem(1).then((result) => {
|
|
1590
1586
|
* console.log(result);
|
|
1591
1587
|
* });
|
|
1592
|
-
|
|
1593
|
-
buyStoreItem(item_id: number): Promise<TBuyStoreItemResult
|
|
1588
|
+
*/
|
|
1589
|
+
buyStoreItem(item_id: number): Promise<TBuyStoreItemResult>
|
|
1594
1590
|
/** Returns store categories */
|
|
1595
|
-
getStoreCategories(): Promise<TStoreCategory[]
|
|
1591
|
+
getStoreCategories(): Promise<TStoreCategory[]>
|
|
1596
1592
|
/** Returns store purchased items based on the provided parameters. "From" and "to" indicate the range of items to be fetched.
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1593
|
+
* The maximum number of messages per request is limited to 20.
|
|
1594
|
+
* You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
|
|
1595
|
+
* This functions return list of purchased items.
|
|
1596
|
+
* The "onUpdate" callback will be triggered when the user receives a new purchased item. It will provide an updated list of items, ranging from 0 to 20, to the onUpdate callback function. */
|
|
1601
1597
|
/**
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
storeGetPurchasedItems({ from, to, onUpdate }?: {
|
|
1605
|
-
from?: number;
|
|
1606
|
-
to?: number;
|
|
1607
|
-
onUpdate?: (data: TStoreItem[]) => void;
|
|
1608
|
-
}): Promise<TStoreItem[]>;
|
|
1598
|
+
* @param params
|
|
1599
|
+
*/
|
|
1600
|
+
storeGetPurchasedItems({ from, to, onUpdate }?: { from?: number; to?: number; onUpdate?: (data: TStoreItem[]) => void }): Promise<TStoreItem[]>
|
|
1609
1601
|
/** Returns missions & badges categories */
|
|
1610
|
-
getAchCategories(): Promise<TAchCategory[]
|
|
1602
|
+
getAchCategories(): Promise<TAchCategory[]>
|
|
1611
1603
|
/** Returns the list of mini-games available for user
|
|
1612
1604
|
* The returned list of mini-games is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMiniGames with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
1613
1605
|
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or wined prize is spin/jackpot and if max count of the available user spin equal one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback. */
|
|
@@ -1615,405 +1607,397 @@ declare class WSAPI {
|
|
|
1615
1607
|
/**
|
|
1616
1608
|
* @param params
|
|
1617
1609
|
*/
|
|
1618
|
-
getMiniGames({ onUpdate }?: {
|
|
1619
|
-
onUpdate?: (data: TMiniGameTemplate[]) => void;
|
|
1620
|
-
}): Promise<TMiniGameTemplate[]>;
|
|
1610
|
+
getMiniGames({ onUpdate }?: { onUpdate?: (data: TMiniGameTemplate[]) => void }): Promise<TMiniGameTemplate[]>
|
|
1621
1611
|
/** Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code */
|
|
1622
|
-
playMiniGame(template_id: number): Promise<TMiniGamePlayResult
|
|
1612
|
+
playMiniGame(template_id: number): Promise<TMiniGamePlayResult>
|
|
1623
1613
|
/** Requests an opt-in for the specified mission_id. Returns the err_code. */
|
|
1624
|
-
requestMissionOptIn(mission_id: number): Promise<TMissionOptInResult
|
|
1614
|
+
requestMissionOptIn(mission_id: number): Promise<TMissionOptInResult>
|
|
1625
1615
|
/** Request for claim reward for the specified mission id. Returns the err_code. */
|
|
1626
|
-
requestMissionClaimReward(mission_id: number, ach_completed_id: number): Promise<TMissionClaimRewardResult
|
|
1616
|
+
requestMissionClaimReward(mission_id: number, ach_completed_id: number): Promise<TMissionClaimRewardResult>
|
|
1627
1617
|
/** Returns all the active instances of tournaments
|
|
1628
1618
|
* The returned list is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getTournamentsList with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
1629
1619
|
* The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.*/
|
|
1630
1620
|
/**
|
|
1631
1621
|
* @param params
|
|
1632
1622
|
*/
|
|
1633
|
-
getTournamentsList({ onUpdate }?: {
|
|
1634
|
-
onUpdate?: (data: TTournament[]) => void;
|
|
1635
|
-
}): Promise<TTournament[]>;
|
|
1623
|
+
getTournamentsList({ onUpdate }?: { onUpdate?: (data: TTournament[]) => void }): Promise<TTournament[]>
|
|
1636
1624
|
/** Returns details information of specific tournament instance, the response will include tournament info and the leaderboard of players */
|
|
1637
|
-
getTournamentInstanceInfo(tournamentInstanceId: number): Promise<TTournamentDetailed
|
|
1625
|
+
getTournamentInstanceInfo(tournamentInstanceId: number): Promise<TTournamentDetailed>
|
|
1638
1626
|
/** Requests registration for the specified tournament instance. Returns the err_code. */
|
|
1639
|
-
registerInTournament(tournamentInstanceId: number): Promise<TTournamentRegistrationResult
|
|
1627
|
+
registerInTournament(tournamentInstanceId: number): Promise<TTournamentRegistrationResult>
|
|
1640
1628
|
/** Returns the leaderboard for the current type (default is Daily). If getPreviousPeriod is passed as true, a leaderboard for the previous period for the current type will be returned.
|
|
1641
1629
|
For example, if the type is Weekly and getPreviousPeriod is true, a leaderboard for the previous week will be returned.
|
|
1642
1630
|
*/
|
|
1643
|
-
getLeaderBoard(periodType: LeaderBoardPeriodType, getPreviousPeriod?: boolean): Promise<LeaderBoardDetailsT
|
|
1631
|
+
getLeaderBoard(periodType: LeaderBoardPeriodType, getPreviousPeriod?: boolean): Promise<LeaderBoardDetailsT>
|
|
1644
1632
|
/** Returns inbox messages based on the provided parameters. "From" and "to" indicate the range of messages to be fetched.
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1633
|
+
* The maximum number of messages per request is limited to 20. An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
|
|
1634
|
+
* You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
|
|
1635
|
+
* This functions return list of messages without the body of the message.
|
|
1636
|
+
* To get the body of the message you need to call getInboxMessageBody function and pass the message guid contained in each message of this request.
|
|
1637
|
+
* All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
|
|
1638
|
+
* The "onUpdate" callback will be triggered when the user receives a new message. It will provide an updated list of messages, ranging from 0 to 20, to the onUpdate callback function. */
|
|
1651
1639
|
/**
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
getInboxMessages({ from, to, onlyFavorite, onUpdate }?: {
|
|
1655
|
-
from?: number;
|
|
1656
|
-
to?: number;
|
|
1657
|
-
onlyFavorite?: boolean;
|
|
1658
|
-
onUpdate?: (data: TInboxMessage[]) => void;
|
|
1659
|
-
}): Promise<TInboxMessage[]>;
|
|
1640
|
+
* @param params
|
|
1641
|
+
*/
|
|
1642
|
+
getInboxMessages({ from, to, onlyFavorite, onUpdate }?: { from?: number; to?: number; onlyFavorite?: boolean; onUpdate?: (data: TInboxMessage[]) => void }): Promise<TInboxMessage[]>
|
|
1660
1643
|
/** Returns the message body of the specified message guid. */
|
|
1661
|
-
getInboxMessageBody(messageGuid: string): Promise<TInboxMessageBody
|
|
1644
|
+
getInboxMessageBody(messageGuid: string): Promise<TInboxMessageBody>
|
|
1662
1645
|
/** Requests to mark inbox message with specified guid as read */
|
|
1663
|
-
markInboxMessageAsRead(messageGuid: string): Promise<InboxMarkMessageAction
|
|
1646
|
+
markInboxMessageAsRead(messageGuid: string): Promise<InboxMarkMessageAction>
|
|
1664
1647
|
/** Requests to mark all inbox messages as read */
|
|
1665
|
-
markAllInboxMessagesAsRead(): Promise<InboxMarkMessageAction
|
|
1648
|
+
markAllInboxMessagesAsRead(): Promise<InboxMarkMessageAction>
|
|
1666
1649
|
/** Requests to mark inbox message with specified guid as favorite. Pass mark true to add message to favorite and false to remove. */
|
|
1667
|
-
markUnmarkInboxMessageAsFavorite(messageGuid: string, mark: boolean): Promise<InboxMarkMessageAction
|
|
1650
|
+
markUnmarkInboxMessageAsFavorite(messageGuid: string, mark: boolean): Promise<InboxMarkMessageAction>
|
|
1668
1651
|
/** Requests to delete inbox message */
|
|
1669
|
-
deleteInboxMessage(messageGuid: string): Promise<InboxMarkMessageAction
|
|
1652
|
+
deleteInboxMessage(messageGuid: string): Promise<InboxMarkMessageAction>
|
|
1670
1653
|
/** Requests to delete all inbox messages */
|
|
1671
|
-
deleteAllInboxMessages(): Promise<InboxMarkMessageAction
|
|
1654
|
+
deleteAllInboxMessages(): Promise<InboxMarkMessageAction>
|
|
1672
1655
|
/** Requests translations for the given language. Returns the object including translation key/translation value pairs. All possible translation keys defined in the back office. */
|
|
1673
|
-
getTranslations(lang_code: string): Promise<TGetTranslations
|
|
1674
|
-
private updateOnSpin
|
|
1675
|
-
private updateOnAddSpin
|
|
1676
|
-
private updateOnPrizeWin
|
|
1677
|
-
private updateMissionsOnOptIn
|
|
1678
|
-
private updateTournamentsOnRegistration
|
|
1679
|
-
private updateInboxMessages
|
|
1680
|
-
private updateEntity
|
|
1656
|
+
getTranslations(lang_code: string): Promise<TGetTranslations>
|
|
1657
|
+
private updateOnSpin
|
|
1658
|
+
private updateOnAddSpin
|
|
1659
|
+
private updateOnPrizeWin
|
|
1660
|
+
private updateMissionsOnOptIn
|
|
1661
|
+
private updateTournamentsOnRegistration
|
|
1662
|
+
private updateInboxMessages
|
|
1663
|
+
private updateEntity
|
|
1681
1664
|
}
|
|
1682
1665
|
export interface GetAchievementsUserInfoResponse extends ProtocolResponse {
|
|
1683
|
-
level_counter_1?: number
|
|
1684
|
-
level_counter_2?: number
|
|
1666
|
+
level_counter_1?: number
|
|
1667
|
+
level_counter_2?: number
|
|
1685
1668
|
}
|
|
1686
1669
|
export interface Tracker {
|
|
1687
|
-
label_api_key: string
|
|
1688
|
-
userPublicProps: any
|
|
1689
|
-
on: (callBackKey: ClassId, func: (data: any) => void) => void
|
|
1690
|
-
getLabelSetting: (key: PublicLabelSettings$1) => any
|
|
1670
|
+
label_api_key: string
|
|
1671
|
+
userPublicProps: any
|
|
1672
|
+
on: (callBackKey: ClassId, func: (data: any) => void) => void
|
|
1673
|
+
getLabelSetting: (key: PublicLabelSettings$1) => any
|
|
1691
1674
|
}
|
|
1692
1675
|
export interface IOptions {
|
|
1693
|
-
logger?: ILogger
|
|
1694
|
-
logCIDs?: ClassId[]
|
|
1695
|
-
logHTTPTiming?: boolean
|
|
1696
|
-
tracker?: Tracker
|
|
1676
|
+
logger?: ILogger
|
|
1677
|
+
logCIDs?: ClassId[]
|
|
1678
|
+
logHTTPTiming?: boolean
|
|
1679
|
+
tracker?: Tracker
|
|
1697
1680
|
}
|
|
1698
|
-
export type MessageSender = (message: any, publicApuUrl?: string, expectCID?: ClassId) => Promise<any
|
|
1681
|
+
export type MessageSender = (message: any, publicApuUrl?: string, expectCID?: ClassId) => Promise<any>
|
|
1699
1682
|
declare class SmarticoAPI {
|
|
1700
|
-
private label_api_key
|
|
1701
|
-
private brand_api_key
|
|
1702
|
-
private messageSender
|
|
1703
|
-
private publicUrl
|
|
1704
|
-
private wsUrl
|
|
1705
|
-
private inboxCdnUrl
|
|
1706
|
-
private partnerUrl
|
|
1707
|
-
avatarDomain: string
|
|
1708
|
-
private logger
|
|
1709
|
-
private logCIDs
|
|
1710
|
-
private logHTTPTiming
|
|
1711
|
-
tracker?: Tracker
|
|
1712
|
-
constructor(label_api_key: string, brand_api_key: string, messageSender: MessageSender, options?: IOptions)
|
|
1713
|
-
static getEnvDnsSuffix(label_api_key: string): string
|
|
1714
|
-
static getEnvId(label_api_key: string): number
|
|
1715
|
-
static getCleanLabelApiKey(label_api_key: string): string
|
|
1716
|
-
static getPublicUrl(label_api_key: string): string
|
|
1717
|
-
static getPublicWsUrl(label_api_key: string): string
|
|
1718
|
-
static getAvatarUrl(label_api_key: string): string
|
|
1719
|
-
private send
|
|
1720
|
-
private buildMessage
|
|
1721
|
-
coreReportCustomEvent(user_ext_id: string, eventType: string, payload?: any): Promise<any
|
|
1722
|
-
coreGetTranslations(user_ext_id: string, lang_code: string, areas: TranslationArea[], cacheSec?: number): Promise<GetTranslationsResponse
|
|
1723
|
-
coreIdentifyLabel(user_ext_id: string, cacheSec?: number): Promise<GetLabelInfoResponse
|
|
1724
|
-
coreIdentifyUser(user_ext_id: string): Promise<ResponseIdentify
|
|
1725
|
-
coreChangeUsername(
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1683
|
+
private label_api_key
|
|
1684
|
+
private brand_api_key
|
|
1685
|
+
private messageSender
|
|
1686
|
+
private publicUrl
|
|
1687
|
+
private wsUrl
|
|
1688
|
+
private inboxCdnUrl
|
|
1689
|
+
private partnerUrl
|
|
1690
|
+
avatarDomain: string
|
|
1691
|
+
private logger
|
|
1692
|
+
private logCIDs
|
|
1693
|
+
private logHTTPTiming
|
|
1694
|
+
tracker?: Tracker
|
|
1695
|
+
constructor(label_api_key: string, brand_api_key: string, messageSender: MessageSender, options?: IOptions)
|
|
1696
|
+
static getEnvDnsSuffix(label_api_key: string): string
|
|
1697
|
+
static getEnvId(label_api_key: string): number
|
|
1698
|
+
static getCleanLabelApiKey(label_api_key: string): string
|
|
1699
|
+
static getPublicUrl(label_api_key: string): string
|
|
1700
|
+
static getPublicWsUrl(label_api_key: string): string
|
|
1701
|
+
static getAvatarUrl(label_api_key: string): string
|
|
1702
|
+
private send
|
|
1703
|
+
private buildMessage
|
|
1704
|
+
coreReportCustomEvent(user_ext_id: string, eventType: string, payload?: any): Promise<any>
|
|
1705
|
+
coreGetTranslations(user_ext_id: string, lang_code: string, areas: TranslationArea[], cacheSec?: number): Promise<GetTranslationsResponse>
|
|
1706
|
+
coreIdentifyLabel(user_ext_id: string, cacheSec?: number): Promise<GetLabelInfoResponse>
|
|
1707
|
+
coreIdentifyUser(user_ext_id: string): Promise<ResponseIdentify>
|
|
1708
|
+
coreChangeUsername(
|
|
1709
|
+
user_ext_id: string,
|
|
1710
|
+
public_username_custom: string,
|
|
1711
|
+
): Promise<{
|
|
1712
|
+
public_username_custom: string
|
|
1713
|
+
}>
|
|
1714
|
+
coreCheckSegments(user_ext_id: string, segment_id: number[]): Promise<TSegmentCheckResult[]>
|
|
1715
|
+
sawGetTemplates(user_ext_id: string, lang?: string, is_visitor_mode?: boolean): Promise<SAWGetTemplatesResponse>
|
|
1716
|
+
sawGetTemplatesT(user_ext_id: string): Promise<TMiniGameTemplate[]>
|
|
1717
|
+
doAcknowledgeRequest(user_ext_id: string, request_id: string): Promise<SAWDoAknowledgeResponse>
|
|
1718
|
+
sawSpinRequest(user_ext_id: string, saw_template_id: number, round_id?: number): Promise<SAWDoSpinResponse>
|
|
1719
|
+
missionOptIn(user_ext_id: string, mission_id: number): Promise<AchievementOptinResponse>
|
|
1720
|
+
missionClaimPrize(user_ext_id: string, mission_id: number, ach_completed_id: number): Promise<AchClaimPrizeResponse>
|
|
1721
|
+
registerInTournament(user_ext_id: string, tournamentInstanceId: number): Promise<TournamentRegisterResponse>
|
|
1722
|
+
buyStoreItem(user_ext_id: string, itemId: number): Promise<BuyStoreItemResponse>
|
|
1723
|
+
inboxGetMessages(user_ext_id: string, limit?: number, offset?: number): Promise<GetInboxMessagesResponse>
|
|
1724
|
+
storeGetItems(user_ext_id: string): Promise<GetStoreItemsResponse>
|
|
1725
|
+
storeGetItemsT(user_ext_id: string): Promise<TStoreItem[]>
|
|
1726
|
+
storeGetCategories(user_ext_id: string): Promise<GetCategoriesStoreResponse>
|
|
1727
|
+
storeGetCategoriesT(user_ext_id: string): Promise<TStoreCategory[]>
|
|
1728
|
+
storeGetPurchasedItems(user_ext_id: string, limit?: number, offset?: number): Promise<GetStoreHistoryResponse>
|
|
1729
|
+
storeGetPurchasedItemsT(user_ext_id: string, from?: number, to?: number): Promise<TStoreItem[]>
|
|
1730
|
+
missionsGetItems(user_ext_id: string): Promise<GetAchievementMapResponse>
|
|
1731
|
+
missionsGetItemsT(user_ext_id: string): Promise<TMissionOrBadge[]>
|
|
1732
|
+
getUserGamificationInfo(user_ext_id: string): Promise<GetAchievementsUserInfoResponse>
|
|
1733
|
+
getUserGamificationInfoT(user_ext_id: string): Promise<UserLevelExtraCountersT>
|
|
1734
|
+
achGetCategories(user_ext_id: string): Promise<GetAchCategoriesResponse>
|
|
1735
|
+
achGetCategoriesT(user_ext_id: string): Promise<TAchCategory[]>
|
|
1736
|
+
badgetsGetItems(user_ext_id: string): Promise<GetAchievementMapResponse>
|
|
1737
|
+
badgetsGetItemsT(user_ext_id: string): Promise<TMissionOrBadge[]>
|
|
1738
|
+
tournamentsGetLobby(user_ext_id: string): Promise<GetTournamentsResponse>
|
|
1739
|
+
tournamentsGetLobbyT(user_ext_id: string): Promise<TTournament[]>
|
|
1740
|
+
tournamentsGetInfo(user_ext_id: string, tournamentInstanceId: number): Promise<GetTournamentInfoResponse>
|
|
1741
|
+
tournamentsGetInfoT(user_ext_id: string, tournamentInstanceId: number): Promise<TTournamentDetailed>
|
|
1742
|
+
leaderboardGet(user_ext_id: string, period_type_id?: LeaderBoardPeriodType, prevPeriod?: boolean): Promise<LeaderBoardDetails>
|
|
1743
|
+
leaderboardsGetT(user_ext_id: string, period_type_id?: LeaderBoardPeriodType, prevPeriod?: boolean): Promise<LeaderBoardDetailsT>
|
|
1744
|
+
levelsGet(user_ext_id: string): Promise<GetLevelMapResponse>
|
|
1745
|
+
levelsGetT(user_ext_id: string): Promise<TLevel[]>
|
|
1746
|
+
getTranslationsT(user_ext_id: string, lang_code: string, areas: TranslationArea[], cacheSec?: number): Promise<GetTranslationsResponse>
|
|
1747
|
+
getInboxMessages(user_ext_id: string, limit: number, offset: number, starred_only: boolean): Promise<GetInboxMessagesResponse>
|
|
1748
|
+
getInboxMessagesT(user_ext_id: string, from?: number, to?: number, favoriteOnly?: boolean): Promise<TInboxMessage[]>
|
|
1749
|
+
getInboxMessageBody(messageGuid: string): Promise<InboxMessageBody>
|
|
1750
|
+
getInboxMessageBodyT(messageGuid: string): Promise<TInboxMessageBody>
|
|
1751
|
+
markInboxMessageRead(user_ext_id: string, messageGuid: string): Promise<MarkInboxMessageReadResponse>
|
|
1752
|
+
markAllInboxMessageRead(user_ext_id: string): Promise<MarkInboxMessageReadResponse>
|
|
1753
|
+
markUnmarkInboxMessageAsFavorite(user_ext_id: string, messageGuid: string, mark: boolean): Promise<MarkInboxMessageStarredResponse>
|
|
1754
|
+
deleteInboxMessage(user_ext_id: string, messageGuid: string): Promise<MarkInboxMessageDeletedResponse>
|
|
1755
|
+
deleteAllInboxMessages(user_ext_id: string): Promise<MarkInboxMessageDeletedResponse>
|
|
1756
|
+
getWSCalls(): WSAPI
|
|
1771
1757
|
}
|
|
1772
1758
|
export interface SmarticoClearParams {
|
|
1773
|
-
keepCallBacks: boolean
|
|
1759
|
+
keepCallBacks: boolean
|
|
1774
1760
|
}
|
|
1775
1761
|
export interface RequestBase {
|
|
1776
|
-
cid?: number
|
|
1777
|
-
ts?: number
|
|
1778
|
-
uuid?: string
|
|
1762
|
+
cid?: number
|
|
1763
|
+
ts?: number
|
|
1764
|
+
uuid?: string
|
|
1779
1765
|
}
|
|
1780
1766
|
export interface RequestClientEngagmentBase extends RequestBase {
|
|
1781
|
-
engagement_uid: string
|
|
1782
|
-
activityType: CJMActivityType
|
|
1767
|
+
engagement_uid: string
|
|
1768
|
+
activityType: CJMActivityType
|
|
1783
1769
|
}
|
|
1784
1770
|
export interface RequestClientEngagementAction extends RequestClientEngagmentBase {
|
|
1785
|
-
action?: string
|
|
1771
|
+
action?: string
|
|
1786
1772
|
}
|
|
1787
1773
|
export interface RequestClientEngagementFailed extends RequestClientEngagmentBase {
|
|
1788
|
-
action?: string
|
|
1789
|
-
reason?: string
|
|
1774
|
+
action?: string
|
|
1775
|
+
reason?: string
|
|
1790
1776
|
}
|
|
1791
1777
|
declare enum EWidgetType {
|
|
1792
|
-
Achievements2 =
|
|
1793
|
-
Achievements =
|
|
1794
|
-
ShortInfo1 =
|
|
1795
|
-
ShortInfo =
|
|
1796
|
-
Tournaments =
|
|
1797
|
-
Store =
|
|
1798
|
-
Inbox =
|
|
1799
|
-
Missions =
|
|
1800
|
-
MiniGame =
|
|
1801
|
-
MatchX =
|
|
1802
|
-
MatchXNew =
|
|
1803
|
-
CustomSection =
|
|
1804
|
-
InboxWidget =
|
|
1805
|
-
UIWidget =
|
|
1778
|
+
Achievements2 = 'achievements2',
|
|
1779
|
+
Achievements = 'achievements',
|
|
1780
|
+
ShortInfo1 = 'short_info1',
|
|
1781
|
+
ShortInfo = 'short_info',
|
|
1782
|
+
Tournaments = 'tournaments',
|
|
1783
|
+
Store = 'store',
|
|
1784
|
+
Inbox = 'inbox',
|
|
1785
|
+
Missions = 'missions',
|
|
1786
|
+
MiniGame = 'mini-game',
|
|
1787
|
+
MatchX = 'match-x',
|
|
1788
|
+
MatchXNew = 'match-x-2',
|
|
1789
|
+
CustomSection = 'custom-section',
|
|
1790
|
+
InboxWidget = 'inbox-widget',
|
|
1791
|
+
UIWidget = 'ui-widget',
|
|
1806
1792
|
}
|
|
1807
1793
|
declare enum EXTERNAL_CALLBACK_KEY {
|
|
1808
|
-
INIT =
|
|
1809
|
-
IDENTIFY =
|
|
1810
|
-
LOGIN =
|
|
1811
|
-
LOGOUT =
|
|
1812
|
-
USER_PROPS_CHANGE =
|
|
1813
|
-
SESSION_BASED_DP_DETECTED =
|
|
1814
|
-
GF_CLOSING =
|
|
1815
|
-
GF_STARTING =
|
|
1816
|
-
GF_STARTED =
|
|
1817
|
-
SAW_STARTING =
|
|
1818
|
-
INBOX_STARTING =
|
|
1819
|
-
PROTOCOL_ERROR =
|
|
1820
|
-
MNIGAME_WIN =
|
|
1821
|
-
ACH_GAME_OPENING =
|
|
1794
|
+
INIT = 'init',
|
|
1795
|
+
IDENTIFY = 'identify',
|
|
1796
|
+
LOGIN = 'login',
|
|
1797
|
+
LOGOUT = 'logout',
|
|
1798
|
+
USER_PROPS_CHANGE = 'props_change',
|
|
1799
|
+
SESSION_BASED_DP_DETECTED = 'session_based_dp_detected',
|
|
1800
|
+
GF_CLOSING = 'gf_closing',
|
|
1801
|
+
GF_STARTING = 'gf_starting',
|
|
1802
|
+
GF_STARTED = 'gf_started',
|
|
1803
|
+
SAW_STARTING = 'saw_starting',
|
|
1804
|
+
INBOX_STARTING = 'inbox_starting',
|
|
1805
|
+
PROTOCOL_ERROR = 'protocol_error',
|
|
1806
|
+
MNIGAME_WIN = 'mini_game_win',
|
|
1807
|
+
ACH_GAME_OPENING = 'ach_game_opening',
|
|
1822
1808
|
}
|
|
1823
1809
|
declare enum DpType {
|
|
1824
|
-
AskPushPermissions =
|
|
1825
|
-
Ok =
|
|
1826
|
-
Cancel =
|
|
1827
|
-
Close =
|
|
1828
|
-
Go =
|
|
1829
|
-
Inbox =
|
|
1830
|
-
GfMain =
|
|
1831
|
-
Activity =
|
|
1832
|
-
Missions =
|
|
1833
|
-
Badges =
|
|
1834
|
-
LeaderBoard =
|
|
1835
|
-
Tournaments =
|
|
1836
|
-
LeaderBoardPrev =
|
|
1837
|
-
LeaderBoardRules =
|
|
1838
|
-
Bonuses =
|
|
1839
|
-
Levels =
|
|
1840
|
-
Saw =
|
|
1841
|
-
MatchX =
|
|
1842
|
-
Store =
|
|
1843
|
-
Settings =
|
|
1844
|
-
Section =
|
|
1845
|
-
GfClose =
|
|
1846
|
-
ChangeNickname =
|
|
1847
|
-
ChangeAvatar =
|
|
1848
|
-
Submit =
|
|
1849
|
-
Action =
|
|
1810
|
+
AskPushPermissions = 'ask_push_permissions',
|
|
1811
|
+
Ok = 'ok',
|
|
1812
|
+
Cancel = 'cancel',
|
|
1813
|
+
Close = 'close',
|
|
1814
|
+
Go = 'go',
|
|
1815
|
+
Inbox = 'inbox',
|
|
1816
|
+
GfMain = 'gf',
|
|
1817
|
+
Activity = 'gf_activity',
|
|
1818
|
+
Missions = 'gf_missions',
|
|
1819
|
+
Badges = 'gf_badges',
|
|
1820
|
+
LeaderBoard = 'gf_board',
|
|
1821
|
+
Tournaments = 'gf_tournaments',
|
|
1822
|
+
LeaderBoardPrev = 'gf_board_previous',
|
|
1823
|
+
LeaderBoardRules = 'gf_board_rules',
|
|
1824
|
+
Bonuses = 'gf_bonuses',
|
|
1825
|
+
Levels = 'gf_levels',
|
|
1826
|
+
Saw = 'gf_saw',
|
|
1827
|
+
MatchX = 'gf_matchx',
|
|
1828
|
+
Store = 'gf_store',
|
|
1829
|
+
Settings = 'gf_settings',
|
|
1830
|
+
Section = 'gf_section',
|
|
1831
|
+
GfClose = 'gf_close',
|
|
1832
|
+
ChangeNickname = 'gf_change_nickname',
|
|
1833
|
+
ChangeAvatar = 'gf_change_avatar',
|
|
1834
|
+
Submit = 'submit',
|
|
1835
|
+
Action = 'action',
|
|
1850
1836
|
}
|
|
1851
1837
|
export interface DeepLinkParams {
|
|
1852
|
-
[key: string]: string
|
|
1838
|
+
[key: string]: string
|
|
1853
1839
|
}
|
|
1854
1840
|
export interface DeepLink {
|
|
1855
|
-
action: DpType
|
|
1856
|
-
params?: DeepLinkParams
|
|
1857
|
-
actionToReport?: string
|
|
1841
|
+
action: DpType
|
|
1842
|
+
params?: DeepLinkParams
|
|
1843
|
+
actionToReport?: string
|
|
1858
1844
|
}
|
|
1859
1845
|
export interface IVisitorGameParams {
|
|
1860
|
-
template_id: number
|
|
1861
|
-
onBeforePlay: () => boolean
|
|
1862
|
-
onWin: (prize: SAWPrize) => void
|
|
1863
|
-
frame_id: string
|
|
1846
|
+
template_id: number
|
|
1847
|
+
onBeforePlay: () => boolean
|
|
1848
|
+
onWin: (prize: SAWPrize) => void
|
|
1849
|
+
frame_id: string
|
|
1864
1850
|
}
|
|
1865
1851
|
export interface IWidgetParams {
|
|
1866
|
-
iframe: string
|
|
1867
|
-
zoom: number
|
|
1868
|
-
height:
|
|
1869
|
-
theme: string
|
|
1870
|
-
wuuid: string
|
|
1871
|
-
withBridge?: any
|
|
1872
|
-
noQuestionMark?: any
|
|
1873
|
-
inline?: boolean
|
|
1874
|
-
force_mobile?: boolean
|
|
1852
|
+
iframe: string
|
|
1853
|
+
zoom: number
|
|
1854
|
+
height: 'auto' | string
|
|
1855
|
+
theme: string
|
|
1856
|
+
wuuid: string
|
|
1857
|
+
withBridge?: any
|
|
1858
|
+
noQuestionMark?: any
|
|
1859
|
+
inline?: boolean
|
|
1860
|
+
force_mobile?: boolean
|
|
1875
1861
|
}
|
|
1876
1862
|
declare enum ConnectionStatus {
|
|
1877
1863
|
OPEN = 0,
|
|
1878
|
-
CLOSED = 1
|
|
1864
|
+
CLOSED = 1,
|
|
1879
1865
|
}
|
|
1880
1866
|
export interface TrackerInterface {
|
|
1881
|
-
log?: (message: string) => void
|
|
1882
|
-
clear?: (params: SmarticoClearParams) => void
|
|
1883
|
-
logout?: (payload: any) => void
|
|
1884
|
-
reportEngagmentAction: (message: RequestClientEngagementAction) => void
|
|
1885
|
-
reportEngagmentFail: (message: RequestClientEngagementFailed) => void
|
|
1886
|
-
reportEngagmentImpression: (message: RequestClientEngagementFailed) => void
|
|
1887
|
-
requestPushPermissions: () => void
|
|
1888
|
-
executeNativeDp: (dp: string) => void
|
|
1889
|
-
executeGfDp: (dp: DeepLink) => void
|
|
1890
|
-
executeManualDP?: (deepLink: string, engagement_uid?: string, activityType?: CJMActivityType) => void
|
|
1891
|
-
promoMessageClosed: () => void
|
|
1892
|
-
connectionStatus?: ConnectionStatus
|
|
1893
|
-
suspendPopups?: (flag: boolean) => void
|
|
1894
|
-
suspendInbox?: (flag: boolean) => void
|
|
1895
|
-
registerNativePushToken?: (token: string, platform: PushClientPlatform, app_package_id: any) => void
|
|
1896
|
-
registerHandler?: (cid: ClassId, handler: (o: any) => void) => void
|
|
1897
|
-
triggerExternalCallBack?: (callBackKey: EXTERNAL_CALLBACK_KEY | number, ...args: any[]) => void
|
|
1898
|
-
getExtUserId?: () => string
|
|
1899
|
-
bSuspendPopups?: boolean
|
|
1900
|
-
identify?: (ext_user_id: string, hash: string, payload: any, visitor_id: string) => void
|
|
1901
|
-
changeLanguage?: (lang: string) => void
|
|
1902
|
-
getPublicProps?: () => PublicProperties
|
|
1903
|
-
getLabelSetting?: (key: PublicLabelSettings) => any
|
|
1904
|
-
getParams?: () => typeof TrackerParams
|
|
1905
|
-
setNickname?: (nickname: string) => void
|
|
1906
|
-
setAvatar?: (avatar_id: string) => void
|
|
1907
|
-
setLoginPayload?: (payload: any) => void
|
|
1908
|
-
sendServerError?: (message: string) => void
|
|
1909
|
-
sendServerDebug?: (message: string) => void
|
|
1910
|
-
sendAnalytics?: (activity_id: ClientActivityRequestId, type:
|
|
1911
|
-
sendRow: (cid: ClassId, toIdentified: boolean, data?: any) => string
|
|
1912
|
-
miniGame?: (saw_template_id: string, params: IWidgetParams) => void
|
|
1913
|
-
showWidget?: (widgetType: EWidgetType, params: IWidgetParams) => void
|
|
1914
|
-
showVisitorGame?: (params: IVisitorGameParams) => void
|
|
1915
|
-
convertVisitorGame?: (visitor_win_uuid: string) => void
|
|
1916
|
-
isIdenfitied?: () => boolean
|
|
1867
|
+
log?: (message: string) => void
|
|
1868
|
+
clear?: (params: SmarticoClearParams) => void
|
|
1869
|
+
logout?: (payload: any) => void
|
|
1870
|
+
reportEngagmentAction: (message: RequestClientEngagementAction) => void
|
|
1871
|
+
reportEngagmentFail: (message: RequestClientEngagementFailed) => void
|
|
1872
|
+
reportEngagmentImpression: (message: RequestClientEngagementFailed) => void
|
|
1873
|
+
requestPushPermissions: () => void
|
|
1874
|
+
executeNativeDp: (dp: string) => void
|
|
1875
|
+
executeGfDp: (dp: DeepLink) => void
|
|
1876
|
+
executeManualDP?: (deepLink: string, engagement_uid?: string, activityType?: CJMActivityType) => void
|
|
1877
|
+
promoMessageClosed: () => void
|
|
1878
|
+
connectionStatus?: ConnectionStatus
|
|
1879
|
+
suspendPopups?: (flag: boolean) => void
|
|
1880
|
+
suspendInbox?: (flag: boolean) => void
|
|
1881
|
+
registerNativePushToken?: (token: string, platform: PushClientPlatform, app_package_id: any) => void
|
|
1882
|
+
registerHandler?: (cid: ClassId, handler: (o: any) => void) => void
|
|
1883
|
+
triggerExternalCallBack?: (callBackKey: EXTERNAL_CALLBACK_KEY | number, ...args: any[]) => void
|
|
1884
|
+
getExtUserId?: () => string
|
|
1885
|
+
bSuspendPopups?: boolean
|
|
1886
|
+
identify?: (ext_user_id: string, hash: string, payload: any, visitor_id: string) => void
|
|
1887
|
+
changeLanguage?: (lang: string) => void
|
|
1888
|
+
getPublicProps?: () => PublicProperties
|
|
1889
|
+
getLabelSetting?: (key: PublicLabelSettings) => any
|
|
1890
|
+
getParams?: () => typeof TrackerParams
|
|
1891
|
+
setNickname?: (nickname: string) => void
|
|
1892
|
+
setAvatar?: (avatar_id: string) => void
|
|
1893
|
+
setLoginPayload?: (payload: any) => void
|
|
1894
|
+
sendServerError?: (message: string) => void
|
|
1895
|
+
sendServerDebug?: (message: string) => void
|
|
1896
|
+
sendAnalytics?: (activity_id: ClientActivityRequestId, type: 'view' | 'click' | 'other', view_time_sec?: number, more?: any) => void
|
|
1897
|
+
sendRow: (cid: ClassId, toIdentified: boolean, data?: any) => string
|
|
1898
|
+
miniGame?: (saw_template_id: string, params: IWidgetParams) => void
|
|
1899
|
+
showWidget?: (widgetType: EWidgetType, params: IWidgetParams) => void
|
|
1900
|
+
showVisitorGame?: (params: IVisitorGameParams) => void
|
|
1901
|
+
convertVisitorGame?: (visitor_win_uuid: string) => void
|
|
1902
|
+
isIdenfitied?: () => boolean
|
|
1917
1903
|
}
|
|
1918
1904
|
declare const TrackerParams: {
|
|
1919
|
-
brand_key: any
|
|
1920
|
-
debug: boolean
|
|
1921
|
-
server: any
|
|
1922
|
-
simulation_mode: boolean
|
|
1923
|
-
gamification_wrapper_mode: boolean
|
|
1924
|
-
generate_visit: boolean
|
|
1925
|
-
lang: string
|
|
1926
|
-
}
|
|
1927
|
-
declare const CallBackDefaultParams: {}
|
|
1905
|
+
brand_key: any
|
|
1906
|
+
debug: boolean
|
|
1907
|
+
server: any
|
|
1908
|
+
simulation_mode: boolean
|
|
1909
|
+
gamification_wrapper_mode: boolean
|
|
1910
|
+
generate_visit: boolean
|
|
1911
|
+
lang: string
|
|
1912
|
+
}
|
|
1913
|
+
declare const CallBackDefaultParams: {}
|
|
1928
1914
|
declare class GamificationEngine {
|
|
1929
|
-
private static _instance
|
|
1930
|
-
private readonly _tracker
|
|
1931
|
-
private readonly _socketPromises
|
|
1932
|
-
private readonly _socketListeners
|
|
1933
|
-
static instance(tracker: TrackerInterface): GamificationEngine
|
|
1934
|
-
private constructor()
|
|
1935
|
-
doGetLevels: () => Promise<any
|
|
1936
|
-
doGetMissions: () => Promise<any
|
|
1937
|
-
doOptinMission: (achievementId: number) => Promise<any
|
|
1938
|
-
doClaimRewardMission: (achievementId: number) => Promise<any
|
|
1939
|
-
doGetTournaments: () => Promise<any
|
|
1940
|
-
doGetTournamentLobby: (tournamentInstanceId: number) => Promise<any
|
|
1941
|
-
doTournamentRegister: (tournamentInstanceId: number) => Promise<any
|
|
1942
|
-
private socketRequest
|
|
1943
|
-
private socketResponse
|
|
1944
|
-
private listen
|
|
1945
|
-
private notify
|
|
1915
|
+
private static _instance
|
|
1916
|
+
private readonly _tracker
|
|
1917
|
+
private readonly _socketPromises
|
|
1918
|
+
private readonly _socketListeners
|
|
1919
|
+
static instance(tracker: TrackerInterface): GamificationEngine
|
|
1920
|
+
private constructor()
|
|
1921
|
+
doGetLevels: () => Promise<any>
|
|
1922
|
+
doGetMissions: () => Promise<any>
|
|
1923
|
+
doOptinMission: (achievementId: number) => Promise<any>
|
|
1924
|
+
doClaimRewardMission: (achievementId: number) => Promise<any>
|
|
1925
|
+
doGetTournaments: () => Promise<any>
|
|
1926
|
+
doGetTournamentLobby: (tournamentInstanceId: number) => Promise<any>
|
|
1927
|
+
doTournamentRegister: (tournamentInstanceId: number) => Promise<any>
|
|
1928
|
+
private socketRequest
|
|
1929
|
+
private socketResponse
|
|
1930
|
+
private listen
|
|
1931
|
+
private notify
|
|
1946
1932
|
}
|
|
1947
1933
|
declare enum ClientEventTypes {
|
|
1948
|
-
client_action =
|
|
1949
|
-
update_sensitive_properties =
|
|
1950
|
-
core_language_changed =
|
|
1951
|
-
core_cannot_open_gamification =
|
|
1952
|
-
core_set_last_login_entry =
|
|
1953
|
-
gf_nickname_changed =
|
|
1954
|
-
gf_avatar_changed =
|
|
1934
|
+
client_action = 'client_action',
|
|
1935
|
+
update_sensitive_properties = 'update_sensitive_properties',
|
|
1936
|
+
core_language_changed = 'core_language_changed',
|
|
1937
|
+
core_cannot_open_gamification = 'core_cannot_open_gamification',
|
|
1938
|
+
core_set_last_login_entry = 'core_set_last_login_entry',
|
|
1939
|
+
gf_nickname_changed = 'gf_nickname_changed',
|
|
1940
|
+
gf_avatar_changed = 'gf_avatar_changed',
|
|
1955
1941
|
}
|
|
1956
1942
|
declare class Smartico {
|
|
1957
|
-
private static tracker
|
|
1958
|
-
private static trackerShadow
|
|
1959
|
-
private static initParams
|
|
1960
|
-
private static initLabelApiKey
|
|
1961
|
-
private static shadowQueue
|
|
1962
|
-
private static shadowInterval
|
|
1963
|
-
static gf: GamificationEngine
|
|
1964
|
-
static api: WSAPI
|
|
1965
|
-
private static readonly gf_api_promises
|
|
1966
|
-
private static readonly gf_api_handlers
|
|
1967
|
-
constructor()
|
|
1968
|
-
static startIntegrationWithIframe(): void
|
|
1969
|
-
private static checkInit
|
|
1970
|
-
private static checkSuccessfullyIdentify
|
|
1971
|
-
private static initShadowLabel
|
|
1972
|
-
private static onlineTrackerInterval
|
|
1973
|
-
private static onlineTrackerLastUserId
|
|
1974
|
-
private static onlineTrackerLastLanguage
|
|
1975
|
-
private static getUserID
|
|
1976
|
-
private static getUserHash
|
|
1977
|
-
private static getLanguage
|
|
1978
|
-
private static getVisitorGameWinUUID
|
|
1979
|
-
private static getVisitorID
|
|
1980
|
-
private static onlinetrackerByInterval
|
|
1981
|
-
static init(label_api_key: string, params: typeof TrackerParams): void
|
|
1982
|
-
static initVisitorMode(label_api_key: string, params: typeof TrackerParams): void
|
|
1983
|
-
static clear(params?: SmarticoClearParams): void
|
|
1984
|
-
static getPublicProps(): PublicProperties
|
|
1985
|
-
static sendServerError(message: string): void
|
|
1986
|
-
static sendServerDebug(message: string): void
|
|
1987
|
-
static requestPushPermissions(): void
|
|
1988
|
-
static registerNativePushToken(token: string, platform?: PushClientPlatform, app_package_id?: string): void
|
|
1989
|
-
static identify(ext_user_id: string, hash: string, payload: any): Promise<void
|
|
1990
|
-
static online(ext_user_id: string, language: string, user_hash: string): Promise<void
|
|
1991
|
-
static login(language?: string, payload?: any): void
|
|
1992
|
-
static logout(payload?: any): void
|
|
1993
|
-
static changeLanguage(language: string): void
|
|
1994
|
-
static event(eventType: ClientEventTypes, payload?: any): void
|
|
1995
|
-
static sendRow(cid: ClassId, payload?: any): void
|
|
1996
|
-
static action(actionValue: any): void
|
|
1997
|
-
static setLoginEntry(core_last_login_entry: string): void
|
|
1998
|
-
static setAvatar(avatar_id: string): void
|
|
1999
|
-
static setNickname(nickname: string): void
|
|
2000
|
-
static dp(deepLink: string): void
|
|
2001
|
-
static miniGame(saw_template_id: string, params: IWidgetParams): void
|
|
2002
|
-
static showWidget(widgetType: EWidgetType, params: IWidgetParams): void
|
|
2003
|
-
static sendAnalytics(activity_id: ClientActivityRequestId, view_time_sec?: number): void
|
|
2004
|
-
static on(callBackKey: EXTERNAL_CALLBACK_KEY, f: null | (() => void), params?: typeof CallBackDefaultParams): void
|
|
2005
|
-
static suspendPopups(flag: boolean): void
|
|
2006
|
-
static suspendInbox(flag: boolean): void
|
|
2007
|
-
static parseUrl(): any
|
|
2008
|
-
static parseUrlHash(): any
|
|
2009
|
-
static isMobile(): boolean
|
|
2010
|
-
static showVisitorGame(params: IVisitorGameParams): void
|
|
2011
|
-
static convertVisitorGame(visitor_win_uuid: string): void
|
|
2012
|
-
private static customScripts
|
|
1943
|
+
private static tracker
|
|
1944
|
+
private static trackerShadow
|
|
1945
|
+
private static initParams
|
|
1946
|
+
private static initLabelApiKey
|
|
1947
|
+
private static shadowQueue
|
|
1948
|
+
private static shadowInterval
|
|
1949
|
+
static gf: GamificationEngine
|
|
1950
|
+
static api: WSAPI
|
|
1951
|
+
private static readonly gf_api_promises
|
|
1952
|
+
private static readonly gf_api_handlers
|
|
1953
|
+
constructor()
|
|
1954
|
+
static startIntegrationWithIframe(): void
|
|
1955
|
+
private static checkInit
|
|
1956
|
+
private static checkSuccessfullyIdentify
|
|
1957
|
+
private static initShadowLabel
|
|
1958
|
+
private static onlineTrackerInterval
|
|
1959
|
+
private static onlineTrackerLastUserId
|
|
1960
|
+
private static onlineTrackerLastLanguage
|
|
1961
|
+
private static getUserID
|
|
1962
|
+
private static getUserHash
|
|
1963
|
+
private static getLanguage
|
|
1964
|
+
private static getVisitorGameWinUUID
|
|
1965
|
+
private static getVisitorID
|
|
1966
|
+
private static onlinetrackerByInterval
|
|
1967
|
+
static init(label_api_key: string, params: typeof TrackerParams): void
|
|
1968
|
+
static initVisitorMode(label_api_key: string, params: typeof TrackerParams): void
|
|
1969
|
+
static clear(params?: SmarticoClearParams): void
|
|
1970
|
+
static getPublicProps(): PublicProperties
|
|
1971
|
+
static sendServerError(message: string): void
|
|
1972
|
+
static sendServerDebug(message: string): void
|
|
1973
|
+
static requestPushPermissions(): void
|
|
1974
|
+
static registerNativePushToken(token: string, platform?: PushClientPlatform, app_package_id?: string): void
|
|
1975
|
+
static identify(ext_user_id: string, hash: string, payload: any): Promise<void>
|
|
1976
|
+
static online(ext_user_id: string, language: string, user_hash: string): Promise<void>
|
|
1977
|
+
static login(language?: string, payload?: any): void
|
|
1978
|
+
static logout(payload?: any): void
|
|
1979
|
+
static changeLanguage(language: string): void
|
|
1980
|
+
static event(eventType: ClientEventTypes, payload?: any): void
|
|
1981
|
+
static sendRow(cid: ClassId, payload?: any): void
|
|
1982
|
+
static action(actionValue: any): void
|
|
1983
|
+
static setLoginEntry(core_last_login_entry: string): void
|
|
1984
|
+
static setAvatar(avatar_id: string): void
|
|
1985
|
+
static setNickname(nickname: string): void
|
|
1986
|
+
static dp(deepLink: string): void
|
|
1987
|
+
static miniGame(saw_template_id: string, params: IWidgetParams): void
|
|
1988
|
+
static showWidget(widgetType: EWidgetType, params: IWidgetParams): void
|
|
1989
|
+
static sendAnalytics(activity_id: ClientActivityRequestId, view_time_sec?: number): void
|
|
1990
|
+
static on(callBackKey: EXTERNAL_CALLBACK_KEY, f: null | (() => void), params?: typeof CallBackDefaultParams): void
|
|
1991
|
+
static suspendPopups(flag: boolean): void
|
|
1992
|
+
static suspendInbox(flag: boolean): void
|
|
1993
|
+
static parseUrl(): any
|
|
1994
|
+
static parseUrlHash(): any
|
|
1995
|
+
static isMobile(): boolean
|
|
1996
|
+
static showVisitorGame(params: IVisitorGameParams): void
|
|
1997
|
+
static convertVisitorGame(visitor_win_uuid: string): void
|
|
1998
|
+
private static customScripts
|
|
2013
1999
|
}
|
|
2014
2000
|
|
|
2015
|
-
export {
|
|
2016
|
-
Smartico as default,
|
|
2017
|
-
};
|
|
2001
|
+
export { Smartico as default }
|
|
2018
2002
|
|
|
2019
|
-
export {}
|
|
2003
|
+
export {}
|