@smartico/public-api 0.0.136 → 0.0.138
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 +16 -0
- package/dist/Jackpots/JackpotPot.d.ts +6 -0
- package/dist/Jackpots/JackpotPublicMeta.d.ts +7 -0
- package/dist/MiniGames/SAWTemplateUI.d.ts +2 -2
- package/dist/SmarticoAPI.d.ts +1 -1
- package/dist/SmarticoLib/index.d.ts +4 -2
- package/dist/Store/GetStoreHistoryRequest.d.ts +1 -1
- package/dist/Store/GetStoreHistoryResponse.d.ts +1 -1
- package/dist/WSAPI/WSAPI.d.ts +42 -11
- package/dist/WSAPI/WSAPITypes.d.ts +1 -0
- package/dist/index.js +51 -22
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +43 -13
- package/dist/index.modern.mjs.map +1 -1
- package/docs/README.md +19 -1
- package/docs/classes/WSAPI.md +93 -11
- package/docs/enums/JackpotContributionType.md +13 -0
- package/docs/enums/JackpotType.md +7 -0
- package/docs/enums/LeaderBoardPeriodType.md +19 -0
- package/docs/enums/SAWGameTypeName.md +6 -0
- package/docs/interfaces/AchRelatedGame-1.md +28 -0
- package/docs/interfaces/AchRelatedGame.md +14 -12
- package/docs/interfaces/GetJackpotsPotsRequest.md +43 -0
- package/docs/interfaces/GetJackpotsPotsResponse.md +63 -0
- package/docs/interfaces/GetJackpotsRequest.md +49 -0
- package/docs/interfaces/GetJackpotsResponse.md +63 -0
- package/docs/interfaces/JackPotWinner.md +31 -0
- package/docs/interfaces/JackpotDetails.md +85 -0
- package/docs/interfaces/JackpotHtmlTemplate.md +13 -0
- package/docs/interfaces/JackpotPot.md +41 -0
- package/docs/interfaces/JackpotPublicMeta.md +57 -0
- package/docs/interfaces/JackpotWinPush.md +49 -0
- package/docs/interfaces/JackpotsOptinRequest.md +43 -0
- package/docs/interfaces/JackpotsOptinResponse.md +57 -0
- package/docs/interfaces/JackpotsOptoutRequest.md +43 -0
- package/docs/interfaces/JackpotsOptoutResponse.md +57 -0
- package/docs/interfaces/LeaderBoardDetailsT.md +1 -1
- package/docs/interfaces/TAchCategory.md +6 -0
- package/docs/interfaces/TMiniGameTemplate.md +2 -0
- package/docs/interfaces/TMissionOrBadge.md +6 -7
- package/docs/interfaces/TStoreCategory.md +6 -0
- package/docs/interfaces/TTournament.md +6 -0
- package/docs/interfaces/TTournamentDetailed.md +11 -1
- package/package.json +1 -1
- package/src/Base/AchRelatedGame.ts +3 -1
- package/src/Jackpots/JackpotDetails.ts +16 -0
- package/src/Jackpots/JackpotPot.ts +7 -1
- package/src/Jackpots/JackpotPublicMeta.ts +7 -0
- package/src/MiniGames/SAWTemplateUI.ts +2 -2
- package/src/SmarticoAPI.ts +5 -6
- package/src/SmarticoLib/index.ts +4 -2
- package/src/Store/GetStoreHistoryRequest.ts +1 -1
- package/src/Store/GetStoreHistoryResponse.ts +1 -1
- package/src/Tournaments/Tournament.ts +1 -0
- package/src/WSAPI/WSAPI.ts +42 -13
- package/src/WSAPI/WSAPITypes.ts +2 -0
- package/tsconfig.json +3 -0
package/docs/README.md
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## Enumerations
|
|
4
4
|
|
|
5
|
+
- [JackpotContributionType](enums/JackpotContributionType.md)
|
|
6
|
+
- [JackpotType](enums/JackpotType.md)
|
|
7
|
+
- [LeaderBoardPeriodType](enums/LeaderBoardPeriodType.md)
|
|
5
8
|
- [SAWBuyInTypeName](enums/SAWBuyInTypeName.md)
|
|
6
9
|
- [SAWGameTypeName](enums/SAWGameTypeName.md)
|
|
7
10
|
- [MiniGamePrizeTypeName](enums/MiniGamePrizeTypeName.md)
|
|
@@ -12,6 +15,21 @@
|
|
|
12
15
|
|
|
13
16
|
## Interfaces
|
|
14
17
|
|
|
18
|
+
- [AchRelatedGame](interfaces/AchRelatedGame.md)
|
|
19
|
+
- [GetJackpotsPotsRequest](interfaces/GetJackpotsPotsRequest.md)
|
|
20
|
+
- [GetJackpotsPotsResponse](interfaces/GetJackpotsPotsResponse.md)
|
|
21
|
+
- [GetJackpotsRequest](interfaces/GetJackpotsRequest.md)
|
|
22
|
+
- [GetJackpotsResponse](interfaces/GetJackpotsResponse.md)
|
|
23
|
+
- [JackPotWinner](interfaces/JackPotWinner.md)
|
|
24
|
+
- [JackpotDetails](interfaces/JackpotDetails.md)
|
|
25
|
+
- [JackpotHtmlTemplate](interfaces/JackpotHtmlTemplate.md)
|
|
26
|
+
- [JackpotPot](interfaces/JackpotPot.md)
|
|
27
|
+
- [JackpotPublicMeta](interfaces/JackpotPublicMeta.md)
|
|
28
|
+
- [JackpotWinPush](interfaces/JackpotWinPush.md)
|
|
29
|
+
- [JackpotsOptinRequest](interfaces/JackpotsOptinRequest.md)
|
|
30
|
+
- [JackpotsOptinResponse](interfaces/JackpotsOptinResponse.md)
|
|
31
|
+
- [JackpotsOptoutRequest](interfaces/JackpotsOptoutRequest.md)
|
|
32
|
+
- [JackpotsOptoutResponse](interfaces/JackpotsOptoutResponse.md)
|
|
15
33
|
- [TMiniGamePrize](interfaces/TMiniGamePrize.md)
|
|
16
34
|
- [TMiniGamePlayResult](interfaces/TMiniGamePlayResult.md)
|
|
17
35
|
- [TMiniGameTemplate](interfaces/TMiniGameTemplate.md)
|
|
@@ -23,7 +41,7 @@
|
|
|
23
41
|
- [TStoreItem](interfaces/TStoreItem.md)
|
|
24
42
|
- [TAchCategory](interfaces/TAchCategory.md)
|
|
25
43
|
- [TMissionOrBadge](interfaces/TMissionOrBadge.md)
|
|
26
|
-
- [AchRelatedGame](interfaces/AchRelatedGame.md)
|
|
44
|
+
- [AchRelatedGame](interfaces/AchRelatedGame-1.md)
|
|
27
45
|
- [TMissionOrBadgeTask](interfaces/TMissionOrBadgeTask.md)
|
|
28
46
|
- [TMissionOptInResult](interfaces/TMissionOptInResult.md)
|
|
29
47
|
- [TMissionClaimRewardResult](interfaces/TMissionClaimRewardResult.md)
|
package/docs/classes/WSAPI.md
CHANGED
|
@@ -199,18 +199,19 @@ Returns store categories
|
|
|
199
199
|
|
|
200
200
|
___
|
|
201
201
|
|
|
202
|
-
###
|
|
202
|
+
### getStorePurchasedItems
|
|
203
203
|
|
|
204
|
-
▸ **
|
|
204
|
+
▸ **getStorePurchasedItems**(): `Promise`<[`TStoreItem`](../interfaces/TStoreItem.md)[]\>
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
206
|
+
Returns purchased items based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
|
|
207
|
+
The maximum number of items per request is limited to 20.
|
|
208
|
+
You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
|
|
209
|
+
Example usage:
|
|
210
|
+
```
|
|
211
|
+
_smartico.api.getStorePurchasedItems().then((result) => {
|
|
212
|
+
console.log(result);
|
|
213
|
+
});
|
|
214
|
+
```
|
|
214
215
|
|
|
215
216
|
#### Returns
|
|
216
217
|
|
|
@@ -369,7 +370,7 @@ For example, if the type is Weekly and getPreviousPeriod is true, a leaderboard
|
|
|
369
370
|
|
|
370
371
|
| Name | Type |
|
|
371
372
|
| :------ | :------ |
|
|
372
|
-
| `periodType` | `LeaderBoardPeriodType` |
|
|
373
|
+
| `periodType` | [`LeaderBoardPeriodType`](../enums/LeaderBoardPeriodType.md) |
|
|
373
374
|
| `getPreviousPeriod?` | `boolean` |
|
|
374
375
|
|
|
375
376
|
#### Returns
|
|
@@ -510,3 +511,84 @@ Requests translations for the given language. Returns the object including trans
|
|
|
510
511
|
#### Returns
|
|
511
512
|
|
|
512
513
|
`Promise`<[`TGetTranslations`](../interfaces/TGetTranslations.md)\>
|
|
514
|
+
|
|
515
|
+
___
|
|
516
|
+
|
|
517
|
+
### jackpotGet
|
|
518
|
+
|
|
519
|
+
▸ **jackpotGet**(`filter?`): `Promise`<[`JackpotDetails`](../interfaces/JackpotDetails.md)[]\>
|
|
520
|
+
|
|
521
|
+
Returns list of Jackpots that are active in the systen and matching to the filter definition.
|
|
522
|
+
If filter is not provided, all active jackpots will be returned.
|
|
523
|
+
Filter can be used to get jackpots related to specific game or specific jackpot template.
|
|
524
|
+
You can call this method every second in order to get up to date information about current value of the jackpot(s) and present them to the end-users
|
|
525
|
+
Example usage:
|
|
526
|
+
```
|
|
527
|
+
_smartico.api.jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
|
|
528
|
+
console.log(result);
|
|
529
|
+
});
|
|
530
|
+
```
|
|
531
|
+
|
|
532
|
+
#### Parameters
|
|
533
|
+
|
|
534
|
+
| Name | Type |
|
|
535
|
+
| :------ | :------ |
|
|
536
|
+
| `filter?` | `Object` |
|
|
537
|
+
| `filter.related_game_id?` | `string` |
|
|
538
|
+
| `filter.jp_template_id?` | `number` |
|
|
539
|
+
|
|
540
|
+
#### Returns
|
|
541
|
+
|
|
542
|
+
`Promise`<[`JackpotDetails`](../interfaces/JackpotDetails.md)[]\>
|
|
543
|
+
|
|
544
|
+
___
|
|
545
|
+
|
|
546
|
+
### jackpotOptIn
|
|
547
|
+
|
|
548
|
+
▸ **jackpotOptIn**(`filter`): `Promise`<[`JackpotsOptinResponse`](../interfaces/JackpotsOptinResponse.md)\>
|
|
549
|
+
|
|
550
|
+
Opt-in currently logged in user to the jackpot with the specified jp_template_id.
|
|
551
|
+
You may call jackpotGet method after doing optin to see that user is opted in to the jackpot.
|
|
552
|
+
Example usage:
|
|
553
|
+
```
|
|
554
|
+
_smartico.api.jackpotOptIn({ jp_template_id: 123 }).then((result) => {
|
|
555
|
+
console.log('Opted in to the jackpot');
|
|
556
|
+
});
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
#### Parameters
|
|
560
|
+
|
|
561
|
+
| Name | Type |
|
|
562
|
+
| :------ | :------ |
|
|
563
|
+
| `filter` | `Object` |
|
|
564
|
+
| `filter.jp_template_id` | `number` |
|
|
565
|
+
|
|
566
|
+
#### Returns
|
|
567
|
+
|
|
568
|
+
`Promise`<[`JackpotsOptinResponse`](../interfaces/JackpotsOptinResponse.md)\>
|
|
569
|
+
|
|
570
|
+
___
|
|
571
|
+
|
|
572
|
+
### jackpotOptOut
|
|
573
|
+
|
|
574
|
+
▸ **jackpotOptOut**(`filter`): `Promise`<[`JackpotsOptoutResponse`](../interfaces/JackpotsOptoutResponse.md)\>
|
|
575
|
+
|
|
576
|
+
Opt-out currently logged in user from the jackpot with the specified jp_template_id.
|
|
577
|
+
You may call jackpotGet method after doing optout to see that user is not opted in to the jackpot.
|
|
578
|
+
Example usage:
|
|
579
|
+
```
|
|
580
|
+
_smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
|
|
581
|
+
console.log('Opted out from the jackpot');
|
|
582
|
+
});
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
#### Parameters
|
|
586
|
+
|
|
587
|
+
| Name | Type |
|
|
588
|
+
| :------ | :------ |
|
|
589
|
+
| `filter` | `Object` |
|
|
590
|
+
| `filter.jp_template_id` | `number` |
|
|
591
|
+
|
|
592
|
+
#### Returns
|
|
593
|
+
|
|
594
|
+
`Promise`<[`JackpotsOptoutResponse`](../interfaces/JackpotsOptoutResponse.md)\>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Interface: AchRelatedGame
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
### ext\_game\_id
|
|
6
|
+
|
|
7
|
+
• **ext\_game\_id**: `string`
|
|
8
|
+
|
|
9
|
+
The ID of the related game
|
|
10
|
+
|
|
11
|
+
___
|
|
12
|
+
|
|
13
|
+
### game\_public\_meta
|
|
14
|
+
|
|
15
|
+
• **game\_public\_meta**: `Object`
|
|
16
|
+
|
|
17
|
+
Game public meta information
|
|
18
|
+
|
|
19
|
+
#### Type declaration
|
|
20
|
+
|
|
21
|
+
| Name | Type | Description |
|
|
22
|
+
| :------ | :------ | :------ |
|
|
23
|
+
| `name` | `string` | The name of the game |
|
|
24
|
+
| `link` | `string` | The URL to the game |
|
|
25
|
+
| `image` | `string` | The URL to the image of the game |
|
|
26
|
+
| `enabled` | `boolean` | The indicator if the game is enabled |
|
|
27
|
+
| `game_categories` | `string`[] | The list of categories of the game |
|
|
28
|
+
| `game_provider` | `string` | The name of the game provider |
|
|
@@ -2,27 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
+
### ach\_game\_id
|
|
6
|
+
|
|
7
|
+
• **ach\_game\_id**: `number`
|
|
8
|
+
|
|
9
|
+
___
|
|
10
|
+
|
|
5
11
|
### ext\_game\_id
|
|
6
12
|
|
|
7
13
|
• **ext\_game\_id**: `string`
|
|
8
14
|
|
|
9
|
-
The ID of the related game
|
|
10
|
-
|
|
11
15
|
___
|
|
12
16
|
|
|
13
17
|
### game\_public\_meta
|
|
14
18
|
|
|
15
19
|
• **game\_public\_meta**: `Object`
|
|
16
20
|
|
|
17
|
-
Game public meta information
|
|
18
|
-
|
|
19
21
|
#### Type declaration
|
|
20
22
|
|
|
21
|
-
| Name | Type |
|
|
22
|
-
| :------ | :------ |
|
|
23
|
-
| `name` | `string` |
|
|
24
|
-
| `link` | `string` |
|
|
25
|
-
| `image` | `string` |
|
|
26
|
-
| `enabled` | `boolean` |
|
|
27
|
-
| `game_categories
|
|
28
|
-
| `game_provider
|
|
23
|
+
| Name | Type |
|
|
24
|
+
| :------ | :------ |
|
|
25
|
+
| `name` | `string` |
|
|
26
|
+
| `link` | `string` |
|
|
27
|
+
| `image` | `string` |
|
|
28
|
+
| `enabled` | `boolean` |
|
|
29
|
+
| `game_categories?` | `string`[] |
|
|
30
|
+
| `game_provider?` | `string` |
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Interface: GetJackpotsPotsRequest
|
|
2
|
+
|
|
3
|
+
## Hierarchy
|
|
4
|
+
|
|
5
|
+
- `ProtocolMessage`
|
|
6
|
+
|
|
7
|
+
↳ **`GetJackpotsPotsRequest`**
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### cid
|
|
12
|
+
|
|
13
|
+
• **cid**: `number`
|
|
14
|
+
|
|
15
|
+
#### Inherited from
|
|
16
|
+
|
|
17
|
+
ProtocolMessage.cid
|
|
18
|
+
|
|
19
|
+
___
|
|
20
|
+
|
|
21
|
+
### ts
|
|
22
|
+
|
|
23
|
+
• `Optional` **ts**: `number`
|
|
24
|
+
|
|
25
|
+
#### Inherited from
|
|
26
|
+
|
|
27
|
+
ProtocolMessage.ts
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### uuid
|
|
32
|
+
|
|
33
|
+
• `Optional` **uuid**: `string`
|
|
34
|
+
|
|
35
|
+
#### Inherited from
|
|
36
|
+
|
|
37
|
+
ProtocolMessage.uuid
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### jp\_template\_ids
|
|
42
|
+
|
|
43
|
+
• **jp\_template\_ids**: `number`[]
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Interface: GetJackpotsPotsResponse
|
|
2
|
+
|
|
3
|
+
## Hierarchy
|
|
4
|
+
|
|
5
|
+
- `ProtocolResponse`
|
|
6
|
+
|
|
7
|
+
↳ **`GetJackpotsPotsResponse`**
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### cid
|
|
12
|
+
|
|
13
|
+
• **cid**: `number`
|
|
14
|
+
|
|
15
|
+
#### Inherited from
|
|
16
|
+
|
|
17
|
+
ProtocolResponse.cid
|
|
18
|
+
|
|
19
|
+
___
|
|
20
|
+
|
|
21
|
+
### ts
|
|
22
|
+
|
|
23
|
+
• `Optional` **ts**: `number`
|
|
24
|
+
|
|
25
|
+
#### Inherited from
|
|
26
|
+
|
|
27
|
+
ProtocolResponse.ts
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### uuid
|
|
32
|
+
|
|
33
|
+
• `Optional` **uuid**: `string`
|
|
34
|
+
|
|
35
|
+
#### Inherited from
|
|
36
|
+
|
|
37
|
+
ProtocolResponse.uuid
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### errCode
|
|
42
|
+
|
|
43
|
+
• `Optional` **errCode**: `number`
|
|
44
|
+
|
|
45
|
+
#### Inherited from
|
|
46
|
+
|
|
47
|
+
ProtocolResponse.errCode
|
|
48
|
+
|
|
49
|
+
___
|
|
50
|
+
|
|
51
|
+
### errMsg
|
|
52
|
+
|
|
53
|
+
• `Optional` **errMsg**: `string`
|
|
54
|
+
|
|
55
|
+
#### Inherited from
|
|
56
|
+
|
|
57
|
+
ProtocolResponse.errMsg
|
|
58
|
+
|
|
59
|
+
___
|
|
60
|
+
|
|
61
|
+
### items
|
|
62
|
+
|
|
63
|
+
• **items**: [`JackpotPot`](JackpotPot.md)[]
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Interface: GetJackpotsRequest
|
|
2
|
+
|
|
3
|
+
## Hierarchy
|
|
4
|
+
|
|
5
|
+
- `ProtocolMessage`
|
|
6
|
+
|
|
7
|
+
↳ **`GetJackpotsRequest`**
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### cid
|
|
12
|
+
|
|
13
|
+
• **cid**: `number`
|
|
14
|
+
|
|
15
|
+
#### Inherited from
|
|
16
|
+
|
|
17
|
+
ProtocolMessage.cid
|
|
18
|
+
|
|
19
|
+
___
|
|
20
|
+
|
|
21
|
+
### ts
|
|
22
|
+
|
|
23
|
+
• `Optional` **ts**: `number`
|
|
24
|
+
|
|
25
|
+
#### Inherited from
|
|
26
|
+
|
|
27
|
+
ProtocolMessage.ts
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### uuid
|
|
32
|
+
|
|
33
|
+
• `Optional` **uuid**: `string`
|
|
34
|
+
|
|
35
|
+
#### Inherited from
|
|
36
|
+
|
|
37
|
+
ProtocolMessage.uuid
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### related\_game\_id
|
|
42
|
+
|
|
43
|
+
• `Optional` **related\_game\_id**: `string`
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### jp\_template\_id
|
|
48
|
+
|
|
49
|
+
• `Optional` **jp\_template\_id**: `number`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Interface: GetJackpotsResponse
|
|
2
|
+
|
|
3
|
+
## Hierarchy
|
|
4
|
+
|
|
5
|
+
- `ProtocolResponse`
|
|
6
|
+
|
|
7
|
+
↳ **`GetJackpotsResponse`**
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### cid
|
|
12
|
+
|
|
13
|
+
• **cid**: `number`
|
|
14
|
+
|
|
15
|
+
#### Inherited from
|
|
16
|
+
|
|
17
|
+
ProtocolResponse.cid
|
|
18
|
+
|
|
19
|
+
___
|
|
20
|
+
|
|
21
|
+
### ts
|
|
22
|
+
|
|
23
|
+
• `Optional` **ts**: `number`
|
|
24
|
+
|
|
25
|
+
#### Inherited from
|
|
26
|
+
|
|
27
|
+
ProtocolResponse.ts
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### uuid
|
|
32
|
+
|
|
33
|
+
• `Optional` **uuid**: `string`
|
|
34
|
+
|
|
35
|
+
#### Inherited from
|
|
36
|
+
|
|
37
|
+
ProtocolResponse.uuid
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### errCode
|
|
42
|
+
|
|
43
|
+
• `Optional` **errCode**: `number`
|
|
44
|
+
|
|
45
|
+
#### Inherited from
|
|
46
|
+
|
|
47
|
+
ProtocolResponse.errCode
|
|
48
|
+
|
|
49
|
+
___
|
|
50
|
+
|
|
51
|
+
### errMsg
|
|
52
|
+
|
|
53
|
+
• `Optional` **errMsg**: `string`
|
|
54
|
+
|
|
55
|
+
#### Inherited from
|
|
56
|
+
|
|
57
|
+
ProtocolResponse.errMsg
|
|
58
|
+
|
|
59
|
+
___
|
|
60
|
+
|
|
61
|
+
### items
|
|
62
|
+
|
|
63
|
+
• **items**: [`JackpotDetails`](JackpotDetails.md)[]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Interface: JackPotWinner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
### is\_me
|
|
6
|
+
|
|
7
|
+
• **is\_me**: `boolean`
|
|
8
|
+
|
|
9
|
+
___
|
|
10
|
+
|
|
11
|
+
### public\_username
|
|
12
|
+
|
|
13
|
+
• **public\_username**: `string`
|
|
14
|
+
|
|
15
|
+
___
|
|
16
|
+
|
|
17
|
+
### winning\_amount\_jp\_currency
|
|
18
|
+
|
|
19
|
+
• **winning\_amount\_jp\_currency**: `number`
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### winning\_amount\_wallet\_currency
|
|
24
|
+
|
|
25
|
+
• **winning\_amount\_wallet\_currency**: `number`
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### winning\_position
|
|
30
|
+
|
|
31
|
+
• **winning\_position**: `number`
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# Interface: JackpotDetails
|
|
2
|
+
|
|
3
|
+
JackpotDetails the information about Jackpot template
|
|
4
|
+
It also includes JackpotPot object that holds the current value of the jackpot
|
|
5
|
+
Flag is_opted_in indicates if the current user is opted in to the jackpot
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
### jp\_template\_id
|
|
10
|
+
|
|
11
|
+
• **jp\_template\_id**: `number`
|
|
12
|
+
|
|
13
|
+
ID of the jackpot template
|
|
14
|
+
|
|
15
|
+
___
|
|
16
|
+
|
|
17
|
+
### jp\_type\_id
|
|
18
|
+
|
|
19
|
+
• **jp\_type\_id**: [`Main`](../enums/JackpotType.md#main)
|
|
20
|
+
|
|
21
|
+
type of jackpot logic
|
|
22
|
+
|
|
23
|
+
___
|
|
24
|
+
|
|
25
|
+
### jp\_public\_meta
|
|
26
|
+
|
|
27
|
+
• **jp\_public\_meta**: [`JackpotPublicMeta`](JackpotPublicMeta.md)
|
|
28
|
+
|
|
29
|
+
UI information of jackpot, like name, description, etc.
|
|
30
|
+
|
|
31
|
+
___
|
|
32
|
+
|
|
33
|
+
### jp\_currency
|
|
34
|
+
|
|
35
|
+
• **jp\_currency**: `string`
|
|
36
|
+
|
|
37
|
+
base currency of the jackpot
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### user\_currency
|
|
42
|
+
|
|
43
|
+
• **user\_currency**: `string`
|
|
44
|
+
|
|
45
|
+
wallet currency of currently logged in user
|
|
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
|
|
54
|
+
|
|
55
|
+
___
|
|
56
|
+
|
|
57
|
+
### contribution\_type
|
|
58
|
+
|
|
59
|
+
• **contribution\_type**: [`JackpotContributionType`](../enums/JackpotContributionType.md)
|
|
60
|
+
|
|
61
|
+
type of the user contribution to the jackpot
|
|
62
|
+
|
|
63
|
+
___
|
|
64
|
+
|
|
65
|
+
### contribution\_value
|
|
66
|
+
|
|
67
|
+
• **contribution\_value**: `number`
|
|
68
|
+
|
|
69
|
+
value of the user contribution. Fixed amount or percentage of bet depending on the contribution type
|
|
70
|
+
|
|
71
|
+
___
|
|
72
|
+
|
|
73
|
+
### pot
|
|
74
|
+
|
|
75
|
+
• **pot**: [`JackpotPot`](JackpotPot.md)
|
|
76
|
+
|
|
77
|
+
information of current value of the jackpot
|
|
78
|
+
|
|
79
|
+
___
|
|
80
|
+
|
|
81
|
+
### is\_opted\_in
|
|
82
|
+
|
|
83
|
+
• **is\_opted\_in**: `boolean`
|
|
84
|
+
|
|
85
|
+
indication if the current user is opted in to the jackpot
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Interface: JackpotPot
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
### jp\_template\_id
|
|
6
|
+
|
|
7
|
+
• **jp\_template\_id**: `number`
|
|
8
|
+
|
|
9
|
+
ID of the jackpot template
|
|
10
|
+
|
|
11
|
+
___
|
|
12
|
+
|
|
13
|
+
### jp\_pot\_id
|
|
14
|
+
|
|
15
|
+
• **jp\_pot\_id**: `number`
|
|
16
|
+
|
|
17
|
+
ID of the jackpot pot
|
|
18
|
+
|
|
19
|
+
___
|
|
20
|
+
|
|
21
|
+
### current\_pot\_amount
|
|
22
|
+
|
|
23
|
+
• **current\_pot\_amount**: `number`
|
|
24
|
+
|
|
25
|
+
currency of the jackpot pot in the Jackput base currency
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### current\_pot\_amount\_user\_currency
|
|
30
|
+
|
|
31
|
+
• **current\_pot\_amount\_user\_currency**: `number`
|
|
32
|
+
|
|
33
|
+
currency of the jackpot pot in the user wallet currency
|
|
34
|
+
|
|
35
|
+
___
|
|
36
|
+
|
|
37
|
+
### explode\_date\_ts
|
|
38
|
+
|
|
39
|
+
• **explode\_date\_ts**: `number`
|
|
40
|
+
|
|
41
|
+
the date/time when this pot exploded
|