@smartico/public-api 0.0.263 → 0.0.265
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/Core/GetAchievementsUserInfoResponse.d.ts +2 -0
- package/dist/Jackpots/GetJackpotWinnersRequest.d.ts +1 -1
- package/dist/Jackpots/JackpotDetails.d.ts +8 -11
- package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
- package/dist/Raffle/GetDrawResponse.d.ts +5 -0
- package/dist/Raffle/GetDrawRunResponse.d.ts +1 -1
- package/dist/Raffle/GetRaffleDrawRunsHistoryResponse.d.ts +1 -1
- package/dist/Raffle/GetRafflesResponse.d.ts +1 -1
- package/dist/Raffle/RaffleClaimPrizeResponse.d.ts +1 -1
- 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/WSAPI/WSAPI.d.ts +1 -1
- package/dist/WSAPI/WSAPITypes.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +1 -1
- 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/JackpotDetails.md +8 -16
- package/package.json +1 -1
- package/src/Core/GetAchievementsUserInfoResponse.ts +2 -0
- package/src/Jackpots/GetJackpotWinnersRequest.ts +1 -1
- package/src/Jackpots/JackpotDetails.ts +8 -10
- package/src/Raffle/GetDrawRunResponse.ts +1 -1
- package/src/Raffle/GetRaffleDrawRunsHistoryResponse.ts +1 -1
- package/src/Raffle/GetRafflesResponse.ts +1 -2
- package/src/Raffle/RaffleClaimPrizeResponse.ts +1 -1
- package/src/WSAPI/WSAPI.ts +2 -2
- package/src/WSAPI/WSAPITypes.ts +2 -1
|
@@ -12,25 +12,23 @@ import { JackpotType } from './JackpotType';
|
|
|
12
12
|
interface JackpotDetails {
|
|
13
13
|
/** ID of the jackpot template */
|
|
14
14
|
jp_template_id: number;
|
|
15
|
-
/**
|
|
15
|
+
/** Type of jackpot logic */
|
|
16
16
|
jp_type_id: JackpotType;
|
|
17
17
|
/** UI information of jackpot, like name, description, etc. */
|
|
18
18
|
jp_public_meta: JackpotPublicMeta;
|
|
19
|
-
/**
|
|
19
|
+
/** Base currency of the jackpot */
|
|
20
20
|
jp_currency: string;
|
|
21
|
-
/**
|
|
21
|
+
/** Wallet currency of currently logged in user */
|
|
22
22
|
user_currency: string;
|
|
23
|
-
/**
|
|
24
|
-
related_games?: AchRelatedGame[];
|
|
25
|
-
/** type of the user contribution to the jackpot */
|
|
23
|
+
/** Type of the user contribution to the jackpot */
|
|
26
24
|
contribution_type: JackpotContributionType;
|
|
27
|
-
/**
|
|
25
|
+
/** Value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
|
|
28
26
|
contribution_value: number;
|
|
29
|
-
/**
|
|
27
|
+
/** Information of current value of the jackpot */
|
|
30
28
|
pot: JackpotPot;
|
|
31
|
-
/**
|
|
29
|
+
/** Indication if the current user is opted in to the jackpot */
|
|
32
30
|
is_opted_in: boolean;
|
|
33
|
-
/**
|
|
31
|
+
/** Indicates whether all games are eligible for the jackpot */
|
|
34
32
|
ach_related_game_allow_all: boolean;
|
|
35
33
|
/** The number of users who have opted in to participate in the jackpot */
|
|
36
34
|
registration_count: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TRaffleDraw } from '
|
|
1
|
+
import { TRaffleDraw } from '../WSAPI/WSAPITypes';
|
|
2
2
|
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
3
3
|
import { RaffleDraw } from './RaffleDraw';
|
|
4
4
|
import { prizeTransform, ticketsTransform } from './GetRafflesResponse';
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { TRaffle, TRaffleDraw, TRafflePrize, TRafflePrizeWinner, TRaffleTicket } from '
|
|
1
|
+
import { TRaffle, TRaffleDraw, TRafflePrize, TRafflePrizeWinner, TRaffleTicket } from '../WSAPI/WSAPITypes';
|
|
2
2
|
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
3
3
|
import { Raffle } from './Raffle';
|
|
4
4
|
import { RaffleDraw } from './RaffleDraw';
|
|
5
5
|
import { RafflePrize } from './RafflePrize';
|
|
6
6
|
import { RafflePrizeWinner } from './RafflePrizeWinner';
|
|
7
|
-
import { CoreUtils } from 'src/Core';
|
|
8
7
|
import { RaffleTicket } from './RaffleTicket';
|
|
9
8
|
|
|
10
9
|
export interface GetRafflesResponse extends ProtocolResponse {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TransformedRaffleClaimPrizeResponse } from "
|
|
1
|
+
import { TransformedRaffleClaimPrizeResponse } from "../WSAPI/WSAPITypes";
|
|
2
2
|
import { ProtocolResponse } from "../Base/ProtocolResponse";
|
|
3
3
|
|
|
4
4
|
export interface RaffleClaimPrizeResponse extends ProtocolResponse {
|
package/src/WSAPI/WSAPI.ts
CHANGED
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
raffleClaimPrizeResponseTransform,
|
|
71
71
|
} from '../Raffle';
|
|
72
72
|
import { IntUtils } from '../IntUtils';
|
|
73
|
-
import { JackpotEligibleGame, TGetJackpotEligibleGamesResponse } from '
|
|
73
|
+
import { JackpotEligibleGame, TGetJackpotEligibleGamesResponse } from '../Jackpots/GetJackpotEligibleGamesResponse';
|
|
74
74
|
|
|
75
75
|
/** @hidden */
|
|
76
76
|
const CACHE_DATA_SEC = 30;
|
|
@@ -1091,7 +1091,7 @@ export class WSAPI {
|
|
|
1091
1091
|
jp_template_id?: number;
|
|
1092
1092
|
}): Promise<JackpotWinnerHistory[]> {
|
|
1093
1093
|
return OCache.use(
|
|
1094
|
-
onUpdateContextKey.JackpotWinners,
|
|
1094
|
+
onUpdateContextKey.JackpotWinners + jp_template_id,
|
|
1095
1095
|
ECacheContext.WSAPI,
|
|
1096
1096
|
() => this.api.getJackpotWinnersT(null, limit, offset, jp_template_id),
|
|
1097
1097
|
JACKPOT_WINNERS_CACHE_SEC,
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -7,7 +7,8 @@ import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, Ach
|
|
|
7
7
|
import { BonusStatus , BonusTemplateMetaMap, BonusMetaMap} from '../Bonuses';
|
|
8
8
|
import { PrizeModifiers } from '../MiniGames/PrizeModifiers';
|
|
9
9
|
import { InboxCategories } from '../Inbox/InboxCategories';
|
|
10
|
-
import { RaffleDrawInstanceState, RaffleDrawTypeExecution } from '
|
|
10
|
+
import { RaffleDrawInstanceState, RaffleDrawTypeExecution } from '../Raffle';
|
|
11
|
+
import { JackPotWinner } from '../Jackpots/JackPotWinner';
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string;
|