@smartico/public-api 0.0.197 → 0.0.199
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/Inbox/InboxMessage.d.ts +3 -0
- package/dist/Inbox/OpenLinksType.d.ts +4 -0
- package/dist/Inbox/index.d.ts +1 -0
- package/dist/MiniGames/SAWTemplate.d.ts +2 -2
- package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
- 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/GetCategoriesShopResponse.d.ts +5 -0
- package/dist/Store/GetShopItemsResponse.d.ts +5 -0
- 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/StorItemPruchased.d.ts +6 -0
- package/dist/Tournaments/Tournament.d.ts +2 -0
- package/dist/WSAPI/WSAPITypes.d.ts +4 -0
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +13 -2
- 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/docs/interfaces/TMiniGameTemplate.md +16 -0
- package/docs/interfaces/TTournament.md +16 -0
- package/package.json +1 -1
- package/src/Inbox/InboxMessage.ts +6 -0
- package/src/Inbox/OpenLinksType.ts +4 -0
- package/src/Inbox/index.ts +1 -0
- package/src/MiniGames/SAWGetTemplatesResponse.ts +3 -1
- package/src/MiniGames/SAWTemplate.ts +3 -2
- package/src/Tournaments/Tournament.ts +7 -0
- package/src/WSAPI/WSAPITypes.ts +9 -1
|
@@ -62,6 +62,10 @@ export interface Tournament {
|
|
|
62
62
|
|
|
63
63
|
/** List of casino games (or other types of entities) related to the tournament */
|
|
64
64
|
related_games?: AchRelatedGame[];
|
|
65
|
+
/* The minimum amount of score points that the user should get in order to be qualified for the prize */
|
|
66
|
+
minScoreToWin?: number;
|
|
67
|
+
/* When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard. */
|
|
68
|
+
hideLeaderboardsMinScores?: boolean;
|
|
65
69
|
}
|
|
66
70
|
|
|
67
71
|
export const TournamentItemsTransform = (items: Tournament[]): TTournament[] => {
|
|
@@ -103,6 +107,9 @@ export const TournamentItemsTransform = (items: Tournament[]): TTournament[] =>
|
|
|
103
107
|
is_finished: TournamentUtils.isFinished(r),
|
|
104
108
|
is_in_progress: TournamentUtils.isInProgress(r),
|
|
105
109
|
is_upcoming: TournamentUtils.isUpcoming(r),
|
|
110
|
+
|
|
111
|
+
min_scores_win: r.minScoreToWin,
|
|
112
|
+
hide_leaderboard_min_scores: r.hideLeaderboardsMinScores,
|
|
106
113
|
};
|
|
107
114
|
|
|
108
115
|
if (r.prizeStructure) {
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -51,7 +51,7 @@ export interface TMiniGamePrize {
|
|
|
51
51
|
wins_count?: number;
|
|
52
52
|
/* Number of days of week, when the prize can be available */
|
|
53
53
|
weekdays?: number[];
|
|
54
|
-
/* Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp)*/
|
|
54
|
+
/* Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
|
|
55
55
|
active_from_ts?: number;
|
|
56
56
|
/* Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
|
|
57
57
|
active_till_ts?: number;
|
|
@@ -145,6 +145,10 @@ export interface TMiniGameTemplate {
|
|
|
145
145
|
|
|
146
146
|
/* Time zone to ensure each day aligns with your local midnight. */
|
|
147
147
|
relative_period_timezone?: number;
|
|
148
|
+
/* Holds time from which template will become available, for the template that are targeted to be available from specific time (UNIX timestamp) */
|
|
149
|
+
activeFromDate?: number;
|
|
150
|
+
/* Holds time till which template will become available, for the templates that are targeted to be available from specific time (UNIX timestamp) */
|
|
151
|
+
activeTillDate?: number;
|
|
148
152
|
}
|
|
149
153
|
|
|
150
154
|
/**
|
|
@@ -323,6 +327,10 @@ export interface TTournament {
|
|
|
323
327
|
is_in_progress: boolean;
|
|
324
328
|
/** Indicator if tournament instance is upcoming (status PUBLISHED or REGISTER) */
|
|
325
329
|
is_upcoming: boolean;
|
|
330
|
+
/* The minimum amount of score points that the user should get in order to be qualified for the prize */
|
|
331
|
+
min_scores_win?: number;
|
|
332
|
+
/* When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard */
|
|
333
|
+
hide_leaderboard_min_scores?: boolean;
|
|
326
334
|
}
|
|
327
335
|
|
|
328
336
|
/**
|