@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
package/dist/index.js CHANGED
@@ -2293,7 +2293,7 @@ var WSAPI = /*#__PURE__*/function () {
2293
2293
  * Pay attention that this method is synchronous and returns the user profile object immediately, not a promise.
2294
2294
  * **Example**:
2295
2295
  * ```
2296
- * var p = _smartico.api.getUserProfile);
2296
+ * var p = _smartico.api.getUserProfile();
2297
2297
  * console.log(p);
2298
2298
  * ```
2299
2299
  * **Visitor mode: not supported**
@@ -2351,7 +2351,7 @@ var WSAPI = /*#__PURE__*/function () {
2351
2351
  return Promise.reject(e);
2352
2352
  }
2353
2353
  }
2354
- /** Returns all the levels available the current user
2354
+ /** Returns all the levels available to the current user
2355
2355
  * **Example**:
2356
2356
  * ```
2357
2357
  * _smartico.api.getLevels().then((result) => {
@@ -2436,7 +2436,7 @@ var WSAPI = /*#__PURE__*/function () {
2436
2436
  }
2437
2437
  }
2438
2438
  /**
2439
- * Returns all the badges available the current user
2439
+ * Returns all the badges available to the current user
2440
2440
  *
2441
2441
  * **Visitor mode: not supported**
2442
2442
  */
@@ -2453,7 +2453,7 @@ var WSAPI = /*#__PURE__*/function () {
2453
2453
  }
2454
2454
  /**
2455
2455
  * Returns all the bonuses for the current user
2456
- * The returned bonuss are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
2456
+ * The returned bonuses are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
2457
2457
  * Note that each time you call getBonuses with a new onUpdate callback, the old one will be overwritten by the new one.
2458
2458
  * The onUpdate callback will be called on bonus claimed and the updated bonuses will be passed to it.
2459
2459
  *
@@ -2501,7 +2501,7 @@ var WSAPI = /*#__PURE__*/function () {
2501
2501
  }
2502
2502
  /**
2503
2503
  * Returns the extra counters for the current user level.
2504
- * These are counters that are configured for each Smartico client separatly by request.
2504
+ * These are counters that are configured for each Smartico client separately by request.
2505
2505
  * For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
2506
2506
  *
2507
2507
  * **Example**:
@@ -2526,7 +2526,7 @@ var WSAPI = /*#__PURE__*/function () {
2526
2526
  }
2527
2527
  /**
2528
2528
  *
2529
- * Returns all the store items available the current user
2529
+ * Returns all the store items available to the current user
2530
2530
  * The returned store items are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
2531
2531
  * Note that each time you call getStoreItems with a new onUpdate callback, the old one will be overwritten by the new one.
2532
2532
  * The onUpdate callback will be called on purchase of the store item.
@@ -2713,7 +2713,7 @@ var WSAPI = /*#__PURE__*/function () {
2713
2713
  /**
2714
2714
  * Returns the list of mini-games configured for the current user (not filtered by spin availability or Widget visibility).
2715
2715
  * 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 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.
2716
+ * 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
2717
  *
2718
2718
  * **Example**:
2719
2719
  * ```
@@ -2778,7 +2778,7 @@ var WSAPI = /*#__PURE__*/function () {
2778
2778
  /**
2779
2779
  * Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
2780
2780
  * 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 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.
2781
+ * 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
2782
  *
2783
2783
  * **Example**:
2784
2784
  * ```
@@ -2832,7 +2832,7 @@ var WSAPI = /*#__PURE__*/function () {
2832
2832
  /**
2833
2833
  * Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
2834
2834
  * 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 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.
2835
+ * 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
2836
  *
2837
2837
  * **Example**:
2838
2838
  * ```
@@ -2946,7 +2946,7 @@ var WSAPI = /*#__PURE__*/function () {
2946
2946
  }
2947
2947
  }
2948
2948
  /**
2949
- * Returns details information of specific tournament instance, the response will include tournament info and the leaderboard of players
2949
+ * Returns detailed information for a specific tournament instance; the response includes tournament info and the leaderboard of players
2950
2950
  *
2951
2951
  * **Example**:
2952
2952
  * ```
@@ -3033,7 +3033,7 @@ var WSAPI = /*#__PURE__*/function () {
3033
3033
  * An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
3034
3034
  * An indicator "read_status" can be passed to get only messages marked as read or unread.
3035
3035
  * You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
3036
- * This functions return list of messages without the body of the message.
3036
+ * This function returns a list of messages without the body of each message.
3037
3037
  * 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
3038
  * All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
3039
3039
  * 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 +3117,7 @@ var WSAPI = /*#__PURE__*/function () {
3117
3117
  }
3118
3118
  }
3119
3119
  /**
3120
- * Requests to mark all inbox messages as rea
3120
+ * Requests to mark all inbox messages as read
3121
3121
  *
3122
3122
  * **Visitor mode: not supported**
3123
3123
  */
@@ -3242,7 +3242,7 @@ var WSAPI = /*#__PURE__*/function () {
3242
3242
  * ```
3243
3243
  * _smartico.api.reportClickEvent({
3244
3244
  * engagement_uid: 'abc123-def456',
3245
- * activityType: 31 // Inbox,
3245
+ * activityType: 31 // Inbox
3246
3246
  * action: 'dp:gf_missions'
3247
3247
  * });
3248
3248
  * ```
@@ -3329,7 +3329,7 @@ var WSAPI = /*#__PURE__*/function () {
3329
3329
  *
3330
3330
  * **Example**:
3331
3331
  * ```
3332
- * _smartico.api.getGamePickActiveRounds({
3332
+ * _smartico.api.gamePickGetActiveRounds({
3333
3333
  * saw_template_id: 1083,
3334
3334
  * }).then((result) => {
3335
3335
  * console.log(result.data); // GamePickRound[]
@@ -3342,7 +3342,7 @@ var WSAPI = /*#__PURE__*/function () {
3342
3342
  * **Visitor mode: not supported**
3343
3343
  */
3344
3344
  ;
3345
- _proto.getGamePickActiveRounds = function getGamePickActiveRounds(props) {
3345
+ _proto.gamePickGetActiveRounds = function gamePickGetActiveRounds(props) {
3346
3346
  try {
3347
3347
  var _this36 = this;
3348
3348
  if (!props.saw_template_id) {
@@ -3362,12 +3362,12 @@ var WSAPI = /*#__PURE__*/function () {
3362
3362
  *
3363
3363
  * **Response** `GamesApiResponse<GamePickRound>`:
3364
3364
  * - `errCode` - 0 on success
3365
- * - `data` - Single round object with the same structure as in `getGamePickActiveRounds`,
3365
+ * - `data` - Single round object with the same structure as in `gamePickGetActiveRounds`,
3366
3366
  * including `events[]` with full event details, user selections, and resolution info
3367
3367
  *
3368
3368
  * **Example**:
3369
3369
  * ```
3370
- * _smartico.api.getGamePickActiveRound({
3370
+ * _smartico.api.gamePickGetActiveRound({
3371
3371
  * saw_template_id: 1083,
3372
3372
  * round_id: 31652,
3373
3373
  * }).then((result) => {
@@ -3379,7 +3379,7 @@ var WSAPI = /*#__PURE__*/function () {
3379
3379
  * **Visitor mode: not supported**
3380
3380
  */
3381
3381
  ;
3382
- _proto.getGamePickActiveRound = function getGamePickActiveRound(props) {
3382
+ _proto.gamePickGetActiveRound = function gamePickGetActiveRound(props) {
3383
3383
  try {
3384
3384
  var _this37 = this;
3385
3385
  if (!props.saw_template_id) {
@@ -3402,12 +3402,12 @@ var WSAPI = /*#__PURE__*/function () {
3402
3402
  * **Response** `GamesApiResponse<GamePickRound[]>`:
3403
3403
  * - `errCode` - 0 on success
3404
3404
  * - `data` - Array of rounds ordered by `round_row_id` descending (newest first).
3405
- * Each round has the same structure as in `getGamePickActiveRounds`, including resolved events
3405
+ * Each round has the same structure as in `gamePickGetActiveRounds`, including resolved events
3406
3406
  * with `resolution_type_id` (0=None, 2=Lost, 3=PartialWin, 4=FullWin) and `resolution_score`
3407
3407
  *
3408
3408
  * **Example**:
3409
3409
  * ```
3410
- * _smartico.api.getGamePickHistory({
3410
+ * _smartico.api.gamePickGetHistory({
3411
3411
  * saw_template_id: 1083,
3412
3412
  * }).then((result) => {
3413
3413
  * result.data.forEach(round => {
@@ -3419,7 +3419,7 @@ var WSAPI = /*#__PURE__*/function () {
3419
3419
  * **Visitor mode: not supported**
3420
3420
  */
3421
3421
  ;
3422
- _proto.getGamePickHistory = function getGamePickHistory(props) {
3422
+ _proto.gamePickGetHistory = function gamePickGetHistory(props) {
3423
3423
  try {
3424
3424
  var _this38 = this;
3425
3425
  if (!props.saw_template_id) {
@@ -3451,7 +3451,7 @@ var WSAPI = /*#__PURE__*/function () {
3451
3451
  *
3452
3452
  * **Example**:
3453
3453
  * ```
3454
- * _smartico.api.getGamePickBoard({
3454
+ * _smartico.api.gamePickGetBoard({
3455
3455
  * saw_template_id: 1083,
3456
3456
  * round_id: 31652,
3457
3457
  * }).then((result) => {
@@ -3463,7 +3463,7 @@ var WSAPI = /*#__PURE__*/function () {
3463
3463
  * **Visitor mode: not supported**
3464
3464
  */
3465
3465
  ;
3466
- _proto.getGamePickBoard = function getGamePickBoard(props) {
3466
+ _proto.gamePickGetBoard = function gamePickGetBoard(props) {
3467
3467
  try {
3468
3468
  var _this39 = this;
3469
3469
  if (!props.saw_template_id) {
@@ -3485,7 +3485,7 @@ var WSAPI = /*#__PURE__*/function () {
3485
3485
  * Predictions can be edited until each match starts (if `allow_edit_answers` is enabled on the round).
3486
3486
  *
3487
3487
  * @param props.saw_template_id - The ID of the MatchX game template
3488
- * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `getGamePickActiveRound`
3488
+ * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `gamePickGetActiveRound`
3489
3489
  * and modified with user predictions. Each event needs: `gp_event_id`, `team1_user_selection`, `team2_user_selection`
3490
3490
  *
3491
3491
  * **Response** `GamesApiResponse<GamePickRound>`:
@@ -3495,7 +3495,7 @@ var WSAPI = /*#__PURE__*/function () {
3495
3495
  *
3496
3496
  * **Example**:
3497
3497
  * ```
3498
- * _smartico.api.getGamePickActiveRound({
3498
+ * _smartico.api.gamePickGetActiveRound({
3499
3499
  * saw_template_id: 1190,
3500
3500
  * round_id: 38665,
3501
3501
  * }).then((roundData) => {
@@ -3505,7 +3505,7 @@ var WSAPI = /*#__PURE__*/function () {
3505
3505
  * team1_user_selection: 1,
3506
3506
  * team2_user_selection: 0,
3507
3507
  * }));
3508
- * _smartico.api.submitGamePickSelection({
3508
+ * _smartico.api.gamePickSubmitSelection({
3509
3509
  * saw_template_id: 1190,
3510
3510
  * round: round,
3511
3511
  * }).then((result) => {
@@ -3517,7 +3517,7 @@ var WSAPI = /*#__PURE__*/function () {
3517
3517
  * **Visitor mode: not supported**
3518
3518
  */
3519
3519
  ;
3520
- _proto.submitGamePickSelection = function submitGamePickSelection(props) {
3520
+ _proto.gamePickSubmitSelection = function gamePickSubmitSelection(props) {
3521
3521
  try {
3522
3522
  var _props$round;
3523
3523
  var _this40 = this;
@@ -3540,7 +3540,7 @@ var WSAPI = /*#__PURE__*/function () {
3540
3540
  * Answers can be edited until each match starts (if `allow_edit_answers` is enabled on the round).
3541
3541
  *
3542
3542
  * @param props.saw_template_id - The ID of the Quiz game template
3543
- * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `getGamePickActiveRound`
3543
+ * @param props.round - Round object containing `round_id` and `events[]`. Typically obtained from `gamePickGetActiveRound`
3544
3544
  * and modified with user answers. Each event needs: `gp_event_id`, `user_selection`
3545
3545
  *
3546
3546
  * **Response** `GamesApiResponse<GamePickRound>`:
@@ -3550,7 +3550,7 @@ var WSAPI = /*#__PURE__*/function () {
3550
3550
  *
3551
3551
  * **Example**:
3552
3552
  * ```
3553
- * _smartico.api.getGamePickActiveRound({
3553
+ * _smartico.api.gamePickGetActiveRound({
3554
3554
  * saw_template_id: 1183,
3555
3555
  * round_id: 37974,
3556
3556
  * }).then((roundData) => {
@@ -3559,7 +3559,7 @@ var WSAPI = /*#__PURE__*/function () {
3559
3559
  * gp_event_id: e.gp_event_id,
3560
3560
  * user_selection: 'x',
3561
3561
  * }));
3562
- * _smartico.api.submitGamePickSelectionQuiz({
3562
+ * _smartico.api.gamePickSubmitSelectionQuiz({
3563
3563
  * saw_template_id: 1183,
3564
3564
  * round: round,
3565
3565
  * }).then((result) => {
@@ -3571,7 +3571,7 @@ var WSAPI = /*#__PURE__*/function () {
3571
3571
  * **Visitor mode: not supported**
3572
3572
  */
3573
3573
  ;
3574
- _proto.submitGamePickSelectionQuiz = function submitGamePickSelectionQuiz(props) {
3574
+ _proto.gamePickSubmitSelectionQuiz = function gamePickSubmitSelectionQuiz(props) {
3575
3575
  try {
3576
3576
  var _props$round2;
3577
3577
  var _this41 = this;
@@ -3608,7 +3608,7 @@ var WSAPI = /*#__PURE__*/function () {
3608
3608
  *
3609
3609
  * **Example**:
3610
3610
  * ```
3611
- * _smartico.api.getGamePickUserInfo({
3611
+ * _smartico.api.gamePickGetUserInfo({
3612
3612
  * saw_template_id: 1083,
3613
3613
  * }).then((result) => {
3614
3614
  * console.log(result.data.public_username, result.data.ach_points_balance);
@@ -3618,7 +3618,7 @@ var WSAPI = /*#__PURE__*/function () {
3618
3618
  * **Visitor mode: not supported**
3619
3619
  */
3620
3620
  ;
3621
- _proto.getGamePickUserInfo = function getGamePickUserInfo(props) {
3621
+ _proto.gamePickGetUserInfo = function gamePickGetUserInfo(props) {
3622
3622
  try {
3623
3623
  var _this42 = this;
3624
3624
  if (!props.saw_template_id) {
@@ -3652,7 +3652,7 @@ var WSAPI = /*#__PURE__*/function () {
3652
3652
  *
3653
3653
  * **Example**:
3654
3654
  * ```
3655
- * _smartico.api.getGamePickGameInfo({
3655
+ * _smartico.api.gamePickGetGameInfo({
3656
3656
  * saw_template_id: 1189,
3657
3657
  * }).then((result) => {
3658
3658
  * console.log(result.data.sawTemplate.saw_template_ui_definition.name);
@@ -3664,7 +3664,7 @@ var WSAPI = /*#__PURE__*/function () {
3664
3664
  * **Visitor mode: not supported**
3665
3665
  */
3666
3666
  ;
3667
- _proto.getGamePickGameInfo = function getGamePickGameInfo(props) {
3667
+ _proto.gamePickGetGameInfo = function gamePickGetGameInfo(props) {
3668
3668
  try {
3669
3669
  var _this43 = this;
3670
3670
  if (!props.saw_template_id) {
@@ -3678,7 +3678,7 @@ var WSAPI = /*#__PURE__*/function () {
3678
3678
  /**
3679
3679
  * Returns round data with events and picks for a specific user (identified by their internal user ID).
3680
3680
  * Useful for viewing another user's predictions from the leaderboard.
3681
- * The `int_user_id` can be obtained from the `getGamePickBoard` response (`users[].int_user_id`).
3681
+ * The `int_user_id` can be obtained from the `gamePickGetBoard` response (`users[].int_user_id`).
3682
3682
  *
3683
3683
  * @param props.saw_template_id - The ID of the MatchX or Quiz game template
3684
3684
  * @param props.round_id - The round to get info for
@@ -3687,13 +3687,13 @@ var WSAPI = /*#__PURE__*/function () {
3687
3687
  * **Response** `GamesApiResponse<GamePickRound>`:
3688
3688
  * - `errCode` - 0 on success
3689
3689
  * - `data` - Round object with the target user's selections.
3690
- * Same structure as `getGamePickActiveRound`, but `user_selection`/`team1_user_selection`/`team2_user_selection`
3690
+ * Same structure as `gamePickGetActiveRound`, but `user_selection`/`team1_user_selection`/`team2_user_selection`
3691
3691
  * fields on events reflect the specified user's picks instead of the current user's.
3692
3692
  * Events also include `resolution_type_id` (0=None, 2=Lost, 3=PartialWin, 4=FullWin) showing how each prediction was scored
3693
3693
  *
3694
3694
  * **Example**:
3695
3695
  * ```
3696
- * _smartico.api.getGamePickRoundInfoForUser({
3696
+ * _smartico.api.gamePickGetRoundInfoForUser({
3697
3697
  * saw_template_id: 1083,
3698
3698
  * round_id: 31652,
3699
3699
  * int_user_id: 65653810,
@@ -3707,7 +3707,7 @@ var WSAPI = /*#__PURE__*/function () {
3707
3707
  * **Visitor mode: not supported**
3708
3708
  */
3709
3709
  ;
3710
- _proto.getGamePickRoundInfoForUser = function getGamePickRoundInfoForUser(props) {
3710
+ _proto.gamePickGetRoundInfoForUser = function gamePickGetRoundInfoForUser(props) {
3711
3711
  try {
3712
3712
  var _this44 = this;
3713
3713
  if (!props.saw_template_id) {
@@ -3864,7 +3864,7 @@ var WSAPI = /*#__PURE__*/function () {
3864
3864
  return Promise.reject(e);
3865
3865
  }
3866
3866
  }
3867
- /** Returns list of Jackpots that are active in the systen and matching to the filter definition.
3867
+ /** Returns list of Jackpots that are active in the system and matching to the filter definition.
3868
3868
  * If filter is not provided, all active jackpots will be returned.
3869
3869
  * Filter can be used to get jackpots related to specific game or specific jackpot template.
3870
3870
  * 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 +4000,9 @@ var WSAPI = /*#__PURE__*/function () {
4000
4000
  }
4001
4001
  }
4002
4002
  /**
4003
- * Returns the winners of the jackpot with the specified jp_template_id.
4003
+ * Returns jackpot winners for the given `jp_template_id` (paginated on the server).
4004
+ * Default page size on the wire is 20; use `limit`, `offset`, and repeated calls to load more.
4005
+ * The full protocol response also includes `has_more`; this method returns only the `winners` array.
4004
4006
  *
4005
4007
  * **Example**:
4006
4008
  * ```
@@ -4013,6 +4015,9 @@ var WSAPI = /*#__PURE__*/function () {
4013
4015
  *
4014
4016
  * **Visitor mode: not supported**
4015
4017
  *
4018
+ * @param params.jp_template_id - Jackpot template id (required; throws if missing)
4019
+ * @param params.limit - Page size (server default 20 when omitted)
4020
+ * @param params.offset - Offset into the winner list
4016
4021
  */
4017
4022
  ;
4018
4023
  _proto.getJackpotWinners = function getJackpotWinners(_ref13) {
@@ -4166,7 +4171,7 @@ var WSAPI = /*#__PURE__*/function () {
4166
4171
  * **Example**:
4167
4172
  *
4168
4173
  * ```javascript
4169
- * _smartico.api.getRaffleDrawRunHistory({raffle_id:156, draw_id: 432}).then((result) => {
4174
+ * _smartico.api.getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
4170
4175
  * console.log(result);
4171
4176
  * });
4172
4177
  * ```
@@ -4174,7 +4179,7 @@ var WSAPI = /*#__PURE__*/function () {
4174
4179
  * **Example in the Visitor mode**:
4175
4180
  *
4176
4181
  * ```javascript
4177
- * _smartico.vapi('EN').getRaffleDrawRunHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
4182
+ * _smartico.vapi('EN').getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
4178
4183
  * console.log(result);
4179
4184
  * });
4180
4185
  * ```
@@ -4195,7 +4200,7 @@ var WSAPI = /*#__PURE__*/function () {
4195
4200
  }
4196
4201
  }
4197
4202
  /**
4198
- * Returns error code, and error Message after calling the function, error message 0 - means that the request was successful
4203
+ * Returns `err_code` and `err_message` after the call; `err_code` 0 means the request succeeded.
4199
4204
  *
4200
4205
  *
4201
4206
  * **Example**: