@smartico/public-api 0.0.380 → 0.0.381
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/CLAUDE.md +103 -0
- package/README.md +32 -10
- package/dist/Base/ClassId.d.ts +2 -0
- package/dist/Jackpots/JackpotDetails.d.ts +14 -15
- package/dist/Jackpots/JackpotPot.d.ts +10 -6
- package/dist/Raffle/GetRaffleWonPrizesRequest.d.ts +9 -0
- package/dist/Raffle/GetRaffleWonPrizesResponse.d.ts +52 -0
- package/dist/Raffle/index.d.ts +2 -0
- package/dist/SmarticoAPI.d.ts +6 -1
- package/dist/SmarticoLib/index.d.ts +5 -1
- package/dist/WSAPI/WSAPIAvatars.d.ts +267 -49
- package/dist/WSAPI/WSAPIBonuses.d.ts +224 -10
- package/dist/WSAPI/WSAPIGamePick.d.ts +538 -253
- package/dist/WSAPI/WSAPIGeneral.d.ts +156 -14
- package/dist/WSAPI/WSAPIInbox.d.ts +547 -58
- package/dist/WSAPI/WSAPIJackpots.d.ts +292 -57
- package/dist/WSAPI/WSAPILeaderBoard.d.ts +127 -13
- package/dist/WSAPI/WSAPIMiniGames.d.ts +465 -49
- package/dist/WSAPI/WSAPIRaffles.d.ts +576 -52
- package/dist/WSAPI/WSAPITournaments.d.ts +3 -3
- package/dist/WSAPI/WSAPITypes.d.ts +243 -132
- package/dist/WSAPI/WSAPIUser.d.ts +193 -43
- package/dist/index.js +3409 -615
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +3391 -608
- package/dist/index.modern.mjs.map +1 -1
- package/docs/Callbacks.md +162 -0
- package/docs/SmarticoObject.md +445 -0
- package/docs/Transforms.md +99 -0
- package/docs/api/README.md +26 -0
- package/docs/api/classes/WSAPIAvatars.md +282 -54
- package/docs/api/classes/WSAPIBonuses.md +233 -12
- package/docs/api/classes/WSAPIClans.md +380 -10
- package/docs/api/classes/WSAPIGamePick.md +555 -26
- package/docs/api/classes/WSAPIGeneral.md +165 -16
- package/docs/api/classes/WSAPIInbox.md +588 -64
- package/docs/api/classes/WSAPIJackpots.md +320 -66
- package/docs/api/classes/WSAPILeaderBoard.md +133 -15
- package/docs/api/classes/WSAPIMiniGames.md +501 -64
- package/docs/api/classes/WSAPIMissions.md +58 -79
- package/docs/api/classes/WSAPIRaffles.md +647 -69
- package/docs/api/classes/WSAPIStore.md +83 -108
- package/docs/api/classes/WSAPITournaments.md +495 -28
- package/docs/api/classes/WSAPIUser.md +520 -83
- package/docs/api/documents/Callbacks.md +162 -0
- package/docs/api/documents/SmarticoObject.md +445 -0
- package/docs/api/documents/Transforms.md +99 -0
- package/docs/api/enumerations/BonusStatus-1.md +11 -6
- package/docs/api/enumerations/JoinClanErrorCode.md +81 -0
- package/docs/api/enumerations/TournamentRegistrationError.md +12 -0
- package/docs/api/functions/clanTournamentPlayersTransform.md +13 -0
- package/docs/api/interfaces/AvatarCustomized.md +25 -0
- package/docs/api/interfaces/AvatarDefinition.md +94 -0
- package/docs/api/interfaces/AvatarPrompt.md +45 -0
- package/docs/api/interfaces/BonusMetaMap-1.md +4 -1
- package/docs/api/interfaces/BonusTemplateMetaMap-1.md +9 -4
- package/docs/api/interfaces/Clan.md +4 -0
- package/docs/api/interfaces/ClanInfo.md +109 -0
- package/docs/api/interfaces/ClanMember.md +53 -0
- package/docs/api/interfaces/ClanTournamentPlayerRaw.md +67 -0
- package/docs/api/interfaces/GemsDiamondsLog.md +43 -0
- package/docs/api/interfaces/GetClanInfoResponse.md +61 -0
- package/docs/api/interfaces/GetClanTournamentPlayersResponse.md +81 -0
- package/docs/api/interfaces/GetRaffleWonPrizesRequest.md +59 -0
- package/docs/api/interfaces/GetRaffleWonPrizesResponse.md +95 -0
- package/docs/api/interfaces/InboxMarkMessageAction.md +10 -2
- package/docs/api/interfaces/JackpotDetails.md +14 -15
- package/docs/api/interfaces/JackpotPot.md +9 -6
- package/docs/api/interfaces/LeaderBoardDetailsT.md +14 -8
- package/docs/api/interfaces/LeaderBoardUserT.md +8 -5
- package/docs/api/interfaces/LeaderBoardsRewardsT.md +7 -0
- package/docs/api/interfaces/PointsLog.md +43 -0
- package/docs/api/interfaces/RaffleWonPrize.md +59 -0
- package/docs/api/interfaces/RaffleWonPrizePublicMeta.md +27 -0
- package/docs/api/interfaces/RaffleWonPrizeUser.md +43 -0
- package/docs/api/interfaces/TAchCategory.md +2 -7
- package/docs/api/interfaces/TAvatarCustomized.md +4 -4
- package/docs/api/interfaces/TAvatarDefinition.md +13 -14
- package/docs/api/interfaces/TAvatarPrompt.md +6 -6
- package/docs/api/interfaces/TBonus.md +16 -8
- package/docs/api/interfaces/TBuyStoreItemResult.md +4 -29
- package/docs/api/interfaces/TClaimBonusResult.md +5 -5
- package/docs/api/interfaces/TClan.md +8 -4
- package/docs/api/interfaces/TClanInfo.md +47 -0
- package/docs/api/interfaces/TClanJoinResult.md +11 -1
- package/docs/api/interfaces/TClanTournamentPlayer.md +55 -0
- package/docs/api/interfaces/TClanTournamentPlayersResult.md +27 -0
- package/docs/api/interfaces/TClans.md +3 -1
- package/docs/api/interfaces/TGetTranslations.md +4 -0
- package/docs/api/interfaces/TInboxMessage.md +14 -6
- package/docs/api/interfaces/TInboxMessageBody.md +18 -12
- package/docs/api/interfaces/TLevel.md +17 -20
- package/docs/api/interfaces/TLevelCurrent.md +19 -18
- package/docs/api/interfaces/TMiniGamePlayBatchResult.md +14 -6
- package/docs/api/interfaces/TMiniGamePlayResult.md +9 -4
- package/docs/api/interfaces/TMissionClaimRewardResult.md +1 -9
- package/docs/api/interfaces/TMissionOptInResult.md +1 -5
- package/docs/api/interfaces/TMissionOrBadge.md +4 -7
- package/docs/api/interfaces/TRaffleOptinResponse.md +4 -2
- package/docs/api/interfaces/TSegmentCheckResult.md +10 -0
- package/docs/api/interfaces/TSetAvatarResult.md +3 -3
- package/docs/api/interfaces/TStoreItem.md +3 -13
- package/docs/api/interfaces/TTournament.md +1 -1
- package/docs/api/interfaces/TTournamentDetailed.md +1 -1
- package/docs/api/interfaces/TTournamentRegistrationResult.md +4 -2
- package/docs/api/interfaces/TUICustomSection.md +23 -19
- package/docs/api/interfaces/TUserProfile.md +18 -16
- package/docs/api/interfaces/TransformedRaffleClaimPrizeResponse.md +6 -2
- package/docs/api/interfaces/UserLevelExtraCountersT.md +9 -2
- package/docs/api/type-aliases/ActivityLogEntry.md +3 -0
- package/docs/native/ADDING_METHODS.md +7 -2
- package/docs/native/PROTOCOL.md +337 -0
- package/docs/ui/avatars/UIGuide_getAvatarPrompts.md +100 -0
- package/docs/ui/avatars/UIGuide_getAvatarsCustomized.md +90 -0
- package/docs/ui/avatars/UIGuide_getAvatarsList.md +105 -0
- package/docs/ui/avatars/UIGuide_setAvatar.md +118 -0
- package/docs/ui/bonuses/UIGuide_claimBonus.md +144 -0
- package/docs/ui/bonuses/UIGuide_getBonuses.md +176 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetActiveRound.md +99 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetActiveRounds.md +76 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetBoard.md +81 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetGameInfo.md +78 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetHistory.md +55 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetRoundInfoForUser.md +71 -0
- package/docs/ui/gamepick/UIGuide_gamePickGetUserInfo.md +64 -0
- package/docs/ui/gamepick/UIGuide_gamePickSubmitSelection.md +103 -0
- package/docs/ui/gamepick/UIGuide_gamePickSubmitSelectionQuiz.md +67 -0
- package/docs/ui/general/UIGuide_getCustomSections.md +137 -0
- package/docs/ui/general/UIGuide_getRelatedItemsForGame.md +140 -0
- package/docs/ui/inbox/UIGuide_deleteInboxMessage.md +135 -0
- package/docs/ui/inbox/UIGuide_getInboxMessageBody.md +133 -0
- package/docs/ui/inbox/UIGuide_getInboxMessages.md +186 -0
- package/docs/ui/inbox/UIGuide_markInboxMessageAsRead.md +122 -0
- package/docs/ui/inbox/UIGuide_markUnmarkInboxMessageAsFavorite.md +84 -0
- package/docs/ui/jackpots/UIGuide_getJackpotEligibleGames.md +73 -0
- package/docs/ui/jackpots/UIGuide_getJackpotWinners.md +83 -0
- package/docs/ui/jackpots/UIGuide_jackpotGet.md +138 -0
- package/docs/ui/jackpots/UIGuide_jackpotOptIn.md +85 -0
- package/docs/ui/jackpots/UIGuide_jackpotOptOut.md +65 -0
- package/docs/ui/leaderboard/UIGuide_getLeaderBoard.md +166 -0
- package/docs/ui/minigames/UIGuide_getMiniGames.md +153 -0
- package/docs/ui/minigames/UIGuide_getMiniGamesHistory.md +90 -0
- package/docs/ui/minigames/UIGuide_playMiniGame.md +150 -0
- package/docs/ui/minigames/UIGuide_playMiniGameBatch.md +128 -0
- package/docs/ui/raffles/UIGuide_claimRafflePrize.md +99 -0
- package/docs/ui/raffles/UIGuide_getRaffleDrawRun.md +117 -0
- package/docs/ui/raffles/UIGuide_getRaffleDrawRunsHistory.md +92 -0
- package/docs/ui/raffles/UIGuide_getRaffleWonPrizes.md +120 -0
- package/docs/ui/raffles/UIGuide_getRaffles.md +175 -0
- package/docs/ui/raffles/UIGuide_requestRaffleOptin.md +114 -0
- package/docs/ui/user/UIGuide_getActivityLog.md +130 -0
- package/docs/ui/user/UIGuide_getLevels.md +47 -42
- package/package.json +1 -1
- package/src/Base/ClassId.ts +2 -0
- package/src/Jackpots/JackpotDetails.ts +14 -15
- package/src/Jackpots/JackpotPot.ts +10 -6
- package/src/Raffle/GetRaffleWonPrizesRequest.ts +12 -0
- package/src/Raffle/GetRaffleWonPrizesResponse.ts +56 -0
- package/src/Raffle/index.ts +3 -1
- package/src/SmarticoAPI.ts +14 -1
- package/src/SmarticoLib/index.ts +4 -0
- package/src/WSAPI/WSAPIAvatars.ts +267 -49
- package/src/WSAPI/WSAPIBonuses.ts +224 -10
- package/src/WSAPI/WSAPIGamePick.ts +538 -253
- package/src/WSAPI/WSAPIGeneral.ts +156 -14
- package/src/WSAPI/WSAPIInbox.ts +545 -56
- package/src/WSAPI/WSAPIJackpots.ts +297 -61
- package/src/WSAPI/WSAPILeaderBoard.ts +127 -13
- package/src/WSAPI/WSAPIMiniGames.ts +465 -49
- package/src/WSAPI/WSAPIRaffles.ts +592 -64
- package/src/WSAPI/WSAPITournaments.ts +3 -3
- package/src/WSAPI/WSAPITypes.ts +243 -132
- package/src/WSAPI/WSAPIUser.ts +193 -43
- package/tsconfig.json +9 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Interface: TClanInfo
|
|
2
2
|
|
|
3
3
|
TClanInfo describes the detailed info of a single clan including its members.
|
|
4
|
+
Returned by `_smartico.api.getClanInfo(clanId)`.
|
|
4
5
|
|
|
5
6
|
## Properties
|
|
6
7
|
|
|
@@ -8,12 +9,16 @@ TClanInfo describes the detailed info of a single clan including its members.
|
|
|
8
9
|
|
|
9
10
|
> **clan\_id**: `number`
|
|
10
11
|
|
|
12
|
+
Clan ID.
|
|
13
|
+
|
|
11
14
|
***
|
|
12
15
|
|
|
13
16
|
### public\_meta
|
|
14
17
|
|
|
15
18
|
> **public\_meta**: `object`
|
|
16
19
|
|
|
20
|
+
Translated clan metadata (name, description, image URL).
|
|
21
|
+
|
|
17
22
|
#### name
|
|
18
23
|
|
|
19
24
|
> **name**: `string`
|
|
@@ -32,80 +37,122 @@ TClanInfo describes the detailed info of a single clan including its members.
|
|
|
32
37
|
|
|
33
38
|
> **member\_count**: `number`
|
|
34
39
|
|
|
40
|
+
Current number of members in clan.
|
|
41
|
+
|
|
35
42
|
***
|
|
36
43
|
|
|
37
44
|
### capacity\_limit
|
|
38
45
|
|
|
39
46
|
> **capacity\_limit**: `number`
|
|
40
47
|
|
|
48
|
+
Max number of members allowed in clan.
|
|
49
|
+
|
|
41
50
|
***
|
|
42
51
|
|
|
43
52
|
### entry\_fee\_currency\_type\_id
|
|
44
53
|
|
|
45
54
|
> **entry\_fee\_currency\_type\_id**: `number`
|
|
46
55
|
|
|
56
|
+
Currency type for `entry_fee_amount`. `0` = points, `1` = gems,
|
|
57
|
+
`2` = diamonds, `3` = free.
|
|
58
|
+
|
|
47
59
|
***
|
|
48
60
|
|
|
49
61
|
### entry\_fee\_amount
|
|
50
62
|
|
|
51
63
|
> **entry\_fee\_amount**: `number`
|
|
52
64
|
|
|
65
|
+
Entry fee amount in the currency indicated by `entry_fee_currency_type_id`.
|
|
66
|
+
|
|
53
67
|
***
|
|
54
68
|
|
|
55
69
|
### rating\_position
|
|
56
70
|
|
|
57
71
|
> **rating\_position**: `number`
|
|
58
72
|
|
|
73
|
+
Global rank among all active clans in the label, by `rating_score` DESC.
|
|
74
|
+
`1` = highest-rated.
|
|
75
|
+
|
|
59
76
|
***
|
|
60
77
|
|
|
61
78
|
### rating\_score
|
|
62
79
|
|
|
63
80
|
> **rating\_score**: `number`
|
|
64
81
|
|
|
82
|
+
Clan rating score (higher is better).
|
|
83
|
+
|
|
65
84
|
***
|
|
66
85
|
|
|
67
86
|
### cooldown\_until
|
|
68
87
|
|
|
69
88
|
> **cooldown\_until**: `string`
|
|
70
89
|
|
|
90
|
+
User-level switch-cooldown expiry as ISO 8601 UTC string
|
|
91
|
+
("YYYY-MM-DDTHH:MM:SS" with no timezone suffix). `null` when no
|
|
92
|
+
cooldown. Same semantic as `TClans.cooldown_until` but always fresh
|
|
93
|
+
(the list version may be up to 30 s stale).
|
|
94
|
+
|
|
71
95
|
***
|
|
72
96
|
|
|
73
97
|
### members
|
|
74
98
|
|
|
75
99
|
> **members**: `object`[]
|
|
76
100
|
|
|
101
|
+
Members of this clan, server-ordered by `contribution_score` DESC
|
|
102
|
+
(i.e. `position` ASC).
|
|
103
|
+
|
|
77
104
|
#### user\_id
|
|
78
105
|
|
|
79
106
|
> **user\_id**: `number`
|
|
80
107
|
|
|
108
|
+
Member's internal user ID.
|
|
109
|
+
|
|
81
110
|
#### public\_username
|
|
82
111
|
|
|
83
112
|
> **public\_username**: `string`
|
|
84
113
|
|
|
114
|
+
Member's display username.
|
|
115
|
+
|
|
85
116
|
#### avatar\_id
|
|
86
117
|
|
|
87
118
|
> **avatar\_id**: `string`
|
|
88
119
|
|
|
120
|
+
Avatar identifier; resolve via `avatar_url` below or rebuild
|
|
121
|
+
from `avatar_id` + brand avatar domain.
|
|
122
|
+
|
|
89
123
|
#### avatar\_real\_id
|
|
90
124
|
|
|
91
125
|
> **avatar\_real\_id**: `number`
|
|
92
126
|
|
|
127
|
+
Numeric avatar ID (alternative identifier).
|
|
128
|
+
|
|
93
129
|
#### avatar\_url?
|
|
94
130
|
|
|
95
131
|
> `optional` **avatar\_url?**: `string`
|
|
96
132
|
|
|
133
|
+
Pre-resolved CDN URL for the avatar.
|
|
134
|
+
|
|
97
135
|
#### position
|
|
98
136
|
|
|
99
137
|
> **position**: `number`
|
|
100
138
|
|
|
139
|
+
Member's rank within this clan; `1` = top contributor.
|
|
140
|
+
|
|
101
141
|
#### contribution\_score
|
|
102
142
|
|
|
103
143
|
> **contribution\_score**: `number`
|
|
104
144
|
|
|
145
|
+
Member's contribution to the clan rating score.
|
|
146
|
+
|
|
105
147
|
#### is\_me?
|
|
106
148
|
|
|
107
149
|
> `optional` **is\_me?**: `boolean`
|
|
108
150
|
|
|
151
|
+
`true` when this row is the current authenticated user.
|
|
152
|
+
|
|
109
153
|
#### clean\_ext\_user\_id?
|
|
110
154
|
|
|
111
155
|
> `optional` **clean\_ext\_user\_id?**: `string`
|
|
156
|
+
|
|
157
|
+
External user identifier (operator-provided alias);
|
|
158
|
+
preferred over `public_username` on some surfaces.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Interface: TClanJoinResult
|
|
2
2
|
|
|
3
|
-
TClanJoinResult describes the result of a join
|
|
3
|
+
TClanJoinResult describes the result of a join-clan request.
|
|
4
|
+
Note: this type uses `errCode` / `errMsg` (camelCase) — different
|
|
5
|
+
from most other SDK result types in this library which use
|
|
6
|
+
`err_code` / `err_message` (snake_case).
|
|
4
7
|
|
|
5
8
|
## Properties
|
|
6
9
|
|
|
@@ -8,8 +11,15 @@ TClanJoinResult describes the result of a join clan request.
|
|
|
8
11
|
|
|
9
12
|
> **errCode**: `number`
|
|
10
13
|
|
|
14
|
+
Error code. `0` = success. Typed values are members of
|
|
15
|
+
[JoinClanErrorCode](../enumerations/JoinClanErrorCode.md). See `joinClan` TSDoc for the full
|
|
16
|
+
table and per-code UI guidance.
|
|
17
|
+
|
|
11
18
|
***
|
|
12
19
|
|
|
13
20
|
### errMsg
|
|
14
21
|
|
|
15
22
|
> **errMsg**: `string`
|
|
23
|
+
|
|
24
|
+
Optional server-side error message. Present only on non-zero
|
|
25
|
+
`errCode`; may be empty even then.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Interface: TClanTournamentPlayer
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
### user\_id
|
|
6
|
+
|
|
7
|
+
> **user\_id**: `number`
|
|
8
|
+
|
|
9
|
+
***
|
|
10
|
+
|
|
11
|
+
### clean\_ext\_user\_id
|
|
12
|
+
|
|
13
|
+
> **clean\_ext\_user\_id**: `string`
|
|
14
|
+
|
|
15
|
+
***
|
|
16
|
+
|
|
17
|
+
### public\_username
|
|
18
|
+
|
|
19
|
+
> **public\_username**: `string`
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### avatar\_id
|
|
24
|
+
|
|
25
|
+
> **avatar\_id**: `string`
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### avatar\_real\_id
|
|
30
|
+
|
|
31
|
+
> **avatar\_real\_id**: `number`
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### avatar\_url?
|
|
36
|
+
|
|
37
|
+
> `optional` **avatar\_url?**: `string`
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### position
|
|
42
|
+
|
|
43
|
+
> **position**: `number`
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### scores
|
|
48
|
+
|
|
49
|
+
> **scores**: `number`
|
|
50
|
+
|
|
51
|
+
***
|
|
52
|
+
|
|
53
|
+
### is\_me
|
|
54
|
+
|
|
55
|
+
> **is\_me**: `boolean`
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Interface: TClanTournamentPlayersResult
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
### clan\_id
|
|
6
|
+
|
|
7
|
+
> **clan\_id**: `number`
|
|
8
|
+
|
|
9
|
+
***
|
|
10
|
+
|
|
11
|
+
### clan\_public\_meta
|
|
12
|
+
|
|
13
|
+
> **clan\_public\_meta**: `object`
|
|
14
|
+
|
|
15
|
+
#### name
|
|
16
|
+
|
|
17
|
+
> **name**: `string`
|
|
18
|
+
|
|
19
|
+
#### image\_url
|
|
20
|
+
|
|
21
|
+
> **image\_url**: `string`
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### players
|
|
26
|
+
|
|
27
|
+
> **players**: [`TClanTournamentPlayer`](TClanTournamentPlayer.md)[]
|
|
@@ -24,7 +24,9 @@ The clan ID the current user belongs to; null if clanless
|
|
|
24
24
|
|
|
25
25
|
> **cooldown\_until**: `string`
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
Switch-cooldown expiry as ISO 8601 UTC string ("YYYY-MM-DDTHH:MM:SS"
|
|
28
|
+
with no timezone suffix; interpret as UTC). `null` when no cooldown.
|
|
29
|
+
User-level: while set, the user cannot join any clan.
|
|
28
30
|
|
|
29
31
|
***
|
|
30
32
|
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
# Interface: TGetTranslations
|
|
2
2
|
|
|
3
|
+
Result of `getTranslations(lang_code)`.
|
|
4
|
+
|
|
3
5
|
## Properties
|
|
4
6
|
|
|
5
7
|
### translations
|
|
6
8
|
|
|
7
9
|
> **translations**: `object`
|
|
8
10
|
|
|
11
|
+
Flat dictionary of operator-defined translation key → translated string.
|
|
12
|
+
|
|
9
13
|
#### Index Signature
|
|
10
14
|
|
|
11
15
|
\[`key`: `string`\]: `string`
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
# Interface: TInboxMessage
|
|
2
2
|
|
|
3
|
+
TInboxMessage is the lightweight envelope returned by
|
|
4
|
+
`_smartico.api.getInboxMessages()`. Fetch the rich body (title,
|
|
5
|
+
preview, icon, html_body, buttons) separately via
|
|
6
|
+
`_smartico.api.getInboxMessageBody(message_guid)`.
|
|
7
|
+
|
|
3
8
|
## Properties
|
|
4
9
|
|
|
5
10
|
### message\_guid
|
|
6
11
|
|
|
7
12
|
> **message\_guid**: `string`
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
Unique identifier of the message. Pass to `getInboxMessageBody`
|
|
15
|
+
and the mark / favorite / delete mutations.
|
|
10
16
|
|
|
11
17
|
***
|
|
12
18
|
|
|
@@ -14,7 +20,7 @@ Uniq identifier of the message. It is needed to request the message body, mark t
|
|
|
14
20
|
|
|
15
21
|
> **sent\_date**: `string`
|
|
16
22
|
|
|
17
|
-
Date when the message was sent
|
|
23
|
+
Date when the message was sent (server timestamp).
|
|
18
24
|
|
|
19
25
|
***
|
|
20
26
|
|
|
@@ -22,7 +28,7 @@ Date when the message was sent
|
|
|
22
28
|
|
|
23
29
|
> **read**: `boolean`
|
|
24
30
|
|
|
25
|
-
|
|
31
|
+
`true` when the message has been marked read.
|
|
26
32
|
|
|
27
33
|
***
|
|
28
34
|
|
|
@@ -30,7 +36,7 @@ Indicator if a message is read
|
|
|
30
36
|
|
|
31
37
|
> **favorite**: `boolean`
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
`true` when the message has been starred (favorited).
|
|
34
40
|
|
|
35
41
|
***
|
|
36
42
|
|
|
@@ -38,7 +44,7 @@ Indicator if a message is added to favorites
|
|
|
38
44
|
|
|
39
45
|
> `optional` **category\_id?**: [`InboxCategories`](../enumerations/InboxCategories.md)
|
|
40
46
|
|
|
41
|
-
|
|
47
|
+
Operator-assigned category ([InboxCategories](../enumerations/InboxCategories.md)).
|
|
42
48
|
|
|
43
49
|
***
|
|
44
50
|
|
|
@@ -46,4 +52,6 @@ Category id per inbox message, can be part of System inboxes, Personal inboxes o
|
|
|
46
52
|
|
|
47
53
|
> `optional` **expire\_on\_dt?**: `number`
|
|
48
54
|
|
|
49
|
-
|
|
55
|
+
Expiry timestamp as Unix-ms epoch. Server filters out expired
|
|
56
|
+
messages from list responses — consumers rarely see this set
|
|
57
|
+
unless the expiry is upcoming.
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
# Interface: TInboxMessageBody
|
|
2
2
|
|
|
3
|
+
TInboxMessageBody is the rich body of one inbox message.
|
|
4
|
+
Returned by `_smartico.api.getInboxMessageBody(message_guid)`.
|
|
5
|
+
Fetched from a CDN (not over WebSocket).
|
|
6
|
+
|
|
3
7
|
## Properties
|
|
4
8
|
|
|
5
9
|
### title
|
|
6
10
|
|
|
7
11
|
> **title**: `string`
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
Display title.
|
|
10
14
|
|
|
11
15
|
***
|
|
12
16
|
|
|
@@ -14,7 +18,7 @@ Message title
|
|
|
14
18
|
|
|
15
19
|
> **preview\_body**: `string`
|
|
16
20
|
|
|
17
|
-
Short preview
|
|
21
|
+
Short preview text (typically rendered alongside the title in list items).
|
|
18
22
|
|
|
19
23
|
***
|
|
20
24
|
|
|
@@ -22,7 +26,7 @@ Short preview body of the message
|
|
|
22
26
|
|
|
23
27
|
> **icon**: `string`
|
|
24
28
|
|
|
25
|
-
Message icon
|
|
29
|
+
Message icon URL (128×128 px recommended).
|
|
26
30
|
|
|
27
31
|
***
|
|
28
32
|
|
|
@@ -30,10 +34,10 @@ Message icon, 128x128px
|
|
|
30
34
|
|
|
31
35
|
> **action**: `string`
|
|
32
36
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
Click-action — either a deep-link (e.g. `'dp:deposit'`) or a
|
|
38
|
+
plain URL. The literal `'dp:inbox'` indicates the message has a
|
|
39
|
+
rich `html_body`; for any other value `html_body` and `buttons`
|
|
40
|
+
are absent. Pass to `_smartico.dp(action)` for safe execution.
|
|
37
41
|
|
|
38
42
|
***
|
|
39
43
|
|
|
@@ -41,7 +45,7 @@ If the message has a rich html body - the action will always be 'dp:inbox' which
|
|
|
41
45
|
|
|
42
46
|
> `optional` **html\_body?**: `string`
|
|
43
47
|
|
|
44
|
-
Rich HTML body
|
|
48
|
+
Rich HTML body. Populated only when `action === 'dp:inbox'`.
|
|
45
49
|
|
|
46
50
|
***
|
|
47
51
|
|
|
@@ -49,19 +53,20 @@ Rich HTML body of the message.
|
|
|
49
53
|
|
|
50
54
|
> `optional` **buttons?**: `object`[]
|
|
51
55
|
|
|
52
|
-
|
|
56
|
+
Up to 2 additional action buttons. Populated only when
|
|
57
|
+
`action === 'dp:inbox'`.
|
|
53
58
|
|
|
54
59
|
#### action
|
|
55
60
|
|
|
56
61
|
> **action**: `string`
|
|
57
62
|
|
|
58
|
-
|
|
63
|
+
Button click-action (deep-link or URL).
|
|
59
64
|
|
|
60
65
|
#### text
|
|
61
66
|
|
|
62
67
|
> **text**: `string`
|
|
63
68
|
|
|
64
|
-
Button
|
|
69
|
+
Button label.
|
|
65
70
|
|
|
66
71
|
***
|
|
67
72
|
|
|
@@ -69,4 +74,5 @@ Button text
|
|
|
69
74
|
|
|
70
75
|
> `optional` **custom\_data?**: `string`
|
|
71
76
|
|
|
72
|
-
|
|
77
|
+
Operator-defined custom data. The SDK auto-parses JSON-looking
|
|
78
|
+
strings, so at runtime this is `any` despite the `string` type.
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
# Interface: TLevel
|
|
2
2
|
|
|
3
|
-
TLevel describes
|
|
4
|
-
|
|
5
|
-
The current level of user can be taken from the user object using ach_level_current_id property
|
|
6
|
-
The progress to the next level can be calculated using ach_points_ever and required_points properties of next level
|
|
3
|
+
TLevel describes one level in the label's level ladder.
|
|
4
|
+
Returned by `_smartico.api.getLevels()` (already sorted by `required_points` ASC).
|
|
7
5
|
|
|
8
6
|
## Extended by
|
|
9
7
|
|
|
@@ -15,7 +13,7 @@ The progress to the next level can be calculated using ach_points_ever and requi
|
|
|
15
13
|
|
|
16
14
|
> **id**: `number`
|
|
17
15
|
|
|
18
|
-
|
|
16
|
+
Stable ID of the level.
|
|
19
17
|
|
|
20
18
|
***
|
|
21
19
|
|
|
@@ -23,7 +21,7 @@ The ID of the Level
|
|
|
23
21
|
|
|
24
22
|
> **name**: `string`
|
|
25
23
|
|
|
26
|
-
|
|
24
|
+
Display name of the level, pre-translated to the user's language.
|
|
27
25
|
|
|
28
26
|
***
|
|
29
27
|
|
|
@@ -31,7 +29,7 @@ The name of the Level, translated to the user language
|
|
|
31
29
|
|
|
32
30
|
> **description**: `string`
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
Display description of the level, pre-translated to the user's language.
|
|
35
33
|
|
|
36
34
|
***
|
|
37
35
|
|
|
@@ -39,7 +37,7 @@ The description of the Level, translated to the user language
|
|
|
39
37
|
|
|
40
38
|
> **image**: `string`
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
URL of the level image (256x256 px source).
|
|
43
41
|
|
|
44
42
|
***
|
|
45
43
|
|
|
@@ -47,7 +45,7 @@ The URL of the image of the Level, 256x256px
|
|
|
47
45
|
|
|
48
46
|
> **required\_points**: `number`
|
|
49
47
|
|
|
50
|
-
|
|
48
|
+
Total `ach_points_ever` required to reach this level.
|
|
51
49
|
|
|
52
50
|
***
|
|
53
51
|
|
|
@@ -55,7 +53,8 @@ The amount of points required to reach the Level
|
|
|
55
53
|
|
|
56
54
|
> **visibility\_points**: `number`
|
|
57
55
|
|
|
58
|
-
|
|
56
|
+
Visibility threshold — clients hide the level from the user until
|
|
57
|
+
`ach_points_ever >= visibility_points`. `null` means always visible.
|
|
59
58
|
|
|
60
59
|
***
|
|
61
60
|
|
|
@@ -63,9 +62,8 @@ Number of points that user should collect in order to see this level
|
|
|
63
62
|
|
|
64
63
|
> **required\_level\_counter\_1**: `number`
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
65
|
+
Required value of the first level counter for sliding-window leveling.
|
|
66
|
+
`null` on points-only labels. See `UserLevelExtraCountersT`.
|
|
69
67
|
|
|
70
68
|
***
|
|
71
69
|
|
|
@@ -73,9 +71,8 @@ https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for
|
|
|
73
71
|
|
|
74
72
|
> **required\_level\_counter\_2**: `number`
|
|
75
73
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
74
|
+
Required value of the second level counter for sliding-window leveling.
|
|
75
|
+
`null` on points-only labels.
|
|
79
76
|
|
|
80
77
|
***
|
|
81
78
|
|
|
@@ -83,9 +80,8 @@ https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for
|
|
|
83
80
|
|
|
84
81
|
> **custom\_data**: `string`
|
|
85
82
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
Read more here - https://help.smartico.ai/welcome/products/general-concepts/custom-fields-attributes
|
|
83
|
+
Operator-defined custom data. The SDK auto-parses JSON-looking
|
|
84
|
+
strings, so at runtime this is `any` despite the `string` type.
|
|
89
85
|
|
|
90
86
|
***
|
|
91
87
|
|
|
@@ -93,4 +89,5 @@ Read more here - https://help.smartico.ai/welcome/products/general-concepts/cust
|
|
|
93
89
|
|
|
94
90
|
> **ordinal\_position**: `number`
|
|
95
91
|
|
|
96
|
-
|
|
92
|
+
1-based position in the ladder (matches the order of the returned
|
|
93
|
+
array, which is sorted by `required_points` ASC).
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Interface: TLevelCurrent
|
|
2
2
|
|
|
3
|
-
TLevelCurrent
|
|
3
|
+
TLevelCurrent extends `TLevel` with the user's progress toward the next level.
|
|
4
|
+
Returned by `_smartico.api.getCurrentLevel()`.
|
|
4
5
|
|
|
5
6
|
## Extends
|
|
6
7
|
|
|
@@ -12,7 +13,7 @@ TLevelCurrent describes the information of each level defined in the system alon
|
|
|
12
13
|
|
|
13
14
|
> **id**: `number`
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
Stable ID of the level.
|
|
16
17
|
|
|
17
18
|
#### Inherited from
|
|
18
19
|
|
|
@@ -24,7 +25,7 @@ The ID of the Level
|
|
|
24
25
|
|
|
25
26
|
> **name**: `string`
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
Display name of the level, pre-translated to the user's language.
|
|
28
29
|
|
|
29
30
|
#### Inherited from
|
|
30
31
|
|
|
@@ -36,7 +37,7 @@ The name of the Level, translated to the user language
|
|
|
36
37
|
|
|
37
38
|
> **description**: `string`
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
Display description of the level, pre-translated to the user's language.
|
|
40
41
|
|
|
41
42
|
#### Inherited from
|
|
42
43
|
|
|
@@ -48,7 +49,7 @@ The description of the Level, translated to the user language
|
|
|
48
49
|
|
|
49
50
|
> **image**: `string`
|
|
50
51
|
|
|
51
|
-
|
|
52
|
+
URL of the level image (256x256 px source).
|
|
52
53
|
|
|
53
54
|
#### Inherited from
|
|
54
55
|
|
|
@@ -60,7 +61,7 @@ The URL of the image of the Level, 256x256px
|
|
|
60
61
|
|
|
61
62
|
> **required\_points**: `number`
|
|
62
63
|
|
|
63
|
-
|
|
64
|
+
Total `ach_points_ever` required to reach this level.
|
|
64
65
|
|
|
65
66
|
#### Inherited from
|
|
66
67
|
|
|
@@ -72,7 +73,8 @@ The amount of points required to reach the Level
|
|
|
72
73
|
|
|
73
74
|
> **visibility\_points**: `number`
|
|
74
75
|
|
|
75
|
-
|
|
76
|
+
Visibility threshold — clients hide the level from the user until
|
|
77
|
+
`ach_points_ever >= visibility_points`. `null` means always visible.
|
|
76
78
|
|
|
77
79
|
#### Inherited from
|
|
78
80
|
|
|
@@ -84,9 +86,8 @@ Number of points that user should collect in order to see this level
|
|
|
84
86
|
|
|
85
87
|
> **required\_level\_counter\_1**: `number`
|
|
86
88
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
89
|
+
Required value of the first level counter for sliding-window leveling.
|
|
90
|
+
`null` on points-only labels. See `UserLevelExtraCountersT`.
|
|
90
91
|
|
|
91
92
|
#### Inherited from
|
|
92
93
|
|
|
@@ -98,9 +99,8 @@ https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for
|
|
|
98
99
|
|
|
99
100
|
> **required\_level\_counter\_2**: `number`
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for-leveling-users
|
|
102
|
+
Required value of the second level counter for sliding-window leveling.
|
|
103
|
+
`null` on points-only labels.
|
|
104
104
|
|
|
105
105
|
#### Inherited from
|
|
106
106
|
|
|
@@ -112,9 +112,8 @@ https://help.smartico.ai/welcome/more/release-notes/september-2022#new-logic-for
|
|
|
112
112
|
|
|
113
113
|
> **custom\_data**: `string`
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
Read more here - https://help.smartico.ai/welcome/products/general-concepts/custom-fields-attributes
|
|
115
|
+
Operator-defined custom data. The SDK auto-parses JSON-looking
|
|
116
|
+
strings, so at runtime this is `any` despite the `string` type.
|
|
118
117
|
|
|
119
118
|
#### Inherited from
|
|
120
119
|
|
|
@@ -126,7 +125,8 @@ Read more here - https://help.smartico.ai/welcome/products/general-concepts/cust
|
|
|
126
125
|
|
|
127
126
|
> **ordinal\_position**: `number`
|
|
128
127
|
|
|
129
|
-
|
|
128
|
+
1-based position in the ladder (matches the order of the returned
|
|
129
|
+
array, which is sorted by `required_points` ASC).
|
|
130
130
|
|
|
131
131
|
#### Inherited from
|
|
132
132
|
|
|
@@ -138,4 +138,5 @@ The ordinal position of the level
|
|
|
138
138
|
|
|
139
139
|
> **progress**: `number`
|
|
140
140
|
|
|
141
|
-
|
|
141
|
+
Progress to the next level as a 0–100 integer percentage. `100`
|
|
142
|
+
at the highest level.
|