@smartico/public-api 0.0.264 → 0.0.266

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.
@@ -1,4 +1,3 @@
1
- import { AchRelatedGame } from '../Base/AchRelatedGame';
2
1
  import { JackpotContributionType } from './JackpotContributionType';
3
2
  import { JackpotPot } from './JackpotPot';
4
3
  import { JackpotPublicMeta } from './JackpotPublicMeta';
@@ -11,25 +10,23 @@ import { JackpotType } from './JackpotType';
11
10
  interface JackpotDetails {
12
11
  /** ID of the jackpot template */
13
12
  jp_template_id: number;
14
- /** type of jackpot logic */
13
+ /** Type of jackpot logic */
15
14
  jp_type_id: JackpotType;
16
15
  /** UI information of jackpot, like name, description, etc. */
17
16
  jp_public_meta: JackpotPublicMeta;
18
- /** base currency of the jackpot */
17
+ /** Base currency of the jackpot */
19
18
  jp_currency: string;
20
- /** wallet currency of currently logged in user */
19
+ /** Wallet currency of currently logged in user */
21
20
  user_currency: string;
22
- /** list of related games that are eligible for the jackpot */
23
- related_games?: AchRelatedGame[];
24
- /** type of the user contribution to the jackpot */
21
+ /** Type of the user contribution to the jackpot */
25
22
  contribution_type: JackpotContributionType;
26
- /** value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
23
+ /** Value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
27
24
  contribution_value: number;
28
- /** information of current value of the jackpot */
25
+ /** Information of current value of the jackpot */
29
26
  pot: JackpotPot;
30
- /** indication if the current user is opted in to the jackpot */
27
+ /** Indication if the current user is opted in to the jackpot */
31
28
  is_opted_in: boolean;
32
- /** indicates whether all games are eligible for the jackpot */
29
+ /** Indicates whether all games are eligible for the jackpot */
33
30
  ach_related_game_allow_all: boolean;
34
31
  /** The number of users who have opted in to participate in the jackpot */
35
32
  registration_count: number;
@@ -482,8 +482,8 @@ declare enum TournamentRegistrationType {
482
482
  BUY_IN_POINTS = 3,
483
483
  MANUAL_APPROVAL = 4,
484
484
  REQUIRES_QUALIFICATION = 5,
485
- BUY_IN_GEMS = 15,
486
- BUY_IN_DIAMONDS = 16
485
+ BUY_IN_GEMS = 6,
486
+ BUY_IN_DIAMONDS = 7
487
487
  }
488
488
  export type TournamentRegistrationTypeName = 'AUTO' | 'OPT_IN' | 'BUY_IN_POINTS' | 'MANUAL_APPROVAL' | 'REQUIRES_QUALIFICATION' | 'BUY_IN_GEMS' | 'BUY_IN_DIAMONDS' | 'UNKNOWN';
489
489
  declare enum TournamentInstanceStatus {
package/dist/index.js CHANGED
@@ -3045,7 +3045,7 @@ var WSAPI = /*#__PURE__*/function () {
3045
3045
  jp_template_id = _ref10.jp_template_id;
3046
3046
  try {
3047
3047
  var _this46 = this;
3048
- return Promise.resolve(OCache.use(onUpdateContextKey.JackpotWinners, exports.ECacheContext.WSAPI, function () {
3048
+ return Promise.resolve(OCache.use(onUpdateContextKey.JackpotWinners + jp_template_id, exports.ECacheContext.WSAPI, function () {
3049
3049
  return _this46.api.getJackpotWinnersT(null, limit, offset, jp_template_id);
3050
3050
  }, JACKPOT_WINNERS_CACHE_SEC));
3051
3051
  } catch (e) {