@smartico/public-api 0.0.89 → 0.0.91

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 (159) hide show
  1. package/dist/Base/ClassId.d.ts +77 -77
  2. package/dist/Base/ProtocolMessage.d.ts +5 -5
  3. package/dist/Base/ProtocolRequest.d.ts +6 -6
  4. package/dist/Base/ProtocolResponse.d.ts +5 -5
  5. package/dist/CookieStore.d.ts +6 -6
  6. package/dist/Core/ActivityTypeLimited.d.ts +18 -18
  7. package/dist/Core/CoreUtils.d.ts +4 -4
  8. package/dist/Core/GetLabelInfoRequest.d.ts +3 -3
  9. package/dist/Core/GetLabelInfoResponse.d.ts +7 -7
  10. package/dist/Core/GetTranslationsRequest.d.ts +7 -7
  11. package/dist/Core/GetTranslationsResponse.d.ts +7 -7
  12. package/dist/Core/PublicLabelSettings.d.ts +29 -29
  13. package/dist/Core/PublicProperties.d.ts +11 -11
  14. package/dist/Core/ResponseIdentify.d.ts +12 -12
  15. package/dist/Core/TranslationArea.d.ts +10 -10
  16. package/dist/Core/index.d.ts +9 -9
  17. package/dist/ErrorCodes.d.ts +12 -12
  18. package/dist/GResponse.d.ts +9 -9
  19. package/dist/ILogger.d.ts +7 -7
  20. package/dist/Inbox/GetInboxMessagesRequest.d.ts +6 -6
  21. package/dist/Inbox/GetInboxMessagesResponse.d.ts +5 -5
  22. package/dist/Inbox/InboxMessage.d.ts +19 -19
  23. package/dist/Inbox/InboxMessageType.d.ts +11 -11
  24. package/dist/Inbox/MarkInboxMessageReadRequest.d.ts +5 -5
  25. package/dist/Inbox/MarkInboxMessageReadResponse.d.ts +4 -4
  26. package/dist/Inbox/MarkInboxMessageStarredRequest.d.ts +5 -5
  27. package/dist/Inbox/MarkInboxMessageStarredResponse.d.ts +4 -4
  28. package/dist/Inbox/index.d.ts +8 -8
  29. package/dist/IntUtils.d.ts +9 -9
  30. package/dist/Leaderboard/GetLeaderBoardsRequest.d.ts +7 -7
  31. package/dist/Leaderboard/GetLeaderBoardsResponse.d.ts +7 -7
  32. package/dist/Leaderboard/LeaderBoardDetails.d.ts +13 -13
  33. package/dist/Leaderboard/LeaderBoardPeriodType.d.ts +5 -5
  34. package/dist/Leaderboard/LeaderBoardPosition.d.ts +10 -10
  35. package/dist/Leaderboard/LeaderBoardPublicMeta.d.ts +5 -5
  36. package/dist/Leaderboard/index.d.ts +6 -6
  37. package/dist/Level/GetLevelMapResponse.d.ts +7 -7
  38. package/dist/Level/Level.d.ts +12 -12
  39. package/dist/Level/LevelPublicMeta.d.ts +17 -17
  40. package/dist/Level/index.d.ts +3 -3
  41. package/dist/MiniGames/SAWAcknowledgeType.d.ts +5 -5
  42. package/dist/MiniGames/SAWAskForUsername.d.ts +4 -4
  43. package/dist/MiniGames/SAWBuyInType.d.ts +14 -14
  44. package/dist/MiniGames/SAWDoAknowledgeRequest.d.ts +4 -4
  45. package/dist/MiniGames/SAWDoAknowledgeResponse.d.ts +4 -4
  46. package/dist/MiniGames/SAWDoSpinRequest.d.ts +5 -5
  47. package/dist/MiniGames/SAWDoSpinResponse.d.ts +10 -10
  48. package/dist/MiniGames/SAWGameType.d.ts +16 -16
  49. package/dist/MiniGames/SAWGetTemplatesRequest.d.ts +5 -5
  50. package/dist/MiniGames/SAWGetTemplatesResponse.d.ts +7 -7
  51. package/dist/MiniGames/SAWPrize.d.ts +11 -11
  52. package/dist/MiniGames/SAWPrizeType.d.ts +20 -20
  53. package/dist/MiniGames/SAWPrizeUI.d.ts +15 -15
  54. package/dist/MiniGames/SAWSpinErrorCode.d.ts +14 -14
  55. package/dist/MiniGames/SAWSpinsCountPush.d.ts +5 -5
  56. package/dist/MiniGames/SAWTemplate.d.ts +27 -27
  57. package/dist/MiniGames/SAWTemplateUI.d.ts +38 -38
  58. package/dist/MiniGames/SAWUtils.d.ts +5 -5
  59. package/dist/MiniGames/SAWWinSoundType.d.ts +12 -12
  60. package/dist/MiniGames/index.d.ts +19 -19
  61. package/dist/Missions/AchievementOptinRequest.d.ts +4 -4
  62. package/dist/Missions/AchievementOptinResponse.d.ts +3 -3
  63. package/dist/Missions/AchievementPublicMeta.d.ts +18 -18
  64. package/dist/Missions/AchievementStatus.d.ts +8 -8
  65. package/dist/Missions/AchievementTaskPublicMeta.d.ts +3 -3
  66. package/dist/Missions/AchievementTaskType.d.ts +4 -4
  67. package/dist/Missions/AchievementType.d.ts +4 -4
  68. package/dist/Missions/GetAchievementMapRequest.d.ts +3 -3
  69. package/dist/Missions/GetAchievementMapResponse.d.ts +5 -5
  70. package/dist/Missions/ReloadAchievementsEvent.d.ts +3 -3
  71. package/dist/Missions/ScheduledMissionType.d.ts +5 -5
  72. package/dist/Missions/UserAchievement.d.ts +26 -26
  73. package/dist/Missions/UserAchievementTask.d.ts +14 -14
  74. package/dist/Missions/index.d.ts +13 -12
  75. package/dist/NodeCache.d.ts +9 -9
  76. package/dist/OCache.d.ts +13 -13
  77. package/dist/SmarticoAPI.d.ts +81 -81
  78. package/dist/Store/BuyStoreItemErrorCode.d.ts +10 -10
  79. package/dist/Store/BuyStoreItemRequest.d.ts +4 -4
  80. package/dist/Store/BuyStoreItemResponse.d.ts +4 -4
  81. package/dist/Store/GetCategoriesStoreResponse.d.ts +5 -5
  82. package/dist/Store/GetStoreItemsResponse.d.ts +5 -5
  83. package/dist/Store/StoreCategory.d.ts +7 -7
  84. package/dist/Store/StoreCategoryPublicMeta.d.ts +4 -4
  85. package/dist/Store/StoreItem.d.ts +11 -11
  86. package/dist/Store/StoreItemPublicMeta.d.ts +12 -12
  87. package/dist/Store/StoreItemType.d.ts +4 -4
  88. package/dist/Store/index.d.ts +10 -10
  89. package/dist/Tournaments/GetTournamentInfoRequest.d.ts +4 -4
  90. package/dist/Tournaments/GetTournamentInfoResponse.d.ts +22 -22
  91. package/dist/Tournaments/GetTournamentsRequest.d.ts +3 -3
  92. package/dist/Tournaments/GetTournamentsResponse.d.ts +6 -6
  93. package/dist/Tournaments/Tournament.d.ts +49 -49
  94. package/dist/Tournaments/TournamentInstanceStatus.d.ts +10 -10
  95. package/dist/Tournaments/TournamentPlayer.d.ts +9 -9
  96. package/dist/Tournaments/TournamentPrize.d.ts +10 -10
  97. package/dist/Tournaments/TournamentPublicMeta.d.ts +25 -25
  98. package/dist/Tournaments/TournamentRegisterRequest.d.ts +4 -4
  99. package/dist/Tournaments/TournamentRegisterResponse.d.ts +5 -5
  100. package/dist/Tournaments/TournamentRegistrationError.d.ts +11 -11
  101. package/dist/Tournaments/TournamentRegistrationStatus.d.ts +22 -22
  102. package/dist/Tournaments/TournamentRegistrationType.d.ts +11 -11
  103. package/dist/Tournaments/TournamentType.d.ts +5 -5
  104. package/dist/Tournaments/TournamentUtils.d.ts +9 -9
  105. package/dist/Tournaments/index.d.ts +16 -16
  106. package/dist/WSAPI/WSAPI.d.ts +65 -65
  107. package/dist/WSAPI/WSAPITypes.d.ts +377 -377
  108. package/dist/index.d.ts +12 -12
  109. package/dist/index.js +25 -18
  110. package/dist/index.js.map +1 -1
  111. package/dist/index.modern.mjs +26 -20
  112. package/dist/index.modern.mjs.map +1 -1
  113. package/package.json +1 -1
  114. package/src/Missions/index.ts +2 -1
  115. package/dist/SmarticoPublicAPI.d.ts +0 -23
  116. package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
  117. package/dist/Store/BuyShopItemRequest.d.ts +0 -4
  118. package/dist/Store/BuyShopItemResponse.d.ts +0 -4
  119. package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
  120. package/dist/Store/GetShopItemsResponse.d.ts +0 -5
  121. package/dist/Store/ShopCategory.d.ts +0 -5
  122. package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
  123. package/dist/Store/ShopItem.d.ts +0 -9
  124. package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
  125. package/dist/Store/ShopItemType.d.ts +0 -4
  126. package/dist/service/index.d.ts +0 -5
  127. package/dist/service/types/ErrorCodes.d.ts +0 -13
  128. package/dist/service/types/GRequest.d.ts +0 -16
  129. package/dist/service/types/GResponse.d.ts +0 -10
  130. package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
  131. package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
  132. package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
  133. package/dist/service/types/Game/GameInfo.d.ts +0 -9
  134. package/dist/service/types/Game/GamePick.d.ts +0 -90
  135. package/dist/service/types/Game/GameUtil.d.ts +0 -7
  136. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
  137. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
  138. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
  139. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
  140. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
  141. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
  142. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
  143. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
  144. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
  145. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
  146. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
  147. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
  148. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
  149. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
  150. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
  151. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
  152. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
  153. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
  154. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
  155. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
  156. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
  157. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
  158. package/dist/service/types/User/UserInfo.d.ts +0 -10
  159. package/dist/util/Util.d.ts +0 -51
@@ -286,8 +286,8 @@ const SAWTemplatesTransform = items => {
286
286
  });
287
287
  };
288
288
 
289
- /*
290
- * Possible error codes for the mini-games attempts
289
+ /*
290
+ * Possible error codes for the mini-games attempts
291
291
  */
292
292
  var SAWSpinErrorCode;
293
293
  (function (SAWSpinErrorCode) {
@@ -581,6 +581,13 @@ const UserAchievementTransform = items => {
581
581
  }));
582
582
  };
583
583
 
584
+ var ScheduledMissionType;
585
+ (function (ScheduledMissionType) {
586
+ ScheduledMissionType[ScheduledMissionType["Future"] = 1] = "Future";
587
+ ScheduledMissionType[ScheduledMissionType["Past"] = 2] = "Past";
588
+ ScheduledMissionType[ScheduledMissionType["Present"] = 3] = "Present";
589
+ })(ScheduledMissionType || (ScheduledMissionType = {}));
590
+
584
591
  /** @hidden */
585
592
  var TournamentRegistrationType;
586
593
  (function (TournamentRegistrationType) {
@@ -843,11 +850,11 @@ class WSAPI {
843
850
  async getLevels() {
844
851
  return this.api.levelsGetT(null);
845
852
  }
846
- /** Returns all the missions available the current user.
847
- * The returned missions is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
853
+ /** Returns all the missions available the current user.
854
+ * The returned missions is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getMissions with a new onUpdate callback, the old one will be overwritten by the new one.
848
855
  * The onUpdate callback will be called on mission OptIn and the updated missions will be passed to it. */
849
- /**
850
- * @param params
856
+ /**
857
+ * @param params
851
858
  */
852
859
  async getMissions({
853
860
  onUpdate
@@ -878,12 +885,12 @@ class WSAPI {
878
885
  async getStoreCategories() {
879
886
  return this.api.storeGetItemsT(null);
880
887
  }
881
- /** Returns the list of mini-games available for user
882
- * 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.
888
+ /** Returns the list of mini-games available for user
889
+ * 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.
883
890
  * The onUpdate callback will be called on available spin count change, if mini-game has increasing jackpot per spin or wined prize is spin/jackpot and if max count of the available user spin equal one, also if the spins were issued to the user manually in the BO. Updated templates will be passed to onUpdate callback. */
884
- /**
885
- /**
886
- * @param params
891
+ /**
892
+ /**
893
+ * @param params
887
894
  */
888
895
  async getMiniGames({
889
896
  onUpdate
@@ -913,11 +920,11 @@ class WSAPI {
913
920
  };
914
921
  return o;
915
922
  }
916
- /** Returns all the active instances of tournaments
917
- * The returned list is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getTournamentsList with a new onUpdate callback, the old one will be overwritten by the new one.
923
+ /** Returns all the active instances of tournaments
924
+ * The returned list is cached for 30 seconds. But you can pass the onUpdate callback as a parameter. Note that each time you call getTournamentsList with a new onUpdate callback, the old one will be overwritten by the new one.
918
925
  * The onUpdate callback will be called when the user has registered in a tournament. Updated list will be passed to onUpdate callback.*/
919
- /**
920
- * @param params
926
+ /**
927
+ * @param params
921
928
  */
922
929
  async getTournamentsList({
923
930
  onUpdate
@@ -1164,7 +1171,6 @@ class SmarticoAPI {
1164
1171
  const message = this.buildMessage(user_ext_id, ClassId.IDENTIFY, {
1165
1172
  request_id: IntUtils.uuid() // AA: do we need request_id?
1166
1173
  });
1167
-
1168
1174
  const r = await this.send(message, ClassId.IDENTIFY_RESPONSE);
1169
1175
  r.avatar_id = CoreUtils.avatarUrl(r.avatar_id, this.avatarDomain);
1170
1176
  return r;
@@ -1341,7 +1347,7 @@ class SmarticoAPI {
1341
1347
  return tournamentInfoItemTransform(response);
1342
1348
  }
1343
1349
  async leaderboardGet(user_ext_id, period_type_id, prevPeriod = false) {
1344
- var _response$map$boardKe, _response$map$boardKe2, _response$map$boardKe3, _response$map$boardKe4;
1350
+ var _response$map$boardKe, _response$map$boardKe2;
1345
1351
  const message = this.buildMessage(user_ext_id, ClassId.GET_LEADERS_BOARD_REQUEST, {
1346
1352
  period_type_id,
1347
1353
  snapshot_offset: prevPeriod ? 1 : 0,
@@ -1352,10 +1358,10 @@ class SmarticoAPI {
1352
1358
  if (boardKey === undefined) {
1353
1359
  return undefined;
1354
1360
  }
1355
- if ((_response$map$boardKe = response.map[boardKey]) != null && (_response$map$boardKe2 = _response$map$boardKe.userPosition) != null && _response$map$boardKe2.avatar_id) {
1361
+ if ((_response$map$boardKe = response.map[boardKey]) != null && (_response$map$boardKe = _response$map$boardKe.userPosition) != null && _response$map$boardKe.avatar_id) {
1356
1362
  response.map[boardKey].userPosition.avatar_url = CoreUtils.avatarUrl(response.map[boardKey].userPosition.avatar_id, this.avatarDomain);
1357
1363
  }
1358
- if ((_response$map$boardKe3 = response.map[boardKey]) != null && (_response$map$boardKe4 = _response$map$boardKe3.positions) != null && _response$map$boardKe4.length) {
1364
+ if ((_response$map$boardKe2 = response.map[boardKey]) != null && (_response$map$boardKe2 = _response$map$boardKe2.positions) != null && _response$map$boardKe2.length) {
1359
1365
  response.map[boardKey].positions.forEach(p => {
1360
1366
  p.avatar_url = CoreUtils.avatarUrl(p.avatar_id, this.avatarDomain);
1361
1367
  });
@@ -1409,5 +1415,5 @@ var LeaderBoardPeriodType;
1409
1415
  LeaderBoardPeriodType[LeaderBoardPeriodType["MONTHLY"] = 3] = "MONTHLY";
1410
1416
  })(LeaderBoardPeriodType || (LeaderBoardPeriodType = {}));
1411
1417
 
1412
- export { AchievementStatus, AchievementTaskType, AchievementType, ActivityTypeLimited, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, GetLevelMapResponseTransform, InboxMessageType, LeaderBoardPeriodType, MiniGamePrizeTypeName, MiniGamePrizeTypeNamed, PublicLabelSettings, SAWAcknowledgeType, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWBuyInTypeNamed, SAWGameType, SAWGameTypeName, SAWGameTypeNamed, SAWPrizeType, SAWSpinErrorCode, SAWTemplatesTransform, SAWUtils, SAWWinSoundFiles, SAWWinSoundType, SmarticoAPI, StoreCategoryTransform, StoreItemTransform, StoreItemType, TournamentInstanceStatus, TournamentInstanceStatusName, TournamentItemsTransform, TournamentRegistrationError, TournamentRegistrationStatus, TournamentRegistrationStatusName, TournamentRegistrationStatusNamed, TournamentRegistrationType, TournamentRegistrationTypeGetName, TournamentType, TournamentUtils, TranslationArea, UserAchievementTransform, tournamentInfoItemTransform };
1418
+ export { AchievementStatus, AchievementTaskType, AchievementType, ActivityTypeLimited, BuyStoreItemErrorCode, ClassId, CookieStore, CoreUtils, GetLevelMapResponseTransform, InboxMessageType, LeaderBoardPeriodType, MiniGamePrizeTypeName, MiniGamePrizeTypeNamed, PublicLabelSettings, SAWAcknowledgeType, SAWAskForUsername, SAWBuyInType, SAWBuyInTypeName, SAWBuyInTypeNamed, SAWGameType, SAWGameTypeName, SAWGameTypeNamed, SAWPrizeType, SAWSpinErrorCode, SAWTemplatesTransform, SAWUtils, SAWWinSoundFiles, SAWWinSoundType, ScheduledMissionType, SmarticoAPI, StoreCategoryTransform, StoreItemTransform, StoreItemType, TournamentInstanceStatus, TournamentInstanceStatusName, TournamentItemsTransform, TournamentRegistrationError, TournamentRegistrationStatus, TournamentRegistrationStatusName, TournamentRegistrationStatusNamed, TournamentRegistrationType, TournamentRegistrationTypeGetName, TournamentType, TournamentUtils, TranslationArea, UserAchievementTransform, tournamentInfoItemTransform };
1413
1419
  //# sourceMappingURL=index.modern.mjs.map