@smartico/public-api 0.0.336 → 0.0.338
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/CustomSections/AchCustomSection.d.ts +1 -1
- package/dist/CustomSections/UICustomSection.d.ts +1 -0
- package/dist/Store/StoreItemPublicMeta.d.ts +3 -0
- package/dist/WSAPI/WSAPITypes.d.ts +8 -0
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +7 -2
- package/dist/index.modern.mjs.map +1 -1
- package/docs/enums/AchCustomSectionType.md +2 -2
- package/docs/interfaces/AchCategory.md +19 -0
- package/docs/interfaces/AchCategoryPublicMeta.md +19 -0
- package/docs/interfaces/AchCustomSectionType.md +21 -0
- package/docs/interfaces/AchievementPublicMeta.md +155 -0
- package/docs/interfaces/Bonus.md +107 -0
- package/docs/interfaces/GetTournamentInfoResponse.md +37 -0
- package/docs/interfaces/InboxMessage.md +51 -0
- package/docs/interfaces/InboxMessageBody.md +64 -0
- package/docs/interfaces/Level.md +67 -0
- package/docs/interfaces/LevelPublicMeta.md +51 -0
- package/docs/interfaces/SAWPrizesHistory.md +18 -0
- package/docs/interfaces/StoreCategory.md +19 -0
- package/docs/interfaces/StoreCategoryPublicMeta.md +19 -0
- package/docs/interfaces/StoreItem.md +59 -0
- package/docs/interfaces/TStoreItem.md +25 -1
- package/docs/interfaces/TUICustomSection.md +8 -0
- package/docs/interfaces/Tournament.md +187 -0
- package/docs/interfaces/TournamentPlayer.md +75 -0
- package/docs/interfaces/TournamentPrize.md +75 -0
- package/docs/interfaces/UICustomSection.md +123 -0
- package/docs/interfaces/UserAchievement.md +275 -0
- package/docs/interfaces/UserAchievementTask.md +67 -0
- package/docs/native/ADDING_METHODS.md +38 -0
- package/docs/native/PROTOCOL.md +2264 -0
- package/package.json +1 -1
- package/src/CustomSections/AchCustomSection.ts +1 -1
- package/src/CustomSections/UICustomSection.ts +7 -0
- package/src/Store/StoreItem.ts +3 -0
- package/src/Store/StoreItemPublicMeta.ts +3 -0
- package/src/WSAPI/WSAPITypes.ts +8 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Interface: StoreItem
|
|
2
|
+
|
|
3
|
+
Store item object (raw, non-transformed).
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### id
|
|
8
|
+
|
|
9
|
+
• **id**: `number`
|
|
10
|
+
|
|
11
|
+
Item ID
|
|
12
|
+
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
### itemTypeId
|
|
16
|
+
|
|
17
|
+
• **itemTypeId**: `number`
|
|
18
|
+
|
|
19
|
+
Item type ID
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### itemPublicMeta
|
|
24
|
+
|
|
25
|
+
• **itemPublicMeta**: `StoreItemPublicMeta`
|
|
26
|
+
|
|
27
|
+
Public metadata for UI display (name, description, price, image, etc.)
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### categoryIds
|
|
32
|
+
|
|
33
|
+
• **categoryIds**: `number[]`
|
|
34
|
+
|
|
35
|
+
Array of category IDs this item belongs to
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### canBuy
|
|
40
|
+
|
|
41
|
+
• **canBuy**: `boolean`
|
|
42
|
+
|
|
43
|
+
Whether the user can currently buy this item
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### shopPool
|
|
48
|
+
|
|
49
|
+
• **shopPool**: `number`
|
|
50
|
+
|
|
51
|
+
Available stock in the shop pool
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### activeTillDate
|
|
56
|
+
|
|
57
|
+
• **activeTillDate**: `number`
|
|
58
|
+
|
|
59
|
+
Timestamp when the item expires (optional)
|
|
@@ -38,7 +38,7 @@ ___
|
|
|
38
38
|
|
|
39
39
|
### type
|
|
40
40
|
|
|
41
|
-
• **type**: ``"
|
|
41
|
+
• **type**: ``"unknown"`` \| ``"bonus"`` \| ``"tangible"`` \| ``"minigamespin"`` \| ``"changelevel"`` \| ``"prizedrop"`` \| ``"raffleticket"``
|
|
42
42
|
|
|
43
43
|
Type of the store item. Can be 'bonus' or 'tangible' or different others.
|
|
44
44
|
|
|
@@ -214,3 +214,27 @@ ___
|
|
|
214
214
|
• `Optional` **custom\_ribbon\_image**: `string`
|
|
215
215
|
|
|
216
216
|
The custom ribbon image of the discounted price.
|
|
217
|
+
|
|
218
|
+
___
|
|
219
|
+
|
|
220
|
+
### custom\_section\_id
|
|
221
|
+
|
|
222
|
+
• `Optional` **custom\_section\_id**: `number`
|
|
223
|
+
|
|
224
|
+
The ID of the custom section where the store item is assigned
|
|
225
|
+
|
|
226
|
+
___
|
|
227
|
+
|
|
228
|
+
### only\_in\_custom\_section
|
|
229
|
+
|
|
230
|
+
• `Optional` **only\_in\_custom\_section**: `boolean`
|
|
231
|
+
|
|
232
|
+
The indicator if the store item is visible only in the custom section and should be hidden from the main overview of store items
|
|
233
|
+
|
|
234
|
+
___
|
|
235
|
+
|
|
236
|
+
### custom\_section\_type\_id
|
|
237
|
+
|
|
238
|
+
• `Optional` **custom\_section\_type\_id**: `number`
|
|
239
|
+
|
|
240
|
+
ID of specific Custom Section type
|
|
@@ -127,3 +127,11 @@ ___
|
|
|
127
127
|
• `Optional` **ach\_category\_ids**: `number`[]
|
|
128
128
|
|
|
129
129
|
List of IDs of the categories where the badge item is assigned, information about categories can be retrieved with getAchCategories method
|
|
130
|
+
|
|
131
|
+
___
|
|
132
|
+
|
|
133
|
+
### shop\_category\_ids
|
|
134
|
+
|
|
135
|
+
• `Optional` **shop\_category\_ids**: `number`[]
|
|
136
|
+
|
|
137
|
+
List of IDs of the categories where the store item is assigned, information about categories can be retrieved with getShopCategories method
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
# Interface: Tournament
|
|
2
|
+
|
|
3
|
+
Tournament object (raw, non-transformed).
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### tournamentId
|
|
8
|
+
|
|
9
|
+
• **tournamentId**: `number`
|
|
10
|
+
|
|
11
|
+
ID of tournament template
|
|
12
|
+
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
### tournamentInstanceId
|
|
16
|
+
|
|
17
|
+
• **tournamentInstanceId**: `number`
|
|
18
|
+
|
|
19
|
+
ID of tournament instance. Generated every time when tournament based on specific template is scheduled for run
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### tournamentType
|
|
24
|
+
|
|
25
|
+
• **tournamentType**: `number`
|
|
26
|
+
|
|
27
|
+
Type of the tournament
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### publicMeta
|
|
32
|
+
|
|
33
|
+
• **publicMeta**: `TournamentPublicMeta`
|
|
34
|
+
|
|
35
|
+
Meta information about tournament that should be used to build UI
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### buyInAmount
|
|
40
|
+
|
|
41
|
+
• **buyInAmount**: `number`
|
|
42
|
+
|
|
43
|
+
Cost of registration in the tournament in gamification points
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### startTime
|
|
48
|
+
|
|
49
|
+
• **startTime**: `string`
|
|
50
|
+
|
|
51
|
+
The time when tournament is going to start (ISO string)
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### endTime
|
|
56
|
+
|
|
57
|
+
• **endTime**: `string`
|
|
58
|
+
|
|
59
|
+
The time when tournament is going to finish (ISO string)
|
|
60
|
+
|
|
61
|
+
___
|
|
62
|
+
|
|
63
|
+
### startTimeTs
|
|
64
|
+
|
|
65
|
+
• **startTimeTs**: `number`
|
|
66
|
+
|
|
67
|
+
The time when tournament is going to start (Unix timestamp)
|
|
68
|
+
|
|
69
|
+
___
|
|
70
|
+
|
|
71
|
+
### endTimeTs
|
|
72
|
+
|
|
73
|
+
• **endTimeTs**: `number`
|
|
74
|
+
|
|
75
|
+
The time when tournament is going to finish (Unix timestamp)
|
|
76
|
+
|
|
77
|
+
___
|
|
78
|
+
|
|
79
|
+
### registrationCount
|
|
80
|
+
|
|
81
|
+
• **registrationCount**: `number`
|
|
82
|
+
|
|
83
|
+
Number of users registered in the tournament
|
|
84
|
+
|
|
85
|
+
___
|
|
86
|
+
|
|
87
|
+
### registrationType
|
|
88
|
+
|
|
89
|
+
• **registrationType**: `number`
|
|
90
|
+
|
|
91
|
+
Type of registration in the tournament
|
|
92
|
+
|
|
93
|
+
___
|
|
94
|
+
|
|
95
|
+
### tournamentRegistrationStatus
|
|
96
|
+
|
|
97
|
+
• **tournamentRegistrationStatus**: `number`
|
|
98
|
+
|
|
99
|
+
Status of registration in the tournament for current user
|
|
100
|
+
|
|
101
|
+
___
|
|
102
|
+
|
|
103
|
+
### tournamentInstanceStatus
|
|
104
|
+
|
|
105
|
+
• **tournamentInstanceStatus**: `number`
|
|
106
|
+
|
|
107
|
+
Status of tournament instance
|
|
108
|
+
|
|
109
|
+
___
|
|
110
|
+
|
|
111
|
+
### isUserRegistered
|
|
112
|
+
|
|
113
|
+
• **isUserRegistered**: `boolean`
|
|
114
|
+
|
|
115
|
+
Flag indicating if current user is registered in the tournament
|
|
116
|
+
|
|
117
|
+
___
|
|
118
|
+
|
|
119
|
+
### allowLateRegistration
|
|
120
|
+
|
|
121
|
+
• **allowLateRegistration**: `boolean`
|
|
122
|
+
|
|
123
|
+
Indicator if tournament allows later registration when tournament is already started
|
|
124
|
+
|
|
125
|
+
___
|
|
126
|
+
|
|
127
|
+
### playersMinCount
|
|
128
|
+
|
|
129
|
+
• **playersMinCount**: `number`
|
|
130
|
+
|
|
131
|
+
Minimum number of participants for this tournament
|
|
132
|
+
|
|
133
|
+
___
|
|
134
|
+
|
|
135
|
+
### playersMaxCount
|
|
136
|
+
|
|
137
|
+
• **playersMaxCount**: `number`
|
|
138
|
+
|
|
139
|
+
Maximum number of participants for this tournament
|
|
140
|
+
|
|
141
|
+
___
|
|
142
|
+
|
|
143
|
+
### durationMs
|
|
144
|
+
|
|
145
|
+
• **durationMs**: `number`
|
|
146
|
+
|
|
147
|
+
Tournament duration in milliseconds
|
|
148
|
+
|
|
149
|
+
___
|
|
150
|
+
|
|
151
|
+
### prizeStructure
|
|
152
|
+
|
|
153
|
+
• **prizeStructure**: `object`
|
|
154
|
+
|
|
155
|
+
Prizes structure with array of TournamentPrize objects
|
|
156
|
+
|
|
157
|
+
___
|
|
158
|
+
|
|
159
|
+
### tournamentPlayer
|
|
160
|
+
|
|
161
|
+
• **tournamentPlayer**: `TournamentPlayer`
|
|
162
|
+
|
|
163
|
+
Information about current user in tournament
|
|
164
|
+
|
|
165
|
+
___
|
|
166
|
+
|
|
167
|
+
### related\_games
|
|
168
|
+
|
|
169
|
+
• **related\_games**: `AchRelatedGame[]`
|
|
170
|
+
|
|
171
|
+
List of casino games related to the tournament
|
|
172
|
+
|
|
173
|
+
___
|
|
174
|
+
|
|
175
|
+
### minScoreToWin
|
|
176
|
+
|
|
177
|
+
• **minScoreToWin**: `number`
|
|
178
|
+
|
|
179
|
+
Minimum score points required to qualify for a prize
|
|
180
|
+
|
|
181
|
+
___
|
|
182
|
+
|
|
183
|
+
### hideLeaderboardsMinScores
|
|
184
|
+
|
|
185
|
+
• **hideLeaderboardsMinScores**: `boolean`
|
|
186
|
+
|
|
187
|
+
When enabled, users who don't meet minimum qualifying score are hidden from Leaderboard
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Interface: TournamentPlayer
|
|
2
|
+
|
|
3
|
+
Tournament player/participant object (raw, non-transformed).
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### userAltName
|
|
8
|
+
|
|
9
|
+
• **userAltName**: `string`
|
|
10
|
+
|
|
11
|
+
User's display name (public username)
|
|
12
|
+
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
### cleanExtUserId
|
|
16
|
+
|
|
17
|
+
• **cleanExtUserId**: `string`
|
|
18
|
+
|
|
19
|
+
Clean external user ID
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### crmBrandId
|
|
24
|
+
|
|
25
|
+
• **crmBrandId**: `number`
|
|
26
|
+
|
|
27
|
+
CRM brand ID
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### position
|
|
32
|
+
|
|
33
|
+
• **position**: `number`
|
|
34
|
+
|
|
35
|
+
User's position in the tournament leaderboard
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### scores
|
|
40
|
+
|
|
41
|
+
• **scores**: `number`
|
|
42
|
+
|
|
43
|
+
User's score in the tournament
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### isMe
|
|
48
|
+
|
|
49
|
+
• **isMe**: `boolean`
|
|
50
|
+
|
|
51
|
+
Whether this is the current user
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### userId
|
|
56
|
+
|
|
57
|
+
• **userId**: `number`
|
|
58
|
+
|
|
59
|
+
Internal user ID
|
|
60
|
+
|
|
61
|
+
___
|
|
62
|
+
|
|
63
|
+
### avatar\_id
|
|
64
|
+
|
|
65
|
+
• **avatar\_id**: `string`
|
|
66
|
+
|
|
67
|
+
Avatar ID
|
|
68
|
+
|
|
69
|
+
___
|
|
70
|
+
|
|
71
|
+
### avatar\_url
|
|
72
|
+
|
|
73
|
+
• **avatar\_url**: `string`
|
|
74
|
+
|
|
75
|
+
Avatar URL (optional)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Interface: TournamentPrize
|
|
2
|
+
|
|
3
|
+
Tournament prize object (raw, non-transformed).
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### name
|
|
8
|
+
|
|
9
|
+
• **name**: `string`
|
|
10
|
+
|
|
11
|
+
Prize name
|
|
12
|
+
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
### description
|
|
16
|
+
|
|
17
|
+
• **description**: `string`
|
|
18
|
+
|
|
19
|
+
Prize description
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### image\_url
|
|
24
|
+
|
|
25
|
+
• **image\_url**: `string`
|
|
26
|
+
|
|
27
|
+
Prize image URL
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### place\_from
|
|
32
|
+
|
|
33
|
+
• **place\_from**: `number`
|
|
34
|
+
|
|
35
|
+
Starting place for this prize (e.g., 1 for 1st place)
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### place\_to
|
|
40
|
+
|
|
41
|
+
• **place\_to**: `number`
|
|
42
|
+
|
|
43
|
+
Ending place for this prize (e.g., 3 for places 1-3)
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### type
|
|
48
|
+
|
|
49
|
+
• **type**: `number`
|
|
50
|
+
|
|
51
|
+
Prize type (ActivityTypeLimited)
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### points
|
|
56
|
+
|
|
57
|
+
• **points**: `number`
|
|
58
|
+
|
|
59
|
+
Points reward amount
|
|
60
|
+
|
|
61
|
+
___
|
|
62
|
+
|
|
63
|
+
### gems
|
|
64
|
+
|
|
65
|
+
• **gems**: `number`
|
|
66
|
+
|
|
67
|
+
Gems reward amount
|
|
68
|
+
|
|
69
|
+
___
|
|
70
|
+
|
|
71
|
+
### diamonds
|
|
72
|
+
|
|
73
|
+
• **diamonds**: `number`
|
|
74
|
+
|
|
75
|
+
Diamonds reward amount
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
# Interface: UICustomSection
|
|
2
|
+
|
|
3
|
+
Custom UI section configuration.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### body
|
|
8
|
+
|
|
9
|
+
• **body**: `string`
|
|
10
|
+
|
|
11
|
+
HTML body content for the section
|
|
12
|
+
|
|
13
|
+
___
|
|
14
|
+
|
|
15
|
+
### menu\_img
|
|
16
|
+
|
|
17
|
+
• **menu\_img**: `string`
|
|
18
|
+
|
|
19
|
+
Menu icon image URL
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### menu\_name
|
|
24
|
+
|
|
25
|
+
• **menu\_name**: `string`
|
|
26
|
+
|
|
27
|
+
Menu display name (translated)
|
|
28
|
+
|
|
29
|
+
___
|
|
30
|
+
|
|
31
|
+
### custom\_skin\_images
|
|
32
|
+
|
|
33
|
+
• **custom\_skin\_images**: `string`
|
|
34
|
+
|
|
35
|
+
Custom skin images configuration
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### section\_type\_id
|
|
40
|
+
|
|
41
|
+
• **section\_type\_id**: [`AchCustomSectionType`](AchCustomSectionType.md)
|
|
42
|
+
|
|
43
|
+
Section type identifier
|
|
44
|
+
|
|
45
|
+
___
|
|
46
|
+
|
|
47
|
+
### theme
|
|
48
|
+
|
|
49
|
+
• **theme**: `string`
|
|
50
|
+
|
|
51
|
+
Theme identifier (e.g., "valentines-light", "euro-2024", "generic")
|
|
52
|
+
|
|
53
|
+
___
|
|
54
|
+
|
|
55
|
+
### generic\_custom\_css
|
|
56
|
+
|
|
57
|
+
• **generic\_custom\_css**: `string`
|
|
58
|
+
|
|
59
|
+
Custom CSS for the section
|
|
60
|
+
|
|
61
|
+
___
|
|
62
|
+
|
|
63
|
+
### mission\_tabs\_options
|
|
64
|
+
|
|
65
|
+
• **mission\_tabs\_options**: `number`
|
|
66
|
+
|
|
67
|
+
Mission tabs display option (1=ONLY_OVERVIEW, 2=NO_OVERVIEW, 3=ALL)
|
|
68
|
+
|
|
69
|
+
___
|
|
70
|
+
|
|
71
|
+
### overview\_missions\_filter
|
|
72
|
+
|
|
73
|
+
• **overview\_missions\_filter**: `number`
|
|
74
|
+
|
|
75
|
+
Filter for overview missions display
|
|
76
|
+
|
|
77
|
+
___
|
|
78
|
+
|
|
79
|
+
### overview\_missions\_count
|
|
80
|
+
|
|
81
|
+
• **overview\_missions\_count**: `number`
|
|
82
|
+
|
|
83
|
+
Number of missions to show in overview
|
|
84
|
+
|
|
85
|
+
___
|
|
86
|
+
|
|
87
|
+
### liquid\_entity\_data
|
|
88
|
+
|
|
89
|
+
• **liquid\_entity\_data**: `number[]`
|
|
90
|
+
|
|
91
|
+
Entity data types for liquid templates
|
|
92
|
+
|
|
93
|
+
___
|
|
94
|
+
|
|
95
|
+
### ach\_tournament\_id
|
|
96
|
+
|
|
97
|
+
• **ach\_tournament\_id**: `number`
|
|
98
|
+
|
|
99
|
+
Associated tournament ID
|
|
100
|
+
|
|
101
|
+
___
|
|
102
|
+
|
|
103
|
+
### show\_raw\_data
|
|
104
|
+
|
|
105
|
+
• **show\_raw\_data**: `boolean`
|
|
106
|
+
|
|
107
|
+
Whether to show raw data
|
|
108
|
+
|
|
109
|
+
___
|
|
110
|
+
|
|
111
|
+
### liquid\_template
|
|
112
|
+
|
|
113
|
+
• **liquid\_template**: `number`
|
|
114
|
+
|
|
115
|
+
Liquid template ID
|
|
116
|
+
|
|
117
|
+
___
|
|
118
|
+
|
|
119
|
+
### ach\_category\_ids
|
|
120
|
+
|
|
121
|
+
• **ach\_category\_ids**: `number[]`
|
|
122
|
+
|
|
123
|
+
Associated achievement category IDs
|