@smartico/public-api 0.0.357 → 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.
- package/dist/WSAPI/WSAPI.d.ts +24 -19
- package/dist/index.js +23 -18
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +23 -18
- 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/SmarticoAPI.ts +1 -1
- package/src/WSAPI/WSAPI.ts +29 -23
- package/tsconfig.json +23 -1
|
@@ -20,7 +20,7 @@ ___
|
|
|
20
20
|
|
|
21
21
|
### tournamentType
|
|
22
22
|
|
|
23
|
-
• `Optional` **tournamentType**: `TournamentType`
|
|
23
|
+
• `Optional` **tournamentType**: [`TournamentType`](../enums/TournamentType.md)
|
|
24
24
|
|
|
25
25
|
Type of the tournament. For now only SCHEDULED is support
|
|
26
26
|
|
|
@@ -28,7 +28,7 @@ ___
|
|
|
28
28
|
|
|
29
29
|
### publicMeta
|
|
30
30
|
|
|
31
|
-
• `Optional` **publicMeta**: `TournamentPublicMeta`
|
|
31
|
+
• `Optional` **publicMeta**: [`TournamentPublicMeta`](TournamentPublicMeta.md)
|
|
32
32
|
|
|
33
33
|
Meta information about tournament that should be used to build UI
|
|
34
34
|
|
|
@@ -116,7 +116,7 @@ ___
|
|
|
116
116
|
|
|
117
117
|
### tournamentInstanceStatus
|
|
118
118
|
|
|
119
|
-
• `Optional` **tournamentInstanceStatus**: `TournamentInstanceStatus`
|
|
119
|
+
• `Optional` **tournamentInstanceStatus**: [`TournamentInstanceStatus`](../enums/TournamentInstanceStatus.md)
|
|
120
120
|
|
|
121
121
|
Status of tournament instance
|
|
122
122
|
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Interface: TournamentPublicMeta
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
### name
|
|
6
|
+
|
|
7
|
+
• `Optional` **name**: `string`
|
|
8
|
+
|
|
9
|
+
Name of tournament
|
|
10
|
+
|
|
11
|
+
___
|
|
12
|
+
|
|
13
|
+
### image\_url
|
|
14
|
+
|
|
15
|
+
• `Optional` **image\_url**: `string`
|
|
16
|
+
|
|
17
|
+
1st image
|
|
18
|
+
|
|
19
|
+
___
|
|
20
|
+
|
|
21
|
+
### image\_url2
|
|
22
|
+
|
|
23
|
+
• `Optional` **image\_url2**: `string`
|
|
24
|
+
|
|
25
|
+
2nd image
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### image\_url2\_mobile
|
|
30
|
+
|
|
31
|
+
• `Optional` **image\_url2\_mobile**: `string`
|
|
32
|
+
|
|
33
|
+
2nd image for mobile
|
|
34
|
+
|
|
35
|
+
___
|
|
36
|
+
|
|
37
|
+
### description
|
|
38
|
+
|
|
39
|
+
• `Optional` **description**: `string`
|
|
40
|
+
|
|
41
|
+
Description, html capable
|
|
42
|
+
|
|
43
|
+
___
|
|
44
|
+
|
|
45
|
+
### prize\_pool\_short
|
|
46
|
+
|
|
47
|
+
• `Optional` **prize\_pool\_short**: `string`
|
|
48
|
+
|
|
49
|
+
Short explanation of prize pool
|
|
50
|
+
|
|
51
|
+
___
|
|
52
|
+
|
|
53
|
+
### segment\_dont\_match\_message
|
|
54
|
+
|
|
55
|
+
• `Optional` **segment\_dont\_match\_message**: `string`
|
|
56
|
+
|
|
57
|
+
Message to show when user is not matching to the segment allowed to register (error code 30005 in registration response)
|
|
58
|
+
|
|
59
|
+
___
|
|
60
|
+
|
|
61
|
+
### custom\_price\_text
|
|
62
|
+
|
|
63
|
+
• `Optional` **custom\_price\_text**: `string`
|
|
64
|
+
|
|
65
|
+
Short explanation of registration price
|
|
66
|
+
|
|
67
|
+
___
|
|
68
|
+
|
|
69
|
+
### show\_other\_users\_score
|
|
70
|
+
|
|
71
|
+
• `Optional` **show\_other\_users\_score**: `boolean`
|
|
72
|
+
|
|
73
|
+
Indicator if the scores of other users should be shown in the leaderboard of tournament
|
|
74
|
+
|
|
75
|
+
___
|
|
76
|
+
|
|
77
|
+
### custom\_section\_id
|
|
78
|
+
|
|
79
|
+
• `Optional` **custom\_section\_id**: `number`
|
|
80
|
+
|
|
81
|
+
___
|
|
82
|
+
|
|
83
|
+
### only\_in\_custom\_section
|
|
84
|
+
|
|
85
|
+
• `Optional` **only\_in\_custom\_section**: `boolean`
|
|
86
|
+
|
|
87
|
+
___
|
|
88
|
+
|
|
89
|
+
### label\_tag
|
|
90
|
+
|
|
91
|
+
• `Optional` **label\_tag**: `string`
|
|
92
|
+
|
|
93
|
+
___
|
|
94
|
+
|
|
95
|
+
### custom\_label\_tag
|
|
96
|
+
|
|
97
|
+
• `Optional` **custom\_label\_tag**: `string`
|
|
98
|
+
|
|
99
|
+
___
|
|
100
|
+
|
|
101
|
+
### featured
|
|
102
|
+
|
|
103
|
+
• `Optional` **featured**: `boolean`
|
|
104
|
+
|
|
105
|
+
___
|
|
106
|
+
|
|
107
|
+
### position
|
|
108
|
+
|
|
109
|
+
• `Optional` **position**: `number`
|
|
110
|
+
|
|
111
|
+
___
|
|
112
|
+
|
|
113
|
+
### custom\_data
|
|
114
|
+
|
|
115
|
+
• `Optional` **custom\_data**: `string`
|
|
@@ -10,7 +10,7 @@ ___
|
|
|
10
10
|
|
|
11
11
|
### ach\_type\_id
|
|
12
12
|
|
|
13
|
-
• `Optional` **ach\_type\_id**: `AchievementType`
|
|
13
|
+
• `Optional` **ach\_type\_id**: [`AchievementType`](../enums/AchievementType.md)
|
|
14
14
|
|
|
15
15
|
___
|
|
16
16
|
|
|
@@ -112,13 +112,13 @@ ___
|
|
|
112
112
|
|
|
113
113
|
### ach\_status\_id
|
|
114
114
|
|
|
115
|
-
• `Optional` **ach\_status\_id**: `AchievementStatus`
|
|
115
|
+
• `Optional` **ach\_status\_id**: [`AchievementStatus`](../enums/AchievementStatus.md)
|
|
116
116
|
|
|
117
117
|
___
|
|
118
118
|
|
|
119
119
|
### scheduledMissionType
|
|
120
120
|
|
|
121
|
-
• `Optional` **scheduledMissionType**: `ScheduledMissionType`
|
|
121
|
+
• `Optional` **scheduledMissionType**: [`ScheduledMissionType`](../enums/ScheduledMissionType.md)
|
|
122
122
|
|
|
123
123
|
___
|
|
124
124
|
|
|
@@ -202,4 +202,4 @@ ___
|
|
|
202
202
|
|
|
203
203
|
### badgeTimeLimitState
|
|
204
204
|
|
|
205
|
-
• `Optional` **badgeTimeLimitState**: `BadgesTimeLimitStates`
|
|
205
|
+
• `Optional` **badgeTimeLimitState**: [`BadgesTimeLimitStates`](../enums/BadgesTimeLimitStates.md)
|
|
@@ -10,7 +10,7 @@ ___
|
|
|
10
10
|
|
|
11
11
|
### task\_public\_meta
|
|
12
12
|
|
|
13
|
-
• `Optional` **task\_public\_meta**: `AchievementTaskPublicMeta`
|
|
13
|
+
• `Optional` **task\_public\_meta**: [`AchievementTaskPublicMeta`](AchievementTaskPublicMeta.md)
|
|
14
14
|
|
|
15
15
|
___
|
|
16
16
|
|
|
@@ -22,7 +22,7 @@ ___
|
|
|
22
22
|
|
|
23
23
|
### task\_type\_id
|
|
24
24
|
|
|
25
|
-
• **task\_type\_id**: `AchievementTaskType`
|
|
25
|
+
• **task\_type\_id**: [`AchievementTaskType`](../enums/AchievementTaskType.md)
|
|
26
26
|
|
|
27
27
|
___
|
|
28
28
|
|
|
@@ -80,4 +80,4 @@ ___
|
|
|
80
80
|
|
|
81
81
|
### affects\_progress
|
|
82
82
|
|
|
83
|
-
• `Optional` **affects\_progress**: `AffectsProgress`
|
|
83
|
+
• `Optional` **affects\_progress**: [`AffectsProgress`](AffectsProgress.md)
|
package/package.json
CHANGED
package/src/SmarticoAPI.ts
CHANGED
|
@@ -585,7 +585,7 @@ class SmarticoAPI {
|
|
|
585
585
|
{ jp_template_id },
|
|
586
586
|
);
|
|
587
587
|
|
|
588
|
-
return await this.send<GetJackpotEligibleGamesResponse>(message, ClassId.JP_GET_ELIGIBLE_GAMES_RESPONSE)
|
|
588
|
+
return await this.send<GetJackpotEligibleGamesResponse>(message, ClassId.JP_GET_ELIGIBLE_GAMES_RESPONSE);
|
|
589
589
|
}
|
|
590
590
|
|
|
591
591
|
public async getJackpotEligibleGamesT(user_ext_id: string, { jp_template_id }: { jp_template_id: number }): Promise<TGetJackpotEligibleGamesResponse> {
|
package/src/WSAPI/WSAPI.ts
CHANGED
|
@@ -176,7 +176,7 @@ export class WSAPI {
|
|
|
176
176
|
* Pay attention that this method is synchronous and returns the user profile object immediately, not a promise.
|
|
177
177
|
* **Example**:
|
|
178
178
|
* ```
|
|
179
|
-
* var p = _smartico.api.getUserProfile);
|
|
179
|
+
* var p = _smartico.api.getUserProfile();
|
|
180
180
|
* console.log(p);
|
|
181
181
|
* ```
|
|
182
182
|
* **Visitor mode: not supported**
|
|
@@ -223,7 +223,7 @@ export class WSAPI {
|
|
|
223
223
|
return await this.api.coreCheckSegments(this.userExtId, Array.isArray(segment_ids) ? segment_ids : [segment_ids]);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
/** Returns all the levels available the current user
|
|
226
|
+
/** Returns all the levels available to the current user
|
|
227
227
|
* **Example**:
|
|
228
228
|
* ```
|
|
229
229
|
* _smartico.api.getLevels().then((result) => {
|
|
@@ -291,7 +291,7 @@ export class WSAPI {
|
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
/**
|
|
294
|
-
* Returns all the badges available the current user
|
|
294
|
+
* Returns all the badges available to the current user
|
|
295
295
|
*
|
|
296
296
|
* **Visitor mode: not supported**
|
|
297
297
|
*/
|
|
@@ -301,7 +301,7 @@ export class WSAPI {
|
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
303
|
* Returns all the bonuses for the current user
|
|
304
|
-
* The returned
|
|
304
|
+
* The returned bonuses are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
305
305
|
* Note that each time you call getBonuses with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
306
306
|
* The onUpdate callback will be called on bonus claimed and the updated bonuses will be passed to it.
|
|
307
307
|
*
|
|
@@ -337,7 +337,7 @@ export class WSAPI {
|
|
|
337
337
|
|
|
338
338
|
/**
|
|
339
339
|
* Returns the extra counters for the current user level.
|
|
340
|
-
* These are counters that are configured for each Smartico client
|
|
340
|
+
* These are counters that are configured for each Smartico client separately by request.
|
|
341
341
|
* For example 1st counter could be total wagering amount, 2nd counter could be total deposit amount, etc.
|
|
342
342
|
*
|
|
343
343
|
* **Example**:
|
|
@@ -360,7 +360,7 @@ export class WSAPI {
|
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
362
|
*
|
|
363
|
-
* Returns all the store items available the current user
|
|
363
|
+
* Returns all the store items available to the current user
|
|
364
364
|
* The returned store items are cached for 30 seconds. But you can pass the onUpdate callback as a parameter.
|
|
365
365
|
* Note that each time you call getStoreItems with a new onUpdate callback, the old one will be overwritten by the new one.
|
|
366
366
|
* The onUpdate callback will be called on purchase of the store item.
|
|
@@ -533,7 +533,7 @@ export class WSAPI {
|
|
|
533
533
|
/**
|
|
534
534
|
* Returns the list of mini-games configured for the current user (not filtered by spin availability or Widget visibility).
|
|
535
535
|
* 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.
|
|
536
|
-
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or
|
|
536
|
+
* 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.
|
|
537
537
|
*
|
|
538
538
|
* **Example**:
|
|
539
539
|
* ```
|
|
@@ -596,7 +596,7 @@ export class WSAPI {
|
|
|
596
596
|
/**
|
|
597
597
|
* Plays the specified by template_id mini-game on behalf of user and returns prize_id or err_code
|
|
598
598
|
* 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.
|
|
599
|
-
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or
|
|
599
|
+
* 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.
|
|
600
600
|
*
|
|
601
601
|
* **Example**:
|
|
602
602
|
* ```
|
|
@@ -643,7 +643,7 @@ export class WSAPI {
|
|
|
643
643
|
/**
|
|
644
644
|
* Plays the specified by template_id mini-game on behalf of user spin_count times and returns array of the prizes
|
|
645
645
|
* 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.
|
|
646
|
-
* The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or
|
|
646
|
+
* 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.
|
|
647
647
|
*
|
|
648
648
|
* **Example**:
|
|
649
649
|
* ```
|
|
@@ -656,7 +656,7 @@ export class WSAPI {
|
|
|
656
656
|
public async playMiniGameBatch(
|
|
657
657
|
template_id: number,
|
|
658
658
|
spin_count: number,
|
|
659
|
-
{ onUpdate }: { onUpdate?: (data:
|
|
659
|
+
{ onUpdate }: { onUpdate?: (data: TMiniGameTemplate[]) => void } = {},
|
|
660
660
|
): Promise<TMiniGamePlayBatchResult[]> {
|
|
661
661
|
if (onUpdate) {
|
|
662
662
|
this.onUpdateCallback.set(onUpdateContextKey.Saw, onUpdate);
|
|
@@ -742,7 +742,7 @@ export class WSAPI {
|
|
|
742
742
|
}
|
|
743
743
|
|
|
744
744
|
/**
|
|
745
|
-
* Returns
|
|
745
|
+
* Returns detailed information for a specific tournament instance; the response includes tournament info and the leaderboard of players
|
|
746
746
|
*
|
|
747
747
|
* **Example**:
|
|
748
748
|
* ```
|
|
@@ -818,7 +818,7 @@ export class WSAPI {
|
|
|
818
818
|
* An indicator "onlyFavorite" can be passed to get only messages marked as favorites.
|
|
819
819
|
* An indicator "read_status" can be passed to get only messages marked as read or unread.
|
|
820
820
|
* You can leave this params empty and by default it will return list of messages ranging from 0 to 20.
|
|
821
|
-
* This
|
|
821
|
+
* This function returns a list of messages without the body of each message.
|
|
822
822
|
* 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.
|
|
823
823
|
* All other action like mark as read, favorite, delete, etc. can be done using this message GUID.
|
|
824
824
|
* 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.
|
|
@@ -890,7 +890,7 @@ export class WSAPI {
|
|
|
890
890
|
}
|
|
891
891
|
|
|
892
892
|
/**
|
|
893
|
-
* Requests to mark all inbox messages as
|
|
893
|
+
* Requests to mark all inbox messages as read
|
|
894
894
|
*
|
|
895
895
|
* **Visitor mode: not supported**
|
|
896
896
|
*/
|
|
@@ -996,7 +996,7 @@ export class WSAPI {
|
|
|
996
996
|
* ```
|
|
997
997
|
* _smartico.api.reportClickEvent({
|
|
998
998
|
* engagement_uid: 'abc123-def456',
|
|
999
|
-
* activityType: 31 // Inbox
|
|
999
|
+
* activityType: 31 // Inbox
|
|
1000
1000
|
* action: 'dp:gf_missions'
|
|
1001
1001
|
* });
|
|
1002
1002
|
* ```
|
|
@@ -1524,7 +1524,7 @@ export class WSAPI {
|
|
|
1524
1524
|
OCache.clear(ECacheContext.WSAPI, onUpdateContextKey.JackpotWinners);
|
|
1525
1525
|
}
|
|
1526
1526
|
|
|
1527
|
-
/** Returns list of Jackpots that are active in the
|
|
1527
|
+
/** Returns list of Jackpots that are active in the system and matching to the filter definition.
|
|
1528
1528
|
* If filter is not provided, all active jackpots will be returned.
|
|
1529
1529
|
* Filter can be used to get jackpots related to specific game or specific jackpot template.
|
|
1530
1530
|
* 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
|
|
@@ -1641,7 +1641,9 @@ export class WSAPI {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
|
|
1643
1643
|
/**
|
|
1644
|
-
* Returns
|
|
1644
|
+
* Returns jackpot winners for the given `jp_template_id` (paginated on the server).
|
|
1645
|
+
* Default page size on the wire is 20; use `limit`, `offset`, and repeated calls to load more.
|
|
1646
|
+
* The full protocol response also includes `has_more`; this method returns only the `winners` array.
|
|
1645
1647
|
*
|
|
1646
1648
|
* **Example**:
|
|
1647
1649
|
* ```
|
|
@@ -1651,16 +1653,19 @@ export class WSAPI {
|
|
|
1651
1653
|
* console.log(result);
|
|
1652
1654
|
* });
|
|
1653
1655
|
* ```
|
|
1654
|
-
*
|
|
1656
|
+
*
|
|
1655
1657
|
* **Visitor mode: not supported**
|
|
1656
|
-
*
|
|
1658
|
+
*
|
|
1659
|
+
* @param params.jp_template_id - Jackpot template id (required; throws if missing)
|
|
1660
|
+
* @param params.limit - Page size (server default 20 when omitted)
|
|
1661
|
+
* @param params.offset - Offset into the winner list
|
|
1657
1662
|
*/
|
|
1658
1663
|
|
|
1659
1664
|
public async getJackpotWinners({
|
|
1660
1665
|
limit,
|
|
1661
1666
|
offset,
|
|
1662
1667
|
jp_template_id,
|
|
1663
|
-
}
|
|
1668
|
+
}: {
|
|
1664
1669
|
limit?: number;
|
|
1665
1670
|
offset?: number;
|
|
1666
1671
|
jp_template_id?: number;
|
|
@@ -1793,7 +1798,7 @@ export class WSAPI {
|
|
|
1793
1798
|
* **Example**:
|
|
1794
1799
|
*
|
|
1795
1800
|
* ```javascript
|
|
1796
|
-
* _smartico.api.
|
|
1801
|
+
* _smartico.api.getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
|
|
1797
1802
|
* console.log(result);
|
|
1798
1803
|
* });
|
|
1799
1804
|
* ```
|
|
@@ -1801,7 +1806,7 @@ export class WSAPI {
|
|
|
1801
1806
|
* **Example in the Visitor mode**:
|
|
1802
1807
|
*
|
|
1803
1808
|
* ```javascript
|
|
1804
|
-
* _smartico.vapi('EN').
|
|
1809
|
+
* _smartico.vapi('EN').getRaffleDrawRunsHistory({ raffle_id: 156, draw_id: 432 }).then((result) => {
|
|
1805
1810
|
* console.log(result);
|
|
1806
1811
|
* });
|
|
1807
1812
|
* ```
|
|
@@ -1809,6 +1814,7 @@ export class WSAPI {
|
|
|
1809
1814
|
*/
|
|
1810
1815
|
|
|
1811
1816
|
public async getRaffleDrawRunsHistory(props: { raffle_id: number; draw_id?: number }): Promise<TRaffleDrawRun[]> {
|
|
1817
|
+
|
|
1812
1818
|
const res = await this.api.getRaffleDrawRunsHistory(this.userExtId, props);
|
|
1813
1819
|
|
|
1814
1820
|
if (!props.raffle_id) {
|
|
@@ -1819,7 +1825,7 @@ export class WSAPI {
|
|
|
1819
1825
|
}
|
|
1820
1826
|
|
|
1821
1827
|
/**
|
|
1822
|
-
* Returns
|
|
1828
|
+
* Returns `err_code` and `err_message` after the call; `err_code` 0 means the request succeeded.
|
|
1823
1829
|
*
|
|
1824
1830
|
*
|
|
1825
1831
|
* **Example**:
|
|
@@ -1869,6 +1875,6 @@ export class WSAPI {
|
|
|
1869
1875
|
return {
|
|
1870
1876
|
err_code: r.errCode,
|
|
1871
1877
|
err_message: r.errMsg,
|
|
1872
|
-
}
|
|
1878
|
+
};
|
|
1873
1879
|
}
|
|
1874
1880
|
}
|
package/tsconfig.json
CHANGED
|
@@ -18,33 +18,55 @@
|
|
|
18
18
|
"src/WSAPI/WSAPITypes.ts",
|
|
19
19
|
"src/Tournaments/TournamentRegistrationStatus.ts",
|
|
20
20
|
"src/Tournaments/TournamentRegistrationType.ts",
|
|
21
|
+
"src/Tournaments/TournamentRegistrationError.ts",
|
|
22
|
+
"src/Tournaments/TournamentType.ts",
|
|
23
|
+
"src/Tournaments/TournamentPublicMeta.ts",
|
|
24
|
+
"src/Tournaments/TournamentInstanceStatus.ts",
|
|
21
25
|
"src/Tournaments/Tournament.ts",
|
|
22
26
|
"src/Tournaments/TournamentPlayer.ts",
|
|
23
27
|
"src/Tournaments/TournamentPrize.ts",
|
|
24
28
|
"src/Tournaments/GetTournamentInfoResponse.ts",
|
|
25
29
|
"src/Bonuses/BonusStatus.ts",
|
|
26
30
|
"src/Bonuses/Bonus.ts",
|
|
31
|
+
"src/Bonuses/BonusMetaMap.ts",
|
|
32
|
+
"src/Bonuses/BonusTemplateMetaMap.ts",
|
|
27
33
|
"src/MiniGames/index.ts",
|
|
28
34
|
"src/MiniGames/SAWWinningHistoryResponse.ts",
|
|
29
35
|
"src/CustomSections/AchCustomSection.ts",
|
|
30
36
|
"src/CustomSections/UICustomSection.ts",
|
|
37
|
+
"src/CustomSections/GetCustomSectionsResponse.ts",
|
|
31
38
|
"src/Store/BuyStoreItemErrorCode.ts",
|
|
32
39
|
"src/Store/StoreItem.ts",
|
|
40
|
+
"src/Store/StoreItemType.ts",
|
|
41
|
+
"src/Store/StoreItemPublicMeta.ts",
|
|
42
|
+
"src/Store/StoreItemPurchaseType.ts",
|
|
33
43
|
"src/Store/StoreCategory.ts",
|
|
34
44
|
"src/Store/StoreCategoryPublicMeta.ts",
|
|
35
45
|
"src/Leaderboard/LeaderBoardPeriodType.ts",
|
|
36
46
|
"src/Base/AchRelatedGame.ts",
|
|
47
|
+
"src/Core/ActivityTypeLimited.ts",
|
|
37
48
|
"src/Jackpots/index.ts",
|
|
38
49
|
"src/Raffle/index.ts",
|
|
39
50
|
"src/Missions/AchievementAvailabilityStatus.ts",
|
|
51
|
+
"src/Missions/AchievementType.ts",
|
|
52
|
+
"src/Missions/AchievementStatus.ts",
|
|
53
|
+
"src/Missions/ScheduledMissionType.ts",
|
|
54
|
+
"src/Missions/BadgesTimeLimitStates.ts",
|
|
40
55
|
"src/Missions/UserAchievement.ts",
|
|
41
56
|
"src/Missions/UserAchievementTask.ts",
|
|
57
|
+
"src/Missions/AchievementTaskPublicMeta.ts",
|
|
58
|
+
"src/Missions/AchievementTaskType.ts",
|
|
59
|
+
"src/Missions/UserAchievementTaskAffectsProgress.ts",
|
|
60
|
+
"src/Missions/GetRelatedAchTourResponse.ts",
|
|
42
61
|
"src/Missions/AchievementCategory.ts",
|
|
43
62
|
"src/Missions/AchCategoryPublicMeta.ts",
|
|
44
63
|
"src/Missions/AchievementPublicMeta.ts",
|
|
45
64
|
"src/Level/Level.ts",
|
|
46
65
|
"src/Level/LevelPublicMeta.ts",
|
|
47
|
-
"src/Inbox/InboxMessage.ts"
|
|
66
|
+
"src/Inbox/InboxMessage.ts",
|
|
67
|
+
"src/Inbox/InboxMessageType.ts",
|
|
68
|
+
"src/Inbox/OpenLinksType.ts",
|
|
69
|
+
"src/Inbox/InboxReadStatus.ts"
|
|
48
70
|
],
|
|
49
71
|
"out": "docs/api",
|
|
50
72
|
"plugin": ["typedoc-plugin-markdown", "typedoc-plugin-merge-modules"],
|