@smartico/public-api 0.0.197 → 0.0.199

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 (67) hide show
  1. package/dist/Inbox/InboxMessage.d.ts +3 -0
  2. package/dist/Inbox/OpenLinksType.d.ts +4 -0
  3. package/dist/Inbox/index.d.ts +1 -0
  4. package/dist/MiniGames/SAWTemplate.d.ts +2 -2
  5. package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
  6. package/dist/SmarticoPublicAPI.d.ts +23 -0
  7. package/dist/Store/BuyShopItemErrorCode.d.ts +10 -0
  8. package/dist/Store/BuyShopItemRequest.d.ts +4 -0
  9. package/dist/Store/BuyShopItemResponse.d.ts +4 -0
  10. package/dist/Store/GetCategoriesShopResponse.d.ts +5 -0
  11. package/dist/Store/GetShopItemsResponse.d.ts +5 -0
  12. package/dist/Store/ShopCategory.d.ts +5 -0
  13. package/dist/Store/ShopCategoryPublicMeta.d.ts +4 -0
  14. package/dist/Store/ShopItem.d.ts +9 -0
  15. package/dist/Store/ShopItemPublicMeta.d.ts +10 -0
  16. package/dist/Store/ShopItemType.d.ts +4 -0
  17. package/dist/Store/StorItemPruchased.d.ts +6 -0
  18. package/dist/Tournaments/Tournament.d.ts +2 -0
  19. package/dist/WSAPI/WSAPITypes.d.ts +4 -0
  20. package/dist/index.js +12 -1
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.modern.mjs +13 -2
  23. package/dist/index.modern.mjs.map +1 -1
  24. package/dist/service/index.d.ts +5 -0
  25. package/dist/service/types/ErrorCodes.d.ts +13 -0
  26. package/dist/service/types/GRequest.d.ts +16 -0
  27. package/dist/service/types/GResponse.d.ts +10 -0
  28. package/dist/service/types/Game/GameAttemptType.d.ts +6 -0
  29. package/dist/service/types/Game/GameCanPlayType.d.ts +10 -0
  30. package/dist/service/types/Game/GameExternalStatus.d.ts +6 -0
  31. package/dist/service/types/Game/GameInfo.d.ts +9 -0
  32. package/dist/service/types/Game/GamePick.d.ts +90 -0
  33. package/dist/service/types/Game/GameUtil.d.ts +7 -0
  34. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +7 -0
  35. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +7 -0
  36. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +5 -0
  37. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +6 -0
  38. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +5 -0
  39. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +34 -0
  40. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +11 -0
  41. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +12 -0
  42. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +5 -0
  43. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +5 -0
  44. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +5 -0
  45. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +15 -0
  46. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +10 -0
  47. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +3 -0
  48. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +5 -0
  49. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +11 -0
  50. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +8 -0
  51. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +13 -0
  52. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +21 -0
  53. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +31 -0
  54. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +12 -0
  55. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +9 -0
  56. package/dist/service/types/User/UserInfo.d.ts +10 -0
  57. package/dist/util/Util.d.ts +51 -0
  58. package/docs/interfaces/TMiniGameTemplate.md +16 -0
  59. package/docs/interfaces/TTournament.md +16 -0
  60. package/package.json +1 -1
  61. package/src/Inbox/InboxMessage.ts +6 -0
  62. package/src/Inbox/OpenLinksType.ts +4 -0
  63. package/src/Inbox/index.ts +1 -0
  64. package/src/MiniGames/SAWGetTemplatesResponse.ts +3 -1
  65. package/src/MiniGames/SAWTemplate.ts +3 -2
  66. package/src/Tournaments/Tournament.ts +7 -0
  67. package/src/WSAPI/WSAPITypes.ts +9 -1
@@ -62,6 +62,10 @@ export interface Tournament {
62
62
 
63
63
  /** List of casino games (or other types of entities) related to the tournament */
64
64
  related_games?: AchRelatedGame[];
65
+ /* The minimum amount of score points that the user should get in order to be qualified for the prize */
66
+ minScoreToWin?: number;
67
+ /* When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard. */
68
+ hideLeaderboardsMinScores?: boolean;
65
69
  }
66
70
 
67
71
  export const TournamentItemsTransform = (items: Tournament[]): TTournament[] => {
@@ -103,6 +107,9 @@ export const TournamentItemsTransform = (items: Tournament[]): TTournament[] =>
103
107
  is_finished: TournamentUtils.isFinished(r),
104
108
  is_in_progress: TournamentUtils.isInProgress(r),
105
109
  is_upcoming: TournamentUtils.isUpcoming(r),
110
+
111
+ min_scores_win: r.minScoreToWin,
112
+ hide_leaderboard_min_scores: r.hideLeaderboardsMinScores,
106
113
  };
107
114
 
108
115
  if (r.prizeStructure) {
@@ -51,7 +51,7 @@ export interface TMiniGamePrize {
51
51
  wins_count?: number;
52
52
  /* Number of days of week, when the prize can be available */
53
53
  weekdays?: number[];
54
- /* Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp)*/
54
+ /* Holds time from which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
55
55
  active_from_ts?: number;
56
56
  /* Holds time till which prize will become available, for the prizes that are targeted to be available from specific time (UNIX timestamp) */
57
57
  active_till_ts?: number;
@@ -145,6 +145,10 @@ export interface TMiniGameTemplate {
145
145
 
146
146
  /* Time zone to ensure each day aligns with your local midnight. */
147
147
  relative_period_timezone?: number;
148
+ /* Holds time from which template will become available, for the template that are targeted to be available from specific time (UNIX timestamp) */
149
+ activeFromDate?: number;
150
+ /* Holds time till which template will become available, for the templates that are targeted to be available from specific time (UNIX timestamp) */
151
+ activeTillDate?: number;
148
152
  }
149
153
 
150
154
  /**
@@ -323,6 +327,10 @@ export interface TTournament {
323
327
  is_in_progress: boolean;
324
328
  /** Indicator if tournament instance is upcoming (status PUBLISHED or REGISTER) */
325
329
  is_upcoming: boolean;
330
+ /* The minimum amount of score points that the user should get in order to be qualified for the prize */
331
+ min_scores_win?: number;
332
+ /* When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard */
333
+ hide_leaderboard_min_scores?: boolean;
326
334
  }
327
335
 
328
336
  /**