@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.
- package/dist/Jackpots/JackpotDetails.d.ts +8 -11
- package/dist/SmarticoLib/index.d.ts +2 -2
- 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/docs/interfaces/JackpotDetails.md +8 -16
- package/package.json +1 -1
- package/src/Jackpots/JackpotDetails.ts +8 -10
- package/src/SmarticoLib/index.ts +2 -2
- package/src/WSAPI/WSAPI.ts +1 -1
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
17
|
+
/** Base currency of the jackpot */
|
|
19
18
|
jp_currency: string;
|
|
20
|
-
/**
|
|
19
|
+
/** Wallet currency of currently logged in user */
|
|
21
20
|
user_currency: string;
|
|
22
|
-
/**
|
|
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
|
-
/**
|
|
23
|
+
/** Value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
|
|
27
24
|
contribution_value: number;
|
|
28
|
-
/**
|
|
25
|
+
/** Information of current value of the jackpot */
|
|
29
26
|
pot: JackpotPot;
|
|
30
|
-
/**
|
|
27
|
+
/** Indication if the current user is opted in to the jackpot */
|
|
31
28
|
is_opted_in: boolean;
|
|
32
|
-
/**
|
|
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 =
|
|
486
|
-
BUY_IN_DIAMONDS =
|
|
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) {
|