@smartico/public-api 0.0.96 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Base/AchRelatedGame.d.ts +13 -0
- package/dist/Base/ClassId.d.ts +77 -77
- package/dist/Base/ProtocolMessage.d.ts +5 -5
- package/dist/Base/ProtocolRequest.d.ts +6 -6
- package/dist/Base/ProtocolResponse.d.ts +5 -5
- package/dist/CookieStore.d.ts +6 -6
- package/dist/Core/ActivityTypeLimited.d.ts +18 -18
- package/dist/Core/CoreUtils.d.ts +4 -4
- package/dist/Core/GetLabelInfoRequest.d.ts +3 -3
- package/dist/Core/GetLabelInfoResponse.d.ts +7 -7
- package/dist/Core/GetTranslationsRequest.d.ts +7 -7
- package/dist/Core/GetTranslationsResponse.d.ts +7 -7
- package/dist/Core/PublicLabelSettings.d.ts +29 -29
- package/dist/Core/PublicProperties.d.ts +11 -11
- package/dist/Core/ResponseIdentify.d.ts +12 -12
- package/dist/Core/TranslationArea.d.ts +10 -10
- package/dist/Core/index.d.ts +9 -9
- package/dist/ErrorCodes.d.ts +12 -12
- package/dist/GResponse.d.ts +9 -9
- package/dist/ILogger.d.ts +7 -7
- package/dist/Inbox/GetInboxMessagesRequest.d.ts +6 -6
- package/dist/Inbox/GetInboxMessagesResponse.d.ts +5 -5
- package/dist/Inbox/InboxMessage.d.ts +19 -19
- package/dist/Inbox/InboxMessageType.d.ts +11 -11
- package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +4 -4
- package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +4 -4
- package/dist/Inbox/index.d.ts +8 -8
- package/dist/IntUtils.d.ts +9 -9
- package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +7 -7
- package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +7 -7
- package/dist/Leaderboard/LeaderBoardDetails.d.ts +13 -13
- package/dist/Leaderboard/LeaderBoardPeriodType.d.ts +5 -5
- package/dist/Leaderboard/LeaderBoardPosition.d.ts +10 -10
- package/dist/Leaderboard/LeaderBoardPublicMeta.d.ts +5 -5
- package/dist/Leaderboard/index.d.ts +6 -6
- package/dist/Level/GetLevelMapResponse.d.ts +7 -7
- package/dist/Level/Level.d.ts +12 -12
- package/dist/Level/LevelPublicMeta.d.ts +17 -17
- package/dist/Level/index.d.ts +3 -3
- package/dist/MiniGames/SAWAcknowledgeType.d.ts +5 -5
- package/dist/MiniGames/SAWAskForUsername.d.ts +4 -4
- package/dist/MiniGames/SAWBuyInType.d.ts +14 -14
- package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +4 -4
- package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +4 -4
- package/dist/MiniGames/SAWDoSpinRequest.d.ts +5 -5
- package/dist/MiniGames/SAWDoSpinResponse.d.ts +10 -10
- package/dist/MiniGames/SAWGameType.d.ts +16 -16
- package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +5 -5
- package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +7 -7
- package/dist/MiniGames/SAWPrize.d.ts +11 -11
- package/dist/MiniGames/SAWPrizeType.d.ts +20 -20
- package/dist/MiniGames/SAWPrizeUI.d.ts +15 -15
- package/dist/MiniGames/SAWSpinErrorCode.d.ts +14 -14
- package/dist/MiniGames/SAWSpinsCountPush.d.ts +5 -5
- package/dist/MiniGames/SAWTemplate.d.ts +27 -27
- package/dist/MiniGames/SAWTemplateUI.d.ts +38 -38
- package/dist/MiniGames/SAWUtils.d.ts +5 -5
- package/dist/MiniGames/SAWWinSoundType.d.ts +12 -12
- package/dist/MiniGames/index.d.ts +19 -19
- package/dist/Missions/AchievementOptinRequest.d.ts +4 -4
- package/dist/Missions/AchievementOptinResponse.d.ts +3 -3
- package/dist/Missions/AchievementPublicMeta.d.ts +18 -18
- package/dist/Missions/AchievementStatus.d.ts +8 -8
- package/dist/Missions/AchievementTaskPublicMeta.d.ts +3 -3
- package/dist/Missions/AchievementTaskType.d.ts +4 -4
- package/dist/Missions/AchievementType.d.ts +4 -4
- package/dist/Missions/GetAchievementMapRequest.d.ts +3 -3
- package/dist/Missions/GetAchievementMapResponse.d.ts +5 -5
- package/dist/Missions/ReloadAchievementsEvent.d.ts +3 -3
- package/dist/Missions/ScheduledMissionType.d.ts +5 -5
- package/dist/Missions/UserAchievement.d.ts +28 -26
- package/dist/Missions/UserAchievementTask.d.ts +14 -14
- package/dist/Missions/index.d.ts +13 -13
- package/dist/NodeCache.d.ts +9 -9
- package/dist/OCache.d.ts +13 -13
- package/dist/SmarticoAPI.d.ts +81 -81
- package/dist/SmarticoPublicAPI.d.ts +23 -0
- package/dist/Store/BuyShopItemErrorCode.d.ts +10 -0
- package/dist/Store/BuyShopItemRequest.d.ts +4 -0
- package/dist/Store/BuyShopItemResponse.d.ts +4 -0
- package/dist/Store/BuyStoreItemErrorCode.d.ts +10 -10
- package/dist/Store/BuyStoreItemRequest.d.ts +4 -4
- package/dist/Store/BuyStoreItemResponse.d.ts +4 -4
- package/dist/Store/GetCategoriesShopResponse.d.ts +5 -0
- package/dist/Store/GetCategoriesStoreResponse.d.ts +5 -5
- package/dist/Store/GetShopItemsResponse.d.ts +5 -0
- package/dist/Store/GetStoreItemsResponse.d.ts +5 -5
- package/dist/Store/ShopCategory.d.ts +5 -0
- package/dist/Store/ShopCategoryPublicMeta.d.ts +4 -0
- package/dist/Store/ShopItem.d.ts +9 -0
- package/dist/Store/ShopItemPublicMeta.d.ts +10 -0
- package/dist/Store/ShopItemType.d.ts +4 -0
- package/dist/Store/StoreCategory.d.ts +7 -7
- package/dist/Store/StoreCategoryPublicMeta.d.ts +4 -4
- package/dist/Store/StoreItem.d.ts +11 -11
- package/dist/Store/StoreItemPublicMeta.d.ts +12 -12
- package/dist/Store/StoreItemType.d.ts +4 -4
- package/dist/Store/index.d.ts +10 -10
- package/dist/Tournaments/GetTournamentInfoRequest.d.ts +4 -4
- package/dist/Tournaments/GetTournamentInfoResponse.d.ts +22 -22
- package/dist/Tournaments/GetTournamentsRequest.d.ts +3 -3
- package/dist/Tournaments/GetTournamentsResponse.d.ts +6 -6
- package/dist/Tournaments/Tournament.d.ts +52 -49
- package/dist/Tournaments/TournamentInstanceStatus.d.ts +10 -10
- package/dist/Tournaments/TournamentPlayer.d.ts +9 -9
- package/dist/Tournaments/TournamentPrize.d.ts +10 -10
- package/dist/Tournaments/TournamentPublicMeta.d.ts +25 -25
- package/dist/Tournaments/TournamentRegisterRequest.d.ts +4 -4
- package/dist/Tournaments/TournamentRegisterResponse.d.ts +5 -5
- package/dist/Tournaments/TournamentRegistrationError.d.ts +11 -11
- package/dist/Tournaments/TournamentRegistrationStatus.d.ts +22 -22
- package/dist/Tournaments/TournamentRegistrationType.d.ts +11 -11
- package/dist/Tournaments/TournamentType.d.ts +5 -5
- package/dist/Tournaments/TournamentUtils.d.ts +9 -9
- package/dist/Tournaments/index.d.ts +16 -16
- package/dist/WSAPI/WSAPI.d.ts +65 -65
- package/dist/WSAPI/WSAPITypes.d.ts +377 -377
- package/dist/index.d.ts +12 -12
- package/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +20 -19
- package/dist/index.modern.mjs.map +1 -1
- package/dist/service/index.d.ts +5 -0
- package/dist/service/types/ErrorCodes.d.ts +13 -0
- package/dist/service/types/GRequest.d.ts +16 -0
- package/dist/service/types/GResponse.d.ts +10 -0
- package/dist/service/types/Game/GameAttemptType.d.ts +6 -0
- package/dist/service/types/Game/GameCanPlayType.d.ts +10 -0
- package/dist/service/types/Game/GameExternalStatus.d.ts +6 -0
- package/dist/service/types/Game/GameInfo.d.ts +9 -0
- package/dist/service/types/Game/GamePick.d.ts +90 -0
- package/dist/service/types/Game/GameUtil.d.ts +7 -0
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +7 -0
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +7 -0
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +5 -0
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +6 -0
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +5 -0
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +34 -0
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +11 -0
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +12 -0
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +15 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +10 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +3 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +11 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +8 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +13 -0
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +21 -0
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +31 -0
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +12 -0
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +9 -0
- package/dist/service/types/User/UserInfo.d.ts +10 -0
- package/dist/util/Util.d.ts +51 -0
- package/package.json +1 -1
- package/src/Base/AchRelatedGame.ts +14 -0
- package/src/Core/CoreUtils.ts +1 -1
- package/src/Inbox/InboxMessage.ts +1 -1
- package/src/Missions/UserAchievement.ts +2 -0
- package/src/Tournaments/Tournament.ts +4 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface AchRelatedGame {
|
|
2
|
+
ach_game_id: number;
|
|
3
|
+
ext_game_id: string;
|
|
4
|
+
game_public_meta: {
|
|
5
|
+
name: string;
|
|
6
|
+
link: string;
|
|
7
|
+
image: string;
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
game_categories?: string[];
|
|
10
|
+
game_provider?: string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export { AchRelatedGame };
|
package/dist/Base/ClassId.d.ts
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
export declare enum ClassId {
|
|
2
|
-
PING = 1,
|
|
3
|
-
PONG = 2,
|
|
4
|
-
INIT = 3,
|
|
5
|
-
INIT_RESPONSE = 4,
|
|
6
|
-
IDENTIFY = 5,
|
|
7
|
-
IDENTIFY_RESPONSE = 6,
|
|
8
|
-
LOGIN = 7,
|
|
9
|
-
LOGOUT = 8,
|
|
10
|
-
EVENT = 9,
|
|
11
|
-
EVENT_RESPONSE = 10,
|
|
12
|
-
LOGIN_RESPONSE = 11,
|
|
13
|
-
LOGOUT_RESPONSE = 12,
|
|
14
|
-
GET_TRANSLATIONS_REQUEST = 13,
|
|
15
|
-
GET_TRANSLATIONS_RESPONSE = 14,
|
|
16
|
-
CLIENT_ENGAGEMENT_IMPRESSION_REQUEST = 103,
|
|
17
|
-
CLIENT_ENGAGEMENT_ACTION_REQUEST = 104,
|
|
18
|
-
CLIENT_EXECUTE_DEEPLINK_EVENT = 105,
|
|
19
|
-
CLIENT_ENGAGEMENT_FAILED_REQUEST = 106,
|
|
20
|
-
CLIENT_EXECUTE_JS_EVENT = 107,
|
|
21
|
-
CLIENT_PUBLIC_PROPERTIES_CHANGED_EVENT = 108,
|
|
22
|
-
CLIENT_ENGAGEMENT_EVENT_NEW = 110,
|
|
23
|
-
CLIENT_TRACK_ACTIVITY_REQUEST = 155,
|
|
24
|
-
CLIENT_SET_AVATAR_REQUEST = 157,
|
|
25
|
-
CLIENT_SET_AVATAR_RESPONSE = 158,
|
|
26
|
-
CLIENT_SET_CUSTOM_USERNAME_REQUEST = 159,
|
|
27
|
-
CLIENT_SET_CUSTOM_USERNAME_RESPONSE = 160,
|
|
28
|
-
GET_LEVEL_MAP_REQUEST = 500,
|
|
29
|
-
GET_LEVEL_MAP_RESPONSE = 501,
|
|
30
|
-
GET_ACHIEVEMENT_MAP_REQUEST = 502,
|
|
31
|
-
GET_ACHIEVEMENT_MAP_RESPONSE = 503,
|
|
32
|
-
RELOAD_ACHIEVEMENTS_EVENT = 504,
|
|
33
|
-
GET_LEADERS_BOARD_REQUEST = 505,
|
|
34
|
-
GET_LEADERS_BOARD_RESPONSE = 506,
|
|
35
|
-
GET_ACTIVITY_LOG_REQUEST = 507,
|
|
36
|
-
GET_ACTIVITY_LOG_RESPONSE = 508,
|
|
37
|
-
GET_SHOP_ITEMS_REQUEST = 509,
|
|
38
|
-
GET_SHOP_ITEMS_RESPONSE = 510,
|
|
39
|
-
BUY_SHOP_ITEM_REQUEST = 511,
|
|
40
|
-
BUY_SHOP_ITEM_RESPONSE = 512,
|
|
41
|
-
GET_INBOX_MESSAGES_REQUEST = 513,
|
|
42
|
-
GET_INBOX_MESSAGES_RESPONSE = 514,
|
|
43
|
-
GET_SHOP_CATEGORIES_REQUEST = 515,
|
|
44
|
-
GET_SHOP_CATEGORIES_RESPONSE = 516,
|
|
45
|
-
GET_TOURNAMENT_LOBBY_REQUEST = 517,
|
|
46
|
-
GET_TOURNAMENT_LOBBY_RESPONSE = 518,
|
|
47
|
-
GET_TOURNAMENT_INFO_REQUEST = 519,
|
|
48
|
-
GET_TOURNAMENT_INFO_RESPONSE = 520,
|
|
49
|
-
TOURNAMENT_REGISTER_REQUEST = 521,
|
|
50
|
-
TOURNAMENT_REGISTER_RESPONSE = 522,
|
|
51
|
-
GET_CUSTOM_SECTIONS_REQUEST = 523,
|
|
52
|
-
GET_CUSTOM_SECTIONS_RESPONSE = 524,
|
|
53
|
-
MISSION_OPTIN_REQUEST = 525,
|
|
54
|
-
MISSION_OPTIN_RESPONSE = 526,
|
|
55
|
-
GET_ACHIEVEMENT_USER_REQUEST = 527,
|
|
56
|
-
GET_ACHIEVEMENT_USER_RESPONSE = 528,
|
|
57
|
-
MARK_INBOX_READ_REQUEST = 529,
|
|
58
|
-
MARK_INBOX_READ_RESPONSE = 530,
|
|
59
|
-
MARK_INBOX_STARRED_REQUEST = 531,
|
|
60
|
-
MARK_INBOX_STARRED_RESPONSE = 532,
|
|
61
|
-
GET_BONUSES_REQUEST = 600,
|
|
62
|
-
GET_BONUSES_RESPONSE = 601,
|
|
63
|
-
CLAIM_BONUS_REQUEST = 602,
|
|
64
|
-
CLAIM_BONUS_RESPONSE = 603,
|
|
65
|
-
SAW_GET_SPINS_REQUEST = 700,
|
|
66
|
-
SAW_GET_SPINS_RESPONSE = 701,
|
|
67
|
-
SAW_DO_SPIN_REQUEST = 702,
|
|
68
|
-
SAW_DO_SPIN_RESPONSE = 703,
|
|
69
|
-
SAW_AKNOWLEDGE_REQUEST = 704,
|
|
70
|
-
SAW_AKNOWLEDGE_RESPONSE = 705,
|
|
71
|
-
SAW_SPINS_COUNT_PUSH = 706,
|
|
72
|
-
SAW_SHOW_SPIN_PUSH = 707,
|
|
73
|
-
REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
|
|
74
|
-
REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
|
|
75
|
-
CLIENT_DEBUG_REQUEST = 77777,
|
|
76
|
-
UNSUPPORTED_COMMAND = 99999
|
|
77
|
-
}
|
|
1
|
+
export declare enum ClassId {
|
|
2
|
+
PING = 1,
|
|
3
|
+
PONG = 2,
|
|
4
|
+
INIT = 3,
|
|
5
|
+
INIT_RESPONSE = 4,
|
|
6
|
+
IDENTIFY = 5,
|
|
7
|
+
IDENTIFY_RESPONSE = 6,
|
|
8
|
+
LOGIN = 7,
|
|
9
|
+
LOGOUT = 8,
|
|
10
|
+
EVENT = 9,
|
|
11
|
+
EVENT_RESPONSE = 10,
|
|
12
|
+
LOGIN_RESPONSE = 11,
|
|
13
|
+
LOGOUT_RESPONSE = 12,
|
|
14
|
+
GET_TRANSLATIONS_REQUEST = 13,
|
|
15
|
+
GET_TRANSLATIONS_RESPONSE = 14,
|
|
16
|
+
CLIENT_ENGAGEMENT_IMPRESSION_REQUEST = 103,
|
|
17
|
+
CLIENT_ENGAGEMENT_ACTION_REQUEST = 104,
|
|
18
|
+
CLIENT_EXECUTE_DEEPLINK_EVENT = 105,
|
|
19
|
+
CLIENT_ENGAGEMENT_FAILED_REQUEST = 106,
|
|
20
|
+
CLIENT_EXECUTE_JS_EVENT = 107,
|
|
21
|
+
CLIENT_PUBLIC_PROPERTIES_CHANGED_EVENT = 108,
|
|
22
|
+
CLIENT_ENGAGEMENT_EVENT_NEW = 110,
|
|
23
|
+
CLIENT_TRACK_ACTIVITY_REQUEST = 155,
|
|
24
|
+
CLIENT_SET_AVATAR_REQUEST = 157,
|
|
25
|
+
CLIENT_SET_AVATAR_RESPONSE = 158,
|
|
26
|
+
CLIENT_SET_CUSTOM_USERNAME_REQUEST = 159,
|
|
27
|
+
CLIENT_SET_CUSTOM_USERNAME_RESPONSE = 160,
|
|
28
|
+
GET_LEVEL_MAP_REQUEST = 500,
|
|
29
|
+
GET_LEVEL_MAP_RESPONSE = 501,
|
|
30
|
+
GET_ACHIEVEMENT_MAP_REQUEST = 502,
|
|
31
|
+
GET_ACHIEVEMENT_MAP_RESPONSE = 503,
|
|
32
|
+
RELOAD_ACHIEVEMENTS_EVENT = 504,
|
|
33
|
+
GET_LEADERS_BOARD_REQUEST = 505,
|
|
34
|
+
GET_LEADERS_BOARD_RESPONSE = 506,
|
|
35
|
+
GET_ACTIVITY_LOG_REQUEST = 507,
|
|
36
|
+
GET_ACTIVITY_LOG_RESPONSE = 508,
|
|
37
|
+
GET_SHOP_ITEMS_REQUEST = 509,
|
|
38
|
+
GET_SHOP_ITEMS_RESPONSE = 510,
|
|
39
|
+
BUY_SHOP_ITEM_REQUEST = 511,
|
|
40
|
+
BUY_SHOP_ITEM_RESPONSE = 512,
|
|
41
|
+
GET_INBOX_MESSAGES_REQUEST = 513,
|
|
42
|
+
GET_INBOX_MESSAGES_RESPONSE = 514,
|
|
43
|
+
GET_SHOP_CATEGORIES_REQUEST = 515,
|
|
44
|
+
GET_SHOP_CATEGORIES_RESPONSE = 516,
|
|
45
|
+
GET_TOURNAMENT_LOBBY_REQUEST = 517,
|
|
46
|
+
GET_TOURNAMENT_LOBBY_RESPONSE = 518,
|
|
47
|
+
GET_TOURNAMENT_INFO_REQUEST = 519,
|
|
48
|
+
GET_TOURNAMENT_INFO_RESPONSE = 520,
|
|
49
|
+
TOURNAMENT_REGISTER_REQUEST = 521,
|
|
50
|
+
TOURNAMENT_REGISTER_RESPONSE = 522,
|
|
51
|
+
GET_CUSTOM_SECTIONS_REQUEST = 523,
|
|
52
|
+
GET_CUSTOM_SECTIONS_RESPONSE = 524,
|
|
53
|
+
MISSION_OPTIN_REQUEST = 525,
|
|
54
|
+
MISSION_OPTIN_RESPONSE = 526,
|
|
55
|
+
GET_ACHIEVEMENT_USER_REQUEST = 527,
|
|
56
|
+
GET_ACHIEVEMENT_USER_RESPONSE = 528,
|
|
57
|
+
MARK_INBOX_READ_REQUEST = 529,
|
|
58
|
+
MARK_INBOX_READ_RESPONSE = 530,
|
|
59
|
+
MARK_INBOX_STARRED_REQUEST = 531,
|
|
60
|
+
MARK_INBOX_STARRED_RESPONSE = 532,
|
|
61
|
+
GET_BONUSES_REQUEST = 600,
|
|
62
|
+
GET_BONUSES_RESPONSE = 601,
|
|
63
|
+
CLAIM_BONUS_REQUEST = 602,
|
|
64
|
+
CLAIM_BONUS_RESPONSE = 603,
|
|
65
|
+
SAW_GET_SPINS_REQUEST = 700,
|
|
66
|
+
SAW_GET_SPINS_RESPONSE = 701,
|
|
67
|
+
SAW_DO_SPIN_REQUEST = 702,
|
|
68
|
+
SAW_DO_SPIN_RESPONSE = 703,
|
|
69
|
+
SAW_AKNOWLEDGE_REQUEST = 704,
|
|
70
|
+
SAW_AKNOWLEDGE_RESPONSE = 705,
|
|
71
|
+
SAW_SPINS_COUNT_PUSH = 706,
|
|
72
|
+
SAW_SHOW_SPIN_PUSH = 707,
|
|
73
|
+
REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ = 1003,
|
|
74
|
+
REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP = 2003,
|
|
75
|
+
CLIENT_DEBUG_REQUEST = 77777,
|
|
76
|
+
UNSUPPORTED_COMMAND = 99999
|
|
77
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface ProtocolMessage {
|
|
2
|
-
cid: number;
|
|
3
|
-
ts?: number;
|
|
4
|
-
uuid?: string;
|
|
5
|
-
}
|
|
1
|
+
export interface ProtocolMessage {
|
|
2
|
+
cid: number;
|
|
3
|
+
ts?: number;
|
|
4
|
+
uuid?: string;
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProtocolMessage } from "./ProtocolMessage";
|
|
2
|
-
export interface ProtocolRequest extends ProtocolMessage {
|
|
3
|
-
api_key: string;
|
|
4
|
-
brand_key: string;
|
|
5
|
-
ext_user_id: string;
|
|
6
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "./ProtocolMessage";
|
|
2
|
+
export interface ProtocolRequest extends ProtocolMessage {
|
|
3
|
+
api_key: string;
|
|
4
|
+
brand_key: string;
|
|
5
|
+
ext_user_id: string;
|
|
6
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolMessage } from "./ProtocolMessage";
|
|
2
|
-
export interface ProtocolResponse extends ProtocolMessage {
|
|
3
|
-
errCode?: number;
|
|
4
|
-
errMsg?: string;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "./ProtocolMessage";
|
|
2
|
+
export interface ProtocolResponse extends ProtocolMessage {
|
|
3
|
+
errCode?: number;
|
|
4
|
+
errMsg?: string;
|
|
5
|
+
}
|
package/dist/CookieStore.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare class CookieStore {
|
|
2
|
-
private static cookieStore;
|
|
3
|
-
static get(key: string): string[] | undefined;
|
|
4
|
-
static set(key: string, value: string[]): void;
|
|
5
|
-
}
|
|
6
|
-
export { CookieStore };
|
|
1
|
+
declare class CookieStore {
|
|
2
|
+
private static cookieStore;
|
|
3
|
+
static get(key: string): string[] | undefined;
|
|
4
|
+
static set(key: string, value: string[]): void;
|
|
5
|
+
}
|
|
6
|
+
export { CookieStore };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export declare enum ActivityTypeLimited {
|
|
2
|
-
DoNothing = 8,
|
|
3
|
-
Points = 12,
|
|
4
|
-
GiveMission = 14,
|
|
5
|
-
StartAnotherCampaign = 15,
|
|
6
|
-
MiniGameAttempt = 16,
|
|
7
|
-
DeductPoints = 21,
|
|
8
|
-
ResetPoints = 22,
|
|
9
|
-
Popup = 30,
|
|
10
|
-
Inbox = 31,
|
|
11
|
-
Slack = 70,
|
|
12
|
-
Email_To_Customer_Support = 80,
|
|
13
|
-
Email_To_Risk_Operator = 90,
|
|
14
|
-
Bonus = 100,
|
|
15
|
-
WebHook = 200,
|
|
16
|
-
TagCustomer = 504,
|
|
17
|
-
UnTagCustomer = 505
|
|
18
|
-
}
|
|
1
|
+
export declare enum ActivityTypeLimited {
|
|
2
|
+
DoNothing = 8,
|
|
3
|
+
Points = 12,
|
|
4
|
+
GiveMission = 14,
|
|
5
|
+
StartAnotherCampaign = 15,
|
|
6
|
+
MiniGameAttempt = 16,
|
|
7
|
+
DeductPoints = 21,
|
|
8
|
+
ResetPoints = 22,
|
|
9
|
+
Popup = 30,
|
|
10
|
+
Inbox = 31,
|
|
11
|
+
Slack = 70,
|
|
12
|
+
Email_To_Customer_Support = 80,
|
|
13
|
+
Email_To_Risk_Operator = 90,
|
|
14
|
+
Bonus = 100,
|
|
15
|
+
WebHook = 200,
|
|
16
|
+
TagCustomer = 504,
|
|
17
|
+
UnTagCustomer = 505
|
|
18
|
+
}
|
package/dist/Core/CoreUtils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare class CoreUtils {
|
|
2
|
-
static avatarUrl: (avatar_id: string, avatarDomain: string) => string;
|
|
3
|
-
}
|
|
4
|
-
export { CoreUtils };
|
|
1
|
+
declare class CoreUtils {
|
|
2
|
+
static avatarUrl: (avatar_id: string, avatarDomain: string) => string;
|
|
3
|
+
}
|
|
4
|
+
export { CoreUtils };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ProtocolRequest } from "../Base/ProtocolRequest";
|
|
2
|
-
export interface GetLabelInfoRequest extends ProtocolRequest {
|
|
3
|
-
}
|
|
1
|
+
import { ProtocolRequest } from "../Base/ProtocolRequest";
|
|
2
|
+
export interface GetLabelInfoRequest extends ProtocolRequest {
|
|
3
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
export interface GetLabelInfoResponse extends ProtocolResponse {
|
|
3
|
-
settings: {
|
|
4
|
-
[key: string]: string;
|
|
5
|
-
};
|
|
6
|
-
label_id: string;
|
|
7
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
export interface GetLabelInfoResponse extends ProtocolResponse {
|
|
3
|
+
settings: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
label_id: string;
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProtocolRequest } from "../Base/ProtocolRequest";
|
|
2
|
-
import { TranslationArea } from "./TranslationArea";
|
|
3
|
-
export interface GetTranslationsRequest extends ProtocolRequest {
|
|
4
|
-
hash_code: number;
|
|
5
|
-
areas: TranslationArea[];
|
|
6
|
-
lang_code: string;
|
|
7
|
-
}
|
|
1
|
+
import { ProtocolRequest } from "../Base/ProtocolRequest";
|
|
2
|
+
import { TranslationArea } from "./TranslationArea";
|
|
3
|
+
export interface GetTranslationsRequest extends ProtocolRequest {
|
|
4
|
+
hash_code: number;
|
|
5
|
+
areas: TranslationArea[];
|
|
6
|
+
lang_code: string;
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
export interface GetTranslationsResponse extends ProtocolResponse {
|
|
3
|
-
hash_code: number;
|
|
4
|
-
translations: {
|
|
5
|
-
[key: string]: string;
|
|
6
|
-
};
|
|
7
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
export interface GetTranslationsResponse extends ProtocolResponse {
|
|
3
|
+
hash_code: number;
|
|
4
|
+
translations: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export declare enum PublicLabelSettings {
|
|
2
|
-
FCM_SENDER_ID = "FCM_SENDER_ID",
|
|
3
|
-
PUBLIC_API_URL = "PUBLIC_API_URL",
|
|
4
|
-
FCM_SW_URL = "FCM_SW_URL",
|
|
5
|
-
RECORDING_ENABLED_FOR_ALL_USERS = "RECORDING_ENABLED_FOR_ALL_USERS",
|
|
6
|
-
JS_INJECTION = "JS_INJECTION",
|
|
7
|
-
GAMIFICATION_UI_MAIN = "GAMIFICATION_UI_MAIN",
|
|
8
|
-
GAMIFICATION_UI_WIDGET = "GAMIFICATION_UI_WIDGET",
|
|
9
|
-
GAMIFICATION_UI_MINI_GAME = "GAMIFICATION_UI_MINI_GAME",
|
|
10
|
-
GAMIFICATION_UI_SETTINGS = "GAMIFICATION_UI_SETTINGS",
|
|
11
|
-
GAMIFICATION_UI_MAIN_TEST = "GAMIFICATION_UI_MAIN_TEST",
|
|
12
|
-
GAMIFICATION_UI_WIDGET_TEST = "GAMIFICATION_UI_WIDGET_TEST",
|
|
13
|
-
GAMIFICATION_UI_SETTINGS_TEST = "GAMIFICATION_UI_SETTINGS_TEST",
|
|
14
|
-
FRONT_END_ALLOWED_LANGUAGES = "FRONT_END_ALLOWED_LANGUAGES",
|
|
15
|
-
FRONT_END_ALLOW_DOMAINS = "FRONT_END_ALLOW_DOMAINS",
|
|
16
|
-
DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS = "DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS",
|
|
17
|
-
SHADOW_LABEL_PUBLIC_KEY = "SHADOW_LABEL_PUBLIC_KEY",
|
|
18
|
-
DYNAMIC_IMAGE_DOMAIN = "DYNAMIC_IMAGE_DOMAIN",
|
|
19
|
-
GAMIFICATION_UI_LEVEL_ENABLED = "GAMIFICATION_UI_LEVEL_ENABLED",
|
|
20
|
-
GAMIFICATION_UI_LEVEL_IMAGE_MOB = "GAMIFICATION_UI_LEVEL_IMAGE_MOB",
|
|
21
|
-
GAMIFICATION_UI_LEVEL_IMAGE_DESK = "GAMIFICATION_UI_LEVEL_IMAGE_DESK",
|
|
22
|
-
GAMIFICATION_LEVELS_LOGIC2 = "GAMIFICATION_LEVELS_LOGIC2",
|
|
23
|
-
GAMIFICATION_LEVELS_LOGIC3 = "GAMIFICATION_LEVELS_LOGIC2",
|
|
24
|
-
AVATAR_CUSTOM_IMAGE_MAX_ID = "AVATAR_CUSTOM_IMAGE_MAX_ID",
|
|
25
|
-
AVATAR_CUSTOM_IMAGE_FOLDER = "AVATAR_CUSTOM_IMAGE_FOLDER",
|
|
26
|
-
GAMIFICATION_SHOW_POWERED_BY = "GAMIFICATION_SHOW_POWERED_BY",
|
|
27
|
-
_system_leader_board_mask_username = "_system_leader_board_mask_username",
|
|
28
|
-
INBOX_PUBLIC_CDN = "INBOX_PUBLIC_CDN"
|
|
29
|
-
}
|
|
1
|
+
export declare enum PublicLabelSettings {
|
|
2
|
+
FCM_SENDER_ID = "FCM_SENDER_ID",
|
|
3
|
+
PUBLIC_API_URL = "PUBLIC_API_URL",
|
|
4
|
+
FCM_SW_URL = "FCM_SW_URL",
|
|
5
|
+
RECORDING_ENABLED_FOR_ALL_USERS = "RECORDING_ENABLED_FOR_ALL_USERS",
|
|
6
|
+
JS_INJECTION = "JS_INJECTION",
|
|
7
|
+
GAMIFICATION_UI_MAIN = "GAMIFICATION_UI_MAIN",
|
|
8
|
+
GAMIFICATION_UI_WIDGET = "GAMIFICATION_UI_WIDGET",
|
|
9
|
+
GAMIFICATION_UI_MINI_GAME = "GAMIFICATION_UI_MINI_GAME",
|
|
10
|
+
GAMIFICATION_UI_SETTINGS = "GAMIFICATION_UI_SETTINGS",
|
|
11
|
+
GAMIFICATION_UI_MAIN_TEST = "GAMIFICATION_UI_MAIN_TEST",
|
|
12
|
+
GAMIFICATION_UI_WIDGET_TEST = "GAMIFICATION_UI_WIDGET_TEST",
|
|
13
|
+
GAMIFICATION_UI_SETTINGS_TEST = "GAMIFICATION_UI_SETTINGS_TEST",
|
|
14
|
+
FRONT_END_ALLOWED_LANGUAGES = "FRONT_END_ALLOWED_LANGUAGES",
|
|
15
|
+
FRONT_END_ALLOW_DOMAINS = "FRONT_END_ALLOW_DOMAINS",
|
|
16
|
+
DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS = "DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS",
|
|
17
|
+
SHADOW_LABEL_PUBLIC_KEY = "SHADOW_LABEL_PUBLIC_KEY",
|
|
18
|
+
DYNAMIC_IMAGE_DOMAIN = "DYNAMIC_IMAGE_DOMAIN",
|
|
19
|
+
GAMIFICATION_UI_LEVEL_ENABLED = "GAMIFICATION_UI_LEVEL_ENABLED",
|
|
20
|
+
GAMIFICATION_UI_LEVEL_IMAGE_MOB = "GAMIFICATION_UI_LEVEL_IMAGE_MOB",
|
|
21
|
+
GAMIFICATION_UI_LEVEL_IMAGE_DESK = "GAMIFICATION_UI_LEVEL_IMAGE_DESK",
|
|
22
|
+
GAMIFICATION_LEVELS_LOGIC2 = "GAMIFICATION_LEVELS_LOGIC2",
|
|
23
|
+
GAMIFICATION_LEVELS_LOGIC3 = "GAMIFICATION_LEVELS_LOGIC2",
|
|
24
|
+
AVATAR_CUSTOM_IMAGE_MAX_ID = "AVATAR_CUSTOM_IMAGE_MAX_ID",
|
|
25
|
+
AVATAR_CUSTOM_IMAGE_FOLDER = "AVATAR_CUSTOM_IMAGE_FOLDER",
|
|
26
|
+
GAMIFICATION_SHOW_POWERED_BY = "GAMIFICATION_SHOW_POWERED_BY",
|
|
27
|
+
_system_leader_board_mask_username = "_system_leader_board_mask_username",
|
|
28
|
+
INBOX_PUBLIC_CDN = "INBOX_PUBLIC_CDN"
|
|
29
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export interface PublicProperties {
|
|
2
|
-
core_user_language?: string;
|
|
3
|
-
ach_points_balance?: number;
|
|
4
|
-
ach_points_ever?: number;
|
|
5
|
-
ach_points_board_period_type_1?: number;
|
|
6
|
-
ach_points_board_period_type_2?: number;
|
|
7
|
-
ach_level_current_id?: number;
|
|
8
|
-
ach_level_current?: string;
|
|
9
|
-
core_is_test_account?: boolean;
|
|
10
|
-
ach_gamification_in_control_group?: boolean;
|
|
11
|
-
}
|
|
1
|
+
export interface PublicProperties {
|
|
2
|
+
core_user_language?: string;
|
|
3
|
+
ach_points_balance?: number;
|
|
4
|
+
ach_points_ever?: number;
|
|
5
|
+
ach_points_board_period_type_1?: number;
|
|
6
|
+
ach_points_board_period_type_2?: number;
|
|
7
|
+
ach_level_current_id?: number;
|
|
8
|
+
ach_level_current?: string;
|
|
9
|
+
core_is_test_account?: boolean;
|
|
10
|
+
ach_gamification_in_control_group?: boolean;
|
|
11
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
import { PublicProperties } from "./PublicProperties";
|
|
3
|
-
interface ResponseIdentify extends ProtocolResponse {
|
|
4
|
-
user_id: number;
|
|
5
|
-
ext_user_id: string;
|
|
6
|
-
public_username: string;
|
|
7
|
-
avatar_id: string;
|
|
8
|
-
job: boolean;
|
|
9
|
-
props?: PublicProperties;
|
|
10
|
-
pubic_username_set: boolean;
|
|
11
|
-
}
|
|
12
|
-
export { ResponseIdentify };
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
import { PublicProperties } from "./PublicProperties";
|
|
3
|
+
interface ResponseIdentify extends ProtocolResponse {
|
|
4
|
+
user_id: number;
|
|
5
|
+
ext_user_id: string;
|
|
6
|
+
public_username: string;
|
|
7
|
+
avatar_id: string;
|
|
8
|
+
job: boolean;
|
|
9
|
+
props?: PublicProperties;
|
|
10
|
+
pubic_username_set: boolean;
|
|
11
|
+
}
|
|
12
|
+
export { ResponseIdentify };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare enum TranslationArea {
|
|
2
|
-
Casino = 1,
|
|
3
|
-
Gamification = 2,
|
|
4
|
-
Trading = 3,
|
|
5
|
-
Archived = 4,
|
|
6
|
-
Affiliation = 5,
|
|
7
|
-
RetentionGames = 6,
|
|
8
|
-
AffIliateAdminNew = 7
|
|
9
|
-
}
|
|
10
|
-
export { TranslationArea };
|
|
1
|
+
declare enum TranslationArea {
|
|
2
|
+
Casino = 1,
|
|
3
|
+
Gamification = 2,
|
|
4
|
+
Trading = 3,
|
|
5
|
+
Archived = 4,
|
|
6
|
+
Affiliation = 5,
|
|
7
|
+
RetentionGames = 6,
|
|
8
|
+
AffIliateAdminNew = 7
|
|
9
|
+
}
|
|
10
|
+
export { TranslationArea };
|
package/dist/Core/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from './ActivityTypeLimited';
|
|
2
|
-
export * from './CoreUtils';
|
|
3
|
-
export * from './GetLabelInfoRequest';
|
|
4
|
-
export * from './GetLabelInfoResponse';
|
|
5
|
-
export * from './GetTranslationsRequest';
|
|
6
|
-
export * from './GetTranslationsResponse';
|
|
7
|
-
export * from './PublicLabelSettings';
|
|
8
|
-
export * from './ResponseIdentify';
|
|
9
|
-
export * from './TranslationArea';
|
|
1
|
+
export * from './ActivityTypeLimited';
|
|
2
|
+
export * from './CoreUtils';
|
|
3
|
+
export * from './GetLabelInfoRequest';
|
|
4
|
+
export * from './GetLabelInfoResponse';
|
|
5
|
+
export * from './GetTranslationsRequest';
|
|
6
|
+
export * from './GetTranslationsResponse';
|
|
7
|
+
export * from './PublicLabelSettings';
|
|
8
|
+
export * from './ResponseIdentify';
|
|
9
|
+
export * from './TranslationArea';
|
package/dist/ErrorCodes.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const ErrorCodes_FatalStartingRange = 100000;
|
|
2
|
-
export declare enum ErrorCodesGame {
|
|
3
|
-
OK = 0,
|
|
4
|
-
NoBetsUpdatedOnSubmit = 3,
|
|
5
|
-
RepeatRequest_Unhandled = 4,
|
|
6
|
-
Fatal_NotValidHash
|
|
7
|
-
Fatal_WrongCustomerID
|
|
8
|
-
Fatal_TemplateNotFound
|
|
9
|
-
Fatal_NoOpenRounds
|
|
10
|
-
Fatal_Unhandled
|
|
11
|
-
}
|
|
12
|
-
export type ErrorCodes = ErrorCodesGame;
|
|
1
|
+
export declare const ErrorCodes_FatalStartingRange = 100000;
|
|
2
|
+
export declare enum ErrorCodesGame {
|
|
3
|
+
OK = 0,
|
|
4
|
+
NoBetsUpdatedOnSubmit = 3,
|
|
5
|
+
RepeatRequest_Unhandled = 4,
|
|
6
|
+
Fatal_NotValidHash,
|
|
7
|
+
Fatal_WrongCustomerID,
|
|
8
|
+
Fatal_TemplateNotFound,
|
|
9
|
+
Fatal_NoOpenRounds,
|
|
10
|
+
Fatal_Unhandled
|
|
11
|
+
}
|
|
12
|
+
export type ErrorCodes = ErrorCodesGame;
|
package/dist/GResponse.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ErrorCodes } from "./ErrorCodes";
|
|
2
|
-
interface GResponseBase {
|
|
3
|
-
errCode: ErrorCodes;
|
|
4
|
-
errMessage?: string;
|
|
5
|
-
}
|
|
6
|
-
interface GResponse<T> extends GResponseBase {
|
|
7
|
-
data?: T;
|
|
8
|
-
}
|
|
9
|
-
export { GResponseBase, GResponse };
|
|
1
|
+
import { ErrorCodes } from "./ErrorCodes";
|
|
2
|
+
interface GResponseBase {
|
|
3
|
+
errCode: ErrorCodes;
|
|
4
|
+
errMessage?: string;
|
|
5
|
+
}
|
|
6
|
+
interface GResponse<T> extends GResponseBase {
|
|
7
|
+
data?: T;
|
|
8
|
+
}
|
|
9
|
+
export { GResponseBase, GResponse };
|
package/dist/ILogger.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface ILogger {
|
|
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
|
+
export interface ILogger {
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface GetInboxMessagesRequest extends ProtocolMessage {
|
|
3
|
-
limit?: number;
|
|
4
|
-
offset?: number;
|
|
5
|
-
starred_only?: boolean;
|
|
6
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface GetInboxMessagesRequest extends ProtocolMessage {
|
|
3
|
+
limit?: number;
|
|
4
|
+
offset?: number;
|
|
5
|
+
starred_only?: boolean;
|
|
6
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
import { InboxMessage } from "./InboxMessage";
|
|
3
|
-
export interface GetInboxMessagesResponse extends ProtocolResponse {
|
|
4
|
-
log: InboxMessage[];
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
import { InboxMessage } from "./InboxMessage";
|
|
3
|
+
export interface GetInboxMessagesResponse extends ProtocolResponse {
|
|
4
|
+
log: InboxMessage[];
|
|
5
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { InboxMessageType } from "./InboxMessageType";
|
|
2
|
-
export interface InboxMessage {
|
|
3
|
-
createDate: string;
|
|
4
|
-
body: {
|
|
5
|
-
action: string;
|
|
6
|
-
body: string;
|
|
7
|
-
type: InboxMessageType;
|
|
8
|
-
image: string;
|
|
9
|
-
title: string;
|
|
10
|
-
html_body: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
1
|
+
import { InboxMessageType } from "./InboxMessageType";
|
|
2
|
+
export interface InboxMessage {
|
|
3
|
+
createDate: string;
|
|
4
|
+
body: {
|
|
5
|
+
action: string;
|
|
6
|
+
body: string;
|
|
7
|
+
type: InboxMessageType;
|
|
8
|
+
image: string;
|
|
9
|
+
title: string;
|
|
10
|
+
html_body: string;
|
|
11
|
+
additional_buttons?: {
|
|
12
|
+
inbox_cta_text: string;
|
|
13
|
+
action: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
engagement_uid: string;
|
|
17
|
+
is_read: boolean;
|
|
18
|
+
is_starred: boolean;
|
|
19
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare enum InboxMessageType {
|
|
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
|
-
}
|
|
1
|
+
export declare enum InboxMessageType {
|
|
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
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface MarkInboxMessageReadRequest extends ProtocolMessage {
|
|
3
|
-
engagement_uid?: string;
|
|
4
|
-
all_read?: boolean;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface MarkInboxMessageReadRequest extends ProtocolMessage {
|
|
3
|
+
engagement_uid?: string;
|
|
4
|
+
all_read?: boolean;
|
|
5
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface MarkInboxMessageReadResponse extends ProtocolMessage {
|
|
3
|
-
errCode: number;
|
|
4
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface MarkInboxMessageReadResponse extends ProtocolMessage {
|
|
3
|
+
errCode: number;
|
|
4
|
+
}
|