@smartico/public-api 0.0.90 → 0.0.91
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 +77 -77
- 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/CoreUtils.d.ts +4 -4
- 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 +29 -29
- package/dist/Core/PublicProperties.d.ts +11 -11
- 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/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 +5 -5
- package/dist/Inbox/InboxMessage.d.ts +19 -19
- package/dist/Inbox/InboxMessageType.d.ts +11 -11
- package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +4 -4
- package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +5 -5
- package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +4 -4
- package/dist/Inbox/index.d.ts +8 -8
- package/dist/IntUtils.d.ts +9 -9
- 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/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 +17 -17
- 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 +10 -10
- package/dist/MiniGames/SAWGameType.d.ts +16 -16
- package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +5 -5
- package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +7 -7
- package/dist/MiniGames/SAWPrize.d.ts +11 -11
- package/dist/MiniGames/SAWPrizeType.d.ts +20 -20
- package/dist/MiniGames/SAWPrizeUI.d.ts +15 -15
- package/dist/MiniGames/SAWSpinErrorCode.d.ts +14 -14
- package/dist/MiniGames/SAWSpinsCountPush.d.ts +5 -5
- package/dist/MiniGames/SAWTemplate.d.ts +27 -27
- package/dist/MiniGames/SAWTemplateUI.d.ts +38 -38
- package/dist/MiniGames/SAWUtils.d.ts +5 -5
- package/dist/MiniGames/SAWWinSoundType.d.ts +12 -12
- package/dist/MiniGames/index.d.ts +19 -19
- package/dist/Missions/AchievementOptinRequest.d.ts +4 -4
- package/dist/Missions/AchievementOptinResponse.d.ts +3 -3
- package/dist/Missions/AchievementPublicMeta.d.ts +18 -18
- package/dist/Missions/AchievementStatus.d.ts +8 -8
- package/dist/Missions/AchievementTaskPublicMeta.d.ts +3 -3
- package/dist/Missions/AchievementTaskType.d.ts +4 -4
- package/dist/Missions/AchievementType.d.ts +4 -4
- 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 +26 -26
- package/dist/Missions/UserAchievementTask.d.ts +14 -14
- package/dist/Missions/index.d.ts +13 -13
- package/dist/NodeCache.d.ts +9 -9
- package/dist/OCache.d.ts +13 -13
- package/dist/SmarticoAPI.d.ts +81 -81
- package/dist/Store/BuyStoreItemErrorCode.d.ts +10 -10
- 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/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 +11 -11
- package/dist/Store/StoreItemPublicMeta.d.ts +12 -12
- package/dist/Store/StoreItemType.d.ts +4 -4
- package/dist/Store/index.d.ts +10 -10
- 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 +49 -49
- 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 +25 -25
- 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 +9 -9
- package/dist/Tournaments/index.d.ts +16 -16
- package/dist/WSAPI/WSAPI.d.ts +65 -65
- package/dist/WSAPI/WSAPITypes.d.ts +377 -377
- package/dist/index.d.ts +12 -12
- package/dist/index.js +18 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +18 -19
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/dist/SmarticoPublicAPI.d.ts +0 -23
- package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
- package/dist/Store/BuyShopItemRequest.d.ts +0 -4
- package/dist/Store/BuyShopItemResponse.d.ts +0 -4
- package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
- package/dist/Store/GetShopItemsResponse.d.ts +0 -5
- package/dist/Store/ShopCategory.d.ts +0 -5
- package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
- package/dist/Store/ShopItem.d.ts +0 -9
- package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
- package/dist/Store/ShopItemType.d.ts +0 -4
- package/dist/service/index.d.ts +0 -5
- package/dist/service/types/ErrorCodes.d.ts +0 -13
- package/dist/service/types/GRequest.d.ts +0 -16
- package/dist/service/types/GResponse.d.ts +0 -10
- package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
- package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
- package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
- package/dist/service/types/Game/GameInfo.d.ts +0 -9
- package/dist/service/types/Game/GamePick.d.ts +0 -90
- package/dist/service/types/Game/GameUtil.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
- package/dist/service/types/User/UserInfo.d.ts +0 -10
- package/dist/util/Util.d.ts +0 -51
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
import { SmarticoAPI } from "../SmarticoAPI";
|
|
2
|
-
import { TBuyStoreItemResult, TGetTranslations, TLevel, TMiniGamePlayResult, TMiniGameTemplate, TMissionOptInResult, TMissionOrBadge, TStoreItem, TTournament, TTournamentDetailed, TTournamentRegistrationResult, TUserProfile } from "./WSAPITypes";
|
|
3
|
-
/** @group General API */
|
|
4
|
-
export declare class WSAPI {
|
|
5
|
-
private api;
|
|
6
|
-
private onUpdateCallback;
|
|
7
|
-
/** @private */
|
|
8
|
-
constructor(api: SmarticoAPI);
|
|
9
|
-
/** Returns information about current user */
|
|
10
|
-
getUserProfile(): TUserProfile;
|
|
11
|
-
/** Returns all the levels available the current user */
|
|
12
|
-
getLevels(): Promise<TLevel[]>;
|
|
13
|
-
/** Returns all the missions available the current user.
|
|
14
|
-
* The returned missions is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
15
|
-
* The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it. */
|
|
16
|
-
/**
|
|
17
|
-
* @param params
|
|
18
|
-
*/
|
|
19
|
-
getMissions({ onUpdate }?: {
|
|
20
|
-
onUpdate?: (data: TMissionOrBadge[]) => void;
|
|
21
|
-
}): Promise<TMissionOrBadge[]>;
|
|
22
|
-
/** Returns all the badges available the current user */
|
|
23
|
-
getBadges(): Promise<TMissionOrBadge[]>;
|
|
24
|
-
/** Returns all the store items available the current user */
|
|
25
|
-
getStoreItems(): Promise<TStoreItem[]>;
|
|
26
|
-
/** Buy the specific shop item by item_id. Returns the err_code.*/
|
|
27
|
-
buyStoreItem(item_id: number): Promise<TBuyStoreItemResult>;
|
|
28
|
-
/** Returns store categories */
|
|
29
|
-
getStoreCategories(): Promise<TStoreItem[]>;
|
|
30
|
-
/** Returns the list of mini-games available for user
|
|
31
|
-
* 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.
|
|
32
|
-
* 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. */
|
|
33
|
-
/**
|
|
34
|
-
/**
|
|
35
|
-
* @param params
|
|
36
|
-
*/
|
|
37
|
-
getMiniGames({ onUpdate }?: {
|
|
38
|
-
onUpdate?: (data: TMiniGameTemplate[]) => void;
|
|
39
|
-
}): Promise<TMiniGameTemplate[]>;
|
|
40
|
-
/** Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code */
|
|
41
|
-
playMiniGame(template_id: number): Promise<TMiniGamePlayResult>;
|
|
42
|
-
/** Requests an opt-in for the specified mission_id. Returns the err_code. */
|
|
43
|
-
requestMissionOptIn(mission_id: number): Promise<TMissionOptInResult>;
|
|
44
|
-
/** Returns all the active instances of tournaments
|
|
45
|
-
* 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.
|
|
46
|
-
* The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.*/
|
|
47
|
-
/**
|
|
48
|
-
* @param params
|
|
49
|
-
*/
|
|
50
|
-
getTournamentsList({ onUpdate }?: {
|
|
51
|
-
onUpdate?: (data: TTournament[]) => void;
|
|
52
|
-
}): Promise<TTournament[]>;
|
|
53
|
-
/** Returns details information of specific tournament instance, the response will includ tournamnet info and the leaderboard of players */
|
|
54
|
-
getTournamentInstanceInfo(tournamentInstanceId: number): Promise<TTournamentDetailed>;
|
|
55
|
-
/** Requests registration for the specified tournament instance. Returns the err_code. */
|
|
56
|
-
registerInTournament(tournamentInstanceId: number): Promise<TTournamentRegistrationResult>;
|
|
57
|
-
/** Requests translations for the given language. Returns the object including translation key/translation value pairs. All possible translation keys defined in the back office. */
|
|
58
|
-
getTranslations(lang_code: string): Promise<TGetTranslations>;
|
|
59
|
-
private updateOnSpin;
|
|
60
|
-
private updateOnAddSpin;
|
|
61
|
-
private updateOnPrizeWin;
|
|
62
|
-
private updateMissionsOnOptIn;
|
|
63
|
-
private updateTournamentsOnRegistration;
|
|
64
|
-
private updateEntity;
|
|
65
|
-
}
|
|
1
|
+
import { SmarticoAPI } from "../SmarticoAPI";
|
|
2
|
+
import { TBuyStoreItemResult, TGetTranslations, TLevel, TMiniGamePlayResult, TMiniGameTemplate, TMissionOptInResult, TMissionOrBadge, TStoreItem, TTournament, TTournamentDetailed, TTournamentRegistrationResult, TUserProfile } from "./WSAPITypes";
|
|
3
|
+
/** @group General API */
|
|
4
|
+
export declare class WSAPI {
|
|
5
|
+
private api;
|
|
6
|
+
private onUpdateCallback;
|
|
7
|
+
/** @private */
|
|
8
|
+
constructor(api: SmarticoAPI);
|
|
9
|
+
/** Returns information about current user */
|
|
10
|
+
getUserProfile(): TUserProfile;
|
|
11
|
+
/** Returns all the levels available the current user */
|
|
12
|
+
getLevels(): Promise<TLevel[]>;
|
|
13
|
+
/** Returns all the missions available the current user.
|
|
14
|
+
* The returned missions is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
15
|
+
* The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it. */
|
|
16
|
+
/**
|
|
17
|
+
* @param params
|
|
18
|
+
*/
|
|
19
|
+
getMissions({ onUpdate }?: {
|
|
20
|
+
onUpdate?: (data: TMissionOrBadge[]) => void;
|
|
21
|
+
}): Promise<TMissionOrBadge[]>;
|
|
22
|
+
/** Returns all the badges available the current user */
|
|
23
|
+
getBadges(): Promise<TMissionOrBadge[]>;
|
|
24
|
+
/** Returns all the store items available the current user */
|
|
25
|
+
getStoreItems(): Promise<TStoreItem[]>;
|
|
26
|
+
/** Buy the specific shop item by item_id. Returns the err_code.*/
|
|
27
|
+
buyStoreItem(item_id: number): Promise<TBuyStoreItemResult>;
|
|
28
|
+
/** Returns store categories */
|
|
29
|
+
getStoreCategories(): Promise<TStoreItem[]>;
|
|
30
|
+
/** Returns the list of mini-games available for user
|
|
31
|
+
* 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.
|
|
32
|
+
* 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. */
|
|
33
|
+
/**
|
|
34
|
+
/**
|
|
35
|
+
* @param params
|
|
36
|
+
*/
|
|
37
|
+
getMiniGames({ onUpdate }?: {
|
|
38
|
+
onUpdate?: (data: TMiniGameTemplate[]) => void;
|
|
39
|
+
}): Promise<TMiniGameTemplate[]>;
|
|
40
|
+
/** Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code */
|
|
41
|
+
playMiniGame(template_id: number): Promise<TMiniGamePlayResult>;
|
|
42
|
+
/** Requests an opt-in for the specified mission_id. Returns the err_code. */
|
|
43
|
+
requestMissionOptIn(mission_id: number): Promise<TMissionOptInResult>;
|
|
44
|
+
/** Returns all the active instances of tournaments
|
|
45
|
+
* 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.
|
|
46
|
+
* The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.*/
|
|
47
|
+
/**
|
|
48
|
+
* @param params
|
|
49
|
+
*/
|
|
50
|
+
getTournamentsList({ onUpdate }?: {
|
|
51
|
+
onUpdate?: (data: TTournament[]) => void;
|
|
52
|
+
}): Promise<TTournament[]>;
|
|
53
|
+
/** Returns details information of specific tournament instance, the response will includ tournamnet info and the leaderboard of players */
|
|
54
|
+
getTournamentInstanceInfo(tournamentInstanceId: number): Promise<TTournamentDetailed>;
|
|
55
|
+
/** Requests registration for the specified tournament instance. Returns the err_code. */
|
|
56
|
+
registerInTournament(tournamentInstanceId: number): Promise<TTournamentRegistrationResult>;
|
|
57
|
+
/** Requests translations for the given language. Returns the object including translation key/translation value pairs. All possible translation keys defined in the back office. */
|
|
58
|
+
getTranslations(lang_code: string): Promise<TGetTranslations>;
|
|
59
|
+
private updateOnSpin;
|
|
60
|
+
private updateOnAddSpin;
|
|
61
|
+
private updateOnPrizeWin;
|
|
62
|
+
private updateMissionsOnOptIn;
|
|
63
|
+
private updateTournamentsOnRegistration;
|
|
64
|
+
private updateEntity;
|
|
65
|
+
}
|