@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
|
@@ -18,7 +18,7 @@ ___
|
|
|
18
18
|
|
|
19
19
|
• **jp\_type\_id**: [`JackpotType`](../enums/JackpotType.md)
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
Type of jackpot logic
|
|
22
22
|
|
|
23
23
|
___
|
|
24
24
|
|
|
@@ -34,7 +34,7 @@ ___
|
|
|
34
34
|
|
|
35
35
|
• **jp\_currency**: `string`
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Base currency of the jackpot
|
|
38
38
|
|
|
39
39
|
___
|
|
40
40
|
|
|
@@ -42,15 +42,7 @@ ___
|
|
|
42
42
|
|
|
43
43
|
• **user\_currency**: `string`
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
___
|
|
48
|
-
|
|
49
|
-
### related\_games
|
|
50
|
-
|
|
51
|
-
• `Optional` **related\_games**: [`AchRelatedGame`](AchRelatedGame.md)[]
|
|
52
|
-
|
|
53
|
-
list of related games that are eligible for the jackpot
|
|
45
|
+
Wallet currency of currently logged in user
|
|
54
46
|
|
|
55
47
|
___
|
|
56
48
|
|
|
@@ -58,7 +50,7 @@ ___
|
|
|
58
50
|
|
|
59
51
|
• **contribution\_type**: [`JackpotContributionType`](../enums/JackpotContributionType.md)
|
|
60
52
|
|
|
61
|
-
|
|
53
|
+
Type of the user contribution to the jackpot
|
|
62
54
|
|
|
63
55
|
___
|
|
64
56
|
|
|
@@ -66,7 +58,7 @@ ___
|
|
|
66
58
|
|
|
67
59
|
• **contribution\_value**: `number`
|
|
68
60
|
|
|
69
|
-
|
|
61
|
+
Value of the user contribution. Fixed amount or percentage of bet depending on the contribution type
|
|
70
62
|
|
|
71
63
|
___
|
|
72
64
|
|
|
@@ -74,7 +66,7 @@ ___
|
|
|
74
66
|
|
|
75
67
|
• **pot**: [`JackpotPot`](JackpotPot.md)
|
|
76
68
|
|
|
77
|
-
|
|
69
|
+
Information of current value of the jackpot
|
|
78
70
|
|
|
79
71
|
___
|
|
80
72
|
|
|
@@ -82,7 +74,7 @@ ___
|
|
|
82
74
|
|
|
83
75
|
• **is\_opted\_in**: `boolean`
|
|
84
76
|
|
|
85
|
-
|
|
77
|
+
Indication if the current user is opted in to the jackpot
|
|
86
78
|
|
|
87
79
|
___
|
|
88
80
|
|
|
@@ -90,7 +82,7 @@ ___
|
|
|
90
82
|
|
|
91
83
|
• **ach\_related\_game\_allow\_all**: `boolean`
|
|
92
84
|
|
|
93
|
-
|
|
85
|
+
Indicates whether all games are eligible for the jackpot
|
|
94
86
|
|
|
95
87
|
___
|
|
96
88
|
|
package/package.json
CHANGED
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
19
|
+
/** Base currency of the jackpot */
|
|
20
20
|
jp_currency: string;
|
|
21
|
-
/**
|
|
21
|
+
/** Wallet currency of currently logged in user */
|
|
22
22
|
user_currency: string;
|
|
23
|
-
/**
|
|
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
|
-
/**
|
|
25
|
+
/** Value of the user contribution. Fixed amount or percentage of bet depending on the contribution type */
|
|
28
26
|
contribution_value: number;
|
|
29
|
-
/**
|
|
27
|
+
/** Information of current value of the jackpot */
|
|
30
28
|
pot: JackpotPot;
|
|
31
|
-
/**
|
|
29
|
+
/** Indication if the current user is opted in to the jackpot */
|
|
32
30
|
is_opted_in: boolean;
|
|
33
|
-
/**
|
|
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;
|
package/src/SmarticoLib/index.ts
CHANGED
|
@@ -484,8 +484,8 @@ declare enum TournamentRegistrationType {
|
|
|
484
484
|
BUY_IN_POINTS = 3,
|
|
485
485
|
MANUAL_APPROVAL = 4,
|
|
486
486
|
REQUIRES_QUALIFICATION = 5,
|
|
487
|
-
BUY_IN_GEMS =
|
|
488
|
-
BUY_IN_DIAMONDS =
|
|
487
|
+
BUY_IN_GEMS = 6,
|
|
488
|
+
BUY_IN_DIAMONDS = 7,
|
|
489
489
|
}
|
|
490
490
|
/*
|
|
491
491
|
AUTO – The user is automatically registered upon their first qualifying action; no manual action is required.
|
package/src/WSAPI/WSAPI.ts
CHANGED
|
@@ -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,
|