@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
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
|
|
2
1
|
export enum PublicLabelSettings {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
2
|
+
PUBLIC_API_URL = 'PUBLIC_API_URL',
|
|
3
|
+
RECORDING_ENABLED_FOR_ALL_USERS = 'RECORDING_ENABLED_FOR_ALL_USERS',
|
|
4
|
+
JS_INJECTION = 'JS_INJECTION',
|
|
5
|
+
GAMIFICATION_UI_MAIN = 'GAMIFICATION_UI_MAIN',
|
|
6
|
+
GAMIFICATION_UI_WIDGET = 'GAMIFICATION_UI_WIDGET',
|
|
7
|
+
GAMIFICATION_UI_MINI_GAME = 'GAMIFICATION_UI_MINI_GAME',
|
|
8
|
+
GAMIFICATION_UI_SETTINGS = 'GAMIFICATION_UI_SETTINGS',
|
|
9
|
+
GAMIFICATION_UI_MAIN_TEST = 'GAMIFICATION_UI_MAIN_TEST',
|
|
10
|
+
GAMIFICATION_UI_WIDGET_TEST = 'GAMIFICATION_UI_WIDGET_TEST',
|
|
11
|
+
GAMIFICATION_UI_SETTINGS_TEST = 'GAMIFICATION_UI_SETTINGS_TEST',
|
|
12
|
+
FRONT_END_ALLOWED_LANGUAGES = 'FRONT_END_ALLOWED_LANGUAGES',
|
|
13
|
+
FRONT_END_ALLOW_DOMAINS = 'FRONT_END_ALLOW_DOMAINS',
|
|
14
|
+
DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS = 'DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS',
|
|
15
|
+
SHADOW_LABEL_PUBLIC_KEY = 'SHADOW_LABEL_PUBLIC_KEY',
|
|
16
|
+
DYNAMIC_IMAGE_DOMAIN = 'DYNAMIC_IMAGE_DOMAIN',
|
|
17
|
+
|
|
18
|
+
GAMIFICATION_UI_LEVEL_ENABLED = 'GAMIFICATION_UI_LEVEL_ENABLED',
|
|
19
|
+
GAMIFICATION_UI_LEVEL_IMAGE_MOB = 'GAMIFICATION_UI_LEVEL_IMAGE_MOB',
|
|
20
|
+
GAMIFICATION_UI_LEVEL_IMAGE_DESK = 'GAMIFICATION_UI_LEVEL_IMAGE_DESK',
|
|
21
|
+
|
|
22
|
+
GAMIFICATION_LEVELS_LOGIC2 = 'GAMIFICATION_LEVELS_LOGIC2',
|
|
23
|
+
GAMIFICATION_LEVELS_LOGIC3 = 'GAMIFICATION_LEVELS_LOGIC2',
|
|
24
|
+
|
|
25
|
+
AVATAR_CUSTOM_IMAGE_MAX_ID = 'AVATAR_CUSTOM_IMAGE_MAX_ID',
|
|
26
|
+
AVATAR_CUSTOM_IMAGE_FOLDER = 'AVATAR_CUSTOM_IMAGE_FOLDER',
|
|
27
|
+
|
|
28
|
+
GAMIFICATION_SHOW_POWERED_BY = 'GAMIFICATION_SHOW_POWERED_BY',
|
|
29
|
+
_system_leader_board_mask_username = '_system_leader_board_mask_username',
|
|
31
30
|
|
|
32
|
-
|
|
31
|
+
INBOX_PUBLIC_CDN = 'INBOX_PUBLIC_CDN',
|
|
33
32
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export interface PublicProperties {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
core_user_language?: string
|
|
3
|
+
ach_points_balance?: number
|
|
4
|
+
ach_points_ever?: number
|
|
5
|
+
ach_level_current_id?: number
|
|
6
|
+
ach_level_current?: string
|
|
7
|
+
core_is_test_account?: boolean
|
|
8
|
+
ach_gamification_in_control_group?: boolean
|
|
9
9
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { PublicProperties } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse'
|
|
2
|
+
import { PublicProperties } from './PublicProperties'
|
|
3
3
|
|
|
4
4
|
interface ResponseIdentify extends ProtocolResponse {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
user_id: number
|
|
6
|
+
ext_user_id: string
|
|
7
|
+
public_username: string
|
|
8
|
+
avatar_id: string
|
|
9
|
+
job: boolean
|
|
10
|
+
props?: PublicProperties
|
|
11
|
+
pubic_username_set: boolean
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { ResponseIdentify }
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
enum TranslationArea {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
AffIliateAdminNew = 7
|
|
2
|
+
Casino = 1,
|
|
3
|
+
Gamification = 2,
|
|
4
|
+
Trading = 3,
|
|
5
|
+
Archived = 4,
|
|
6
|
+
Affiliation = 5,
|
|
7
|
+
RetentionGames = 6,
|
|
8
|
+
AffIliateAdminNew = 7,
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
export { TranslationArea }
|
|
11
|
+
export { TranslationArea }
|
package/src/Core/index.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
export enum AchCustomSectionType {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
HTML_PAGE = 1,
|
|
3
|
+
MISSIONS_CATEGORY = 2,
|
|
4
|
+
TOURNAMENTS_CATEGORY = 3,
|
|
5
|
+
LEVELS = 4,
|
|
6
|
+
MINI_GAMES = 5,
|
|
7
|
+
MISSION_CUSTOM_LAYOUT = 6,
|
|
8
|
+
MATCH_X = 7,
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export enum AchCustomLayoutTheme {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
VALENTINES_LIGHT = 'valentines-light',
|
|
13
|
+
VALENTINES_DARK = 'valentines-dark',
|
|
14
|
+
EURO_2024 = 'euro-2024',
|
|
15
|
+
GENERIC = 'generic',
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export enum AchMissionsTabsOptions {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
ONLY_OVERVIEW = 1,
|
|
20
|
+
NO_OVERVIEW = 2,
|
|
21
|
+
ALL = 3,
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export enum AchOverviewMissionsFilter {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
25
|
+
ANY = 1,
|
|
26
|
+
ALL_MISSIONS = 2,
|
|
27
|
+
ALL_EXCEPT_COMPLETED = 3,
|
|
28
|
+
ALL_EXCEPT_LOCKED = 4,
|
|
29
|
+
ALL_EXCEPT_COMPLETED_AND_LOCKED = 5,
|
|
30
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { UICustomSection } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse'
|
|
2
|
+
import { UICustomSection } from './UICustomSection'
|
|
3
3
|
|
|
4
4
|
export interface GetCustomSectionsResponse extends ProtocolResponse {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
5
|
+
customSections: { [key: string]: UICustomSection }
|
|
6
|
+
}
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { TUICustomSection } from
|
|
2
|
-
import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from
|
|
1
|
+
import { TUICustomSection } from '../WSAPI/WSAPITypes'
|
|
2
|
+
import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from './AchCustomSection'
|
|
3
3
|
|
|
4
4
|
export interface UICustomSection {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
overview_missions_count?: number;
|
|
5
|
+
body?: string
|
|
6
|
+
menu_img?: string
|
|
7
|
+
menu_name?: string
|
|
8
|
+
custom_skin_images?: string
|
|
9
|
+
section_type_id?: AchCustomSectionType
|
|
10
|
+
theme?: AchCustomLayoutTheme
|
|
11
|
+
generic_custom_css?: string
|
|
12
|
+
mission_tabs_options?: AchMissionsTabsOptions
|
|
13
|
+
overview_missions_filter?: AchOverviewMissionsFilter
|
|
14
|
+
overview_missions_count?: number
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export const UICustomSectionTransform = (items: UICustomSection[]): TUICustomSection[] => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
return items
|
|
19
|
+
.filter((r) => r.section_type_id !== undefined && r.section_type_id >= 1)
|
|
20
|
+
.map((r) => {
|
|
21
|
+
const x: TUICustomSection = {
|
|
22
|
+
body: r.body,
|
|
23
|
+
menu_img: r.menu_img,
|
|
24
|
+
menu_name: r.menu_name,
|
|
25
|
+
section_type_id: r.section_type_id,
|
|
26
|
+
custom_skin_images: r.custom_skin_images,
|
|
27
|
+
generic_custom_css: r.generic_custom_css,
|
|
28
|
+
mission_tabs_options: r.mission_tabs_options,
|
|
29
|
+
overview_missions_count: r.overview_missions_count,
|
|
30
|
+
overview_missions_filter: r.overview_missions_filter,
|
|
31
|
+
theme: r.theme,
|
|
32
|
+
}
|
|
33
|
+
return x
|
|
34
|
+
})
|
|
35
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './AchCustomSection'
|
|
2
|
-
export * from './UICustomSection'
|
|
3
|
-
export * from './GetCustomSectionsRequest'
|
|
4
|
-
export * from './GetCustomSectionsResponse'
|
|
1
|
+
export * from './AchCustomSection'
|
|
2
|
+
export * from './UICustomSection'
|
|
3
|
+
export * from './GetCustomSectionsRequest'
|
|
4
|
+
export * from './GetCustomSectionsResponse'
|
package/src/ErrorCodes.ts
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
export const ErrorCodes_FatalStartingRange = 100000
|
|
1
|
+
export const ErrorCodes_FatalStartingRange = 100000
|
|
2
2
|
|
|
3
3
|
export enum ErrorCodesGame {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
OK = 0,
|
|
5
|
+
NoBetsUpdatedOnSubmit = 3,
|
|
6
|
+
RepeatRequest_Unhandled = 4,
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
// Fatal errors starting from 100 000
|
|
9
|
+
Fatal_NotValidHash = ErrorCodes_FatalStartingRange,
|
|
10
|
+
Fatal_WrongCustomerID = ErrorCodes_FatalStartingRange + 1,
|
|
11
|
+
Fatal_TemplateNotFound = ErrorCodes_FatalStartingRange + 2,
|
|
12
|
+
Fatal_NoOpenRounds = ErrorCodes_FatalStartingRange + 3,
|
|
13
|
+
Fatal_Unhandled = ErrorCodes_FatalStartingRange + 4,
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
export type ErrorCodes = ErrorCodesGame;
|
|
16
|
+
export type ErrorCodes = ErrorCodesGame
|
package/src/GResponse.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ErrorCodes } from
|
|
1
|
+
import { ErrorCodes } from './ErrorCodes'
|
|
2
2
|
|
|
3
3
|
interface GResponseBase {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
errCode: ErrorCodes
|
|
5
|
+
errMessage?: string
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
interface GResponse<T> extends GResponseBase {
|
|
9
|
-
|
|
9
|
+
data?: T
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export { GResponseBase, GResponse }
|
|
12
|
+
export { GResponseBase, GResponse }
|
package/src/ILogger.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
1
|
export interface ILogger {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
2
|
+
debug(...any: any[]): void
|
|
3
|
+
error(...any: any[]): void
|
|
4
|
+
info(...any: any[]): void
|
|
5
|
+
warn(...any: any[]): void
|
|
6
|
+
always(...any: any[]): void
|
|
7
|
+
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ProtocolMessage } from
|
|
1
|
+
import { ProtocolMessage } from '../Base/ProtocolMessage'
|
|
2
2
|
|
|
3
3
|
export interface GetInboxMessagesRequest extends ProtocolMessage {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
starred_only?: boolean;
|
|
4
|
+
limit?: number
|
|
5
|
+
offset?: number
|
|
6
|
+
starred_only?: boolean
|
|
8
7
|
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import { TInboxMessage } from
|
|
2
|
-
import { ProtocolResponse } from
|
|
3
|
-
import { InboxMessage } from
|
|
1
|
+
import { TInboxMessage } from '../WSAPI/WSAPITypes'
|
|
2
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse'
|
|
3
|
+
import { InboxMessage } from './InboxMessage'
|
|
4
4
|
|
|
5
5
|
export interface GetInboxMessagesResponse extends ProtocolResponse {
|
|
6
|
-
|
|
7
|
-
log: InboxMessage[];
|
|
6
|
+
log: InboxMessage[]
|
|
8
7
|
}
|
|
9
8
|
|
|
10
|
-
export const InboxMessagesTransform = (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
9
|
+
export const InboxMessagesTransform = (items: InboxMessage[]): TInboxMessage[] => {
|
|
10
|
+
return items.map((item) => {
|
|
11
|
+
const x: TInboxMessage = {
|
|
12
|
+
sent_date: item.createDate,
|
|
13
|
+
message_guid: item.engagement_uid,
|
|
14
|
+
read: item.is_read,
|
|
15
|
+
favorite: item.is_starred,
|
|
16
|
+
}
|
|
17
|
+
return x
|
|
18
|
+
})
|
|
19
|
+
}
|
|
@@ -1,45 +1,43 @@
|
|
|
1
|
-
import { TInboxMessageBody } from
|
|
2
|
-
import { InboxMessageType } from
|
|
1
|
+
import { TInboxMessageBody } from '../WSAPI/WSAPITypes'
|
|
2
|
+
import { InboxMessageType } from './InboxMessageType'
|
|
3
3
|
|
|
4
4
|
export interface InboxMessageBody {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
action: string
|
|
6
|
+
body: string
|
|
7
|
+
type: InboxMessageType
|
|
8
|
+
image: string
|
|
9
|
+
title: string
|
|
10
|
+
html_body: string
|
|
11
|
+
additional_buttons?: { inbox_cta_text: string; action: string }[]
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export interface InboxMessage {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
is_deleted?: boolean;
|
|
15
|
+
createDate: string
|
|
16
|
+
body: InboxMessageBody
|
|
17
|
+
engagement_uid: string
|
|
18
|
+
is_read: boolean
|
|
19
|
+
is_starred: boolean
|
|
20
|
+
is_deleted?: boolean
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
export const InboxMessageBodyTransform = (item: InboxMessageBody): TInboxMessageBody => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
24
|
+
const x: TInboxMessageBody = {
|
|
25
|
+
action: item.action,
|
|
26
|
+
icon: item.image,
|
|
27
|
+
title: item.title,
|
|
28
|
+
preview_body: item.body,
|
|
29
|
+
}
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
31
|
+
if (item.action === 'dp:inbox') {
|
|
32
|
+
if (item.additional_buttons && item.additional_buttons.length) {
|
|
33
|
+
x.buttons = item.additional_buttons.map((b) => ({
|
|
34
|
+
action: b.action,
|
|
35
|
+
text: b.inbox_cta_text,
|
|
36
|
+
}))
|
|
37
|
+
}
|
|
40
38
|
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
x.html_body = item?.html_body || null
|
|
40
|
+
}
|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
return x
|
|
45
43
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export enum InboxMessageType {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
Custom = 0,
|
|
3
|
+
MissionCompleted = 1,
|
|
4
|
+
MissionUnlocked = 2,
|
|
5
|
+
LeaderboardWon = 3,
|
|
6
|
+
LevelChanged = 4,
|
|
7
|
+
BonusGiven = 5,
|
|
8
|
+
PointsAdded = 6,
|
|
9
|
+
PointsUsed = 7,
|
|
10
|
+
PersonalMessage = 8,
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
// keep in sync with BO enum
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProtocolMessage } from
|
|
1
|
+
import { ProtocolMessage } from '../Base/ProtocolMessage'
|
|
2
2
|
|
|
3
3
|
export interface MarkInboxMessageDeletedRequest extends ProtocolMessage {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
engagement_uid?: string
|
|
5
|
+
all_deleted?: boolean
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProtocolMessage } from
|
|
1
|
+
import { ProtocolMessage } from '../Base/ProtocolMessage'
|
|
2
2
|
|
|
3
3
|
export interface MarkInboxMessageDeletedResponse extends ProtocolMessage {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
errCode: number
|
|
5
|
+
errMsg?: string
|
|
6
6
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ProtocolMessage } from
|
|
2
|
-
|
|
1
|
+
import { ProtocolMessage } from '../Base/ProtocolMessage'
|
|
3
2
|
|
|
4
3
|
export interface MarkInboxMessageReadRequest extends ProtocolMessage {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
4
|
+
engagement_uid?: string
|
|
5
|
+
all_read?: boolean
|
|
6
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ProtocolMessage } from
|
|
2
|
-
|
|
1
|
+
import { ProtocolMessage } from '../Base/ProtocolMessage'
|
|
3
2
|
|
|
4
3
|
export interface MarkInboxMessageReadResponse extends ProtocolMessage {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
4
|
+
errCode: number
|
|
5
|
+
errMsg?: string
|
|
6
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ProtocolMessage } from
|
|
2
|
-
|
|
1
|
+
import { ProtocolMessage } from '../Base/ProtocolMessage'
|
|
3
2
|
|
|
4
3
|
export interface MarkInboxMessageStarredRequest extends ProtocolMessage {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
4
|
+
engagement_uid: string
|
|
5
|
+
is_starred?: boolean
|
|
6
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ProtocolMessage } from
|
|
2
|
-
|
|
1
|
+
import { ProtocolMessage } from '../Base/ProtocolMessage'
|
|
3
2
|
|
|
4
3
|
export interface MarkInboxMessageStarredResponse extends ProtocolMessage {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
4
|
+
errCode: number
|
|
5
|
+
errMsg?: string
|
|
6
|
+
}
|
package/src/Inbox/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from './MarkInboxMessageDeletedRequest'
|
|
10
|
-
export * from './MarkInboxMessageDeletedResponse'
|
|
1
|
+
export * from './GetInboxMessagesRequest'
|
|
2
|
+
export * from './GetInboxMessagesResponse'
|
|
3
|
+
export * from './InboxMessage'
|
|
4
|
+
export * from './InboxMessageType'
|
|
5
|
+
export * from './MarkInboxMessageReadRequest'
|
|
6
|
+
export * from './MarkInboxMessageReadResponse'
|
|
7
|
+
export * from './MarkInboxMessageStarredRequest'
|
|
8
|
+
export * from './MarkInboxMessageStarredResponse'
|
|
9
|
+
export * from './MarkInboxMessageDeletedRequest'
|
|
10
|
+
export * from './MarkInboxMessageDeletedResponse'
|