@smartico/public-api 0.0.341 → 0.0.343

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 (188) hide show
  1. package/README.md +1 -1
  2. package/docs/api/.nojekyll +1 -0
  3. package/docs/api/README.md +415 -0
  4. package/docs/api/interfaces/AchCategory.md +13 -0
  5. package/docs/api/interfaces/AchCategoryPublicMeta.md +13 -0
  6. package/docs/api/interfaces/AchievementPublicMeta.md +133 -0
  7. package/docs/api/interfaces/Bonus.md +79 -0
  8. package/docs/api/interfaces/GemsDiamondsLog.md +43 -0
  9. package/docs/api/interfaces/GetTournamentInfoResponse.md +95 -0
  10. package/docs/api/interfaces/InboxMessage.md +49 -0
  11. package/docs/api/interfaces/InboxMessageBody.md +73 -0
  12. package/docs/{interfaces → api/interfaces}/Level.md +1 -17
  13. package/docs/api/interfaces/LevelPublicMeta.md +60 -0
  14. package/docs/api/interfaces/PointsLog.md +43 -0
  15. package/docs/{interfaces → api/interfaces}/SAWPrizesHistory.md +0 -18
  16. package/docs/api/interfaces/StoreCategory.md +13 -0
  17. package/docs/api/interfaces/StoreCategoryPublicMeta.md +13 -0
  18. package/docs/api/interfaces/StoreItem.md +43 -0
  19. package/docs/{interfaces → api/interfaces}/TTournamentRegistrationResult.md +1 -1
  20. package/docs/{interfaces → api/interfaces}/TUICustomSection.md +8 -0
  21. package/docs/api/interfaces/Tournament.md +207 -0
  22. package/docs/{interfaces → api/interfaces}/TournamentPlayer.md +1 -21
  23. package/docs/{interfaces → api/interfaces}/TournamentPrize.md +1 -21
  24. package/docs/api/interfaces/UICustomSection.md +103 -0
  25. package/docs/api/interfaces/UserAchievement.md +205 -0
  26. package/docs/api/interfaces/UserAchievementTask.md +83 -0
  27. package/docs/native/ADDING_METHODS.md +4 -4
  28. package/docs/native/PROTOCOL.md +35 -28
  29. package/package.json +1 -1
  30. package/tsconfig.json +19 -2
  31. package/docs/enums/TournamentRegistrationError.md +0 -55
  32. package/docs/interfaces/AchCategory.md +0 -19
  33. package/docs/interfaces/AchCategoryPublicMeta.md +0 -19
  34. package/docs/interfaces/AchCustomSectionType.md +0 -21
  35. package/docs/interfaces/AchievementPublicMeta.md +0 -155
  36. package/docs/interfaces/Bonus.md +0 -107
  37. package/docs/interfaces/GetTournamentInfoResponse.md +0 -37
  38. package/docs/interfaces/InboxMessage.md +0 -51
  39. package/docs/interfaces/InboxMessageBody.md +0 -64
  40. package/docs/interfaces/LevelPublicMeta.md +0 -51
  41. package/docs/interfaces/StoreCategory.md +0 -19
  42. package/docs/interfaces/StoreCategoryPublicMeta.md +0 -19
  43. package/docs/interfaces/StoreItem.md +0 -59
  44. package/docs/interfaces/Tournament.md +0 -187
  45. package/docs/interfaces/UICustomSection.md +0 -123
  46. package/docs/interfaces/UserAchievement.md +0 -275
  47. package/docs/interfaces/UserAchievementTask.md +0 -67
  48. /package/docs/{classes → api/classes}/SAWUtils.md +0 -0
  49. /package/docs/{classes → api/classes}/WSAPI.md +0 -0
  50. /package/docs/{enums → api/enums}/AchCustomLayoutTheme.md +0 -0
  51. /package/docs/{enums → api/enums}/AchCustomSectionType.md +0 -0
  52. /package/docs/{enums → api/enums}/AchMissionsTabsOptions.md +0 -0
  53. /package/docs/{enums → api/enums}/AchOverviewMissionsFilter.md +0 -0
  54. /package/docs/{enums → api/enums}/AchievementAvailabilityStatus.md +0 -0
  55. /package/docs/{enums → api/enums}/AttemptPeriodType.md +0 -0
  56. /package/docs/{enums → api/enums}/BonusStatus-1.md +0 -0
  57. /package/docs/{enums → api/enums}/BonusStatus.md +0 -0
  58. /package/docs/{enums → api/enums}/BuyStoreItemErrorCode.md +0 -0
  59. /package/docs/{enums → api/enums}/InboxCategories.md +0 -0
  60. /package/docs/{enums → api/enums}/JackPotTemparature.md +0 -0
  61. /package/docs/{enums → api/enums}/JackpotContributionType.md +0 -0
  62. /package/docs/{enums → api/enums}/JackpotType.md +0 -0
  63. /package/docs/{enums → api/enums}/LeaderBoardPeriodType.md +0 -0
  64. /package/docs/{enums → api/enums}/LiquidEntityData.md +0 -0
  65. /package/docs/{enums → api/enums}/MiniGamePrizeTypeName.md +0 -0
  66. /package/docs/{enums → api/enums}/PointChangeSourceType.md +0 -0
  67. /package/docs/{enums → api/enums}/PrizeModifiers.md +0 -0
  68. /package/docs/{enums → api/enums}/RaffleDrawInstanceState.md +0 -0
  69. /package/docs/{enums → api/enums}/RaffleDrawTypeExecution.md +0 -0
  70. /package/docs/{enums → api/enums}/SAWAcknowledgeType.md +0 -0
  71. /package/docs/{enums → api/enums}/SAWAcknowledgeTypeName.md +0 -0
  72. /package/docs/{enums → api/enums}/SAWAskForUsername.md +0 -0
  73. /package/docs/{enums → api/enums}/SAWBuyInType.md +0 -0
  74. /package/docs/{enums → api/enums}/SAWBuyInTypeName.md +0 -0
  75. /package/docs/{enums → api/enums}/SAWExposeUserSpinId.md +0 -0
  76. /package/docs/{enums → api/enums}/SAWGameDifficultyType.md +0 -0
  77. /package/docs/{enums → api/enums}/SAWGameDifficultyTypeName.md +0 -0
  78. /package/docs/{enums → api/enums}/SAWGameLayout.md +0 -0
  79. /package/docs/{enums → api/enums}/SAWGameType.md +0 -0
  80. /package/docs/{enums → api/enums}/SAWGameTypeName.md +0 -0
  81. /package/docs/{enums → api/enums}/SAWPrizeType.md +0 -0
  82. /package/docs/{enums → api/enums}/SAWSpinErrorCode.md +0 -0
  83. /package/docs/{enums → api/enums}/SAWWheelLayout.md +0 -0
  84. /package/docs/{enums → api/enums}/SAWWinSoundType.md +0 -0
  85. /package/docs/{enums → api/enums}/TournamentRegistrationStatus.md +0 -0
  86. /package/docs/{enums → api/enums}/TournamentRegistrationStatusName.md +0 -0
  87. /package/docs/{enums → api/enums}/TournamentRegistrationType.md +0 -0
  88. /package/docs/{enums → api/enums}/UserBalanceType.md +0 -0
  89. /package/docs/{interfaces → api/interfaces}/AchRelatedGame-1.md +0 -0
  90. /package/docs/{interfaces → api/interfaces}/AchRelatedGame.md +0 -0
  91. /package/docs/{interfaces → api/interfaces}/BonusMetaMap.md +0 -0
  92. /package/docs/{interfaces → api/interfaces}/BonusTemplateMetaMap.md +0 -0
  93. /package/docs/{interfaces → api/interfaces}/GetDrawRunRequest.md +0 -0
  94. /package/docs/{interfaces → api/interfaces}/GetDrawRunResponse.md +0 -0
  95. /package/docs/{interfaces → api/interfaces}/GetJackpotEligibleGamesRequest.md +0 -0
  96. /package/docs/{interfaces → api/interfaces}/GetJackpotEligibleGamesResponse.md +0 -0
  97. /package/docs/{interfaces → api/interfaces}/GetJackpotWinnersRequest.md +0 -0
  98. /package/docs/{interfaces → api/interfaces}/GetJackpotWinnersResponse.md +0 -0
  99. /package/docs/{interfaces → api/interfaces}/GetJackpotsPotsRequest.md +0 -0
  100. /package/docs/{interfaces → api/interfaces}/GetJackpotsPotsResponse.md +0 -0
  101. /package/docs/{interfaces → api/interfaces}/GetJackpotsRequest.md +0 -0
  102. /package/docs/{interfaces → api/interfaces}/GetJackpotsResponse.md +0 -0
  103. /package/docs/{interfaces → api/interfaces}/GetRaffleDrawRunsHistoryRequest.md +0 -0
  104. /package/docs/{interfaces → api/interfaces}/GetRaffleDrawRunsHistoryResponse.md +0 -0
  105. /package/docs/{interfaces → api/interfaces}/GetRafflesRequest.md +0 -0
  106. /package/docs/{interfaces → api/interfaces}/GetRafflesResponse.md +0 -0
  107. /package/docs/{interfaces → api/interfaces}/InboxMarkMessageAction.md +0 -0
  108. /package/docs/{interfaces → api/interfaces}/JackPotWinner.md +0 -0
  109. /package/docs/{interfaces → api/interfaces}/JackpotDetails.md +0 -0
  110. /package/docs/{interfaces → api/interfaces}/JackpotEligibleGame.md +0 -0
  111. /package/docs/{interfaces → api/interfaces}/JackpotHtmlTemplate.md +0 -0
  112. /package/docs/{interfaces → api/interfaces}/JackpotPot.md +0 -0
  113. /package/docs/{interfaces → api/interfaces}/JackpotPublicMeta.md +0 -0
  114. /package/docs/{interfaces → api/interfaces}/JackpotWinPush.md +0 -0
  115. /package/docs/{interfaces → api/interfaces}/JackpotWinnerHistory.md +0 -0
  116. /package/docs/{interfaces → api/interfaces}/JackpotsOptinRequest.md +0 -0
  117. /package/docs/{interfaces → api/interfaces}/JackpotsOptinResponse.md +0 -0
  118. /package/docs/{interfaces → api/interfaces}/JackpotsOptoutRequest.md +0 -0
  119. /package/docs/{interfaces → api/interfaces}/JackpotsOptoutResponse.md +0 -0
  120. /package/docs/{interfaces → api/interfaces}/LeaderBoardDetailsT.md +0 -0
  121. /package/docs/{interfaces → api/interfaces}/LeaderBoardUserT.md +0 -0
  122. /package/docs/{interfaces → api/interfaces}/LeaderBoardsRewardsT.md +0 -0
  123. /package/docs/{interfaces → api/interfaces}/Raffle.md +0 -0
  124. /package/docs/{interfaces → api/interfaces}/RaffleClaimPrizeRequest.md +0 -0
  125. /package/docs/{interfaces → api/interfaces}/RaffleClaimPrizeResponse.md +0 -0
  126. /package/docs/{interfaces → api/interfaces}/RaffleDraw.md +0 -0
  127. /package/docs/{interfaces → api/interfaces}/RaffleDrawPublicMeta.md +0 -0
  128. /package/docs/{interfaces → api/interfaces}/RaffleDrawRun.md +0 -0
  129. /package/docs/{interfaces → api/interfaces}/RaffleOptinRequest.md +0 -0
  130. /package/docs/{interfaces → api/interfaces}/RaffleOptinResponse.md +0 -0
  131. /package/docs/{interfaces → api/interfaces}/RafflePrize.md +0 -0
  132. /package/docs/{interfaces → api/interfaces}/RafflePrizePublicMeta.md +0 -0
  133. /package/docs/{interfaces → api/interfaces}/RafflePrizeWinner.md +0 -0
  134. /package/docs/{interfaces → api/interfaces}/RafflePublicMeta.md +0 -0
  135. /package/docs/{interfaces → api/interfaces}/RaffleTicket.md +0 -0
  136. /package/docs/{interfaces → api/interfaces}/SAWAcknowledgeSpinPushRequest.md +0 -0
  137. /package/docs/{interfaces → api/interfaces}/SAWDoAknowledgeRequest.md +0 -0
  138. /package/docs/{interfaces → api/interfaces}/SAWDoAknowledgeResponse.md +0 -0
  139. /package/docs/{interfaces → api/interfaces}/SAWDoSpinRequest.md +0 -0
  140. /package/docs/{interfaces → api/interfaces}/SAWDoSpinResponse.md +0 -0
  141. /package/docs/{interfaces → api/interfaces}/SAWEventSawPush.md +0 -0
  142. /package/docs/{interfaces → api/interfaces}/SAWGetTemplatesRequest.md +0 -0
  143. /package/docs/{interfaces → api/interfaces}/SAWGetTemplatesResponse.md +0 -0
  144. /package/docs/{interfaces → api/interfaces}/SAWPrize.md +0 -0
  145. /package/docs/{interfaces → api/interfaces}/SAWPrizeDropAknowledgeRequest.md +0 -0
  146. /package/docs/{interfaces → api/interfaces}/SAWPrizeDropAknowledgeResponse.md +0 -0
  147. /package/docs/{interfaces → api/interfaces}/SAWPrizeDropWinPush.md +0 -0
  148. /package/docs/{interfaces → api/interfaces}/SAWPrizeUI.md +0 -0
  149. /package/docs/{interfaces → api/interfaces}/SAWSpinsCountPush.md +0 -0
  150. /package/docs/{interfaces → api/interfaces}/SAWTemplate.md +0 -0
  151. /package/docs/{interfaces → api/interfaces}/SAWTemplateUI.md +0 -0
  152. /package/docs/{interfaces → api/interfaces}/SAWWinningHistoryRequest.md +0 -0
  153. /package/docs/{interfaces → api/interfaces}/SAWWinningHistoryResponse.md +0 -0
  154. /package/docs/{interfaces → api/interfaces}/TAchCategory.md +0 -0
  155. /package/docs/{interfaces → api/interfaces}/TActivityLog.md +0 -0
  156. /package/docs/{interfaces → api/interfaces}/TBonus.md +0 -0
  157. /package/docs/{interfaces → api/interfaces}/TBuyStoreItemResult.md +0 -0
  158. /package/docs/{interfaces → api/interfaces}/TClaimBonusResult.md +0 -0
  159. /package/docs/{interfaces → api/interfaces}/TGetJackpotEligibleGamesResponse.md +0 -0
  160. /package/docs/{interfaces → api/interfaces}/TGetTranslations.md +0 -0
  161. /package/docs/{interfaces → api/interfaces}/TInboxMessage.md +0 -0
  162. /package/docs/{interfaces → api/interfaces}/TInboxMessageBody.md +0 -0
  163. /package/docs/{interfaces → api/interfaces}/TLevel.md +0 -0
  164. /package/docs/{interfaces → api/interfaces}/TLevelCurrent.md +0 -0
  165. /package/docs/{interfaces → api/interfaces}/TMiniGamePlayBatchResult.md +0 -0
  166. /package/docs/{interfaces → api/interfaces}/TMiniGamePlayResult.md +0 -0
  167. /package/docs/{interfaces → api/interfaces}/TMiniGamePrize.md +0 -0
  168. /package/docs/{interfaces → api/interfaces}/TMiniGameTemplate.md +0 -0
  169. /package/docs/{interfaces → api/interfaces}/TMissionClaimRewardResult.md +0 -0
  170. /package/docs/{interfaces → api/interfaces}/TMissionOptInResult.md +0 -0
  171. /package/docs/{interfaces → api/interfaces}/TMissionOrBadge.md +0 -0
  172. /package/docs/{interfaces → api/interfaces}/TMissionOrBadgeTask.md +0 -0
  173. /package/docs/{interfaces → api/interfaces}/TRaffle.md +0 -0
  174. /package/docs/{interfaces → api/interfaces}/TRaffleDraw.md +0 -0
  175. /package/docs/{interfaces → api/interfaces}/TRaffleDrawRun.md +0 -0
  176. /package/docs/{interfaces → api/interfaces}/TRaffleOptinResponse.md +0 -0
  177. /package/docs/{interfaces → api/interfaces}/TRafflePrize.md +0 -0
  178. /package/docs/{interfaces → api/interfaces}/TRafflePrizeWinner.md +0 -0
  179. /package/docs/{interfaces → api/interfaces}/TRaffleTicket.md +0 -0
  180. /package/docs/{interfaces → api/interfaces}/TSawHistory.md +0 -0
  181. /package/docs/{interfaces → api/interfaces}/TSegmentCheckResult.md +0 -0
  182. /package/docs/{interfaces → api/interfaces}/TStoreCategory.md +0 -0
  183. /package/docs/{interfaces → api/interfaces}/TStoreItem.md +0 -0
  184. /package/docs/{interfaces → api/interfaces}/TTournament.md +0 -0
  185. /package/docs/{interfaces → api/interfaces}/TTournamentDetailed.md +0 -0
  186. /package/docs/{interfaces → api/interfaces}/TUserProfile.md +0 -0
  187. /package/docs/{interfaces → api/interfaces}/TransformedRaffleClaimPrizeResponse.md +0 -0
  188. /package/docs/{interfaces → api/interfaces}/UserLevelExtraCountersT.md +0 -0
@@ -0,0 +1,83 @@
1
+ # Interface: UserAchievementTask
2
+
3
+ ## Properties
4
+
5
+ ### task\_id
6
+
7
+ • `Optional` **task\_id**: `number`
8
+
9
+ ___
10
+
11
+ ### task\_public\_meta
12
+
13
+ • `Optional` **task\_public\_meta**: `AchievementTaskPublicMeta`
14
+
15
+ ___
16
+
17
+ ### points\_reward
18
+
19
+ • `Optional` **points\_reward**: `number`
20
+
21
+ ___
22
+
23
+ ### task\_type\_id
24
+
25
+ • **task\_type\_id**: `AchievementTaskType`
26
+
27
+ ___
28
+
29
+ ### isCompleted
30
+
31
+ • `Optional` **isCompleted**: `boolean`
32
+
33
+ ___
34
+
35
+ ### userExecutedCount
36
+
37
+ • `Optional` **userExecutedCount**: `number`
38
+
39
+ ___
40
+
41
+ ### executionCount
42
+
43
+ • `Optional` **executionCount**: `number`
44
+
45
+ ___
46
+
47
+ ### userProgress
48
+
49
+ • `Optional` **userProgress**: `number`
50
+
51
+ ___
52
+
53
+ ### lastExecutionDate
54
+
55
+ • **lastExecutionDate**: `string`
56
+
57
+ ___
58
+
59
+ ### unlocked\_by\_mission\_id
60
+
61
+ • `Optional` **unlocked\_by\_mission\_id**: `number`
62
+
63
+ ___
64
+
65
+ ### unlocked\_by\_level\_id
66
+
67
+ • `Optional` **unlocked\_by\_level\_id**: `number`
68
+
69
+ ___
70
+
71
+ ### user\_state\_params
72
+
73
+ • `Optional` **user\_state\_params**: `Object`
74
+
75
+ #### Index signature
76
+
77
+ ▪ [key: `string`]: `any`
78
+
79
+ ___
80
+
81
+ ### affects\_progress
82
+
83
+ • `Optional` **affects\_progress**: `AffectsProgress`
@@ -9,7 +9,7 @@ Context:
9
9
  - public-api is our JavaScript SDK that communicates with Java backend via WebSocket
10
10
  - PROTOCOL.md (./PROTOCOL.md) documents the low-level WebSocket protocol for native clients (Kotlin, Swift) who can't use our JS SDK
11
11
  - Native clients need raw ClassIds and message structures without JS-side transformations
12
- - ../interfaces/ contains typedoc-style interface documentation files
12
+ - ../api/interfaces/ contains typedoc-style interface documentation files
13
13
 
14
14
  Task:
15
15
  Document method `{method_name}` in ./PROTOCOL.md for native clients (Kotlin, Swift, etc.).
@@ -17,8 +17,8 @@ Document method `{method_name}` in ./PROTOCOL.md for native clients (Kotlin, Swi
17
17
  Requirements:
18
18
  1. Find request/response ClassId in ../../src/SmarticoAPI.ts and ../../src/Base/ClassId.ts
19
19
  2. Document raw message structure (not transformed T-prefixed types)
20
- 3. For complex types — link to ../interfaces/*.md files
21
- 4. If raw interface MD file doesn't exist in ../interfaces/ — create it following typedoc style like existing files there:
20
+ 3. For complex types — link to ../api/interfaces/*.md files
21
+ 4. If raw interface MD file doesn't exist in ../api/interfaces/ — create it following typedoc style like existing files there:
22
22
  - Format: `# Interface: Name`, `## Properties`, `### property_name`, `• **property_name**: \`type\``, `___` separators between properties
23
23
  5. Add method to Table of Contents in appropriate category
24
24
  6. Follow the same format as other methods in PROTOCOL.md (Request section with ClassId and fields table, Response section with ClassId and fields table, JSON examples where helpful)
@@ -34,5 +34,5 @@ Document method `getUserLevelExtraCounters` in docs/native/PROTOCOL.md for nativ
34
34
  or shorter:
35
35
 
36
36
  ```
37
- Document method `myNewMethod` in PROTOCOL.md. Raw types, ClassId from code. New interfaces in docs/interfaces/ — follow typedoc style like existing files there.
37
+ Document method `myNewMethod` in PROTOCOL.md. Raw types, ClassId from code. New interfaces in docs/api/interfaces/ — follow typedoc style like existing files there.
38
38
  ```
@@ -276,8 +276,8 @@ Sent when a jackpot is won (can be the current user or another player).
276
276
  | Field | Type | Description |
277
277
  |-------|------|-------------|
278
278
  | `cid` | `number` | Message type identifier |
279
- | `jackpot` | [`JackpotDetails`](../interfaces/JackpotDetails.md) | Jackpot information |
280
- | `winners` | [`JackPotWinner[]`](../interfaces/JackPotWinner.md) | Array of winners |
279
+ | `jackpot` | [`JackpotDetails`](../api/interfaces/JackpotDetails.md) | Jackpot information |
280
+ | `winners` | [`JackPotWinner[]`](../api/interfaces/JackPotWinner.md) | Array of winners |
281
281
 
282
282
  **Recommended action:** Show jackpot win notification/celebration. Re-fetch jackpot data to update UI.
283
283
 
@@ -408,7 +408,7 @@ Check if the current user belongs to a specific segment.
408
408
  | `cid` | `number` | Message type identifier |
409
409
  | `errCode` | `number` | Error code. `0` = success |
410
410
  | `errMsg` | `string` | Error message (if any) |
411
- | `segments` | [`TSegmentCheckResult[]`](../interfaces/TSegmentCheckResult.md) | Array of segment check results |
411
+ | `segments` | [`TSegmentCheckResult[]`](../api/interfaces/TSegmentCheckResult.md) | Array of segment check results |
412
412
 
413
413
  ---
414
414
 
@@ -468,7 +468,7 @@ Check if the current user belongs to multiple segments.
468
468
  | `cid` | `number` | Message type identifier |
469
469
  | `errCode` | `number` | Error code. `0` = success |
470
470
  | `errMsg` | `string` | Error message (if any) |
471
- | `segments` | [`TSegmentCheckResult[]`](../interfaces/TSegmentCheckResult.md) | Array of segment check results |
471
+ | `segments` | [`TSegmentCheckResult[]`](../api/interfaces/TSegmentCheckResult.md) | Array of segment check results |
472
472
 
473
473
  ---
474
474
 
@@ -551,7 +551,7 @@ Get list of all levels defined in the system.
551
551
  | `cid` | `number` | Message type identifier |
552
552
  | `errCode` | `number` | Error code. `0` = success |
553
553
  | `errMsg` | `string` | Error message (if any) |
554
- | `levels` | [`Level[]`](../interfaces/Level.md) | Array of level objects |
554
+ | `levels` | [`Level[]`](../api/interfaces/Level.md) | Array of level objects |
555
555
 
556
556
  ---
557
557
 
@@ -593,7 +593,7 @@ Get all missions and badges for the current user.
593
593
  | `uuid` | `string` | Request identifier (matches request) |
594
594
  | `errCode` | `number` | Error code (`0` = success) |
595
595
  | `errMsg` | `string` | Error message (if any) |
596
- | `achievements` | [`UserAchievement[]`](../interfaces/UserAchievement.md) | Array of achievements (missions + badges) |
596
+ | `achievements` | [`UserAchievement[]`](../api/interfaces/UserAchievement.md) | Array of achievements (missions + badges) |
597
597
 
598
598
  **Example:**
599
599
 
@@ -715,7 +715,7 @@ Get mission and badge categories.
715
715
  | `cid` | `number` | `538` |
716
716
  | `uuid` | `string` | Request identifier |
717
717
  | `errCode` | `number` | Error code (`0` = success) |
718
- | `categories` | [`AchCategory[]`](../interfaces/AchCategory.md) | Array of categories |
718
+ | `categories` | [`AchCategory[]`](../api/interfaces/AchCategory.md) | Array of categories |
719
719
 
720
720
  ---
721
721
 
@@ -744,7 +744,7 @@ Get custom UI sections.
744
744
  | `cid` | `number` | `524` |
745
745
  | `uuid` | `string` | Request identifier |
746
746
  | `errCode` | `number` | Error code (`0` = success) |
747
- | `customSections` | `object` | Map of section ID to [`UICustomSection`](../interfaces/UICustomSection.md) |
747
+ | `customSections` | `object` | Map of section ID to [`UICustomSection`](../api/interfaces/UICustomSection.md) |
748
748
 
749
749
  ---
750
750
 
@@ -784,7 +784,7 @@ Get all bonuses for the current user.
784
784
  | `uuid` | `string` | Request identifier (matches request) |
785
785
  | `errCode` | `number` | Error code (`0` = success) |
786
786
  | `errMsg` | `string` | Error message (if any) |
787
- | `bonuses` | [`Bonus[]`](../interfaces/Bonus.md) | Array of bonus objects |
787
+ | `bonuses` | [`Bonus[]`](../api/interfaces/Bonus.md) | Array of bonus objects |
788
788
 
789
789
  **Example:**
790
790
 
@@ -890,7 +890,7 @@ Get all available store items.
890
890
  | `cid` | `number` | `510` |
891
891
  | `uuid` | `string` | Request identifier |
892
892
  | `errCode` | `number` | Error code (`0` = success) |
893
- | `items` | [`StoreItem[]`](../interfaces/StoreItem.md) | Array of store items |
893
+ | `items` | [`StoreItem[]`](../api/interfaces/StoreItem.md) | Array of store items |
894
894
 
895
895
  ---
896
896
 
@@ -945,7 +945,7 @@ Get store categories.
945
945
  | `cid` | `number` | `516` |
946
946
  | `uuid` | `string` | Request identifier |
947
947
  | `errCode` | `number` | Error code (`0` = success) |
948
- | `categories` | [`StoreCategory[]`](../interfaces/StoreCategory.md) | Array of categories |
948
+ | `categories` | [`StoreCategory[]`](../api/interfaces/StoreCategory.md) | Array of categories |
949
949
 
950
950
  ---
951
951
 
@@ -974,7 +974,7 @@ Get user's purchase history.
974
974
  | `cid` | `number` | `542` |
975
975
  | `uuid` | `string` | Request identifier |
976
976
  | `errCode` | `number` | Error code (`0` = success) |
977
- | `items` | [`StoreItem[]`](../interfaces/StoreItem.md) | Array of purchased items |
977
+ | `items` | [`StoreItem[]`](../api/interfaces/StoreItem.md) | Array of purchased items |
978
978
 
979
979
  ---
980
980
 
@@ -1003,7 +1003,7 @@ Get all available mini-games (spin wheels, scratch cards, etc.).
1003
1003
  | `cid` | `number` | `701` |
1004
1004
  | `uuid` | `string` | Request identifier |
1005
1005
  | `errCode` | `number` | Error code (`0` = success) |
1006
- | `templates` | [`SAWTemplate[]`](../interfaces/SAWTemplate.md) | Array of mini-game templates |
1006
+ | `templates` | [`SAWTemplate[]`](../api/interfaces/SAWTemplate.md) | Array of mini-game templates |
1007
1007
 
1008
1008
  ---
1009
1009
 
@@ -1147,7 +1147,7 @@ Get mini-game play history.
1147
1147
  | `cid` | `number` | `717` |
1148
1148
  | `uuid` | `string` | Request identifier |
1149
1149
  | `errCode` | `number` | Error code (`0` = success) |
1150
- | `history` | [`SAWPrizesHistory[]`](../interfaces/SAWPrizesHistory.md) | Array of history items |
1150
+ | `history` | [`SAWPrizesHistory[]`](../api/interfaces/SAWPrizesHistory.md) | Array of history items |
1151
1151
 
1152
1152
  ---
1153
1153
 
@@ -1176,7 +1176,7 @@ Get all active tournament instances.
1176
1176
  | `cid` | `number` | `518` |
1177
1177
  | `uuid` | `string` | Request identifier |
1178
1178
  | `errCode` | `number` | Error code (`0` = success) |
1179
- | `tournaments` | [`Tournament[]`](../interfaces/Tournament.md) | Array of tournaments |
1179
+ | `tournaments` | [`Tournament[]`](../api/interfaces/Tournament.md) | Array of tournaments |
1180
1180
 
1181
1181
  ---
1182
1182
 
@@ -1204,8 +1204,8 @@ Get detailed information about a tournament instance including leaderboard.
1204
1204
  | `cid` | `number` | `520` |
1205
1205
  | `uuid` | `string` | Request identifier |
1206
1206
  | `errCode` | `number` | Error code (`0` = success) |
1207
- | `tournamentInfo` | [`GetTournamentInfoResponse.tournamentInfo`](../interfaces/GetTournamentInfoResponse.md) | Tournament info with players |
1208
- | `userPosition` | [`TournamentPlayer`](../interfaces/TournamentPlayer.md) | Current user's position |
1207
+ | `tournamentInfo` | [`GetTournamentInfoResponse.tournamentInfo`](../api/interfaces/GetTournamentInfoResponse.md) | Tournament info with players |
1208
+ | `userPosition` | [`TournamentPlayer`](../api/interfaces/TournamentPlayer.md) | Current user's position |
1209
1209
  | `prizeStructure` | `object` | Prize structure with `prizes` array |
1210
1210
 
1211
1211
  ---
@@ -1265,7 +1265,7 @@ Get leaderboard for a specific period type.
1265
1265
  | `cid` | `number` | `506` |
1266
1266
  | `uuid` | `string` | Request identifier |
1267
1267
  | `errCode` | `number` | Error code (`0` = success) |
1268
- | `leaders` | [`LeaderBoardUserT[]`](../interfaces/LeaderBoardUserT.md) | Array of leaderboard entries |
1268
+ | `leaders` | [`LeaderBoardUserT[]`](../api/interfaces/LeaderBoardUserT.md) | Array of leaderboard entries |
1269
1269
  | `user_position` | `number` | Current user's position |
1270
1270
  | `user_points` | `number` | Current user's points |
1271
1271
 
@@ -1301,7 +1301,7 @@ Get user's inbox messages.
1301
1301
  | `cid` | `number` | `514` |
1302
1302
  | `uuid` | `string` | Request identifier |
1303
1303
  | `errCode` | `number` | Error code (`0` = success) |
1304
- | `messages` | [`InboxMessage[]`](../interfaces/InboxMessage.md) | Array of messages |
1304
+ | `messages` | [`InboxMessage[]`](../api/interfaces/InboxMessage.md) | Array of messages |
1305
1305
  | `unread_count` | `number` | Total unread count |
1306
1306
 
1307
1307
  ---
@@ -1517,7 +1517,7 @@ Get all available jackpots.
1517
1517
  | `cid` | `number` | `801` |
1518
1518
  | `uuid` | `string` | Request identifier |
1519
1519
  | `errCode` | `number` | Error code (`0` = success) |
1520
- | `items` | [`JackpotDetails[]`](../interfaces/JackpotDetails.md) | Array of jackpots |
1520
+ | `items` | [`JackpotDetails[]`](../api/interfaces/JackpotDetails.md) | Array of jackpots |
1521
1521
 
1522
1522
  ---
1523
1523
 
@@ -1601,7 +1601,7 @@ Get jackpot winners history.
1601
1601
  | `cid` | `number` | `810` |
1602
1602
  | `uuid` | `string` | Request identifier |
1603
1603
  | `errCode` | `number` | Error code (`0` = success) |
1604
- | `winners` | [`JackpotWinnerHistory[]`](../interfaces/JackpotWinnerHistory.md) | Array of winners |
1604
+ | `winners` | [`JackpotWinnerHistory[]`](../api/interfaces/JackpotWinnerHistory.md) | Array of winners |
1605
1605
 
1606
1606
  ---
1607
1607
 
@@ -1748,7 +1748,7 @@ Get list of Raffles available for user.
1748
1748
  | `cid` | `number` | Message type identifier |
1749
1749
  | `errCode` | `number` | Error code. `0` = success |
1750
1750
  | `errMsg` | `string` | Error message (if any) |
1751
- | `items` | [`Raffle[]`](../interfaces/Raffle.md) | Array of raffles |
1751
+ | `items` | [`Raffle[]`](../api/interfaces/Raffle.md) | Array of raffles |
1752
1752
 
1753
1753
  ---
1754
1754
 
@@ -1869,7 +1869,7 @@ Get detailed information about a specific draw run, including winners.
1869
1869
  | `cid` | `number` | Message type identifier |
1870
1870
  | `errCode` | `number` | Error code. `0` = success |
1871
1871
  | `errMsg` | `string` | Error message (if any) |
1872
- | `draw` | [`RaffleDraw`](../interfaces/RaffleDraw.md) | Draw run details with winners |
1872
+ | `draw` | [`RaffleDraw`](../api/interfaces/RaffleDraw.md) | Draw run details with winners |
1873
1873
 
1874
1874
  ---
1875
1875
 
@@ -1966,7 +1966,7 @@ Get history of completed draw runs for a specific raffle. Useful for displaying
1966
1966
  | `cid` | `number` | Message type identifier |
1967
1967
  | `errCode` | `number` | Error code. `0` = success |
1968
1968
  | `errMsg` | `string` | Error message (if any) |
1969
- | `draw_runs` | [`RaffleDrawRun[]`](../interfaces/RaffleDrawRun.md) | Array of historical draw runs |
1969
+ | `draw_runs` | [`RaffleDrawRun[]`](../api/interfaces/RaffleDrawRun.md) | Array of historical draw runs |
1970
1970
 
1971
1971
  ---
1972
1972
 
@@ -2179,7 +2179,7 @@ Get user's points history.
2179
2179
  | `cid` | `number` | `546` |
2180
2180
  | `uuid` | `string` | Request identifier |
2181
2181
  | `errCode` | `number` | Error code (`0` = success) |
2182
- | `history` | `array` | Array of points history entries |
2182
+ | `logHistory` | [`PointsLog[]`](../api/interfaces/PointsLog.md) \| [`GemsDiamondsLog[]`](../api/interfaces/GemsDiamondsLog.md) | Array of points history entries |
2183
2183
 
2184
2184
  #### Example
2185
2185
 
@@ -2200,9 +2200,16 @@ Get user's points history.
2200
2200
  "cid": 546,
2201
2201
  "uuid": "hist-123",
2202
2202
  "errCode": 0,
2203
- "history": [
2204
- { "ts": 1699950000, "points": 100, "action": "mission_complete" },
2205
- { "ts": 1699960000, "points": 50, "action": "daily_login" }
2203
+ "logHistory": [
2204
+ {
2205
+ "create_date": 1699950000,
2206
+ "user_ext_id": "user123",
2207
+ "crm_brand_id": 1,
2208
+ "points_collected": 100,
2209
+ "user_points_ever": 5000,
2210
+ "user_points_balance": 1500,
2211
+ "source_type_id": 1
2212
+ }
2206
2213
  ]
2207
2214
  }
2208
2215
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.341",
3
+ "version": "0.0.343",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/tsconfig.json CHANGED
@@ -18,18 +18,35 @@
18
18
  "src/WSAPI/WSAPITypes.ts",
19
19
  "src/Tournaments/TournamentRegistrationStatus.ts",
20
20
  "src/Tournaments/TournamentRegistrationType.ts",
21
+ "src/Tournaments/Tournament.ts",
22
+ "src/Tournaments/TournamentPlayer.ts",
23
+ "src/Tournaments/TournamentPrize.ts",
24
+ "src/Tournaments/GetTournamentInfoResponse.ts",
21
25
  "src/Bonuses/BonusStatus.ts",
26
+ "src/Bonuses/Bonus.ts",
22
27
  "src/MiniGames/index.ts",
28
+ "src/MiniGames/SAWWinningHistoryResponse.ts",
23
29
  "src/CustomSections/AchCustomSection.ts",
24
- "src/Tournaments/TournamentRegistrationError.ts",
30
+ "src/CustomSections/UICustomSection.ts",
25
31
  "src/Store/BuyStoreItemErrorCode.ts",
32
+ "src/Store/StoreItem.ts",
33
+ "src/Store/StoreCategory.ts",
34
+ "src/Store/StoreCategoryPublicMeta.ts",
26
35
  "src/Leaderboard/LeaderBoardPeriodType.ts",
27
36
  "src/Base/AchRelatedGame.ts",
28
37
  "src/Jackpots/index.ts",
29
38
  "src/Raffle/index.ts",
30
39
  "src/Missions/AchievementAvailabilityStatus.ts",
40
+ "src/Missions/UserAchievement.ts",
41
+ "src/Missions/UserAchievementTask.ts",
42
+ "src/Missions/AchievementCategory.ts",
43
+ "src/Missions/AchCategoryPublicMeta.ts",
44
+ "src/Missions/AchievementPublicMeta.ts",
45
+ "src/Level/Level.ts",
46
+ "src/Level/LevelPublicMeta.ts",
47
+ "src/Inbox/InboxMessage.ts"
31
48
  ],
32
- "out": "docs",
49
+ "out": "docs/api",
33
50
  "plugin": ["typedoc-plugin-markdown", "typedoc-plugin-merge-modules"],
34
51
  "entryDocument": "README.md",
35
52
  "disableSources": true,
@@ -1,55 +0,0 @@
1
- # Enumeration: TournamentRegistrationError
2
-
3
- ## Enumeration Members
4
-
5
- ### NO\_ERROR
6
-
7
- • **NO\_ERROR** = ``0``
8
-
9
- ___
10
-
11
- ### TOURNAMENT\_INSTANCE\_NOT\_FOUND
12
-
13
- • **TOURNAMENT\_INSTANCE\_NOT\_FOUND** = ``30001``
14
-
15
- ___
16
-
17
- ### TOURNAMENT\_REGISTRATION\_NOT\_ENOUGH\_POINTS
18
-
19
- • **TOURNAMENT\_REGISTRATION\_NOT\_ENOUGH\_POINTS** = ``30002``
20
-
21
- ___
22
-
23
- ### TOURNAMENT\_INSTANCE\_NOT\_IN\_STATE
24
-
25
- • **TOURNAMENT\_INSTANCE\_NOT\_IN\_STATE** = ``30003``
26
-
27
- ___
28
-
29
- ### TOURNAMENT\_ALREADY\_REGISTERED
30
-
31
- • **TOURNAMENT\_ALREADY\_REGISTERED** = ``30004``
32
-
33
- ___
34
-
35
- ### TOURNAMENT\_USER\_DONT\_MATCH\_CONDITIONS
36
-
37
- • **TOURNAMENT\_USER\_DONT\_MATCH\_CONDITIONS** = ``30005``
38
-
39
- ___
40
-
41
- ### TOURNAMENT\_USER\_NOT\_REGISTERED
42
-
43
- • **TOURNAMENT\_USER\_NOT\_REGISTERED** = ``30006``
44
-
45
- ___
46
-
47
- ### TOURNAMENT\_CANT\_CHANGE\_REGISTRATION\_STATUS
48
-
49
- • **TOURNAMENT\_CANT\_CHANGE\_REGISTRATION\_STATUS** = ``30007``
50
-
51
- ___
52
-
53
- ### TOURNAMENT\_MAX\_REGISTRATIONS\_REACHED
54
-
55
- • **TOURNAMENT\_MAX\_REGISTRATIONS\_REACHED** = ``30008``
@@ -1,19 +0,0 @@
1
- # Interface: AchCategory
2
-
3
- Achievement/Mission category object.
4
-
5
- ## Properties
6
-
7
- ### id
8
-
9
- • **id**: `number`
10
-
11
- Category ID
12
-
13
- ___
14
-
15
- ### publicMeta
16
-
17
- • **publicMeta**: [`AchCategoryPublicMeta`](AchCategoryPublicMeta.md)
18
-
19
- Public metadata for UI display
@@ -1,19 +0,0 @@
1
- # Interface: AchCategoryPublicMeta
2
-
3
- Public metadata for achievement category.
4
-
5
- ## Properties
6
-
7
- ### name
8
-
9
- • **name**: `string`
10
-
11
- Category name (translated)
12
-
13
- ___
14
-
15
- ### order
16
-
17
- • **order**: `number`
18
-
19
- Sort order for UI display
@@ -1,21 +0,0 @@
1
- # Enum: AchCustomSectionType
2
-
3
- Custom section type identifiers.
4
-
5
- ## Values
6
-
7
- | Value | Name | Description |
8
- |-------|------|-------------|
9
- | `1` | HTML_PAGE | Custom HTML page |
10
- | `2` | MISSIONS_CATEGORY | Missions category section |
11
- | `3` | TOURNAMENTS_CATEGORY | Tournaments category section |
12
- | `4` | LEVELS | Levels section |
13
- | `5` | MINI_GAMES | Mini-games section |
14
- | `6` | MISSION_CUSTOM_LAYOUT | Custom mission layout |
15
- | `7` | MATCH_X_AND_QUIZ | Match X and Quiz games |
16
- | `9` | REDIRECT_LINK | Redirect link |
17
- | `10` | LOOTBOX_WEEKLY | Weekly lootbox |
18
- | `11` | LOOTBOX_CALENDAR_DAYS | Calendar days lootbox |
19
- | `12` | TREASURE_HUNT | Treasure hunt |
20
- | `13` | RAFFLE | Raffle section |
21
- | `14` | BADGES | Badges section |
@@ -1,155 +0,0 @@
1
- # Interface: AchievementPublicMeta
2
-
3
- Public metadata for an Achievement (Mission or Badge), used for UI display.
4
-
5
- ## Properties
6
-
7
- ### name
8
-
9
- • **name**: `string`
10
-
11
- Achievement name
12
-
13
- ___
14
-
15
- ### description
16
-
17
- • **description**: `string`
18
-
19
- Achievement description (HTML capable)
20
-
21
- ___
22
-
23
- ### sub\_header
24
-
25
- • **sub\_header**: `string`
26
-
27
- Sub-header text
28
-
29
- ___
30
-
31
- ### hint\_text
32
-
33
- • **hint\_text**: `string`
34
-
35
- Hint text
36
-
37
- ___
38
-
39
- ### image\_url
40
-
41
- • **image\_url**: `string`
42
-
43
- Image URL
44
-
45
- ___
46
-
47
- ### reward
48
-
49
- • **reward**: `string`
50
-
51
- Reward description
52
-
53
- ___
54
-
55
- ### cta\_action
56
-
57
- • **cta\_action**: `string`
58
-
59
- Call-to-action URL
60
-
61
- ___
62
-
63
- ### cta\_text
64
-
65
- • **cta\_text**: `string`
66
-
67
- Call-to-action button text
68
-
69
- ___
70
-
71
- ### custom\_data
72
-
73
- • **custom\_data**: `string`
74
-
75
- Custom data (JSON string)
76
-
77
- ___
78
-
79
- ### position
80
-
81
- • **position**: `object`
82
-
83
- Position on mission map
84
-
85
- ___
86
-
87
- ### label\_tag
88
-
89
- • **label\_tag**: `string`
90
-
91
- Label/ribbon tag
92
-
93
- ___
94
-
95
- ### custom\_label\_tag
96
-
97
- • **custom\_label\_tag**: `string`
98
-
99
- Custom label tag
100
-
101
- ___
102
-
103
- ### custom\_section\_id
104
-
105
- • **custom\_section\_id**: `number`
106
-
107
- Custom section ID
108
-
109
- ___
110
-
111
- ### only\_in\_custom\_section
112
-
113
- • **only\_in\_custom\_section**: `boolean`
114
-
115
- Show only in custom section
116
-
117
- ___
118
-
119
- ### unlock\_mission\_description
120
-
121
- • **unlock\_mission\_description**: `string`
122
-
123
- Description for locked state
124
-
125
- ___
126
-
127
- ### claim\_button\_title
128
-
129
- • **claim\_button\_title**: `string`
130
-
131
- Claim button title
132
-
133
- ___
134
-
135
- ### claim\_button\_action
136
-
137
- • **claim\_button\_action**: `string`
138
-
139
- Claim button action
140
-
141
- ___
142
-
143
- ### hide\_locked\_mission
144
-
145
- • **hide\_locked\_mission**: `boolean`
146
-
147
- Hide when locked
148
-
149
- ___
150
-
151
- ### custom\_section\_type\_id
152
-
153
- • **custom\_section\_type\_id**: `number`
154
-
155
- Custom section type ID