@smartico/public-api 0.0.275 → 0.0.276

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.
Files changed (48) hide show
  1. package/dist/Jackpots/JackpotPot.d.ts +8 -10
  2. package/dist/Raffle/GetDrawRunResponse.d.ts +1 -0
  3. package/dist/Raffle/GetRaffleDrawRunsHistoryResponse.d.ts +1 -0
  4. package/dist/Raffle/GetRafflesResponse.d.ts +5 -0
  5. package/dist/Raffle/Raffle.d.ts +1 -1
  6. package/dist/Raffle/RaffleClaimPrizeResponse.d.ts +1 -0
  7. package/dist/Raffle/RafflePrize.d.ts +1 -1
  8. package/dist/Raffle/index.d.ts +1 -0
  9. package/dist/WSAPI/WSAPITypes.d.ts +2 -2
  10. package/dist/index.js +17 -7
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.modern.mjs +16 -6
  13. package/dist/index.modern.mjs.map +1 -1
  14. package/docs/README.md +11 -128
  15. package/docs/classes/WSAPI.md +1 -1
  16. package/docs/enums/AchCustomSectionType.md +67 -0
  17. package/docs/enums/BuyStoreItemErrorCode.md +2 -2
  18. package/docs/enums/InboxCategories.md +19 -0
  19. package/docs/enums/JackPotTemparature.md +33 -0
  20. package/docs/enums/PrizeModifiers.md +49 -0
  21. package/docs/enums/SAWAcknowledgeTypeName.md +25 -0
  22. package/docs/enums/SAWAskForUsername.md +13 -0
  23. package/docs/enums/SAWGameLayout.md +13 -0
  24. package/docs/enums/SAWSpinErrorCode.md +2 -2
  25. package/docs/interfaces/JackpotPot.md +1 -4
  26. package/docs/interfaces/Raffle.md +1 -1
  27. package/docs/interfaces/RaffleDraw.md +1 -1
  28. package/docs/interfaces/RaffleDrawPublicMeta.md +65 -0
  29. package/docs/interfaces/RaffleDrawRun.md +1 -1
  30. package/docs/interfaces/RafflePrize.md +1 -1
  31. package/docs/interfaces/RafflePrizePublicMeta.md +25 -0
  32. package/docs/interfaces/RafflePublicMeta.md +59 -0
  33. package/docs/interfaces/SAWTemplateUI.md +284 -0
  34. package/docs/interfaces/TInboxMessage.md +1 -1
  35. package/docs/interfaces/TMiniGamePrize.md +2 -2
  36. package/docs/interfaces/TMiniGameTemplate.md +1 -1
  37. package/docs/interfaces/TUICustomSection.md +1 -1
  38. package/package.json +1 -1
  39. package/src/Jackpots/JackpotPot.ts +8 -10
  40. package/src/Raffle/GetDrawRunResponse.ts +1 -1
  41. package/src/Raffle/GetRaffleDrawRunsHistoryResponse.ts +1 -0
  42. package/src/Raffle/GetRafflesResponse.ts +5 -0
  43. package/src/Raffle/Raffle.ts +1 -1
  44. package/src/Raffle/RaffleClaimPrizeResponse.ts +1 -1
  45. package/src/Raffle/RafflePrize.ts +1 -1
  46. package/src/Raffle/index.ts +1 -0
  47. package/src/SmarticoAPI.ts +2 -2
  48. package/src/WSAPI/WSAPITypes.ts +5 -3
package/docs/README.md CHANGED
@@ -2,10 +2,17 @@
2
2
 
3
3
  ## Enumerations
4
4
 
5
+ - [AchCustomSectionType](enums/AchCustomSectionType.md)
6
+ - [InboxCategories](enums/InboxCategories.md)
5
7
  - [JackpotContributionType](enums/JackpotContributionType.md)
8
+ - [JackPotTemparature](enums/JackPotTemparature.md)
6
9
  - [JackpotType](enums/JackpotType.md)
7
10
  - [LeaderBoardPeriodType](enums/LeaderBoardPeriodType.md)
11
+ - [PrizeModifiers](enums/PrizeModifiers.md)
12
+ - [SAWAcknowledgeTypeName](enums/SAWAcknowledgeTypeName.md)
13
+ - [SAWAskForUsername](enums/SAWAskForUsername.md)
8
14
  - [SAWBuyInTypeName](enums/SAWBuyInTypeName.md)
15
+ - [SAWGameLayout](enums/SAWGameLayout.md)
9
16
  - [SAWGameTypeName](enums/SAWGameTypeName.md)
10
17
  - [MiniGamePrizeTypeName](enums/MiniGamePrizeTypeName.md)
11
18
  - [SAWSpinErrorCode](enums/SAWSpinErrorCode.md)
@@ -40,17 +47,21 @@
40
47
  - [JackpotsOptinResponse](interfaces/JackpotsOptinResponse.md)
41
48
  - [JackpotsOptoutRequest](interfaces/JackpotsOptoutRequest.md)
42
49
  - [JackpotsOptoutResponse](interfaces/JackpotsOptoutResponse.md)
50
+ - [SAWTemplateUI](interfaces/SAWTemplateUI.md)
43
51
  - [GetDrawRunRequest](interfaces/GetDrawRunRequest.md)
44
52
  - [GetDrawRunResponse](interfaces/GetDrawRunResponse.md)
45
53
  - [GetRaffleDrawRunsHistoryRequest](interfaces/GetRaffleDrawRunsHistoryRequest.md)
46
54
  - [GetRaffleDrawRunsHistoryResponse](interfaces/GetRaffleDrawRunsHistoryResponse.md)
47
55
  - [GetRafflesRequest](interfaces/GetRafflesRequest.md)
48
56
  - [GetRafflesResponse](interfaces/GetRafflesResponse.md)
57
+ - [RafflePublicMeta](interfaces/RafflePublicMeta.md)
49
58
  - [Raffle](interfaces/Raffle.md)
50
59
  - [RaffleClaimPrizeRequest](interfaces/RaffleClaimPrizeRequest.md)
51
60
  - [RaffleClaimPrizeResponse](interfaces/RaffleClaimPrizeResponse.md)
52
61
  - [RaffleDraw](interfaces/RaffleDraw.md)
62
+ - [RaffleDrawPublicMeta](interfaces/RaffleDrawPublicMeta.md)
53
63
  - [RaffleDrawRun](interfaces/RaffleDrawRun.md)
64
+ - [RafflePrizePublicMeta](interfaces/RafflePrizePublicMeta.md)
54
65
  - [RafflePrize](interfaces/RafflePrize.md)
55
66
  - [RafflePrizeWinner](interfaces/RafflePrizeWinner.md)
56
67
  - [RaffleTicket](interfaces/RaffleTicket.md)
@@ -102,131 +113,3 @@
102
113
  ### TournamentRegistrationTypeName
103
114
 
104
115
  Ƭ **TournamentRegistrationTypeName**: ``"AUTO"`` \| ``"OPT_IN"`` \| ``"BUY_IN_POINTS"`` \| ``"MANUAL_APPROVAL"`` \| ``"REQUIRES_QUALIFICATION"`` \| ``"BUY_IN_GEMS"`` \| ``"BUY_IN_DIAMONDS"`` \| ``"UNKNOWN"``
105
-
106
- ## Functions
107
-
108
- ### drawRunTransform
109
-
110
- ▸ **drawRunTransform**(`res`): [`TRaffleDraw`](interfaces/TRaffleDraw.md)
111
-
112
- #### Parameters
113
-
114
- | Name | Type |
115
- | :------ | :------ |
116
- | `res` | [`GetDrawRunResponse`](interfaces/GetDrawRunResponse.md) |
117
-
118
- #### Returns
119
-
120
- [`TRaffleDraw`](interfaces/TRaffleDraw.md)
121
-
122
- ___
123
-
124
- ### drawRunHistoryTransform
125
-
126
- ▸ **drawRunHistoryTransform**(`res`): [`TRaffleDrawRun`](interfaces/TRaffleDrawRun.md)[]
127
-
128
- #### Parameters
129
-
130
- | Name | Type |
131
- | :------ | :------ |
132
- | `res` | [`GetRaffleDrawRunsHistoryResponse`](interfaces/GetRaffleDrawRunsHistoryResponse.md) |
133
-
134
- #### Returns
135
-
136
- [`TRaffleDrawRun`](interfaces/TRaffleDrawRun.md)[]
137
-
138
- ___
139
-
140
- ### ticketsTransform
141
-
142
- ▸ **ticketsTransform**(`items`): [`TRaffleTicket`](interfaces/TRaffleTicket.md)[]
143
-
144
- #### Parameters
145
-
146
- | Name | Type |
147
- | :------ | :------ |
148
- | `items` | [`RaffleTicket`](interfaces/RaffleTicket.md)[] |
149
-
150
- #### Returns
151
-
152
- [`TRaffleTicket`](interfaces/TRaffleTicket.md)[]
153
-
154
- ___
155
-
156
- ### winnersTransform
157
-
158
- ▸ **winnersTransform**(`items`): [`TRafflePrizeWinner`](interfaces/TRafflePrizeWinner.md)[]
159
-
160
- #### Parameters
161
-
162
- | Name | Type |
163
- | :------ | :------ |
164
- | `items` | [`RafflePrizeWinner`](interfaces/RafflePrizeWinner.md)[] |
165
-
166
- #### Returns
167
-
168
- [`TRafflePrizeWinner`](interfaces/TRafflePrizeWinner.md)[]
169
-
170
- ___
171
-
172
- ### prizeTransform
173
-
174
- ▸ **prizeTransform**(`items`): [`TRafflePrize`](interfaces/TRafflePrize.md)[]
175
-
176
- #### Parameters
177
-
178
- | Name | Type |
179
- | :------ | :------ |
180
- | `items` | [`RafflePrize`](interfaces/RafflePrize.md)[] |
181
-
182
- #### Returns
183
-
184
- [`TRafflePrize`](interfaces/TRafflePrize.md)[]
185
-
186
- ___
187
-
188
- ### drawTransform
189
-
190
- ▸ **drawTransform**(`items`): [`TRaffleDraw`](interfaces/TRaffleDraw.md)[]
191
-
192
- #### Parameters
193
-
194
- | Name | Type |
195
- | :------ | :------ |
196
- | `items` | [`RaffleDraw`](interfaces/RaffleDraw.md)[] |
197
-
198
- #### Returns
199
-
200
- [`TRaffleDraw`](interfaces/TRaffleDraw.md)[]
201
-
202
- ___
203
-
204
- ### raffleTransform
205
-
206
- ▸ **raffleTransform**(`items`): [`TRaffle`](interfaces/TRaffle.md)[]
207
-
208
- #### Parameters
209
-
210
- | Name | Type |
211
- | :------ | :------ |
212
- | `items` | [`Raffle`](interfaces/Raffle.md)[] |
213
-
214
- #### Returns
215
-
216
- [`TRaffle`](interfaces/TRaffle.md)[]
217
-
218
- ___
219
-
220
- ### raffleClaimPrizeResponseTransform
221
-
222
- ▸ **raffleClaimPrizeResponseTransform**(`info`): [`TransformedRaffleClaimPrizeResponse`](interfaces/TransformedRaffleClaimPrizeResponse.md)
223
-
224
- #### Parameters
225
-
226
- | Name | Type |
227
- | :------ | :------ |
228
- | `info` | [`RaffleClaimPrizeResponse`](interfaces/RaffleClaimPrizeResponse.md) |
229
-
230
- #### Returns
231
-
232
- [`TransformedRaffleClaimPrizeResponse`](interfaces/TransformedRaffleClaimPrizeResponse.md)
@@ -726,7 +726,7 @@ The "onUpdate" callback will be triggered when the user receives a new message.
726
726
  | `params.from?` | `number` |
727
727
  | `params.to?` | `number` |
728
728
  | `params.onlyFavorite?` | `boolean` |
729
- | `params.categoryId?` | `InboxCategories` |
729
+ | `params.categoryId?` | [`InboxCategories`](../enums/InboxCategories.md) |
730
730
  | `params.onUpdate?` | (`data`: [`TInboxMessage`](../interfaces/TInboxMessage.md)[]) => `void` |
731
731
 
732
732
  #### Returns
@@ -0,0 +1,67 @@
1
+ # Enumeration: AchCustomSectionType
2
+
3
+ ## Enumeration Members
4
+
5
+ ### HTML\_PAGE
6
+
7
+ • **HTML\_PAGE** = ``1``
8
+
9
+ ___
10
+
11
+ ### MISSIONS\_CATEGORY
12
+
13
+ • **MISSIONS\_CATEGORY** = ``2``
14
+
15
+ ___
16
+
17
+ ### TOURNAMENTS\_CATEGORY
18
+
19
+ • **TOURNAMENTS\_CATEGORY** = ``3``
20
+
21
+ ___
22
+
23
+ ### LEVELS
24
+
25
+ • **LEVELS** = ``4``
26
+
27
+ ___
28
+
29
+ ### MINI\_GAMES
30
+
31
+ • **MINI\_GAMES** = ``5``
32
+
33
+ ___
34
+
35
+ ### MISSION\_CUSTOM\_LAYOUT
36
+
37
+ • **MISSION\_CUSTOM\_LAYOUT** = ``6``
38
+
39
+ ___
40
+
41
+ ### MATCH\_X\_AND\_QUIZ
42
+
43
+ • **MATCH\_X\_AND\_QUIZ** = ``7``
44
+
45
+ ___
46
+
47
+ ### REDIRECT\_LINK
48
+
49
+ • **REDIRECT\_LINK** = ``9``
50
+
51
+ ___
52
+
53
+ ### LOOTBOX\_WEEKLY
54
+
55
+ • **LOOTBOX\_WEEKLY** = ``10``
56
+
57
+ ___
58
+
59
+ ### LOOTBOX\_CALENDAR\_DAYS
60
+
61
+ • **LOOTBOX\_CALENDAR\_DAYS** = ``11``
62
+
63
+ ___
64
+
65
+ ### TREASURE\_HUNT
66
+
67
+ • **TREASURE\_HUNT** = ``12``
@@ -70,7 +70,7 @@ ___
70
70
 
71
71
  • **SHOP\_NO\_BALANCE\_GEMS** = ``11011``
72
72
 
73
- Not enough gems to purchase this item.
73
+ User doesn't have enough gems on balance
74
74
 
75
75
  ___
76
76
 
@@ -78,4 +78,4 @@ ___
78
78
 
79
79
  • **SHOP\_NO\_BALANCE\_DIAMONDS** = ``11012``
80
80
 
81
- Not enough diamonds to purchase this item.
81
+ User doesn't have enough diamonds on balance
@@ -0,0 +1,19 @@
1
+ # Enumeration: InboxCategories
2
+
3
+ ## Enumeration Members
4
+
5
+ ### General
6
+
7
+ • **General** = ``0``
8
+
9
+ ___
10
+
11
+ ### Platform
12
+
13
+ • **Platform** = ``1``
14
+
15
+ ___
16
+
17
+ ### Personal
18
+
19
+ • **Personal** = ``2``
@@ -0,0 +1,33 @@
1
+ # Enumeration: JackPotTemparature
2
+
3
+ ## Enumeration Members
4
+
5
+ ### COLD
6
+
7
+ • **COLD** = ``0``
8
+
9
+ cold, seed amount < current pot < (min amount - seed amount)/2
10
+
11
+ ___
12
+
13
+ ### WARM
14
+
15
+ • **WARM** = ``1``
16
+
17
+ warm, (min amount - seed amount)/2 < current pot < min amount
18
+
19
+ ___
20
+
21
+ ### HOT
22
+
23
+ • **HOT** = ``2``
24
+
25
+ hot, current pot > min amount, entered explosion range
26
+
27
+ ___
28
+
29
+ ### BURNING
30
+
31
+ • **BURNING** = ``3``
32
+
33
+ burning, current pot > min amount + 0.5 * (max amount - min amount). E.g. mid of allowed explosion range
@@ -0,0 +1,49 @@
1
+ # Enumeration: PrizeModifiers
2
+
3
+ ## Enumeration Members
4
+
5
+ ### 2x
6
+
7
+ • **2x** = ``1``
8
+
9
+ ___
10
+
11
+ ### 5x
12
+
13
+ • **5x** = ``2``
14
+
15
+ ___
16
+
17
+ ### 10x
18
+
19
+ • **10x** = ``3``
20
+
21
+ ___
22
+
23
+ ### /2
24
+
25
+ • **/2** = ``4``
26
+
27
+ ___
28
+
29
+ ### /5
30
+
31
+ • **/5** = ``5``
32
+
33
+ ___
34
+
35
+ ### /10
36
+
37
+ • **/10** = ``6``
38
+
39
+ ___
40
+
41
+ ### 0x
42
+
43
+ • **0x** = ``7``
44
+
45
+ ___
46
+
47
+ ### reset
48
+
49
+ • **reset** = ``8``
@@ -0,0 +1,25 @@
1
+ # Enumeration: SAWAcknowledgeTypeName
2
+
3
+ ## Enumeration Members
4
+
5
+ ### Silent
6
+
7
+ • **Silent** = ``"silent"``
8
+
9
+ ___
10
+
11
+ ### QuickMessage
12
+
13
+ • **QuickMessage** = ``"quick-message"``
14
+
15
+ ___
16
+
17
+ ### FullMessage
18
+
19
+ • **FullMessage** = ``"full-message"``
20
+
21
+ ___
22
+
23
+ ### ExplicityAcknowledge
24
+
25
+ • **ExplicityAcknowledge** = ``"explicity-acknowledge"``
@@ -0,0 +1,13 @@
1
+ # Enumeration: SAWAskForUsername
2
+
3
+ ## Enumeration Members
4
+
5
+ ### NOASK
6
+
7
+ • **NOASK** = ``"no-ask"``
8
+
9
+ ___
10
+
11
+ ### ONSUMBIT
12
+
13
+ • **ONSUMBIT** = ``"on-submit"``
@@ -0,0 +1,13 @@
1
+ # Enumeration: SAWGameLayout
2
+
3
+ ## Enumeration Members
4
+
5
+ ### Horizontal
6
+
7
+ • **Horizontal** = ``1``
8
+
9
+ ___
10
+
11
+ ### VerticalMap
12
+
13
+ • **VerticalMap** = ``2``
@@ -70,7 +70,7 @@ ___
70
70
 
71
71
  • **SAW\_NO\_BALANCE\_GEMS** = ``40011``
72
72
 
73
- Not enough gems to spin
73
+ User doesn't have enough gems to play. In case buy in type for the game is 'gems' based
74
74
 
75
75
  ___
76
76
 
@@ -78,4 +78,4 @@ ___
78
78
 
79
79
  • **SAW\_NO\_BALANCE\_DIAMONDS** = ``40012``
80
80
 
81
- Not enough diamonds to spin
81
+ User doesn't have enough diamonds to play. In case buy in type for the game is 'diamonds' based
@@ -44,9 +44,6 @@ ___
44
44
 
45
45
  ### current\_pot\_temperature
46
46
 
47
- • **current\_pot\_temperature**: `JackPotTemparature`
47
+ • **current\_pot\_temperature**: [`JackPotTemparature`](../enums/JackPotTemparature.md)
48
48
 
49
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
@@ -12,7 +12,7 @@ ___
12
12
 
13
13
  ### public\_meta
14
14
 
15
- • **public\_meta**: `RafflePublicMeta`
15
+ • **public\_meta**: [`RafflePublicMeta`](RafflePublicMeta.md)
16
16
 
17
17
  Meta information about raffle for the presentation on UI
18
18
 
@@ -13,7 +13,7 @@ ___
13
13
 
14
14
  ### public\_meta
15
15
 
16
- • **public\_meta**: `RaffleDrawPublicMeta`
16
+ • **public\_meta**: [`RaffleDrawPublicMeta`](RaffleDrawPublicMeta.md)
17
17
 
18
18
  Meta information of the Draw for the presentaiton in UI
19
19
 
@@ -0,0 +1,65 @@
1
+ # Interface: RaffleDrawPublicMeta
2
+
3
+ ## Properties
4
+
5
+ ### name
6
+
7
+ • **name**: `string`
8
+
9
+ Name of the draw, e.g. 'Daily draw'
10
+
11
+ ___
12
+
13
+ ### description
14
+
15
+ • **description**: `string`
16
+
17
+ Description of the draw
18
+
19
+ ___
20
+
21
+ ### image\_url
22
+
23
+ • **image\_url**: `string`
24
+
25
+ URL of the image that represents the draw
26
+
27
+ ___
28
+
29
+ ### image\_url\_mobile
30
+
31
+ • **image\_url\_mobile**: `string`
32
+
33
+ URL of the moible image that represents the draw
34
+
35
+ ___
36
+
37
+ ### icon\_url
38
+
39
+ • **icon\_url**: `string`
40
+
41
+ URL of the icon that represents the draw
42
+
43
+ ___
44
+
45
+ ### background\_image\_url
46
+
47
+ • **background\_image\_url**: `string`
48
+
49
+ URL of the background image that will be used in the draw list item
50
+
51
+ ___
52
+
53
+ ### background\_image\_url\_mobile
54
+
55
+ • **background\_image\_url\_mobile**: `string`
56
+
57
+ URL of the moible background image that will be used in the draw list item
58
+
59
+ ___
60
+
61
+ ### is\_grand
62
+
63
+ • **is\_grand**: `boolean`
64
+
65
+ Show if the draw is grand and is marked as special
@@ -21,7 +21,7 @@ ___
21
21
 
22
22
  ### public\_meta
23
23
 
24
- • **public\_meta**: `RaffleDrawPublicMeta`
24
+ • **public\_meta**: [`RaffleDrawPublicMeta`](RaffleDrawPublicMeta.md)
25
25
 
26
26
  Meta information of the Draw for the presentaiton in UI
27
27
 
@@ -14,7 +14,7 @@ ___
14
14
 
15
15
  ### public\_meta
16
16
 
17
- • **public\_meta**: `RafflePrizePublicMeta`
17
+ • **public\_meta**: [`RafflePrizePublicMeta`](RafflePrizePublicMeta.md)
18
18
 
19
19
  Meta information about the prize for presentation in the UI.
20
20
 
@@ -0,0 +1,25 @@
1
+ # Interface: RafflePrizePublicMeta
2
+
3
+ ## Properties
4
+
5
+ ### name
6
+
7
+ • **name**: `string`
8
+
9
+ Name of the prize
10
+
11
+ ___
12
+
13
+ ### description
14
+
15
+ • **description**: `string`
16
+
17
+ Description of the prize
18
+
19
+ ___
20
+
21
+ ### image\_url
22
+
23
+ • **image\_url**: `string`
24
+
25
+ URL of the image that represents the prize
@@ -0,0 +1,59 @@
1
+ # Interface: RafflePublicMeta
2
+
3
+ ## Properties
4
+
5
+ ### name
6
+
7
+ • **name**: `string`
8
+
9
+ Name of the raffle
10
+
11
+ ___
12
+
13
+ ### description
14
+
15
+ • **description**: `string`
16
+
17
+ Description of the raffle
18
+
19
+ ___
20
+
21
+ ### custom\_section\_id
22
+
23
+ • **custom\_section\_id**: `number`
24
+
25
+ ID of the custom section that is linked to the raffle in the Gamification widget
26
+
27
+ ___
28
+
29
+ ### image\_url
30
+
31
+ • **image\_url**: `string`
32
+
33
+ URL of the image that represents the raffle
34
+
35
+ ___
36
+
37
+ ### image\_url\_mobile
38
+
39
+ • **image\_url\_mobile**: `string`
40
+
41
+ URL of the mobile image that represents the raffle
42
+
43
+ ___
44
+
45
+ ### hint\_text
46
+
47
+ • **hint\_text**: `string`
48
+
49
+ Text for Terms and Conditions
50
+
51
+ ___
52
+
53
+ ### custom\_data
54
+
55
+ • **custom\_data**: `string`
56
+
57
+ Custom data as string or JSON string that can be used in API to build custom UI
58
+ You can request from Smartico to define fields for your specific case that will be managed from Smartico BackOffice
59
+ Read more here - https://help.smartico.ai/welcome/products/general-concepts/custom-fields-attributes