@smartico/public-api 0.0.90 → 0.0.92

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.
Files changed (158) hide show
  1. package/dist/Base/ClassId.d.ts +77 -77
  2. package/dist/Base/ProtocolMessage.d.ts +5 -5
  3. package/dist/Base/ProtocolRequest.d.ts +6 -6
  4. package/dist/Base/ProtocolResponse.d.ts +5 -5
  5. package/dist/CookieStore.d.ts +6 -6
  6. package/dist/Core/ActivityTypeLimited.d.ts +18 -18
  7. package/dist/Core/CoreUtils.d.ts +4 -4
  8. package/dist/Core/GetLabelInfoRequest.d.ts +3 -3
  9. package/dist/Core/GetLabelInfoResponse.d.ts +7 -7
  10. package/dist/Core/GetTranslationsRequest.d.ts +7 -7
  11. package/dist/Core/GetTranslationsResponse.d.ts +7 -7
  12. package/dist/Core/PublicLabelSettings.d.ts +29 -29
  13. package/dist/Core/PublicProperties.d.ts +11 -11
  14. package/dist/Core/ResponseIdentify.d.ts +12 -12
  15. package/dist/Core/TranslationArea.d.ts +10 -10
  16. package/dist/Core/index.d.ts +9 -9
  17. package/dist/ErrorCodes.d.ts +12 -12
  18. package/dist/GResponse.d.ts +9 -9
  19. package/dist/ILogger.d.ts +7 -7
  20. package/dist/Inbox/GetInboxMessagesRequest.d.ts +6 -6
  21. package/dist/Inbox/GetInboxMessagesResponse.d.ts +5 -5
  22. package/dist/Inbox/InboxMessage.d.ts +19 -19
  23. package/dist/Inbox/InboxMessageType.d.ts +11 -11
  24. package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +5 -5
  25. package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +4 -4
  26. package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +5 -5
  27. package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +4 -4
  28. package/dist/Inbox/index.d.ts +8 -8
  29. package/dist/IntUtils.d.ts +9 -9
  30. package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +7 -7
  31. package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +7 -7
  32. package/dist/Leaderboard/LeaderBoardDetails.d.ts +13 -13
  33. package/dist/Leaderboard/LeaderBoardPeriodType.d.ts +5 -5
  34. package/dist/Leaderboard/LeaderBoardPosition.d.ts +10 -10
  35. package/dist/Leaderboard/LeaderBoardPublicMeta.d.ts +5 -5
  36. package/dist/Leaderboard/index.d.ts +6 -6
  37. package/dist/Level/GetLevelMapResponse.d.ts +7 -7
  38. package/dist/Level/Level.d.ts +12 -12
  39. package/dist/Level/LevelPublicMeta.d.ts +17 -17
  40. package/dist/Level/index.d.ts +3 -3
  41. package/dist/MiniGames/SAWAcknowledgeType.d.ts +5 -5
  42. package/dist/MiniGames/SAWAskForUsername.d.ts +4 -4
  43. package/dist/MiniGames/SAWBuyInType.d.ts +14 -14
  44. package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +4 -4
  45. package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +4 -4
  46. package/dist/MiniGames/SAWDoSpinRequest.d.ts +5 -5
  47. package/dist/MiniGames/SAWDoSpinResponse.d.ts +10 -10
  48. package/dist/MiniGames/SAWGameType.d.ts +16 -16
  49. package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +5 -5
  50. package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +7 -7
  51. package/dist/MiniGames/SAWPrize.d.ts +11 -11
  52. package/dist/MiniGames/SAWPrizeType.d.ts +20 -20
  53. package/dist/MiniGames/SAWPrizeUI.d.ts +15 -15
  54. package/dist/MiniGames/SAWSpinErrorCode.d.ts +14 -14
  55. package/dist/MiniGames/SAWSpinsCountPush.d.ts +5 -5
  56. package/dist/MiniGames/SAWTemplate.d.ts +27 -27
  57. package/dist/MiniGames/SAWTemplateUI.d.ts +38 -38
  58. package/dist/MiniGames/SAWUtils.d.ts +5 -5
  59. package/dist/MiniGames/SAWWinSoundType.d.ts +12 -12
  60. package/dist/MiniGames/index.d.ts +19 -19
  61. package/dist/Missions/AchievementOptinRequest.d.ts +4 -4
  62. package/dist/Missions/AchievementOptinResponse.d.ts +3 -3
  63. package/dist/Missions/AchievementPublicMeta.d.ts +18 -18
  64. package/dist/Missions/AchievementStatus.d.ts +8 -8
  65. package/dist/Missions/AchievementTaskPublicMeta.d.ts +3 -3
  66. package/dist/Missions/AchievementTaskType.d.ts +4 -4
  67. package/dist/Missions/AchievementType.d.ts +4 -4
  68. package/dist/Missions/GetAchievementMapRequest.d.ts +3 -3
  69. package/dist/Missions/GetAchievementMapResponse.d.ts +5 -5
  70. package/dist/Missions/ReloadAchievementsEvent.d.ts +3 -3
  71. package/dist/Missions/ScheduledMissionType.d.ts +5 -5
  72. package/dist/Missions/UserAchievement.d.ts +26 -26
  73. package/dist/Missions/UserAchievementTask.d.ts +14 -14
  74. package/dist/Missions/index.d.ts +13 -13
  75. package/dist/NodeCache.d.ts +9 -9
  76. package/dist/OCache.d.ts +13 -13
  77. package/dist/SmarticoAPI.d.ts +81 -81
  78. package/dist/Store/BuyStoreItemErrorCode.d.ts +10 -10
  79. package/dist/Store/BuyStoreItemRequest.d.ts +4 -4
  80. package/dist/Store/BuyStoreItemResponse.d.ts +4 -4
  81. package/dist/Store/GetCategoriesStoreResponse.d.ts +5 -5
  82. package/dist/Store/GetStoreItemsResponse.d.ts +5 -5
  83. package/dist/Store/StoreCategory.d.ts +7 -7
  84. package/dist/Store/StoreCategoryPublicMeta.d.ts +4 -4
  85. package/dist/Store/StoreItem.d.ts +11 -11
  86. package/dist/Store/StoreItemPublicMeta.d.ts +12 -12
  87. package/dist/Store/StoreItemType.d.ts +4 -4
  88. package/dist/Store/index.d.ts +10 -10
  89. package/dist/Tournaments/GetTournamentInfoRequest.d.ts +4 -4
  90. package/dist/Tournaments/GetTournamentInfoResponse.d.ts +22 -22
  91. package/dist/Tournaments/GetTournamentsRequest.d.ts +3 -3
  92. package/dist/Tournaments/GetTournamentsResponse.d.ts +6 -6
  93. package/dist/Tournaments/Tournament.d.ts +49 -49
  94. package/dist/Tournaments/TournamentInstanceStatus.d.ts +10 -10
  95. package/dist/Tournaments/TournamentPlayer.d.ts +9 -9
  96. package/dist/Tournaments/TournamentPrize.d.ts +10 -10
  97. package/dist/Tournaments/TournamentPublicMeta.d.ts +25 -25
  98. package/dist/Tournaments/TournamentRegisterRequest.d.ts +4 -4
  99. package/dist/Tournaments/TournamentRegisterResponse.d.ts +5 -5
  100. package/dist/Tournaments/TournamentRegistrationError.d.ts +11 -11
  101. package/dist/Tournaments/TournamentRegistrationStatus.d.ts +22 -22
  102. package/dist/Tournaments/TournamentRegistrationType.d.ts +11 -11
  103. package/dist/Tournaments/TournamentType.d.ts +5 -5
  104. package/dist/Tournaments/TournamentUtils.d.ts +9 -9
  105. package/dist/Tournaments/index.d.ts +16 -16
  106. package/dist/WSAPI/WSAPI.d.ts +65 -65
  107. package/dist/WSAPI/WSAPITypes.d.ts +377 -377
  108. package/dist/index.d.ts +12 -12
  109. package/dist/index.js +18 -18
  110. package/dist/index.js.map +1 -1
  111. package/dist/index.modern.mjs +18 -19
  112. package/dist/index.modern.mjs.map +1 -1
  113. package/package.json +1 -1
  114. package/dist/SmarticoPublicAPI.d.ts +0 -23
  115. package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
  116. package/dist/Store/BuyShopItemRequest.d.ts +0 -4
  117. package/dist/Store/BuyShopItemResponse.d.ts +0 -4
  118. package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
  119. package/dist/Store/GetShopItemsResponse.d.ts +0 -5
  120. package/dist/Store/ShopCategory.d.ts +0 -5
  121. package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
  122. package/dist/Store/ShopItem.d.ts +0 -9
  123. package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
  124. package/dist/Store/ShopItemType.d.ts +0 -4
  125. package/dist/service/index.d.ts +0 -5
  126. package/dist/service/types/ErrorCodes.d.ts +0 -13
  127. package/dist/service/types/GRequest.d.ts +0 -16
  128. package/dist/service/types/GResponse.d.ts +0 -10
  129. package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
  130. package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
  131. package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
  132. package/dist/service/types/Game/GameInfo.d.ts +0 -9
  133. package/dist/service/types/Game/GamePick.d.ts +0 -90
  134. package/dist/service/types/Game/GameUtil.d.ts +0 -7
  135. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
  136. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
  137. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
  138. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
  139. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
  140. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
  141. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
  142. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
  143. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
  144. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
  145. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
  146. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
  147. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
  148. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
  149. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
  150. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
  151. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
  152. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
  153. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
  154. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
  155. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
  156. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
  157. package/dist/service/types/User/UserInfo.d.ts +0 -10
  158. package/dist/util/Util.d.ts +0 -51
@@ -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
+ }
@@ -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
+ }
@@ -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 };
@@ -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';
@@ -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 = 100000,
7
+ Fatal_WrongCustomerID = 100001,
8
+ Fatal_TemplateNotFound = 100002,
9
+ Fatal_NoOpenRounds = 100003,
10
+ Fatal_Unhandled = 100004
11
+ }
12
+ export type ErrorCodes = ErrorCodesGame;
@@ -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
- engagement_uid: string;
13
- is_read: boolean;
14
- is_starred: boolean;
15
- additional_buttons?: {
16
- inbox_cta_text: string;
17
- action: string;
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
+ };
12
+ engagement_uid: string;
13
+ is_read: boolean;
14
+ is_starred: boolean;
15
+ additional_buttons?: {
16
+ inbox_cta_text: string;
17
+ action: string;
18
+ }[];
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
+ }
@@ -1,5 +1,5 @@
1
- import { ProtocolMessage } from "../Base/ProtocolMessage";
2
- export interface MarkInboxMessageStarredRequest extends ProtocolMessage {
3
- engagement_uid: string;
4
- is_starred?: boolean;
5
- }
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface MarkInboxMessageStarredRequest extends ProtocolMessage {
3
+ engagement_uid: string;
4
+ is_starred?: boolean;
5
+ }