@smartico/public-api 0.0.170 → 0.0.171
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/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
|
@@ -39,3 +39,14 @@ ___
|
|
|
39
39
|
• **explode\_date\_ts**: `number`
|
|
40
40
|
|
|
41
41
|
the date/time when this pot exploded
|
|
42
|
+
|
|
43
|
+
___
|
|
44
|
+
|
|
45
|
+
### current\_pot\_temperature
|
|
46
|
+
|
|
47
|
+
• **current\_pot\_temperature**: `JackPotTemparature`
|
|
48
|
+
|
|
49
|
+
current pot temperature
|
|
50
|
+
0 - cold. seed amount < current pot < (min amount - seed amount)/2
|
|
51
|
+
1 - warm. (min amount - seed amount)/2 < current pot < min amount
|
|
52
|
+
2 - hot. current pot > min amount
|
package/package.json
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
enum JackPotTemparature {
|
|
2
|
+
/** cold */
|
|
3
|
+
COLD = 0,
|
|
4
|
+
/** warm */
|
|
5
|
+
WARM = 1,
|
|
6
|
+
/** hot */
|
|
7
|
+
HOT = 2
|
|
8
|
+
}
|
|
9
|
+
|
|
1
10
|
interface JackpotPot {
|
|
2
11
|
/** ID of the jackpot template */
|
|
3
12
|
jp_template_id: number;
|
|
@@ -9,6 +18,12 @@ interface JackpotPot {
|
|
|
9
18
|
current_pot_amount_user_currency: number;
|
|
10
19
|
/** the date/time when this pot exploded */
|
|
11
20
|
explode_date_ts: number;
|
|
21
|
+
/** current pot temperature
|
|
22
|
+
* 0 - cold. seed amount < current pot < (min amount - seed amount)/2
|
|
23
|
+
* 1 - warm. (min amount - seed amount)/2 < current pot < min amount
|
|
24
|
+
* 2 - hot. current pot > min amount
|
|
25
|
+
*/
|
|
26
|
+
current_pot_temperature: JackPotTemparature;
|
|
12
27
|
}
|
|
13
28
|
|
|
14
29
|
export { JackpotPot };
|