@smartico/public-api 0.0.96 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Base/AchRelatedGame.d.ts +13 -0
- 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 +28 -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/SmarticoPublicAPI.d.ts +23 -0
- package/dist/Store/BuyShopItemErrorCode.d.ts +10 -0
- package/dist/Store/BuyShopItemRequest.d.ts +4 -0
- package/dist/Store/BuyShopItemResponse.d.ts +4 -0
- 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/GetCategoriesShopResponse.d.ts +5 -0
- package/dist/Store/GetCategoriesStoreResponse.d.ts +5 -5
- package/dist/Store/GetShopItemsResponse.d.ts +5 -0
- package/dist/Store/GetStoreItemsResponse.d.ts +5 -5
- package/dist/Store/ShopCategory.d.ts +5 -0
- package/dist/Store/ShopCategoryPublicMeta.d.ts +4 -0
- package/dist/Store/ShopItem.d.ts +9 -0
- package/dist/Store/ShopItemPublicMeta.d.ts +10 -0
- package/dist/Store/ShopItemType.d.ts +4 -0
- 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 +52 -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 +19 -19
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +20 -19
- package/dist/index.modern.mjs.map +1 -1
- package/dist/service/index.d.ts +5 -0
- package/dist/service/types/ErrorCodes.d.ts +13 -0
- package/dist/service/types/GRequest.d.ts +16 -0
- package/dist/service/types/GResponse.d.ts +10 -0
- package/dist/service/types/Game/GameAttemptType.d.ts +6 -0
- package/dist/service/types/Game/GameCanPlayType.d.ts +10 -0
- package/dist/service/types/Game/GameExternalStatus.d.ts +6 -0
- package/dist/service/types/Game/GameInfo.d.ts +9 -0
- package/dist/service/types/Game/GamePick.d.ts +90 -0
- package/dist/service/types/Game/GameUtil.d.ts +7 -0
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +7 -0
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +7 -0
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +5 -0
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +6 -0
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +5 -0
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +34 -0
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +11 -0
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +12 -0
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +15 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +10 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +3 -0
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +5 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +11 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +8 -0
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +13 -0
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +21 -0
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +31 -0
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +12 -0
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +9 -0
- package/dist/service/types/User/UserInfo.d.ts +10 -0
- package/dist/util/Util.d.ts +51 -0
- package/package.json +1 -1
- package/src/Base/AchRelatedGame.ts +14 -0
- package/src/Core/CoreUtils.ts +1 -1
- package/src/Inbox/InboxMessage.ts +1 -1
- package/src/Missions/UserAchievement.ts +2 -0
- package/src/Tournaments/Tournament.ts +4 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ClassId } from "./Base/ClassId";
|
|
2
|
+
import { SAWGetTemplatesResponse } from './MiniGames/SAWGetTemplatesResponse';
|
|
3
|
+
import { SAWTemplate } from './MiniGames/SAWTemplate';
|
|
4
|
+
import { ILogger } from './ILogger';
|
|
5
|
+
interface IOptions {
|
|
6
|
+
logger?: ILogger;
|
|
7
|
+
logCIDs?: ClassId[];
|
|
8
|
+
logHTTPTiming?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare class SmarticoPublicApi {
|
|
11
|
+
private label_api_key;
|
|
12
|
+
private brand_api_key;
|
|
13
|
+
private publicUrl;
|
|
14
|
+
private logger;
|
|
15
|
+
private logCIDs;
|
|
16
|
+
private logHTTPTiming;
|
|
17
|
+
constructor(label_api_key: string, brand_api_key: string, options?: IOptions);
|
|
18
|
+
private send;
|
|
19
|
+
private buildMessage;
|
|
20
|
+
miniGamesGetTemplates(user_ext_id: string): Promise<SAWGetTemplatesResponse>;
|
|
21
|
+
miniGamesFormatTemplatesForWidget(templates: SAWTemplate[], pointsBalance: number): any[];
|
|
22
|
+
}
|
|
23
|
+
export { SmarticoPublicApi };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum BuyShopItemErrorCode {
|
|
2
|
+
FAILED_TO_BUY_SHOP_ITEM = 121,
|
|
3
|
+
SHOP_NO_BALANCE = 11000,
|
|
4
|
+
SHOP_WRONG_LABEL = 11001,
|
|
5
|
+
SHOP_FAILED_TO_BUY_BONUS = 11002,
|
|
6
|
+
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION = 11003,
|
|
7
|
+
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004,
|
|
8
|
+
SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
|
|
9
|
+
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare enum BuyStoreItemErrorCode {
|
|
2
|
-
FAILED_TO_BUY_SHOP_ITEM = 121,
|
|
3
|
-
SHOP_NO_BALANCE = 11000,
|
|
4
|
-
SHOP_WRONG_LABEL = 11001,
|
|
5
|
-
SHOP_FAILED_TO_BUY_BONUS = 11002,
|
|
6
|
-
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION = 11003,
|
|
7
|
-
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004,
|
|
8
|
-
SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
|
|
9
|
-
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006
|
|
10
|
-
}
|
|
1
|
+
export declare enum BuyStoreItemErrorCode {
|
|
2
|
+
FAILED_TO_BUY_SHOP_ITEM = 121,
|
|
3
|
+
SHOP_NO_BALANCE = 11000,
|
|
4
|
+
SHOP_WRONG_LABEL = 11001,
|
|
5
|
+
SHOP_FAILED_TO_BUY_BONUS = 11002,
|
|
6
|
+
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION = 11003,
|
|
7
|
+
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004,
|
|
8
|
+
SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
|
|
9
|
+
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface BuyStoreItemRequest extends ProtocolMessage {
|
|
3
|
-
itemId: number;
|
|
4
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface BuyStoreItemRequest extends ProtocolMessage {
|
|
3
|
+
itemId: number;
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
export interface BuyStoreItemResponse extends ProtocolResponse {
|
|
3
|
-
success?: boolean;
|
|
4
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
export interface BuyStoreItemResponse extends ProtocolResponse {
|
|
3
|
+
success?: boolean;
|
|
4
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
import { StoreCategory } from "./StoreCategory";
|
|
3
|
-
export interface GetCategoriesStoreResponse extends ProtocolResponse {
|
|
4
|
-
categories: StoreCategory[];
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
import { StoreCategory } from "./StoreCategory";
|
|
3
|
+
export interface GetCategoriesStoreResponse extends ProtocolResponse {
|
|
4
|
+
categories: StoreCategory[];
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
import { StoreItem } from "./StoreItem";
|
|
3
|
-
export interface GetStoreItemsResponse extends ProtocolResponse {
|
|
4
|
-
items: StoreItem[];
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
import { StoreItem } from "./StoreItem";
|
|
3
|
+
export interface GetStoreItemsResponse extends ProtocolResponse {
|
|
4
|
+
items: StoreItem[];
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ShopItemPublicMeta } from "./ShopItemPublicMeta";
|
|
2
|
+
import { ShopItemType } from "./ShopItemType";
|
|
3
|
+
export interface ShopItem {
|
|
4
|
+
id: number;
|
|
5
|
+
itemTypeId: ShopItemType;
|
|
6
|
+
itemPublicMeta: ShopItemPublicMeta;
|
|
7
|
+
categoryIds?: number[];
|
|
8
|
+
canBuy?: boolean;
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TStoreCategory } from "../WSAPI/WSAPITypes";
|
|
2
|
-
import { StoreCategoryPublicMeta } from "./StoreCategoryPublicMeta";
|
|
3
|
-
export interface StoreCategory {
|
|
4
|
-
id?: number;
|
|
5
|
-
publicMeta?: StoreCategoryPublicMeta;
|
|
6
|
-
}
|
|
7
|
-
export declare const StoreCategoryTransform: (items: StoreCategory[]) => TStoreCategory[];
|
|
1
|
+
import { TStoreCategory } from "../WSAPI/WSAPITypes";
|
|
2
|
+
import { StoreCategoryPublicMeta } from "./StoreCategoryPublicMeta";
|
|
3
|
+
export interface StoreCategory {
|
|
4
|
+
id?: number;
|
|
5
|
+
publicMeta?: StoreCategoryPublicMeta;
|
|
6
|
+
}
|
|
7
|
+
export declare const StoreCategoryTransform: (items: StoreCategory[]) => TStoreCategory[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface StoreCategoryPublicMeta {
|
|
2
|
-
name?: string;
|
|
3
|
-
order?: number;
|
|
4
|
-
}
|
|
1
|
+
export interface StoreCategoryPublicMeta {
|
|
2
|
+
name?: string;
|
|
3
|
+
order?: number;
|
|
4
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { TStoreItem } from "../WSAPI/WSAPITypes";
|
|
2
|
-
import { StoreItemPublicMeta } from "./StoreItemPublicMeta";
|
|
3
|
-
import { StoreItemType } from "./StoreItemType";
|
|
4
|
-
export interface StoreItem {
|
|
5
|
-
id: number;
|
|
6
|
-
itemTypeId: StoreItemType;
|
|
7
|
-
itemPublicMeta: StoreItemPublicMeta;
|
|
8
|
-
categoryIds?: number[];
|
|
9
|
-
canBuy?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const StoreItemTransform: (items: StoreItem[]) => TStoreItem[];
|
|
1
|
+
import { TStoreItem } from "../WSAPI/WSAPITypes";
|
|
2
|
+
import { StoreItemPublicMeta } from "./StoreItemPublicMeta";
|
|
3
|
+
import { StoreItemType } from "./StoreItemType";
|
|
4
|
+
export interface StoreItem {
|
|
5
|
+
id: number;
|
|
6
|
+
itemTypeId: StoreItemType;
|
|
7
|
+
itemPublicMeta: StoreItemPublicMeta;
|
|
8
|
+
categoryIds?: number[];
|
|
9
|
+
canBuy?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const StoreItemTransform: (items: StoreItem[]) => TStoreItem[];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export interface StoreItemPublicMeta {
|
|
2
|
-
price: string;
|
|
3
|
-
image_url: string;
|
|
4
|
-
name: string;
|
|
5
|
-
description: string;
|
|
6
|
-
label_tag: string;
|
|
7
|
-
custom_label_tag?: string;
|
|
8
|
-
limit_message: string;
|
|
9
|
-
priority: number;
|
|
10
|
-
related_items: number[];
|
|
11
|
-
hint_text: string;
|
|
12
|
-
}
|
|
1
|
+
export interface StoreItemPublicMeta {
|
|
2
|
+
price: string;
|
|
3
|
+
image_url: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
label_tag: string;
|
|
7
|
+
custom_label_tag?: string;
|
|
8
|
+
limit_message: string;
|
|
9
|
+
priority: number;
|
|
10
|
+
related_items: number[];
|
|
11
|
+
hint_text: string;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum StoreItemType {
|
|
2
|
-
Bonus = 1,
|
|
3
|
-
Manual = 2
|
|
4
|
-
}
|
|
1
|
+
export declare enum StoreItemType {
|
|
2
|
+
Bonus = 1,
|
|
3
|
+
Manual = 2
|
|
4
|
+
}
|
package/dist/Store/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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";
|
|
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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface GetTournamentInfoRequest extends ProtocolMessage {
|
|
3
|
-
tournamentInstanceId: number;
|
|
4
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface GetTournamentInfoRequest extends ProtocolMessage {
|
|
3
|
+
tournamentInstanceId: number;
|
|
4
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
-
export interface GetTournamentInfoResponse extends ProtocolResponse {
|
|
7
|
-
/** tournament info */
|
|
8
|
-
tournamentInfo: {
|
|
9
|
-
/** id of label, not in use */
|
|
10
|
-
labelId: number;
|
|
11
|
-
tournamentLobbyInfo: Tournament;
|
|
12
|
-
/** list of registered users */
|
|
13
|
-
players: TournamentPlayer[];
|
|
14
|
-
};
|
|
15
|
-
/** information about current user position */
|
|
16
|
-
userPosition: TournamentPlayer;
|
|
17
|
-
/** prizes structure */
|
|
18
|
-
prizeStructure?: {
|
|
19
|
-
prizes: TournamentPrize[];
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export declare const tournamentInfoItemTransform: (t: GetTournamentInfoResponse) => TTournamentDetailed;
|
|
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
|
+
export interface GetTournamentInfoResponse extends ProtocolResponse {
|
|
7
|
+
/** tournament info */
|
|
8
|
+
tournamentInfo: {
|
|
9
|
+
/** id of label, not in use */
|
|
10
|
+
labelId: number;
|
|
11
|
+
tournamentLobbyInfo: Tournament;
|
|
12
|
+
/** list of registered users */
|
|
13
|
+
players: TournamentPlayer[];
|
|
14
|
+
};
|
|
15
|
+
/** information about current user position */
|
|
16
|
+
userPosition: TournamentPlayer;
|
|
17
|
+
/** prizes structure */
|
|
18
|
+
prizeStructure?: {
|
|
19
|
+
prizes: TournamentPrize[];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const tournamentInfoItemTransform: (t: GetTournamentInfoResponse) => TTournamentDetailed;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface GetTournamentsRequest extends ProtocolMessage {
|
|
3
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface GetTournamentsRequest extends ProtocolMessage {
|
|
3
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
import { Tournament } from "./Tournament";
|
|
3
|
-
export interface GetTournamentsResponse extends ProtocolResponse {
|
|
4
|
-
/** array of the tournaments */
|
|
5
|
-
tournaments?: Tournament[];
|
|
6
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
import { Tournament } from "./Tournament";
|
|
3
|
+
export interface GetTournamentsResponse extends ProtocolResponse {
|
|
4
|
+
/** array of the tournaments */
|
|
5
|
+
tournaments?: Tournament[];
|
|
6
|
+
}
|
|
@@ -1,49 +1,52 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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 { AchRelatedGame } from "../Base/AchRelatedGame";
|
|
8
|
+
export interface Tournament {
|
|
9
|
+
/** ID of tournament template */
|
|
10
|
+
tournamentId?: number;
|
|
11
|
+
/** ID of tournament instance. Generated every time when tournament based on specific template is scheduled for run */
|
|
12
|
+
tournamentInstanceId?: number;
|
|
13
|
+
/** Type of the tournament. For now only SCHEDULED is support */
|
|
14
|
+
tournamentType?: TournamentType;
|
|
15
|
+
/** Meta information about tournament that should be used to build UI */
|
|
16
|
+
publicMeta?: TournamentPublicMeta;
|
|
17
|
+
/** Cost of registration in the tournament in gamification points */
|
|
18
|
+
buyInAmount?: number;
|
|
19
|
+
/** Not in use */
|
|
20
|
+
prizePool?: number;
|
|
21
|
+
/** The time when tournament is going to start */
|
|
22
|
+
startTime?: string;
|
|
23
|
+
/** The time when tournament is going to finish */
|
|
24
|
+
endTime?: string;
|
|
25
|
+
/** The time when tournament is going to start, epoch */
|
|
26
|
+
startTimeTs?: number;
|
|
27
|
+
/** The time when tournament is going to finish, epoch */
|
|
28
|
+
endTimeTs?: number;
|
|
29
|
+
/** Number of users registered in the tournament */
|
|
30
|
+
registrationCount?: number;
|
|
31
|
+
/** Not in use */
|
|
32
|
+
totalCount?: number;
|
|
33
|
+
/** Type of registration in the tournament */
|
|
34
|
+
registrationType?: TournamentRegistrationType;
|
|
35
|
+
/** Status of registration in the tournament for current user */
|
|
36
|
+
tournamentRegistrationStatus?: TournamentRegistrationStatus;
|
|
37
|
+
/** Status of tournament instance */
|
|
38
|
+
tournamentInstanceStatus?: TournamentInstanceStatus;
|
|
39
|
+
/** flag indicating if current user is registered in the tournament */
|
|
40
|
+
isUserRegistered?: boolean;
|
|
41
|
+
/** Indicator if tournament allows later registration, when tournament is already started */
|
|
42
|
+
allowLateRegistration?: boolean;
|
|
43
|
+
/** Minimum number of participant for this tournament. If tournament doesnt have enough registrations, it will not start */
|
|
44
|
+
playersMinCount?: number;
|
|
45
|
+
/** Maximum number of participant for this tournament. When reached, new users won't be able to register */
|
|
46
|
+
playersMaxCount?: number;
|
|
47
|
+
/** Tournament duration in millisecnnds */
|
|
48
|
+
durationMs?: number;
|
|
49
|
+
/** List of casino games (or other types of entities) related to the tournament */
|
|
50
|
+
related_games?: AchRelatedGame[];
|
|
51
|
+
}
|
|
52
|
+
export declare const TournamentItemsTransform: (items: Tournament[]) => TTournament[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare enum TournamentInstanceStatus {
|
|
2
|
-
PUBLISHED = 1,
|
|
3
|
-
REGISTER = 2,
|
|
4
|
-
STARTED = 3,
|
|
5
|
-
FINISHED = 4,
|
|
6
|
-
CANCELLED = 5,
|
|
7
|
-
FAILED = 6,
|
|
8
|
-
FINALIZING = 7
|
|
9
|
-
}
|
|
10
|
-
export declare const TournamentInstanceStatusName: (s: TournamentInstanceStatus) => string;
|
|
1
|
+
export declare enum TournamentInstanceStatus {
|
|
2
|
+
PUBLISHED = 1,
|
|
3
|
+
REGISTER = 2,
|
|
4
|
+
STARTED = 3,
|
|
5
|
+
FINISHED = 4,
|
|
6
|
+
CANCELLED = 5,
|
|
7
|
+
FAILED = 6,
|
|
8
|
+
FINALIZING = 7
|
|
9
|
+
}
|
|
10
|
+
export declare const TournamentInstanceStatusName: (s: TournamentInstanceStatus) => string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface TournamentPlayer {
|
|
2
|
-
userAltName: string;
|
|
3
|
-
position: number;
|
|
4
|
-
scores: number;
|
|
5
|
-
isMe: boolean;
|
|
6
|
-
userId: number;
|
|
7
|
-
avatar_id: string;
|
|
8
|
-
avatar_url?: string;
|
|
9
|
-
}
|
|
1
|
+
export interface TournamentPlayer {
|
|
2
|
+
userAltName: string;
|
|
3
|
+
position: number;
|
|
4
|
+
scores: number;
|
|
5
|
+
isMe: boolean;
|
|
6
|
+
userId: number;
|
|
7
|
+
avatar_id: string;
|
|
8
|
+
avatar_url?: string;
|
|
9
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ActivityTypeLimited } from "../Core/ActivityTypeLimited";
|
|
2
|
-
export interface TournamentPrize {
|
|
3
|
-
name: string;
|
|
4
|
-
description: string;
|
|
5
|
-
image_url: string;
|
|
6
|
-
place_from: number;
|
|
7
|
-
place_to: number;
|
|
8
|
-
type: ActivityTypeLimited;
|
|
9
|
-
points: number;
|
|
10
|
-
}
|
|
1
|
+
import { ActivityTypeLimited } from "../Core/ActivityTypeLimited";
|
|
2
|
+
export interface TournamentPrize {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
image_url: string;
|
|
6
|
+
place_from: number;
|
|
7
|
+
place_to: number;
|
|
8
|
+
type: ActivityTypeLimited;
|
|
9
|
+
points: number;
|
|
10
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
export interface TournamentPublicMeta {
|
|
2
|
-
/** Name of tournament */
|
|
3
|
-
name?: string;
|
|
4
|
-
/** 1st image */
|
|
5
|
-
image_url?: string;
|
|
6
|
-
/** 2nd image */
|
|
7
|
-
image_url2?: string;
|
|
8
|
-
/** Description, html capable */
|
|
9
|
-
description?: string;
|
|
10
|
-
/** Short explanation of prize pool */
|
|
11
|
-
prize_pool_short?: string;
|
|
12
|
-
/** Message to show when user is not matching to the segment allowed to register (error code 30005 in registration response) */
|
|
13
|
-
segment_dont_match_message?: string;
|
|
14
|
-
/** Short explanation of registration price */
|
|
15
|
-
custom_price_text?: string;
|
|
16
|
-
/** Indicator if the scores of other users should be shown in the leaderboard of tournament */
|
|
17
|
-
show_other_users_score?: boolean;
|
|
18
|
-
custom_section_id?: number;
|
|
19
|
-
only_in_custom_section?: boolean;
|
|
20
|
-
label_tag?: string;
|
|
21
|
-
custom_label_tag?: string;
|
|
22
|
-
featured?: boolean;
|
|
23
|
-
position?: number;
|
|
24
|
-
custom_data?: string;
|
|
25
|
-
}
|
|
1
|
+
export interface TournamentPublicMeta {
|
|
2
|
+
/** Name of tournament */
|
|
3
|
+
name?: string;
|
|
4
|
+
/** 1st image */
|
|
5
|
+
image_url?: string;
|
|
6
|
+
/** 2nd image */
|
|
7
|
+
image_url2?: string;
|
|
8
|
+
/** Description, html capable */
|
|
9
|
+
description?: string;
|
|
10
|
+
/** Short explanation of prize pool */
|
|
11
|
+
prize_pool_short?: string;
|
|
12
|
+
/** Message to show when user is not matching to the segment allowed to register (error code 30005 in registration response) */
|
|
13
|
+
segment_dont_match_message?: string;
|
|
14
|
+
/** Short explanation of registration price */
|
|
15
|
+
custom_price_text?: string;
|
|
16
|
+
/** Indicator if the scores of other users should be shown in the leaderboard of tournament */
|
|
17
|
+
show_other_users_score?: boolean;
|
|
18
|
+
custom_section_id?: number;
|
|
19
|
+
only_in_custom_section?: boolean;
|
|
20
|
+
label_tag?: string;
|
|
21
|
+
custom_label_tag?: string;
|
|
22
|
+
featured?: boolean;
|
|
23
|
+
position?: number;
|
|
24
|
+
custom_data?: string;
|
|
25
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
-
export interface TournamentRegisterRequest extends ProtocolMessage {
|
|
3
|
-
tournamentInstanceId: number;
|
|
4
|
-
}
|
|
1
|
+
import { ProtocolMessage } from "../Base/ProtocolMessage";
|
|
2
|
+
export interface TournamentRegisterRequest extends ProtocolMessage {
|
|
3
|
+
tournamentInstanceId: number;
|
|
4
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
-
import { TournamentRegistrationError } from "./TournamentRegistrationError";
|
|
3
|
-
export interface TournamentRegisterResponse extends ProtocolResponse {
|
|
4
|
-
errCode?: TournamentRegistrationError;
|
|
5
|
-
}
|
|
1
|
+
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
2
|
+
import { TournamentRegistrationError } from "./TournamentRegistrationError";
|
|
3
|
+
export interface TournamentRegisterResponse extends ProtocolResponse {
|
|
4
|
+
errCode?: TournamentRegistrationError;
|
|
5
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare enum TournamentRegistrationError {
|
|
2
|
-
NO_ERROR = 0,
|
|
3
|
-
TOURNAMENT_INSTANCE_NOT_FOUND = 30001,
|
|
4
|
-
TOURNAMENT_REGISTRATION_NOT_ENOUGH_POINTS = 30002,
|
|
5
|
-
TOURNAMENT_INSTANCE_NOT_IN_STATE = 30003,
|
|
6
|
-
TOURNAMENT_ALREADY_REGISTERED = 30004,
|
|
7
|
-
TOURNAMENT_USER_DONT_MATCH_CONDITIONS = 30005,
|
|
8
|
-
TOURNAMENT_USER_NOT_REGISTERED = 30006,
|
|
9
|
-
TOURNAMENT_CANT_CHANGE_REGISTRATION_STATUS = 30007,
|
|
10
|
-
TOURNAMENT_MAX_REGISTRATIONS_REACHED = 30008
|
|
11
|
-
}
|
|
1
|
+
export declare enum TournamentRegistrationError {
|
|
2
|
+
NO_ERROR = 0,
|
|
3
|
+
TOURNAMENT_INSTANCE_NOT_FOUND = 30001,
|
|
4
|
+
TOURNAMENT_REGISTRATION_NOT_ENOUGH_POINTS = 30002,
|
|
5
|
+
TOURNAMENT_INSTANCE_NOT_IN_STATE = 30003,
|
|
6
|
+
TOURNAMENT_ALREADY_REGISTERED = 30004,
|
|
7
|
+
TOURNAMENT_USER_DONT_MATCH_CONDITIONS = 30005,
|
|
8
|
+
TOURNAMENT_USER_NOT_REGISTERED = 30006,
|
|
9
|
+
TOURNAMENT_CANT_CHANGE_REGISTRATION_STATUS = 30007,
|
|
10
|
+
TOURNAMENT_MAX_REGISTRATIONS_REACHED = 30008
|
|
11
|
+
}
|