@smartico/public-api 0.0.356 → 0.0.358

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 (47) hide show
  1. package/README.md +33 -8
  2. package/dist/WSAPI/WSAPI.d.ts +50 -45
  3. package/dist/index.js +49 -44
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.modern.mjs +49 -44
  6. package/dist/index.modern.mjs.map +1 -1
  7. package/docs/api/README.md +58 -3
  8. package/docs/api/classes/WSAPI.md +43 -41
  9. package/docs/api/enums/AchievementStatus.md +49 -0
  10. package/docs/api/enums/AchievementTaskType.md +13 -0
  11. package/docs/api/enums/AchievementType.md +13 -0
  12. package/docs/api/enums/ActivityTypeLimited.md +115 -0
  13. package/docs/api/enums/BadgesTimeLimitStates.md +49 -0
  14. package/docs/api/enums/InboxMessageType.md +55 -0
  15. package/docs/api/enums/InboxReadStatus.md +13 -0
  16. package/docs/api/enums/OpenLinksType.md +13 -0
  17. package/docs/api/enums/ScheduledMissionType.md +19 -0
  18. package/docs/api/enums/StoreItemPurchaseType.md +19 -0
  19. package/docs/api/enums/StoreItemType.md +37 -0
  20. package/docs/api/enums/StoreItemTypeName.md +43 -0
  21. package/docs/api/enums/TournamentInstanceStatus.md +43 -0
  22. package/docs/api/enums/TournamentRegistrationError.md +55 -0
  23. package/docs/api/enums/TournamentType.md +19 -0
  24. package/docs/api/interfaces/AchievementTaskPublicMeta.md +35 -0
  25. package/docs/api/interfaces/AffectsProgress.md +25 -0
  26. package/docs/api/interfaces/Bonus.md +2 -2
  27. package/docs/api/interfaces/BonusMetaMap-1.md +9 -0
  28. package/docs/api/interfaces/BonusMetaMap.md +0 -2
  29. package/docs/api/interfaces/BonusTemplateMetaMap-1.md +33 -0
  30. package/docs/api/interfaces/BonusTemplateMetaMap.md +0 -8
  31. package/docs/api/interfaces/GetCustomSectionsResponse.md +67 -0
  32. package/docs/api/interfaces/GetRelatedAchTourResponse.md +69 -0
  33. package/docs/api/interfaces/InboxMessageBody.md +2 -2
  34. package/docs/api/interfaces/StoreItem.md +2 -2
  35. package/docs/api/interfaces/StoreItemPublicMeta.md +127 -0
  36. package/docs/api/interfaces/TBonus.md +2 -2
  37. package/docs/api/interfaces/TMissionOrBadge.md +1 -1
  38. package/docs/api/interfaces/TTournamentRegistrationResult.md +1 -1
  39. package/docs/api/interfaces/Tournament.md +3 -3
  40. package/docs/api/interfaces/TournamentPrize.md +1 -1
  41. package/docs/api/interfaces/TournamentPublicMeta.md +115 -0
  42. package/docs/api/interfaces/UserAchievement.md +4 -4
  43. package/docs/api/interfaces/UserAchievementTask.md +3 -3
  44. package/package.json +1 -1
  45. package/src/SmarticoAPI.ts +1 -1
  46. package/src/WSAPI/WSAPI.ts +55 -49
  47. package/tsconfig.json +23 -1
@@ -2260,7 +2260,7 @@ class WSAPI {
2260
2260
  * Pay attention that this method is synchronous and returns the user profile object immediately, not a promise.
2261
2261
  * **Example**:
2262
2262
  * ```
2263
- * var p = _smartico.api.getUserProfile);
2263
+ * var p = _smartico.api.getUserProfile();
2264
2264
  * console.log(p);
2265
2265
  * ```
2266
2266
  * **Visitor mode: not supported**
@@ -2304,7 +2304,7 @@ class WSAPI {
2304
2304
  async checkSegmentListMatch(segment_ids) {
2305
2305
  return await this.api.coreCheckSegments(this.userExtId, Array.isArray(segment_ids) ? segment_ids : [segment_ids]);
2306
2306
  }
2307
- /** Returns all the levels available the current user
2307
+ /** Returns all the levels available to the current user
2308
2308
  * **Example**:
2309
2309
  * ```
2310
2310
  * _smartico.api.getLevels().then((result) => {
@@ -2365,7 +2365,7 @@ class WSAPI {
2365
2365
  return OCache.use(onUpdateContextKey.Missions, ECacheContext.WSAPI, () => this.api.missionsGetItemsT(this.userExtId), CACHE_DATA_SEC);
2366
2366
  }
2367
2367
  /**
2368
- * Returns all the badges available the current user
2368
+ * Returns all the badges available to the current user
2369
2369
  *
2370
2370
  * **Visitor mode: not supported**
2371
2371
  */
@@ -2374,7 +2374,7 @@ class WSAPI {
2374
2374
  }
2375
2375
  /**
2376
2376
  * Returns all the bonuses for the current user
2377
- * The returned bonuss are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
2377
+ * The returned bonuses are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
2378
2378
  * Note that each time you call getBonuses with a new onUpdate callback, the old one will be overwritten by the new one.
2379
2379
  * The onUpdate callback will be called on bonus claimed and the updated bonuses will be passed to it.
2380
2380
  *
@@ -2407,7 +2407,7 @@ class WSAPI {
2407
2407
  }
2408
2408
  /**
2409
2409
  * Returns the extra counters for the current user level.
2410
- * These are counters that are configured for each Smartico client separatly by request.
2410
+ * These are counters that are configured for each Smartico client separately by request.
2411
2411
  * For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
2412
2412
  *
2413
2413
  * **Example**:
@@ -2424,7 +2424,7 @@ class WSAPI {
2424
2424
  }
2425
2425
  /**
2426
2426
  *
2427
- * Returns all the store items available the current user
2427
+ * Returns all the store items available to the current user
2428
2428
  * The returned store items are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
2429
2429
  * Note that each time you call getStoreItems with a new onUpdate callback, the old one will be overwritten by the new one.
2430
2430
  * The onUpdate callback will be called on purchase of the store item.
@@ -2564,7 +2564,7 @@ class WSAPI {
2564
2564
  /**
2565
2565
  * Returns the list of mini-games configured for the current user (not filtered by spin availability or Widget visibility).
2566
2566
  * 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.
2567
- * 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.
2567
+ * 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.
2568
2568
  *
2569
2569
  * **Example**:
2570
2570
  * ```
@@ -2614,7 +2614,7 @@ class WSAPI {
2614
2614
  /**
2615
2615
  * Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
2616
2616
  * 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.
2617
- * 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.
2617
+ * 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.
2618
2618
  *
2619
2619
  * **Example**:
2620
2620
  * ```
@@ -2655,7 +2655,7 @@ class WSAPI {
2655
2655
  /**
2656
2656
  * Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
2657
2657
  * 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.
2658
- * 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.
2658
+ * 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.
2659
2659
  *
2660
2660
  * **Example**:
2661
2661
  * ```
@@ -2736,7 +2736,7 @@ class WSAPI {
2736
2736
  return OCache.use(onUpdateContextKey.TournamentList, ECacheContext.WSAPI, () => this.api.tournamentsGetLobbyT(this.userExtId), CACHE_DATA_SEC);
2737
2737
  }
2738
2738
  /**
2739
- * Returns details information of specific tournament instance, the response will include tournament info and the leaderboard of players
2739
+ * Returns detailed information for a specific tournament instance; the response includes tournament info and the leaderboard of players
2740
2740
  *
2741
2741
  * **Example**:
2742
2742
  * ```
@@ -2802,7 +2802,7 @@ class WSAPI {
2802
2802
  * An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
2803
2803
  * An indicator "read_status" can be passed to get only messages marked as read or unread.
2804
2804
  * You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
2805
- * This functions return list of messages without the body of the message.
2805
+ * This function returns a list of messages without the body of each message.
2806
2806
  * 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.
2807
2807
  * All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
2808
2808
  * 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.
@@ -2859,7 +2859,7 @@ class WSAPI {
2859
2859
  };
2860
2860
  }
2861
2861
  /**
2862
- * Requests to mark all inbox messages as rea
2862
+ * Requests to mark all inbox messages as read
2863
2863
  *
2864
2864
  * **Visitor mode: not supported**
2865
2865
  */
@@ -2949,7 +2949,7 @@ class WSAPI {
2949
2949
  * ```
2950
2950
  * _smartico.api.reportClickEvent({
2951
2951
  * engagement_uid: 'abc123-def456',
2952
- * activityType: 31 // Inbox,
2952
+ * activityType: 31 // Inbox
2953
2953
  * action: 'dp:gf_missions'
2954
2954
  * });
2955
2955
  * ```
@@ -3031,7 +3031,7 @@ class WSAPI {
3031
3031
  *
3032
3032
  * **Example**:
3033
3033
  * ```
3034
- * _smartico.api.getGamePickActiveRounds({
3034
+ * _smartico.api.gamePickGetActiveRounds({
3035
3035
  * saw_template_id: 1083,
3036
3036
  * }).then((result) => {
3037
3037
  * console.log(result.data); // GamePickRound[]
@@ -3043,7 +3043,7 @@ class WSAPI {
3043
3043
  *
3044
3044
  * **Visitor mode: not supported**
3045
3045
  */
3046
- async getGamePickActiveRounds(props) {
3046
+ async gamePickGetActiveRounds(props) {
3047
3047
  if (!props.saw_template_id) {
3048
3048
  throw new Error('saw_template_id is required');
3049
3049
  }
@@ -3058,12 +3058,12 @@ class WSAPI {
3058
3058
  *
3059
3059
  * **Response** `GamesApiResponse<GamePickRound>`:
3060
3060
  * - `errCode` - 0 on success
3061
- * - `data` - Single round object with the same structure as in `getGamePickActiveRounds`,
3061
+ * - `data` - Single round object with the same structure as in `gamePickGetActiveRounds`,
3062
3062
  * including `events[]` with full event details, user selections, and resolution info
3063
3063
  *
3064
3064
  * **Example**:
3065
3065
  * ```
3066
- * _smartico.api.getGamePickActiveRound({
3066
+ * _smartico.api.gamePickGetActiveRound({
3067
3067
  * saw_template_id: 1083,
3068
3068
  * round_id: 31652,
3069
3069
  * }).then((result) => {
@@ -3074,7 +3074,7 @@ class WSAPI {
3074
3074
  *
3075
3075
  * **Visitor mode: not supported**
3076
3076
  */
3077
- async getGamePickActiveRound(props) {
3077
+ async gamePickGetActiveRound(props) {
3078
3078
  if (!props.saw_template_id) {
3079
3079
  throw new Error('saw_template_id is required');
3080
3080
  }
@@ -3092,12 +3092,12 @@ class WSAPI {
3092
3092
  * **Response** `GamesApiResponse<GamePickRound[]>`:
3093
3093
  * - `errCode` - 0 on success
3094
3094
  * - `data` - Array of rounds ordered by `round_row_id` descending (newest first).
3095
- * Each round has the same structure as in `getGamePickActiveRounds`, including resolved events
3095
+ * Each round has the same structure as in `gamePickGetActiveRounds`, including resolved events
3096
3096
  * with `resolution_type_id` (0=None, 2=Lost, 3=PartialWin, 4=FullWin) and `resolution_score`
3097
3097
  *
3098
3098
  * **Example**:
3099
3099
  * ```
3100
- * _smartico.api.getGamePickHistory({
3100
+ * _smartico.api.gamePickGetHistory({
3101
3101
  * saw_template_id: 1083,
3102
3102
  * }).then((result) => {
3103
3103
  * result.data.forEach(round => {
@@ -3108,7 +3108,7 @@ class WSAPI {
3108
3108
  *
3109
3109
  * **Visitor mode: not supported**
3110
3110
  */
3111
- async getGamePickHistory(props) {
3111
+ async gamePickGetHistory(props) {
3112
3112
  if (!props.saw_template_id) {
3113
3113
  throw new Error('saw_template_id is required');
3114
3114
  }
@@ -3135,7 +3135,7 @@ class WSAPI {
3135
3135
  *
3136
3136
  * **Example**:
3137
3137
  * ```
3138
- * _smartico.api.getGamePickBoard({
3138
+ * _smartico.api.gamePickGetBoard({
3139
3139
  * saw_template_id: 1083,
3140
3140
  * round_id: 31652,
3141
3141
  * }).then((result) => {
@@ -3146,7 +3146,7 @@ class WSAPI {
3146
3146
  *
3147
3147
  * **Visitor mode: not supported**
3148
3148
  */
3149
- async getGamePickBoard(props) {
3149
+ async gamePickGetBoard(props) {
3150
3150
  if (!props.saw_template_id) {
3151
3151
  throw new Error('saw_template_id is required');
3152
3152
  }
@@ -3163,7 +3163,7 @@ class WSAPI {
3163
3163
  * Predictions can be edited until each match starts (if `allow_edit_answers` is enabled on the round).
3164
3164
  *
3165
3165
  * @param props.saw_template_id - The ID of the MatchX game template
3166
- * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `getGamePickActiveRound`
3166
+ * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `gamePickGetActiveRound`
3167
3167
  * and modified with user predictions. Each event needs: `gp_event_id`, `team1_user_selection`, `team2_user_selection`
3168
3168
  *
3169
3169
  * **Response** `GamesApiResponse<GamePickRound>`:
@@ -3173,7 +3173,7 @@ class WSAPI {
3173
3173
  *
3174
3174
  * **Example**:
3175
3175
  * ```
3176
- * _smartico.api.getGamePickActiveRound({
3176
+ * _smartico.api.gamePickGetActiveRound({
3177
3177
  * saw_template_id: 1190,
3178
3178
  * round_id: 38665,
3179
3179
  * }).then((roundData) => {
@@ -3183,7 +3183,7 @@ class WSAPI {
3183
3183
  * team1_user_selection: 1,
3184
3184
  * team2_user_selection: 0,
3185
3185
  * }));
3186
- * _smartico.api.submitGamePickSelection({
3186
+ * _smartico.api.gamePickSubmitSelection({
3187
3187
  * saw_template_id: 1190,
3188
3188
  * round: round,
3189
3189
  * }).then((result) => {
@@ -3194,7 +3194,7 @@ class WSAPI {
3194
3194
  *
3195
3195
  * **Visitor mode: not supported**
3196
3196
  */
3197
- async submitGamePickSelection(props) {
3197
+ async gamePickSubmitSelection(props) {
3198
3198
  var _props$round;
3199
3199
  if (!props.saw_template_id) {
3200
3200
  throw new Error('saw_template_id is required');
@@ -3212,7 +3212,7 @@ class WSAPI {
3212
3212
  * Answers can be edited until each match starts (if `allow_edit_answers` is enabled on the round).
3213
3213
  *
3214
3214
  * @param props.saw_template_id - The ID of the Quiz game template
3215
- * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `getGamePickActiveRound`
3215
+ * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `gamePickGetActiveRound`
3216
3216
  * and modified with user answers. Each event needs: `gp_event_id`, `user_selection`
3217
3217
  *
3218
3218
  * **Response** `GamesApiResponse<GamePickRound>`:
@@ -3222,7 +3222,7 @@ class WSAPI {
3222
3222
  *
3223
3223
  * **Example**:
3224
3224
  * ```
3225
- * _smartico.api.getGamePickActiveRound({
3225
+ * _smartico.api.gamePickGetActiveRound({
3226
3226
  * saw_template_id: 1183,
3227
3227
  * round_id: 37974,
3228
3228
  * }).then((roundData) => {
@@ -3231,7 +3231,7 @@ class WSAPI {
3231
3231
  * gp_event_id: e.gp_event_id,
3232
3232
  * user_selection: 'x',
3233
3233
  * }));
3234
- * _smartico.api.submitGamePickSelectionQuiz({
3234
+ * _smartico.api.gamePickSubmitSelectionQuiz({
3235
3235
  * saw_template_id: 1183,
3236
3236
  * round: round,
3237
3237
  * }).then((result) => {
@@ -3242,7 +3242,7 @@ class WSAPI {
3242
3242
  *
3243
3243
  * **Visitor mode: not supported**
3244
3244
  */
3245
- async submitGamePickSelectionQuiz(props) {
3245
+ async gamePickSubmitSelectionQuiz(props) {
3246
3246
  var _props$round2;
3247
3247
  if (!props.saw_template_id) {
3248
3248
  throw new Error('saw_template_id is required');
@@ -3274,7 +3274,7 @@ class WSAPI {
3274
3274
  *
3275
3275
  * **Example**:
3276
3276
  * ```
3277
- * _smartico.api.getGamePickUserInfo({
3277
+ * _smartico.api.gamePickGetUserInfo({
3278
3278
  * saw_template_id: 1083,
3279
3279
  * }).then((result) => {
3280
3280
  * console.log(result.data.public_username, result.data.ach_points_balance);
@@ -3283,7 +3283,7 @@ class WSAPI {
3283
3283
  *
3284
3284
  * **Visitor mode: not supported**
3285
3285
  */
3286
- async getGamePickUserInfo(props) {
3286
+ async gamePickGetUserInfo(props) {
3287
3287
  if (!props.saw_template_id) {
3288
3288
  throw new Error('saw_template_id is required');
3289
3289
  }
@@ -3312,7 +3312,7 @@ class WSAPI {
3312
3312
  *
3313
3313
  * **Example**:
3314
3314
  * ```
3315
- * _smartico.api.getGamePickGameInfo({
3315
+ * _smartico.api.gamePickGetGameInfo({
3316
3316
  * saw_template_id: 1189,
3317
3317
  * }).then((result) => {
3318
3318
  * console.log(result.data.sawTemplate.saw_template_ui_definition.name);
@@ -3323,7 +3323,7 @@ class WSAPI {
3323
3323
  *
3324
3324
  * **Visitor mode: not supported**
3325
3325
  */
3326
- async getGamePickGameInfo(props) {
3326
+ async gamePickGetGameInfo(props) {
3327
3327
  if (!props.saw_template_id) {
3328
3328
  throw new Error('saw_template_id is required');
3329
3329
  }
@@ -3332,7 +3332,7 @@ class WSAPI {
3332
3332
  /**
3333
3333
  * Returns round data with events and picks for a specific user (identified by their internal user ID).
3334
3334
  * Useful for viewing another user's predictions from the leaderboard.
3335
- * The `int_user_id` can be obtained from the `getGamePickBoard` response (`users[].int_user_id`).
3335
+ * The `int_user_id` can be obtained from the `gamePickGetBoard` response (`users[].int_user_id`).
3336
3336
  *
3337
3337
  * @param props.saw_template_id - The ID of the MatchX or Quiz game template
3338
3338
  * @param props.round_id - The round to get info for
@@ -3341,13 +3341,13 @@ class WSAPI {
3341
3341
  * **Response** `GamesApiResponse<GamePickRound>`:
3342
3342
  * - `errCode` - 0 on success
3343
3343
  * - `data` - Round object with the target user's selections.
3344
- * Same structure as `getGamePickActiveRound`, but `user_selection`/`team1_user_selection`/`team2_user_selection`
3344
+ * Same structure as `gamePickGetActiveRound`, but `user_selection`/`team1_user_selection`/`team2_user_selection`
3345
3345
  * fields on events reflect the specified user's picks instead of the current user's.
3346
3346
  * Events also include `resolution_type_id` (0=None, 2=Lost, 3=PartialWin, 4=FullWin) showing how each prediction was scored
3347
3347
  *
3348
3348
  * **Example**:
3349
3349
  * ```
3350
- * _smartico.api.getGamePickRoundInfoForUser({
3350
+ * _smartico.api.gamePickGetRoundInfoForUser({
3351
3351
  * saw_template_id: 1083,
3352
3352
  * round_id: 31652,
3353
3353
  * int_user_id: 65653810,
@@ -3360,7 +3360,7 @@ class WSAPI {
3360
3360
  *
3361
3361
  * **Visitor mode: not supported**
3362
3362
  */
3363
- async getGamePickRoundInfoForUser(props) {
3363
+ async gamePickGetRoundInfoForUser(props) {
3364
3364
  if (!props.saw_template_id) {
3365
3365
  throw new Error('saw_template_id is required');
3366
3366
  }
@@ -3431,7 +3431,7 @@ class WSAPI {
3431
3431
  OCache.clear(ECacheContext.WSAPI, onUpdateContextKey.Pots);
3432
3432
  OCache.clear(ECacheContext.WSAPI, onUpdateContextKey.JackpotWinners);
3433
3433
  }
3434
- /** Returns list of Jackpots that are active in the systen and matching to the filter definition.
3434
+ /** Returns list of Jackpots that are active in the system and matching to the filter definition.
3435
3435
  * If filter is not provided, all active jackpots will be returned.
3436
3436
  * Filter can be used to get jackpots related to specific game or specific jackpot template.
3437
3437
  * 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
@@ -3526,7 +3526,9 @@ class WSAPI {
3526
3526
  return result;
3527
3527
  }
3528
3528
  /**
3529
- * Returns the winners of the jackpot with the specified jp_template_id.
3529
+ * Returns jackpot winners for the given `jp_template_id` (paginated on the server).
3530
+ * Default page size on the wire is 20; use `limit`, `offset`, and repeated calls to load more.
3531
+ * The full protocol response also includes `has_more`; this method returns only the `winners` array.
3530
3532
  *
3531
3533
  * **Example**:
3532
3534
  * ```
@@ -3539,6 +3541,9 @@ class WSAPI {
3539
3541
  *
3540
3542
  * **Visitor mode: not supported**
3541
3543
  *
3544
+ * @param params.jp_template_id - Jackpot template id (required; throws if missing)
3545
+ * @param params.limit - Page size (server default 20 when omitted)
3546
+ * @param params.offset - Offset into the winner list
3542
3547
  */
3543
3548
  async getJackpotWinners({
3544
3549
  limit,
@@ -3659,7 +3664,7 @@ class WSAPI {
3659
3664
  * **Example**:
3660
3665
  *
3661
3666
  * ```javascript
3662
- * _smartico.api.getRaffleDrawRunHistory({raffle_id:156, draw_id: 432}).then((result) => {
3667
+ * _smartico.api.getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
3663
3668
  * console.log(result);
3664
3669
  * });
3665
3670
  * ```
@@ -3667,7 +3672,7 @@ class WSAPI {
3667
3672
  * **Example in the Visitor mode**:
3668
3673
  *
3669
3674
  * ```javascript
3670
- * _smartico.vapi('EN').getRaffleDrawRunHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
3675
+ * _smartico.vapi('EN').getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
3671
3676
  * console.log(result);
3672
3677
  * });
3673
3678
  * ```
@@ -3681,7 +3686,7 @@ class WSAPI {
3681
3686
  return drawRunHistoryTransform(res);
3682
3687
  }
3683
3688
  /**
3684
- * Returns error code, and error Message after calling the function, error message 0 - means that the request was successful
3689
+ * Returns `err_code` and `err_message` after the call; `err_code` 0 means the request succeeded.
3685
3690
  *
3686
3691
  *
3687
3692
  * **Example**: