@smartico/public-api 0.0.274 → 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.
- package/dist/Jackpots/JackpotPot.d.ts +8 -10
- package/dist/MiniGames/SAWSpinErrorCode.d.ts +5 -1
- package/dist/Raffle/GetDrawRunResponse.d.ts +1 -0
- package/dist/Raffle/GetRaffleDrawRunsHistoryResponse.d.ts +1 -0
- package/dist/Raffle/GetRafflesResponse.d.ts +5 -0
- package/dist/Raffle/Raffle.d.ts +1 -1
- package/dist/Raffle/RaffleClaimPrizeResponse.d.ts +1 -0
- package/dist/Raffle/RafflePrize.d.ts +1 -1
- package/dist/Raffle/index.d.ts +1 -0
- package/dist/Store/BuyStoreItemErrorCode.d.ts +5 -1
- package/dist/WSAPI/WSAPITypes.d.ts +2 -2
- package/dist/index.js +25 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +24 -6
- package/dist/index.modern.mjs.map +1 -1
- package/docs/README.md +11 -128
- package/docs/classes/WSAPI.md +1 -1
- package/docs/enums/AchCustomSectionType.md +67 -0
- package/docs/enums/BuyStoreItemErrorCode.md +16 -0
- package/docs/enums/InboxCategories.md +19 -0
- package/docs/enums/JackPotTemparature.md +33 -0
- package/docs/enums/PrizeModifiers.md +49 -0
- package/docs/enums/SAWAcknowledgeTypeName.md +25 -0
- package/docs/enums/SAWAskForUsername.md +13 -0
- package/docs/enums/SAWGameLayout.md +13 -0
- package/docs/enums/SAWSpinErrorCode.md +16 -0
- package/docs/interfaces/JackpotPot.md +1 -4
- package/docs/interfaces/Raffle.md +1 -1
- package/docs/interfaces/RaffleDraw.md +1 -1
- package/docs/interfaces/RaffleDrawPublicMeta.md +65 -0
- package/docs/interfaces/RaffleDrawRun.md +1 -1
- package/docs/interfaces/RafflePrize.md +1 -1
- package/docs/interfaces/RafflePrizePublicMeta.md +25 -0
- package/docs/interfaces/RafflePublicMeta.md +59 -0
- package/docs/interfaces/SAWTemplateUI.md +284 -0
- package/docs/interfaces/TInboxMessage.md +1 -1
- package/docs/interfaces/TMiniGamePrize.md +2 -2
- package/docs/interfaces/TMiniGameTemplate.md +1 -1
- package/docs/interfaces/TUICustomSection.md +1 -1
- package/package.json +1 -1
- package/src/Jackpots/JackpotPot.ts +8 -10
- package/src/MiniGames/SAWSpinErrorCode.ts +4 -0
- package/src/Raffle/GetDrawRunResponse.ts +1 -1
- package/src/Raffle/GetRaffleDrawRunsHistoryResponse.ts +1 -0
- package/src/Raffle/GetRafflesResponse.ts +5 -0
- package/src/Raffle/Raffle.ts +1 -1
- package/src/Raffle/RaffleClaimPrizeResponse.ts +1 -1
- package/src/Raffle/RafflePrize.ts +1 -1
- package/src/Raffle/index.ts +1 -0
- package/src/SmarticoAPI.ts +2 -2
- package/src/Store/BuyStoreItemErrorCode.ts +4 -0
- package/src/WSAPI/WSAPITypes.ts +5 -3
- package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
- package/dist/Raffle/GetDrawResponse.d.ts +0 -5
- package/dist/SmarticoPublicAPI.d.ts +0 -23
- package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
- package/dist/Store/BuyShopItemRequest.d.ts +0 -4
- package/dist/Store/BuyShopItemResponse.d.ts +0 -4
- package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
- package/dist/Store/GetShopItemsResponse.d.ts +0 -5
- package/dist/Store/ShopCategory.d.ts +0 -5
- package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
- package/dist/Store/ShopItem.d.ts +0 -9
- package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
- package/dist/Store/ShopItemType.d.ts +0 -4
- package/dist/Store/StorItemPruchased.d.ts +0 -6
- package/dist/service/index.d.ts +0 -5
- package/dist/service/types/ErrorCodes.d.ts +0 -13
- package/dist/service/types/GRequest.d.ts +0 -16
- package/dist/service/types/GResponse.d.ts +0 -10
- package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
- package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
- package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
- package/dist/service/types/Game/GameInfo.d.ts +0 -9
- package/dist/service/types/Game/GamePick.d.ts +0 -90
- package/dist/service/types/Game/GameUtil.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
- package/dist/service/types/User/UserInfo.d.ts +0 -10
- package/dist/util/Util.d.ts +0 -51
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
# Interface: SAWTemplateUI
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
### skin
|
|
6
|
+
|
|
7
|
+
• **skin**: `string`
|
|
8
|
+
|
|
9
|
+
___
|
|
10
|
+
|
|
11
|
+
### name
|
|
12
|
+
|
|
13
|
+
• **name**: `string`
|
|
14
|
+
|
|
15
|
+
___
|
|
16
|
+
|
|
17
|
+
### description
|
|
18
|
+
|
|
19
|
+
• `Optional` **description**: `string`
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### over\_limit\_message
|
|
24
|
+
|
|
25
|
+
• `Optional` **over\_limit\_message**: `string`
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### hide\_prize\_names
|
|
30
|
+
|
|
31
|
+
• `Optional` **hide\_prize\_names**: `string`
|
|
32
|
+
|
|
33
|
+
___
|
|
34
|
+
|
|
35
|
+
### no\_attempts\_message
|
|
36
|
+
|
|
37
|
+
• `Optional` **no\_attempts\_message**: `string`
|
|
38
|
+
|
|
39
|
+
___
|
|
40
|
+
|
|
41
|
+
### thumbnail
|
|
42
|
+
|
|
43
|
+
• `Optional` **thumbnail**: `string`
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### sectors\_count
|
|
48
|
+
|
|
49
|
+
• **sectors\_count**: `number`
|
|
50
|
+
|
|
51
|
+
___
|
|
52
|
+
|
|
53
|
+
### priority
|
|
54
|
+
|
|
55
|
+
• **priority**: `number`
|
|
56
|
+
|
|
57
|
+
___
|
|
58
|
+
|
|
59
|
+
### flow\_builder\_only
|
|
60
|
+
|
|
61
|
+
• **flow\_builder\_only**: `boolean`
|
|
62
|
+
|
|
63
|
+
___
|
|
64
|
+
|
|
65
|
+
### background\_image
|
|
66
|
+
|
|
67
|
+
• `Optional` **background\_image**: `string`
|
|
68
|
+
|
|
69
|
+
___
|
|
70
|
+
|
|
71
|
+
### background\_image\_mobile
|
|
72
|
+
|
|
73
|
+
• `Optional` **background\_image\_mobile**: `string`
|
|
74
|
+
|
|
75
|
+
___
|
|
76
|
+
|
|
77
|
+
### background\_sound
|
|
78
|
+
|
|
79
|
+
• `Optional` **background\_sound**: `string`
|
|
80
|
+
|
|
81
|
+
___
|
|
82
|
+
|
|
83
|
+
### spin\_animation\_duration
|
|
84
|
+
|
|
85
|
+
• `Optional` **spin\_animation\_duration**: `number`
|
|
86
|
+
|
|
87
|
+
___
|
|
88
|
+
|
|
89
|
+
### wheel\_pointer\_rotation
|
|
90
|
+
|
|
91
|
+
• `Optional` **wheel\_pointer\_rotation**: `number`
|
|
92
|
+
|
|
93
|
+
___
|
|
94
|
+
|
|
95
|
+
### scratch\_logo
|
|
96
|
+
|
|
97
|
+
• `Optional` **scratch\_logo**: `string`
|
|
98
|
+
|
|
99
|
+
___
|
|
100
|
+
|
|
101
|
+
### scratch\_cover
|
|
102
|
+
|
|
103
|
+
• `Optional` **scratch\_cover**: `string`
|
|
104
|
+
|
|
105
|
+
___
|
|
106
|
+
|
|
107
|
+
### scratch\_bg\_desktop
|
|
108
|
+
|
|
109
|
+
• `Optional` **scratch\_bg\_desktop**: `string`
|
|
110
|
+
|
|
111
|
+
___
|
|
112
|
+
|
|
113
|
+
### scratch\_bg\_mobile
|
|
114
|
+
|
|
115
|
+
• `Optional` **scratch\_bg\_mobile**: `string`
|
|
116
|
+
|
|
117
|
+
___
|
|
118
|
+
|
|
119
|
+
### scratch\_cursor
|
|
120
|
+
|
|
121
|
+
• `Optional` **scratch\_cursor**: `string`
|
|
122
|
+
|
|
123
|
+
___
|
|
124
|
+
|
|
125
|
+
### custom\_css
|
|
126
|
+
|
|
127
|
+
• `Optional` **custom\_css**: `string`
|
|
128
|
+
|
|
129
|
+
___
|
|
130
|
+
|
|
131
|
+
### custom\_skin\_folder
|
|
132
|
+
|
|
133
|
+
• `Optional` **custom\_skin\_folder**: `string`
|
|
134
|
+
|
|
135
|
+
___
|
|
136
|
+
|
|
137
|
+
### jackpot\_symbol
|
|
138
|
+
|
|
139
|
+
• `Optional` **jackpot\_symbol**: `string`
|
|
140
|
+
|
|
141
|
+
___
|
|
142
|
+
|
|
143
|
+
### promo\_image
|
|
144
|
+
|
|
145
|
+
• `Optional` **promo\_image**: `string`
|
|
146
|
+
|
|
147
|
+
___
|
|
148
|
+
|
|
149
|
+
### promo\_text
|
|
150
|
+
|
|
151
|
+
• `Optional` **promo\_text**: `string`
|
|
152
|
+
|
|
153
|
+
___
|
|
154
|
+
|
|
155
|
+
### matchx\_banner
|
|
156
|
+
|
|
157
|
+
• `Optional` **matchx\_banner**: `string`
|
|
158
|
+
|
|
159
|
+
___
|
|
160
|
+
|
|
161
|
+
### matchx\_banner\_mobile
|
|
162
|
+
|
|
163
|
+
• `Optional` **matchx\_banner\_mobile**: `string`
|
|
164
|
+
|
|
165
|
+
___
|
|
166
|
+
|
|
167
|
+
### matchx\_seasonal\_ranking
|
|
168
|
+
|
|
169
|
+
• `Optional` **matchx\_seasonal\_ranking**: `boolean`
|
|
170
|
+
|
|
171
|
+
___
|
|
172
|
+
|
|
173
|
+
### matchx\_is\_completed
|
|
174
|
+
|
|
175
|
+
• `Optional` **matchx\_is\_completed**: `boolean`
|
|
176
|
+
|
|
177
|
+
___
|
|
178
|
+
|
|
179
|
+
### matchx\_general\_board\_users\_count
|
|
180
|
+
|
|
181
|
+
• `Optional` **matchx\_general\_board\_users\_count**: `number`
|
|
182
|
+
|
|
183
|
+
___
|
|
184
|
+
|
|
185
|
+
### matchx\_hide\_ranking
|
|
186
|
+
|
|
187
|
+
• `Optional` **matchx\_hide\_ranking**: `boolean`
|
|
188
|
+
|
|
189
|
+
___
|
|
190
|
+
|
|
191
|
+
### ask\_for\_username
|
|
192
|
+
|
|
193
|
+
• `Optional` **ask\_for\_username**: [`SAWAskForUsername`](../enums/SAWAskForUsername.md)
|
|
194
|
+
|
|
195
|
+
___
|
|
196
|
+
|
|
197
|
+
### show\_prize\_board
|
|
198
|
+
|
|
199
|
+
• `Optional` **show\_prize\_board**: `boolean`
|
|
200
|
+
|
|
201
|
+
___
|
|
202
|
+
|
|
203
|
+
### max\_spins\_period\_ms
|
|
204
|
+
|
|
205
|
+
• `Optional` **max\_spins\_period\_ms**: `number`
|
|
206
|
+
|
|
207
|
+
___
|
|
208
|
+
|
|
209
|
+
### show\_countdown\_for\_next\_availability
|
|
210
|
+
|
|
211
|
+
• `Optional` **show\_countdown\_for\_next\_availability**: `boolean`
|
|
212
|
+
|
|
213
|
+
___
|
|
214
|
+
|
|
215
|
+
### disable\_background\_music
|
|
216
|
+
|
|
217
|
+
• `Optional` **disable\_background\_music**: `boolean`
|
|
218
|
+
|
|
219
|
+
___
|
|
220
|
+
|
|
221
|
+
### custom\_section\_id
|
|
222
|
+
|
|
223
|
+
• `Optional` **custom\_section\_id**: `number`
|
|
224
|
+
|
|
225
|
+
___
|
|
226
|
+
|
|
227
|
+
### only\_in\_custom\_section
|
|
228
|
+
|
|
229
|
+
• `Optional` **only\_in\_custom\_section**: `boolean`
|
|
230
|
+
|
|
231
|
+
___
|
|
232
|
+
|
|
233
|
+
### custom\_data
|
|
234
|
+
|
|
235
|
+
• **custom\_data**: `any`
|
|
236
|
+
|
|
237
|
+
___
|
|
238
|
+
|
|
239
|
+
### placeholder1
|
|
240
|
+
|
|
241
|
+
• `Optional` **placeholder1**: `string`
|
|
242
|
+
|
|
243
|
+
___
|
|
244
|
+
|
|
245
|
+
### placeholder2
|
|
246
|
+
|
|
247
|
+
• `Optional` **placeholder2**: `string`
|
|
248
|
+
|
|
249
|
+
___
|
|
250
|
+
|
|
251
|
+
### prize\_drop\_template
|
|
252
|
+
|
|
253
|
+
• `Optional` **prize\_drop\_template**: `Object`
|
|
254
|
+
|
|
255
|
+
#### Type declaration
|
|
256
|
+
|
|
257
|
+
| Name | Type |
|
|
258
|
+
| :------ | :------ |
|
|
259
|
+
| `id` | `string` |
|
|
260
|
+
| `content` | `string` |
|
|
261
|
+
|
|
262
|
+
___
|
|
263
|
+
|
|
264
|
+
### game\_layout
|
|
265
|
+
|
|
266
|
+
• `Optional` **game\_layout**: [`SAWGameLayout`](../enums/SAWGameLayout.md)
|
|
267
|
+
|
|
268
|
+
___
|
|
269
|
+
|
|
270
|
+
### steps\_to\_finish\_game
|
|
271
|
+
|
|
272
|
+
• `Optional` **steps\_to\_finish\_game**: `number`
|
|
273
|
+
|
|
274
|
+
___
|
|
275
|
+
|
|
276
|
+
### wheel\_layout
|
|
277
|
+
|
|
278
|
+
• `Optional` **wheel\_layout**: `SAWWheelLayout`
|
|
279
|
+
|
|
280
|
+
___
|
|
281
|
+
|
|
282
|
+
### background\_music\_volume
|
|
283
|
+
|
|
284
|
+
• `Optional` **background\_music\_volume**: `number`
|
|
@@ -36,6 +36,6 @@ ___
|
|
|
36
36
|
|
|
37
37
|
### category\_id
|
|
38
38
|
|
|
39
|
-
• `Optional` **category\_id**: `InboxCategories`
|
|
39
|
+
• `Optional` **category\_id**: [`InboxCategories`](../enums/InboxCategories.md)
|
|
40
40
|
|
|
41
41
|
Category id per inbox message, can be part of System inboxes, Personal inboxes or General inbox messages
|
|
@@ -79,7 +79,7 @@ ___
|
|
|
79
79
|
|
|
80
80
|
### acknowledge\_type
|
|
81
81
|
|
|
82
|
-
• **acknowledge\_type**: `SAWAcknowledgeTypeName`
|
|
82
|
+
• **acknowledge\_type**: [`SAWAcknowledgeTypeName`](../enums/SAWAcknowledgeTypeName.md)
|
|
83
83
|
|
|
84
84
|
Type of acknowledge message for users
|
|
85
85
|
|
|
@@ -215,7 +215,7 @@ ___
|
|
|
215
215
|
|
|
216
216
|
### prize\_modifiers
|
|
217
217
|
|
|
218
|
-
• `Optional` **prize\_modifiers**: `PrizeModifiers`[]
|
|
218
|
+
• `Optional` **prize\_modifiers**: [`PrizeModifiers`](../enums/PrizeModifiers.md)[]
|
|
219
219
|
|
|
220
220
|
Prize modifiers that will multiply by 2x, 5x or 10x the current total. This will not affect the final Prize Amount that will be awarded.
|
|
221
221
|
|
|
@@ -44,7 +44,7 @@ ___
|
|
|
44
44
|
|
|
45
45
|
### section\_type\_id
|
|
46
46
|
|
|
47
|
-
• `Optional` **section\_type\_id**: `AchCustomSectionType`
|
|
47
|
+
• `Optional` **section\_type\_id**: [`AchCustomSectionType`](../enums/AchCustomSectionType.md)
|
|
48
48
|
|
|
49
49
|
The particular type of custom section, can be Missions, Tournaments, Lootbox and etc
|
|
50
50
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
enum JackPotTemparature {
|
|
2
|
-
/** cold */
|
|
2
|
+
/** cold, seed amount < current pot < (min amount - seed amount)/2 */
|
|
3
3
|
COLD = 0,
|
|
4
|
-
/** warm */
|
|
4
|
+
/** warm, (min amount - seed amount)/2 < current pot < min amount */
|
|
5
5
|
WARM = 1,
|
|
6
|
-
/** hot */
|
|
7
|
-
HOT = 2
|
|
6
|
+
/** hot, current pot > min amount, entered explosion range */
|
|
7
|
+
HOT = 2,
|
|
8
|
+
/** burning, current pot > min amount + 0.5 * (max amount - min amount). E.g. mid of allowed explosion range */
|
|
9
|
+
BURNING = 3,
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
interface JackpotPot {
|
|
@@ -18,12 +20,8 @@ interface JackpotPot {
|
|
|
18
20
|
current_pot_amount_user_currency: number;
|
|
19
21
|
/** the date/time when this pot exploded */
|
|
20
22
|
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
|
-
*/
|
|
23
|
+
/** current pot temperature */
|
|
26
24
|
current_pot_temperature: JackPotTemparature;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
export { JackpotPot };
|
|
27
|
+
export { JackpotPot, JackPotTemparature };
|
|
@@ -18,4 +18,8 @@ export enum SAWSpinErrorCode {
|
|
|
18
18
|
SAW_VISITOR_STOP_SPIN_REQUEST = -40001,
|
|
19
19
|
/** User is not in the segment */
|
|
20
20
|
SAW_NOT_IN_SEGMENT = 40009,
|
|
21
|
+
/** User doesn't have enough gems to play. In case buy in type for the game is 'gems' based */
|
|
22
|
+
SAW_NO_BALANCE_GEMS = 40011,
|
|
23
|
+
/** User doesn't have enough diamonds to play. In case buy in type for the game is 'diamonds' based */
|
|
24
|
+
SAW_NO_BALANCE_DIAMONDS = 40012,
|
|
21
25
|
}
|
|
@@ -6,6 +6,7 @@ export interface GetRaffleDrawRunsHistoryResponse extends ProtocolResponse {
|
|
|
6
6
|
draw_runs: RaffleDrawRun[];
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
/** @hidden */
|
|
9
10
|
export const drawRunHistoryTransform = (res: GetRaffleDrawRunsHistoryResponse): TRaffleDrawRun[] => {
|
|
10
11
|
return res.draw_runs.map((item) => {
|
|
11
12
|
return {
|
|
@@ -10,6 +10,7 @@ export interface GetRafflesResponse extends ProtocolResponse {
|
|
|
10
10
|
items: Raffle[];
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
/** @hidden */
|
|
13
14
|
export const ticketsTransform = (items: RaffleTicket[]): TRaffleTicket[] => {
|
|
14
15
|
return items.map((item) => {
|
|
15
16
|
return {
|
|
@@ -19,6 +20,7 @@ export const ticketsTransform = (items: RaffleTicket[]): TRaffleTicket[] => {
|
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
22
|
|
|
23
|
+
/** @hidden */
|
|
22
24
|
export const winnersTransform = (items: RafflePrizeWinner[]): TRafflePrizeWinner[] => {
|
|
23
25
|
return items.map((item) => {
|
|
24
26
|
return {
|
|
@@ -32,6 +34,7 @@ export const winnersTransform = (items: RafflePrizeWinner[]): TRafflePrizeWinner
|
|
|
32
34
|
});
|
|
33
35
|
};
|
|
34
36
|
|
|
37
|
+
/** @hidden */
|
|
35
38
|
export const prizeTransform = (items: RafflePrize[]): TRafflePrize[] => {
|
|
36
39
|
return items.map((item) => {
|
|
37
40
|
return {
|
|
@@ -54,6 +57,7 @@ export const prizeTransform = (items: RafflePrize[]): TRafflePrize[] => {
|
|
|
54
57
|
});
|
|
55
58
|
};
|
|
56
59
|
|
|
60
|
+
/** @hidden */
|
|
57
61
|
export const drawTransform = (items: RaffleDraw[]): TRaffleDraw[] => {
|
|
58
62
|
return items.map((item) => {
|
|
59
63
|
return {
|
|
@@ -82,6 +86,7 @@ export const drawTransform = (items: RaffleDraw[]): TRaffleDraw[] => {
|
|
|
82
86
|
});
|
|
83
87
|
};
|
|
84
88
|
|
|
89
|
+
/** @hidden */
|
|
85
90
|
export const raffleTransform = (items: Raffle[]): TRaffle[] => {
|
|
86
91
|
return items.map((item) => {
|
|
87
92
|
return {
|
package/src/Raffle/Raffle.ts
CHANGED
|
@@ -6,7 +6,7 @@ export interface RaffleClaimPrizeResponse extends ProtocolResponse {
|
|
|
6
6
|
errMsg?: string
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
/** @hidden */
|
|
10
10
|
export const raffleClaimPrizeResponseTransform = (info: RaffleClaimPrizeResponse): TransformedRaffleClaimPrizeResponse => {
|
|
11
11
|
return {
|
|
12
12
|
errorCode: info.errCode,
|
package/src/Raffle/index.ts
CHANGED
package/src/SmarticoAPI.ts
CHANGED
|
@@ -377,7 +377,7 @@ class SmarticoAPI {
|
|
|
377
377
|
ClassId.GET_TRANSLATIONS_REQUEST,
|
|
378
378
|
{
|
|
379
379
|
lang_code: DEFAULT_LANG_EN,
|
|
380
|
-
hash_code:
|
|
380
|
+
hash_code: null,
|
|
381
381
|
areas,
|
|
382
382
|
},
|
|
383
383
|
);
|
|
@@ -390,7 +390,7 @@ class SmarticoAPI {
|
|
|
390
390
|
ClassId.GET_TRANSLATIONS_REQUEST,
|
|
391
391
|
{
|
|
392
392
|
lang_code,
|
|
393
|
-
hash_code:
|
|
393
|
+
hash_code: null,
|
|
394
394
|
areas,
|
|
395
395
|
},
|
|
396
396
|
);
|
|
@@ -15,4 +15,8 @@ export enum BuyStoreItemErrorCode {
|
|
|
15
15
|
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006,
|
|
16
16
|
/** Failed to buy item because no more items are available */
|
|
17
17
|
SHOP_FAILED_POOL_EMPTY = 11009,
|
|
18
|
+
/** User doesn't have enough gems on balance */
|
|
19
|
+
SHOP_NO_BALANCE_GEMS = 11011,
|
|
20
|
+
/** User doesn't have enough diamonds on balance */
|
|
21
|
+
SHOP_NO_BALANCE_DIAMONDS = 11012,
|
|
18
22
|
}
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BuyStoreItemErrorCode } from '../Store';
|
|
2
|
-
import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode, SAWTemplate, SAWTemplateUI } from '../MiniGames';
|
|
3
|
-
import { TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from '../Tournaments';
|
|
4
|
-
import { AchCategory, AchievementAvailabilityStatus } from '../Missions';
|
|
2
|
+
import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWDoAknowledgeResponse, SAWGameLayout, SAWGameType, SAWGameTypeName, SAWPrize, SAWSpinErrorCode, SAWTemplate, SAWTemplateUI, SAWWheelLayout } from '../MiniGames';
|
|
3
|
+
import { Tournament, TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from '../Tournaments';
|
|
4
|
+
import { AchCategory, AchievementAvailabilityStatus, UserAchievement } from '../Missions';
|
|
5
5
|
import { LeaderBoardPeriodType } from '../Leaderboard';
|
|
6
6
|
import { AchCustomLayoutTheme, AchCustomSectionType, AchMissionsTabsOptions, AchOverviewMissionsFilter } from '../CustomSections';
|
|
7
7
|
import { BonusStatus , BonusTemplateMetaMap, BonusMetaMap} from '../Bonuses';
|
|
@@ -9,6 +9,7 @@ import { PrizeModifiers } from '../MiniGames/PrizeModifiers';
|
|
|
9
9
|
import { InboxCategories } from '../Inbox/InboxCategories';
|
|
10
10
|
import { RaffleDrawInstanceState, RaffleDrawTypeExecution } from '../Raffle';
|
|
11
11
|
import { JackPotWinner } from '../Jackpots/JackPotWinner';
|
|
12
|
+
import { GetRelatedAchTourResponse } from '../Missions/GetRelatedAchTourResponse';
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
type TRibbon = 'sale' | 'hot' | 'new' | 'vip' | string;
|
|
@@ -1189,3 +1190,4 @@ export interface TransformedRaffleClaimPrizeResponse {
|
|
|
1189
1190
|
}
|
|
1190
1191
|
|
|
1191
1192
|
|
|
1193
|
+
export { SAWAcknowledgeTypeName, PrizeModifiers, SAWTemplateUI, InboxCategories, AchCustomSectionType, SAWAskForUsername, SAWGameLayout }
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare enum MarketsValueType {
|
|
2
|
-
HomeTeam = "1",
|
|
3
|
-
AwayTeam = "2",
|
|
4
|
-
Draw = "x",
|
|
5
|
-
HomeTeamHomeTeam = "1/1",
|
|
6
|
-
HomeTeamDraw = "1/x",
|
|
7
|
-
HomeTeamAwayTeam = "1/2",
|
|
8
|
-
DrawHomeTeam = "x/1",
|
|
9
|
-
DrawDraw = "x/x",
|
|
10
|
-
DrawAwayTeam = "x/2",
|
|
11
|
-
AwayTeamHomeTeam = "2/1",
|
|
12
|
-
AwayTeamDraw = "2/x",
|
|
13
|
-
AwayTeamAwayTeam = "2/2",
|
|
14
|
-
Yes = "yes",
|
|
15
|
-
No = "no",
|
|
16
|
-
Odd = "odd",
|
|
17
|
-
Even = "even",
|
|
18
|
-
HomeOdd = "1/odd",
|
|
19
|
-
HomeEven = "1/even",
|
|
20
|
-
AwayOdd = "2/odd",
|
|
21
|
-
AwayEven = "2/even"
|
|
22
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ClassId } from "./Base/ClassId";
|
|
2
|
-
import { SAWGetTemplatesResponse } from './MiniGames/SAWGetTemplatesResponse';
|
|
3
|
-
import { SAWTemplate } from './MiniGames/SAWTemplate';
|
|
4
|
-
import { ILogger } from './ILogger';
|
|
5
|
-
interface IOptions {
|
|
6
|
-
logger?: ILogger;
|
|
7
|
-
logCIDs?: ClassId[];
|
|
8
|
-
logHTTPTiming?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare class SmarticoPublicApi {
|
|
11
|
-
private label_api_key;
|
|
12
|
-
private brand_api_key;
|
|
13
|
-
private publicUrl;
|
|
14
|
-
private logger;
|
|
15
|
-
private logCIDs;
|
|
16
|
-
private logHTTPTiming;
|
|
17
|
-
constructor(label_api_key: string, brand_api_key: string, options?: IOptions);
|
|
18
|
-
private send;
|
|
19
|
-
private buildMessage;
|
|
20
|
-
miniGamesGetTemplates(user_ext_id: string): Promise<SAWGetTemplatesResponse>;
|
|
21
|
-
miniGamesFormatTemplatesForWidget(templates: SAWTemplate[], pointsBalance: number): any[];
|
|
22
|
-
}
|
|
23
|
-
export { SmarticoPublicApi };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum BuyShopItemErrorCode {
|
|
2
|
-
FAILED_TO_BUY_SHOP_ITEM = 121,
|
|
3
|
-
SHOP_NO_BALANCE = 11000,
|
|
4
|
-
SHOP_WRONG_LABEL = 11001,
|
|
5
|
-
SHOP_FAILED_TO_BUY_BONUS = 11002,
|
|
6
|
-
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION = 11003,
|
|
7
|
-
SHOP_FAILED_TO_BUY_SHOP_ITEM_CONDITION_PURSHASE = 11004,
|
|
8
|
-
SHOP_FAILED_TO_BUY_MATCHING_BONUS = 11005,
|
|
9
|
-
SHOP_FAILED_MAX_BOUGHT_ITEMS_REACHED = 11006
|
|
10
|
-
}
|
package/dist/Store/ShopItem.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ShopItemPublicMeta } from "./ShopItemPublicMeta";
|
|
2
|
-
import { ShopItemType } from "./ShopItemType";
|
|
3
|
-
export interface ShopItem {
|
|
4
|
-
id: number;
|
|
5
|
-
itemTypeId: ShopItemType;
|
|
6
|
-
itemPublicMeta: ShopItemPublicMeta;
|
|
7
|
-
categoryIds?: number[];
|
|
8
|
-
canBuy?: boolean;
|
|
9
|
-
}
|
package/dist/service/index.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ErrorCodes, ErrorCodesGame } from './types/ErrorCodes';
|
|
2
|
-
import { GBaseRequest } from './types/GRequest';
|
|
3
|
-
import { GResponseBase, GResponse } from './types/GResponse';
|
|
4
|
-
import { SAWSpinErrorCode } from './types/SmarticoProto/SAW/SAWDoSpinResponse';
|
|
5
|
-
export { ErrorCodes, ErrorCodesGame, SAWSpinErrorCode, GBaseRequest, GResponseBase, GResponse, };
|