@smartico/public-api 0.0.170 → 0.0.172
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/JackpotPot.d.ts +14 -0
- package/dist/UserProfile/UserProfile.d.ts +1 -1
- package/dist/WSAPI/WSAPI.d.ts +1 -1
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +10 -0
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/JackpotPot.md +11 -0
- package/package.json +1 -1
- package/src/Jackpots/JackpotPot.ts +15 -0
- package/src/UserProfile/UserProfile.ts +1 -1
- package/src/WSAPI/WSAPI.ts +2 -2
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
declare enum JackPotTemparature {
|
|
2
|
+
/** cold */
|
|
3
|
+
COLD = 0,
|
|
4
|
+
/** warm */
|
|
5
|
+
WARM = 1,
|
|
6
|
+
/** hot */
|
|
7
|
+
HOT = 2
|
|
8
|
+
}
|
|
1
9
|
interface JackpotPot {
|
|
2
10
|
/** ID of the jackpot template */
|
|
3
11
|
jp_template_id: number;
|
|
@@ -9,5 +17,11 @@ interface JackpotPot {
|
|
|
9
17
|
current_pot_amount_user_currency: number;
|
|
10
18
|
/** the date/time when this pot exploded */
|
|
11
19
|
explode_date_ts: number;
|
|
20
|
+
/** current pot temperature
|
|
21
|
+
* 0 - cold. seed amount < current pot < (min amount - seed amount)/2
|
|
22
|
+
* 1 - warm. (min amount - seed amount)/2 < current pot < min amount
|
|
23
|
+
* 2 - hot. current pot > min amount
|
|
24
|
+
*/
|
|
25
|
+
current_pot_temperature: JackPotTemparature;
|
|
12
26
|
}
|
|
13
27
|
export { JackpotPot };
|
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { SmarticoAPI } from '../SmarticoAPI';
|
|
|
2
2
|
import { InboxMarkMessageAction, LeaderBoardDetailsT, TAchCategory, TBuyStoreItemResult, TGetTranslations, TInboxMessage, TInboxMessageBody, TLevel, TMiniGamePlayResult, TMiniGameTemplate, TMissionClaimRewardResult, TMissionOptInResult, TMissionOrBadge, TSegmentCheckResult, TStoreCategory, TStoreItem, TTournament, TTournamentDetailed, TTournamentRegistrationResult, TUICustomSection, TUserProfile, UserLevelExtraCountersT, TBonus, TClaimBonusResult, TMiniGamePlayBatchResult } from './WSAPITypes';
|
|
3
3
|
import { LeaderBoardPeriodType } from '../Leaderboard';
|
|
4
4
|
import { JackpotDetails, JackpotsOptinResponse, JackpotsOptoutResponse } from '../Jackpots';
|
|
5
|
-
import { GetAchievementMapResponse } from '
|
|
5
|
+
import { GetAchievementMapResponse } from '../Missions';
|
|
6
6
|
/** @group General API */
|
|
7
7
|
export declare class WSAPI {
|
|
8
8
|
private api;
|
package/dist/index.js
CHANGED
|
@@ -3835,6 +3835,16 @@ exports.JackpotContributionType = void 0;
|
|
|
3835
3835
|
JackpotContributionType[JackpotContributionType["Percentage"] = 2] = "Percentage";
|
|
3836
3836
|
})(exports.JackpotContributionType || (exports.JackpotContributionType = {}));
|
|
3837
3837
|
|
|
3838
|
+
var JackPotTemparature;
|
|
3839
|
+
(function (JackPotTemparature) {
|
|
3840
|
+
/** cold */
|
|
3841
|
+
JackPotTemparature[JackPotTemparature["COLD"] = 0] = "COLD";
|
|
3842
|
+
/** warm */
|
|
3843
|
+
JackPotTemparature[JackPotTemparature["WARM"] = 1] = "WARM";
|
|
3844
|
+
/** hot */
|
|
3845
|
+
JackPotTemparature[JackPotTemparature["HOT"] = 2] = "HOT";
|
|
3846
|
+
})(JackPotTemparature || (JackPotTemparature = {}));
|
|
3847
|
+
|
|
3838
3848
|
exports.JackpotType = void 0;
|
|
3839
3849
|
(function (JackpotType) {
|
|
3840
3850
|
JackpotType[JackpotType["Main"] = 1] = "Main";
|