@smartico/public-api 0.0.357 → 0.0.359
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/WSAPI/WSAPI.d.ts +24 -19
- package/dist/index.js +27 -20
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +27 -20
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/README.md +58 -3
- package/docs/api/classes/WSAPI.md +24 -22
- package/docs/api/enums/AchievementStatus.md +49 -0
- package/docs/api/enums/AchievementTaskType.md +13 -0
- package/docs/api/enums/AchievementType.md +13 -0
- package/docs/api/enums/ActivityTypeLimited.md +115 -0
- package/docs/api/enums/BadgesTimeLimitStates.md +49 -0
- package/docs/api/enums/InboxMessageType.md +55 -0
- package/docs/api/enums/InboxReadStatus.md +13 -0
- package/docs/api/enums/OpenLinksType.md +13 -0
- package/docs/api/enums/ScheduledMissionType.md +19 -0
- package/docs/api/enums/StoreItemPurchaseType.md +19 -0
- package/docs/api/enums/StoreItemType.md +37 -0
- package/docs/api/enums/StoreItemTypeName.md +43 -0
- package/docs/api/enums/TournamentInstanceStatus.md +43 -0
- package/docs/api/enums/TournamentRegistrationError.md +55 -0
- package/docs/api/enums/TournamentType.md +19 -0
- package/docs/api/interfaces/AchievementTaskPublicMeta.md +35 -0
- package/docs/api/interfaces/AffectsProgress.md +25 -0
- package/docs/api/interfaces/Bonus.md +2 -2
- package/docs/api/interfaces/BonusMetaMap-1.md +9 -0
- package/docs/api/interfaces/BonusMetaMap.md +0 -2
- package/docs/api/interfaces/BonusTemplateMetaMap-1.md +33 -0
- package/docs/api/interfaces/BonusTemplateMetaMap.md +0 -8
- package/docs/api/interfaces/GetCustomSectionsResponse.md +67 -0
- package/docs/api/interfaces/GetRelatedAchTourResponse.md +69 -0
- package/docs/api/interfaces/InboxMessageBody.md +2 -2
- package/docs/api/interfaces/StoreItem.md +2 -2
- package/docs/api/interfaces/StoreItemPublicMeta.md +127 -0
- package/docs/api/interfaces/TBonus.md +2 -2
- package/docs/api/interfaces/TMissionOrBadge.md +1 -1
- package/docs/api/interfaces/TTournamentRegistrationResult.md +1 -1
- package/docs/api/interfaces/Tournament.md +3 -3
- package/docs/api/interfaces/TournamentPrize.md +1 -1
- package/docs/api/interfaces/TournamentPublicMeta.md +115 -0
- package/docs/api/interfaces/UserAchievement.md +4 -4
- package/docs/api/interfaces/UserAchievementTask.md +3 -3
- package/package.json +1 -1
- package/src/Missions/MissionsUtils.ts +6 -3
- package/src/SmarticoAPI.ts +1 -1
- package/src/WSAPI/WSAPI.ts +29 -23
- package/tsconfig.json +23 -1
package/dist/WSAPI/WSAPI.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare class WSAPI {
|
|
|
21
21
|
* Pay attention that this method is synchronous and returns the user profile object immediately, not a promise.
|
|
22
22
|
* **Example**:
|
|
23
23
|
* ```
|
|
24
|
-
* var p = _smartico.api.getUserProfile);
|
|
24
|
+
* var p = _smartico.api.getUserProfile();
|
|
25
25
|
* console.log(p);
|
|
26
26
|
* ```
|
|
27
27
|
* **Visitor mode: not supported**
|
|
@@ -48,7 +48,7 @@ export declare class WSAPI {
|
|
|
48
48
|
* **Visitor mode: not supported**
|
|
49
49
|
*/
|
|
50
50
|
checkSegmentListMatch(segment_ids: number[]): Promise<TSegmentCheckResult[]>;
|
|
51
|
-
/** Returns all the levels available the current user
|
|
51
|
+
/** Returns all the levels available to the current user
|
|
52
52
|
* **Example**:
|
|
53
53
|
* ```
|
|
54
54
|
* _smartico.api.getLevels().then((result) => {
|
|
@@ -100,14 +100,14 @@ export declare class WSAPI {
|
|
|
100
100
|
onUpdate?: (data: TMissionOrBadge[]) => void;
|
|
101
101
|
}): Promise<TMissionOrBadge[]>;
|
|
102
102
|
/**
|
|
103
|
-
* Returns all the badges available the current user
|
|
103
|
+
* Returns all the badges available to the current user
|
|
104
104
|
*
|
|
105
105
|
* **Visitor mode: not supported**
|
|
106
106
|
*/
|
|
107
107
|
getBadges(): Promise<TMissionOrBadge[]>;
|
|
108
108
|
/**
|
|
109
109
|
* Returns all the bonuses for the current user
|
|
110
|
-
* The returned
|
|
110
|
+
* The returned bonuses are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
111
111
|
* Note that each time you call getBonuses with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
112
112
|
* The onUpdate callback will be called on bonus claimed and the updated bonuses will be passed to it.
|
|
113
113
|
*
|
|
@@ -127,7 +127,7 @@ export declare class WSAPI {
|
|
|
127
127
|
claimBonus(bonus_id: number): Promise<TClaimBonusResult>;
|
|
128
128
|
/**
|
|
129
129
|
* Returns the extra counters for the current user level.
|
|
130
|
-
* These are counters that are configured for each Smartico client
|
|
130
|
+
* These are counters that are configured for each Smartico client separately by request.
|
|
131
131
|
* For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
|
|
132
132
|
*
|
|
133
133
|
* **Example**:
|
|
@@ -142,7 +142,7 @@ export declare class WSAPI {
|
|
|
142
142
|
getUserLevelExtraCounters(): Promise<UserLevelExtraCountersT>;
|
|
143
143
|
/**
|
|
144
144
|
*
|
|
145
|
-
* Returns all the store items available the current user
|
|
145
|
+
* Returns all the store items available to the current user
|
|
146
146
|
* The returned store items are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
147
147
|
* Note that each time you call getStoreItems with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
148
148
|
* The onUpdate callback will be called on purchase of the store item.
|
|
@@ -259,7 +259,7 @@ export declare class WSAPI {
|
|
|
259
259
|
/**
|
|
260
260
|
* Returns the list of mini-games configured for the current user (not filtered by spin availability or Widget visibility).
|
|
261
261
|
* 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.
|
|
262
|
-
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or
|
|
262
|
+
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or won prize is spin/jackpot and if max count of the available user spins equals one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
|
|
263
263
|
*
|
|
264
264
|
* **Example**:
|
|
265
265
|
* ```
|
|
@@ -302,7 +302,7 @@ export declare class WSAPI {
|
|
|
302
302
|
/**
|
|
303
303
|
* Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
|
|
304
304
|
* After playMiniGame is called, you can call getMiniGames to get the list of mini-games.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 playMiniGame with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
305
|
-
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or
|
|
305
|
+
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or won prize is spin/jackpot and if max count of the available user spins equals one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
|
|
306
306
|
*
|
|
307
307
|
* **Example**:
|
|
308
308
|
* ```
|
|
@@ -329,7 +329,7 @@ export declare class WSAPI {
|
|
|
329
329
|
/**
|
|
330
330
|
* Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
|
|
331
331
|
* After playMiniGameBatch is called, you can call getMiniGames to get the list of mini-games. 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 playMiniGameBatch with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
332
|
-
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or
|
|
332
|
+
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or won prize is spin/jackpot and if max count of the available user spins equals one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
|
|
333
333
|
*
|
|
334
334
|
* **Example**:
|
|
335
335
|
* ```
|
|
@@ -340,7 +340,7 @@ export declare class WSAPI {
|
|
|
340
340
|
* **Visitor mode: not supported**
|
|
341
341
|
*/
|
|
342
342
|
playMiniGameBatch(template_id: number, spin_count: number, { onUpdate }?: {
|
|
343
|
-
onUpdate?: (data:
|
|
343
|
+
onUpdate?: (data: TMiniGameTemplate[]) => void;
|
|
344
344
|
}): Promise<TMiniGamePlayBatchResult[]>;
|
|
345
345
|
/**
|
|
346
346
|
* Requests an opt-in for the specified mission_id. Returns the err_code.
|
|
@@ -376,7 +376,7 @@ export declare class WSAPI {
|
|
|
376
376
|
onUpdate?: (data: TTournament[]) => void;
|
|
377
377
|
}): Promise<TTournament[]>;
|
|
378
378
|
/**
|
|
379
|
-
* Returns
|
|
379
|
+
* Returns detailed information for a specific tournament instance; the response includes tournament info and the leaderboard of players
|
|
380
380
|
*
|
|
381
381
|
* **Example**:
|
|
382
382
|
* ```
|
|
@@ -431,7 +431,7 @@ export declare class WSAPI {
|
|
|
431
431
|
* An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
|
|
432
432
|
* An indicator "read_status" can be passed to get only messages marked as read or unread.
|
|
433
433
|
* You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
|
|
434
|
-
* This
|
|
434
|
+
* This function returns a list of messages without the body of each message.
|
|
435
435
|
* 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.
|
|
436
436
|
* All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
|
|
437
437
|
* 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.
|
|
@@ -470,7 +470,7 @@ export declare class WSAPI {
|
|
|
470
470
|
*/
|
|
471
471
|
markInboxMessageAsRead(messageGuid: string): Promise<InboxMarkMessageAction>;
|
|
472
472
|
/**
|
|
473
|
-
* Requests to mark all inbox messages as
|
|
473
|
+
* Requests to mark all inbox messages as read
|
|
474
474
|
*
|
|
475
475
|
* **Visitor mode: not supported**
|
|
476
476
|
*/
|
|
@@ -529,7 +529,7 @@ export declare class WSAPI {
|
|
|
529
529
|
* ```
|
|
530
530
|
* _smartico.api.reportClickEvent({
|
|
531
531
|
* engagement_uid: 'abc123-def456',
|
|
532
|
-
* activityType: 31 // Inbox
|
|
532
|
+
* activityType: 31 // Inbox
|
|
533
533
|
* action: 'dp:gf_missions'
|
|
534
534
|
* });
|
|
535
535
|
* ```
|
|
@@ -899,7 +899,7 @@ export declare class WSAPI {
|
|
|
899
899
|
private notifyActivityLogUpdate;
|
|
900
900
|
private updateEntity;
|
|
901
901
|
private jackpotClearCache;
|
|
902
|
-
/** Returns list of Jackpots that are active in the
|
|
902
|
+
/** Returns list of Jackpots that are active in the system and matching to the filter definition.
|
|
903
903
|
* If filter is not provided, all active jackpots will be returned.
|
|
904
904
|
* Filter can be used to get jackpots related to specific game or specific jackpot template.
|
|
905
905
|
* 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
|
|
@@ -957,7 +957,9 @@ export declare class WSAPI {
|
|
|
957
957
|
jp_template_id: number;
|
|
958
958
|
}): Promise<JackpotsOptoutResponse>;
|
|
959
959
|
/**
|
|
960
|
-
* Returns
|
|
960
|
+
* Returns jackpot winners for the given `jp_template_id` (paginated on the server).
|
|
961
|
+
* Default page size on the wire is 20; use `limit`, `offset`, and repeated calls to load more.
|
|
962
|
+
* The full protocol response also includes `has_more`; this method returns only the `winners` array.
|
|
961
963
|
*
|
|
962
964
|
* **Example**:
|
|
963
965
|
* ```
|
|
@@ -970,6 +972,9 @@ export declare class WSAPI {
|
|
|
970
972
|
*
|
|
971
973
|
* **Visitor mode: not supported**
|
|
972
974
|
*
|
|
975
|
+
* @param params.jp_template_id - Jackpot template id (required; throws if missing)
|
|
976
|
+
* @param params.limit - Page size (server default 20 when omitted)
|
|
977
|
+
* @param params.offset - Offset into the winner list
|
|
973
978
|
*/
|
|
974
979
|
getJackpotWinners({ limit, offset, jp_template_id, }: {
|
|
975
980
|
limit?: number;
|
|
@@ -1073,7 +1078,7 @@ export declare class WSAPI {
|
|
|
1073
1078
|
* **Example**:
|
|
1074
1079
|
*
|
|
1075
1080
|
* ```javascript
|
|
1076
|
-
* _smartico.api.
|
|
1081
|
+
* _smartico.api.getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
|
|
1077
1082
|
* console.log(result);
|
|
1078
1083
|
* });
|
|
1079
1084
|
* ```
|
|
@@ -1081,7 +1086,7 @@ export declare class WSAPI {
|
|
|
1081
1086
|
* **Example in the Visitor mode**:
|
|
1082
1087
|
*
|
|
1083
1088
|
* ```javascript
|
|
1084
|
-
* _smartico.vapi('EN').
|
|
1089
|
+
* _smartico.vapi('EN').getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
|
|
1085
1090
|
* console.log(result);
|
|
1086
1091
|
* });
|
|
1087
1092
|
* ```
|
|
@@ -1092,7 +1097,7 @@ export declare class WSAPI {
|
|
|
1092
1097
|
draw_id?: number;
|
|
1093
1098
|
}): Promise<TRaffleDrawRun[]>;
|
|
1094
1099
|
/**
|
|
1095
|
-
* Returns
|
|
1100
|
+
* Returns `err_code` and `err_message` after the call; `err_code` 0 means the request succeeded.
|
|
1096
1101
|
*
|
|
1097
1102
|
*
|
|
1098
1103
|
* **Example**:
|
package/dist/index.js
CHANGED
|
@@ -1211,6 +1211,8 @@ exports.BadgesTimeLimitStates = void 0;
|
|
|
1211
1211
|
})(exports.BadgesTimeLimitStates || (exports.BadgesTimeLimitStates = {}));
|
|
1212
1212
|
|
|
1213
1213
|
var _MissionUtils;
|
|
1214
|
+
var USER_STATE_PARAMS_KEYS_GAMES = ['core_fav_game_top3', 'core_fav_game_type_top3', 'core_fav_game_provider_top3'];
|
|
1215
|
+
var USER_STATE_PARAMS_KEYS_BET_AMOUNT = ['core_recommended_deposit_amount', 'core_recommended_casino_bet_amount', 'casino_last_bet_amount', 'casino_last_bet_amount_real', 'casino_last_bet_amount_bonus', 'acc_last_deposit_amount'];
|
|
1214
1216
|
var MissionUtils = function MissionUtils() {};
|
|
1215
1217
|
_MissionUtils = MissionUtils;
|
|
1216
1218
|
MissionUtils.getAvailabilityStatus = function (mission) {
|
|
@@ -1379,7 +1381,7 @@ MissionUtils.replaceTagsFavMissionTask = function (_ref) {
|
|
|
1379
1381
|
userStateParamsKeys.forEach(function (k) {
|
|
1380
1382
|
var _userStateOperator$k;
|
|
1381
1383
|
var operator = (_userStateOperator$k = userStateOperator[k]) == null ? void 0 : _userStateOperator$k.op;
|
|
1382
|
-
if (k
|
|
1384
|
+
if (USER_STATE_PARAMS_KEYS_GAMES.includes(k)) {
|
|
1383
1385
|
if (operatorsMulti.includes(operator)) {
|
|
1384
1386
|
var _userStateParams$k;
|
|
1385
1387
|
var value = (_userStateParams$k = userStateParams[k]) == null ? void 0 : _userStateParams$k.filter(function (v) {
|
|
@@ -1404,7 +1406,7 @@ MissionUtils.replaceTagsFavMissionTask = function (_ref) {
|
|
|
1404
1406
|
}
|
|
1405
1407
|
}
|
|
1406
1408
|
}
|
|
1407
|
-
if (k
|
|
1409
|
+
if (USER_STATE_PARAMS_KEYS_BET_AMOUNT.includes(k)) {
|
|
1408
1410
|
suggestedValue = userStateParams[k];
|
|
1409
1411
|
if (suggestedValue) {
|
|
1410
1412
|
var currencyFromTheTask = userStateParams == null ? void 0 : userStateParams.core_wallet_currency;
|
|
@@ -2293,7 +2295,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2293
2295
|
* Pay attention that this method is synchronous and returns the user profile object immediately, not a promise.
|
|
2294
2296
|
* **Example**:
|
|
2295
2297
|
* ```
|
|
2296
|
-
* var p = _smartico.api.getUserProfile);
|
|
2298
|
+
* var p = _smartico.api.getUserProfile();
|
|
2297
2299
|
* console.log(p);
|
|
2298
2300
|
* ```
|
|
2299
2301
|
* **Visitor mode: not supported**
|
|
@@ -2351,7 +2353,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2351
2353
|
return Promise.reject(e);
|
|
2352
2354
|
}
|
|
2353
2355
|
}
|
|
2354
|
-
/** Returns all the levels available the current user
|
|
2356
|
+
/** Returns all the levels available to the current user
|
|
2355
2357
|
* **Example**:
|
|
2356
2358
|
* ```
|
|
2357
2359
|
* _smartico.api.getLevels().then((result) => {
|
|
@@ -2436,7 +2438,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2436
2438
|
}
|
|
2437
2439
|
}
|
|
2438
2440
|
/**
|
|
2439
|
-
* Returns all the badges available the current user
|
|
2441
|
+
* Returns all the badges available to the current user
|
|
2440
2442
|
*
|
|
2441
2443
|
* **Visitor mode: not supported**
|
|
2442
2444
|
*/
|
|
@@ -2453,7 +2455,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2453
2455
|
}
|
|
2454
2456
|
/**
|
|
2455
2457
|
* Returns all the bonuses for the current user
|
|
2456
|
-
* The returned
|
|
2458
|
+
* The returned bonuses are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
2457
2459
|
* Note that each time you call getBonuses with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
2458
2460
|
* The onUpdate callback will be called on bonus claimed and the updated bonuses will be passed to it.
|
|
2459
2461
|
*
|
|
@@ -2501,7 +2503,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2501
2503
|
}
|
|
2502
2504
|
/**
|
|
2503
2505
|
* Returns the extra counters for the current user level.
|
|
2504
|
-
* These are counters that are configured for each Smartico client
|
|
2506
|
+
* These are counters that are configured for each Smartico client separately by request.
|
|
2505
2507
|
* For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
|
|
2506
2508
|
*
|
|
2507
2509
|
* **Example**:
|
|
@@ -2526,7 +2528,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2526
2528
|
}
|
|
2527
2529
|
/**
|
|
2528
2530
|
*
|
|
2529
|
-
* Returns all the store items available the current user
|
|
2531
|
+
* Returns all the store items available to the current user
|
|
2530
2532
|
* The returned store items are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
2531
2533
|
* Note that each time you call getStoreItems with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
2532
2534
|
* The onUpdate callback will be called on purchase of the store item.
|
|
@@ -2713,7 +2715,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2713
2715
|
/**
|
|
2714
2716
|
* Returns the list of mini-games configured for the current user (not filtered by spin availability or Widget visibility).
|
|
2715
2717
|
* 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.
|
|
2716
|
-
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or
|
|
2718
|
+
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or won prize is spin/jackpot and if max count of the available user spins equals one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
|
|
2717
2719
|
*
|
|
2718
2720
|
* **Example**:
|
|
2719
2721
|
* ```
|
|
@@ -2778,7 +2780,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2778
2780
|
/**
|
|
2779
2781
|
* Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
|
|
2780
2782
|
* After playMiniGame is called, you can call getMiniGames to get the list of mini-games.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 playMiniGame with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
2781
|
-
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or
|
|
2783
|
+
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or won prize is spin/jackpot and if max count of the available user spins equals one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
|
|
2782
2784
|
*
|
|
2783
2785
|
* **Example**:
|
|
2784
2786
|
* ```
|
|
@@ -2832,7 +2834,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2832
2834
|
/**
|
|
2833
2835
|
* Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
|
|
2834
2836
|
* After playMiniGameBatch is called, you can call getMiniGames to get the list of mini-games. 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 playMiniGameBatch with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
2835
|
-
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or
|
|
2837
|
+
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or won prize is spin/jackpot and if max count of the available user spins equals one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback.
|
|
2836
2838
|
*
|
|
2837
2839
|
* **Example**:
|
|
2838
2840
|
* ```
|
|
@@ -2946,7 +2948,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
2946
2948
|
}
|
|
2947
2949
|
}
|
|
2948
2950
|
/**
|
|
2949
|
-
* Returns
|
|
2951
|
+
* Returns detailed information for a specific tournament instance; the response includes tournament info and the leaderboard of players
|
|
2950
2952
|
*
|
|
2951
2953
|
* **Example**:
|
|
2952
2954
|
* ```
|
|
@@ -3033,7 +3035,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
3033
3035
|
* An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
|
|
3034
3036
|
* An indicator "read_status" can be passed to get only messages marked as read or unread.
|
|
3035
3037
|
* You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
|
|
3036
|
-
* This
|
|
3038
|
+
* This function returns a list of messages without the body of each message.
|
|
3037
3039
|
* 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.
|
|
3038
3040
|
* All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
|
|
3039
3041
|
* 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.
|
|
@@ -3117,7 +3119,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
3117
3119
|
}
|
|
3118
3120
|
}
|
|
3119
3121
|
/**
|
|
3120
|
-
* Requests to mark all inbox messages as
|
|
3122
|
+
* Requests to mark all inbox messages as read
|
|
3121
3123
|
*
|
|
3122
3124
|
* **Visitor mode: not supported**
|
|
3123
3125
|
*/
|
|
@@ -3242,7 +3244,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
3242
3244
|
* ```
|
|
3243
3245
|
* _smartico.api.reportClickEvent({
|
|
3244
3246
|
* engagement_uid: 'abc123-def456',
|
|
3245
|
-
* activityType: 31 // Inbox
|
|
3247
|
+
* activityType: 31 // Inbox
|
|
3246
3248
|
* action: 'dp:gf_missions'
|
|
3247
3249
|
* });
|
|
3248
3250
|
* ```
|
|
@@ -3864,7 +3866,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
3864
3866
|
return Promise.reject(e);
|
|
3865
3867
|
}
|
|
3866
3868
|
}
|
|
3867
|
-
/** Returns list of Jackpots that are active in the
|
|
3869
|
+
/** Returns list of Jackpots that are active in the system and matching to the filter definition.
|
|
3868
3870
|
* If filter is not provided, all active jackpots will be returned.
|
|
3869
3871
|
* Filter can be used to get jackpots related to specific game or specific jackpot template.
|
|
3870
3872
|
* 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
|
|
@@ -4000,7 +4002,9 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
4000
4002
|
}
|
|
4001
4003
|
}
|
|
4002
4004
|
/**
|
|
4003
|
-
* Returns
|
|
4005
|
+
* Returns jackpot winners for the given `jp_template_id` (paginated on the server).
|
|
4006
|
+
* Default page size on the wire is 20; use `limit`, `offset`, and repeated calls to load more.
|
|
4007
|
+
* The full protocol response also includes `has_more`; this method returns only the `winners` array.
|
|
4004
4008
|
*
|
|
4005
4009
|
* **Example**:
|
|
4006
4010
|
* ```
|
|
@@ -4013,6 +4017,9 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
4013
4017
|
*
|
|
4014
4018
|
* **Visitor mode: not supported**
|
|
4015
4019
|
*
|
|
4020
|
+
* @param params.jp_template_id - Jackpot template id (required; throws if missing)
|
|
4021
|
+
* @param params.limit - Page size (server default 20 when omitted)
|
|
4022
|
+
* @param params.offset - Offset into the winner list
|
|
4016
4023
|
*/
|
|
4017
4024
|
;
|
|
4018
4025
|
_proto.getJackpotWinners = function getJackpotWinners(_ref13) {
|
|
@@ -4166,7 +4173,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
4166
4173
|
* **Example**:
|
|
4167
4174
|
*
|
|
4168
4175
|
* ```javascript
|
|
4169
|
-
* _smartico.api.
|
|
4176
|
+
* _smartico.api.getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
|
|
4170
4177
|
* console.log(result);
|
|
4171
4178
|
* });
|
|
4172
4179
|
* ```
|
|
@@ -4174,7 +4181,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
4174
4181
|
* **Example in the Visitor mode**:
|
|
4175
4182
|
*
|
|
4176
4183
|
* ```javascript
|
|
4177
|
-
* _smartico.vapi('EN').
|
|
4184
|
+
* _smartico.vapi('EN').getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
|
|
4178
4185
|
* console.log(result);
|
|
4179
4186
|
* });
|
|
4180
4187
|
* ```
|
|
@@ -4195,7 +4202,7 @@ var WSAPI = /*#__PURE__*/function () {
|
|
|
4195
4202
|
}
|
|
4196
4203
|
}
|
|
4197
4204
|
/**
|
|
4198
|
-
* Returns
|
|
4205
|
+
* Returns `err_code` and `err_message` after the call; `err_code` 0 means the request succeeded.
|
|
4199
4206
|
*
|
|
4200
4207
|
*
|
|
4201
4208
|
* **Example**:
|