@smartico/public-api 0.0.150 → 0.0.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Base/AchRelatedGame.d.ts +13 -13
- package/dist/Base/ClassId.d.ts +97 -97
- package/dist/Base/ProtocolMessage.d.ts +5 -5
- package/dist/Base/ProtocolRequest.d.ts +6 -6
- package/dist/Base/ProtocolResponse.d.ts +5 -5
- package/dist/CookieStore.d.ts +6 -6
- package/dist/Core/ActivityTypeLimited.d.ts +18 -18
- package/dist/Core/CheckSegmentMatchRequest.d.ts +4 -4
- package/dist/Core/CheckSegmentMatchResponse.d.ts +7 -7
- package/dist/Core/CoreUtils.d.ts +5 -5
- package/dist/Core/GetAchievementsUserInfoRequest.d.ts +3 -3
- package/dist/Core/GetAchievementsUserInfoResponse.d.ts +5 -5
- package/dist/Core/GetLabelInfoRequest.d.ts +3 -3
- package/dist/Core/GetLabelInfoResponse.d.ts +7 -7
- package/dist/Core/GetTranslationsRequest.d.ts +7 -7
- package/dist/Core/GetTranslationsResponse.d.ts +7 -7
- package/dist/Core/PublicLabelSettings.d.ts +27 -27
- package/dist/Core/PublicProperties.d.ts +9 -9
- package/dist/Core/ResponseIdentify.d.ts +12 -12
- package/dist/Core/TranslationArea.d.ts +10 -10
- package/dist/Core/index.d.ts +9 -9
- package/dist/CustomSections/AchCustomSection.d.ts +27 -27
- package/dist/CustomSections/GetCustomSectionsRequest.d.ts +3 -3
- package/dist/CustomSections/GetCustomSectionsResponse.d.ts +7 -7
- package/dist/CustomSections/UICustomSection.d.ts +15 -15
- package/dist/CustomSections/index.d.ts +4 -4
- package/dist/ErrorCodes.d.ts +12 -12
- package/dist/GResponse.d.ts +9 -9
- package/dist/ILogger.d.ts +7 -7
- package/dist/Inbox/GetInboxMessagesRequest.d.ts +6 -6
- package/dist/Inbox/GetInboxMessagesResponse.d.ts +7 -7
- package/dist/Inbox/InboxMessage.d.ts +23 -23
- package/dist/Inbox/InboxMessageType.d.ts +11 -11
- package/dist/Inbox/MarkInboxMessageDeletedRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageDeletedResponse.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +5 -5
- package/dist/Inbox/index.d.ts +10 -10
- package/dist/IntUtils.d.ts +10 -10
- package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +4 -4
- package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +5 -5
- package/dist/Jackpots/GetJackpotsRequest.d.ts +5 -5
- package/dist/Jackpots/GetJackpotsResponse.d.ts +5 -5
- package/dist/Jackpots/JackPotWinner.d.ts +13 -13
- package/dist/Jackpots/JackpotContributionType.d.ts +5 -5
- package/dist/Jackpots/JackpotDetails.d.ts +37 -37
- package/dist/Jackpots/JackpotHtmlTemplate.d.ts +5 -5
- package/dist/Jackpots/JackpotPot.d.ts +13 -13
- package/dist/Jackpots/JackpotPublicMeta.d.ts +18 -18
- package/dist/Jackpots/JackpotType.d.ts +4 -4
- package/dist/Jackpots/JackpotWinPush.d.ts +7 -7
- package/dist/Jackpots/JackpotsOptinRequest.d.ts +4 -4
- package/dist/Jackpots/JackpotsOptinResponse.d.ts +3 -3
- package/dist/Jackpots/JackpotsOptoutRequest.d.ts +4 -4
- package/dist/Jackpots/JackpotsOptoutResponse.d.ts +3 -3
- package/dist/Jackpots/index.d.ts +16 -16
- package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +7 -7
- package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +7 -7
- package/dist/Leaderboard/LeaderBoardDetails.d.ts +13 -13
- package/dist/Leaderboard/LeaderBoardPeriodType.d.ts +5 -5
- package/dist/Leaderboard/LeaderBoardPosition.d.ts +10 -10
- package/dist/Leaderboard/LeaderBoardPublicMeta.d.ts +5 -5
- package/dist/Leaderboard/LeaderBoards.d.ts +3 -3
- package/dist/Leaderboard/index.d.ts +6 -6
- package/dist/Level/GetLevelMapResponse.d.ts +7 -7
- package/dist/Level/Level.d.ts +12 -12
- package/dist/Level/LevelPublicMeta.d.ts +19 -19
- package/dist/Level/index.d.ts +3 -3
- package/dist/MiniGames/SAWAcknowledgeType.d.ts +5 -5
- package/dist/MiniGames/SAWAskForUsername.d.ts +4 -4
- package/dist/MiniGames/SAWBuyInType.d.ts +14 -14
- package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +4 -4
- package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +4 -4
- package/dist/MiniGames/SAWDoSpinRequest.d.ts +5 -5
- package/dist/MiniGames/SAWDoSpinResponse.d.ts +11 -11
- package/dist/MiniGames/SAWGameType.d.ts +20 -20
- package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +5 -5
- package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +7 -7
- package/dist/MiniGames/SAWPrize.d.ts +13 -13
- package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +4 -4
- package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +4 -4
- package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +9 -9
- package/dist/MiniGames/SAWPrizeType.d.ts +20 -20
- package/dist/MiniGames/SAWPrizeUI.d.ts +18 -18
- package/dist/MiniGames/SAWSpinErrorCode.d.ts +14 -14
- package/dist/MiniGames/SAWSpinsCountPush.d.ts +5 -5
- package/dist/MiniGames/SAWTemplate.d.ts +29 -29
- package/dist/MiniGames/SAWTemplateUI.d.ts +45 -45
- package/dist/MiniGames/SAWUtils.d.ts +5 -5
- package/dist/MiniGames/SAWWinSoundType.d.ts +13 -13
- package/dist/MiniGames/index.d.ts +20 -20
- package/dist/Missions/AchCategoryPublicMeta.d.ts +4 -4
- package/dist/Missions/AchClaimPrizeRequest.d.ts +5 -5
- package/dist/Missions/AchClaimPrizeResponse.d.ts +3 -3
- package/dist/Missions/AchievementCategory.d.ts +7 -7
- package/dist/Missions/AchievementOptinRequest.d.ts +4 -4
- package/dist/Missions/AchievementOptinResponse.d.ts +3 -3
- package/dist/Missions/AchievementPublicMeta.d.ts +21 -21
- package/dist/Missions/AchievementStatus.d.ts +9 -9
- package/dist/Missions/AchievementTaskPublicMeta.d.ts +4 -3
- package/dist/Missions/AchievementTaskType.d.ts +4 -4
- package/dist/Missions/AchievementType.d.ts +4 -4
- package/dist/Missions/GetAchCategoriesRequest.d.ts +3 -3
- package/dist/Missions/GetAchCategoriesResponse.d.ts +5 -5
- package/dist/Missions/GetAchievementMapRequest.d.ts +3 -3
- package/dist/Missions/GetAchievementMapResponse.d.ts +5 -5
- package/dist/Missions/ReloadAchievementsEvent.d.ts +3 -3
- package/dist/Missions/ScheduledMissionType.d.ts +5 -5
- package/dist/Missions/UserAchievement.d.ts +39 -39
- package/dist/Missions/UserAchievementTask.d.ts +15 -15
- package/dist/Missions/index.d.ts +19 -19
- package/dist/NodeCache.d.ts +10 -10
- package/dist/OCache.d.ts +15 -15
- package/dist/Quiz/MarketsAnswers.d.ts +38 -38
- package/dist/Quiz/MarketsInfo.d.ts +14 -14
- package/dist/Quiz/MarketsPerSport.d.ts +6 -6
- package/dist/Quiz/MarketsType.d.ts +29 -29
- package/dist/Quiz/ScoreResultTypes.d.ts +28 -28
- package/dist/Quiz/SportTypes.d.ts +6 -6
- package/dist/Quiz/index.d.ts +6 -6
- package/dist/SmarticoAPI.d.ts +119 -119
- package/dist/SmarticoLib/index.d.ts +2013 -2013
- package/dist/Store/BuyStoreItemErrorCode.d.ts +11 -11
- package/dist/Store/BuyStoreItemRequest.d.ts +4 -4
- package/dist/Store/BuyStoreItemResponse.d.ts +4 -4
- package/dist/Store/GetCategoriesStoreResponse.d.ts +5 -5
- package/dist/Store/GetStoreHistoryRequest.d.ts +5 -5
- package/dist/Store/GetStoreHistoryResponse.d.ts +6 -6
- package/dist/Store/GetStoreItemsResponse.d.ts +5 -5
- package/dist/Store/StoreCategory.d.ts +7 -7
- package/dist/Store/StoreCategoryPublicMeta.d.ts +4 -4
- package/dist/Store/StoreItem.d.ts +12 -12
- package/dist/Store/StoreItemPublicMeta.d.ts +12 -12
- package/dist/Store/StoreItemPurchased.d.ts +11 -11
- package/dist/Store/StoreItemType.d.ts +16 -16
- package/dist/Store/index.d.ts +13 -13
- package/dist/Tournaments/GetTournamentInfoRequest.d.ts +4 -4
- package/dist/Tournaments/GetTournamentInfoResponse.d.ts +22 -22
- package/dist/Tournaments/GetTournamentsRequest.d.ts +3 -3
- package/dist/Tournaments/GetTournamentsResponse.d.ts +6 -6
- package/dist/Tournaments/Tournament.d.ts +59 -59
- package/dist/Tournaments/TournamentInstanceStatus.d.ts +10 -10
- package/dist/Tournaments/TournamentPlayer.d.ts +9 -9
- package/dist/Tournaments/TournamentPrize.d.ts +10 -10
- package/dist/Tournaments/TournamentPublicMeta.d.ts +27 -27
- package/dist/Tournaments/TournamentRegisterRequest.d.ts +4 -4
- package/dist/Tournaments/TournamentRegisterResponse.d.ts +5 -5
- package/dist/Tournaments/TournamentRegistrationError.d.ts +11 -11
- package/dist/Tournaments/TournamentRegistrationStatus.d.ts +22 -22
- package/dist/Tournaments/TournamentRegistrationType.d.ts +11 -11
- package/dist/Tournaments/TournamentType.d.ts +5 -5
- package/dist/Tournaments/TournamentUtils.d.ts +27 -27
- package/dist/Tournaments/index.d.ts +16 -16
- package/dist/WSAPI/WSAPI.d.ts +445 -445
- package/dist/WSAPI/WSAPITypes.d.ts +621 -621
- package/dist/index.d.ts +15 -15
- package/dist/index.js +375 -367
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +383 -376
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TMissionOrBadgeTask.md +10 -1
- package/package.json +1 -1
- package/src/Core/CoreUtils.ts +9 -9
- package/src/Missions/AchievementTaskPublicMeta.ts +1 -0
- package/src/Missions/UserAchievement.ts +1 -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 = "
|
|
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
|
}();
|
|
@@ -854,7 +861,8 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
|
|
|
854
861
|
is_completed: t.isCompleted,
|
|
855
862
|
progress: t.userProgress,
|
|
856
863
|
execution_count_expected: t.executionCount,
|
|
857
|
-
execution_count_actual: t.userExecutedCount
|
|
864
|
+
execution_count_actual: t.userExecutedCount,
|
|
865
|
+
display_progress_as_count: t.task_public_meta.display_progress_as_count
|
|
858
866
|
};
|
|
859
867
|
}),
|
|
860
868
|
related_games: (r.related_games || []).map(function (g) {
|
|
@@ -1228,15 +1236,15 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1228
1236
|
});
|
|
1229
1237
|
}
|
|
1230
1238
|
}
|
|
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**
|
|
1239
|
+
/** Returns information about current user
|
|
1240
|
+
*
|
|
1241
|
+
* **Example**:
|
|
1242
|
+
* ```
|
|
1243
|
+
* _smartico.api.getUserProfile().then((result) => {
|
|
1244
|
+
* console.log(result);
|
|
1245
|
+
* });
|
|
1246
|
+
* ```
|
|
1247
|
+
* **Visitor mode: not supported**
|
|
1240
1248
|
* */
|
|
1241
1249
|
var _proto = WSAPI.prototype;
|
|
1242
1250
|
_proto.getUserProfile = function getUserProfile() {
|
|
@@ -1248,15 +1256,15 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1248
1256
|
throw new Error('Tracker is not initialized, cannot getUserProfile');
|
|
1249
1257
|
}
|
|
1250
1258
|
}
|
|
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**
|
|
1259
|
+
/** Check if user belongs to specific segments
|
|
1260
|
+
* **Example**:
|
|
1261
|
+
* ```
|
|
1262
|
+
* _smartico.api.checkSegmentMatch(1).then((result) => {
|
|
1263
|
+
* console.log(result);
|
|
1264
|
+
* });
|
|
1265
|
+
* ```
|
|
1266
|
+
*
|
|
1267
|
+
* **Visitor mode: not supported**
|
|
1260
1268
|
*/;
|
|
1261
1269
|
_proto.checkSegmentMatch = function checkSegmentMatch(segment_id) {
|
|
1262
1270
|
try {
|
|
@@ -1274,14 +1282,14 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1274
1282
|
return Promise.reject(e);
|
|
1275
1283
|
}
|
|
1276
1284
|
}
|
|
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**
|
|
1285
|
+
/** Check if user belongs to specific list of segments
|
|
1286
|
+
* **Example**:
|
|
1287
|
+
* ```
|
|
1288
|
+
* _smartico.api.checkSegmentListMatch([1, 2, 3]).then((result) => {
|
|
1289
|
+
* console.log(result);
|
|
1290
|
+
* });
|
|
1291
|
+
* ```
|
|
1292
|
+
* **Visitor mode: not supported**
|
|
1285
1293
|
*/
|
|
1286
1294
|
;
|
|
1287
1295
|
_proto.checkSegmentListMatch = function checkSegmentListMatch(segment_ids) {
|
|
@@ -1292,20 +1300,20 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1292
1300
|
return Promise.reject(e);
|
|
1293
1301
|
}
|
|
1294
1302
|
}
|
|
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
|
-
* ```
|
|
1303
|
+
/** Returns all the levels available the current user
|
|
1304
|
+
* **Example**:
|
|
1305
|
+
* ```
|
|
1306
|
+
* _smartico.api.getLevels().then((result) => {
|
|
1307
|
+
* console.log(result);
|
|
1308
|
+
* });
|
|
1309
|
+
* ```
|
|
1310
|
+
*
|
|
1311
|
+
* **Example in the Visitor mode**:
|
|
1312
|
+
* ```
|
|
1313
|
+
* _smartico.vapi('EN').getLevels().then((result) => {
|
|
1314
|
+
* console.log(result);
|
|
1315
|
+
* });
|
|
1316
|
+
* ```
|
|
1309
1317
|
*/
|
|
1310
1318
|
;
|
|
1311
1319
|
_proto.getLevels = function getLevels() {
|
|
@@ -1318,24 +1326,24 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1318
1326
|
return Promise.reject(e);
|
|
1319
1327
|
}
|
|
1320
1328
|
}
|
|
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
|
-
* ```
|
|
1329
|
+
/** Returns all the missions available the current user.
|
|
1330
|
+
* The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
1331
|
+
* Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
1332
|
+
* The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it.
|
|
1333
|
+
*
|
|
1334
|
+
* **Example**:
|
|
1335
|
+
* ```
|
|
1336
|
+
* _smartico.api.getMissions().then((result) => {
|
|
1337
|
+
* console.log(result);
|
|
1338
|
+
* });
|
|
1339
|
+
* ```
|
|
1340
|
+
*
|
|
1341
|
+
* **Example in the Visitor mode**:
|
|
1342
|
+
* ```
|
|
1343
|
+
* _smartico.vapi('EN').getMissions().then((result) => {
|
|
1344
|
+
* console.log(result);
|
|
1345
|
+
* });
|
|
1346
|
+
* ```
|
|
1339
1347
|
*/
|
|
1340
1348
|
;
|
|
1341
1349
|
_proto.getMissions = function getMissions(_temp) {
|
|
@@ -1353,10 +1361,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1353
1361
|
return Promise.reject(e);
|
|
1354
1362
|
}
|
|
1355
1363
|
}
|
|
1356
|
-
/**
|
|
1357
|
-
* Returns all the badges available the current user
|
|
1358
|
-
*
|
|
1359
|
-
* **Visitor mode: not supported**
|
|
1364
|
+
/**
|
|
1365
|
+
* Returns all the badges available the current user
|
|
1366
|
+
*
|
|
1367
|
+
* **Visitor mode: not supported**
|
|
1360
1368
|
*/
|
|
1361
1369
|
;
|
|
1362
1370
|
_proto.getBadges = function getBadges() {
|
|
@@ -1369,19 +1377,19 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1369
1377
|
return Promise.reject(e);
|
|
1370
1378
|
}
|
|
1371
1379
|
}
|
|
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**
|
|
1380
|
+
/**
|
|
1381
|
+
* Returns the extra counters for the current user level.
|
|
1382
|
+
* These are counters that are configured for each Smartico client separatly by request.
|
|
1383
|
+
* For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
|
|
1384
|
+
*
|
|
1385
|
+
* **Example**:
|
|
1386
|
+
* ```
|
|
1387
|
+
* _smartico.api.getUserLevelExtraCounters().then((result) => {
|
|
1388
|
+
* console.log(result);
|
|
1389
|
+
* });
|
|
1390
|
+
* ```
|
|
1391
|
+
*
|
|
1392
|
+
* **Visitor mode: not supported**
|
|
1385
1393
|
*/
|
|
1386
1394
|
;
|
|
1387
1395
|
_proto.getUserLevelExtraCounters = function getUserLevelExtraCounters() {
|
|
@@ -1394,23 +1402,23 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1394
1402
|
return Promise.reject(e);
|
|
1395
1403
|
}
|
|
1396
1404
|
}
|
|
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
|
-
* ```
|
|
1405
|
+
/**
|
|
1406
|
+
*
|
|
1407
|
+
* Returns all the store items available the current user
|
|
1408
|
+
*
|
|
1409
|
+
* **Example**:
|
|
1410
|
+
* ```
|
|
1411
|
+
* _smartico.api.getStoreItems().then((result) => {
|
|
1412
|
+
* console.log(result);
|
|
1413
|
+
* });
|
|
1414
|
+
* ```
|
|
1415
|
+
*
|
|
1416
|
+
* **Example in the Visitor mode**:
|
|
1417
|
+
* ```
|
|
1418
|
+
* _smartico.vapi('EN').getStoreItems().then((result) => {
|
|
1419
|
+
* console.log(result);
|
|
1420
|
+
* });
|
|
1421
|
+
* ```
|
|
1414
1422
|
*/
|
|
1415
1423
|
;
|
|
1416
1424
|
_proto.getStoreItems = function getStoreItems() {
|
|
@@ -1423,15 +1431,15 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1423
1431
|
return Promise.reject(e);
|
|
1424
1432
|
}
|
|
1425
1433
|
}
|
|
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**
|
|
1434
|
+
/** Buy the specific shop item by item_id. Returns the err_code in case of success or error.
|
|
1435
|
+
* **Example**:
|
|
1436
|
+
* ```
|
|
1437
|
+
* _smartico.api.buyStoreItem(1).then((result) => {
|
|
1438
|
+
* console.log(result);
|
|
1439
|
+
* });
|
|
1440
|
+
* ```
|
|
1441
|
+
*
|
|
1442
|
+
* **Visitor mode: not supported**
|
|
1435
1443
|
*/
|
|
1436
1444
|
;
|
|
1437
1445
|
_proto.buyStoreItem = function buyStoreItem(item_id) {
|
|
@@ -1448,23 +1456,23 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1448
1456
|
return Promise.reject(e);
|
|
1449
1457
|
}
|
|
1450
1458
|
}
|
|
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
|
-
* ```
|
|
1459
|
+
/**
|
|
1460
|
+
*
|
|
1461
|
+
* Returns store categories
|
|
1462
|
+
*
|
|
1463
|
+
* **Example**:
|
|
1464
|
+
* ```
|
|
1465
|
+
* _smartico.api.getStoreCategories().then((result) => {
|
|
1466
|
+
* console.log(result);
|
|
1467
|
+
* });
|
|
1468
|
+
* ```
|
|
1469
|
+
*
|
|
1470
|
+
* **Example in the Visitor mode**:
|
|
1471
|
+
* ```
|
|
1472
|
+
* _smartico.vapi('EN').getStoreCategories().then((result) => {
|
|
1473
|
+
* console.log(result);
|
|
1474
|
+
* });
|
|
1475
|
+
* ```
|
|
1468
1476
|
*/
|
|
1469
1477
|
;
|
|
1470
1478
|
_proto.getStoreCategories = function getStoreCategories() {
|
|
@@ -1477,19 +1485,19 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1477
1485
|
return Promise.reject(e);
|
|
1478
1486
|
}
|
|
1479
1487
|
}
|
|
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**
|
|
1488
|
+
/**
|
|
1489
|
+
* Returns purchased items based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
|
|
1490
|
+
* The maximum number of items per request is limited to 20.
|
|
1491
|
+
* You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
|
|
1492
|
+
*
|
|
1493
|
+
* **Example**:
|
|
1494
|
+
* ```
|
|
1495
|
+
* _smartico.api.getStorePurchasedItems().then((result) => {
|
|
1496
|
+
* console.log(result);
|
|
1497
|
+
* });
|
|
1498
|
+
* ```
|
|
1499
|
+
*
|
|
1500
|
+
* **Visitor mode: not supported**
|
|
1493
1501
|
*/
|
|
1494
1502
|
;
|
|
1495
1503
|
_proto.getStorePurchasedItems = function getStorePurchasedItems(_temp2) {
|
|
@@ -1509,23 +1517,23 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1509
1517
|
return Promise.reject(e);
|
|
1510
1518
|
}
|
|
1511
1519
|
}
|
|
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
|
-
*
|
|
1520
|
+
/**
|
|
1521
|
+
* Returns missions & badges categories
|
|
1522
|
+
*
|
|
1523
|
+
* **Example**:
|
|
1524
|
+
* ```
|
|
1525
|
+
* _smartico.api.getAchCategories().then((result) => {
|
|
1526
|
+
* console.log(result);
|
|
1527
|
+
* });
|
|
1528
|
+
* ```
|
|
1529
|
+
*
|
|
1530
|
+
* **Example in the Visitor mode**:
|
|
1531
|
+
* ```
|
|
1532
|
+
* _smartico.vapi('EN').getAchCategories().then((result) => {
|
|
1533
|
+
* console.log(result);
|
|
1534
|
+
* });
|
|
1535
|
+
* ```
|
|
1536
|
+
*
|
|
1529
1537
|
* */
|
|
1530
1538
|
;
|
|
1531
1539
|
_proto.getAchCategories = function getAchCategories() {
|
|
@@ -1538,23 +1546,23 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1538
1546
|
return Promise.reject(e);
|
|
1539
1547
|
}
|
|
1540
1548
|
}
|
|
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
|
-
*
|
|
1549
|
+
/**
|
|
1550
|
+
* Returns list of custom sections
|
|
1551
|
+
*
|
|
1552
|
+
* **Example**:
|
|
1553
|
+
* ```
|
|
1554
|
+
* _smartico.api.getCustomSections().then((result) => {
|
|
1555
|
+
* console.log(result);
|
|
1556
|
+
* });
|
|
1557
|
+
* ```
|
|
1558
|
+
*
|
|
1559
|
+
* **Example in the Visitor mode**:
|
|
1560
|
+
* ```
|
|
1561
|
+
* _smartico.vapi('EN').getCustomSections().then((result) => {
|
|
1562
|
+
* console.log(result);
|
|
1563
|
+
* });
|
|
1564
|
+
* ```
|
|
1565
|
+
*
|
|
1558
1566
|
* */
|
|
1559
1567
|
;
|
|
1560
1568
|
_proto.getCustomSections = function getCustomSections() {
|
|
@@ -1567,25 +1575,25 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1567
1575
|
return Promise.reject(e);
|
|
1568
1576
|
}
|
|
1569
1577
|
}
|
|
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
|
-
*
|
|
1578
|
+
/**
|
|
1579
|
+
* Returns the list of mini-games available for user
|
|
1580
|
+
* 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.
|
|
1581
|
+
* 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.
|
|
1582
|
+
*
|
|
1583
|
+
* **Example**:
|
|
1584
|
+
* ```
|
|
1585
|
+
* _smartico.api.getMiniGames().then((result) => {
|
|
1586
|
+
* console.log(result);
|
|
1587
|
+
* });
|
|
1588
|
+
* ```
|
|
1589
|
+
*
|
|
1590
|
+
* **Example in the Visitor mode**:
|
|
1591
|
+
* ```
|
|
1592
|
+
* _smartico.vapi('EN').getMiniGames().then((result) => {
|
|
1593
|
+
* console.log(result);
|
|
1594
|
+
* });
|
|
1595
|
+
* ```
|
|
1596
|
+
*
|
|
1589
1597
|
*/
|
|
1590
1598
|
;
|
|
1591
1599
|
_proto.getMiniGames = function getMiniGames(_temp3) {
|
|
@@ -1603,10 +1611,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1603
1611
|
return Promise.reject(e);
|
|
1604
1612
|
}
|
|
1605
1613
|
}
|
|
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**
|
|
1614
|
+
/**
|
|
1615
|
+
* Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
|
|
1616
|
+
*
|
|
1617
|
+
* **Visitor mode: not supported**
|
|
1610
1618
|
*/
|
|
1611
1619
|
;
|
|
1612
1620
|
_proto.playMiniGame = function playMiniGame(template_id) {
|
|
@@ -1625,10 +1633,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1625
1633
|
return Promise.reject(e);
|
|
1626
1634
|
}
|
|
1627
1635
|
}
|
|
1628
|
-
/**
|
|
1629
|
-
* Requests an opt-in for the specified mission_id. Returns the err_code.
|
|
1630
|
-
*
|
|
1631
|
-
* **Visitor mode: not supported**
|
|
1636
|
+
/**
|
|
1637
|
+
* Requests an opt-in for the specified mission_id. Returns the err_code.
|
|
1638
|
+
*
|
|
1639
|
+
* **Visitor mode: not supported**
|
|
1632
1640
|
*/
|
|
1633
1641
|
;
|
|
1634
1642
|
_proto.requestMissionOptIn = function requestMissionOptIn(mission_id) {
|
|
@@ -1645,10 +1653,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1645
1653
|
return Promise.reject(e);
|
|
1646
1654
|
}
|
|
1647
1655
|
}
|
|
1648
|
-
/**
|
|
1649
|
-
* Request for claim reward for the specified mission id. Returns the err_code.
|
|
1650
|
-
*
|
|
1651
|
-
* **Visitor mode: not supported**
|
|
1656
|
+
/**
|
|
1657
|
+
* Request for claim reward for the specified mission id. Returns the err_code.
|
|
1658
|
+
*
|
|
1659
|
+
* **Visitor mode: not supported**
|
|
1652
1660
|
*/
|
|
1653
1661
|
;
|
|
1654
1662
|
_proto.requestMissionClaimReward = function requestMissionClaimReward(mission_id, ach_completed_id) {
|
|
@@ -1665,23 +1673,23 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1665
1673
|
return Promise.reject(e);
|
|
1666
1674
|
}
|
|
1667
1675
|
}
|
|
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
|
-
* ```
|
|
1676
|
+
/** Returns all the active instances of tournaments
|
|
1677
|
+
* 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.
|
|
1678
|
+
* The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.
|
|
1679
|
+
*
|
|
1680
|
+
* **Example**:
|
|
1681
|
+
* ```
|
|
1682
|
+
* _smartico.api.getTournamentsList().then((result) => {
|
|
1683
|
+
* console.log(result);
|
|
1684
|
+
* });
|
|
1685
|
+
* ```
|
|
1686
|
+
*
|
|
1687
|
+
* **Example in the Visitor mode**:
|
|
1688
|
+
* ```
|
|
1689
|
+
* _smartico.vapi('EN').getTournamentsList().then((result) => {
|
|
1690
|
+
* console.log(result);
|
|
1691
|
+
* });
|
|
1692
|
+
* ```
|
|
1685
1693
|
* */
|
|
1686
1694
|
;
|
|
1687
1695
|
_proto.getTournamentsList = function getTournamentsList(_temp4) {
|
|
@@ -1699,30 +1707,30 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1699
1707
|
return Promise.reject(e);
|
|
1700
1708
|
}
|
|
1701
1709
|
}
|
|
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
|
-
* ```
|
|
1710
|
+
/**
|
|
1711
|
+
* Returns details information of specific tournament instance, the response will include tournament info and the leaderboard of players
|
|
1712
|
+
*
|
|
1713
|
+
* **Example**:
|
|
1714
|
+
* ```
|
|
1715
|
+
* _smartico.api.getTournamentsList().then((result) => {
|
|
1716
|
+
* if (result.length > 0) {
|
|
1717
|
+
* _smartico.api.getTournamentInstanceInfo(result[0].instance_id).then((result) => {
|
|
1718
|
+
* console.log(result);
|
|
1719
|
+
* });
|
|
1720
|
+
* }
|
|
1721
|
+
* });
|
|
1722
|
+
* ```
|
|
1723
|
+
*
|
|
1724
|
+
* **Example in the Visitor mode**:
|
|
1725
|
+
* ```
|
|
1726
|
+
* _smartico.vapi('EN').getTournamentsList().then((result) => {
|
|
1727
|
+
* if (result.length > 0) {
|
|
1728
|
+
* _smartico.vapi('EN').getTournamentInstanceInfo(result[0].instance_id).then((result) => {
|
|
1729
|
+
* console.log(result);
|
|
1730
|
+
* });
|
|
1731
|
+
* }
|
|
1732
|
+
* });
|
|
1733
|
+
* ```
|
|
1726
1734
|
*/
|
|
1727
1735
|
;
|
|
1728
1736
|
_proto.getTournamentInstanceInfo = function getTournamentInstanceInfo(tournamentInstanceId) {
|
|
@@ -1733,10 +1741,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1733
1741
|
return Promise.reject(e);
|
|
1734
1742
|
}
|
|
1735
1743
|
}
|
|
1736
|
-
/**
|
|
1737
|
-
* Requests registration for the specified tournament instance. Returns the err_code.
|
|
1738
|
-
*
|
|
1739
|
-
* **Visitor mode: not supported**
|
|
1744
|
+
/**
|
|
1745
|
+
* Requests registration for the specified tournament instance. Returns the err_code.
|
|
1746
|
+
*
|
|
1747
|
+
* **Visitor mode: not supported**
|
|
1740
1748
|
*/
|
|
1741
1749
|
;
|
|
1742
1750
|
_proto.registerInTournament = function registerInTournament(tournamentInstanceId) {
|
|
@@ -1753,23 +1761,23 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1753
1761
|
return Promise.reject(e);
|
|
1754
1762
|
}
|
|
1755
1763
|
}
|
|
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
|
-
* ```
|
|
1764
|
+
/**
|
|
1765
|
+
* 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.
|
|
1766
|
+
* For example, if the type is Weekly and getPreviousPeriod is true, a leaderboard for the previous week will be returned.
|
|
1767
|
+
*
|
|
1768
|
+
* **Example**:
|
|
1769
|
+
* ```
|
|
1770
|
+
* _smartico.api.getLeaderBoard(1).then((result) => {
|
|
1771
|
+
* console.log(result);
|
|
1772
|
+
* });
|
|
1773
|
+
* ```
|
|
1774
|
+
*
|
|
1775
|
+
* **Example in the Visitor mode**:
|
|
1776
|
+
* ```
|
|
1777
|
+
* _smartico.vapi('EN').getLeaderBoard(1).then((result) => {
|
|
1778
|
+
* console.log(result);
|
|
1779
|
+
* });
|
|
1780
|
+
* ```
|
|
1773
1781
|
*/
|
|
1774
1782
|
;
|
|
1775
1783
|
_proto.getLeaderBoard = function getLeaderBoard(periodType, getPreviousPeriod) {
|
|
@@ -1782,17 +1790,17 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1782
1790
|
return Promise.reject(e);
|
|
1783
1791
|
}
|
|
1784
1792
|
}
|
|
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
|
|
1793
|
+
/** Returns inbox messages based on the provided parameters. "From" and "to" indicate the range of messages to be fetched.
|
|
1794
|
+
* The maximum number of messages per request is limited to 20. An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
|
|
1795
|
+
* You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
|
|
1796
|
+
* This functions return list of messages without the body of the message.
|
|
1797
|
+
* 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.
|
|
1798
|
+
* All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
|
|
1799
|
+
* 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.
|
|
1800
|
+
*
|
|
1801
|
+
* **Visitor mode: not supported**
|
|
1802
|
+
*
|
|
1803
|
+
* @param params
|
|
1796
1804
|
*/
|
|
1797
1805
|
;
|
|
1798
1806
|
_proto.getInboxMessages = function getInboxMessages(_temp5) {
|
|
@@ -1811,10 +1819,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1811
1819
|
return Promise.reject(e);
|
|
1812
1820
|
}
|
|
1813
1821
|
}
|
|
1814
|
-
/**
|
|
1815
|
-
* Returns the message body of the specified message guid.
|
|
1816
|
-
*
|
|
1817
|
-
* **Visitor mode: not supported**
|
|
1822
|
+
/**
|
|
1823
|
+
* Returns the message body of the specified message guid.
|
|
1824
|
+
*
|
|
1825
|
+
* **Visitor mode: not supported**
|
|
1818
1826
|
*/
|
|
1819
1827
|
;
|
|
1820
1828
|
_proto.getInboxMessageBody = function getInboxMessageBody(messageGuid) {
|
|
@@ -1825,10 +1833,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1825
1833
|
return Promise.reject(e);
|
|
1826
1834
|
}
|
|
1827
1835
|
}
|
|
1828
|
-
/**
|
|
1829
|
-
* Requests to mark inbox message with specified guid as read
|
|
1830
|
-
*
|
|
1831
|
-
* **Visitor mode: not supported**
|
|
1836
|
+
/**
|
|
1837
|
+
* Requests to mark inbox message with specified guid as read
|
|
1838
|
+
*
|
|
1839
|
+
* **Visitor mode: not supported**
|
|
1832
1840
|
*/
|
|
1833
1841
|
;
|
|
1834
1842
|
_proto.markInboxMessageAsRead = function markInboxMessageAsRead(messageGuid) {
|
|
@@ -1844,10 +1852,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1844
1852
|
return Promise.reject(e);
|
|
1845
1853
|
}
|
|
1846
1854
|
}
|
|
1847
|
-
/**
|
|
1848
|
-
* Requests to mark all inbox messages as rea
|
|
1849
|
-
*
|
|
1850
|
-
* **Visitor mode: not supported**
|
|
1855
|
+
/**
|
|
1856
|
+
* Requests to mark all inbox messages as rea
|
|
1857
|
+
*
|
|
1858
|
+
* **Visitor mode: not supported**
|
|
1851
1859
|
*/
|
|
1852
1860
|
;
|
|
1853
1861
|
_proto.markAllInboxMessagesAsRead = function markAllInboxMessagesAsRead() {
|
|
@@ -1863,10 +1871,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1863
1871
|
return Promise.reject(e);
|
|
1864
1872
|
}
|
|
1865
1873
|
}
|
|
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**
|
|
1874
|
+
/**
|
|
1875
|
+
* Requests to mark inbox message with specified guid as favorite. Pass mark true to add message to favorite and false to remove.
|
|
1876
|
+
*
|
|
1877
|
+
* **Visitor mode: not supported**
|
|
1870
1878
|
*/
|
|
1871
1879
|
;
|
|
1872
1880
|
_proto.markUnmarkInboxMessageAsFavorite = function markUnmarkInboxMessageAsFavorite(messageGuid, mark) {
|
|
@@ -1882,10 +1890,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1882
1890
|
return Promise.reject(e);
|
|
1883
1891
|
}
|
|
1884
1892
|
}
|
|
1885
|
-
/**
|
|
1886
|
-
* Requests to delete inbox message
|
|
1887
|
-
*
|
|
1888
|
-
* **Visitor mode: not supported**
|
|
1893
|
+
/**
|
|
1894
|
+
* Requests to delete inbox message
|
|
1895
|
+
*
|
|
1896
|
+
* **Visitor mode: not supported**
|
|
1889
1897
|
*/
|
|
1890
1898
|
;
|
|
1891
1899
|
_proto.deleteInboxMessage = function deleteInboxMessage(messageGuid) {
|
|
@@ -1901,10 +1909,10 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1901
1909
|
return Promise.reject(e);
|
|
1902
1910
|
}
|
|
1903
1911
|
}
|
|
1904
|
-
/**
|
|
1905
|
-
* Requests to delete all inbox messages
|
|
1906
|
-
*
|
|
1907
|
-
* **Visitor mode: not supported**
|
|
1912
|
+
/**
|
|
1913
|
+
* Requests to delete all inbox messages
|
|
1914
|
+
*
|
|
1915
|
+
* **Visitor mode: not supported**
|
|
1908
1916
|
*/
|
|
1909
1917
|
;
|
|
1910
1918
|
_proto.deleteAllInboxMessages = function deleteAllInboxMessages() {
|
|
@@ -1920,8 +1928,8 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
1920
1928
|
return Promise.reject(e);
|
|
1921
1929
|
}
|
|
1922
1930
|
}
|
|
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.
|
|
1931
|
+
/**
|
|
1932
|
+
* 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
1933
|
*/
|
|
1926
1934
|
;
|
|
1927
1935
|
_proto.getTranslations = function getTranslations(lang_code) {
|
|
@@ -2047,24 +2055,24 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2047
2055
|
return Promise.reject(e);
|
|
2048
2056
|
}
|
|
2049
2057
|
}
|
|
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
|
-
* ```
|
|
2058
|
+
/** Returns list of Jackpots that are active in the systen and matching to the filter definition.
|
|
2059
|
+
* If filter is not provided, all active jackpots will be returned.
|
|
2060
|
+
* Filter can be used to get jackpots related to specific game or specific jackpot template.
|
|
2061
|
+
* 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
|
|
2062
|
+
*
|
|
2063
|
+
* **Example**:
|
|
2064
|
+
* ```
|
|
2065
|
+
* _smartico.api.jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
|
|
2066
|
+
* console.log(result);
|
|
2067
|
+
* });
|
|
2068
|
+
* ```
|
|
2069
|
+
*
|
|
2070
|
+
* **Example in the Visitor mode**:
|
|
2071
|
+
* ```
|
|
2072
|
+
* _smartico.vapi('EN').jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
|
|
2073
|
+
* console.log(result);
|
|
2074
|
+
* });
|
|
2075
|
+
* ```
|
|
2068
2076
|
*/
|
|
2069
2077
|
;
|
|
2070
2078
|
_proto.jackpotGet = function jackpotGet(filter) {
|
|
@@ -2127,19 +2135,19 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2127
2135
|
return Promise.reject(e);
|
|
2128
2136
|
}
|
|
2129
2137
|
}
|
|
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
|
-
*
|
|
2138
|
+
/**
|
|
2139
|
+
* Opt-in currently logged in user to the jackpot with the specified jp_template_id.
|
|
2140
|
+
* You may call jackpotGet method after doing optin to see that user is opted in to the jackpot.
|
|
2141
|
+
*
|
|
2142
|
+
* **Example**:
|
|
2143
|
+
* ```
|
|
2144
|
+
* _smartico.api.jackpotOptIn({ jp_template_id: 123 }).then((result) => {
|
|
2145
|
+
* console.log('Opted in to the jackpot');
|
|
2146
|
+
* });
|
|
2147
|
+
* ```
|
|
2148
|
+
*
|
|
2149
|
+
* **Visitor mode: not supported**
|
|
2150
|
+
*
|
|
2143
2151
|
*/
|
|
2144
2152
|
;
|
|
2145
2153
|
_proto.jackpotOptIn = function jackpotOptIn(filter) {
|
|
@@ -2154,19 +2162,19 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2154
2162
|
return Promise.reject(e);
|
|
2155
2163
|
}
|
|
2156
2164
|
}
|
|
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
|
-
*
|
|
2165
|
+
/**
|
|
2166
|
+
* Opt-out currently logged in user from the jackpot with the specified jp_template_id.
|
|
2167
|
+
* You may call jackpotGet method after doing optout to see that user is not opted in to the jackpot.
|
|
2168
|
+
*
|
|
2169
|
+
* **Example**:
|
|
2170
|
+
* ```
|
|
2171
|
+
* _smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
|
|
2172
|
+
* console.log('Opted out from the jackpot');
|
|
2173
|
+
* });
|
|
2174
|
+
* ```
|
|
2175
|
+
*
|
|
2176
|
+
* **Visitor mode: not supported**
|
|
2177
|
+
*
|
|
2170
2178
|
*/
|
|
2171
2179
|
;
|
|
2172
2180
|
_proto.jackpotOptOut = function jackpotOptOut(filter) {
|
|
@@ -2985,17 +2993,17 @@ var SmarticoAPI = /*#__PURE__*/function () {
|
|
|
2985
2993
|
include_users: true
|
|
2986
2994
|
});
|
|
2987
2995
|
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
|
|
2996
|
+
var _response$map$boardKe, _response$map$boardKe2;
|
|
2989
2997
|
var boardKey = Object.keys(response.map).find(function (k) {
|
|
2990
2998
|
return period_type_id === undefined || k === (period_type_id == null ? void 0 : period_type_id.toString());
|
|
2991
2999
|
});
|
|
2992
3000
|
if (boardKey === undefined) {
|
|
2993
3001
|
return undefined;
|
|
2994
3002
|
}
|
|
2995
|
-
if ((_response$map$boardKe = response.map[boardKey]) != null && (_response$map$
|
|
3003
|
+
if ((_response$map$boardKe = response.map[boardKey]) != null && (_response$map$boardKe = _response$map$boardKe.userPosition) != null && _response$map$boardKe.avatar_id) {
|
|
2996
3004
|
response.map[boardKey].userPosition.avatar_url = CoreUtils.avatarUrl(response.map[boardKey].userPosition.avatar_id, _this39.avatarDomain);
|
|
2997
3005
|
}
|
|
2998
|
-
if ((_response$map$
|
|
3006
|
+
if ((_response$map$boardKe2 = response.map[boardKey]) != null && (_response$map$boardKe2 = _response$map$boardKe2.positions) != null && _response$map$boardKe2.length) {
|
|
2999
3007
|
response.map[boardKey].positions.forEach(function (p) {
|
|
3000
3008
|
p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, _this39.avatarDomain);
|
|
3001
3009
|
});
|