@smartico/public-api 0.0.149 → 0.0.151

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 (168) hide show
  1. package/README.md +3 -1
  2. package/dist/Base/AchRelatedGame.d.ts +13 -13
  3. package/dist/Base/ClassId.d.ts +97 -97
  4. package/dist/Base/ProtocolMessage.d.ts +5 -5
  5. package/dist/Base/ProtocolRequest.d.ts +6 -6
  6. package/dist/Base/ProtocolResponse.d.ts +5 -5
  7. package/dist/CookieStore.d.ts +6 -6
  8. package/dist/Core/ActivityTypeLimited.d.ts +18 -18
  9. package/dist/Core/CheckSegmentMatchRequest.d.ts +4 -4
  10. package/dist/Core/CheckSegmentMatchResponse.d.ts +7 -7
  11. package/dist/Core/CoreUtils.d.ts +5 -5
  12. package/dist/Core/GetAchievementsUserInfoRequest.d.ts +3 -3
  13. package/dist/Core/GetAchievementsUserInfoResponse.d.ts +5 -5
  14. package/dist/Core/GetLabelInfoRequest.d.ts +3 -3
  15. package/dist/Core/GetLabelInfoResponse.d.ts +7 -7
  16. package/dist/Core/GetTranslationsRequest.d.ts +7 -7
  17. package/dist/Core/GetTranslationsResponse.d.ts +7 -7
  18. package/dist/Core/PublicLabelSettings.d.ts +27 -27
  19. package/dist/Core/PublicProperties.d.ts +9 -9
  20. package/dist/Core/ResponseIdentify.d.ts +12 -12
  21. package/dist/Core/TranslationArea.d.ts +10 -10
  22. package/dist/Core/index.d.ts +9 -9
  23. package/dist/CustomSections/AchCustomSection.d.ts +27 -27
  24. package/dist/CustomSections/GetCustomSectionsRequest.d.ts +3 -3
  25. package/dist/CustomSections/GetCustomSectionsResponse.d.ts +7 -7
  26. package/dist/CustomSections/UICustomSection.d.ts +15 -15
  27. package/dist/CustomSections/index.d.ts +4 -4
  28. package/dist/ErrorCodes.d.ts +12 -12
  29. package/dist/GResponse.d.ts +9 -9
  30. package/dist/ILogger.d.ts +7 -7
  31. package/dist/Inbox/GetInboxMessagesRequest.d.ts +6 -6
  32. package/dist/Inbox/GetInboxMessagesResponse.d.ts +7 -7
  33. package/dist/Inbox/InboxMessage.d.ts +23 -23
  34. package/dist/Inbox/InboxMessageType.d.ts +11 -11
  35. package/dist/Inbox/MarkInboxMessageDeletedRequest.d.ts +5 -5
  36. package/dist/Inbox/MarkInboxMessageDeletedResponse.d.ts +5 -5
  37. package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +5 -5
  38. package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +5 -5
  39. package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +5 -5
  40. package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +5 -5
  41. package/dist/Inbox/index.d.ts +10 -10
  42. package/dist/IntUtils.d.ts +10 -10
  43. package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +4 -4
  44. package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +5 -5
  45. package/dist/Jackpots/GetJackpotsRequest.d.ts +5 -5
  46. package/dist/Jackpots/GetJackpotsResponse.d.ts +5 -5
  47. package/dist/Jackpots/JackPotWinner.d.ts +13 -13
  48. package/dist/Jackpots/JackpotContributionType.d.ts +5 -5
  49. package/dist/Jackpots/JackpotDetails.d.ts +37 -35
  50. package/dist/Jackpots/JackpotHtmlTemplate.d.ts +5 -5
  51. package/dist/Jackpots/JackpotPot.d.ts +13 -13
  52. package/dist/Jackpots/JackpotPublicMeta.d.ts +18 -18
  53. package/dist/Jackpots/JackpotType.d.ts +4 -4
  54. package/dist/Jackpots/JackpotWinPush.d.ts +7 -7
  55. package/dist/Jackpots/JackpotsOptinRequest.d.ts +4 -4
  56. package/dist/Jackpots/JackpotsOptinResponse.d.ts +3 -3
  57. package/dist/Jackpots/JackpotsOptoutRequest.d.ts +4 -4
  58. package/dist/Jackpots/JackpotsOptoutResponse.d.ts +3 -3
  59. package/dist/Jackpots/index.d.ts +16 -16
  60. package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +7 -7
  61. package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +7 -7
  62. package/dist/Leaderboard/LeaderBoardDetails.d.ts +13 -13
  63. package/dist/Leaderboard/LeaderBoardPeriodType.d.ts +5 -5
  64. package/dist/Leaderboard/LeaderBoardPosition.d.ts +10 -10
  65. package/dist/Leaderboard/LeaderBoardPublicMeta.d.ts +5 -5
  66. package/dist/Leaderboard/LeaderBoards.d.ts +3 -3
  67. package/dist/Leaderboard/index.d.ts +6 -6
  68. package/dist/Level/GetLevelMapResponse.d.ts +7 -7
  69. package/dist/Level/Level.d.ts +12 -12
  70. package/dist/Level/LevelPublicMeta.d.ts +19 -19
  71. package/dist/Level/index.d.ts +3 -3
  72. package/dist/MiniGames/SAWAcknowledgeType.d.ts +5 -5
  73. package/dist/MiniGames/SAWAskForUsername.d.ts +4 -4
  74. package/dist/MiniGames/SAWBuyInType.d.ts +14 -14
  75. package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +4 -4
  76. package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +4 -4
  77. package/dist/MiniGames/SAWDoSpinRequest.d.ts +5 -5
  78. package/dist/MiniGames/SAWDoSpinResponse.d.ts +11 -11
  79. package/dist/MiniGames/SAWGameType.d.ts +20 -20
  80. package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +5 -5
  81. package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +7 -7
  82. package/dist/MiniGames/SAWPrize.d.ts +13 -13
  83. package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +4 -4
  84. package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +4 -4
  85. package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +9 -9
  86. package/dist/MiniGames/SAWPrizeType.d.ts +20 -20
  87. package/dist/MiniGames/SAWPrizeUI.d.ts +18 -18
  88. package/dist/MiniGames/SAWSpinErrorCode.d.ts +14 -14
  89. package/dist/MiniGames/SAWSpinsCountPush.d.ts +5 -5
  90. package/dist/MiniGames/SAWTemplate.d.ts +29 -29
  91. package/dist/MiniGames/SAWTemplateUI.d.ts +45 -45
  92. package/dist/MiniGames/SAWUtils.d.ts +5 -5
  93. package/dist/MiniGames/SAWWinSoundType.d.ts +13 -13
  94. package/dist/MiniGames/index.d.ts +20 -20
  95. package/dist/Missions/AchCategoryPublicMeta.d.ts +4 -4
  96. package/dist/Missions/AchClaimPrizeRequest.d.ts +5 -5
  97. package/dist/Missions/AchClaimPrizeResponse.d.ts +3 -3
  98. package/dist/Missions/AchievementCategory.d.ts +7 -7
  99. package/dist/Missions/AchievementOptinRequest.d.ts +4 -4
  100. package/dist/Missions/AchievementOptinResponse.d.ts +3 -3
  101. package/dist/Missions/AchievementPublicMeta.d.ts +21 -21
  102. package/dist/Missions/AchievementStatus.d.ts +9 -9
  103. package/dist/Missions/AchievementTaskPublicMeta.d.ts +3 -3
  104. package/dist/Missions/AchievementTaskType.d.ts +4 -4
  105. package/dist/Missions/AchievementType.d.ts +4 -4
  106. package/dist/Missions/GetAchCategoriesRequest.d.ts +3 -3
  107. package/dist/Missions/GetAchCategoriesResponse.d.ts +5 -5
  108. package/dist/Missions/GetAchievementMapRequest.d.ts +3 -3
  109. package/dist/Missions/GetAchievementMapResponse.d.ts +5 -5
  110. package/dist/Missions/ReloadAchievementsEvent.d.ts +3 -3
  111. package/dist/Missions/ScheduledMissionType.d.ts +5 -5
  112. package/dist/Missions/UserAchievement.d.ts +39 -39
  113. package/dist/Missions/UserAchievementTask.d.ts +15 -15
  114. package/dist/Missions/index.d.ts +19 -19
  115. package/dist/NodeCache.d.ts +10 -10
  116. package/dist/OCache.d.ts +15 -15
  117. package/dist/Quiz/MarketsAnswers.d.ts +38 -38
  118. package/dist/Quiz/MarketsInfo.d.ts +14 -14
  119. package/dist/Quiz/MarketsPerSport.d.ts +6 -6
  120. package/dist/Quiz/MarketsType.d.ts +29 -29
  121. package/dist/Quiz/ScoreResultTypes.d.ts +28 -28
  122. package/dist/Quiz/SportTypes.d.ts +6 -6
  123. package/dist/Quiz/index.d.ts +6 -6
  124. package/dist/SmarticoAPI.d.ts +119 -119
  125. package/dist/SmarticoLib/index.d.ts +2013 -2013
  126. package/dist/Store/BuyStoreItemErrorCode.d.ts +11 -11
  127. package/dist/Store/BuyStoreItemRequest.d.ts +4 -4
  128. package/dist/Store/BuyStoreItemResponse.d.ts +4 -4
  129. package/dist/Store/GetCategoriesStoreResponse.d.ts +5 -5
  130. package/dist/Store/GetStoreHistoryRequest.d.ts +5 -5
  131. package/dist/Store/GetStoreHistoryResponse.d.ts +6 -6
  132. package/dist/Store/GetStoreItemsResponse.d.ts +5 -5
  133. package/dist/Store/StoreCategory.d.ts +7 -7
  134. package/dist/Store/StoreCategoryPublicMeta.d.ts +4 -4
  135. package/dist/Store/StoreItem.d.ts +12 -12
  136. package/dist/Store/StoreItemPublicMeta.d.ts +12 -12
  137. package/dist/Store/StoreItemPurchased.d.ts +11 -11
  138. package/dist/Store/StoreItemType.d.ts +16 -16
  139. package/dist/Store/index.d.ts +13 -13
  140. package/dist/Tournaments/GetTournamentInfoRequest.d.ts +4 -4
  141. package/dist/Tournaments/GetTournamentInfoResponse.d.ts +22 -22
  142. package/dist/Tournaments/GetTournamentsRequest.d.ts +3 -3
  143. package/dist/Tournaments/GetTournamentsResponse.d.ts +6 -6
  144. package/dist/Tournaments/Tournament.d.ts +59 -59
  145. package/dist/Tournaments/TournamentInstanceStatus.d.ts +10 -10
  146. package/dist/Tournaments/TournamentPlayer.d.ts +9 -9
  147. package/dist/Tournaments/TournamentPrize.d.ts +10 -10
  148. package/dist/Tournaments/TournamentPublicMeta.d.ts +27 -27
  149. package/dist/Tournaments/TournamentRegisterRequest.d.ts +4 -4
  150. package/dist/Tournaments/TournamentRegisterResponse.d.ts +5 -5
  151. package/dist/Tournaments/TournamentRegistrationError.d.ts +11 -11
  152. package/dist/Tournaments/TournamentRegistrationStatus.d.ts +22 -22
  153. package/dist/Tournaments/TournamentRegistrationType.d.ts +11 -11
  154. package/dist/Tournaments/TournamentType.d.ts +5 -5
  155. package/dist/Tournaments/TournamentUtils.d.ts +27 -27
  156. package/dist/Tournaments/index.d.ts +16 -16
  157. package/dist/WSAPI/WSAPI.d.ts +445 -445
  158. package/dist/WSAPI/WSAPITypes.d.ts +621 -621
  159. package/dist/index.d.ts +15 -15
  160. package/dist/index.js +373 -366
  161. package/dist/index.js.map +1 -1
  162. package/dist/index.modern.mjs +381 -375
  163. package/dist/index.modern.mjs.map +1 -1
  164. package/docs/interfaces/JackpotDetails.md +8 -0
  165. package/docs/interfaces/TMissionOrBadgeTask.md +16 -0
  166. package/package.json +1 -1
  167. package/src/Core/CoreUtils.ts +9 -9
  168. package/src/Jackpots/JackpotDetails.ts +2 -0
package/dist/index.js CHANGED
@@ -16,9 +16,9 @@ exports.ClassId = void 0;
16
16
  ClassId[ClassId["LOGOUT_RESPONSE"] = 12] = "LOGOUT_RESPONSE";
17
17
  ClassId[ClassId["GET_TRANSLATIONS_REQUEST"] = 13] = "GET_TRANSLATIONS_REQUEST";
18
18
  ClassId[ClassId["GET_TRANSLATIONS_RESPONSE"] = 14] = "GET_TRANSLATIONS_RESPONSE";
19
- /*
20
- !Important, if adding new messages that are 'acting' on behalf of the client,
21
- you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
19
+ /*
20
+ !Important, if adding new messages that are 'acting' on behalf of the client,
21
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
22
22
  */
23
23
  ClassId[ClassId["CLIENT_ENGAGEMENT_IMPRESSION_REQUEST"] = 103] = "CLIENT_ENGAGEMENT_IMPRESSION_REQUEST";
24
24
  ClassId[ClassId["CLIENT_ENGAGEMENT_ACTION_REQUEST"] = 104] = "CLIENT_ENGAGEMENT_ACTION_REQUEST";
@@ -34,9 +34,9 @@ exports.ClassId = void 0;
34
34
  ClassId[ClassId["CLIENT_SET_CUSTOM_USERNAME_RESPONSE"] = 160] = "CLIENT_SET_CUSTOM_USERNAME_RESPONSE";
35
35
  ClassId[ClassId["CHECK_SEGMENT_MATCH_REQUEST"] = 161] = "CHECK_SEGMENT_MATCH_REQUEST";
36
36
  ClassId[ClassId["CHECK_SEGMENT_MATCH_RESPONSE"] = 162] = "CHECK_SEGMENT_MATCH_RESPONSE";
37
- /*
38
- !Important, if adding new messages that are 'acting' on behalf of the client,
39
- you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
37
+ /*
38
+ !Important, if adding new messages that are 'acting' on behalf of the client,
39
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
40
40
  */
41
41
  // 500-1000 - Achievements
42
42
  ClassId[ClassId["GET_LEVEL_MAP_REQUEST"] = 500] = "GET_LEVEL_MAP_REQUEST";
@@ -64,9 +64,9 @@ exports.ClassId = void 0;
64
64
  ClassId[ClassId["GET_CUSTOM_SECTIONS_RESPONSE"] = 524] = "GET_CUSTOM_SECTIONS_RESPONSE";
65
65
  ClassId[ClassId["MISSION_OPTIN_REQUEST"] = 525] = "MISSION_OPTIN_REQUEST";
66
66
  ClassId[ClassId["MISSION_OPTIN_RESPONSE"] = 526] = "MISSION_OPTIN_RESPONSE";
67
- /*
68
- !Important, if adding new messages that are 'acting' on behalf of the client,
69
- you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
67
+ /*
68
+ !Important, if adding new messages that are 'acting' on behalf of the client,
69
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
70
70
  */
71
71
  ClassId[ClassId["GET_ACHIEVEMENT_USER_REQUEST"] = 527] = "GET_ACHIEVEMENT_USER_REQUEST";
72
72
  ClassId[ClassId["GET_ACHIEVEMENT_USER_RESPONSE"] = 528] = "GET_ACHIEVEMENT_USER_RESPONSE";
@@ -82,9 +82,9 @@ exports.ClassId = void 0;
82
82
  ClassId[ClassId["ACHIEVEMENT_CLAIM_PRIZE_RESPONSE"] = 540] = "ACHIEVEMENT_CLAIM_PRIZE_RESPONSE";
83
83
  ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_REQUEST"] = 541] = "ACH_SHOP_ITEM_HISTORY_REQUEST";
84
84
  ClassId[ClassId["ACH_SHOP_ITEM_HISTORY_RESPONSE"] = 542] = "ACH_SHOP_ITEM_HISTORY_RESPONSE";
85
- /*
86
- !Important, if adding new messages that are 'acting' on behalf of the client,
87
- you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
85
+ /*
86
+ !Important, if adding new messages that are 'acting' on behalf of the client,
87
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
88
88
  */
89
89
  ClassId[ClassId["GET_BONUSES_REQUEST"] = 600] = "GET_BONUSES_REQUEST";
90
90
  ClassId[ClassId["GET_BONUSES_RESPONSE"] = 601] = "GET_BONUSES_RESPONSE";
@@ -101,9 +101,9 @@ exports.ClassId = void 0;
101
101
  ClassId[ClassId["SAW_PRIZE_DROP_WIN_PUSH"] = 708] = "SAW_PRIZE_DROP_WIN_PUSH";
102
102
  ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST"] = 709] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_REQUEST";
103
103
  ClassId[ClassId["SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE"] = 710] = "SAW_PRIZE_DROP_WIN_AKNOWLEDGE_RESPONSE";
104
- /*
105
- !Important, if adding new messages that are 'acting' on behalf of the client,
106
- you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
104
+ /*
105
+ !Important, if adding new messages that are 'acting' on behalf of the client,
106
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
107
107
  */
108
108
  ClassId[ClassId["JP_GET_JACKPOTS_REQUEST"] = 800] = "JP_GET_JACKPOTS_REQUEST";
109
109
  ClassId[ClassId["JP_GET_JACKPOTS_RESPONSE"] = 801] = "JP_GET_JACKPOTS_RESPONSE";
@@ -114,16 +114,16 @@ exports.ClassId = void 0;
114
114
  ClassId[ClassId["JP_OPTOUT_REQUEST"] = 806] = "JP_OPTOUT_REQUEST";
115
115
  ClassId[ClassId["JP_OPTOUT_RESPONSE"] = 807] = "JP_OPTOUT_RESPONSE";
116
116
  ClassId[ClassId["JP_WIN_PUSH"] = 808] = "JP_WIN_PUSH";
117
- /*
118
- !Important, if adding new messages that are 'acting' on behalf of the client,
119
- you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
117
+ /*
118
+ !Important, if adding new messages that are 'acting' on behalf of the client,
119
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
120
120
  */
121
121
  ClassId[ClassId["REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ"] = 1003] = "REGISTER_PUSH_NOTIFICATIONS_TOKEN_REQ";
122
122
  ClassId[ClassId["REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP"] = 2003] = "REGISTER_PUSH_NOTIFICATIONS_TOKEN_RESP";
123
123
  ClassId[ClassId["CLIENT_DEBUG_REQUEST"] = 77777] = "CLIENT_DEBUG_REQUEST";
124
- /*
125
- !Important, if adding new messages that are 'acting' on behalf of the client,
126
- you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
124
+ /*
125
+ !Important, if adding new messages that are 'acting' on behalf of the client,
126
+ you need to include them in the CLASS_ID_IGNORE_FOR_SIMULATION
127
127
  */
128
128
  ClassId[ClassId["UNSUPPORTED_COMMAND"] = 99999] = "UNSUPPORTED_COMMAND";
129
129
  })(exports.ClassId || (exports.ClassId = {}));
@@ -212,6 +212,13 @@ IntUtils.JsonOrText = function (str) {
212
212
  }
213
213
  return str;
214
214
  };
215
+ // public static wsTimeToEpoch = (time: string): number => {
216
+ // if (time) {
217
+ // return moment.utc(time, "DD/MM/YYYY HH:mm:ss").valueOf()
218
+ // } else {
219
+ // return null
220
+ // }
221
+ // }
215
222
  IntUtils.isWithinPeriod = function (timestamp, period) {
216
223
  var now = new Date();
217
224
  var completedDate = new Date(timestamp);
@@ -389,8 +396,8 @@ var SAWTemplatesTransform = function SAWTemplatesTransform(items) {
389
396
  });
390
397
  };
391
398
 
392
- /*
393
- * Possible error codes for the mini-games attempts
399
+ /*
400
+ * Possible error codes for the mini-games attempts
394
401
  */
395
402
  exports.SAWSpinErrorCode = void 0;
396
403
  (function (SAWSpinErrorCode) {
@@ -581,7 +588,7 @@ var CoreUtils = /*#__PURE__*/function () {
581
588
  function CoreUtils() {}
582
589
  CoreUtils.currencySymbol = function currencySymbol(currency) {
583
590
  var _USD$EUR$JPY$GBP$AUD$;
584
- return (_USD$EUR$JPY$GBP$AUD$ = {}, _USD$EUR$JPY$GBP$AUD$[currency == null ? void 0 : currency.toUpperCase()] = currency == null ? void 0 : currency.toUpperCase(), _USD$EUR$JPY$GBP$AUD$.USD = "$", _USD$EUR$JPY$GBP$AUD$.EUR = "", _USD$EUR$JPY$GBP$AUD$.JPY = "¥", _USD$EUR$JPY$GBP$AUD$.GBP = "£", _USD$EUR$JPY$GBP$AUD$.AUD = "A$", _USD$EUR$JPY$GBP$AUD$.CAD = "C$", _USD$EUR$JPY$GBP$AUD$.CHF = "CHF", _USD$EUR$JPY$GBP$AUD$.CNY = "¥", _USD$EUR$JPY$GBP$AUD$.SEK = "kr", _USD$EUR$JPY$GBP$AUD$.NZD = "NZ$", _USD$EUR$JPY$GBP$AUD$.MXN = "MX$", _USD$EUR$JPY$GBP$AUD$.SGD = "S$", _USD$EUR$JPY$GBP$AUD$.HKD = "HK$", _USD$EUR$JPY$GBP$AUD$.NOK = "kr", _USD$EUR$JPY$GBP$AUD$.KRW = "", _USD$EUR$JPY$GBP$AUD$.TRY = "", _USD$EUR$JPY$GBP$AUD$.INR = "", _USD$EUR$JPY$GBP$AUD$.RUB = "", _USD$EUR$JPY$GBP$AUD$.BRL = "R$", _USD$EUR$JPY$GBP$AUD$.ZAR = "R", _USD$EUR$JPY$GBP$AUD$)[currency == null ? void 0 : currency.toUpperCase()];
591
+ return (_USD$EUR$JPY$GBP$AUD$ = {}, _USD$EUR$JPY$GBP$AUD$[currency == null ? void 0 : currency.toUpperCase()] = currency == null ? void 0 : currency.toUpperCase(), _USD$EUR$JPY$GBP$AUD$.USD = "$", _USD$EUR$JPY$GBP$AUD$.EUR = "\u20AC", _USD$EUR$JPY$GBP$AUD$.JPY = "\xA5", _USD$EUR$JPY$GBP$AUD$.GBP = "\xA3", _USD$EUR$JPY$GBP$AUD$.AUD = "A$", _USD$EUR$JPY$GBP$AUD$.CAD = "C$", _USD$EUR$JPY$GBP$AUD$.CHF = "CHF", _USD$EUR$JPY$GBP$AUD$.CNY = "\xA5", _USD$EUR$JPY$GBP$AUD$.SEK = "kr", _USD$EUR$JPY$GBP$AUD$.NZD = "NZ$", _USD$EUR$JPY$GBP$AUD$.MXN = "MX$", _USD$EUR$JPY$GBP$AUD$.SGD = "S$", _USD$EUR$JPY$GBP$AUD$.HKD = "HK$", _USD$EUR$JPY$GBP$AUD$.NOK = "kr", _USD$EUR$JPY$GBP$AUD$.KRW = "\u20A9", _USD$EUR$JPY$GBP$AUD$.TRY = "\u20BA", _USD$EUR$JPY$GBP$AUD$.INR = "\u20B9", _USD$EUR$JPY$GBP$AUD$.RUB = "\u20BD", _USD$EUR$JPY$GBP$AUD$.BRL = "R$", _USD$EUR$JPY$GBP$AUD$.ZAR = "R", _USD$EUR$JPY$GBP$AUD$)[currency == null ? void 0 : currency.toUpperCase()];
585
592
  };
586
593
  return CoreUtils;
587
594
  }();
@@ -1228,15 +1235,15 @@ var WSAPI = /*#__PURE__*/function () {
1228
1235
  });
1229
1236
  }
1230
1237
  }
1231
- /** Returns information about current user
1232
- *
1233
- * **Example**:
1234
- * ```
1235
- * _smartico.api.getUserProfile().then((result) => {
1236
- * console.log(result);
1237
- * });
1238
- * ```
1239
- * **Visitor mode: not supported**
1238
+ /** Returns information about current user
1239
+ *
1240
+ * **Example**:
1241
+ * ```
1242
+ * _smartico.api.getUserProfile().then((result) => {
1243
+ * console.log(result);
1244
+ * });
1245
+ * ```
1246
+ * **Visitor mode: not supported**
1240
1247
  * */
1241
1248
  var _proto = WSAPI.prototype;
1242
1249
  _proto.getUserProfile = function getUserProfile() {
@@ -1248,15 +1255,15 @@ var WSAPI = /*#__PURE__*/function () {
1248
1255
  throw new Error('Tracker is not initialized, cannot getUserProfile');
1249
1256
  }
1250
1257
  }
1251
- /** Check if user belongs to specific segments
1252
- * **Example**:
1253
- * ```
1254
- * _smartico.api.checkSegmentMatch(1).then((result) => {
1255
- * console.log(result);
1256
- * });
1257
- * ```
1258
- *
1259
- * **Visitor mode: not supported**
1258
+ /** Check if user belongs to specific segments
1259
+ * **Example**:
1260
+ * ```
1261
+ * _smartico.api.checkSegmentMatch(1).then((result) => {
1262
+ * console.log(result);
1263
+ * });
1264
+ * ```
1265
+ *
1266
+ * **Visitor mode: not supported**
1260
1267
  */;
1261
1268
  _proto.checkSegmentMatch = function checkSegmentMatch(segment_id) {
1262
1269
  try {
@@ -1274,14 +1281,14 @@ var WSAPI = /*#__PURE__*/function () {
1274
1281
  return Promise.reject(e);
1275
1282
  }
1276
1283
  }
1277
- /** Check if user belongs to specific list of segments
1278
- * **Example**:
1279
- * ```
1280
- * _smartico.api.checkSegmentListMatch([1, 2, 3]).then((result) => {
1281
- * console.log(result);
1282
- * });
1283
- * ```
1284
- * **Visitor mode: not supported**
1284
+ /** Check if user belongs to specific list of segments
1285
+ * **Example**:
1286
+ * ```
1287
+ * _smartico.api.checkSegmentListMatch([1, 2, 3]).then((result) => {
1288
+ * console.log(result);
1289
+ * });
1290
+ * ```
1291
+ * **Visitor mode: not supported**
1285
1292
  */
1286
1293
  ;
1287
1294
  _proto.checkSegmentListMatch = function checkSegmentListMatch(segment_ids) {
@@ -1292,20 +1299,20 @@ var WSAPI = /*#__PURE__*/function () {
1292
1299
  return Promise.reject(e);
1293
1300
  }
1294
1301
  }
1295
- /** Returns all the levels available the current user
1296
- * **Example**:
1297
- * ```
1298
- * _smartico.api.getLevels().then((result) => {
1299
- * console.log(result);
1300
- * });
1301
- * ```
1302
- *
1303
- * **Example in the Visitor mode**:
1304
- * ```
1305
- * _smartico.vapi('EN').getLevels().then((result) => {
1306
- * console.log(result);
1307
- * });
1308
- * ```
1302
+ /** Returns all the levels available the current user
1303
+ * **Example**:
1304
+ * ```
1305
+ * _smartico.api.getLevels().then((result) => {
1306
+ * console.log(result);
1307
+ * });
1308
+ * ```
1309
+ *
1310
+ * **Example in the Visitor mode**:
1311
+ * ```
1312
+ * _smartico.vapi('EN').getLevels().then((result) => {
1313
+ * console.log(result);
1314
+ * });
1315
+ * ```
1309
1316
  */
1310
1317
  ;
1311
1318
  _proto.getLevels = function getLevels() {
@@ -1318,24 +1325,24 @@ var WSAPI = /*#__PURE__*/function () {
1318
1325
  return Promise.reject(e);
1319
1326
  }
1320
1327
  }
1321
- /** Returns all the missions available the current user.
1322
- * The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
1323
- * Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
1324
- * The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it.
1325
- *
1326
- * **Example**:
1327
- * ```
1328
- * _smartico.api.getMissions().then((result) => {
1329
- * console.log(result);
1330
- * });
1331
- * ```
1332
- *
1333
- * **Example in the Visitor mode**:
1334
- * ```
1335
- * _smartico.vapi('EN').getMissions().then((result) => {
1336
- * console.log(result);
1337
- * });
1338
- * ```
1328
+ /** Returns all the missions available the current user.
1329
+ * The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
1330
+ * Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
1331
+ * The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it.
1332
+ *
1333
+ * **Example**:
1334
+ * ```
1335
+ * _smartico.api.getMissions().then((result) => {
1336
+ * console.log(result);
1337
+ * });
1338
+ * ```
1339
+ *
1340
+ * **Example in the Visitor mode**:
1341
+ * ```
1342
+ * _smartico.vapi('EN').getMissions().then((result) => {
1343
+ * console.log(result);
1344
+ * });
1345
+ * ```
1339
1346
  */
1340
1347
  ;
1341
1348
  _proto.getMissions = function getMissions(_temp) {
@@ -1353,10 +1360,10 @@ var WSAPI = /*#__PURE__*/function () {
1353
1360
  return Promise.reject(e);
1354
1361
  }
1355
1362
  }
1356
- /**
1357
- * Returns all the badges available the current user
1358
- *
1359
- * **Visitor mode: not supported**
1363
+ /**
1364
+ * Returns all the badges available the current user
1365
+ *
1366
+ * **Visitor mode: not supported**
1360
1367
  */
1361
1368
  ;
1362
1369
  _proto.getBadges = function getBadges() {
@@ -1369,19 +1376,19 @@ var WSAPI = /*#__PURE__*/function () {
1369
1376
  return Promise.reject(e);
1370
1377
  }
1371
1378
  }
1372
- /**
1373
- * Returns the extra counters for the current user level.
1374
- * These are counters that are configured for each Smartico client separatly by request.
1375
- * For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
1376
- *
1377
- * **Example**:
1378
- * ```
1379
- * _smartico.api.getUserLevelExtraCounters().then((result) => {
1380
- * console.log(result);
1381
- * });
1382
- * ```
1383
- *
1384
- * **Visitor mode: not supported**
1379
+ /**
1380
+ * Returns the extra counters for the current user level.
1381
+ * These are counters that are configured for each Smartico client separatly by request.
1382
+ * For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
1383
+ *
1384
+ * **Example**:
1385
+ * ```
1386
+ * _smartico.api.getUserLevelExtraCounters().then((result) => {
1387
+ * console.log(result);
1388
+ * });
1389
+ * ```
1390
+ *
1391
+ * **Visitor mode: not supported**
1385
1392
  */
1386
1393
  ;
1387
1394
  _proto.getUserLevelExtraCounters = function getUserLevelExtraCounters() {
@@ -1394,23 +1401,23 @@ var WSAPI = /*#__PURE__*/function () {
1394
1401
  return Promise.reject(e);
1395
1402
  }
1396
1403
  }
1397
- /**
1398
- *
1399
- * Returns all the store items available the current user
1400
- *
1401
- * **Example**:
1402
- * ```
1403
- * _smartico.api.getStoreItems().then((result) => {
1404
- * console.log(result);
1405
- * });
1406
- * ```
1407
- *
1408
- * **Example in the Visitor mode**:
1409
- * ```
1410
- * _smartico.vapi('EN').getStoreItems().then((result) => {
1411
- * console.log(result);
1412
- * });
1413
- * ```
1404
+ /**
1405
+ *
1406
+ * Returns all the store items available the current user
1407
+ *
1408
+ * **Example**:
1409
+ * ```
1410
+ * _smartico.api.getStoreItems().then((result) => {
1411
+ * console.log(result);
1412
+ * });
1413
+ * ```
1414
+ *
1415
+ * **Example in the Visitor mode**:
1416
+ * ```
1417
+ * _smartico.vapi('EN').getStoreItems().then((result) => {
1418
+ * console.log(result);
1419
+ * });
1420
+ * ```
1414
1421
  */
1415
1422
  ;
1416
1423
  _proto.getStoreItems = function getStoreItems() {
@@ -1423,15 +1430,15 @@ var WSAPI = /*#__PURE__*/function () {
1423
1430
  return Promise.reject(e);
1424
1431
  }
1425
1432
  }
1426
- /** Buy the specific shop item by item_id. Returns the err_code in case of success or error.
1427
- * **Example**:
1428
- * ```
1429
- * _smartico.api.buyStoreItem(1).then((result) => {
1430
- * console.log(result);
1431
- * });
1432
- * ```
1433
- *
1434
- * **Visitor mode: not supported**
1433
+ /** Buy the specific shop item by item_id. Returns the err_code in case of success or error.
1434
+ * **Example**:
1435
+ * ```
1436
+ * _smartico.api.buyStoreItem(1).then((result) => {
1437
+ * console.log(result);
1438
+ * });
1439
+ * ```
1440
+ *
1441
+ * **Visitor mode: not supported**
1435
1442
  */
1436
1443
  ;
1437
1444
  _proto.buyStoreItem = function buyStoreItem(item_id) {
@@ -1448,23 +1455,23 @@ var WSAPI = /*#__PURE__*/function () {
1448
1455
  return Promise.reject(e);
1449
1456
  }
1450
1457
  }
1451
- /**
1452
- *
1453
- * Returns store categories
1454
- *
1455
- * **Example**:
1456
- * ```
1457
- * _smartico.api.getStoreCategories().then((result) => {
1458
- * console.log(result);
1459
- * });
1460
- * ```
1461
- *
1462
- * **Example in the Visitor mode**:
1463
- * ```
1464
- * _smartico.vapi('EN').getStoreCategories().then((result) => {
1465
- * console.log(result);
1466
- * });
1467
- * ```
1458
+ /**
1459
+ *
1460
+ * Returns store categories
1461
+ *
1462
+ * **Example**:
1463
+ * ```
1464
+ * _smartico.api.getStoreCategories().then((result) => {
1465
+ * console.log(result);
1466
+ * });
1467
+ * ```
1468
+ *
1469
+ * **Example in the Visitor mode**:
1470
+ * ```
1471
+ * _smartico.vapi('EN').getStoreCategories().then((result) => {
1472
+ * console.log(result);
1473
+ * });
1474
+ * ```
1468
1475
  */
1469
1476
  ;
1470
1477
  _proto.getStoreCategories = function getStoreCategories() {
@@ -1477,19 +1484,19 @@ var WSAPI = /*#__PURE__*/function () {
1477
1484
  return Promise.reject(e);
1478
1485
  }
1479
1486
  }
1480
- /**
1481
- * Returns purchased items based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
1482
- * The maximum number of items per request is limited to 20.
1483
- * You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
1484
- *
1485
- * **Example**:
1486
- * ```
1487
- * _smartico.api.getStorePurchasedItems().then((result) => {
1488
- * console.log(result);
1489
- * });
1490
- * ```
1491
- *
1492
- * **Visitor mode: not supported**
1487
+ /**
1488
+ * Returns purchased items based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
1489
+ * The maximum number of items per request is limited to 20.
1490
+ * You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
1491
+ *
1492
+ * **Example**:
1493
+ * ```
1494
+ * _smartico.api.getStorePurchasedItems().then((result) => {
1495
+ * console.log(result);
1496
+ * });
1497
+ * ```
1498
+ *
1499
+ * **Visitor mode: not supported**
1493
1500
  */
1494
1501
  ;
1495
1502
  _proto.getStorePurchasedItems = function getStorePurchasedItems(_temp2) {
@@ -1509,23 +1516,23 @@ var WSAPI = /*#__PURE__*/function () {
1509
1516
  return Promise.reject(e);
1510
1517
  }
1511
1518
  }
1512
- /**
1513
- * Returns missions & badges categories
1514
- *
1515
- * **Example**:
1516
- * ```
1517
- * _smartico.api.getAchCategories().then((result) => {
1518
- * console.log(result);
1519
- * });
1520
- * ```
1521
- *
1522
- * **Example in the Visitor mode**:
1523
- * ```
1524
- * _smartico.vapi('EN').getAchCategories().then((result) => {
1525
- * console.log(result);
1526
- * });
1527
- * ```
1528
- *
1519
+ /**
1520
+ * Returns missions & badges categories
1521
+ *
1522
+ * **Example**:
1523
+ * ```
1524
+ * _smartico.api.getAchCategories().then((result) => {
1525
+ * console.log(result);
1526
+ * });
1527
+ * ```
1528
+ *
1529
+ * **Example in the Visitor mode**:
1530
+ * ```
1531
+ * _smartico.vapi('EN').getAchCategories().then((result) => {
1532
+ * console.log(result);
1533
+ * });
1534
+ * ```
1535
+ *
1529
1536
  * */
1530
1537
  ;
1531
1538
  _proto.getAchCategories = function getAchCategories() {
@@ -1538,23 +1545,23 @@ var WSAPI = /*#__PURE__*/function () {
1538
1545
  return Promise.reject(e);
1539
1546
  }
1540
1547
  }
1541
- /**
1542
- * Returns list of custom sections
1543
- *
1544
- * **Example**:
1545
- * ```
1546
- * _smartico.api.getCustomSections().then((result) => {
1547
- * console.log(result);
1548
- * });
1549
- * ```
1550
- *
1551
- * **Example in the Visitor mode**:
1552
- * ```
1553
- * _smartico.vapi('EN').getCustomSections().then((result) => {
1554
- * console.log(result);
1555
- * });
1556
- * ```
1557
- *
1548
+ /**
1549
+ * Returns list of custom sections
1550
+ *
1551
+ * **Example**:
1552
+ * ```
1553
+ * _smartico.api.getCustomSections().then((result) => {
1554
+ * console.log(result);
1555
+ * });
1556
+ * ```
1557
+ *
1558
+ * **Example in the Visitor mode**:
1559
+ * ```
1560
+ * _smartico.vapi('EN').getCustomSections().then((result) => {
1561
+ * console.log(result);
1562
+ * });
1563
+ * ```
1564
+ *
1558
1565
  * */
1559
1566
  ;
1560
1567
  _proto.getCustomSections = function getCustomSections() {
@@ -1567,25 +1574,25 @@ var WSAPI = /*#__PURE__*/function () {
1567
1574
  return Promise.reject(e);
1568
1575
  }
1569
1576
  }
1570
- /**
1571
- * Returns the list of mini-games available for user
1572
- * The returned list of mini-games is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMiniGames with a new onUpdate callback, the old one will be overwritten by the new one.
1573
- * The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or wined prize is spin/jackpot and if max count of the available user spin equal one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
1574
- *
1575
- * **Example**:
1576
- * ```
1577
- * _smartico.api.getMiniGames().then((result) => {
1578
- * console.log(result);
1579
- * });
1580
- * ```
1581
- *
1582
- * **Example in the Visitor mode**:
1583
- * ```
1584
- * _smartico.vapi('EN').getMiniGames().then((result) => {
1585
- * console.log(result);
1586
- * });
1587
- * ```
1588
- *
1577
+ /**
1578
+ * Returns the list of mini-games available for user
1579
+ * The returned list of mini-games is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMiniGames with a new onUpdate callback, the old one will be overwritten by the new one.
1580
+ * The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or wined prize is spin/jackpot and if max count of the available user spin equal one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
1581
+ *
1582
+ * **Example**:
1583
+ * ```
1584
+ * _smartico.api.getMiniGames().then((result) => {
1585
+ * console.log(result);
1586
+ * });
1587
+ * ```
1588
+ *
1589
+ * **Example in the Visitor mode**:
1590
+ * ```
1591
+ * _smartico.vapi('EN').getMiniGames().then((result) => {
1592
+ * console.log(result);
1593
+ * });
1594
+ * ```
1595
+ *
1589
1596
  */
1590
1597
  ;
1591
1598
  _proto.getMiniGames = function getMiniGames(_temp3) {
@@ -1603,10 +1610,10 @@ var WSAPI = /*#__PURE__*/function () {
1603
1610
  return Promise.reject(e);
1604
1611
  }
1605
1612
  }
1606
- /**
1607
- * Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
1608
- *
1609
- * **Visitor mode: not supported**
1613
+ /**
1614
+ * Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
1615
+ *
1616
+ * **Visitor mode: not supported**
1610
1617
  */
1611
1618
  ;
1612
1619
  _proto.playMiniGame = function playMiniGame(template_id) {
@@ -1625,10 +1632,10 @@ var WSAPI = /*#__PURE__*/function () {
1625
1632
  return Promise.reject(e);
1626
1633
  }
1627
1634
  }
1628
- /**
1629
- * Requests an opt-in for the specified mission_id. Returns the err_code.
1630
- *
1631
- * **Visitor mode: not supported**
1635
+ /**
1636
+ * Requests an opt-in for the specified mission_id. Returns the err_code.
1637
+ *
1638
+ * **Visitor mode: not supported**
1632
1639
  */
1633
1640
  ;
1634
1641
  _proto.requestMissionOptIn = function requestMissionOptIn(mission_id) {
@@ -1645,10 +1652,10 @@ var WSAPI = /*#__PURE__*/function () {
1645
1652
  return Promise.reject(e);
1646
1653
  }
1647
1654
  }
1648
- /**
1649
- * Request for claim reward for the specified mission id. Returns the err_code.
1650
- *
1651
- * **Visitor mode: not supported**
1655
+ /**
1656
+ * Request for claim reward for the specified mission id. Returns the err_code.
1657
+ *
1658
+ * **Visitor mode: not supported**
1652
1659
  */
1653
1660
  ;
1654
1661
  _proto.requestMissionClaimReward = function requestMissionClaimReward(mission_id, ach_completed_id) {
@@ -1665,23 +1672,23 @@ var WSAPI = /*#__PURE__*/function () {
1665
1672
  return Promise.reject(e);
1666
1673
  }
1667
1674
  }
1668
- /** Returns all the active instances of tournaments
1669
- * The returned list is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getTournamentsList with a new onUpdate callback, the old one will be overwritten by the new one.
1670
- * The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.
1671
- *
1672
- * **Example**:
1673
- * ```
1674
- * _smartico.api.getTournamentsList().then((result) => {
1675
- * console.log(result);
1676
- * });
1677
- * ```
1678
- *
1679
- * **Example in the Visitor mode**:
1680
- * ```
1681
- * _smartico.vapi('EN').getTournamentsList().then((result) => {
1682
- * console.log(result);
1683
- * });
1684
- * ```
1675
+ /** Returns all the active instances of tournaments
1676
+ * The returned list is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getTournamentsList with a new onUpdate callback, the old one will be overwritten by the new one.
1677
+ * The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.
1678
+ *
1679
+ * **Example**:
1680
+ * ```
1681
+ * _smartico.api.getTournamentsList().then((result) => {
1682
+ * console.log(result);
1683
+ * });
1684
+ * ```
1685
+ *
1686
+ * **Example in the Visitor mode**:
1687
+ * ```
1688
+ * _smartico.vapi('EN').getTournamentsList().then((result) => {
1689
+ * console.log(result);
1690
+ * });
1691
+ * ```
1685
1692
  * */
1686
1693
  ;
1687
1694
  _proto.getTournamentsList = function getTournamentsList(_temp4) {
@@ -1699,30 +1706,30 @@ var WSAPI = /*#__PURE__*/function () {
1699
1706
  return Promise.reject(e);
1700
1707
  }
1701
1708
  }
1702
- /**
1703
- * Returns details information of specific tournament instance, the response will include tournament info and the leaderboard of players
1704
- *
1705
- * **Example**:
1706
- * ```
1707
- * _smartico.api.getTournamentsList().then((result) => {
1708
- * if (result.length > 0) {
1709
- * _smartico.api.getTournamentInstanceInfo(result[0].instance_id).then((result) => {
1710
- * console.log(result);
1711
- * });
1712
- * }
1713
- * });
1714
- * ```
1715
- *
1716
- * **Example in the Visitor mode**:
1717
- * ```
1718
- * _smartico.vapi('EN').getTournamentsList().then((result) => {
1719
- * if (result.length > 0) {
1720
- * _smartico.vapi('EN').getTournamentInstanceInfo(result[0].instance_id).then((result) => {
1721
- * console.log(result);
1722
- * });
1723
- * }
1724
- * });
1725
- * ```
1709
+ /**
1710
+ * Returns details information of specific tournament instance, the response will include tournament info and the leaderboard of players
1711
+ *
1712
+ * **Example**:
1713
+ * ```
1714
+ * _smartico.api.getTournamentsList().then((result) => {
1715
+ * if (result.length > 0) {
1716
+ * _smartico.api.getTournamentInstanceInfo(result[0].instance_id).then((result) => {
1717
+ * console.log(result);
1718
+ * });
1719
+ * }
1720
+ * });
1721
+ * ```
1722
+ *
1723
+ * **Example in the Visitor mode**:
1724
+ * ```
1725
+ * _smartico.vapi('EN').getTournamentsList().then((result) => {
1726
+ * if (result.length > 0) {
1727
+ * _smartico.vapi('EN').getTournamentInstanceInfo(result[0].instance_id).then((result) => {
1728
+ * console.log(result);
1729
+ * });
1730
+ * }
1731
+ * });
1732
+ * ```
1726
1733
  */
1727
1734
  ;
1728
1735
  _proto.getTournamentInstanceInfo = function getTournamentInstanceInfo(tournamentInstanceId) {
@@ -1733,10 +1740,10 @@ var WSAPI = /*#__PURE__*/function () {
1733
1740
  return Promise.reject(e);
1734
1741
  }
1735
1742
  }
1736
- /**
1737
- * Requests registration for the specified tournament instance. Returns the err_code.
1738
- *
1739
- * **Visitor mode: not supported**
1743
+ /**
1744
+ * Requests registration for the specified tournament instance. Returns the err_code.
1745
+ *
1746
+ * **Visitor mode: not supported**
1740
1747
  */
1741
1748
  ;
1742
1749
  _proto.registerInTournament = function registerInTournament(tournamentInstanceId) {
@@ -1753,23 +1760,23 @@ var WSAPI = /*#__PURE__*/function () {
1753
1760
  return Promise.reject(e);
1754
1761
  }
1755
1762
  }
1756
- /**
1757
- * Returns the leaderboard for the current type (default is Daily). If getPreviousPeriod is passed as true, a leaderboard for the previous period for the current type will be returned.
1758
- * For example, if the type is Weekly and getPreviousPeriod is true, a leaderboard for the previous week will be returned.
1759
- *
1760
- * **Example**:
1761
- * ```
1762
- * _smartico.api.getLeaderBoard(1).then((result) => {
1763
- * console.log(result);
1764
- * });
1765
- * ```
1766
- *
1767
- * **Example in the Visitor mode**:
1768
- * ```
1769
- * _smartico.vapi('EN').getLeaderBoard(1).then((result) => {
1770
- * console.log(result);
1771
- * });
1772
- * ```
1763
+ /**
1764
+ * Returns the leaderboard for the current type (default is Daily). If getPreviousPeriod is passed as true, a leaderboard for the previous period for the current type will be returned.
1765
+ * For example, if the type is Weekly and getPreviousPeriod is true, a leaderboard for the previous week will be returned.
1766
+ *
1767
+ * **Example**:
1768
+ * ```
1769
+ * _smartico.api.getLeaderBoard(1).then((result) => {
1770
+ * console.log(result);
1771
+ * });
1772
+ * ```
1773
+ *
1774
+ * **Example in the Visitor mode**:
1775
+ * ```
1776
+ * _smartico.vapi('EN').getLeaderBoard(1).then((result) => {
1777
+ * console.log(result);
1778
+ * });
1779
+ * ```
1773
1780
  */
1774
1781
  ;
1775
1782
  _proto.getLeaderBoard = function getLeaderBoard(periodType, getPreviousPeriod) {
@@ -1782,17 +1789,17 @@ var WSAPI = /*#__PURE__*/function () {
1782
1789
  return Promise.reject(e);
1783
1790
  }
1784
1791
  }
1785
- /** Returns inbox messages based on the provided parameters. "From" and "to" indicate the range of messages to be fetched.
1786
- * The maximum number of messages per request is limited to 20. An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
1787
- * You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
1788
- * This functions return list of messages without the body of the message.
1789
- * To get the body of the message you need to call getInboxMessageBody function and pass the message guid contained in each message of this request.
1790
- * All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
1791
- * The "onUpdate" callback will be triggered when the user receives a new message. It will provide an updated list of messages, ranging from 0 to 20, to the onUpdate callback function.
1792
- *
1793
- * **Visitor mode: not supported**
1794
- *
1795
- * @param params
1792
+ /** Returns inbox messages based on the provided parameters. "From" and "to" indicate the range of messages to be fetched.
1793
+ * The maximum number of messages per request is limited to 20. An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
1794
+ * You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
1795
+ * This functions return list of messages without the body of the message.
1796
+ * To get the body of the message you need to call getInboxMessageBody function and pass the message guid contained in each message of this request.
1797
+ * All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
1798
+ * The "onUpdate" callback will be triggered when the user receives a new message. It will provide an updated list of messages, ranging from 0 to 20, to the onUpdate callback function.
1799
+ *
1800
+ * **Visitor mode: not supported**
1801
+ *
1802
+ * @param params
1796
1803
  */
1797
1804
  ;
1798
1805
  _proto.getInboxMessages = function getInboxMessages(_temp5) {
@@ -1811,10 +1818,10 @@ var WSAPI = /*#__PURE__*/function () {
1811
1818
  return Promise.reject(e);
1812
1819
  }
1813
1820
  }
1814
- /**
1815
- * Returns the message body of the specified message guid.
1816
- *
1817
- * **Visitor mode: not supported**
1821
+ /**
1822
+ * Returns the message body of the specified message guid.
1823
+ *
1824
+ * **Visitor mode: not supported**
1818
1825
  */
1819
1826
  ;
1820
1827
  _proto.getInboxMessageBody = function getInboxMessageBody(messageGuid) {
@@ -1825,10 +1832,10 @@ var WSAPI = /*#__PURE__*/function () {
1825
1832
  return Promise.reject(e);
1826
1833
  }
1827
1834
  }
1828
- /**
1829
- * Requests to mark inbox message with specified guid as read
1830
- *
1831
- * **Visitor mode: not supported**
1835
+ /**
1836
+ * Requests to mark inbox message with specified guid as read
1837
+ *
1838
+ * **Visitor mode: not supported**
1832
1839
  */
1833
1840
  ;
1834
1841
  _proto.markInboxMessageAsRead = function markInboxMessageAsRead(messageGuid) {
@@ -1844,10 +1851,10 @@ var WSAPI = /*#__PURE__*/function () {
1844
1851
  return Promise.reject(e);
1845
1852
  }
1846
1853
  }
1847
- /**
1848
- * Requests to mark all inbox messages as rea
1849
- *
1850
- * **Visitor mode: not supported**
1854
+ /**
1855
+ * Requests to mark all inbox messages as rea
1856
+ *
1857
+ * **Visitor mode: not supported**
1851
1858
  */
1852
1859
  ;
1853
1860
  _proto.markAllInboxMessagesAsRead = function markAllInboxMessagesAsRead() {
@@ -1863,10 +1870,10 @@ var WSAPI = /*#__PURE__*/function () {
1863
1870
  return Promise.reject(e);
1864
1871
  }
1865
1872
  }
1866
- /**
1867
- * Requests to mark inbox message with specified guid as favorite. Pass mark true to add message to favorite and false to remove.
1868
- *
1869
- * **Visitor mode: not supported**
1873
+ /**
1874
+ * Requests to mark inbox message with specified guid as favorite. Pass mark true to add message to favorite and false to remove.
1875
+ *
1876
+ * **Visitor mode: not supported**
1870
1877
  */
1871
1878
  ;
1872
1879
  _proto.markUnmarkInboxMessageAsFavorite = function markUnmarkInboxMessageAsFavorite(messageGuid, mark) {
@@ -1882,10 +1889,10 @@ var WSAPI = /*#__PURE__*/function () {
1882
1889
  return Promise.reject(e);
1883
1890
  }
1884
1891
  }
1885
- /**
1886
- * Requests to delete inbox message
1887
- *
1888
- * **Visitor mode: not supported**
1892
+ /**
1893
+ * Requests to delete inbox message
1894
+ *
1895
+ * **Visitor mode: not supported**
1889
1896
  */
1890
1897
  ;
1891
1898
  _proto.deleteInboxMessage = function deleteInboxMessage(messageGuid) {
@@ -1901,10 +1908,10 @@ var WSAPI = /*#__PURE__*/function () {
1901
1908
  return Promise.reject(e);
1902
1909
  }
1903
1910
  }
1904
- /**
1905
- * Requests to delete all inbox messages
1906
- *
1907
- * **Visitor mode: not supported**
1911
+ /**
1912
+ * Requests to delete all inbox messages
1913
+ *
1914
+ * **Visitor mode: not supported**
1908
1915
  */
1909
1916
  ;
1910
1917
  _proto.deleteAllInboxMessages = function deleteAllInboxMessages() {
@@ -1920,8 +1927,8 @@ var WSAPI = /*#__PURE__*/function () {
1920
1927
  return Promise.reject(e);
1921
1928
  }
1922
1929
  }
1923
- /**
1924
- * Requests translations for the given language. Returns the object including translation key/translation value pairs. All possible translation keys defined in the back office.
1930
+ /**
1931
+ * Requests translations for the given language. Returns the object including translation key/translation value pairs. All possible translation keys defined in the back office.
1925
1932
  */
1926
1933
  ;
1927
1934
  _proto.getTranslations = function getTranslations(lang_code) {
@@ -2047,24 +2054,24 @@ var WSAPI = /*#__PURE__*/function () {
2047
2054
  return Promise.reject(e);
2048
2055
  }
2049
2056
  }
2050
- /** Returns list of Jackpots that are active in the systen and matching to the filter definition.
2051
- * If filter is not provided, all active jackpots will be returned.
2052
- * Filter can be used to get jackpots related to specific game or specific jackpot template.
2053
- * You can call this method every second in order to get up to date information about current value of the jackpot(s) and present them to the end-users
2054
- *
2055
- * **Example**:
2056
- * ```
2057
- * _smartico.api.jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
2058
- * console.log(result);
2059
- * });
2060
- * ```
2061
- *
2062
- * **Example in the Visitor mode**:
2063
- * ```
2064
- * _smartico.vapi('EN').jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
2065
- * console.log(result);
2066
- * });
2067
- * ```
2057
+ /** Returns list of Jackpots that are active in the systen and matching to the filter definition.
2058
+ * If filter is not provided, all active jackpots will be returned.
2059
+ * Filter can be used to get jackpots related to specific game or specific jackpot template.
2060
+ * You can call this method every second in order to get up to date information about current value of the jackpot(s) and present them to the end-users
2061
+ *
2062
+ * **Example**:
2063
+ * ```
2064
+ * _smartico.api.jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
2065
+ * console.log(result);
2066
+ * });
2067
+ * ```
2068
+ *
2069
+ * **Example in the Visitor mode**:
2070
+ * ```
2071
+ * _smartico.vapi('EN').jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
2072
+ * console.log(result);
2073
+ * });
2074
+ * ```
2068
2075
  */
2069
2076
  ;
2070
2077
  _proto.jackpotGet = function jackpotGet(filter) {
@@ -2127,19 +2134,19 @@ var WSAPI = /*#__PURE__*/function () {
2127
2134
  return Promise.reject(e);
2128
2135
  }
2129
2136
  }
2130
- /**
2131
- * Opt-in currently logged in user to the jackpot with the specified jp_template_id.
2132
- * You may call jackpotGet method after doing optin to see that user is opted in to the jackpot.
2133
- *
2134
- * **Example**:
2135
- * ```
2136
- * _smartico.api.jackpotOptIn({ jp_template_id: 123 }).then((result) => {
2137
- * console.log('Opted in to the jackpot');
2138
- * });
2139
- * ```
2140
- *
2141
- * **Visitor mode: not supported**
2142
- *
2137
+ /**
2138
+ * Opt-in currently logged in user to the jackpot with the specified jp_template_id.
2139
+ * You may call jackpotGet method after doing optin to see that user is opted in to the jackpot.
2140
+ *
2141
+ * **Example**:
2142
+ * ```
2143
+ * _smartico.api.jackpotOptIn({ jp_template_id: 123 }).then((result) => {
2144
+ * console.log('Opted in to the jackpot');
2145
+ * });
2146
+ * ```
2147
+ *
2148
+ * **Visitor mode: not supported**
2149
+ *
2143
2150
  */
2144
2151
  ;
2145
2152
  _proto.jackpotOptIn = function jackpotOptIn(filter) {
@@ -2154,19 +2161,19 @@ var WSAPI = /*#__PURE__*/function () {
2154
2161
  return Promise.reject(e);
2155
2162
  }
2156
2163
  }
2157
- /**
2158
- * Opt-out currently logged in user from the jackpot with the specified jp_template_id.
2159
- * You may call jackpotGet method after doing optout to see that user is not opted in to the jackpot.
2160
- *
2161
- * **Example**:
2162
- * ```
2163
- * _smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
2164
- * console.log('Opted out from the jackpot');
2165
- * });
2166
- * ```
2167
- *
2168
- * **Visitor mode: not supported**
2169
- *
2164
+ /**
2165
+ * Opt-out currently logged in user from the jackpot with the specified jp_template_id.
2166
+ * You may call jackpotGet method after doing optout to see that user is not opted in to the jackpot.
2167
+ *
2168
+ * **Example**:
2169
+ * ```
2170
+ * _smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
2171
+ * console.log('Opted out from the jackpot');
2172
+ * });
2173
+ * ```
2174
+ *
2175
+ * **Visitor mode: not supported**
2176
+ *
2170
2177
  */
2171
2178
  ;
2172
2179
  _proto.jackpotOptOut = function jackpotOptOut(filter) {
@@ -2985,17 +2992,17 @@ var SmarticoAPI = /*#__PURE__*/function () {
2985
2992
  include_users: true
2986
2993
  });
2987
2994
  return Promise.resolve(_this39.send(message, exports.ClassId.GET_LEADERS_BOARD_RESPONSE, force_language)).then(function (response) {
2988
- var _response$map$boardKe, _response$map$boardKe2, _response$map$boardKe3, _response$map$boardKe4;
2995
+ var _response$map$boardKe, _response$map$boardKe2;
2989
2996
  var boardKey = Object.keys(response.map).find(function (k) {
2990
2997
  return period_type_id === undefined || k === (period_type_id == null ? void 0 : period_type_id.toString());
2991
2998
  });
2992
2999
  if (boardKey === undefined) {
2993
3000
  return undefined;
2994
3001
  }
2995
- if ((_response$map$boardKe = response.map[boardKey]) != null && (_response$map$boardKe2 = _response$map$boardKe.userPosition) != null && _response$map$boardKe2.avatar_id) {
3002
+ if ((_response$map$boardKe = response.map[boardKey]) != null && (_response$map$boardKe = _response$map$boardKe.userPosition) != null && _response$map$boardKe.avatar_id) {
2996
3003
  response.map[boardKey].userPosition.avatar_url = CoreUtils.avatarUrl(response.map[boardKey].userPosition.avatar_id, _this39.avatarDomain);
2997
3004
  }
2998
- if ((_response$map$boardKe3 = response.map[boardKey]) != null && (_response$map$boardKe4 = _response$map$boardKe3.positions) != null && _response$map$boardKe4.length) {
3005
+ if ((_response$map$boardKe2 = response.map[boardKey]) != null && (_response$map$boardKe2 = _response$map$boardKe2.positions) != null && _response$map$boardKe2.length) {
2999
3006
  response.map[boardKey].positions.forEach(function (p) {
3000
3007
  p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, _this39.avatarDomain);
3001
3008
  });