@smartico/public-api 0.0.154 → 0.0.155
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierrc +12 -0
- package/dist/Base/ProtocolRequest.d.ts +1 -1
- package/dist/Base/ProtocolResponse.d.ts +1 -1
- package/dist/Core/CheckSegmentMatchRequest.d.ts +1 -1
- package/dist/Core/CheckSegmentMatchResponse.d.ts +1 -1
- package/dist/Core/GetAchievementsUserInfoRequest.d.ts +1 -1
- package/dist/Core/GetAchievementsUserInfoResponse.d.ts +1 -1
- package/dist/Core/GetLabelInfoRequest.d.ts +1 -1
- package/dist/Core/GetLabelInfoResponse.d.ts +1 -1
- package/dist/Core/GetTranslationsRequest.d.ts +2 -2
- package/dist/Core/GetTranslationsResponse.d.ts +1 -1
- package/dist/Core/ResponseIdentify.d.ts +2 -2
- package/dist/CustomSections/GetCustomSectionsRequest.d.ts +1 -1
- package/dist/CustomSections/GetCustomSectionsResponse.d.ts +2 -2
- package/dist/CustomSections/UICustomSection.d.ts +2 -2
- package/dist/GResponse.d.ts +1 -1
- package/dist/Inbox/GetInboxMessagesRequest.d.ts +1 -1
- package/dist/Inbox/GetInboxMessagesResponse.d.ts +3 -3
- package/dist/Inbox/InboxMessage.d.ts +2 -2
- package/dist/Inbox/MarkInboxMessageDeletedRequest.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageDeletedResponse.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +1 -1
- package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +1 -1
- package/dist/Inbox/index.d.ts +8 -8
- package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +1 -1
- package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +2 -2
- package/dist/Jackpots/GetJackpotsRequest.d.ts +1 -1
- package/dist/Jackpots/GetJackpotsResponse.d.ts +2 -2
- package/dist/Jackpots/JackpotDetails.d.ts +6 -6
- package/dist/Jackpots/JackpotWinPush.d.ts +3 -3
- package/dist/Jackpots/JackpotsOptinRequest.d.ts +1 -1
- package/dist/Jackpots/JackpotsOptinResponse.d.ts +1 -1
- package/dist/Jackpots/JackpotsOptoutRequest.d.ts +1 -1
- package/dist/Jackpots/JackpotsOptoutResponse.d.ts +1 -1
- package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +2 -2
- package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +2 -2
- package/dist/Leaderboard/LeaderBoardDetails.d.ts +3 -3
- package/dist/Leaderboard/LeaderBoards.d.ts +2 -2
- package/dist/Leaderboard/index.d.ts +6 -6
- package/dist/Level/GetLevelMapResponse.d.ts +3 -3
- package/dist/Level/Level.d.ts +1 -1
- package/dist/MiniGames/SAWAcknowledgeSpinPushRequest.d.ts +1 -1
- package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +1 -1
- package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +1 -1
- package/dist/MiniGames/SAWDoSpinRequest.d.ts +1 -1
- package/dist/MiniGames/SAWDoSpinResponse.d.ts +2 -2
- package/dist/MiniGames/SAWEventSawPush.d.ts +1 -1
- package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +1 -1
- package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +3 -3
- package/dist/MiniGames/SAWPrize.d.ts +2 -2
- package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +3 -1
- package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +1 -1
- package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +4 -3
- package/dist/MiniGames/SAWPrizeUI.d.ts +2 -2
- package/dist/MiniGames/SAWSpinsCountPush.d.ts +1 -1
- package/dist/MiniGames/SAWTemplate.d.ts +4 -4
- package/dist/MiniGames/SAWTemplateUI.d.ts +1 -1
- package/dist/MiniGames/SAWUtils.d.ts +1 -1
- package/dist/MiniGames/index.d.ts +24 -22
- package/dist/Missions/AchClaimPrizeRequest.d.ts +1 -1
- package/dist/Missions/AchClaimPrizeResponse.d.ts +1 -1
- package/dist/Missions/AchievementCategory.d.ts +2 -2
- package/dist/Missions/AchievementOptinRequest.d.ts +1 -1
- package/dist/Missions/AchievementOptinResponse.d.ts +1 -1
- package/dist/Missions/GetAchCategoriesRequest.d.ts +1 -1
- package/dist/Missions/GetAchCategoriesResponse.d.ts +2 -2
- package/dist/Missions/GetAchievementMapRequest.d.ts +1 -1
- package/dist/Missions/GetAchievementMapResponse.d.ts +2 -2
- package/dist/Missions/GetRelatedAchTourRequest.d.ts +1 -1
- package/dist/Missions/GetRelatedAchTourResponse.d.ts +3 -3
- package/dist/Missions/ReloadAchievementsEvent.d.ts +2 -2
- package/dist/Missions/UserAchievement.d.ts +7 -7
- package/dist/Missions/UserAchievementTask.d.ts +2 -2
- package/dist/Missions/index.d.ts +13 -13
- package/dist/Quiz/MarketsInfo.d.ts +2 -2
- package/dist/Quiz/MarketsPerSport.d.ts +1 -1
- package/dist/SmarticoAPI.d.ts +8 -8
- package/dist/SmarticoLib/index.d.ts +39 -39
- package/dist/Store/BuyStoreItemRequest.d.ts +1 -1
- package/dist/Store/BuyStoreItemResponse.d.ts +1 -1
- package/dist/Store/GetCategoriesStoreResponse.d.ts +2 -2
- package/dist/Store/GetStoreHistoryRequest.d.ts +1 -1
- package/dist/Store/GetStoreHistoryResponse.d.ts +2 -2
- package/dist/Store/GetStoreItemsResponse.d.ts +2 -2
- package/dist/Store/StoreCategory.d.ts +2 -2
- package/dist/Store/StoreItem.d.ts +3 -3
- package/dist/Store/StoreItemPurchased.d.ts +2 -2
- package/dist/Store/index.d.ts +10 -10
- package/dist/Tournaments/GetTournamentInfoRequest.d.ts +1 -1
- package/dist/Tournaments/GetTournamentInfoResponse.d.ts +5 -5
- package/dist/Tournaments/GetTournamentsRequest.d.ts +1 -1
- package/dist/Tournaments/GetTournamentsResponse.d.ts +2 -2
- package/dist/Tournaments/Tournament.d.ts +8 -8
- package/dist/Tournaments/TournamentPrize.d.ts +1 -1
- package/dist/Tournaments/TournamentRegisterRequest.d.ts +1 -1
- package/dist/Tournaments/TournamentRegisterResponse.d.ts +2 -2
- package/dist/Tournaments/TournamentUtils.d.ts +3 -3
- package/dist/Tournaments/index.d.ts +16 -16
- package/dist/WSAPI/WSAPI.d.ts +65 -65
- package/dist/WSAPI/WSAPITypes.d.ts +18 -18
- package/dist/index.js +76 -78
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +103 -103
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Base/AchRelatedGame.ts +13 -13
- package/src/Base/ClassId.ts +118 -121
- package/src/Base/ProtocolMessage.ts +6 -7
- package/src/Base/ProtocolRequest.ts +4 -5
- package/src/Base/ProtocolResponse.ts +3 -5
- package/src/CookieStore.ts +10 -11
- package/src/Core/ActivityTypeLimited.ts +17 -18
- package/src/Core/CheckSegmentMatchRequest.ts +2 -3
- package/src/Core/CheckSegmentMatchResponse.ts +6 -6
- package/src/Core/CoreUtils.ts +37 -39
- package/src/Core/GetAchievementsUserInfoRequest.ts +2 -4
- package/src/Core/GetAchievementsUserInfoResponse.ts +4 -4
- package/src/Core/GetLabelInfoRequest.ts +2 -4
- package/src/Core/GetLabelInfoResponse.ts +4 -4
- package/src/Core/GetTranslationsRequest.ts +5 -7
- package/src/Core/GetTranslationsResponse.ts +3 -5
- package/src/Core/PublicLabelSettings.ts +29 -30
- package/src/Core/PublicProperties.ts +7 -7
- package/src/Core/ResponseIdentify.ts +12 -12
- package/src/Core/TranslationArea.ts +8 -9
- package/src/Core/index.ts +1 -1
- package/src/CustomSections/AchCustomSection.ts +20 -20
- package/src/CustomSections/GetCustomSectionsRequest.ts +2 -4
- package/src/CustomSections/GetCustomSectionsResponse.ts +4 -5
- package/src/CustomSections/UICustomSection.ts +30 -29
- package/src/CustomSections/index.ts +4 -4
- package/src/ErrorCodes.ts +11 -12
- package/src/GResponse.ts +5 -5
- package/src/ILogger.ts +6 -10
- package/src/Inbox/GetInboxMessagesRequest.ts +4 -5
- package/src/Inbox/GetInboxMessagesResponse.ts +15 -17
- package/src/Inbox/InboxMessage.ts +31 -33
- package/src/Inbox/InboxMessageType.ts +9 -9
- package/src/Inbox/MarkInboxMessageDeletedRequest.ts +3 -3
- package/src/Inbox/MarkInboxMessageDeletedResponse.ts +3 -3
- package/src/Inbox/MarkInboxMessageReadRequest.ts +4 -5
- package/src/Inbox/MarkInboxMessageReadResponse.ts +4 -5
- package/src/Inbox/MarkInboxMessageStarredRequest.ts +4 -5
- package/src/Inbox/MarkInboxMessageStarredResponse.ts +4 -5
- package/src/Inbox/index.ts +10 -10
- package/src/IntUtils.ts +72 -85
- package/src/Jackpots/GetJackpotsPotsRequest.ts +3 -3
- package/src/Jackpots/GetJackpotsPotsResponse.ts +3 -5
- package/src/Jackpots/GetJackpotsRequest.ts +4 -6
- package/src/Jackpots/GetJackpotsResponse.ts +5 -7
- package/src/Jackpots/JackPotWinner.ts +11 -12
- package/src/Jackpots/JackpotContributionType.ts +3 -4
- package/src/Jackpots/JackpotDetails.ts +31 -31
- package/src/Jackpots/JackpotHtmlTemplate.ts +3 -3
- package/src/Jackpots/JackpotPot.ts +11 -12
- package/src/Jackpots/JackpotPublicMeta.ts +16 -16
- package/src/Jackpots/JackpotType.ts +2 -5
- package/src/Jackpots/JackpotWinPush.ts +6 -6
- package/src/Jackpots/JackpotsOptinRequest.ts +3 -5
- package/src/Jackpots/JackpotsOptinResponse.ts +2 -4
- package/src/Jackpots/JackpotsOptoutRequest.ts +3 -5
- package/src/Jackpots/JackpotsOptoutResponse.ts +2 -4
- package/src/Jackpots/index.ts +16 -16
- package/src/Leaderboard/GetLeaderBoardsRequest.ts +8 -9
- package/src/Leaderboard/GetLeaderBoardsResponse.ts +4 -6
- package/src/Leaderboard/LeaderBoardDetails.ts +11 -12
- package/src/Leaderboard/LeaderBoardPeriodType.ts +3 -3
- package/src/Leaderboard/LeaderBoardPosition.ts +9 -10
- package/src/Leaderboard/LeaderBoardPublicMeta.ts +3 -4
- package/src/Leaderboard/LeaderBoards.ts +42 -42
- package/src/Leaderboard/index.ts +6 -6
- package/src/Level/GetLevelMapResponse.ts +18 -21
- package/src/Level/Level.ts +10 -11
- package/src/Level/LevelPublicMeta.ts +17 -17
- package/src/Level/index.ts +3 -3
- package/src/MiniGames/SAWAcknowledgeSpinPushRequest.ts +3 -4
- package/src/MiniGames/SAWAcknowledgeType.ts +3 -4
- package/src/MiniGames/SAWAskForUsername.ts +3 -4
- package/src/MiniGames/SAWBuyInType.ts +15 -13
- package/src/MiniGames/SAWDoAknowledgeRequest.ts +3 -3
- package/src/MiniGames/SAWDoAknowledgeResponse.ts +3 -3
- package/src/MiniGames/SAWDoSpinRequest.ts +3 -5
- package/src/MiniGames/SAWDoSpinResponse.ts +10 -11
- package/src/MiniGames/SAWEventSawPush.ts +3 -4
- package/src/MiniGames/SAWGameType.ts +23 -21
- package/src/MiniGames/SAWGetTemplatesRequest.ts +3 -3
- package/src/MiniGames/SAWGetTemplatesResponse.ts +53 -65
- package/src/MiniGames/SAWPrize.ts +11 -12
- package/src/MiniGames/SAWPrizeDropAknowledgeRequest.ts +5 -3
- package/src/MiniGames/SAWPrizeDropAknowledgeResponse.ts +3 -3
- package/src/MiniGames/SAWPrizeDropWinPush.ts +9 -8
- package/src/MiniGames/SAWPrizeType.ts +23 -22
- package/src/MiniGames/SAWPrizeUI.ts +17 -17
- package/src/MiniGames/SAWSpinErrorCode.ts +15 -16
- package/src/MiniGames/SAWSpinsCountPush.ts +4 -4
- package/src/MiniGames/SAWTemplate.ts +29 -29
- package/src/MiniGames/SAWTemplateUI.ts +45 -47
- package/src/MiniGames/SAWUtils.ts +23 -26
- package/src/MiniGames/SAWWinSoundType.ts +10 -11
- package/src/MiniGames/index.ts +24 -22
- package/src/Missions/AchCategoryPublicMeta.ts +2 -3
- package/src/Missions/AchClaimPrizeRequest.ts +4 -5
- package/src/Missions/AchClaimPrizeResponse.ts +3 -4
- package/src/Missions/AchievementCategory.ts +14 -15
- package/src/Missions/AchievementOptinRequest.ts +3 -5
- package/src/Missions/AchievementOptinResponse.ts +2 -4
- package/src/Missions/AchievementPublicMeta.ts +19 -20
- package/src/Missions/AchievementStatus.ts +7 -8
- package/src/Missions/AchievementTaskPublicMeta.ts +2 -3
- package/src/Missions/AchievementTaskType.ts +2 -2
- package/src/Missions/AchievementType.ts +2 -3
- package/src/Missions/GetAchCategoriesRequest.ts +2 -4
- package/src/Missions/GetAchCategoriesResponse.ts +4 -5
- package/src/Missions/GetAchievementMapRequest.ts +2 -4
- package/src/Missions/GetAchievementMapResponse.ts +3 -5
- package/src/Missions/GetRelatedAchTourRequest.ts +3 -4
- package/src/Missions/GetRelatedAchTourResponse.ts +5 -7
- package/src/Missions/ReloadAchievementsEvent.ts +5 -5
- package/src/Missions/ScheduledMissionType.ts +4 -5
- package/src/Missions/UserAchievement.ts +104 -108
- package/src/Missions/UserAchievementTask.ts +13 -15
- package/src/Missions/index.ts +19 -19
- package/src/NodeCache.ts +44 -49
- package/src/OCache.ts +51 -57
- package/src/Quiz/MarketsAnswers.ts +34 -34
- package/src/Quiz/MarketsInfo.ts +184 -177
- package/src/Quiz/MarketsPerSport.ts +30 -37
- package/src/Quiz/MarketsType.ts +28 -28
- package/src/Quiz/ScoreResultTypes.ts +18 -18
- package/src/Quiz/SportTypes.ts +4 -4
- package/src/Quiz/index.ts +6 -6
- package/src/SmarticoAPI.ts +769 -730
- package/src/SmarticoLib/index.ts +1053 -1069
- package/src/Store/BuyStoreItemErrorCode.ts +10 -10
- package/src/Store/BuyStoreItemRequest.ts +2 -2
- package/src/Store/BuyStoreItemResponse.ts +2 -3
- package/src/Store/GetCategoriesStoreResponse.ts +3 -8
- package/src/Store/GetStoreHistoryRequest.ts +3 -3
- package/src/Store/GetStoreHistoryResponse.ts +4 -4
- package/src/Store/GetStoreItemsResponse.ts +3 -4
- package/src/Store/StoreCategory.ts +14 -15
- package/src/Store/StoreCategoryPublicMeta.ts +2 -3
- package/src/Store/StoreItem.ts +32 -33
- package/src/Store/StoreItemPublicMeta.ts +10 -10
- package/src/Store/StoreItemPurchased.ts +40 -40
- package/src/Store/StoreItemType.ts +20 -19
- package/src/Store/index.ts +13 -13
- package/src/Tournaments/GetTournamentInfoRequest.ts +2 -3
- package/src/Tournaments/GetTournamentInfoResponse.ts +45 -48
- package/src/Tournaments/GetTournamentsRequest.ts +2 -4
- package/src/Tournaments/GetTournamentsResponse.ts +7 -14
- package/src/Tournaments/Tournament.ts +109 -115
- package/src/Tournaments/TournamentInstanceStatus.ts +17 -18
- package/src/Tournaments/TournamentPlayer.ts +7 -8
- package/src/Tournaments/TournamentPrize.ts +9 -10
- package/src/Tournaments/TournamentPublicMeta.ts +26 -26
- package/src/Tournaments/TournamentRegisterRequest.ts +2 -3
- package/src/Tournaments/TournamentRegisterResponse.ts +3 -7
- package/src/Tournaments/TournamentRegistrationError.ts +9 -9
- package/src/Tournaments/TournamentRegistrationStatus.ts +25 -27
- package/src/Tournaments/TournamentRegistrationType.ts +15 -16
- package/src/Tournaments/TournamentType.ts +3 -4
- package/src/Tournaments/TournamentUtils.ts +90 -89
- package/src/Tournaments/index.ts +16 -16
- package/src/WSAPI/WSAPI.ts +781 -763
- package/src/WSAPI/WSAPITypes.ts +574 -586
- package/src/index.ts +15 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { AchCategory } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { AchCategory } from './AchievementCategory';
|
|
3
3
|
export interface GetAchCategoriesResponse extends ProtocolResponse {
|
|
4
4
|
categories: AchCategory[];
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { UserAchievement } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { UserAchievement } from './UserAchievement';
|
|
3
3
|
export interface GetAchievementMapResponse extends ProtocolResponse {
|
|
4
4
|
achievements?: UserAchievement[];
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { Tournament } from
|
|
3
|
-
import { UserAchievement } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { Tournament } from '../Tournaments';
|
|
3
|
+
import { UserAchievement } from './UserAchievement';
|
|
4
4
|
export interface GetAchievementMapResponse extends ProtocolResponse {
|
|
5
5
|
achievements: UserAchievement[];
|
|
6
6
|
tournaments?: Tournament[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { UserAchievement } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { UserAchievement } from './UserAchievement';
|
|
3
3
|
export interface ReloadAchievementsEvent extends ProtocolResponse {
|
|
4
4
|
achievements: UserAchievement[];
|
|
5
5
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AchRelatedGame } from
|
|
2
|
-
import { TMissionOrBadge } from
|
|
3
|
-
import { AchievementPublicMeta } from
|
|
4
|
-
import { AchievementStatus } from
|
|
5
|
-
import { AchievementType } from
|
|
6
|
-
import { ScheduledMissionType } from
|
|
7
|
-
import { UserAchievementTask } from
|
|
1
|
+
import { AchRelatedGame } from '../Base/AchRelatedGame';
|
|
2
|
+
import { TMissionOrBadge } from '../WSAPI/WSAPITypes';
|
|
3
|
+
import { AchievementPublicMeta } from './AchievementPublicMeta';
|
|
4
|
+
import { AchievementStatus } from './AchievementStatus';
|
|
5
|
+
import { AchievementType } from './AchievementType';
|
|
6
|
+
import { ScheduledMissionType } from './ScheduledMissionType';
|
|
7
|
+
import { UserAchievementTask } from './UserAchievementTask';
|
|
8
8
|
export interface UserAchievement {
|
|
9
9
|
ach_id?: number;
|
|
10
10
|
ach_type_id?: AchievementType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AchievementTaskPublicMeta } from
|
|
2
|
-
import { AchievementTaskType } from
|
|
1
|
+
import { AchievementTaskPublicMeta } from './AchievementTaskPublicMeta';
|
|
2
|
+
import { AchievementTaskType } from './AchievementTaskType';
|
|
3
3
|
export interface UserAchievementTask {
|
|
4
4
|
task_id?: number;
|
|
5
5
|
task_public_meta?: AchievementTaskPublicMeta;
|
package/dist/Missions/index.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
11
|
-
export * from
|
|
12
|
-
export * from
|
|
13
|
-
export * from
|
|
1
|
+
export * from './AchievementOptinRequest';
|
|
2
|
+
export * from './AchievementOptinResponse';
|
|
3
|
+
export * from './AchievementPublicMeta';
|
|
4
|
+
export * from './AchievementStatus';
|
|
5
|
+
export * from './AchievementTaskPublicMeta';
|
|
6
|
+
export * from './AchievementTaskType';
|
|
7
|
+
export * from './AchievementType';
|
|
8
|
+
export * from './GetAchievementMapRequest';
|
|
9
|
+
export * from './GetAchievementMapResponse';
|
|
10
|
+
export * from './ReloadAchievementsEvent';
|
|
11
|
+
export * from './UserAchievement';
|
|
12
|
+
export * from './UserAchievementTask';
|
|
13
|
+
export * from './ScheduledMissionType';
|
|
14
14
|
export * from './AchCategoryPublicMeta';
|
|
15
15
|
export * from './AchievementCategory';
|
|
16
16
|
export * from './GetAchCategoriesResponse';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QuizAnswersValueType } from
|
|
2
|
-
import { SAWGPMarketType } from
|
|
1
|
+
import { QuizAnswersValueType } from './MarketsAnswers';
|
|
2
|
+
import { SAWGPMarketType } from './MarketsType';
|
|
3
3
|
export declare const marketsInfo: {
|
|
4
4
|
type: SAWGPMarketType;
|
|
5
5
|
name: string;
|
package/dist/SmarticoAPI.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClassId } from
|
|
1
|
+
import { ClassId } from './Base/ClassId';
|
|
2
2
|
import { SAWGetTemplatesResponse } from './MiniGames/SAWGetTemplatesResponse';
|
|
3
3
|
import { ILogger } from './ILogger';
|
|
4
4
|
import { SAWDoAknowledgeResponse, SAWDoSpinResponse } from './MiniGames';
|
|
@@ -8,13 +8,13 @@ import { GetInboxMessagesResponse, InboxMessageBody, MarkInboxMessageDeletedResp
|
|
|
8
8
|
import { BuyStoreItemResponse, GetCategoriesStoreResponse, GetStoreHistoryResponse, GetStoreItemsResponse } from './Store';
|
|
9
9
|
import { AchClaimPrizeResponse, AchievementOptinResponse, GetAchCategoriesResponse, GetAchievementMapResponse } from './Missions';
|
|
10
10
|
import { GetTournamentInfoResponse, GetTournamentsResponse, TournamentRegisterResponse } from './Tournaments';
|
|
11
|
-
import { LeaderBoardDetails, LeaderBoardPeriodType } from
|
|
12
|
-
import { GetLevelMapResponse } from
|
|
13
|
-
import { WSAPI } from
|
|
14
|
-
import { TInboxMessage, TInboxMessageBody, TLevel, TMiniGameTemplate, TMissionOrBadge, TStoreCategory, TAchCategory, TStoreItem, TTournament, TTournamentDetailed, LeaderBoardDetailsT, UserLevelExtraCountersT, TSegmentCheckResult, TUICustomSection } from
|
|
15
|
-
import { GetAchievementsUserInfoResponse } from
|
|
16
|
-
import { GetJackpotsPotsResponse, GetJackpotsResponse, JackpotsOptinResponse, JackpotsOptoutResponse } from
|
|
17
|
-
import { GetCustomSectionsResponse } from
|
|
11
|
+
import { LeaderBoardDetails, LeaderBoardPeriodType } from './Leaderboard';
|
|
12
|
+
import { GetLevelMapResponse } from './Level';
|
|
13
|
+
import { WSAPI } from './WSAPI/WSAPI';
|
|
14
|
+
import { TInboxMessage, TInboxMessageBody, TLevel, TMiniGameTemplate, TMissionOrBadge, TStoreCategory, TAchCategory, TStoreItem, TTournament, TTournamentDetailed, LeaderBoardDetailsT, UserLevelExtraCountersT, TSegmentCheckResult, TUICustomSection } from './WSAPI/WSAPITypes';
|
|
15
|
+
import { GetAchievementsUserInfoResponse } from './Core/GetAchievementsUserInfoResponse';
|
|
16
|
+
import { GetJackpotsPotsResponse, GetJackpotsResponse, JackpotsOptinResponse, JackpotsOptoutResponse } from './Jackpots';
|
|
17
|
+
import { GetCustomSectionsResponse } from './CustomSections';
|
|
18
18
|
interface Tracker {
|
|
19
19
|
label_api_key: string;
|
|
20
20
|
userPublicProps: any;
|
|
@@ -471,7 +471,7 @@ declare enum TournamentRegistrationType {
|
|
|
471
471
|
MANUAL_APPROVAL = 4,
|
|
472
472
|
REQUIRES_QUALIFICATION = 5
|
|
473
473
|
}
|
|
474
|
-
export type TournamentRegistrationTypeName =
|
|
474
|
+
export type TournamentRegistrationTypeName = 'AUTO' | 'OPT_IN' | 'BUY_IN_POINTS' | 'MANUAL_APPROVAL' | 'REQUIRES_QUALIFICATION' | 'UNKNOWN';
|
|
475
475
|
declare enum TournamentInstanceStatus {
|
|
476
476
|
PUBLISHED = 1,
|
|
477
477
|
REGISTER = 2,
|
|
@@ -694,10 +694,10 @@ export interface LeaderBoardDetails {
|
|
|
694
694
|
positions: LeaderBoardPosition[];
|
|
695
695
|
userPosition: LeaderBoardPosition;
|
|
696
696
|
}
|
|
697
|
-
export type TRibbon =
|
|
697
|
+
export type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string;
|
|
698
698
|
/**
|
|
699
699
|
* TMiniGamePrize describes the information of prize in the array of prizes in the TMiniGameTemplate
|
|
700
|
-
*/
|
|
700
|
+
*/
|
|
701
701
|
export interface TMiniGamePrize {
|
|
702
702
|
/** ID of the prize */
|
|
703
703
|
id: number;
|
|
@@ -720,7 +720,7 @@ export interface TMiniGamePrize {
|
|
|
720
720
|
}
|
|
721
721
|
/**
|
|
722
722
|
* TMiniGamePlayResult describes the response of call to _smartico.api.playMiniGame(template_id) method
|
|
723
|
-
*/
|
|
723
|
+
*/
|
|
724
724
|
export interface TMiniGamePlayResult {
|
|
725
725
|
/** Error code that represents outcome of the game play attempt. Game succeed to be played in case err_code is 0 */
|
|
726
726
|
err_code: SAWSpinErrorCode;
|
|
@@ -731,7 +731,7 @@ export interface TMiniGamePlayResult {
|
|
|
731
731
|
}
|
|
732
732
|
/**
|
|
733
733
|
* TMiniGameTemplate describes the information of mini-games available for the user
|
|
734
|
-
*/
|
|
734
|
+
*/
|
|
735
735
|
export interface TMiniGameTemplate {
|
|
736
736
|
/** ID of the mini-game template */
|
|
737
737
|
id: number;
|
|
@@ -775,7 +775,7 @@ export interface TMiniGameTemplate {
|
|
|
775
775
|
* The user object is returned by _smartico.api.getUserProfile() method.
|
|
776
776
|
* If you want to track the changes of the user profile, you can subscribe to the callback in the following way
|
|
777
777
|
* _smartico.on('props_change', () => console.log(_smartico.api.getUserProfile()) );
|
|
778
|
-
*/
|
|
778
|
+
*/
|
|
779
779
|
export interface TUserProfile {
|
|
780
780
|
/** The language of the user */
|
|
781
781
|
core_user_language: string;
|
|
@@ -788,7 +788,7 @@ export interface TUserProfile {
|
|
|
788
788
|
* They can be treated as server-based cookies.
|
|
789
789
|
* You can set tags using following method _smartico.event('core_public_tags_update', { core_public_tags: ['A', 'B'] } );
|
|
790
790
|
* And then you can check for the tags
|
|
791
|
-
|
|
791
|
+
*/
|
|
792
792
|
core_public_tags: string[];
|
|
793
793
|
/** The ID of the current level of the user */
|
|
794
794
|
ach_level_current_id?: number;
|
|
@@ -825,14 +825,14 @@ export interface TLevel {
|
|
|
825
825
|
* Relevant in case of using advanced leveling logic
|
|
826
826
|
* https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
827
827
|
*
|
|
828
|
-
|
|
828
|
+
*/
|
|
829
829
|
required_level_counter_1: number;
|
|
830
830
|
/**
|
|
831
831
|
* The counter of 2nd metric used to reach the Level.
|
|
832
832
|
* Relevant in case of using advanced leveling logic
|
|
833
833
|
* https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
834
834
|
*
|
|
835
|
-
|
|
835
|
+
*/
|
|
836
836
|
required_level_counter_2: number;
|
|
837
837
|
/** The custom data of the Level defined by operator in the BackOffice. Can be a JSON object, string or number */
|
|
838
838
|
custom_data: string;
|
|
@@ -858,7 +858,7 @@ export interface TTournament {
|
|
|
858
858
|
/**
|
|
859
859
|
* The ID of the custom section where the tournament is assigned
|
|
860
860
|
* The list of custom sections can be retrieved using _smartico.api.getCustomSections() method (TODO-API)
|
|
861
|
-
|
|
861
|
+
*/
|
|
862
862
|
custom_section_id: number;
|
|
863
863
|
/** The custom data of the tournament defined by operator. Can be a JSON object, string or number */
|
|
864
864
|
custom_data: any;
|
|
@@ -995,7 +995,7 @@ export interface TStoreItem {
|
|
|
995
995
|
/** URL of the image of the store item */
|
|
996
996
|
image: string;
|
|
997
997
|
/** Type of the store item. Can be 'bonus' or 'manual'. Manual, means it's tangible item, e.g. iPhone */
|
|
998
|
-
type:
|
|
998
|
+
type: 'bonus' | 'manual';
|
|
999
999
|
/** The price of the store item in the gamification points */
|
|
1000
1000
|
price: number;
|
|
1001
1001
|
/** The ribbon of the store item. Can be 'sale', 'hot', 'new', 'vip' or URL to the image in case of custom ribbon */
|
|
@@ -1012,7 +1012,7 @@ export interface TStoreItem {
|
|
|
1012
1012
|
related_item_ids: number[];
|
|
1013
1013
|
/** The indicator if the user can buy the item
|
|
1014
1014
|
* This indicator is taking into account the segment conditions for the store item, the price of item towards users balance,
|
|
1015
|
-
|
|
1015
|
+
*/
|
|
1016
1016
|
can_buy: boolean;
|
|
1017
1017
|
/** The list of IDs of the categories where the store item is assigned, information about categories can be retrieved with getStoreCategories method */
|
|
1018
1018
|
category_ids: number[];
|
|
@@ -1040,7 +1040,7 @@ export interface TMissionOrBadge {
|
|
|
1040
1040
|
/** ID of the mission or badge */
|
|
1041
1041
|
id: number;
|
|
1042
1042
|
/** Type of entity. Can be 'mission' or 'badge' */
|
|
1043
|
-
type:
|
|
1043
|
+
type: 'mission' | 'badge';
|
|
1044
1044
|
/** Name of the mission or badge, translated to the user language */
|
|
1045
1045
|
name: string;
|
|
1046
1046
|
/** Description of the mission or badge, translated to the user language */
|
|
@@ -1078,7 +1078,7 @@ export interface TMissionOrBadge {
|
|
|
1078
1078
|
/**
|
|
1079
1079
|
* The ID of the custom section where the mission or badge is assigned
|
|
1080
1080
|
* The list of custom sections can be retrieved using _smartico.api.getCustomSections() method (TODO-API)
|
|
1081
|
-
|
|
1081
|
+
*/
|
|
1082
1082
|
custom_section_id: number;
|
|
1083
1083
|
/** The indicator if the mission or badge is visible only in the custom section and should be hidden from the main overview of missions/badges */
|
|
1084
1084
|
only_in_custom_section: boolean;
|
|
@@ -1139,7 +1139,7 @@ export interface TMissionOrBadgeTask {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
/**
|
|
1141
1141
|
* TMissionOptInResult describes the response of call to _smartico.api.requestMissionOptIn(mission_id) method
|
|
1142
|
-
*/
|
|
1142
|
+
*/
|
|
1143
1143
|
export interface TMissionOptInResult {
|
|
1144
1144
|
/** Error code that represents outcome of the opt-in request. Successful opt-in in case err_code is 0 */
|
|
1145
1145
|
err_code: number;
|
|
@@ -1148,7 +1148,7 @@ export interface TMissionOptInResult {
|
|
|
1148
1148
|
}
|
|
1149
1149
|
/**
|
|
1150
1150
|
* TMissionClaimRewardResult describes the response of call to _smartico.api.requestMissionClaimReward(mission_id, ach_completed_id) method
|
|
1151
|
-
*/
|
|
1151
|
+
*/
|
|
1152
1152
|
export interface TMissionClaimRewardResult {
|
|
1153
1153
|
/** Error code that represents outcome of the claim request. Successful claim reward in case err_code is 0 */
|
|
1154
1154
|
err_code: number;
|
|
@@ -1523,7 +1523,7 @@ declare class WSAPI {
|
|
|
1523
1523
|
* console.log(result);
|
|
1524
1524
|
* });
|
|
1525
1525
|
* ```
|
|
1526
|
-
|
|
1526
|
+
*/
|
|
1527
1527
|
checkSegmentMatch(segment_id: number): Promise<boolean>;
|
|
1528
1528
|
/** Check if user belongs to specific list of segments
|
|
1529
1529
|
* Example usage:
|
|
@@ -1532,7 +1532,7 @@ declare class WSAPI {
|
|
|
1532
1532
|
* console.log(result);
|
|
1533
1533
|
* });
|
|
1534
1534
|
* ```
|
|
1535
|
-
|
|
1535
|
+
*/
|
|
1536
1536
|
checkSegmentListMatch(segment_ids: number[]): Promise<TSegmentCheckResult[]>;
|
|
1537
1537
|
/** Returns all the levels available the current user
|
|
1538
1538
|
* Example usage:
|
|
@@ -1541,7 +1541,7 @@ declare class WSAPI {
|
|
|
1541
1541
|
* console.log(result);
|
|
1542
1542
|
* });
|
|
1543
1543
|
* ```
|
|
1544
|
-
|
|
1544
|
+
*/
|
|
1545
1545
|
getLevels(): Promise<TLevel[]>;
|
|
1546
1546
|
/** Returns all the missions available the current user.
|
|
1547
1547
|
* The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
@@ -1571,7 +1571,7 @@ declare class WSAPI {
|
|
|
1571
1571
|
* console.log(result);
|
|
1572
1572
|
* });
|
|
1573
1573
|
* ```
|
|
1574
|
-
|
|
1574
|
+
*/
|
|
1575
1575
|
getUserLevelExtraCounters(): Promise<UserLevelExtraCountersT>;
|
|
1576
1576
|
/** Returns all the store items available the current user
|
|
1577
1577
|
* Example usage:
|
|
@@ -1579,7 +1579,7 @@ declare class WSAPI {
|
|
|
1579
1579
|
* _smartico.api.getStoreItems().then((result) => {
|
|
1580
1580
|
* console.log(result);
|
|
1581
1581
|
* });
|
|
1582
|
-
|
|
1582
|
+
*/
|
|
1583
1583
|
getStoreItems(): Promise<TStoreItem[]>;
|
|
1584
1584
|
/** Buy the specific shop item by item_id. Returns the err_code in case of success or error.
|
|
1585
1585
|
* Example usage:
|
|
@@ -1587,18 +1587,18 @@ declare class WSAPI {
|
|
|
1587
1587
|
* _smartico.api.buyStoreItem(1).then((result) => {
|
|
1588
1588
|
* console.log(result);
|
|
1589
1589
|
* });
|
|
1590
|
-
|
|
1590
|
+
*/
|
|
1591
1591
|
buyStoreItem(item_id: number): Promise<TBuyStoreItemResult>;
|
|
1592
1592
|
/** Returns store categories */
|
|
1593
1593
|
getStoreCategories(): Promise<TStoreCategory[]>;
|
|
1594
1594
|
/** Returns store purchased items based on the provided parameters. "From" and "to" indicate the range of items to be fetched.
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1595
|
+
* The maximum number of messages per request is limited to 20.
|
|
1596
|
+
* You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
|
|
1597
|
+
* This functions return list of purchased items.
|
|
1598
|
+
* The "onUpdate" callback will be triggered when the user receives a new purchased item. It will provide an updated list of items, ranging from 0 to 20, to the onUpdate callback function. */
|
|
1599
1599
|
/**
|
|
1600
|
-
|
|
1601
|
-
|
|
1600
|
+
* @param params
|
|
1601
|
+
*/
|
|
1602
1602
|
storeGetPurchasedItems({ from, to, onUpdate }?: {
|
|
1603
1603
|
from?: number;
|
|
1604
1604
|
to?: number;
|
|
@@ -1640,15 +1640,15 @@ declare class WSAPI {
|
|
|
1640
1640
|
*/
|
|
1641
1641
|
getLeaderBoard(periodType: LeaderBoardPeriodType, getPreviousPeriod?: boolean): Promise<LeaderBoardDetailsT>;
|
|
1642
1642
|
/** Returns inbox messages based on the provided parameters. "From" and "to" indicate the range of messages to be fetched.
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1643
|
+
* The maximum number of messages per request is limited to 20. An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
|
|
1644
|
+
* You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
|
|
1645
|
+
* This functions return list of messages without the body of the message.
|
|
1646
|
+
* To get the body of the message you need to call getInboxMessageBody function and pass the message guid contained in each message of this request.
|
|
1647
|
+
* All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
|
|
1648
|
+
* The "onUpdate" callback will be triggered when the user receives a new message. It will provide an updated list of messages, ranging from 0 to 20, to the onUpdate callback function. */
|
|
1649
1649
|
/**
|
|
1650
|
-
|
|
1651
|
-
|
|
1650
|
+
* @param params
|
|
1651
|
+
*/
|
|
1652
1652
|
getInboxMessages({ from, to, onlyFavorite, onUpdate }?: {
|
|
1653
1653
|
from?: number;
|
|
1654
1654
|
to?: number;
|
|
@@ -1863,7 +1863,7 @@ export interface IVisitorGameParams {
|
|
|
1863
1863
|
export interface IWidgetParams {
|
|
1864
1864
|
iframe: string;
|
|
1865
1865
|
zoom: number;
|
|
1866
|
-
height:
|
|
1866
|
+
height: 'auto' | string;
|
|
1867
1867
|
theme: string;
|
|
1868
1868
|
wuuid: string;
|
|
1869
1869
|
withBridge?: any;
|
|
@@ -1905,7 +1905,7 @@ export interface TrackerInterface {
|
|
|
1905
1905
|
setLoginPayload?: (payload: any) => void;
|
|
1906
1906
|
sendServerError?: (message: string) => void;
|
|
1907
1907
|
sendServerDebug?: (message: string) => void;
|
|
1908
|
-
sendAnalytics?: (activity_id: ClientActivityRequestId, type:
|
|
1908
|
+
sendAnalytics?: (activity_id: ClientActivityRequestId, type: 'view' | 'click' | 'other', view_time_sec?: number, more?: any) => void;
|
|
1909
1909
|
sendRow: (cid: ClassId, toIdentified: boolean, data?: any) => string;
|
|
1910
1910
|
miniGame?: (saw_template_id: string, params: IWidgetParams) => void;
|
|
1911
1911
|
showWidget?: (widgetType: EWidgetType, params: IWidgetParams) => void;
|
|
@@ -2009,5 +2009,5 @@ declare class Smartico {
|
|
|
2009
2009
|
static convertVisitorGame(visitor_win_uuid: string): void;
|
|
2010
2010
|
private static customScripts;
|
|
2011
2011
|
}
|
|
2012
|
-
export { Smartico as default
|
|
2012
|
+
export { Smartico as default };
|
|
2013
2013
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { StoreCategory } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { StoreCategory } from './StoreCategory';
|
|
3
3
|
export interface GetCategoriesStoreResponse extends ProtocolResponse {
|
|
4
4
|
categories: StoreCategory[];
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { StoreItemPurchased } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { StoreItemPurchased } from './StoreItemPurchased';
|
|
3
3
|
export interface GetStoreHistoryResponse extends ProtocolResponse {
|
|
4
4
|
items: StoreItemPurchased[];
|
|
5
5
|
hasMore?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { StoreItem } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { StoreItem } from './StoreItem';
|
|
3
3
|
export interface GetStoreItemsResponse extends ProtocolResponse {
|
|
4
4
|
items: StoreItem[];
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TStoreCategory } from
|
|
2
|
-
import { StoreCategoryPublicMeta } from
|
|
1
|
+
import { TStoreCategory } from '../WSAPI/WSAPITypes';
|
|
2
|
+
import { StoreCategoryPublicMeta } from './StoreCategoryPublicMeta';
|
|
3
3
|
export interface StoreCategory {
|
|
4
4
|
id?: number;
|
|
5
5
|
publicMeta?: StoreCategoryPublicMeta;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TStoreItem } from
|
|
2
|
-
import { StoreItemPublicMeta } from
|
|
3
|
-
import { StoreItemType } from
|
|
1
|
+
import { TStoreItem } from '../WSAPI/WSAPITypes';
|
|
2
|
+
import { StoreItemPublicMeta } from './StoreItemPublicMeta';
|
|
3
|
+
import { StoreItemType } from './StoreItemType';
|
|
4
4
|
export interface StoreItem {
|
|
5
5
|
id: number;
|
|
6
6
|
itemTypeId: StoreItemType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TStoreItem } from
|
|
2
|
-
import { StoreItem } from
|
|
1
|
+
import { TStoreItem } from '../WSAPI/WSAPITypes';
|
|
2
|
+
import { StoreItem } from './StoreItem';
|
|
3
3
|
interface StoreItemPurchased extends StoreItem {
|
|
4
4
|
purchase_ts: number;
|
|
5
5
|
purchase_points_amount: number;
|
package/dist/Store/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
1
|
+
export * from './BuyStoreItemErrorCode';
|
|
2
|
+
export * from './BuyStoreItemRequest';
|
|
3
|
+
export * from './BuyStoreItemResponse';
|
|
4
|
+
export * from './GetCategoriesStoreResponse';
|
|
5
|
+
export * from './GetStoreItemsResponse';
|
|
6
|
+
export * from './StoreCategory';
|
|
7
|
+
export * from './StoreCategoryPublicMeta';
|
|
8
|
+
export * from './StoreItem';
|
|
9
|
+
export * from './StoreItemPublicMeta';
|
|
10
|
+
export * from './StoreItemType';
|
|
11
11
|
export * from './StoreItemPurchased';
|
|
12
12
|
export * from './GetStoreHistoryRequest';
|
|
13
13
|
export * from './GetStoreHistoryResponse';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Tournament } from
|
|
2
|
-
import { TournamentPlayer } from
|
|
3
|
-
import { ProtocolResponse } from
|
|
4
|
-
import { TournamentPrize } from
|
|
5
|
-
import { TTournamentDetailed } from
|
|
1
|
+
import { Tournament } from './Tournament';
|
|
2
|
+
import { TournamentPlayer } from './TournamentPlayer';
|
|
3
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
4
|
+
import { TournamentPrize } from './TournamentPrize';
|
|
5
|
+
import { TTournamentDetailed } from '../WSAPI/WSAPITypes';
|
|
6
6
|
export interface GetTournamentInfoResponse extends ProtocolResponse {
|
|
7
7
|
/** tournament info */
|
|
8
8
|
tournamentInfo: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { Tournament } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { Tournament } from './Tournament';
|
|
3
3
|
export interface GetTournamentsResponse extends ProtocolResponse {
|
|
4
4
|
/** array of the tournaments */
|
|
5
5
|
tournaments?: Tournament[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TournamentRegistrationType } from
|
|
2
|
-
import { TournamentInstanceStatus } from
|
|
3
|
-
import { TournamentRegistrationStatus } from
|
|
4
|
-
import { TournamentType } from
|
|
5
|
-
import { TournamentPublicMeta } from
|
|
6
|
-
import { TTournament } from
|
|
7
|
-
import { TournamentPlayer, TournamentPrize } from
|
|
8
|
-
import { AchRelatedGame } from
|
|
1
|
+
import { TournamentRegistrationType } from './TournamentRegistrationType';
|
|
2
|
+
import { TournamentInstanceStatus } from './TournamentInstanceStatus';
|
|
3
|
+
import { TournamentRegistrationStatus } from './TournamentRegistrationStatus';
|
|
4
|
+
import { TournamentType } from './TournamentType';
|
|
5
|
+
import { TournamentPublicMeta } from './TournamentPublicMeta';
|
|
6
|
+
import { TTournament } from '../WSAPI/WSAPITypes';
|
|
7
|
+
import { TournamentPlayer, TournamentPrize } from '.';
|
|
8
|
+
import { AchRelatedGame } from '../Base/AchRelatedGame';
|
|
9
9
|
export interface Tournament {
|
|
10
10
|
/** ID of tournament template */
|
|
11
11
|
tournamentId?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from
|
|
2
|
-
import { TournamentRegistrationError } from
|
|
1
|
+
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
|
+
import { TournamentRegistrationError } from './TournamentRegistrationError';
|
|
3
3
|
export interface TournamentRegisterResponse extends ProtocolResponse {
|
|
4
4
|
errCode?: TournamentRegistrationError;
|
|
5
5
|
}
|