@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.
Files changed (72) hide show
  1. package/dist/Core/GetAchievementsUserInfoResponse.d.ts +2 -0
  2. package/dist/Jackpots/GetJackpotWinnersRequest.d.ts +1 -1
  3. package/dist/Jackpots/JackpotDetails.d.ts +8 -11
  4. package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
  5. package/dist/Raffle/GetDrawResponse.d.ts +5 -0
  6. package/dist/Raffle/GetDrawRunResponse.d.ts +1 -1
  7. package/dist/Raffle/GetRaffleDrawRunsHistoryResponse.d.ts +1 -1
  8. package/dist/Raffle/GetRafflesResponse.d.ts +1 -1
  9. package/dist/Raffle/RaffleClaimPrizeResponse.d.ts +1 -1
  10. package/dist/SmarticoPublicAPI.d.ts +23 -0
  11. package/dist/Store/BuyShopItemErrorCode.d.ts +10 -0
  12. package/dist/Store/BuyShopItemRequest.d.ts +4 -0
  13. package/dist/Store/BuyShopItemResponse.d.ts +4 -0
  14. package/dist/Store/GetCategoriesShopResponse.d.ts +5 -0
  15. package/dist/Store/GetShopItemsResponse.d.ts +5 -0
  16. package/dist/Store/ShopCategory.d.ts +5 -0
  17. package/dist/Store/ShopCategoryPublicMeta.d.ts +4 -0
  18. package/dist/Store/ShopItem.d.ts +9 -0
  19. package/dist/Store/ShopItemPublicMeta.d.ts +10 -0
  20. package/dist/Store/ShopItemType.d.ts +4 -0
  21. package/dist/Store/StorItemPruchased.d.ts +6 -0
  22. package/dist/WSAPI/WSAPI.d.ts +1 -1
  23. package/dist/WSAPI/WSAPITypes.d.ts +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/index.modern.mjs +1 -1
  27. package/dist/index.modern.mjs.map +1 -1
  28. package/dist/service/index.d.ts +5 -0
  29. package/dist/service/types/ErrorCodes.d.ts +13 -0
  30. package/dist/service/types/GRequest.d.ts +16 -0
  31. package/dist/service/types/GResponse.d.ts +10 -0
  32. package/dist/service/types/Game/GameAttemptType.d.ts +6 -0
  33. package/dist/service/types/Game/GameCanPlayType.d.ts +10 -0
  34. package/dist/service/types/Game/GameExternalStatus.d.ts +6 -0
  35. package/dist/service/types/Game/GameInfo.d.ts +9 -0
  36. package/dist/service/types/Game/GamePick.d.ts +90 -0
  37. package/dist/service/types/Game/GameUtil.d.ts +7 -0
  38. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +7 -0
  39. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +7 -0
  40. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +5 -0
  41. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +6 -0
  42. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +5 -0
  43. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +34 -0
  44. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +11 -0
  45. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +12 -0
  46. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +5 -0
  47. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +5 -0
  48. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +5 -0
  49. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +15 -0
  50. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +10 -0
  51. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +3 -0
  52. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +5 -0
  53. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +11 -0
  54. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +8 -0
  55. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +13 -0
  56. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +21 -0
  57. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +31 -0
  58. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +12 -0
  59. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +9 -0
  60. package/dist/service/types/User/UserInfo.d.ts +10 -0
  61. package/dist/util/Util.d.ts +51 -0
  62. package/docs/interfaces/JackpotDetails.md +8 -16
  63. package/package.json +1 -1
  64. package/src/Core/GetAchievementsUserInfoResponse.ts +2 -0
  65. package/src/Jackpots/GetJackpotWinnersRequest.ts +1 -1
  66. package/src/Jackpots/JackpotDetails.ts +8 -10
  67. package/src/Raffle/GetDrawRunResponse.ts +1 -1
  68. package/src/Raffle/GetRaffleDrawRunsHistoryResponse.ts +1 -1
  69. package/src/Raffle/GetRafflesResponse.ts +1 -2
  70. package/src/Raffle/RaffleClaimPrizeResponse.ts +1 -1
  71. package/src/WSAPI/WSAPI.ts +2 -2
  72. 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
- /** type of jackpot logic */
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
- /** base currency of the jackpot */
19
+ /** Base currency of the jackpot */
20
20
  jp_currency: string;
21
- /** wallet currency of currently logged in user */
21
+ /** Wallet currency of currently logged in user */
22
22
  user_currency: string;
23
- /** list of related games that are eligible for the jackpot */
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
- /** value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
25
+ /** Value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
28
26
  contribution_value: number;
29
- /** information of current value of the jackpot */
27
+ /** Information of current value of the jackpot */
30
28
  pot: JackpotPot;
31
- /** indication if the current user is opted in to the jackpot */
29
+ /** Indication if the current user is opted in to the jackpot */
32
30
  is_opted_in: boolean;
33
- /** indicates whether all games are eligible for the jackpot */
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 'src/WSAPI/WSAPITypes';
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,4 +1,4 @@
1
- import { TRaffleDrawRun } from 'src/WSAPI/WSAPITypes';
1
+ import { TRaffleDrawRun } from '../WSAPI/WSAPITypes';
2
2
  import { ProtocolResponse } from '../Base/ProtocolResponse';
3
3
  import { RaffleDrawRun } from './RaffleDrawRun';
4
4
 
@@ -1,10 +1,9 @@
1
- import { TRaffle, TRaffleDraw, TRafflePrize, TRafflePrizeWinner, TRaffleTicket } from 'src/WSAPI/WSAPITypes';
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 "src/WSAPI/WSAPITypes";
1
+ import { TransformedRaffleClaimPrizeResponse } from "../WSAPI/WSAPITypes";
2
2
  import { ProtocolResponse } from "../Base/ProtocolResponse";
3
3
 
4
4
  export interface RaffleClaimPrizeResponse extends ProtocolResponse {
@@ -70,7 +70,7 @@ import {
70
70
  raffleClaimPrizeResponseTransform,
71
71
  } from '../Raffle';
72
72
  import { IntUtils } from '../IntUtils';
73
- import { JackpotEligibleGame, TGetJackpotEligibleGamesResponse } from 'src/Jackpots/GetJackpotEligibleGamesResponse';
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,
@@ -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 'src/Raffle';import { JackPotWinner } from 'src/Jackpots/JackPotWinner';
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;