@smartico/public-api 0.0.364 → 0.0.365
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/ClassId.d.ts +8 -0
- package/dist/Clans/Clan.d.ts +17 -0
- package/dist/Clans/GetClanInfoRequest.d.ts +5 -0
- package/dist/Clans/GetClanInfoResponse.d.ts +22 -0
- package/dist/Clans/GetClanListRequest.d.ts +4 -0
- package/dist/Clans/GetClanListResponse.d.ts +9 -0
- package/dist/Clans/JoinClanRequest.d.ts +5 -0
- package/dist/Clans/JoinClanResponse.d.ts +5 -0
- package/dist/Clans/index.d.ts +7 -0
- package/dist/SmarticoAPI.d.ts +8 -1
- package/dist/SmarticoLib/index.d.ts +196 -0
- package/dist/Tournaments/GetClanTournamentPlayersRequest.d.ts +6 -0
- package/dist/Tournaments/GetClanTournamentPlayersResponse.d.ts +40 -0
- package/dist/Tournaments/GetTournamentInfoResponse.d.ts +11 -0
- package/dist/Tournaments/Tournament.d.ts +2 -0
- package/dist/Tournaments/TournamentClan.d.ts +27 -0
- package/dist/Tournaments/index.d.ts +3 -0
- package/dist/WSAPI/WSAPI.d.ts +34 -1
- package/dist/WSAPI/WSAPITypes.d.ts +144 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +560 -289
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +192 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +99 -330
- package/docs/api/classes/SAWUtils.md +25 -11
- package/docs/api/classes/WSAPI.md +737 -379
- package/docs/api/enumerations/AchCustomLayoutTheme.md +25 -0
- package/docs/api/enumerations/AchCustomSectionType.md +79 -0
- package/docs/api/{enums → enumerations}/AchMissionsTabsOptions.md +5 -5
- package/docs/api/{enums → enumerations}/AchOverviewMissionsFilter.md +9 -9
- package/docs/api/{enums → enumerations}/AchievementAvailabilityStatus.md +29 -29
- package/docs/api/enumerations/AchievementStatus.md +49 -0
- package/docs/api/{enums → enumerations}/AchievementTaskType.md +3 -3
- package/docs/api/{enums → enumerations}/AchievementType.md +3 -3
- package/docs/api/enumerations/ActivityTypeLimited.md +115 -0
- package/docs/api/{enums → enumerations}/AttemptPeriodType.md +7 -7
- package/docs/api/{enums → enumerations}/BadgesTimeLimitStates.md +11 -11
- package/docs/api/{enums → enumerations}/BonusStatus-1.md +11 -11
- package/docs/api/enumerations/BonusStatus.md +37 -0
- package/docs/api/{enums → enumerations}/BuyStoreItemErrorCode.md +21 -21
- package/docs/api/{enums → enumerations}/GPRoundStatus.md +9 -9
- package/docs/api/{enums → enumerations}/GamePickMarketType.md +3 -3
- package/docs/api/{enums → enumerations}/GamePickResolutionType.md +7 -7
- package/docs/api/{enums → enumerations}/GamePickScoreType.md +3 -3
- package/docs/api/enumerations/GamePickSportType.md +375 -0
- package/docs/api/{enums → enumerations}/GameRoundOrderType.md +7 -7
- package/docs/api/{enums → enumerations}/InboxCategories.md +5 -5
- package/docs/api/enumerations/InboxMessageType.md +55 -0
- package/docs/api/{enums → enumerations}/InboxReadStatus.md +3 -3
- package/docs/api/{enums → enumerations}/JackPotTemparature.md +7 -7
- package/docs/api/{enums → enumerations}/JackpotContributionType.md +3 -3
- package/docs/api/{enums → enumerations}/JackpotType.md +3 -3
- package/docs/api/{enums → enumerations}/LeaderBoardPeriodType.md +5 -5
- package/docs/api/enumerations/LiquidEntityData.md +73 -0
- package/docs/api/enumerations/MiniGamePrizeTypeName.md +67 -0
- package/docs/api/{enums → enumerations}/OpenLinksType.md +3 -3
- package/docs/api/enumerations/PointChangeSourceType.md +109 -0
- package/docs/api/enumerations/PrizeModifiers.md +49 -0
- package/docs/api/enumerations/QuizAnswersValueType.md +121 -0
- package/docs/api/{enums → enumerations}/RaffleDrawInstanceState.md +5 -5
- package/docs/api/{enums → enumerations}/RaffleDrawTypeExecution.md +5 -5
- package/docs/api/{enums → enumerations}/RaffleTicketCapVisualization.md +5 -5
- package/docs/api/{enums → enumerations}/SAWAcknowledgeType.md +7 -7
- package/docs/api/enumerations/SAWAcknowledgeTypeName.md +25 -0
- package/docs/api/{enums → enumerations}/SAWAskForUsername.md +3 -3
- package/docs/api/enumerations/SAWBuyInType.md +31 -0
- package/docs/api/enumerations/SAWBuyInTypeName.md +37 -0
- package/docs/api/{enums → enumerations}/SAWExposeUserSpinId.md +3 -3
- package/docs/api/{enums → enumerations}/SAWExposeUserSpinIdName.md +3 -3
- package/docs/api/enumerations/SAWGPMarketType.md +157 -0
- package/docs/api/{enums → enumerations}/SAWGameDifficultyType.md +5 -5
- package/docs/api/{enums → enumerations}/SAWGameDifficultyTypeName.md +5 -5
- package/docs/api/{enums → enumerations}/SAWGameLayout.md +3 -3
- package/docs/api/{enums → enumerations}/SAWGameLayoutName.md +3 -3
- package/docs/api/enumerations/SAWGameType.md +73 -0
- package/docs/api/enumerations/SAWGameTypeName.md +79 -0
- package/docs/api/enumerations/SAWPrizeType.md +61 -0
- package/docs/api/{enums → enumerations}/SAWSpinErrorCode.md +19 -19
- package/docs/api/{enums → enumerations}/SAWWheelLayout.md +7 -7
- package/docs/api/enumerations/SAWWinSoundType.md +31 -0
- package/docs/api/{enums → enumerations}/ScheduledMissionType.md +5 -5
- package/docs/api/{enums → enumerations}/StoreItemPurchaseType.md +5 -5
- package/docs/api/enumerations/StoreItemType.md +37 -0
- package/docs/api/enumerations/StoreItemTypeName.md +43 -0
- package/docs/api/enumerations/TournamentInstanceStatus.md +43 -0
- package/docs/api/enumerations/TournamentRegistrationError.md +55 -0
- package/docs/api/enumerations/TournamentRegistrationStatus.md +43 -0
- package/docs/api/enumerations/TournamentRegistrationStatusName.md +49 -0
- package/docs/api/enumerations/TournamentRegistrationType.md +43 -0
- package/docs/api/{enums → enumerations}/TournamentType.md +5 -5
- package/docs/api/{enums → enumerations}/UserBalanceType.md +5 -5
- package/docs/api/functions/AchCategoryTransform.md +13 -0
- package/docs/api/functions/BonusItemsTransform.md +13 -0
- package/docs/api/functions/InboxMessageBodyTransform.md +13 -0
- package/docs/api/functions/SAWHistoryTransform.md +13 -0
- package/docs/api/functions/SAWTemplatesTransform.md +13 -0
- package/docs/api/functions/StoreCategoryTransform.md +13 -0
- package/docs/api/functions/StoreItemTransform.md +13 -0
- package/docs/api/functions/StoreItemTypeNamed.md +13 -0
- package/docs/api/functions/TournamentInstanceStatusName.md +13 -0
- package/docs/api/functions/TournamentItemsTransform.md +13 -0
- package/docs/api/functions/UICustomSectionTransform.md +13 -0
- package/docs/api/functions/UserAchievementTransform.md +13 -0
- package/docs/api/functions/enrichUserAchievementsWithBadgeState.md +13 -0
- package/docs/api/functions/tournamentInfoItemTransform.md +13 -0
- package/docs/api/interfaces/AchCategory.md +5 -5
- package/docs/api/interfaces/AchCategoryPublicMeta.md +5 -5
- package/docs/api/interfaces/AchRelatedGame-1.md +50 -15
- package/docs/api/interfaces/AchRelatedGame.md +35 -16
- package/docs/api/interfaces/AchievementPublicMeta.md +65 -65
- package/docs/api/interfaces/AchievementTaskPublicMeta.md +16 -16
- package/docs/api/interfaces/AffectsProgress.md +7 -7
- package/docs/api/interfaces/Bonus.md +37 -37
- package/docs/api/interfaces/BonusMetaMap-1.md +2 -2
- package/docs/api/interfaces/BonusMetaMap.md +2 -2
- package/docs/api/interfaces/BonusTemplateMetaMap-1.md +8 -8
- package/docs/api/interfaces/BonusTemplateMetaMap.md +8 -8
- package/docs/api/interfaces/Clan.md +53 -0
- package/docs/api/interfaces/ClanLeaderboardEntry.md +31 -0
- package/docs/api/interfaces/ClanPrizeStructureEntry.md +45 -0
- package/docs/api/interfaces/ClanPrizeTier.md +43 -0
- package/docs/api/interfaces/ClanPublicMeta.md +19 -0
- package/docs/api/interfaces/GamePickBoardUser.md +17 -17
- package/docs/api/interfaces/GamePickEvent.md +40 -38
- package/docs/api/interfaces/GamePickEventMeta.md +79 -59
- package/docs/api/interfaces/GamePickGameInfo.md +5 -5
- package/docs/api/interfaces/GamePickRequestParams.md +10 -12
- package/docs/api/interfaces/GamePickRound.md +96 -98
- package/docs/api/interfaces/GamePickRoundBase.md +58 -61
- package/docs/api/interfaces/GamePickRoundBoard.md +88 -90
- package/docs/api/interfaces/GamePickRoundPublicMeta.md +26 -26
- package/docs/api/interfaces/GamePickRoundRequestParams.md +15 -17
- package/docs/api/interfaces/GamePickUserInfo.md +34 -34
- package/docs/api/interfaces/GamesApiResponse.md +11 -11
- package/docs/api/interfaces/GetCustomSectionsResponse.md +23 -25
- package/docs/api/interfaces/GetDrawRunRequest.md +21 -23
- package/docs/api/interfaces/GetDrawRunResponse.md +21 -23
- package/docs/api/interfaces/GetJackpotEligibleGamesRequest.md +13 -15
- package/docs/api/interfaces/GetJackpotEligibleGamesResponse.md +21 -23
- package/docs/api/interfaces/GetJackpotWinnersRequest.md +26 -28
- package/docs/api/interfaces/GetJackpotWinnersResponse.md +23 -25
- package/docs/api/interfaces/GetJackpotsPotsRequest.md +13 -15
- package/docs/api/interfaces/GetJackpotsPotsResponse.md +21 -23
- package/docs/api/interfaces/GetJackpotsRequest.md +17 -19
- package/docs/api/interfaces/GetJackpotsResponse.md +21 -23
- package/docs/api/interfaces/GetRaffleDrawRunsHistoryRequest.md +16 -18
- package/docs/api/interfaces/GetRaffleDrawRunsHistoryResponse.md +21 -23
- package/docs/api/interfaces/GetRafflesRequest.md +14 -16
- package/docs/api/interfaces/GetRafflesResponse.md +21 -23
- package/docs/api/interfaces/GetRelatedAchTourResponse.md +24 -26
- package/docs/api/interfaces/GetTournamentInfoResponse.md +68 -38
- package/docs/api/interfaces/InboxMarkMessageAction.md +3 -3
- package/docs/api/interfaces/InboxMessage.md +18 -18
- package/docs/api/interfaces/InboxMessageBody.md +37 -29
- package/docs/api/interfaces/JackPotWinner.md +11 -11
- package/docs/api/interfaces/JackpotDetails.md +23 -23
- package/docs/api/interfaces/JackpotEligibleGame.md +19 -19
- package/docs/api/interfaces/JackpotHtmlTemplate.md +3 -3
- package/docs/api/interfaces/JackpotPot.md +11 -11
- package/docs/api/interfaces/JackpotPublicMeta.md +15 -15
- package/docs/api/interfaces/JackpotWinPush.md +15 -17
- package/docs/api/interfaces/JackpotWinnerHistory.md +5 -5
- package/docs/api/interfaces/JackpotsOptinRequest.md +13 -15
- package/docs/api/interfaces/JackpotsOptinResponse.md +19 -21
- package/docs/api/interfaces/JackpotsOptoutRequest.md +13 -15
- package/docs/api/interfaces/JackpotsOptoutResponse.md +19 -21
- package/docs/api/interfaces/LeaderBoardDetailsT.md +16 -16
- package/docs/api/interfaces/LeaderBoardUserT.md +9 -9
- package/docs/api/interfaces/LeaderBoardsRewardsT.md +3 -3
- package/docs/api/interfaces/Level.md +15 -15
- package/docs/api/interfaces/LevelPublicMeta.md +31 -24
- package/docs/api/interfaces/QuizEventMeta.md +34 -14
- package/docs/api/interfaces/Raffle.md +13 -13
- package/docs/api/interfaces/RaffleClaimPrizeRequest.md +13 -15
- package/docs/api/interfaces/RaffleClaimPrizeResponse.md +18 -20
- package/docs/api/interfaces/RaffleDraw.md +44 -44
- package/docs/api/interfaces/RaffleDrawPublicMeta.md +15 -15
- package/docs/api/interfaces/RaffleDrawRun.md +15 -15
- package/docs/api/interfaces/RaffleOptinRequest.md +17 -19
- package/docs/api/interfaces/RaffleOptinResponse.md +19 -21
- package/docs/api/interfaces/RafflePrize.md +31 -31
- package/docs/api/interfaces/RafflePrizePublicMeta.md +7 -7
- package/docs/api/interfaces/RafflePrizeWinner.md +15 -15
- package/docs/api/interfaces/RafflePublicMeta.md +16 -16
- package/docs/api/interfaces/RaffleTicket.md +3 -3
- package/docs/api/interfaces/SAWAcknowledgeSpinPushRequest.md +24 -26
- package/docs/api/interfaces/SAWDoAknowledgeRequest.md +13 -15
- package/docs/api/interfaces/SAWDoAknowledgeResponse.md +13 -15
- package/docs/api/interfaces/SAWDoSpinRequest.md +24 -26
- package/docs/api/interfaces/SAWDoSpinResponse.md +33 -35
- package/docs/api/interfaces/SAWEventSawPush.md +17 -19
- package/docs/api/interfaces/SAWGetTemplatesRequest.md +26 -28
- package/docs/api/interfaces/SAWGetTemplatesResponse.md +21 -23
- package/docs/api/interfaces/SAWPrize.md +52 -52
- package/docs/api/interfaces/SAWPrizeDropAknowledgeRequest.md +17 -19
- package/docs/api/interfaces/SAWPrizeDropAknowledgeResponse.md +13 -15
- package/docs/api/interfaces/SAWPrizeDropWinPush.md +21 -23
- package/docs/api/interfaces/SAWPrizeUI.md +78 -78
- package/docs/api/interfaces/SAWPrizesHistory.md +15 -15
- package/docs/api/interfaces/SAWSpinsCountPush.md +15 -17
- package/docs/api/interfaces/SAWTemplate.md +70 -63
- package/docs/api/interfaces/SAWTemplateUI.md +155 -150
- package/docs/api/interfaces/SAWWinningHistoryRequest.md +21 -23
- package/docs/api/interfaces/SAWWinningHistoryResponse.md +23 -25
- package/docs/api/interfaces/StoreCategory.md +5 -5
- package/docs/api/interfaces/StoreCategoryPublicMeta.md +5 -5
- package/docs/api/interfaces/StoreItem.md +19 -19
- package/docs/api/interfaces/StoreItemPublicMeta.md +51 -51
- package/docs/api/interfaces/TAchCategory.md +5 -5
- package/docs/api/interfaces/TActivityLog.md +16 -16
- package/docs/api/interfaces/TAvatarCustomized.md +27 -0
- package/docs/api/interfaces/TAvatarDefinition.md +101 -0
- package/docs/api/interfaces/TAvatarPrompt.md +44 -0
- package/docs/api/interfaces/TBonus.md +22 -22
- package/docs/api/interfaces/TBuyStoreItemResult.md +3 -3
- package/docs/api/interfaces/TClaimBonusResult.md +6 -6
- package/docs/api/interfaces/TClan.md +79 -0
- package/docs/api/interfaces/TClanInfo.md +111 -0
- package/docs/api/interfaces/TClanJoinResult.md +15 -0
- package/docs/api/interfaces/TClanTournamentPlayers.md +71 -0
- package/docs/api/interfaces/TClans.md +27 -0
- package/docs/api/interfaces/TGetJackpotEligibleGamesResponse.md +1 -1
- package/docs/api/interfaces/TGetTranslations.md +3 -3
- package/docs/api/interfaces/TInboxMessage.md +13 -13
- package/docs/api/interfaces/TInboxMessageBody.md +28 -16
- package/docs/api/interfaces/TLevel.md +21 -23
- package/docs/api/interfaces/TLevelCurrent.md +32 -34
- package/docs/api/interfaces/TMiniGamePlayBatchResult.md +12 -12
- package/docs/api/interfaces/TMiniGamePlayResult.md +5 -5
- package/docs/api/interfaces/TMiniGamePrize.md +83 -83
- package/docs/api/interfaces/TMiniGameTemplate.md +81 -81
- package/docs/api/interfaces/TMissionClaimRewardResult.md +3 -3
- package/docs/api/interfaces/TMissionOptInResult.md +3 -3
- package/docs/api/interfaces/TMissionOrBadge.md +110 -110
- package/docs/api/interfaces/TMissionOrBadgeTask.md +15 -15
- package/docs/api/interfaces/TRaffle.md +25 -25
- package/docs/api/interfaces/TRaffleDraw.md +61 -61
- package/docs/api/interfaces/TRaffleDrawRun.md +39 -39
- package/docs/api/interfaces/TRaffleOptinResponse.md +4 -4
- package/docs/api/interfaces/TRafflePrize.md +35 -35
- package/docs/api/interfaces/TRafflePrizeWinner.md +13 -13
- package/docs/api/interfaces/TRaffleTicket.md +3 -3
- package/docs/api/interfaces/TSawHistory.md +15 -15
- package/docs/api/interfaces/TSegmentCheckResult.md +3 -3
- package/docs/api/interfaces/TSetAvatarResult.md +19 -0
- package/docs/api/interfaces/TStoreCategory.md +5 -5
- package/docs/api/interfaces/TStoreItem.md +77 -77
- package/docs/api/interfaces/TTournament.md +165 -97
- package/docs/api/interfaces/TTournamentDetailed.md +378 -140
- package/docs/api/interfaces/TTournamentRegistrationResult.md +3 -3
- package/docs/api/interfaces/TUICustomSection.md +52 -52
- package/docs/api/interfaces/TUserProfile.md +32 -32
- package/docs/api/interfaces/Tournament.md +87 -81
- package/docs/api/interfaces/TournamentPlayer.md +18 -18
- package/docs/api/interfaces/TournamentPrize.md +17 -17
- package/docs/api/interfaces/TournamentPublicMeta.md +47 -47
- package/docs/api/interfaces/TransformedRaffleClaimPrizeResponse.md +4 -4
- package/docs/api/interfaces/UICustomSection.md +50 -50
- package/docs/api/interfaces/UserAchievement.md +101 -101
- package/docs/api/interfaces/UserAchievementTask.md +38 -38
- package/docs/api/interfaces/UserLevelExtraCountersT.md +5 -5
- package/docs/api/type-aliases/TournamentRegistrationTypeName.md +3 -0
- package/docs/api/variables/AllRoundsGameBoardID.md +5 -0
- package/docs/api/variables/PrizeModifiersKeysNames.md +37 -0
- package/docs/api/variables/SAWWinSoundFiles.md +21 -0
- package/package.json +1 -1
- package/src/Base/ClassId.ts +12 -0
- package/src/Clans/Clan.ts +18 -0
- package/src/Clans/GetClanInfoRequest.ts +6 -0
- package/src/Clans/GetClanInfoResponse.ts +24 -0
- package/src/Clans/GetClanListRequest.ts +5 -0
- package/src/Clans/GetClanListResponse.ts +10 -0
- package/src/Clans/JoinClanRequest.ts +6 -0
- package/src/Clans/JoinClanResponse.ts +6 -0
- package/src/Clans/index.ts +7 -0
- package/src/SmarticoAPI.ts +95 -0
- package/src/SmarticoLib/index.ts +163 -0
- package/src/Tournaments/GetClanTournamentPlayersRequest.ts +7 -0
- package/src/Tournaments/GetClanTournamentPlayersResponse.ts +58 -0
- package/src/Tournaments/GetTournamentInfoResponse.ts +52 -0
- package/src/Tournaments/Tournament.ts +2 -0
- package/src/Tournaments/TournamentClan.ts +30 -0
- package/src/Tournaments/index.ts +3 -0
- package/src/WSAPI/WSAPI.ts +61 -2
- package/src/WSAPI/WSAPITypes.ts +131 -0
- package/src/index.ts +2 -1
- package/tsconfig.json +5 -3
- package/docs/api/.nojekyll +0 -1
- package/docs/api/enums/AchCustomLayoutTheme.md +0 -25
- package/docs/api/enums/AchCustomSectionType.md +0 -79
- package/docs/api/enums/AchievementStatus.md +0 -49
- package/docs/api/enums/ActivityTypeLimited.md +0 -115
- package/docs/api/enums/BonusStatus.md +0 -37
- package/docs/api/enums/GamePickSportType.md +0 -375
- package/docs/api/enums/InboxMessageType.md +0 -55
- package/docs/api/enums/LiquidEntityData.md +0 -73
- package/docs/api/enums/MiniGamePrizeTypeName.md +0 -67
- package/docs/api/enums/PointChangeSourceType.md +0 -109
- package/docs/api/enums/PrizeModifiers.md +0 -49
- package/docs/api/enums/QuizAnswersValueType.md +0 -121
- package/docs/api/enums/SAWAcknowledgeTypeName.md +0 -25
- package/docs/api/enums/SAWBuyInType.md +0 -31
- package/docs/api/enums/SAWBuyInTypeName.md +0 -37
- package/docs/api/enums/SAWGPMarketType.md +0 -157
- package/docs/api/enums/SAWGameType.md +0 -73
- package/docs/api/enums/SAWGameTypeName.md +0 -79
- package/docs/api/enums/SAWPrizeType.md +0 -61
- package/docs/api/enums/SAWWinSoundType.md +0 -31
- package/docs/api/enums/StoreItemType.md +0 -37
- package/docs/api/enums/StoreItemTypeName.md +0 -43
- package/docs/api/enums/TournamentInstanceStatus.md +0 -43
- package/docs/api/enums/TournamentRegistrationError.md +0 -55
- package/docs/api/enums/TournamentRegistrationStatus.md +0 -43
- package/docs/api/enums/TournamentRegistrationStatusName.md +0 -49
- package/docs/api/enums/TournamentRegistrationType.md +0 -43
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## Methods
|
|
4
4
|
|
|
5
|
-
### getUserProfile
|
|
5
|
+
### getUserProfile()
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> **getUserProfile**(): [`TUserProfile`](../interfaces/TUserProfile.md)
|
|
8
8
|
|
|
9
9
|
Returns information about current user
|
|
10
10
|
Pay attention that this method is synchronous and returns the user profile object immediately, not a promise.
|
|
@@ -19,11 +19,11 @@ console.log(p);
|
|
|
19
19
|
|
|
20
20
|
[`TUserProfile`](../interfaces/TUserProfile.md)
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
***
|
|
23
23
|
|
|
24
|
-
### checkSegmentMatch
|
|
24
|
+
### checkSegmentMatch()
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
> **checkSegmentMatch**(`segment_id`): `Promise`\<`boolean`\>
|
|
27
27
|
|
|
28
28
|
Check if user belongs to specific segments
|
|
29
29
|
**Example**:
|
|
@@ -37,19 +37,19 @@ _smartico.api.checkSegmentMatch(1).then((result) => {
|
|
|
37
37
|
|
|
38
38
|
#### Parameters
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
##### segment\_id
|
|
41
|
+
|
|
42
|
+
`number`
|
|
43
43
|
|
|
44
44
|
#### Returns
|
|
45
45
|
|
|
46
46
|
`Promise`\<`boolean`\>
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
***
|
|
49
49
|
|
|
50
|
-
### checkSegmentListMatch
|
|
50
|
+
### checkSegmentListMatch()
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
> **checkSegmentListMatch**(`segment_ids`): `Promise`\<[`TSegmentCheckResult`](../interfaces/TSegmentCheckResult.md)[]\>
|
|
53
53
|
|
|
54
54
|
Check if user belongs to specific list of segments
|
|
55
55
|
**Example**:
|
|
@@ -62,19 +62,19 @@ _smartico.api.checkSegmentListMatch([1, 2, 3]).then((result) => {
|
|
|
62
62
|
|
|
63
63
|
#### Parameters
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
##### segment\_ids
|
|
66
|
+
|
|
67
|
+
`number`[]
|
|
68
68
|
|
|
69
69
|
#### Returns
|
|
70
70
|
|
|
71
71
|
`Promise`\<[`TSegmentCheckResult`](../interfaces/TSegmentCheckResult.md)[]\>
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
***
|
|
74
74
|
|
|
75
|
-
### getLevels
|
|
75
|
+
### getLevels()
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
> **getLevels**(): `Promise`\<[`TLevel`](../interfaces/TLevel.md)[]\>
|
|
78
78
|
|
|
79
79
|
Returns all the levels available to the current user
|
|
80
80
|
**Example**:
|
|
@@ -95,11 +95,11 @@ _smartico.vapi('EN').getLevels().then((result) => {
|
|
|
95
95
|
|
|
96
96
|
`Promise`\<[`TLevel`](../interfaces/TLevel.md)[]\>
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
***
|
|
99
99
|
|
|
100
|
-
### getCurrentLevel
|
|
100
|
+
### getCurrentLevel()
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
> **getCurrentLevel**(): `Promise`\<[`TLevelCurrent`](../interfaces/TLevelCurrent.md)\>
|
|
103
103
|
|
|
104
104
|
Returns the current level of the user with extended information including ordinal position and progress.
|
|
105
105
|
|
|
@@ -116,11 +116,11 @@ _smartico.api.getCurrentLevel().then((result) => {
|
|
|
116
116
|
|
|
117
117
|
`Promise`\<[`TLevelCurrent`](../interfaces/TLevelCurrent.md)\>
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
***
|
|
120
120
|
|
|
121
|
-
### getMissions
|
|
121
|
+
### getMissions()
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
> **getMissions**(`__namedParameters?`): `Promise`\<[`TMissionOrBadge`](../interfaces/TMissionOrBadge.md)[]\>
|
|
124
124
|
|
|
125
125
|
Returns all the missions configured for the current user (server-side scoped, not filtered by Widget visibility).
|
|
126
126
|
The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
@@ -143,20 +143,21 @@ _smartico.vapi('EN').getMissions().then((result) => {
|
|
|
143
143
|
|
|
144
144
|
#### Parameters
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
146
|
+
##### \_\_namedParameters?
|
|
147
|
+
|
|
148
|
+
###### onUpdate?
|
|
149
|
+
|
|
150
|
+
(`data`) => `void`
|
|
150
151
|
|
|
151
152
|
#### Returns
|
|
152
153
|
|
|
153
154
|
`Promise`\<[`TMissionOrBadge`](../interfaces/TMissionOrBadge.md)[]\>
|
|
154
155
|
|
|
155
|
-
|
|
156
|
+
***
|
|
156
157
|
|
|
157
|
-
### getBadges
|
|
158
|
+
### getBadges()
|
|
158
159
|
|
|
159
|
-
|
|
160
|
+
> **getBadges**(): `Promise`\<[`TMissionOrBadge`](../interfaces/TMissionOrBadge.md)[]\>
|
|
160
161
|
|
|
161
162
|
Returns all the badges available to the current user
|
|
162
163
|
|
|
@@ -166,11 +167,11 @@ Returns all the badges available to the current user
|
|
|
166
167
|
|
|
167
168
|
`Promise`\<[`TMissionOrBadge`](../interfaces/TMissionOrBadge.md)[]\>
|
|
168
169
|
|
|
169
|
-
|
|
170
|
+
***
|
|
170
171
|
|
|
171
|
-
### getBonuses
|
|
172
|
+
### getBonuses()
|
|
172
173
|
|
|
173
|
-
|
|
174
|
+
> **getBonuses**(`__namedParameters?`): `Promise`\<[`TBonus`](../interfaces/TBonus.md)[]\>
|
|
174
175
|
|
|
175
176
|
Returns all the bonuses for the current user
|
|
176
177
|
The returned bonuses are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
@@ -181,20 +182,21 @@ The onUpdate callback will be called on bonus claimed and the updated bonuses wi
|
|
|
181
182
|
|
|
182
183
|
#### Parameters
|
|
183
184
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
185
|
+
##### \_\_namedParameters?
|
|
186
|
+
|
|
187
|
+
###### onUpdate?
|
|
188
|
+
|
|
189
|
+
(`data`) => `void`
|
|
188
190
|
|
|
189
191
|
#### Returns
|
|
190
192
|
|
|
191
193
|
`Promise`\<[`TBonus`](../interfaces/TBonus.md)[]\>
|
|
192
194
|
|
|
193
|
-
|
|
195
|
+
***
|
|
194
196
|
|
|
195
|
-
### claimBonus
|
|
197
|
+
### claimBonus()
|
|
196
198
|
|
|
197
|
-
|
|
199
|
+
> **claimBonus**(`bonus_id`): `Promise`\<[`TClaimBonusResult`](../interfaces/TClaimBonusResult.md)\>
|
|
198
200
|
|
|
199
201
|
Claim the bonus by bonus_id. Returns the err_code in case of success or error.
|
|
200
202
|
Note that this method can be used only on integrations where originally failed bonus can be claimed again.
|
|
@@ -205,19 +207,19 @@ This bonus will be available for the user to claim again.
|
|
|
205
207
|
|
|
206
208
|
#### Parameters
|
|
207
209
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
210
|
+
##### bonus\_id
|
|
211
|
+
|
|
212
|
+
`number`
|
|
211
213
|
|
|
212
214
|
#### Returns
|
|
213
215
|
|
|
214
216
|
`Promise`\<[`TClaimBonusResult`](../interfaces/TClaimBonusResult.md)\>
|
|
215
217
|
|
|
216
|
-
|
|
218
|
+
***
|
|
217
219
|
|
|
218
|
-
### getUserLevelExtraCounters
|
|
220
|
+
### getUserLevelExtraCounters()
|
|
219
221
|
|
|
220
|
-
|
|
222
|
+
> **getUserLevelExtraCounters**(): `Promise`\<[`UserLevelExtraCountersT`](../interfaces/UserLevelExtraCountersT.md)\>
|
|
221
223
|
|
|
222
224
|
Returns the extra counters for the current user level.
|
|
223
225
|
These are counters that are configured for each Smartico client separately by request.
|
|
@@ -236,11 +238,11 @@ _smartico.api.getUserLevelExtraCounters().then((result) => {
|
|
|
236
238
|
|
|
237
239
|
`Promise`\<[`UserLevelExtraCountersT`](../interfaces/UserLevelExtraCountersT.md)\>
|
|
238
240
|
|
|
239
|
-
|
|
241
|
+
***
|
|
240
242
|
|
|
241
|
-
### getStoreItems
|
|
243
|
+
### getStoreItems()
|
|
242
244
|
|
|
243
|
-
|
|
245
|
+
> **getStoreItems**(`params?`): `Promise`\<[`TStoreItem`](../interfaces/TStoreItem.md)[]\>
|
|
244
246
|
|
|
245
247
|
Returns all the store items available to the current user
|
|
246
248
|
The returned store items are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
@@ -263,20 +265,23 @@ _smartico.vapi('EN').getStoreItems().then((result) => {
|
|
|
263
265
|
|
|
264
266
|
#### Parameters
|
|
265
267
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
##### params?
|
|
269
|
+
|
|
270
|
+
###### onUpdate?
|
|
271
|
+
|
|
272
|
+
(`data`) => `void`
|
|
273
|
+
|
|
274
|
+
callback function that will be called when the store items are updated
|
|
270
275
|
|
|
271
276
|
#### Returns
|
|
272
277
|
|
|
273
278
|
`Promise`\<[`TStoreItem`](../interfaces/TStoreItem.md)[]\>
|
|
274
279
|
|
|
275
|
-
|
|
280
|
+
***
|
|
276
281
|
|
|
277
|
-
### buyStoreItem
|
|
282
|
+
### buyStoreItem()
|
|
278
283
|
|
|
279
|
-
|
|
284
|
+
> **buyStoreItem**(`item_id`): `Promise`\<[`TBuyStoreItemResult`](../interfaces/TBuyStoreItemResult.md)\>
|
|
280
285
|
|
|
281
286
|
Buy the specific shop item by item_id. Returns the err_code in case of success or error.
|
|
282
287
|
**Example**:
|
|
@@ -290,19 +295,19 @@ _smartico.api.buyStoreItem(1).then((result) => {
|
|
|
290
295
|
|
|
291
296
|
#### Parameters
|
|
292
297
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
298
|
+
##### item\_id
|
|
299
|
+
|
|
300
|
+
`number`
|
|
296
301
|
|
|
297
302
|
#### Returns
|
|
298
303
|
|
|
299
304
|
`Promise`\<[`TBuyStoreItemResult`](../interfaces/TBuyStoreItemResult.md)\>
|
|
300
305
|
|
|
301
|
-
|
|
306
|
+
***
|
|
302
307
|
|
|
303
|
-
### getStoreCategories
|
|
308
|
+
### getStoreCategories()
|
|
304
309
|
|
|
305
|
-
|
|
310
|
+
> **getStoreCategories**(): `Promise`\<[`TStoreCategory`](../interfaces/TStoreCategory.md)[]\>
|
|
306
311
|
|
|
307
312
|
Returns store categories
|
|
308
313
|
|
|
@@ -324,11 +329,11 @@ _smartico.vapi('EN').getStoreCategories().then((result) => {
|
|
|
324
329
|
|
|
325
330
|
`Promise`\<[`TStoreCategory`](../interfaces/TStoreCategory.md)[]\>
|
|
326
331
|
|
|
327
|
-
|
|
332
|
+
***
|
|
328
333
|
|
|
329
|
-
### getStorePurchasedItems
|
|
334
|
+
### getStorePurchasedItems()
|
|
330
335
|
|
|
331
|
-
|
|
336
|
+
> **getStorePurchasedItems**(`__namedParameters?`): `Promise`\<[`TStoreItem`](../interfaces/TStoreItem.md)[]\>
|
|
332
337
|
|
|
333
338
|
Returns purchased items based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
|
|
334
339
|
The maximum number of items per request is limited to 20.
|
|
@@ -348,22 +353,29 @@ _smartico.api.getStorePurchasedItems().then((result) => {
|
|
|
348
353
|
|
|
349
354
|
#### Parameters
|
|
350
355
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
356
|
+
##### \_\_namedParameters?
|
|
357
|
+
|
|
358
|
+
###### limit?
|
|
359
|
+
|
|
360
|
+
`number`
|
|
361
|
+
|
|
362
|
+
###### offset?
|
|
363
|
+
|
|
364
|
+
`number`
|
|
365
|
+
|
|
366
|
+
###### onUpdate?
|
|
367
|
+
|
|
368
|
+
(`data`) => `void`
|
|
357
369
|
|
|
358
370
|
#### Returns
|
|
359
371
|
|
|
360
372
|
`Promise`\<[`TStoreItem`](../interfaces/TStoreItem.md)[]\>
|
|
361
373
|
|
|
362
|
-
|
|
374
|
+
***
|
|
363
375
|
|
|
364
|
-
### getAchCategories
|
|
376
|
+
### getAchCategories()
|
|
365
377
|
|
|
366
|
-
|
|
378
|
+
> **getAchCategories**(): `Promise`\<[`TAchCategory`](../interfaces/TAchCategory.md)[]\>
|
|
367
379
|
|
|
368
380
|
Returns missions & badges categories
|
|
369
381
|
|
|
@@ -385,11 +397,11 @@ _smartico.vapi('EN').getAchCategories().then((result) => {
|
|
|
385
397
|
|
|
386
398
|
`Promise`\<[`TAchCategory`](../interfaces/TAchCategory.md)[]\>
|
|
387
399
|
|
|
388
|
-
|
|
400
|
+
***
|
|
389
401
|
|
|
390
|
-
### getCustomSections
|
|
402
|
+
### getCustomSections()
|
|
391
403
|
|
|
392
|
-
|
|
404
|
+
> **getCustomSections**(): `Promise`\<[`TUICustomSection`](../interfaces/TUICustomSection.md)[]\>
|
|
393
405
|
|
|
394
406
|
Returns list of custom sections
|
|
395
407
|
|
|
@@ -411,11 +423,11 @@ _smartico.vapi('EN').getCustomSections().then((result) => {
|
|
|
411
423
|
|
|
412
424
|
`Promise`\<[`TUICustomSection`](../interfaces/TUICustomSection.md)[]\>
|
|
413
425
|
|
|
414
|
-
|
|
426
|
+
***
|
|
415
427
|
|
|
416
|
-
### getMiniGames
|
|
428
|
+
### getMiniGames()
|
|
417
429
|
|
|
418
|
-
|
|
430
|
+
> **getMiniGames**(`__namedParameters?`): `Promise`\<[`TMiniGameTemplate`](../interfaces/TMiniGameTemplate.md)[]\>
|
|
419
431
|
|
|
420
432
|
Returns the list of mini-games configured for the current user (not filtered by spin availability or Widget visibility).
|
|
421
433
|
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.
|
|
@@ -437,20 +449,21 @@ _smartico.vapi('EN').getMiniGames().then((result) => {
|
|
|
437
449
|
|
|
438
450
|
#### Parameters
|
|
439
451
|
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
452
|
+
##### \_\_namedParameters?
|
|
453
|
+
|
|
454
|
+
###### onUpdate?
|
|
455
|
+
|
|
456
|
+
(`data`) => `void`
|
|
444
457
|
|
|
445
458
|
#### Returns
|
|
446
459
|
|
|
447
460
|
`Promise`\<[`TMiniGameTemplate`](../interfaces/TMiniGameTemplate.md)[]\>
|
|
448
461
|
|
|
449
|
-
|
|
462
|
+
***
|
|
450
463
|
|
|
451
|
-
### getMiniGamesHistory
|
|
464
|
+
### getMiniGamesHistory()
|
|
452
465
|
|
|
453
|
-
|
|
466
|
+
> **getMiniGamesHistory**(`__namedParameters`): `Promise`\<[`TSawHistory`](../interfaces/TSawHistory.md)[]\>
|
|
454
467
|
|
|
455
468
|
Returns the list of mini-games based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
|
|
456
469
|
The maximum number of items per request is limited to 20.
|
|
@@ -468,22 +481,29 @@ _smartico.api.getMiniGamesHistory().then((result) => {
|
|
|
468
481
|
|
|
469
482
|
#### Parameters
|
|
470
483
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
484
|
+
##### \_\_namedParameters
|
|
485
|
+
|
|
486
|
+
###### limit?
|
|
487
|
+
|
|
488
|
+
`number`
|
|
489
|
+
|
|
490
|
+
###### offset?
|
|
491
|
+
|
|
492
|
+
`number`
|
|
493
|
+
|
|
494
|
+
###### saw_template_id?
|
|
495
|
+
|
|
496
|
+
`number`
|
|
477
497
|
|
|
478
498
|
#### Returns
|
|
479
499
|
|
|
480
500
|
`Promise`\<[`TSawHistory`](../interfaces/TSawHistory.md)[]\>
|
|
481
501
|
|
|
482
|
-
|
|
502
|
+
***
|
|
483
503
|
|
|
484
|
-
### playMiniGame
|
|
504
|
+
### playMiniGame()
|
|
485
505
|
|
|
486
|
-
|
|
506
|
+
> **playMiniGame**(`template_id`, `__namedParameters?`): `Promise`\<[`TMiniGamePlayResult`](../interfaces/TMiniGamePlayResult.md)\>
|
|
487
507
|
|
|
488
508
|
Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
|
|
489
509
|
After playMiniGame is called, you can call getMiniGames to get the list of mini-games.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 playMiniGame with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
@@ -500,21 +520,25 @@ _smartico.api.playMiniGame(55).then((result) => {
|
|
|
500
520
|
|
|
501
521
|
#### Parameters
|
|
502
522
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
523
|
+
##### template\_id
|
|
524
|
+
|
|
525
|
+
`number`
|
|
526
|
+
|
|
527
|
+
##### \_\_namedParameters?
|
|
528
|
+
|
|
529
|
+
###### onUpdate?
|
|
530
|
+
|
|
531
|
+
(`data`) => `void`
|
|
508
532
|
|
|
509
533
|
#### Returns
|
|
510
534
|
|
|
511
535
|
`Promise`\<[`TMiniGamePlayResult`](../interfaces/TMiniGamePlayResult.md)\>
|
|
512
536
|
|
|
513
|
-
|
|
537
|
+
***
|
|
514
538
|
|
|
515
|
-
### miniGameWinAcknowledgeRequest
|
|
539
|
+
### miniGameWinAcknowledgeRequest()
|
|
516
540
|
|
|
517
|
-
|
|
541
|
+
> **miniGameWinAcknowledgeRequest**(`request_id`): `Promise`\<[`SAWDoAknowledgeResponse`](../interfaces/SAWDoAknowledgeResponse.md)\>
|
|
518
542
|
|
|
519
543
|
Sends the acknowledge request with specific client_request_id from minigame history in order to claim prize
|
|
520
544
|
**Example**:
|
|
@@ -526,19 +550,19 @@ _smartico.api.miniGameWinAcknowledgeRequest('2a189322-31bb-4119-b943-bx7868ff8dc
|
|
|
526
550
|
|
|
527
551
|
#### Parameters
|
|
528
552
|
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
553
|
+
##### request\_id
|
|
554
|
+
|
|
555
|
+
`string`
|
|
532
556
|
|
|
533
557
|
#### Returns
|
|
534
558
|
|
|
535
559
|
`Promise`\<[`SAWDoAknowledgeResponse`](../interfaces/SAWDoAknowledgeResponse.md)\>
|
|
536
560
|
|
|
537
|
-
|
|
561
|
+
***
|
|
538
562
|
|
|
539
|
-
### playMiniGameBatch
|
|
563
|
+
### playMiniGameBatch()
|
|
540
564
|
|
|
541
|
-
|
|
565
|
+
> **playMiniGameBatch**(`template_id`, `spin_count`, `__namedParameters?`): `Promise`\<[`TMiniGamePlayBatchResult`](../interfaces/TMiniGamePlayBatchResult.md)[]\>
|
|
542
566
|
|
|
543
567
|
Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
|
|
544
568
|
After playMiniGameBatch is called, you can call getMiniGames to get the list of mini-games. 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 playMiniGameBatch with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
@@ -554,22 +578,29 @@ _smartico.api.playMiniGameBatch(55, 10).then((result) => {
|
|
|
554
578
|
|
|
555
579
|
#### Parameters
|
|
556
580
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
581
|
+
##### template\_id
|
|
582
|
+
|
|
583
|
+
`number`
|
|
584
|
+
|
|
585
|
+
##### spin\_count
|
|
586
|
+
|
|
587
|
+
`number`
|
|
588
|
+
|
|
589
|
+
##### \_\_namedParameters?
|
|
590
|
+
|
|
591
|
+
###### onUpdate?
|
|
592
|
+
|
|
593
|
+
(`data`) => `void`
|
|
563
594
|
|
|
564
595
|
#### Returns
|
|
565
596
|
|
|
566
597
|
`Promise`\<[`TMiniGamePlayBatchResult`](../interfaces/TMiniGamePlayBatchResult.md)[]\>
|
|
567
598
|
|
|
568
|
-
|
|
599
|
+
***
|
|
569
600
|
|
|
570
|
-
### requestMissionOptIn
|
|
601
|
+
### requestMissionOptIn()
|
|
571
602
|
|
|
572
|
-
|
|
603
|
+
> **requestMissionOptIn**(`mission_id`): `Promise`\<[`TMissionOptInResult`](../interfaces/TMissionOptInResult.md)\>
|
|
573
604
|
|
|
574
605
|
Requests an opt-in for the specified mission_id. Returns the err_code.
|
|
575
606
|
|
|
@@ -577,19 +608,19 @@ Requests an opt-in for the specified mission_id. Returns the err_code.
|
|
|
577
608
|
|
|
578
609
|
#### Parameters
|
|
579
610
|
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
611
|
+
##### mission\_id
|
|
612
|
+
|
|
613
|
+
`number`
|
|
583
614
|
|
|
584
615
|
#### Returns
|
|
585
616
|
|
|
586
617
|
`Promise`\<[`TMissionOptInResult`](../interfaces/TMissionOptInResult.md)\>
|
|
587
618
|
|
|
588
|
-
|
|
619
|
+
***
|
|
589
620
|
|
|
590
|
-
### requestMissionClaimReward
|
|
621
|
+
### requestMissionClaimReward()
|
|
591
622
|
|
|
592
|
-
|
|
623
|
+
> **requestMissionClaimReward**(`mission_id`, `ach_completed_id`): `Promise`\<[`TMissionClaimRewardResult`](../interfaces/TMissionClaimRewardResult.md)\>
|
|
593
624
|
|
|
594
625
|
Request for claim reward for the specified mission id. Returns the err_code.
|
|
595
626
|
|
|
@@ -597,20 +628,23 @@ Request for claim reward for the specified mission id. Returns the err_code.
|
|
|
597
628
|
|
|
598
629
|
#### Parameters
|
|
599
630
|
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
631
|
+
##### mission\_id
|
|
632
|
+
|
|
633
|
+
`number`
|
|
634
|
+
|
|
635
|
+
##### ach\_completed\_id
|
|
636
|
+
|
|
637
|
+
`number`
|
|
604
638
|
|
|
605
639
|
#### Returns
|
|
606
640
|
|
|
607
641
|
`Promise`\<[`TMissionClaimRewardResult`](../interfaces/TMissionClaimRewardResult.md)\>
|
|
608
642
|
|
|
609
|
-
|
|
643
|
+
***
|
|
610
644
|
|
|
611
|
-
### getTournamentsList
|
|
645
|
+
### getTournamentsList()
|
|
612
646
|
|
|
613
|
-
|
|
647
|
+
> **getTournamentsList**(`__namedParameters?`): `Promise`\<[`TTournament`](../interfaces/TTournament.md)[]\>
|
|
614
648
|
|
|
615
649
|
Returns all the active instances of tournaments
|
|
616
650
|
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.
|
|
@@ -632,20 +666,85 @@ _smartico.vapi('EN').getTournamentsList().then((result) => {
|
|
|
632
666
|
|
|
633
667
|
#### Parameters
|
|
634
668
|
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
669
|
+
##### \_\_namedParameters?
|
|
670
|
+
|
|
671
|
+
###### onUpdate?
|
|
672
|
+
|
|
673
|
+
(`data`) => `void`
|
|
639
674
|
|
|
640
675
|
#### Returns
|
|
641
676
|
|
|
642
677
|
`Promise`\<[`TTournament`](../interfaces/TTournament.md)[]\>
|
|
643
678
|
|
|
644
|
-
|
|
679
|
+
***
|
|
680
|
+
|
|
681
|
+
### getClans()
|
|
682
|
+
|
|
683
|
+
> **getClans**(`__namedParameters?`): `Promise`\<[`TClans`](../interfaces/TClans.md)\>
|
|
684
|
+
|
|
685
|
+
Returns clans list payload for the current user.
|
|
686
|
+
The returned payload is cached for 30 seconds.
|
|
687
|
+
If onUpdate is passed, it will be called when clans response is received.
|
|
688
|
+
|
|
689
|
+
**Visitor mode: not supported**
|
|
690
|
+
|
|
691
|
+
#### Parameters
|
|
692
|
+
|
|
693
|
+
##### \_\_namedParameters?
|
|
694
|
+
|
|
695
|
+
###### onUpdate?
|
|
696
|
+
|
|
697
|
+
(`data`) => `void`
|
|
698
|
+
|
|
699
|
+
#### Returns
|
|
700
|
+
|
|
701
|
+
`Promise`\<[`TClans`](../interfaces/TClans.md)\>
|
|
702
|
+
|
|
703
|
+
***
|
|
704
|
+
|
|
705
|
+
### getClanInfo()
|
|
706
|
+
|
|
707
|
+
> **getClanInfo**(`clanId`): `Promise`\<[`TClanInfo`](../interfaces/TClanInfo.md)\>
|
|
708
|
+
|
|
709
|
+
Returns detailed information for a specific clan including its members.
|
|
710
|
+
|
|
711
|
+
**Visitor mode: not supported**
|
|
712
|
+
|
|
713
|
+
#### Parameters
|
|
714
|
+
|
|
715
|
+
##### clanId
|
|
716
|
+
|
|
717
|
+
`number`
|
|
718
|
+
|
|
719
|
+
#### Returns
|
|
720
|
+
|
|
721
|
+
`Promise`\<[`TClanInfo`](../interfaces/TClanInfo.md)\>
|
|
722
|
+
|
|
723
|
+
***
|
|
645
724
|
|
|
646
|
-
###
|
|
725
|
+
### joinClan()
|
|
647
726
|
|
|
648
|
-
|
|
727
|
+
> **joinClan**(`clanId`): `Promise`\<[`TClanJoinResult`](../interfaces/TClanJoinResult.md)\>
|
|
728
|
+
|
|
729
|
+
Joins a clan on behalf of the current user.
|
|
730
|
+
|
|
731
|
+
**Visitor mode: not supported**
|
|
732
|
+
|
|
733
|
+
#### Parameters
|
|
734
|
+
|
|
735
|
+
##### clanId
|
|
736
|
+
|
|
737
|
+
`number`
|
|
738
|
+
|
|
739
|
+
#### Returns
|
|
740
|
+
|
|
741
|
+
`Promise`\<[`TClanJoinResult`](../interfaces/TClanJoinResult.md)\>
|
|
742
|
+
|
|
743
|
+
***
|
|
744
|
+
|
|
745
|
+
### getTournamentInstanceInfo()
|
|
746
|
+
|
|
747
|
+
> **getTournamentInstanceInfo**(`tournamentInstanceId`): `Promise`\<[`TTournamentDetailed`](../interfaces/TTournamentDetailed.md)\>
|
|
649
748
|
|
|
650
749
|
Returns detailed information for a specific tournament instance; the response includes tournament info and the leaderboard of players
|
|
651
750
|
|
|
@@ -673,19 +772,43 @@ _smartico.vapi('EN').getTournamentsList().then((result) => {
|
|
|
673
772
|
|
|
674
773
|
#### Parameters
|
|
675
774
|
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
775
|
+
##### tournamentInstanceId
|
|
776
|
+
|
|
777
|
+
`number`
|
|
679
778
|
|
|
680
779
|
#### Returns
|
|
681
780
|
|
|
682
781
|
`Promise`\<[`TTournamentDetailed`](../interfaces/TTournamentDetailed.md)\>
|
|
683
782
|
|
|
684
|
-
|
|
783
|
+
***
|
|
685
784
|
|
|
686
|
-
###
|
|
785
|
+
### getClanTournamentPlayers()
|
|
687
786
|
|
|
688
|
-
|
|
787
|
+
> **getClanTournamentPlayers**(`tournamentInstanceId`, `clanId`): `Promise`\<[`TClanTournamentPlayers`](../interfaces/TClanTournamentPlayers.md)\>
|
|
788
|
+
|
|
789
|
+
Returns the players of a specific clan in a clan-based tournament.
|
|
790
|
+
|
|
791
|
+
**Visitor mode: not supported**
|
|
792
|
+
|
|
793
|
+
#### Parameters
|
|
794
|
+
|
|
795
|
+
##### tournamentInstanceId
|
|
796
|
+
|
|
797
|
+
`number`
|
|
798
|
+
|
|
799
|
+
##### clanId
|
|
800
|
+
|
|
801
|
+
`number`
|
|
802
|
+
|
|
803
|
+
#### Returns
|
|
804
|
+
|
|
805
|
+
`Promise`\<[`TClanTournamentPlayers`](../interfaces/TClanTournamentPlayers.md)\>
|
|
806
|
+
|
|
807
|
+
***
|
|
808
|
+
|
|
809
|
+
### registerInTournament()
|
|
810
|
+
|
|
811
|
+
> **registerInTournament**(`tournamentInstanceId`): `Promise`\<[`TTournamentRegistrationResult`](../interfaces/TTournamentRegistrationResult.md)\>
|
|
689
812
|
|
|
690
813
|
Requests registration for the specified tournament instance. Returns the err_code.
|
|
691
814
|
|
|
@@ -693,19 +816,19 @@ Requests registration for the specified tournament instance. Returns the err_cod
|
|
|
693
816
|
|
|
694
817
|
#### Parameters
|
|
695
818
|
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
819
|
+
##### tournamentInstanceId
|
|
820
|
+
|
|
821
|
+
`number`
|
|
699
822
|
|
|
700
823
|
#### Returns
|
|
701
824
|
|
|
702
825
|
`Promise`\<[`TTournamentRegistrationResult`](../interfaces/TTournamentRegistrationResult.md)\>
|
|
703
826
|
|
|
704
|
-
|
|
827
|
+
***
|
|
705
828
|
|
|
706
|
-
### getLeaderBoard
|
|
829
|
+
### getLeaderBoard()
|
|
707
830
|
|
|
708
|
-
|
|
831
|
+
> **getLeaderBoard**(`periodType`, `getPreviousPeriod?`): `Promise`\<[`LeaderBoardDetailsT`](../interfaces/LeaderBoardDetailsT.md)\>
|
|
709
832
|
|
|
710
833
|
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.
|
|
711
834
|
For example, if the type is Weekly and getPreviousPeriod is true, a leaderboard for the previous week will be returned.
|
|
@@ -726,20 +849,23 @@ _smartico.vapi('EN').getLeaderBoard(1).then((result) => {
|
|
|
726
849
|
|
|
727
850
|
#### Parameters
|
|
728
851
|
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
852
|
+
##### periodType
|
|
853
|
+
|
|
854
|
+
[`LeaderBoardPeriodType`](../enumerations/LeaderBoardPeriodType.md)
|
|
855
|
+
|
|
856
|
+
##### getPreviousPeriod?
|
|
857
|
+
|
|
858
|
+
`boolean`
|
|
733
859
|
|
|
734
860
|
#### Returns
|
|
735
861
|
|
|
736
862
|
`Promise`\<[`LeaderBoardDetailsT`](../interfaces/LeaderBoardDetailsT.md)\>
|
|
737
863
|
|
|
738
|
-
|
|
864
|
+
***
|
|
739
865
|
|
|
740
|
-
### getInboxMessages
|
|
866
|
+
### getInboxMessages()
|
|
741
867
|
|
|
742
|
-
|
|
868
|
+
> **getInboxMessages**(`params?`): `Promise`\<[`TInboxMessage`](../interfaces/TInboxMessage.md)[]\>
|
|
743
869
|
|
|
744
870
|
Returns inbox messages based on the provided parameters. "From" and "to" indicate the range of messages to be fetched.
|
|
745
871
|
The maximum number of messages per request is limited to 20.
|
|
@@ -755,25 +881,41 @@ The "onUpdate" callback will be triggered when the user receives a new message.
|
|
|
755
881
|
|
|
756
882
|
#### Parameters
|
|
757
883
|
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
884
|
+
##### params?
|
|
885
|
+
|
|
886
|
+
###### from?
|
|
887
|
+
|
|
888
|
+
`number`
|
|
889
|
+
|
|
890
|
+
###### to?
|
|
891
|
+
|
|
892
|
+
`number`
|
|
893
|
+
|
|
894
|
+
###### onlyFavorite?
|
|
895
|
+
|
|
896
|
+
`boolean`
|
|
897
|
+
|
|
898
|
+
###### categoryId?
|
|
899
|
+
|
|
900
|
+
[`InboxCategories`](../enumerations/InboxCategories.md)
|
|
901
|
+
|
|
902
|
+
###### read_status?
|
|
903
|
+
|
|
904
|
+
[`InboxReadStatus`](../enumerations/InboxReadStatus.md)
|
|
905
|
+
|
|
906
|
+
###### onUpdate?
|
|
907
|
+
|
|
908
|
+
(`data`) => `void`
|
|
767
909
|
|
|
768
910
|
#### Returns
|
|
769
911
|
|
|
770
912
|
`Promise`\<[`TInboxMessage`](../interfaces/TInboxMessage.md)[]\>
|
|
771
913
|
|
|
772
|
-
|
|
914
|
+
***
|
|
773
915
|
|
|
774
|
-
### getInboxUnreadCount
|
|
916
|
+
### getInboxUnreadCount()
|
|
775
917
|
|
|
776
|
-
|
|
918
|
+
> **getInboxUnreadCount**(`params?`): `Promise`\<`number`\>
|
|
777
919
|
|
|
778
920
|
Returns inbox unread count.
|
|
779
921
|
|
|
@@ -781,20 +923,21 @@ Returns inbox unread count.
|
|
|
781
923
|
|
|
782
924
|
#### Parameters
|
|
783
925
|
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
926
|
+
##### params?
|
|
927
|
+
|
|
928
|
+
###### onUpdate?
|
|
929
|
+
|
|
930
|
+
(`unread_count`) => `void`
|
|
788
931
|
|
|
789
932
|
#### Returns
|
|
790
933
|
|
|
791
934
|
`Promise`\<`number`\>
|
|
792
935
|
|
|
793
|
-
|
|
936
|
+
***
|
|
794
937
|
|
|
795
|
-
### getInboxMessageBody
|
|
938
|
+
### getInboxMessageBody()
|
|
796
939
|
|
|
797
|
-
|
|
940
|
+
> **getInboxMessageBody**(`messageGuid`): `Promise`\<[`TInboxMessageBody`](../interfaces/TInboxMessageBody.md)\>
|
|
798
941
|
|
|
799
942
|
Returns the message body of the specified message guid.
|
|
800
943
|
|
|
@@ -802,19 +945,19 @@ Returns the message body of the specified message guid.
|
|
|
802
945
|
|
|
803
946
|
#### Parameters
|
|
804
947
|
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
948
|
+
##### messageGuid
|
|
949
|
+
|
|
950
|
+
`string`
|
|
808
951
|
|
|
809
952
|
#### Returns
|
|
810
953
|
|
|
811
954
|
`Promise`\<[`TInboxMessageBody`](../interfaces/TInboxMessageBody.md)\>
|
|
812
955
|
|
|
813
|
-
|
|
956
|
+
***
|
|
814
957
|
|
|
815
|
-
### markInboxMessageAsRead
|
|
958
|
+
### markInboxMessageAsRead()
|
|
816
959
|
|
|
817
|
-
|
|
960
|
+
> **markInboxMessageAsRead**(`messageGuid`): `Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
818
961
|
|
|
819
962
|
Requests to mark inbox message with specified guid as read
|
|
820
963
|
|
|
@@ -822,19 +965,19 @@ Requests to mark inbox message with specified guid as read
|
|
|
822
965
|
|
|
823
966
|
#### Parameters
|
|
824
967
|
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
968
|
+
##### messageGuid
|
|
969
|
+
|
|
970
|
+
`string`
|
|
828
971
|
|
|
829
972
|
#### Returns
|
|
830
973
|
|
|
831
974
|
`Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
832
975
|
|
|
833
|
-
|
|
976
|
+
***
|
|
834
977
|
|
|
835
|
-
### markAllInboxMessagesAsRead
|
|
978
|
+
### markAllInboxMessagesAsRead()
|
|
836
979
|
|
|
837
|
-
|
|
980
|
+
> **markAllInboxMessagesAsRead**(): `Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
838
981
|
|
|
839
982
|
Requests to mark all inbox messages as read
|
|
840
983
|
|
|
@@ -844,11 +987,11 @@ Requests to mark all inbox messages as read
|
|
|
844
987
|
|
|
845
988
|
`Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
846
989
|
|
|
847
|
-
|
|
990
|
+
***
|
|
848
991
|
|
|
849
|
-
### markUnmarkInboxMessageAsFavorite
|
|
992
|
+
### markUnmarkInboxMessageAsFavorite()
|
|
850
993
|
|
|
851
|
-
|
|
994
|
+
> **markUnmarkInboxMessageAsFavorite**(`messageGuid`, `mark`): `Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
852
995
|
|
|
853
996
|
Requests to mark inbox message with specified guid as favorite. Pass mark true to add message to favorite and false to remove.
|
|
854
997
|
|
|
@@ -856,20 +999,23 @@ Requests to mark inbox message with specified guid as favorite. Pass mark true t
|
|
|
856
999
|
|
|
857
1000
|
#### Parameters
|
|
858
1001
|
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
1002
|
+
##### messageGuid
|
|
1003
|
+
|
|
1004
|
+
`string`
|
|
1005
|
+
|
|
1006
|
+
##### mark
|
|
1007
|
+
|
|
1008
|
+
`boolean`
|
|
863
1009
|
|
|
864
1010
|
#### Returns
|
|
865
1011
|
|
|
866
1012
|
`Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
867
1013
|
|
|
868
|
-
|
|
1014
|
+
***
|
|
869
1015
|
|
|
870
|
-
### deleteInboxMessage
|
|
1016
|
+
### deleteInboxMessage()
|
|
871
1017
|
|
|
872
|
-
|
|
1018
|
+
> **deleteInboxMessage**(`messageGuid`): `Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
873
1019
|
|
|
874
1020
|
Requests to delete inbox message
|
|
875
1021
|
|
|
@@ -877,19 +1023,19 @@ Requests to delete inbox message
|
|
|
877
1023
|
|
|
878
1024
|
#### Parameters
|
|
879
1025
|
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
1026
|
+
##### messageGuid
|
|
1027
|
+
|
|
1028
|
+
`string`
|
|
883
1029
|
|
|
884
1030
|
#### Returns
|
|
885
1031
|
|
|
886
1032
|
`Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
887
1033
|
|
|
888
|
-
|
|
1034
|
+
***
|
|
889
1035
|
|
|
890
|
-
### deleteAllInboxMessages
|
|
1036
|
+
### deleteAllInboxMessages()
|
|
891
1037
|
|
|
892
|
-
|
|
1038
|
+
> **deleteAllInboxMessages**(): `Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
893
1039
|
|
|
894
1040
|
Requests to delete all inbox messages
|
|
895
1041
|
|
|
@@ -899,29 +1045,29 @@ Requests to delete all inbox messages
|
|
|
899
1045
|
|
|
900
1046
|
`Promise`\<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
901
1047
|
|
|
902
|
-
|
|
1048
|
+
***
|
|
903
1049
|
|
|
904
|
-
### getTranslations
|
|
1050
|
+
### getTranslations()
|
|
905
1051
|
|
|
906
|
-
|
|
1052
|
+
> **getTranslations**(`lang_code`): `Promise`\<[`TGetTranslations`](../interfaces/TGetTranslations.md)\>
|
|
907
1053
|
|
|
908
1054
|
Requests translations for the given language. Returns the object including translation key/translation value pairs. All possible translation keys defined in the back office.
|
|
909
1055
|
|
|
910
1056
|
#### Parameters
|
|
911
1057
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
1058
|
+
##### lang\_code
|
|
1059
|
+
|
|
1060
|
+
`string`
|
|
915
1061
|
|
|
916
1062
|
#### Returns
|
|
917
1063
|
|
|
918
1064
|
`Promise`\<[`TGetTranslations`](../interfaces/TGetTranslations.md)\>
|
|
919
1065
|
|
|
920
|
-
|
|
1066
|
+
***
|
|
921
1067
|
|
|
922
|
-
### reportImpressionEvent
|
|
1068
|
+
### reportImpressionEvent()
|
|
923
1069
|
|
|
924
|
-
|
|
1070
|
+
> **reportImpressionEvent**(`params`): `void`
|
|
925
1071
|
|
|
926
1072
|
Reports an impression event for an engagement (when engagement content is displayed to the user).
|
|
927
1073
|
Use this method to track when users view engagement content such as inbox messages, popups.
|
|
@@ -939,21 +1085,31 @@ _smartico.api.reportImpressionEvent({
|
|
|
939
1085
|
|
|
940
1086
|
#### Parameters
|
|
941
1087
|
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1088
|
+
##### params
|
|
1089
|
+
|
|
1090
|
+
Event parameters
|
|
1091
|
+
|
|
1092
|
+
###### engagement_uid
|
|
1093
|
+
|
|
1094
|
+
`string`
|
|
1095
|
+
|
|
1096
|
+
Unique identifier for the engagement
|
|
1097
|
+
|
|
1098
|
+
###### activityType
|
|
1099
|
+
|
|
1100
|
+
`number`
|
|
1101
|
+
|
|
1102
|
+
Type of engagement activity (Popup=30, Inbox=31)
|
|
947
1103
|
|
|
948
1104
|
#### Returns
|
|
949
1105
|
|
|
950
1106
|
`void`
|
|
951
1107
|
|
|
952
|
-
|
|
1108
|
+
***
|
|
953
1109
|
|
|
954
|
-
### reportClickEvent
|
|
1110
|
+
### reportClickEvent()
|
|
955
1111
|
|
|
956
|
-
|
|
1112
|
+
> **reportClickEvent**(`params`): `void`
|
|
957
1113
|
|
|
958
1114
|
Reports a click/action event for an engagement (when user interacts with engagement content).
|
|
959
1115
|
Use this method to track when users click on or interact with engagement content such as inbox messages, popups.
|
|
@@ -972,22 +1128,37 @@ _smartico.api.reportClickEvent({
|
|
|
972
1128
|
|
|
973
1129
|
#### Parameters
|
|
974
1130
|
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
1131
|
+
##### params
|
|
1132
|
+
|
|
1133
|
+
Event parameters
|
|
1134
|
+
|
|
1135
|
+
###### engagement_uid
|
|
1136
|
+
|
|
1137
|
+
`string`
|
|
1138
|
+
|
|
1139
|
+
Unique identifier for the engagement
|
|
1140
|
+
|
|
1141
|
+
###### activityType
|
|
1142
|
+
|
|
1143
|
+
`number`
|
|
1144
|
+
|
|
1145
|
+
Type of engagement activity (Popup=30, Inbox=31)
|
|
1146
|
+
|
|
1147
|
+
###### action?
|
|
1148
|
+
|
|
1149
|
+
`string`
|
|
1150
|
+
|
|
1151
|
+
Optional action/deeplink that was triggered by the user interaction
|
|
981
1152
|
|
|
982
1153
|
#### Returns
|
|
983
1154
|
|
|
984
1155
|
`void`
|
|
985
1156
|
|
|
986
|
-
|
|
1157
|
+
***
|
|
987
1158
|
|
|
988
|
-
### getActivityLog
|
|
1159
|
+
### getActivityLog()
|
|
989
1160
|
|
|
990
|
-
|
|
1161
|
+
> **getActivityLog**(`params`): `Promise`\<[`TActivityLog`](../interfaces/TActivityLog.md)[]\>
|
|
991
1162
|
|
|
992
1163
|
Returns the activity log for a user within a specified time range.
|
|
993
1164
|
The response includes both points changes and gems/diamonds changes.
|
|
@@ -1015,100 +1186,125 @@ _smartico.api.getActivityLog({
|
|
|
1015
1186
|
|
|
1016
1187
|
#### Parameters
|
|
1017
1188
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1189
|
+
##### params
|
|
1190
|
+
|
|
1191
|
+
Activity log parameters
|
|
1192
|
+
|
|
1193
|
+
###### startTimeSeconds
|
|
1194
|
+
|
|
1195
|
+
`number`
|
|
1196
|
+
|
|
1197
|
+
Start time in seconds (epoch timestamp)
|
|
1198
|
+
|
|
1199
|
+
###### endTimeSeconds
|
|
1200
|
+
|
|
1201
|
+
`number`
|
|
1202
|
+
|
|
1203
|
+
End time in seconds (epoch timestamp)
|
|
1204
|
+
|
|
1205
|
+
###### from
|
|
1206
|
+
|
|
1207
|
+
`number`
|
|
1208
|
+
|
|
1209
|
+
Start index of records to return
|
|
1210
|
+
|
|
1211
|
+
###### to
|
|
1212
|
+
|
|
1213
|
+
`number`
|
|
1214
|
+
|
|
1215
|
+
End index of records to return
|
|
1216
|
+
|
|
1217
|
+
###### onUpdate?
|
|
1218
|
+
|
|
1219
|
+
(`data`) => `void`
|
|
1220
|
+
|
|
1221
|
+
Optional callback function that will be called when the activity log is updated
|
|
1026
1222
|
|
|
1027
1223
|
#### Returns
|
|
1028
1224
|
|
|
1029
1225
|
`Promise`\<[`TActivityLog`](../interfaces/TActivityLog.md)[]\>
|
|
1030
1226
|
|
|
1031
|
-
|
|
1227
|
+
***
|
|
1032
1228
|
|
|
1033
|
-
### gamePickGetActiveRounds
|
|
1229
|
+
### gamePickGetActiveRounds()
|
|
1034
1230
|
|
|
1035
|
-
|
|
1231
|
+
> **gamePickGetActiveRounds**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
|
|
1036
1232
|
|
|
1037
1233
|
Returns the active rounds for the specified MatchX or Quiz game.
|
|
1038
1234
|
Each round includes its events (matches/questions) along with the current user's selections and scores.
|
|
1039
1235
|
|
|
1040
1236
|
#### Parameters
|
|
1041
1237
|
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1238
|
+
##### props
|
|
1239
|
+
|
|
1240
|
+
[`GamePickRequestParams`](../interfaces/GamePickRequestParams.md)
|
|
1045
1241
|
|
|
1046
1242
|
#### Returns
|
|
1047
1243
|
|
|
1048
1244
|
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
|
|
1049
1245
|
|
|
1050
|
-
|
|
1246
|
+
***
|
|
1051
1247
|
|
|
1052
|
-
### gamePickGetActiveRound
|
|
1248
|
+
### gamePickGetActiveRound()
|
|
1053
1249
|
|
|
1054
|
-
|
|
1250
|
+
> **gamePickGetActiveRound**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1055
1251
|
|
|
1056
1252
|
Returns a single active round for the specified MatchX or Quiz game.
|
|
1057
1253
|
The round includes full event details with the current user's selections.
|
|
1058
1254
|
|
|
1059
1255
|
#### Parameters
|
|
1060
1256
|
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1257
|
+
##### props
|
|
1258
|
+
|
|
1259
|
+
[`GamePickRoundRequestParams`](../interfaces/GamePickRoundRequestParams.md)
|
|
1064
1260
|
|
|
1065
1261
|
#### Returns
|
|
1066
1262
|
|
|
1067
1263
|
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1068
1264
|
|
|
1069
|
-
|
|
1265
|
+
***
|
|
1070
1266
|
|
|
1071
|
-
### gamePickGetHistory
|
|
1267
|
+
### gamePickGetHistory()
|
|
1072
1268
|
|
|
1073
|
-
|
|
1269
|
+
> **gamePickGetHistory**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
|
|
1074
1270
|
|
|
1075
1271
|
Returns the history of all rounds (including resolved ones) for the specified MatchX or Quiz game.
|
|
1076
1272
|
Each round contains full event details with results and the current user's predictions.
|
|
1077
1273
|
|
|
1078
1274
|
#### Parameters
|
|
1079
1275
|
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1276
|
+
##### props
|
|
1277
|
+
|
|
1278
|
+
[`GamePickRequestParams`](../interfaces/GamePickRequestParams.md)
|
|
1083
1279
|
|
|
1084
1280
|
#### Returns
|
|
1085
1281
|
|
|
1086
1282
|
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)[]\>\>
|
|
1087
1283
|
|
|
1088
|
-
|
|
1284
|
+
***
|
|
1089
1285
|
|
|
1090
|
-
### gamePickGetBoard
|
|
1286
|
+
### gamePickGetBoard()
|
|
1091
1287
|
|
|
1092
|
-
|
|
1288
|
+
> **gamePickGetBoard**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRoundBoard`](../interfaces/GamePickRoundBoard.md)\>\>
|
|
1093
1289
|
|
|
1094
1290
|
Returns the leaderboard for a specific round within a MatchX or Quiz game.
|
|
1095
1291
|
Use `round_id = -1` (AllRoundsGameBoardID) to get the season/overall leaderboard across all rounds.
|
|
1096
1292
|
|
|
1097
1293
|
#### Parameters
|
|
1098
1294
|
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1295
|
+
##### props
|
|
1296
|
+
|
|
1297
|
+
[`GamePickRoundRequestParams`](../interfaces/GamePickRoundRequestParams.md)
|
|
1102
1298
|
|
|
1103
1299
|
#### Returns
|
|
1104
1300
|
|
|
1105
1301
|
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRoundBoard`](../interfaces/GamePickRoundBoard.md)\>\>
|
|
1106
1302
|
|
|
1107
|
-
|
|
1303
|
+
***
|
|
1108
1304
|
|
|
1109
|
-
### gamePickSubmitSelection
|
|
1305
|
+
### gamePickSubmitSelection()
|
|
1110
1306
|
|
|
1111
|
-
|
|
1307
|
+
> **gamePickSubmitSelection**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1112
1308
|
|
|
1113
1309
|
Submits score predictions for a round in a MatchX game.
|
|
1114
1310
|
Sends the round object with user selections for all events at once.
|
|
@@ -1118,19 +1314,19 @@ Predictions can be edited until each match starts (if `allow_edit_answers` is en
|
|
|
1118
1314
|
|
|
1119
1315
|
#### Parameters
|
|
1120
1316
|
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1317
|
+
##### props
|
|
1318
|
+
|
|
1319
|
+
[`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) & `object`
|
|
1124
1320
|
|
|
1125
1321
|
#### Returns
|
|
1126
1322
|
|
|
1127
1323
|
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1128
1324
|
|
|
1129
|
-
|
|
1325
|
+
***
|
|
1130
1326
|
|
|
1131
|
-
### gamePickSubmitSelectionQuiz
|
|
1327
|
+
### gamePickSubmitSelectionQuiz()
|
|
1132
1328
|
|
|
1133
|
-
|
|
1329
|
+
> **gamePickSubmitSelectionQuiz**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1134
1330
|
|
|
1135
1331
|
Submits answers for a round in a Quiz game.
|
|
1136
1332
|
Sends the round object with user answers for all events at once.
|
|
@@ -1140,19 +1336,19 @@ Answers can be edited until each match starts (if `allow_edit_answers` is enable
|
|
|
1140
1336
|
|
|
1141
1337
|
#### Parameters
|
|
1142
1338
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1339
|
+
##### props
|
|
1340
|
+
|
|
1341
|
+
[`GamePickRequestParams`](../interfaces/GamePickRequestParams.md) & `object`
|
|
1146
1342
|
|
|
1147
1343
|
#### Returns
|
|
1148
1344
|
|
|
1149
1345
|
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1150
1346
|
|
|
1151
|
-
|
|
1347
|
+
***
|
|
1152
1348
|
|
|
1153
|
-
### gamePickGetUserInfo
|
|
1349
|
+
### gamePickGetUserInfo()
|
|
1154
1350
|
|
|
1155
|
-
|
|
1351
|
+
> **gamePickGetUserInfo**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickUserInfo`](../interfaces/GamePickUserInfo.md)\>\>
|
|
1156
1352
|
|
|
1157
1353
|
Returns the current user's profile information within the specified MatchX or Quiz game.
|
|
1158
1354
|
The user record is synced from the Smartico platform into the games DB (synced every 1 minute).
|
|
@@ -1160,38 +1356,38 @@ If the user doesn't exist in the games DB yet, it will be created automatically
|
|
|
1160
1356
|
|
|
1161
1357
|
#### Parameters
|
|
1162
1358
|
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1359
|
+
##### props
|
|
1360
|
+
|
|
1361
|
+
[`GamePickRequestParams`](../interfaces/GamePickRequestParams.md)
|
|
1166
1362
|
|
|
1167
1363
|
#### Returns
|
|
1168
1364
|
|
|
1169
1365
|
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickUserInfo`](../interfaces/GamePickUserInfo.md)\>\>
|
|
1170
1366
|
|
|
1171
|
-
|
|
1367
|
+
***
|
|
1172
1368
|
|
|
1173
|
-
### gamePickGetGameInfo
|
|
1369
|
+
### gamePickGetGameInfo()
|
|
1174
1370
|
|
|
1175
|
-
|
|
1371
|
+
> **gamePickGetGameInfo**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickGameInfo`](../interfaces/GamePickGameInfo.md)\>\>
|
|
1176
1372
|
|
|
1177
1373
|
Returns the game configuration and the list of all rounds for the specified MatchX or Quiz game.
|
|
1178
1374
|
Includes the SAW template definition, label settings, and round metadata (without events).
|
|
1179
1375
|
|
|
1180
1376
|
#### Parameters
|
|
1181
1377
|
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1378
|
+
##### props
|
|
1379
|
+
|
|
1380
|
+
[`GamePickRequestParams`](../interfaces/GamePickRequestParams.md)
|
|
1185
1381
|
|
|
1186
1382
|
#### Returns
|
|
1187
1383
|
|
|
1188
1384
|
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickGameInfo`](../interfaces/GamePickGameInfo.md)\>\>
|
|
1189
1385
|
|
|
1190
|
-
|
|
1386
|
+
***
|
|
1191
1387
|
|
|
1192
|
-
### gamePickGetRoundInfoForUser
|
|
1388
|
+
### gamePickGetRoundInfoForUser()
|
|
1193
1389
|
|
|
1194
|
-
|
|
1390
|
+
> **gamePickGetRoundInfoForUser**(`props`): `Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1195
1391
|
|
|
1196
1392
|
Returns round data with events and picks for a specific user (identified by their internal user ID).
|
|
1197
1393
|
Useful for viewing another user's predictions from the leaderboard.
|
|
@@ -1199,19 +1395,133 @@ The `int_user_id` can be obtained from the `gamePickGetBoard` response (`users[]
|
|
|
1199
1395
|
|
|
1200
1396
|
#### Parameters
|
|
1201
1397
|
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1398
|
+
##### props
|
|
1399
|
+
|
|
1400
|
+
[`GamePickRoundRequestParams`](../interfaces/GamePickRoundRequestParams.md) & `object`
|
|
1205
1401
|
|
|
1206
1402
|
#### Returns
|
|
1207
1403
|
|
|
1208
1404
|
`Promise`\<[`GamesApiResponse`](../interfaces/GamesApiResponse.md)\<[`GamePickRound`](../interfaces/GamePickRound.md)\>\>
|
|
1209
1405
|
|
|
1210
|
-
|
|
1406
|
+
***
|
|
1407
|
+
|
|
1408
|
+
### getAvatarsList()
|
|
1409
|
+
|
|
1410
|
+
> **getAvatarsList**(): `Promise`\<[`TAvatarDefinition`](../interfaces/TAvatarDefinition.md)[]\>
|
|
1411
|
+
|
|
1412
|
+
Returns the list of avatars available in the catalog for the current user.
|
|
1413
|
+
The response includes both free avatars and earned/purchased ones.
|
|
1414
|
+
Avatars with `hide_until_achieved = true` and `is_given = false` should be hidden from the user.
|
|
1415
|
+
The result is cached for 30 seconds.
|
|
1416
|
+
|
|
1417
|
+
**Example**:
|
|
1418
|
+
```
|
|
1419
|
+
_smartico.api.getAvatarsList().then((result) => {
|
|
1420
|
+
console.log(result);
|
|
1421
|
+
});
|
|
1422
|
+
```
|
|
1423
|
+
|
|
1424
|
+
**Visitor mode: not supported**
|
|
1425
|
+
|
|
1426
|
+
#### Returns
|
|
1427
|
+
|
|
1428
|
+
`Promise`\<[`TAvatarDefinition`](../interfaces/TAvatarDefinition.md)[]\>
|
|
1429
|
+
|
|
1430
|
+
***
|
|
1431
|
+
|
|
1432
|
+
### getAvatarsCustomized()
|
|
1433
|
+
|
|
1434
|
+
> **getAvatarsCustomized**(): `Promise`\<[`TAvatarCustomized`](../interfaces/TAvatarCustomized.md)[]\>
|
|
1435
|
+
|
|
1436
|
+
Returns the list of AI-customized avatars for the current user.
|
|
1437
|
+
Each entry represents a previously generated AI customization for a specific base avatar.
|
|
1438
|
+
The result is cached for 30 seconds.
|
|
1439
|
+
|
|
1440
|
+
**Example**:
|
|
1441
|
+
```
|
|
1442
|
+
_smartico.api.getAvatarsCustomized().then((result) => {
|
|
1443
|
+
console.log(result);
|
|
1444
|
+
});
|
|
1445
|
+
```
|
|
1446
|
+
|
|
1447
|
+
**Visitor mode: not supported**
|
|
1448
|
+
|
|
1449
|
+
#### Returns
|
|
1450
|
+
|
|
1451
|
+
`Promise`\<[`TAvatarCustomized`](../interfaces/TAvatarCustomized.md)[]\>
|
|
1452
|
+
|
|
1453
|
+
***
|
|
1454
|
+
|
|
1455
|
+
### getAvatarPrompts()
|
|
1456
|
+
|
|
1457
|
+
> **getAvatarPrompts**(): `Promise`\<[`TAvatarPrompt`](../interfaces/TAvatarPrompt.md)[]\>
|
|
1458
|
+
|
|
1459
|
+
Returns the list of AI customization prompts (styles) available for avatar customization.
|
|
1460
|
+
Each prompt represents a visual style that can be applied to a base avatar.
|
|
1461
|
+
The result is cached for 30 seconds.
|
|
1462
|
+
|
|
1463
|
+
**Example**:
|
|
1464
|
+
```
|
|
1465
|
+
_smartico.api.getAvatarPrompts().then((result) => {
|
|
1466
|
+
console.log(result);
|
|
1467
|
+
});
|
|
1468
|
+
```
|
|
1469
|
+
|
|
1470
|
+
**Visitor mode: not supported**
|
|
1471
|
+
|
|
1472
|
+
#### Returns
|
|
1473
|
+
|
|
1474
|
+
`Promise`\<[`TAvatarPrompt`](../interfaces/TAvatarPrompt.md)[]\>
|
|
1475
|
+
|
|
1476
|
+
***
|
|
1477
|
+
|
|
1478
|
+
### setAvatar()
|
|
1479
|
+
|
|
1480
|
+
> **setAvatar**(`props`): `Promise`\<[`TSetAvatarResult`](../interfaces/TSetAvatarResult.md)\>
|
|
1481
|
+
|
|
1482
|
+
Sets the specified avatar as the active avatar for the current user.
|
|
1483
|
+
Pass `avatar_url` (the `TAvatarDefinition.url` path or a CDN URL for AI-customized avatars)
|
|
1484
|
+
and `avatar_real_id` from the avatar catalog.
|
|
1485
|
+
After a successful call, the avatar list cache is cleared so the next `getAvatarsList()` call reflects `is_in_use`.
|
|
1486
|
+
|
|
1487
|
+
**Example**:
|
|
1488
|
+
```
|
|
1489
|
+
_smartico.api.getAvatarsList().then((avatars) => {
|
|
1490
|
+
const avatar = avatars.find((a) => !a.hide_until_achieved || a.is_given);
|
|
1491
|
+
if (avatar) {
|
|
1492
|
+
_smartico.api.setAvatar({
|
|
1493
|
+
avatar_url: avatar.url,
|
|
1494
|
+
avatar_real_id: avatar.avatar_real_id,
|
|
1495
|
+
}).then((result) => {
|
|
1496
|
+
console.log(result);
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
});
|
|
1500
|
+
```
|
|
1501
|
+
|
|
1502
|
+
**Visitor mode: not supported**
|
|
1503
|
+
|
|
1504
|
+
#### Parameters
|
|
1505
|
+
|
|
1506
|
+
##### props
|
|
1507
|
+
|
|
1508
|
+
###### avatar_url
|
|
1509
|
+
|
|
1510
|
+
`string`
|
|
1211
1511
|
|
|
1212
|
-
|
|
1512
|
+
###### avatar_real_id
|
|
1213
1513
|
|
|
1214
|
-
|
|
1514
|
+
`number`
|
|
1515
|
+
|
|
1516
|
+
#### Returns
|
|
1517
|
+
|
|
1518
|
+
`Promise`\<[`TSetAvatarResult`](../interfaces/TSetAvatarResult.md)\>
|
|
1519
|
+
|
|
1520
|
+
***
|
|
1521
|
+
|
|
1522
|
+
### jackpotGet()
|
|
1523
|
+
|
|
1524
|
+
> **jackpotGet**(`filter?`): `Promise`\<[`JackpotDetails`](../interfaces/JackpotDetails.md)[]\>
|
|
1215
1525
|
|
|
1216
1526
|
Returns list of Jackpots that are active in the system and matching to the filter definition.
|
|
1217
1527
|
If filter is not provided, all active jackpots will be returned.
|
|
@@ -1234,21 +1544,25 @@ _smartico.vapi('EN').jackpotGet({ related_game_id: 'wooko-slot' }).then((result)
|
|
|
1234
1544
|
|
|
1235
1545
|
#### Parameters
|
|
1236
1546
|
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1547
|
+
##### filter?
|
|
1548
|
+
|
|
1549
|
+
###### related_game_id?
|
|
1550
|
+
|
|
1551
|
+
`string`
|
|
1552
|
+
|
|
1553
|
+
###### jp_template_id?
|
|
1554
|
+
|
|
1555
|
+
`number`
|
|
1242
1556
|
|
|
1243
1557
|
#### Returns
|
|
1244
1558
|
|
|
1245
1559
|
`Promise`\<[`JackpotDetails`](../interfaces/JackpotDetails.md)[]\>
|
|
1246
1560
|
|
|
1247
|
-
|
|
1561
|
+
***
|
|
1248
1562
|
|
|
1249
|
-
### jackpotOptIn
|
|
1563
|
+
### jackpotOptIn()
|
|
1250
1564
|
|
|
1251
|
-
|
|
1565
|
+
> **jackpotOptIn**(`filter`): `Promise`\<[`JackpotsOptinResponse`](../interfaces/JackpotsOptinResponse.md)\>
|
|
1252
1566
|
|
|
1253
1567
|
Opt-in currently logged in user to the jackpot with the specified jp_template_id.
|
|
1254
1568
|
You may call jackpotGet method after doing optin to see that user is opted in to the jackpot.
|
|
@@ -1264,20 +1578,21 @@ _smartico.api.jackpotOptIn({ jp_template_id: 123 }).then((result) => {
|
|
|
1264
1578
|
|
|
1265
1579
|
#### Parameters
|
|
1266
1580
|
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1581
|
+
##### filter
|
|
1582
|
+
|
|
1583
|
+
###### jp_template_id
|
|
1584
|
+
|
|
1585
|
+
`number`
|
|
1271
1586
|
|
|
1272
1587
|
#### Returns
|
|
1273
1588
|
|
|
1274
1589
|
`Promise`\<[`JackpotsOptinResponse`](../interfaces/JackpotsOptinResponse.md)\>
|
|
1275
1590
|
|
|
1276
|
-
|
|
1591
|
+
***
|
|
1277
1592
|
|
|
1278
|
-
### jackpotOptOut
|
|
1593
|
+
### jackpotOptOut()
|
|
1279
1594
|
|
|
1280
|
-
|
|
1595
|
+
> **jackpotOptOut**(`filter`): `Promise`\<[`JackpotsOptoutResponse`](../interfaces/JackpotsOptoutResponse.md)\>
|
|
1281
1596
|
|
|
1282
1597
|
Opt-out currently logged in user from the jackpot with the specified jp_template_id.
|
|
1283
1598
|
You may call jackpotGet method after doing optout to see that user is not opted in to the jackpot.
|
|
@@ -1293,20 +1608,21 @@ _smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
|
|
|
1293
1608
|
|
|
1294
1609
|
#### Parameters
|
|
1295
1610
|
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1611
|
+
##### filter
|
|
1612
|
+
|
|
1613
|
+
###### jp_template_id
|
|
1614
|
+
|
|
1615
|
+
`number`
|
|
1300
1616
|
|
|
1301
1617
|
#### Returns
|
|
1302
1618
|
|
|
1303
1619
|
`Promise`\<[`JackpotsOptoutResponse`](../interfaces/JackpotsOptoutResponse.md)\>
|
|
1304
1620
|
|
|
1305
|
-
|
|
1621
|
+
***
|
|
1306
1622
|
|
|
1307
|
-
### getJackpotWinners
|
|
1623
|
+
### getJackpotWinners()
|
|
1308
1624
|
|
|
1309
|
-
|
|
1625
|
+
> **getJackpotWinners**(`params`): `Promise`\<[`JackpotWinnerHistory`](../interfaces/JackpotWinnerHistory.md)[]\>
|
|
1310
1626
|
|
|
1311
1627
|
Returns jackpot winners for the given `jp_template_id` (paginated on the server).
|
|
1312
1628
|
Default page size on the wire is 20; use `limit`, `offset`, and repeated calls to load more.
|
|
@@ -1325,22 +1641,37 @@ _smartico.api.getJackpotWinners({
|
|
|
1325
1641
|
|
|
1326
1642
|
#### Parameters
|
|
1327
1643
|
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1644
|
+
##### params
|
|
1645
|
+
|
|
1646
|
+
Jackpot winners parameters
|
|
1647
|
+
|
|
1648
|
+
###### limit?
|
|
1649
|
+
|
|
1650
|
+
`number`
|
|
1651
|
+
|
|
1652
|
+
Page size (server default 20 when omitted)
|
|
1653
|
+
|
|
1654
|
+
###### offset?
|
|
1655
|
+
|
|
1656
|
+
`number`
|
|
1657
|
+
|
|
1658
|
+
Offset into the winner list
|
|
1659
|
+
|
|
1660
|
+
###### jp_template_id?
|
|
1661
|
+
|
|
1662
|
+
`number`
|
|
1663
|
+
|
|
1664
|
+
Jackpot template id (required; throws if missing)
|
|
1334
1665
|
|
|
1335
1666
|
#### Returns
|
|
1336
1667
|
|
|
1337
1668
|
`Promise`\<[`JackpotWinnerHistory`](../interfaces/JackpotWinnerHistory.md)[]\>
|
|
1338
1669
|
|
|
1339
|
-
|
|
1670
|
+
***
|
|
1340
1671
|
|
|
1341
|
-
### getJackpotEligibleGames
|
|
1672
|
+
### getJackpotEligibleGames()
|
|
1342
1673
|
|
|
1343
|
-
|
|
1674
|
+
> **getJackpotEligibleGames**(`__namedParameters`): `Promise`\<[`TGetJackpotEligibleGamesResponse`](../interfaces/TGetJackpotEligibleGamesResponse.md)\>
|
|
1344
1675
|
|
|
1345
1676
|
Returns the eligible games for the jackpot with the specified jp_template_id.
|
|
1346
1677
|
|
|
@@ -1355,21 +1686,25 @@ _smartico.api.getJackpotEligibleGames({ jp_template_id: 123 }).then((result) =>
|
|
|
1355
1686
|
|
|
1356
1687
|
#### Parameters
|
|
1357
1688
|
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1689
|
+
##### \_\_namedParameters
|
|
1690
|
+
|
|
1691
|
+
###### jp_template_id
|
|
1692
|
+
|
|
1693
|
+
`number`
|
|
1694
|
+
|
|
1695
|
+
###### onUpdate?
|
|
1696
|
+
|
|
1697
|
+
() => `void`
|
|
1363
1698
|
|
|
1364
1699
|
#### Returns
|
|
1365
1700
|
|
|
1366
1701
|
`Promise`\<[`TGetJackpotEligibleGamesResponse`](../interfaces/TGetJackpotEligibleGamesResponse.md)\>
|
|
1367
1702
|
|
|
1368
|
-
|
|
1703
|
+
***
|
|
1369
1704
|
|
|
1370
|
-
### getRelatedItemsForGame
|
|
1705
|
+
### getRelatedItemsForGame()
|
|
1371
1706
|
|
|
1372
|
-
|
|
1707
|
+
> **getRelatedItemsForGame**(`related_game_id`): `Promise`\<[`GetRelatedAchTourResponse`](../interfaces/GetRelatedAchTourResponse.md)\>
|
|
1373
1708
|
|
|
1374
1709
|
Returns all the related tournaments and missions for the provided game id for the current user
|
|
1375
1710
|
The provided Game ID should correspond to the ID from the Games Catalog - https://help.smartico.ai/welcome/technical-guides/games-catalog-api
|
|
@@ -1390,19 +1725,19 @@ _smartico.vapi('EN').getRelatedItemsForGame('gold-slot2').then((result) => {
|
|
|
1390
1725
|
|
|
1391
1726
|
#### Parameters
|
|
1392
1727
|
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1728
|
+
##### related\_game\_id
|
|
1729
|
+
|
|
1730
|
+
`string`
|
|
1396
1731
|
|
|
1397
1732
|
#### Returns
|
|
1398
1733
|
|
|
1399
1734
|
`Promise`\<[`GetRelatedAchTourResponse`](../interfaces/GetRelatedAchTourResponse.md)\>
|
|
1400
1735
|
|
|
1401
|
-
|
|
1736
|
+
***
|
|
1402
1737
|
|
|
1403
|
-
### getRaffles
|
|
1738
|
+
### getRaffles()
|
|
1404
1739
|
|
|
1405
|
-
|
|
1740
|
+
> **getRaffles**(`__namedParameters?`): `Promise`\<[`TRaffle`](../interfaces/TRaffle.md)[]\>
|
|
1406
1741
|
|
|
1407
1742
|
Returns the list of Raffles available for user
|
|
1408
1743
|
The returned list of Raffles is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getRaffles with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
@@ -1426,20 +1761,21 @@ _smartico.vapi('EN').getRaffles().then((result) => {
|
|
|
1426
1761
|
|
|
1427
1762
|
#### Parameters
|
|
1428
1763
|
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1764
|
+
##### \_\_namedParameters?
|
|
1765
|
+
|
|
1766
|
+
###### onUpdate?
|
|
1767
|
+
|
|
1768
|
+
(`data`) => `void`
|
|
1433
1769
|
|
|
1434
1770
|
#### Returns
|
|
1435
1771
|
|
|
1436
1772
|
`Promise`\<[`TRaffle`](../interfaces/TRaffle.md)[]\>
|
|
1437
1773
|
|
|
1438
|
-
|
|
1774
|
+
***
|
|
1439
1775
|
|
|
1440
|
-
### getRaffleDrawRun
|
|
1776
|
+
### getRaffleDrawRun()
|
|
1441
1777
|
|
|
1442
|
-
|
|
1778
|
+
> **getRaffleDrawRun**(`props`): `Promise`\<[`TRaffleDraw`](../interfaces/TRaffleDraw.md)\>
|
|
1443
1779
|
|
|
1444
1780
|
Returns draw run for provided raffle_id and run_id.
|
|
1445
1781
|
You can pass winners_from and winners_to parameters to get a specific range of winners. Default is 0-20.
|
|
@@ -1462,23 +1798,33 @@ _smartico.vapi('EN').getRaffleDrawRun({ raffle_id: 156, run_id: 145 }).then((res
|
|
|
1462
1798
|
|
|
1463
1799
|
#### Parameters
|
|
1464
1800
|
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1801
|
+
##### props
|
|
1802
|
+
|
|
1803
|
+
###### raffle_id
|
|
1804
|
+
|
|
1805
|
+
`number`
|
|
1806
|
+
|
|
1807
|
+
###### run_id
|
|
1808
|
+
|
|
1809
|
+
`number`
|
|
1810
|
+
|
|
1811
|
+
###### winners_from?
|
|
1812
|
+
|
|
1813
|
+
`number`
|
|
1814
|
+
|
|
1815
|
+
###### winners_to?
|
|
1816
|
+
|
|
1817
|
+
`number`
|
|
1472
1818
|
|
|
1473
1819
|
#### Returns
|
|
1474
1820
|
|
|
1475
1821
|
`Promise`\<[`TRaffleDraw`](../interfaces/TRaffleDraw.md)\>
|
|
1476
1822
|
|
|
1477
|
-
|
|
1823
|
+
***
|
|
1478
1824
|
|
|
1479
|
-
### getRaffleDrawRunsHistory
|
|
1825
|
+
### getRaffleDrawRunsHistory()
|
|
1480
1826
|
|
|
1481
|
-
|
|
1827
|
+
> **getRaffleDrawRunsHistory**(`props`): `Promise`\<[`TRaffleDrawRun`](../interfaces/TRaffleDrawRun.md)[]\>
|
|
1482
1828
|
|
|
1483
1829
|
Returns history of draw runs for the provided raffle_id and draw_id, if the draw_id is not provided will return history of all the draws for the provided raffle_id
|
|
1484
1830
|
|
|
@@ -1500,21 +1846,25 @@ _smartico.vapi('EN').getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).
|
|
|
1500
1846
|
|
|
1501
1847
|
#### Parameters
|
|
1502
1848
|
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1849
|
+
##### props
|
|
1850
|
+
|
|
1851
|
+
###### raffle_id
|
|
1852
|
+
|
|
1853
|
+
`number`
|
|
1854
|
+
|
|
1855
|
+
###### draw_id?
|
|
1856
|
+
|
|
1857
|
+
`number`
|
|
1508
1858
|
|
|
1509
1859
|
#### Returns
|
|
1510
1860
|
|
|
1511
1861
|
`Promise`\<[`TRaffleDrawRun`](../interfaces/TRaffleDrawRun.md)[]\>
|
|
1512
1862
|
|
|
1513
|
-
|
|
1863
|
+
***
|
|
1514
1864
|
|
|
1515
|
-
### claimRafflePrize
|
|
1865
|
+
### claimRafflePrize()
|
|
1516
1866
|
|
|
1517
|
-
|
|
1867
|
+
> **claimRafflePrize**(`props`): `Promise`\<[`TransformedRaffleClaimPrizeResponse`](../interfaces/TransformedRaffleClaimPrizeResponse.md)\>
|
|
1518
1868
|
|
|
1519
1869
|
Returns `err_code` and `err_message` after the call; `err_code` 0 means the request succeeded.
|
|
1520
1870
|
|
|
@@ -1536,20 +1886,21 @@ _smartico.vapi('EN').claimRafflePrize({ won_id: 251 }).then((result) => {
|
|
|
1536
1886
|
|
|
1537
1887
|
#### Parameters
|
|
1538
1888
|
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1889
|
+
##### props
|
|
1890
|
+
|
|
1891
|
+
###### won_id
|
|
1892
|
+
|
|
1893
|
+
`number`
|
|
1543
1894
|
|
|
1544
1895
|
#### Returns
|
|
1545
1896
|
|
|
1546
1897
|
`Promise`\<[`TransformedRaffleClaimPrizeResponse`](../interfaces/TransformedRaffleClaimPrizeResponse.md)\>
|
|
1547
1898
|
|
|
1548
|
-
|
|
1899
|
+
***
|
|
1549
1900
|
|
|
1550
|
-
### requestRaffleOptin
|
|
1901
|
+
### requestRaffleOptin()
|
|
1551
1902
|
|
|
1552
|
-
|
|
1903
|
+
> **requestRaffleOptin**(`props`): `Promise`\<[`TRaffleOptinResponse`](../interfaces/TRaffleOptinResponse.md)\>
|
|
1553
1904
|
|
|
1554
1905
|
Requests an opt-in for the specified raffle. Returns the err_code.
|
|
1555
1906
|
|
|
@@ -1557,12 +1908,19 @@ Requests an opt-in for the specified raffle. Returns the err_code.
|
|
|
1557
1908
|
|
|
1558
1909
|
#### Parameters
|
|
1559
1910
|
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1911
|
+
##### props
|
|
1912
|
+
|
|
1913
|
+
###### raffle_id
|
|
1914
|
+
|
|
1915
|
+
`number`
|
|
1916
|
+
|
|
1917
|
+
###### draw_id
|
|
1918
|
+
|
|
1919
|
+
`number`
|
|
1920
|
+
|
|
1921
|
+
###### raffle_run_id
|
|
1922
|
+
|
|
1923
|
+
`number`
|
|
1566
1924
|
|
|
1567
1925
|
#### Returns
|
|
1568
1926
|
|