@smartico/public-api 0.0.150 → 0.0.151

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.
Files changed (164) hide show
  1. package/dist/Base/AchRelatedGame.d.ts +13 -13
  2. package/dist/Base/ClassId.d.ts +97 -97
  3. package/dist/Base/ProtocolMessage.d.ts +5 -5
  4. package/dist/Base/ProtocolRequest.d.ts +6 -6
  5. package/dist/Base/ProtocolResponse.d.ts +5 -5
  6. package/dist/CookieStore.d.ts +6 -6
  7. package/dist/Core/ActivityTypeLimited.d.ts +18 -18
  8. package/dist/Core/CheckSegmentMatchRequest.d.ts +4 -4
  9. package/dist/Core/CheckSegmentMatchResponse.d.ts +7 -7
  10. package/dist/Core/CoreUtils.d.ts +5 -5
  11. package/dist/Core/GetAchievementsUserInfoRequest.d.ts +3 -3
  12. package/dist/Core/GetAchievementsUserInfoResponse.d.ts +5 -5
  13. package/dist/Core/GetLabelInfoRequest.d.ts +3 -3
  14. package/dist/Core/GetLabelInfoResponse.d.ts +7 -7
  15. package/dist/Core/GetTranslationsRequest.d.ts +7 -7
  16. package/dist/Core/GetTranslationsResponse.d.ts +7 -7
  17. package/dist/Core/PublicLabelSettings.d.ts +27 -27
  18. package/dist/Core/PublicProperties.d.ts +9 -9
  19. package/dist/Core/ResponseIdentify.d.ts +12 -12
  20. package/dist/Core/TranslationArea.d.ts +10 -10
  21. package/dist/Core/index.d.ts +9 -9
  22. package/dist/CustomSections/AchCustomSection.d.ts +27 -27
  23. package/dist/CustomSections/GetCustomSectionsRequest.d.ts +3 -3
  24. package/dist/CustomSections/GetCustomSectionsResponse.d.ts +7 -7
  25. package/dist/CustomSections/UICustomSection.d.ts +15 -15
  26. package/dist/CustomSections/index.d.ts +4 -4
  27. package/dist/ErrorCodes.d.ts +12 -12
  28. package/dist/GResponse.d.ts +9 -9
  29. package/dist/ILogger.d.ts +7 -7
  30. package/dist/Inbox/GetInboxMessagesRequest.d.ts +6 -6
  31. package/dist/Inbox/GetInboxMessagesResponse.d.ts +7 -7
  32. package/dist/Inbox/InboxMessage.d.ts +23 -23
  33. package/dist/Inbox/InboxMessageType.d.ts +11 -11
  34. package/dist/Inbox/MarkInboxMessageDeletedRequest.d.ts +5 -5
  35. package/dist/Inbox/MarkInboxMessageDeletedResponse.d.ts +5 -5
  36. package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +5 -5
  37. package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +5 -5
  38. package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +5 -5
  39. package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +5 -5
  40. package/dist/Inbox/index.d.ts +10 -10
  41. package/dist/IntUtils.d.ts +10 -10
  42. package/dist/Jackpots/GetJackpotsPotsRequest.d.ts +4 -4
  43. package/dist/Jackpots/GetJackpotsPotsResponse.d.ts +5 -5
  44. package/dist/Jackpots/GetJackpotsRequest.d.ts +5 -5
  45. package/dist/Jackpots/GetJackpotsResponse.d.ts +5 -5
  46. package/dist/Jackpots/JackPotWinner.d.ts +13 -13
  47. package/dist/Jackpots/JackpotContributionType.d.ts +5 -5
  48. package/dist/Jackpots/JackpotDetails.d.ts +37 -37
  49. package/dist/Jackpots/JackpotHtmlTemplate.d.ts +5 -5
  50. package/dist/Jackpots/JackpotPot.d.ts +13 -13
  51. package/dist/Jackpots/JackpotPublicMeta.d.ts +18 -18
  52. package/dist/Jackpots/JackpotType.d.ts +4 -4
  53. package/dist/Jackpots/JackpotWinPush.d.ts +7 -7
  54. package/dist/Jackpots/JackpotsOptinRequest.d.ts +4 -4
  55. package/dist/Jackpots/JackpotsOptinResponse.d.ts +3 -3
  56. package/dist/Jackpots/JackpotsOptoutRequest.d.ts +4 -4
  57. package/dist/Jackpots/JackpotsOptoutResponse.d.ts +3 -3
  58. package/dist/Jackpots/index.d.ts +16 -16
  59. package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +7 -7
  60. package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +7 -7
  61. package/dist/Leaderboard/LeaderBoardDetails.d.ts +13 -13
  62. package/dist/Leaderboard/LeaderBoardPeriodType.d.ts +5 -5
  63. package/dist/Leaderboard/LeaderBoardPosition.d.ts +10 -10
  64. package/dist/Leaderboard/LeaderBoardPublicMeta.d.ts +5 -5
  65. package/dist/Leaderboard/LeaderBoards.d.ts +3 -3
  66. package/dist/Leaderboard/index.d.ts +6 -6
  67. package/dist/Level/GetLevelMapResponse.d.ts +7 -7
  68. package/dist/Level/Level.d.ts +12 -12
  69. package/dist/Level/LevelPublicMeta.d.ts +19 -19
  70. package/dist/Level/index.d.ts +3 -3
  71. package/dist/MiniGames/SAWAcknowledgeType.d.ts +5 -5
  72. package/dist/MiniGames/SAWAskForUsername.d.ts +4 -4
  73. package/dist/MiniGames/SAWBuyInType.d.ts +14 -14
  74. package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +4 -4
  75. package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +4 -4
  76. package/dist/MiniGames/SAWDoSpinRequest.d.ts +5 -5
  77. package/dist/MiniGames/SAWDoSpinResponse.d.ts +11 -11
  78. package/dist/MiniGames/SAWGameType.d.ts +20 -20
  79. package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +5 -5
  80. package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +7 -7
  81. package/dist/MiniGames/SAWPrize.d.ts +13 -13
  82. package/dist/MiniGames/SAWPrizeDropAknowledgeRequest.d.ts +4 -4
  83. package/dist/MiniGames/SAWPrizeDropAknowledgeResponse.d.ts +4 -4
  84. package/dist/MiniGames/SAWPrizeDropWinPush.d.ts +9 -9
  85. package/dist/MiniGames/SAWPrizeType.d.ts +20 -20
  86. package/dist/MiniGames/SAWPrizeUI.d.ts +18 -18
  87. package/dist/MiniGames/SAWSpinErrorCode.d.ts +14 -14
  88. package/dist/MiniGames/SAWSpinsCountPush.d.ts +5 -5
  89. package/dist/MiniGames/SAWTemplate.d.ts +29 -29
  90. package/dist/MiniGames/SAWTemplateUI.d.ts +45 -45
  91. package/dist/MiniGames/SAWUtils.d.ts +5 -5
  92. package/dist/MiniGames/SAWWinSoundType.d.ts +13 -13
  93. package/dist/MiniGames/index.d.ts +20 -20
  94. package/dist/Missions/AchCategoryPublicMeta.d.ts +4 -4
  95. package/dist/Missions/AchClaimPrizeRequest.d.ts +5 -5
  96. package/dist/Missions/AchClaimPrizeResponse.d.ts +3 -3
  97. package/dist/Missions/AchievementCategory.d.ts +7 -7
  98. package/dist/Missions/AchievementOptinRequest.d.ts +4 -4
  99. package/dist/Missions/AchievementOptinResponse.d.ts +3 -3
  100. package/dist/Missions/AchievementPublicMeta.d.ts +21 -21
  101. package/dist/Missions/AchievementStatus.d.ts +9 -9
  102. package/dist/Missions/AchievementTaskPublicMeta.d.ts +3 -3
  103. package/dist/Missions/AchievementTaskType.d.ts +4 -4
  104. package/dist/Missions/AchievementType.d.ts +4 -4
  105. package/dist/Missions/GetAchCategoriesRequest.d.ts +3 -3
  106. package/dist/Missions/GetAchCategoriesResponse.d.ts +5 -5
  107. package/dist/Missions/GetAchievementMapRequest.d.ts +3 -3
  108. package/dist/Missions/GetAchievementMapResponse.d.ts +5 -5
  109. package/dist/Missions/ReloadAchievementsEvent.d.ts +3 -3
  110. package/dist/Missions/ScheduledMissionType.d.ts +5 -5
  111. package/dist/Missions/UserAchievement.d.ts +39 -39
  112. package/dist/Missions/UserAchievementTask.d.ts +15 -15
  113. package/dist/Missions/index.d.ts +19 -19
  114. package/dist/NodeCache.d.ts +10 -10
  115. package/dist/OCache.d.ts +15 -15
  116. package/dist/Quiz/MarketsAnswers.d.ts +38 -38
  117. package/dist/Quiz/MarketsInfo.d.ts +14 -14
  118. package/dist/Quiz/MarketsPerSport.d.ts +6 -6
  119. package/dist/Quiz/MarketsType.d.ts +29 -29
  120. package/dist/Quiz/ScoreResultTypes.d.ts +28 -28
  121. package/dist/Quiz/SportTypes.d.ts +6 -6
  122. package/dist/Quiz/index.d.ts +6 -6
  123. package/dist/SmarticoAPI.d.ts +119 -119
  124. package/dist/SmarticoLib/index.d.ts +2013 -2013
  125. package/dist/Store/BuyStoreItemErrorCode.d.ts +11 -11
  126. package/dist/Store/BuyStoreItemRequest.d.ts +4 -4
  127. package/dist/Store/BuyStoreItemResponse.d.ts +4 -4
  128. package/dist/Store/GetCategoriesStoreResponse.d.ts +5 -5
  129. package/dist/Store/GetStoreHistoryRequest.d.ts +5 -5
  130. package/dist/Store/GetStoreHistoryResponse.d.ts +6 -6
  131. package/dist/Store/GetStoreItemsResponse.d.ts +5 -5
  132. package/dist/Store/StoreCategory.d.ts +7 -7
  133. package/dist/Store/StoreCategoryPublicMeta.d.ts +4 -4
  134. package/dist/Store/StoreItem.d.ts +12 -12
  135. package/dist/Store/StoreItemPublicMeta.d.ts +12 -12
  136. package/dist/Store/StoreItemPurchased.d.ts +11 -11
  137. package/dist/Store/StoreItemType.d.ts +16 -16
  138. package/dist/Store/index.d.ts +13 -13
  139. package/dist/Tournaments/GetTournamentInfoRequest.d.ts +4 -4
  140. package/dist/Tournaments/GetTournamentInfoResponse.d.ts +22 -22
  141. package/dist/Tournaments/GetTournamentsRequest.d.ts +3 -3
  142. package/dist/Tournaments/GetTournamentsResponse.d.ts +6 -6
  143. package/dist/Tournaments/Tournament.d.ts +59 -59
  144. package/dist/Tournaments/TournamentInstanceStatus.d.ts +10 -10
  145. package/dist/Tournaments/TournamentPlayer.d.ts +9 -9
  146. package/dist/Tournaments/TournamentPrize.d.ts +10 -10
  147. package/dist/Tournaments/TournamentPublicMeta.d.ts +27 -27
  148. package/dist/Tournaments/TournamentRegisterRequest.d.ts +4 -4
  149. package/dist/Tournaments/TournamentRegisterResponse.d.ts +5 -5
  150. package/dist/Tournaments/TournamentRegistrationError.d.ts +11 -11
  151. package/dist/Tournaments/TournamentRegistrationStatus.d.ts +22 -22
  152. package/dist/Tournaments/TournamentRegistrationType.d.ts +11 -11
  153. package/dist/Tournaments/TournamentType.d.ts +5 -5
  154. package/dist/Tournaments/TournamentUtils.d.ts +27 -27
  155. package/dist/Tournaments/index.d.ts +16 -16
  156. package/dist/WSAPI/WSAPI.d.ts +445 -445
  157. package/dist/WSAPI/WSAPITypes.d.ts +621 -621
  158. package/dist/index.d.ts +15 -15
  159. package/dist/index.js +373 -366
  160. package/dist/index.js.map +1 -1
  161. package/dist/index.modern.mjs +381 -375
  162. package/dist/index.modern.mjs.map +1 -1
  163. package/package.json +1 -1
  164. package/src/Core/CoreUtils.ts +9 -9
@@ -1,11 +1,11 @@
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
- SHOP_FAILED_POOL_EMPTY = 11009
11
- }
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
+ SHOP_FAILED_POOL_EMPTY = 11009
11
+ }
@@ -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 { ProtocolMessage } from "../Base/ProtocolMessage";
2
- export interface GetStoreHistoryRequest extends ProtocolMessage {
3
- limit?: number;
4
- offset?: number;
5
- }
1
+ import { ProtocolMessage } from "../Base/ProtocolMessage";
2
+ export interface GetStoreHistoryRequest extends ProtocolMessage {
3
+ limit?: number;
4
+ offset?: number;
5
+ }
@@ -1,6 +1,6 @@
1
- import { ProtocolResponse } from "../Base/ProtocolResponse";
2
- import { StoreItemPurchased } from "./StoreItemPurchased";
3
- export interface GetStoreHistoryResponse extends ProtocolResponse {
4
- items: StoreItemPurchased[];
5
- hasMore?: boolean;
6
- }
1
+ import { ProtocolResponse } from "../Base/ProtocolResponse";
2
+ import { StoreItemPurchased } from "./StoreItemPurchased";
3
+ export interface GetStoreHistoryResponse extends ProtocolResponse {
4
+ items: StoreItemPurchased[];
5
+ hasMore?: boolean;
6
+ }
@@ -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
+ }
@@ -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,12 +1,12 @@
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
- shopPool: number;
11
- }
12
- 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
+ shopPool: number;
11
+ }
12
+ 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,11 +1,11 @@
1
- import { TStoreItem } from "../WSAPI/WSAPITypes";
2
- import { StoreItem } from "./StoreItem";
3
- interface StoreItemPurchased extends StoreItem {
4
- purchase_ts: number;
5
- purchase_points_amount: number;
6
- purchased_today?: boolean;
7
- purchased_this_week?: boolean;
8
- purchased_this_month?: boolean;
9
- }
10
- export declare const StoreItemPurchasedTransform: (items: StoreItemPurchased[]) => TStoreItem[];
11
- export { StoreItemPurchased };
1
+ import { TStoreItem } from "../WSAPI/WSAPITypes";
2
+ import { StoreItem } from "./StoreItem";
3
+ interface StoreItemPurchased extends StoreItem {
4
+ purchase_ts: number;
5
+ purchase_points_amount: number;
6
+ purchased_today?: boolean;
7
+ purchased_this_week?: boolean;
8
+ purchased_this_month?: boolean;
9
+ }
10
+ export declare const StoreItemPurchasedTransform: (items: StoreItemPurchased[]) => TStoreItem[];
11
+ export { StoreItemPurchased };
@@ -1,16 +1,16 @@
1
- export declare enum StoreItemType {
2
- Bonus = 1,
3
- Tangible = 2,
4
- MiniGameSpin = 3,
5
- ChangeLevel = 4,
6
- PrizeDrop = 5
7
- }
8
- export declare enum StoreItemTypeName {
9
- Bonus = "bonus",
10
- Tangible = "tangible",
11
- MiniGameSpin = "minigamespin",
12
- ChangeLevel = "changelevel",
13
- PrizeDrop = "prizedrop",
14
- Unknown = "unknown"
15
- }
16
- export declare const StoreItemTypeNamed: (type: StoreItemType) => StoreItemTypeName;
1
+ export declare enum StoreItemType {
2
+ Bonus = 1,
3
+ Tangible = 2,
4
+ MiniGameSpin = 3,
5
+ ChangeLevel = 4,
6
+ PrizeDrop = 5
7
+ }
8
+ export declare enum StoreItemTypeName {
9
+ Bonus = "bonus",
10
+ Tangible = "tangible",
11
+ MiniGameSpin = "minigamespin",
12
+ ChangeLevel = "changelevel",
13
+ PrizeDrop = "prizedrop",
14
+ Unknown = "unknown"
15
+ }
16
+ export declare const StoreItemTypeNamed: (type: StoreItemType) => StoreItemTypeName;
@@ -1,13 +1,13 @@
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
- export * from './StoreItemPurchased';
12
- export * from './GetStoreHistoryRequest';
13
- export * from './GetStoreHistoryResponse';
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
+ export * from './StoreItemPurchased';
12
+ export * from './GetStoreHistoryRequest';
13
+ export * from './GetStoreHistoryResponse';
@@ -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,59 +1,59 @@
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
- export interface Tournament {
10
- /** ID of tournament template */
11
- tournamentId?: number;
12
- /** ID of tournament instance. Generated every time when tournament based on specific template is scheduled for run */
13
- tournamentInstanceId?: number;
14
- /** Type of the tournament. For now only SCHEDULED is support */
15
- tournamentType?: TournamentType;
16
- /** Meta information about tournament that should be used to build UI */
17
- publicMeta?: TournamentPublicMeta;
18
- /** Cost of registration in the tournament in gamification points */
19
- buyInAmount?: number;
20
- /** Not in use */
21
- prizePool?: number;
22
- /** The time when tournament is going to start */
23
- startTime?: string;
24
- /** The time when tournament is going to finish */
25
- endTime?: string;
26
- /** The time when tournament is going to start, epoch */
27
- startTimeTs?: number;
28
- /** The time when tournament is going to finish, epoch */
29
- endTimeTs?: number;
30
- /** Number of users registered in the tournament */
31
- registrationCount?: number;
32
- /** Not in use */
33
- totalCount?: number;
34
- /** Type of registration in the tournament */
35
- registrationType?: TournamentRegistrationType;
36
- /** Status of registration in the tournament for current user */
37
- tournamentRegistrationStatus?: TournamentRegistrationStatus;
38
- /** Status of tournament instance */
39
- tournamentInstanceStatus?: TournamentInstanceStatus;
40
- /** flag indicating if current user is registered in the tournament */
41
- isUserRegistered?: boolean;
42
- /** Indicator if tournament allows later registration, when tournament is already started */
43
- allowLateRegistration?: boolean;
44
- /** Minimum number of participant for this tournament. If tournament doesnt have enough registrations, it will not start */
45
- playersMinCount?: number;
46
- /** Maximum number of participant for this tournament. When reached, new users won't be able to register */
47
- playersMaxCount?: number;
48
- /** Tournament duration in millisecnnds */
49
- durationMs?: number;
50
- /** prizes structure */
51
- prizeStructure?: {
52
- prizes: TournamentPrize[];
53
- };
54
- /** Information about current user */
55
- tournamentPlayer?: TournamentPlayer;
56
- /** List of casino games (or other types of entities) related to the tournament */
57
- related_games?: AchRelatedGame[];
58
- }
59
- export declare const TournamentItemsTransform: (items: Tournament[]) => TTournament[];
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
+ export interface Tournament {
10
+ /** ID of tournament template */
11
+ tournamentId?: number;
12
+ /** ID of tournament instance. Generated every time when tournament based on specific template is scheduled for run */
13
+ tournamentInstanceId?: number;
14
+ /** Type of the tournament. For now only SCHEDULED is support */
15
+ tournamentType?: TournamentType;
16
+ /** Meta information about tournament that should be used to build UI */
17
+ publicMeta?: TournamentPublicMeta;
18
+ /** Cost of registration in the tournament in gamification points */
19
+ buyInAmount?: number;
20
+ /** Not in use */
21
+ prizePool?: number;
22
+ /** The time when tournament is going to start */
23
+ startTime?: string;
24
+ /** The time when tournament is going to finish */
25
+ endTime?: string;
26
+ /** The time when tournament is going to start, epoch */
27
+ startTimeTs?: number;
28
+ /** The time when tournament is going to finish, epoch */
29
+ endTimeTs?: number;
30
+ /** Number of users registered in the tournament */
31
+ registrationCount?: number;
32
+ /** Not in use */
33
+ totalCount?: number;
34
+ /** Type of registration in the tournament */
35
+ registrationType?: TournamentRegistrationType;
36
+ /** Status of registration in the tournament for current user */
37
+ tournamentRegistrationStatus?: TournamentRegistrationStatus;
38
+ /** Status of tournament instance */
39
+ tournamentInstanceStatus?: TournamentInstanceStatus;
40
+ /** flag indicating if current user is registered in the tournament */
41
+ isUserRegistered?: boolean;
42
+ /** Indicator if tournament allows later registration, when tournament is already started */
43
+ allowLateRegistration?: boolean;
44
+ /** Minimum number of participant for this tournament. If tournament doesnt have enough registrations, it will not start */
45
+ playersMinCount?: number;
46
+ /** Maximum number of participant for this tournament. When reached, new users won't be able to register */
47
+ playersMaxCount?: number;
48
+ /** Tournament duration in millisecnnds */
49
+ durationMs?: number;
50
+ /** prizes structure */
51
+ prizeStructure?: {
52
+ prizes: TournamentPrize[];
53
+ };
54
+ /** Information about current user */
55
+ tournamentPlayer?: TournamentPlayer;
56
+ /** List of casino games (or other types of entities) related to the tournament */
57
+ related_games?: AchRelatedGame[];
58
+ }
59
+ 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,27 +1,27 @@
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
- /** 2nd image for mobile */
9
- image_url2_mobile?: string;
10
- /** Description, html capable */
11
- description?: string;
12
- /** Short explanation of prize pool */
13
- prize_pool_short?: string;
14
- /** Message to show when user is not matching to the segment allowed to register (error code 30005 in registration response) */
15
- segment_dont_match_message?: string;
16
- /** Short explanation of registration price */
17
- custom_price_text?: string;
18
- /** Indicator if the scores of other users should be shown in the leaderboard of tournament */
19
- show_other_users_score?: boolean;
20
- custom_section_id?: number;
21
- only_in_custom_section?: boolean;
22
- label_tag?: string;
23
- custom_label_tag?: string;
24
- featured?: boolean;
25
- position?: number;
26
- custom_data?: string;
27
- }
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
+ /** 2nd image for mobile */
9
+ image_url2_mobile?: string;
10
+ /** Description, html capable */
11
+ description?: string;
12
+ /** Short explanation of prize pool */
13
+ prize_pool_short?: string;
14
+ /** Message to show when user is not matching to the segment allowed to register (error code 30005 in registration response) */
15
+ segment_dont_match_message?: string;
16
+ /** Short explanation of registration price */
17
+ custom_price_text?: string;
18
+ /** Indicator if the scores of other users should be shown in the leaderboard of tournament */
19
+ show_other_users_score?: boolean;
20
+ custom_section_id?: number;
21
+ only_in_custom_section?: boolean;
22
+ label_tag?: string;
23
+ custom_label_tag?: string;
24
+ featured?: boolean;
25
+ position?: number;
26
+ custom_data?: string;
27
+ }
@@ -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
+ }