@smartico/public-api 0.0.141 → 0.0.143
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/README.md +14 -1
- package/dist/CustomSections/AchCustomSection.d.ts +27 -0
- package/dist/CustomSections/GetCustomSectionsRequest.d.ts +3 -0
- package/dist/CustomSections/GetCustomSectionsResponse.d.ts +7 -0
- package/dist/CustomSections/UICustomSection.d.ts +15 -0
- package/dist/CustomSections/index.d.ts +4 -0
- package/dist/Missions/AchievementPublicMeta.d.ts +1 -0
- package/dist/Missions/UserAchievement.d.ts +1 -0
- package/dist/OCache.d.ts +1 -0
- package/dist/SmarticoAPI.d.ts +17 -14
- package/dist/WSAPI/WSAPI.d.ts +270 -48
- package/dist/WSAPI/WSAPITypes.d.ts +25 -0
- package/dist/index.js +559 -214
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +382 -95
- package/dist/index.modern.mjs.map +1 -1
- package/docs/README.md +1 -0
- package/docs/classes/WSAPI.md +234 -27
- package/docs/enums/AchCustomLayoutTheme.md +27 -0
- package/docs/enums/AchCustomSectionType.md +43 -0
- package/docs/enums/AchMissionsTabsOptions.md +21 -0
- package/docs/enums/AchOverviewMissionsFilter.md +33 -0
- package/docs/interfaces/TUICustomSection.md +85 -0
- package/package.json +1 -1
- package/src/CustomSections/AchCustomSection.ts +30 -0
- package/src/CustomSections/GetCustomSectionsRequest.ts +5 -0
- package/src/CustomSections/GetCustomSectionsResponse.ts +7 -0
- package/src/CustomSections/UICustomSection.ts +34 -0
- package/src/CustomSections/index.ts +4 -0
- package/src/Level/GetLevelMapResponse.ts +1 -1
- package/src/Missions/AchievementPublicMeta.ts +1 -0
- package/src/Missions/UserAchievement.ts +3 -1
- package/src/OCache.ts +5 -0
- package/src/SmarticoAPI.ts +42 -34
- package/src/WSAPI/WSAPI.ts +296 -64
- package/src/WSAPI/WSAPITypes.ts +27 -0
package/docs/README.md
CHANGED
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
- [LeaderBoardUserT](interfaces/LeaderBoardUserT.md)
|
|
57
57
|
- [UserLevelExtraCountersT](interfaces/UserLevelExtraCountersT.md)
|
|
58
58
|
- [TSegmentCheckResult](interfaces/TSegmentCheckResult.md)
|
|
59
|
+
- [TTUICustomSection](interfaces/TUICustomSection.md)
|
|
59
60
|
|
|
60
61
|
## General API
|
|
61
62
|
|
package/docs/classes/WSAPI.md
CHANGED
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
▸ **getUserProfile**(): [`TUserProfile`](../interfaces/TUserProfile.md)
|
|
8
8
|
|
|
9
9
|
Returns information about current user
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
**Example**:
|
|
11
12
|
```
|
|
12
13
|
_smartico.api.getUserProfile().then((result) => {
|
|
13
14
|
console.log(result);
|
|
14
15
|
});
|
|
15
16
|
```
|
|
17
|
+
**Visitor mode: not supported**
|
|
16
18
|
|
|
17
19
|
#### Returns
|
|
18
20
|
|
|
@@ -25,13 +27,15 @@ ___
|
|
|
25
27
|
▸ **checkSegmentMatch**(`segment_id`): `Promise`<`boolean`\>
|
|
26
28
|
|
|
27
29
|
Check if user belongs to specific segments
|
|
28
|
-
Example
|
|
30
|
+
**Example**:
|
|
29
31
|
```
|
|
30
32
|
_smartico.api.checkSegmentMatch(1).then((result) => {
|
|
31
33
|
console.log(result);
|
|
32
34
|
});
|
|
33
35
|
```
|
|
34
36
|
|
|
37
|
+
**Visitor mode: not supported**
|
|
38
|
+
|
|
35
39
|
#### Parameters
|
|
36
40
|
|
|
37
41
|
| Name | Type |
|
|
@@ -49,12 +53,13 @@ ___
|
|
|
49
53
|
▸ **checkSegmentListMatch**(`segment_ids`): `Promise`<[`TSegmentCheckResult`](../interfaces/TSegmentCheckResult.md)[]\>
|
|
50
54
|
|
|
51
55
|
Check if user belongs to specific list of segments
|
|
52
|
-
Example
|
|
56
|
+
**Example**:
|
|
53
57
|
```
|
|
54
58
|
_smartico.api.checkSegmentListMatch([1, 2, 3]).then((result) => {
|
|
55
59
|
console.log(result);
|
|
56
60
|
});
|
|
57
61
|
```
|
|
62
|
+
**Visitor mode: not supported**
|
|
58
63
|
|
|
59
64
|
#### Parameters
|
|
60
65
|
|
|
@@ -73,10 +78,17 @@ ___
|
|
|
73
78
|
▸ **getLevels**(): `Promise`<[`TLevel`](../interfaces/TLevel.md)[]\>
|
|
74
79
|
|
|
75
80
|
Returns all the levels available the current user
|
|
76
|
-
Example
|
|
81
|
+
**Example**:
|
|
77
82
|
```
|
|
78
83
|
_smartico.api.getLevels().then((result) => {
|
|
79
|
-
|
|
84
|
+
console.log(result);
|
|
85
|
+
});
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**Example in the Visitor mode**:
|
|
89
|
+
```
|
|
90
|
+
_smartico.vapi('EN').getLevels().then((result) => {
|
|
91
|
+
console.log(result);
|
|
80
92
|
});
|
|
81
93
|
```
|
|
82
94
|
|
|
@@ -88,26 +100,33 @@ ___
|
|
|
88
100
|
|
|
89
101
|
### getMissions
|
|
90
102
|
|
|
91
|
-
▸ **getMissions**(
|
|
103
|
+
▸ **getMissions**(`«destructured»?`): `Promise`<[`TMissionOrBadge`](../interfaces/TMissionOrBadge.md)[]\>
|
|
92
104
|
|
|
93
105
|
Returns all the missions available the current user.
|
|
94
106
|
The returned missions are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
95
107
|
Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
96
108
|
The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it.
|
|
97
|
-
|
|
109
|
+
|
|
110
|
+
**Example**:
|
|
98
111
|
```
|
|
99
112
|
_smartico.api.getMissions().then((result) => {
|
|
100
|
-
|
|
113
|
+
console.log(result);
|
|
114
|
+
});
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Example in the Visitor mode**:
|
|
118
|
+
```
|
|
119
|
+
_smartico.vapi('EN').getMissions().then((result) => {
|
|
120
|
+
console.log(result);
|
|
101
121
|
});
|
|
102
122
|
```
|
|
103
|
-
/**
|
|
104
123
|
|
|
105
124
|
#### Parameters
|
|
106
125
|
|
|
107
126
|
| Name | Type |
|
|
108
127
|
| :------ | :------ |
|
|
109
|
-
|
|
|
110
|
-
| `
|
|
128
|
+
| `«destructured»` | `Object` |
|
|
129
|
+
| › `onUpdate?` | (`data`: [`TMissionOrBadge`](../interfaces/TMissionOrBadge.md)[]) => `void` |
|
|
111
130
|
|
|
112
131
|
#### Returns
|
|
113
132
|
|
|
@@ -121,6 +140,8 @@ ___
|
|
|
121
140
|
|
|
122
141
|
Returns all the badges available the current user
|
|
123
142
|
|
|
143
|
+
**Visitor mode: not supported**
|
|
144
|
+
|
|
124
145
|
#### Returns
|
|
125
146
|
|
|
126
147
|
`Promise`<[`TMissionOrBadge`](../interfaces/TMissionOrBadge.md)[]\>
|
|
@@ -134,13 +155,16 @@ ___
|
|
|
134
155
|
Returns the extra counters for the current user level.
|
|
135
156
|
These are counters that are configured for each Smartico client separatly by request.
|
|
136
157
|
For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
|
|
137
|
-
|
|
158
|
+
|
|
159
|
+
**Example**:
|
|
138
160
|
```
|
|
139
161
|
_smartico.api.getUserLevelExtraCounters().then((result) => {
|
|
140
162
|
console.log(result);
|
|
141
163
|
});
|
|
142
164
|
```
|
|
143
165
|
|
|
166
|
+
**Visitor mode: not supported**
|
|
167
|
+
|
|
144
168
|
#### Returns
|
|
145
169
|
|
|
146
170
|
`Promise`<[`UserLevelExtraCountersT`](../interfaces/UserLevelExtraCountersT.md)\>
|
|
@@ -152,11 +176,20 @@ ___
|
|
|
152
176
|
▸ **getStoreItems**(): `Promise`<[`TStoreItem`](../interfaces/TStoreItem.md)[]\>
|
|
153
177
|
|
|
154
178
|
Returns all the store items available the current user
|
|
155
|
-
|
|
179
|
+
|
|
180
|
+
**Example**:
|
|
156
181
|
```
|
|
157
182
|
_smartico.api.getStoreItems().then((result) => {
|
|
158
183
|
console.log(result);
|
|
159
184
|
});
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Example in the Visitor mode**:
|
|
188
|
+
```
|
|
189
|
+
_smartico.vapi('EN').getStoreItems().then((result) => {
|
|
190
|
+
console.log(result);
|
|
191
|
+
});
|
|
192
|
+
```
|
|
160
193
|
|
|
161
194
|
#### Returns
|
|
162
195
|
|
|
@@ -169,11 +202,14 @@ ___
|
|
|
169
202
|
▸ **buyStoreItem**(`item_id`): `Promise`<[`TBuyStoreItemResult`](../interfaces/TBuyStoreItemResult.md)\>
|
|
170
203
|
|
|
171
204
|
Buy the specific shop item by item_id. Returns the err_code in case of success or error.
|
|
172
|
-
Example
|
|
205
|
+
**Example**:
|
|
173
206
|
```
|
|
174
207
|
_smartico.api.buyStoreItem(1).then((result) => {
|
|
175
208
|
console.log(result);
|
|
176
209
|
});
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**Visitor mode: not supported**
|
|
177
213
|
|
|
178
214
|
#### Parameters
|
|
179
215
|
|
|
@@ -193,6 +229,20 @@ ___
|
|
|
193
229
|
|
|
194
230
|
Returns store categories
|
|
195
231
|
|
|
232
|
+
**Example**:
|
|
233
|
+
```
|
|
234
|
+
_smartico.api.getStoreCategories().then((result) => {
|
|
235
|
+
console.log(result);
|
|
236
|
+
});
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
**Example in the Visitor mode**:
|
|
240
|
+
```
|
|
241
|
+
_smartico.vapi('EN').getStoreCategories().then((result) => {
|
|
242
|
+
console.log(result);
|
|
243
|
+
});
|
|
244
|
+
```
|
|
245
|
+
|
|
196
246
|
#### Returns
|
|
197
247
|
|
|
198
248
|
`Promise`<[`TStoreCategory`](../interfaces/TStoreCategory.md)[]\>
|
|
@@ -206,13 +256,16 @@ ___
|
|
|
206
256
|
Returns purchased items based on the provided parameters. "Limit" and "offset" indicate the range of items to be fetched.
|
|
207
257
|
The maximum number of items per request is limited to 20.
|
|
208
258
|
You can leave this params empty and by default it will return list of purchased items ranging from 0 to 20.
|
|
209
|
-
|
|
259
|
+
|
|
260
|
+
**Example**:
|
|
210
261
|
```
|
|
211
262
|
_smartico.api.getStorePurchasedItems().then((result) => {
|
|
212
263
|
console.log(result);
|
|
213
264
|
});
|
|
214
265
|
```
|
|
215
266
|
|
|
267
|
+
**Visitor mode: not supported**
|
|
268
|
+
|
|
216
269
|
#### Parameters
|
|
217
270
|
|
|
218
271
|
| Name | Type |
|
|
@@ -234,25 +287,81 @@ ___
|
|
|
234
287
|
|
|
235
288
|
Returns missions & badges categories
|
|
236
289
|
|
|
290
|
+
**Example**:
|
|
291
|
+
```
|
|
292
|
+
_smartico.api.getAchCategories().then((result) => {
|
|
293
|
+
console.log(result);
|
|
294
|
+
});
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
**Example in the Visitor mode**:
|
|
298
|
+
```
|
|
299
|
+
_smartico.vapi('EN').getAchCategories().then((result) => {
|
|
300
|
+
console.log(result);
|
|
301
|
+
});
|
|
302
|
+
```
|
|
303
|
+
|
|
237
304
|
#### Returns
|
|
238
305
|
|
|
239
306
|
`Promise`<[`TAchCategory`](../interfaces/TAchCategory.md)[]\>
|
|
240
307
|
|
|
241
308
|
___
|
|
242
309
|
|
|
310
|
+
### getCustomSections
|
|
311
|
+
|
|
312
|
+
▸ **getCustomSections**(): `Promise`<[`TUICustomSection`](../interfaces/TUICustomSection.md)[]\>
|
|
313
|
+
|
|
314
|
+
Returns all custom sections available for the label
|
|
315
|
+
|
|
316
|
+
**Example**:
|
|
317
|
+
```
|
|
318
|
+
_smartico.api.getCustomSections().then((result) => {
|
|
319
|
+
console.log(result);
|
|
320
|
+
});
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
**Example in the Visitor mode**:
|
|
324
|
+
```
|
|
325
|
+
_smartico.vapi('EN').getCustomSections().then((result) => {
|
|
326
|
+
console.log(result);
|
|
327
|
+
});
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
#### Returns
|
|
331
|
+
|
|
332
|
+
`Promise`<[`TUICustomSection`](../interfaces/TUICustomSection.md)[]\>
|
|
333
|
+
|
|
334
|
+
___
|
|
335
|
+
|
|
336
|
+
|
|
243
337
|
### getMiniGames
|
|
244
338
|
|
|
245
|
-
▸ **getMiniGames**(
|
|
339
|
+
▸ **getMiniGames**(`«destructured»?`): `Promise`<[`TMiniGameTemplate`](../interfaces/TMiniGameTemplate.md)[]\>
|
|
246
340
|
|
|
247
|
-
|
|
248
|
-
|
|
341
|
+
Returns the list of mini-games available for user
|
|
342
|
+
The returned list of mini-games is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMiniGames with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
343
|
+
The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or wined prize is spin/jackpot and if max count of the available user spin equal one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
|
|
344
|
+
|
|
345
|
+
**Example**:
|
|
346
|
+
```
|
|
347
|
+
_smartico.api.getMiniGames().then((result) => {
|
|
348
|
+
console.log(result);
|
|
349
|
+
});
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
**Example in the Visitor mode**:
|
|
353
|
+
```
|
|
354
|
+
_smartico.vapi('EN').getMiniGames().then((result) => {
|
|
355
|
+
console.log(result);
|
|
356
|
+
});
|
|
357
|
+
```
|
|
249
358
|
|
|
250
359
|
#### Parameters
|
|
251
360
|
|
|
252
361
|
| Name | Type |
|
|
253
362
|
| :------ | :------ |
|
|
254
|
-
|
|
|
255
|
-
| `
|
|
363
|
+
| `«destructured»` | `Object` |
|
|
364
|
+
| › `onUpdate?` | (`data`: [`TMiniGameTemplate`](../interfaces/TMiniGameTemplate.md)[]) => `void` |
|
|
256
365
|
|
|
257
366
|
#### Returns
|
|
258
367
|
|
|
@@ -266,6 +375,8 @@ ___
|
|
|
266
375
|
|
|
267
376
|
Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
|
|
268
377
|
|
|
378
|
+
**Visitor mode: not supported**
|
|
379
|
+
|
|
269
380
|
#### Parameters
|
|
270
381
|
|
|
271
382
|
| Name | Type |
|
|
@@ -284,6 +395,8 @@ ___
|
|
|
284
395
|
|
|
285
396
|
Requests an opt-in for the specified mission_id. Returns the err_code.
|
|
286
397
|
|
|
398
|
+
**Visitor mode: not supported**
|
|
399
|
+
|
|
287
400
|
#### Parameters
|
|
288
401
|
|
|
289
402
|
| Name | Type |
|
|
@@ -302,6 +415,8 @@ ___
|
|
|
302
415
|
|
|
303
416
|
Request for claim reward for the specified mission id. Returns the err_code.
|
|
304
417
|
|
|
418
|
+
**Visitor mode: not supported**
|
|
419
|
+
|
|
305
420
|
#### Parameters
|
|
306
421
|
|
|
307
422
|
| Name | Type |
|
|
@@ -317,14 +432,32 @@ ___
|
|
|
317
432
|
|
|
318
433
|
### getTournamentsList
|
|
319
434
|
|
|
320
|
-
▸ **getTournamentsList**(
|
|
435
|
+
▸ **getTournamentsList**(`«destructured»?`): `Promise`<[`TTournament`](../interfaces/TTournament.md)[]\>
|
|
436
|
+
|
|
437
|
+
Returns all the active instances of tournaments
|
|
438
|
+
The returned list is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getTournamentsList with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
439
|
+
The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.
|
|
440
|
+
|
|
441
|
+
**Example**:
|
|
442
|
+
```
|
|
443
|
+
_smartico.api.getTournamentsList().then((result) => {
|
|
444
|
+
console.log(result);
|
|
445
|
+
});
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
**Example in the Visitor mode**:
|
|
449
|
+
```
|
|
450
|
+
_smartico.vapi('EN').getTournamentsList().then((result) => {
|
|
451
|
+
console.log(result);
|
|
452
|
+
});
|
|
453
|
+
```
|
|
321
454
|
|
|
322
455
|
#### Parameters
|
|
323
456
|
|
|
324
457
|
| Name | Type |
|
|
325
458
|
| :------ | :------ |
|
|
326
|
-
|
|
|
327
|
-
| `
|
|
459
|
+
| `«destructured»` | `Object` |
|
|
460
|
+
| › `onUpdate?` | (`data`: [`TTournament`](../interfaces/TTournament.md)[]) => `void` |
|
|
328
461
|
|
|
329
462
|
#### Returns
|
|
330
463
|
|
|
@@ -338,6 +471,28 @@ ___
|
|
|
338
471
|
|
|
339
472
|
Returns details information of specific tournament instance, the response will include tournament info and the leaderboard of players
|
|
340
473
|
|
|
474
|
+
**Example**:
|
|
475
|
+
```
|
|
476
|
+
_smartico.api.getTournamentsList().then((result) => {
|
|
477
|
+
if (result.length > 0) {
|
|
478
|
+
_smartico.api.getTournamentInstanceInfo(result[0].instance_id).then((result) => {
|
|
479
|
+
console.log(result);
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
**Example in the Visitor mode**:
|
|
486
|
+
```
|
|
487
|
+
_smartico.vapi('EN').getTournamentsList().then((result) => {
|
|
488
|
+
if (result.length > 0) {
|
|
489
|
+
_smartico.vapi('EN').getTournamentInstanceInfo(result[0].instance_id).then((result) => {
|
|
490
|
+
console.log(result);
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
```
|
|
495
|
+
|
|
341
496
|
#### Parameters
|
|
342
497
|
|
|
343
498
|
| Name | Type |
|
|
@@ -356,6 +511,8 @@ ___
|
|
|
356
511
|
|
|
357
512
|
Requests registration for the specified tournament instance. Returns the err_code.
|
|
358
513
|
|
|
514
|
+
**Visitor mode: not supported**
|
|
515
|
+
|
|
359
516
|
#### Parameters
|
|
360
517
|
|
|
361
518
|
| Name | Type |
|
|
@@ -375,6 +532,20 @@ ___
|
|
|
375
532
|
Returns the leaderboard for the current type (default is Daily). If getPreviousPeriod is passed as true, a leaderboard for the previous period for the current type will be returned.
|
|
376
533
|
For example, if the type is Weekly and getPreviousPeriod is true, a leaderboard for the previous week will be returned.
|
|
377
534
|
|
|
535
|
+
**Example**:
|
|
536
|
+
```
|
|
537
|
+
_smartico.api.getLeaderBoard(1).then((result) => {
|
|
538
|
+
console.log(result);
|
|
539
|
+
});
|
|
540
|
+
```
|
|
541
|
+
|
|
542
|
+
**Example in the Visitor mode**:
|
|
543
|
+
```
|
|
544
|
+
_smartico.vapi('EN').getLeaderBoard(1).then((result) => {
|
|
545
|
+
console.log(result);
|
|
546
|
+
});
|
|
547
|
+
```
|
|
548
|
+
|
|
378
549
|
#### Parameters
|
|
379
550
|
|
|
380
551
|
| Name | Type |
|
|
@@ -392,6 +563,16 @@ ___
|
|
|
392
563
|
|
|
393
564
|
▸ **getInboxMessages**(`params?`): `Promise`<[`TInboxMessage`](../interfaces/TInboxMessage.md)[]\>
|
|
394
565
|
|
|
566
|
+
Returns inbox messages based on the provided parameters. "From" and "to" indicate the range of messages to be fetched.
|
|
567
|
+
The maximum number of messages per request is limited to 20. An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
|
|
568
|
+
You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
|
|
569
|
+
This functions return list of messages without the body of the message.
|
|
570
|
+
To get the body of the message you need to call getInboxMessageBody function and pass the message guid contained in each message of this request.
|
|
571
|
+
All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
|
|
572
|
+
The "onUpdate" callback will be triggered when the user receives a new message. It will provide an updated list of messages, ranging from 0 to 20, to the onUpdate callback function.
|
|
573
|
+
|
|
574
|
+
**Visitor mode: not supported**
|
|
575
|
+
|
|
395
576
|
#### Parameters
|
|
396
577
|
|
|
397
578
|
| Name | Type |
|
|
@@ -414,6 +595,8 @@ ___
|
|
|
414
595
|
|
|
415
596
|
Returns the message body of the specified message guid.
|
|
416
597
|
|
|
598
|
+
**Visitor mode: not supported**
|
|
599
|
+
|
|
417
600
|
#### Parameters
|
|
418
601
|
|
|
419
602
|
| Name | Type |
|
|
@@ -432,6 +615,8 @@ ___
|
|
|
432
615
|
|
|
433
616
|
Requests to mark inbox message with specified guid as read
|
|
434
617
|
|
|
618
|
+
**Visitor mode: not supported**
|
|
619
|
+
|
|
435
620
|
#### Parameters
|
|
436
621
|
|
|
437
622
|
| Name | Type |
|
|
@@ -448,7 +633,9 @@ ___
|
|
|
448
633
|
|
|
449
634
|
▸ **markAllInboxMessagesAsRead**(): `Promise`<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
450
635
|
|
|
451
|
-
Requests to mark all inbox messages as
|
|
636
|
+
Requests to mark all inbox messages as rea
|
|
637
|
+
|
|
638
|
+
**Visitor mode: not supported**
|
|
452
639
|
|
|
453
640
|
#### Returns
|
|
454
641
|
|
|
@@ -462,6 +649,8 @@ ___
|
|
|
462
649
|
|
|
463
650
|
Requests to mark inbox message with specified guid as favorite. Pass mark true to add message to favorite and false to remove.
|
|
464
651
|
|
|
652
|
+
**Visitor mode: not supported**
|
|
653
|
+
|
|
465
654
|
#### Parameters
|
|
466
655
|
|
|
467
656
|
| Name | Type |
|
|
@@ -481,6 +670,8 @@ ___
|
|
|
481
670
|
|
|
482
671
|
Requests to delete inbox message
|
|
483
672
|
|
|
673
|
+
**Visitor mode: not supported**
|
|
674
|
+
|
|
484
675
|
#### Parameters
|
|
485
676
|
|
|
486
677
|
| Name | Type |
|
|
@@ -499,6 +690,8 @@ ___
|
|
|
499
690
|
|
|
500
691
|
Requests to delete all inbox messages
|
|
501
692
|
|
|
693
|
+
**Visitor mode: not supported**
|
|
694
|
+
|
|
502
695
|
#### Returns
|
|
503
696
|
|
|
504
697
|
`Promise`<[`InboxMarkMessageAction`](../interfaces/InboxMarkMessageAction.md)\>
|
|
@@ -531,13 +724,21 @@ Returns list of Jackpots that are active in the systen and matching to the filte
|
|
|
531
724
|
If filter is not provided, all active jackpots will be returned.
|
|
532
725
|
Filter can be used to get jackpots related to specific game or specific jackpot template.
|
|
533
726
|
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
|
|
534
|
-
|
|
727
|
+
|
|
728
|
+
**Example**:
|
|
535
729
|
```
|
|
536
730
|
_smartico.api.jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
|
|
537
731
|
console.log(result);
|
|
538
732
|
});
|
|
539
733
|
```
|
|
540
734
|
|
|
735
|
+
**Example in the Visitor mode**:
|
|
736
|
+
```
|
|
737
|
+
_smartico.vapi('EN').jackpotGet({ related_game_id: 'wooko-slot' }).then((result) => {
|
|
738
|
+
console.log(result);
|
|
739
|
+
});
|
|
740
|
+
```
|
|
741
|
+
|
|
541
742
|
#### Parameters
|
|
542
743
|
|
|
543
744
|
| Name | Type |
|
|
@@ -558,13 +759,16 @@ ___
|
|
|
558
759
|
|
|
559
760
|
Opt-in currently logged in user to the jackpot with the specified jp_template_id.
|
|
560
761
|
You may call jackpotGet method after doing optin to see that user is opted in to the jackpot.
|
|
561
|
-
|
|
762
|
+
|
|
763
|
+
**Example**:
|
|
562
764
|
```
|
|
563
765
|
_smartico.api.jackpotOptIn({ jp_template_id: 123 }).then((result) => {
|
|
564
766
|
console.log('Opted in to the jackpot');
|
|
565
767
|
});
|
|
566
768
|
```
|
|
567
769
|
|
|
770
|
+
**Visitor mode: not supported**
|
|
771
|
+
|
|
568
772
|
#### Parameters
|
|
569
773
|
|
|
570
774
|
| Name | Type |
|
|
@@ -584,13 +788,16 @@ ___
|
|
|
584
788
|
|
|
585
789
|
Opt-out currently logged in user from the jackpot with the specified jp_template_id.
|
|
586
790
|
You may call jackpotGet method after doing optout to see that user is not opted in to the jackpot.
|
|
587
|
-
|
|
791
|
+
|
|
792
|
+
**Example**:
|
|
588
793
|
```
|
|
589
794
|
_smartico.api.jackpotOptOut({ jp_template_id: 123 }).then((result) => {
|
|
590
795
|
console.log('Opted out from the jackpot');
|
|
591
796
|
});
|
|
592
797
|
```
|
|
593
798
|
|
|
799
|
+
**Visitor mode: not supported**
|
|
800
|
+
|
|
594
801
|
#### Parameters
|
|
595
802
|
|
|
596
803
|
| Name | Type |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Enumeration: AchCustomLayoutTheme
|
|
2
|
+
|
|
3
|
+
## Enumeration Members
|
|
4
|
+
|
|
5
|
+
### VALENTINES_LIGHT
|
|
6
|
+
|
|
7
|
+
• **VALENTINES_LIGHT** = ``valentines-light``
|
|
8
|
+
|
|
9
|
+
___
|
|
10
|
+
|
|
11
|
+
### VALENTINES_DARK
|
|
12
|
+
|
|
13
|
+
• **VALENTINES_DARK** = ``valentines-dark``
|
|
14
|
+
|
|
15
|
+
___
|
|
16
|
+
|
|
17
|
+
### EURO_2024
|
|
18
|
+
|
|
19
|
+
• **EURO_2024** = ``euro-2024``
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### GENERIC
|
|
24
|
+
|
|
25
|
+
• **GENERIC** = ``generic``
|
|
26
|
+
|
|
27
|
+
___
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
|
42
|
+
|
|
43
|
+
• **MATCH_X** = ``7``
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# Enumeration: AchOverviewMissionsFilter
|
|
2
|
+
|
|
3
|
+
## Enumeration Members
|
|
4
|
+
|
|
5
|
+
### ANY
|
|
6
|
+
|
|
7
|
+
• **ANY** = ``1``
|
|
8
|
+
|
|
9
|
+
___
|
|
10
|
+
|
|
11
|
+
### ALL_MISSIONS
|
|
12
|
+
|
|
13
|
+
• **ALL_MISSIONS** = ``2``
|
|
14
|
+
|
|
15
|
+
___
|
|
16
|
+
|
|
17
|
+
### ALL_EXCEPT_COMPLETED
|
|
18
|
+
|
|
19
|
+
• **ALL_EXCEPT_COMPLETED** = ``3``
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### ALL_EXCEPT_LOCKED
|
|
24
|
+
|
|
25
|
+
• **ALL_EXCEPT_LOCKED** = ``4``
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### ALL_EXCEPT_COMPLETED_AND_LOCKED
|
|
30
|
+
|
|
31
|
+
• **ALL_EXCEPT_COMPLETED_AND_LOCKED** = ``5``
|
|
32
|
+
|
|
33
|
+
___
|