@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.
Files changed (269) hide show
  1. package/.prettierrc +12 -0
  2. package/dist/Base/ProtocolRequest.d.ts +1 -1
  3. package/dist/Base/ProtocolResponse.d.ts +1 -1
  4. package/dist/Core/CheckSegmentMatchRequest.d.ts +1 -1
  5. package/dist/Core/CheckSegmentMatchResponse.d.ts +1 -1
  6. package/dist/Core/GetAchievementsUserInfoRequest.d.ts +1 -1
  7. package/dist/Core/GetAchievementsUserInfoResponse.d.ts +1 -1
  8. package/dist/Core/GetLabelInfoRequest.d.ts +1 -1
  9. package/dist/Core/GetLabelInfoResponse.d.ts +1 -1
  10. package/dist/Core/GetTranslationsRequest.d.ts +2 -2
  11. package/dist/Core/GetTranslationsResponse.d.ts +1 -1
  12. package/dist/Core/ResponseIdentify.d.ts +2 -2
  13. package/dist/CustomSections/GetCustomSectionsRequest.d.ts +1 -1
  14. package/dist/CustomSections/GetCustomSectionsResponse.d.ts +2 -2
  15. package/dist/CustomSections/UICustomSection.d.ts +2 -2
  16. package/dist/GResponse.d.ts +1 -1
  17. package/dist/Inbox/GetInboxMessagesRequest.d.ts +1 -1
  18. package/dist/Inbox/GetInboxMessagesResponse.d.ts +3 -3
  19. package/dist/Inbox/InboxMessage.d.ts +2 -2
  20. package/dist/Inbox/MarkInboxMessageDeletedRequest.d.ts +1 -1
  21. package/dist/Inbox/MarkInboxMessageDeletedResponse.d.ts +1 -1
  22. package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +1 -1
  23. package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +1 -1
  24. package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +1 -1
  25. package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +1 -1
  26. package/dist/Inbox/index.d.ts +8 -8
  27. package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +1 -1
  28. package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +2 -2
  29. package/dist/Jackpots/GetJackpotsRequest.d.ts +1 -1
  30. package/dist/Jackpots/GetJackpotsResponse.d.ts +2 -2
  31. package/dist/Jackpots/JackpotDetails.d.ts +6 -6
  32. package/dist/Jackpots/JackpotWinPush.d.ts +3 -3
  33. package/dist/Jackpots/JackpotsOptinRequest.d.ts +1 -1
  34. package/dist/Jackpots/JackpotsOptinResponse.d.ts +1 -1
  35. package/dist/Jackpots/JackpotsOptoutRequest.d.ts +1 -1
  36. package/dist/Jackpots/JackpotsOptoutResponse.d.ts +1 -1
  37. package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +2 -2
  38. package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +2 -2
  39. package/dist/Leaderboard/LeaderBoardDetails.d.ts +3 -3
  40. package/dist/Leaderboard/LeaderBoards.d.ts +2 -2
  41. package/dist/Leaderboard/index.d.ts +6 -6
  42. package/dist/Level/GetLevelMapResponse.d.ts +3 -3
  43. package/dist/Level/Level.d.ts +1 -1
  44. package/dist/MiniGames/SAWAcknowledgeSpinPushRequest.d.ts +1 -1
  45. package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +1 -1
  46. package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +1 -1
  47. package/dist/MiniGames/SAWDoSpinRequest.d.ts +1 -1
  48. package/dist/MiniGames/SAWDoSpinResponse.d.ts +2 -2
  49. package/dist/MiniGames/SAWEventSawPush.d.ts +1 -1
  50. package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +1 -1
  51. package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +3 -3
  52. package/dist/MiniGames/SAWPrize.d.ts +2 -2
  53. package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +3 -1
  54. package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +1 -1
  55. package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +4 -3
  56. package/dist/MiniGames/SAWPrizeUI.d.ts +2 -2
  57. package/dist/MiniGames/SAWSpinsCountPush.d.ts +1 -1
  58. package/dist/MiniGames/SAWTemplate.d.ts +4 -4
  59. package/dist/MiniGames/SAWTemplateUI.d.ts +1 -1
  60. package/dist/MiniGames/SAWUtils.d.ts +1 -1
  61. package/dist/MiniGames/index.d.ts +24 -22
  62. package/dist/Missions/AchClaimPrizeRequest.d.ts +1 -1
  63. package/dist/Missions/AchClaimPrizeResponse.d.ts +1 -1
  64. package/dist/Missions/AchievementCategory.d.ts +2 -2
  65. package/dist/Missions/AchievementOptinRequest.d.ts +1 -1
  66. package/dist/Missions/AchievementOptinResponse.d.ts +1 -1
  67. package/dist/Missions/GetAchCategoriesRequest.d.ts +1 -1
  68. package/dist/Missions/GetAchCategoriesResponse.d.ts +2 -2
  69. package/dist/Missions/GetAchievementMapRequest.d.ts +1 -1
  70. package/dist/Missions/GetAchievementMapResponse.d.ts +2 -2
  71. package/dist/Missions/GetRelatedAchTourRequest.d.ts +1 -1
  72. package/dist/Missions/GetRelatedAchTourResponse.d.ts +3 -3
  73. package/dist/Missions/ReloadAchievementsEvent.d.ts +2 -2
  74. package/dist/Missions/UserAchievement.d.ts +7 -7
  75. package/dist/Missions/UserAchievementTask.d.ts +2 -2
  76. package/dist/Missions/index.d.ts +13 -13
  77. package/dist/Quiz/MarketsInfo.d.ts +2 -2
  78. package/dist/Quiz/MarketsPerSport.d.ts +1 -1
  79. package/dist/SmarticoAPI.d.ts +8 -8
  80. package/dist/SmarticoLib/index.d.ts +39 -39
  81. package/dist/Store/BuyStoreItemRequest.d.ts +1 -1
  82. package/dist/Store/BuyStoreItemResponse.d.ts +1 -1
  83. package/dist/Store/GetCategoriesStoreResponse.d.ts +2 -2
  84. package/dist/Store/GetStoreHistoryRequest.d.ts +1 -1
  85. package/dist/Store/GetStoreHistoryResponse.d.ts +2 -2
  86. package/dist/Store/GetStoreItemsResponse.d.ts +2 -2
  87. package/dist/Store/StoreCategory.d.ts +2 -2
  88. package/dist/Store/StoreItem.d.ts +3 -3
  89. package/dist/Store/StoreItemPurchased.d.ts +2 -2
  90. package/dist/Store/index.d.ts +10 -10
  91. package/dist/Tournaments/GetTournamentInfoRequest.d.ts +1 -1
  92. package/dist/Tournaments/GetTournamentInfoResponse.d.ts +5 -5
  93. package/dist/Tournaments/GetTournamentsRequest.d.ts +1 -1
  94. package/dist/Tournaments/GetTournamentsResponse.d.ts +2 -2
  95. package/dist/Tournaments/Tournament.d.ts +8 -8
  96. package/dist/Tournaments/TournamentPrize.d.ts +1 -1
  97. package/dist/Tournaments/TournamentRegisterRequest.d.ts +1 -1
  98. package/dist/Tournaments/TournamentRegisterResponse.d.ts +2 -2
  99. package/dist/Tournaments/TournamentUtils.d.ts +3 -3
  100. package/dist/Tournaments/index.d.ts +16 -16
  101. package/dist/WSAPI/WSAPI.d.ts +65 -65
  102. package/dist/WSAPI/WSAPITypes.d.ts +18 -18
  103. package/dist/index.js +76 -78
  104. package/dist/index.js.map +1 -1
  105. package/dist/index.modern.mjs +103 -103
  106. package/dist/index.modern.mjs.map +1 -1
  107. package/package.json +1 -1
  108. package/src/Base/AchRelatedGame.ts +13 -13
  109. package/src/Base/ClassId.ts +118 -121
  110. package/src/Base/ProtocolMessage.ts +6 -7
  111. package/src/Base/ProtocolRequest.ts +4 -5
  112. package/src/Base/ProtocolResponse.ts +3 -5
  113. package/src/CookieStore.ts +10 -11
  114. package/src/Core/ActivityTypeLimited.ts +17 -18
  115. package/src/Core/CheckSegmentMatchRequest.ts +2 -3
  116. package/src/Core/CheckSegmentMatchResponse.ts +6 -6
  117. package/src/Core/CoreUtils.ts +37 -39
  118. package/src/Core/GetAchievementsUserInfoRequest.ts +2 -4
  119. package/src/Core/GetAchievementsUserInfoResponse.ts +4 -4
  120. package/src/Core/GetLabelInfoRequest.ts +2 -4
  121. package/src/Core/GetLabelInfoResponse.ts +4 -4
  122. package/src/Core/GetTranslationsRequest.ts +5 -7
  123. package/src/Core/GetTranslationsResponse.ts +3 -5
  124. package/src/Core/PublicLabelSettings.ts +29 -30
  125. package/src/Core/PublicProperties.ts +7 -7
  126. package/src/Core/ResponseIdentify.ts +12 -12
  127. package/src/Core/TranslationArea.ts +8 -9
  128. package/src/Core/index.ts +1 -1
  129. package/src/CustomSections/AchCustomSection.ts +20 -20
  130. package/src/CustomSections/GetCustomSectionsRequest.ts +2 -4
  131. package/src/CustomSections/GetCustomSectionsResponse.ts +4 -5
  132. package/src/CustomSections/UICustomSection.ts +30 -29
  133. package/src/CustomSections/index.ts +4 -4
  134. package/src/ErrorCodes.ts +11 -12
  135. package/src/GResponse.ts +5 -5
  136. package/src/ILogger.ts +6 -10
  137. package/src/Inbox/GetInboxMessagesRequest.ts +4 -5
  138. package/src/Inbox/GetInboxMessagesResponse.ts +15 -17
  139. package/src/Inbox/InboxMessage.ts +31 -33
  140. package/src/Inbox/InboxMessageType.ts +9 -9
  141. package/src/Inbox/MarkInboxMessageDeletedRequest.ts +3 -3
  142. package/src/Inbox/MarkInboxMessageDeletedResponse.ts +3 -3
  143. package/src/Inbox/MarkInboxMessageReadRequest.ts +4 -5
  144. package/src/Inbox/MarkInboxMessageReadResponse.ts +4 -5
  145. package/src/Inbox/MarkInboxMessageStarredRequest.ts +4 -5
  146. package/src/Inbox/MarkInboxMessageStarredResponse.ts +4 -5
  147. package/src/Inbox/index.ts +10 -10
  148. package/src/IntUtils.ts +72 -85
  149. package/src/Jackpots/GetJackpotsPotsRequest.ts +3 -3
  150. package/src/Jackpots/GetJackpotsPotsResponse.ts +3 -5
  151. package/src/Jackpots/GetJackpotsRequest.ts +4 -6
  152. package/src/Jackpots/GetJackpotsResponse.ts +5 -7
  153. package/src/Jackpots/JackPotWinner.ts +11 -12
  154. package/src/Jackpots/JackpotContributionType.ts +3 -4
  155. package/src/Jackpots/JackpotDetails.ts +31 -31
  156. package/src/Jackpots/JackpotHtmlTemplate.ts +3 -3
  157. package/src/Jackpots/JackpotPot.ts +11 -12
  158. package/src/Jackpots/JackpotPublicMeta.ts +16 -16
  159. package/src/Jackpots/JackpotType.ts +2 -5
  160. package/src/Jackpots/JackpotWinPush.ts +6 -6
  161. package/src/Jackpots/JackpotsOptinRequest.ts +3 -5
  162. package/src/Jackpots/JackpotsOptinResponse.ts +2 -4
  163. package/src/Jackpots/JackpotsOptoutRequest.ts +3 -5
  164. package/src/Jackpots/JackpotsOptoutResponse.ts +2 -4
  165. package/src/Jackpots/index.ts +16 -16
  166. package/src/Leaderboard/GetLeaderBoardsRequest.ts +8 -9
  167. package/src/Leaderboard/GetLeaderBoardsResponse.ts +4 -6
  168. package/src/Leaderboard/LeaderBoardDetails.ts +11 -12
  169. package/src/Leaderboard/LeaderBoardPeriodType.ts +3 -3
  170. package/src/Leaderboard/LeaderBoardPosition.ts +9 -10
  171. package/src/Leaderboard/LeaderBoardPublicMeta.ts +3 -4
  172. package/src/Leaderboard/LeaderBoards.ts +42 -42
  173. package/src/Leaderboard/index.ts +6 -6
  174. package/src/Level/GetLevelMapResponse.ts +18 -21
  175. package/src/Level/Level.ts +10 -11
  176. package/src/Level/LevelPublicMeta.ts +17 -17
  177. package/src/Level/index.ts +3 -3
  178. package/src/MiniGames/SAWAcknowledgeSpinPushRequest.ts +3 -4
  179. package/src/MiniGames/SAWAcknowledgeType.ts +3 -4
  180. package/src/MiniGames/SAWAskForUsername.ts +3 -4
  181. package/src/MiniGames/SAWBuyInType.ts +15 -13
  182. package/src/MiniGames/SAWDoAknowledgeRequest.ts +3 -3
  183. package/src/MiniGames/SAWDoAknowledgeResponse.ts +3 -3
  184. package/src/MiniGames/SAWDoSpinRequest.ts +3 -5
  185. package/src/MiniGames/SAWDoSpinResponse.ts +10 -11
  186. package/src/MiniGames/SAWEventSawPush.ts +3 -4
  187. package/src/MiniGames/SAWGameType.ts +23 -21
  188. package/src/MiniGames/SAWGetTemplatesRequest.ts +3 -3
  189. package/src/MiniGames/SAWGetTemplatesResponse.ts +53 -65
  190. package/src/MiniGames/SAWPrize.ts +11 -12
  191. package/src/MiniGames/SAWPrizeDropAknowledgeRequest.ts +5 -3
  192. package/src/MiniGames/SAWPrizeDropAknowledgeResponse.ts +3 -3
  193. package/src/MiniGames/SAWPrizeDropWinPush.ts +9 -8
  194. package/src/MiniGames/SAWPrizeType.ts +23 -22
  195. package/src/MiniGames/SAWPrizeUI.ts +17 -17
  196. package/src/MiniGames/SAWSpinErrorCode.ts +15 -16
  197. package/src/MiniGames/SAWSpinsCountPush.ts +4 -4
  198. package/src/MiniGames/SAWTemplate.ts +29 -29
  199. package/src/MiniGames/SAWTemplateUI.ts +45 -47
  200. package/src/MiniGames/SAWUtils.ts +23 -26
  201. package/src/MiniGames/SAWWinSoundType.ts +10 -11
  202. package/src/MiniGames/index.ts +24 -22
  203. package/src/Missions/AchCategoryPublicMeta.ts +2 -3
  204. package/src/Missions/AchClaimPrizeRequest.ts +4 -5
  205. package/src/Missions/AchClaimPrizeResponse.ts +3 -4
  206. package/src/Missions/AchievementCategory.ts +14 -15
  207. package/src/Missions/AchievementOptinRequest.ts +3 -5
  208. package/src/Missions/AchievementOptinResponse.ts +2 -4
  209. package/src/Missions/AchievementPublicMeta.ts +19 -20
  210. package/src/Missions/AchievementStatus.ts +7 -8
  211. package/src/Missions/AchievementTaskPublicMeta.ts +2 -3
  212. package/src/Missions/AchievementTaskType.ts +2 -2
  213. package/src/Missions/AchievementType.ts +2 -3
  214. package/src/Missions/GetAchCategoriesRequest.ts +2 -4
  215. package/src/Missions/GetAchCategoriesResponse.ts +4 -5
  216. package/src/Missions/GetAchievementMapRequest.ts +2 -4
  217. package/src/Missions/GetAchievementMapResponse.ts +3 -5
  218. package/src/Missions/GetRelatedAchTourRequest.ts +3 -4
  219. package/src/Missions/GetRelatedAchTourResponse.ts +5 -7
  220. package/src/Missions/ReloadAchievementsEvent.ts +5 -5
  221. package/src/Missions/ScheduledMissionType.ts +4 -5
  222. package/src/Missions/UserAchievement.ts +104 -108
  223. package/src/Missions/UserAchievementTask.ts +13 -15
  224. package/src/Missions/index.ts +19 -19
  225. package/src/NodeCache.ts +44 -49
  226. package/src/OCache.ts +51 -57
  227. package/src/Quiz/MarketsAnswers.ts +34 -34
  228. package/src/Quiz/MarketsInfo.ts +184 -177
  229. package/src/Quiz/MarketsPerSport.ts +30 -37
  230. package/src/Quiz/MarketsType.ts +28 -28
  231. package/src/Quiz/ScoreResultTypes.ts +18 -18
  232. package/src/Quiz/SportTypes.ts +4 -4
  233. package/src/Quiz/index.ts +6 -6
  234. package/src/SmarticoAPI.ts +769 -730
  235. package/src/SmarticoLib/index.ts +1053 -1069
  236. package/src/Store/BuyStoreItemErrorCode.ts +10 -10
  237. package/src/Store/BuyStoreItemRequest.ts +2 -2
  238. package/src/Store/BuyStoreItemResponse.ts +2 -3
  239. package/src/Store/GetCategoriesStoreResponse.ts +3 -8
  240. package/src/Store/GetStoreHistoryRequest.ts +3 -3
  241. package/src/Store/GetStoreHistoryResponse.ts +4 -4
  242. package/src/Store/GetStoreItemsResponse.ts +3 -4
  243. package/src/Store/StoreCategory.ts +14 -15
  244. package/src/Store/StoreCategoryPublicMeta.ts +2 -3
  245. package/src/Store/StoreItem.ts +32 -33
  246. package/src/Store/StoreItemPublicMeta.ts +10 -10
  247. package/src/Store/StoreItemPurchased.ts +40 -40
  248. package/src/Store/StoreItemType.ts +20 -19
  249. package/src/Store/index.ts +13 -13
  250. package/src/Tournaments/GetTournamentInfoRequest.ts +2 -3
  251. package/src/Tournaments/GetTournamentInfoResponse.ts +45 -48
  252. package/src/Tournaments/GetTournamentsRequest.ts +2 -4
  253. package/src/Tournaments/GetTournamentsResponse.ts +7 -14
  254. package/src/Tournaments/Tournament.ts +109 -115
  255. package/src/Tournaments/TournamentInstanceStatus.ts +17 -18
  256. package/src/Tournaments/TournamentPlayer.ts +7 -8
  257. package/src/Tournaments/TournamentPrize.ts +9 -10
  258. package/src/Tournaments/TournamentPublicMeta.ts +26 -26
  259. package/src/Tournaments/TournamentRegisterRequest.ts +2 -3
  260. package/src/Tournaments/TournamentRegisterResponse.ts +3 -7
  261. package/src/Tournaments/TournamentRegistrationError.ts +9 -9
  262. package/src/Tournaments/TournamentRegistrationStatus.ts +25 -27
  263. package/src/Tournaments/TournamentRegistrationType.ts +15 -16
  264. package/src/Tournaments/TournamentType.ts +3 -4
  265. package/src/Tournaments/TournamentUtils.ts +90 -89
  266. package/src/Tournaments/index.ts +16 -16
  267. package/src/WSAPI/WSAPI.ts +781 -763
  268. package/src/WSAPI/WSAPITypes.ts +574 -586
  269. package/src/index.ts +15 -15
@@ -1,33 +1,32 @@
1
-
2
1
  export enum PublicLabelSettings {
3
- PUBLIC_API_URL = "PUBLIC_API_URL",
4
- RECORDING_ENABLED_FOR_ALL_USERS = "RECORDING_ENABLED_FOR_ALL_USERS",
5
- JS_INJECTION = "JS_INJECTION",
6
- GAMIFICATION_UI_MAIN = "GAMIFICATION_UI_MAIN",
7
- GAMIFICATION_UI_WIDGET = "GAMIFICATION_UI_WIDGET",
8
- GAMIFICATION_UI_MINI_GAME = "GAMIFICATION_UI_MINI_GAME",
9
- GAMIFICATION_UI_SETTINGS = "GAMIFICATION_UI_SETTINGS",
10
- GAMIFICATION_UI_MAIN_TEST = "GAMIFICATION_UI_MAIN_TEST",
11
- GAMIFICATION_UI_WIDGET_TEST = "GAMIFICATION_UI_WIDGET_TEST",
12
- GAMIFICATION_UI_SETTINGS_TEST = "GAMIFICATION_UI_SETTINGS_TEST",
13
- FRONT_END_ALLOWED_LANGUAGES = "FRONT_END_ALLOWED_LANGUAGES",
14
- FRONT_END_ALLOW_DOMAINS = "FRONT_END_ALLOW_DOMAINS",
15
- DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS = "DELAY_ENGAGEMENT_EXECUTION_ON_LOGIN_MS",
16
- SHADOW_LABEL_PUBLIC_KEY = "SHADOW_LABEL_PUBLIC_KEY",
17
- DYNAMIC_IMAGE_DOMAIN = "DYNAMIC_IMAGE_DOMAIN",
18
-
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
-
23
- GAMIFICATION_LEVELS_LOGIC2 = "GAMIFICATION_LEVELS_LOGIC2",
24
- GAMIFICATION_LEVELS_LOGIC3 = "GAMIFICATION_LEVELS_LOGIC2",
25
-
26
- AVATAR_CUSTOM_IMAGE_MAX_ID = "AVATAR_CUSTOM_IMAGE_MAX_ID",
27
- AVATAR_CUSTOM_IMAGE_FOLDER = "AVATAR_CUSTOM_IMAGE_FOLDER",
28
-
29
- GAMIFICATION_SHOW_POWERED_BY = "GAMIFICATION_SHOW_POWERED_BY",
30
- _system_leader_board_mask_username = "_system_leader_board_mask_username",
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
- INBOX_PUBLIC_CDN = "INBOX_PUBLIC_CDN",
31
+ INBOX_PUBLIC_CDN = 'INBOX_PUBLIC_CDN',
33
32
  }
@@ -1,9 +1,9 @@
1
1
  export interface PublicProperties {
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;
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 "../Base/ProtocolResponse";
2
- import { PublicProperties } from "./PublicProperties";
1
+ import { ProtocolResponse } from '../Base/ProtocolResponse'
2
+ import { PublicProperties } from './PublicProperties'
3
3
 
4
4
  interface ResponseIdentify extends ProtocolResponse {
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 }
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
- Casino = 1,
4
- Gamification = 2,
5
- Trading = 3,
6
- Archived = 4,
7
- Affiliation = 5,
8
- RetentionGames = 6,
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
@@ -6,4 +6,4 @@ export * from './GetTranslationsRequest'
6
6
  export * from './GetTranslationsResponse'
7
7
  export * from './PublicLabelSettings'
8
8
  export * from './ResponseIdentify'
9
- export * from './TranslationArea'
9
+ export * from './TranslationArea'
@@ -1,30 +1,30 @@
1
1
  export enum AchCustomSectionType {
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,
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
- VALENTINES_LIGHT = 'valentines-light',
13
- VALENTINES_DARK = 'valentines-dark',
14
- EURO_2024 = 'euro-2024',
15
- GENERIC = 'generic',
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
- ONLY_OVERVIEW = 1,
20
- NO_OVERVIEW = 2,
21
- ALL = 3,
19
+ ONLY_OVERVIEW = 1,
20
+ NO_OVERVIEW = 2,
21
+ ALL = 3,
22
22
  }
23
23
 
24
24
  export enum AchOverviewMissionsFilter {
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
- }
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,5 +1,3 @@
1
- import { ProtocolMessage } from "../Base/ProtocolMessage";
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage'
2
2
 
3
- export interface GetCustomSectionsRequest extends ProtocolMessage {
4
-
5
- }
3
+ export interface GetCustomSectionsRequest extends ProtocolMessage {}
@@ -1,7 +1,6 @@
1
- import { ProtocolResponse } from "../Base/ProtocolResponse";
2
- import { UICustomSection } from "./UICustomSection";
1
+ import { ProtocolResponse } from '../Base/ProtocolResponse'
2
+ import { UICustomSection } from './UICustomSection'
3
3
 
4
4
  export interface GetCustomSectionsResponse extends ProtocolResponse {
5
-
6
- customSections: {[key: string]: UICustomSection};
7
- }
5
+ customSections: { [key: string]: UICustomSection }
6
+ }
@@ -1,34 +1,35 @@
1
- import { TUICustomSection } from "../WSAPI/WSAPITypes";
2
- import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from "./AchCustomSection";
1
+ import { TUICustomSection } from '../WSAPI/WSAPITypes'
2
+ import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from './AchCustomSection'
3
3
 
4
4
  export interface UICustomSection {
5
-
6
- body?: string;
7
- menu_img?: string;
8
- menu_name?: string;
9
- custom_skin_images?: string;
10
- section_type_id?: AchCustomSectionType;
11
- theme?: AchCustomLayoutTheme;
12
- generic_custom_css?: string;
13
- mission_tabs_options?: AchMissionsTabsOptions;
14
- overview_missions_filter?: AchOverviewMissionsFilter;
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
- return items.filter(r => r.section_type_id !== undefined && r.section_type_id >= 1).map( r => {
20
- const x: TUICustomSection = {
21
- body: r.body,
22
- menu_img: r.menu_img,
23
- menu_name: r.menu_name,
24
- section_type_id: r.section_type_id,
25
- custom_skin_images: r.custom_skin_images,
26
- generic_custom_css: r.generic_custom_css,
27
- mission_tabs_options: r.mission_tabs_options,
28
- overview_missions_count: r.overview_missions_count,
29
- overview_missions_filter: r.overview_missions_filter,
30
- theme: r.theme
31
- }
32
- return x;
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
- OK = 0,
5
- NoBetsUpdatedOnSubmit = 3,
6
- RepeatRequest_Unhandled = 4,
4
+ OK = 0,
5
+ NoBetsUpdatedOnSubmit = 3,
6
+ RepeatRequest_Unhandled = 4,
7
7
 
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,
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 "./ErrorCodes";
1
+ import { ErrorCodes } from './ErrorCodes'
2
2
 
3
3
  interface GResponseBase {
4
- errCode: ErrorCodes;
5
- errMessage?: string;
4
+ errCode: ErrorCodes
5
+ errMessage?: string
6
6
  }
7
7
 
8
8
  interface GResponse<T> extends GResponseBase {
9
- data?: T;
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
- debug(...any: any[]): void;
6
- error(...any: any[]): void;
7
- info(...any: any[]): void;
8
- warn(...any: any[]): void;
9
- always(...any: any[]): void;
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 "../Base/ProtocolMessage";
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage'
2
2
 
3
3
  export interface GetInboxMessagesRequest extends ProtocolMessage {
4
-
5
- limit?: number;
6
- offset?: number;
7
- starred_only?: boolean;
4
+ limit?: number
5
+ offset?: number
6
+ starred_only?: boolean
8
7
  }
@@ -1,21 +1,19 @@
1
- import { TInboxMessage } from "../WSAPI/WSAPITypes";
2
- import { ProtocolResponse } from "../Base/ProtocolResponse";
3
- import { InboxMessage } from "./InboxMessage";
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 = ((items: InboxMessage[]): TInboxMessage[] => {
11
-
12
- return items.map(item => {
13
- const x: TInboxMessage = {
14
- sent_date: item.createDate,
15
- message_guid: item.engagement_uid,
16
- read: item.is_read,
17
- favorite: item.is_starred,
18
- }
19
- return x;
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 "../WSAPI/WSAPITypes";
2
- import { InboxMessageType } from "./InboxMessageType";
1
+ import { TInboxMessageBody } from '../WSAPI/WSAPITypes'
2
+ import { InboxMessageType } from './InboxMessageType'
3
3
 
4
4
  export interface InboxMessageBody {
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 }[];
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
- createDate: string;
17
- body: InboxMessageBody;
18
- engagement_uid: string;
19
- is_read: boolean;
20
- is_starred: boolean;
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
- const x: TInboxMessageBody = {
27
- action: item.action,
28
- icon: item.image,
29
- title: item.title,
30
- preview_body: item.body,
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
- if (item.action === 'dp:inbox') {
34
- if (item.additional_buttons && item.additional_buttons.length) {
35
- x.buttons = item.additional_buttons.map(b => ({
36
- action: b.action,
37
- text: b.inbox_cta_text
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
- x.html_body = item?.html_body || null;
42
- }
39
+ x.html_body = item?.html_body || null
40
+ }
43
41
 
44
- return x;
42
+ return x
45
43
  }
@@ -1,13 +1,13 @@
1
1
  export 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
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 "../Base/ProtocolMessage";
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage'
2
2
 
3
3
  export interface MarkInboxMessageDeletedRequest extends ProtocolMessage {
4
- engagement_uid?: string;
5
- all_deleted?: boolean;
4
+ engagement_uid?: string
5
+ all_deleted?: boolean
6
6
  }
@@ -1,6 +1,6 @@
1
- import { ProtocolMessage } from "../Base/ProtocolMessage";
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage'
2
2
 
3
3
  export interface MarkInboxMessageDeletedResponse extends ProtocolMessage {
4
- errCode: number;
5
- errMsg?: string;
4
+ errCode: number
5
+ errMsg?: string
6
6
  }
@@ -1,7 +1,6 @@
1
- import { ProtocolMessage } from "../Base/ProtocolMessage";
2
-
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage'
3
2
 
4
3
  export interface MarkInboxMessageReadRequest extends ProtocolMessage {
5
- engagement_uid?: string;
6
- all_read?: boolean;
7
- }
4
+ engagement_uid?: string
5
+ all_read?: boolean
6
+ }
@@ -1,7 +1,6 @@
1
- import { ProtocolMessage } from "../Base/ProtocolMessage";
2
-
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage'
3
2
 
4
3
  export interface MarkInboxMessageReadResponse extends ProtocolMessage {
5
- errCode: number;
6
- errMsg?: string;
7
- }
4
+ errCode: number
5
+ errMsg?: string
6
+ }
@@ -1,7 +1,6 @@
1
- import { ProtocolMessage } from "../Base/ProtocolMessage";
2
-
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage'
3
2
 
4
3
  export interface MarkInboxMessageStarredRequest extends ProtocolMessage {
5
- engagement_uid: string;
6
- is_starred?: boolean;
7
- }
4
+ engagement_uid: string
5
+ is_starred?: boolean
6
+ }
@@ -1,7 +1,6 @@
1
- import { ProtocolMessage } from "../Base/ProtocolMessage";
2
-
1
+ import { ProtocolMessage } from '../Base/ProtocolMessage'
3
2
 
4
3
  export interface MarkInboxMessageStarredResponse extends ProtocolMessage {
5
- errCode: number;
6
- errMsg?: string;
7
- }
4
+ errCode: number
5
+ errMsg?: string
6
+ }
@@ -1,10 +1,10 @@
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';
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'