@smartico/public-api 0.0.211 → 0.0.212

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 (61) hide show
  1. package/dist/MiniGames/SAWPrizeUI.d.ts +1 -0
  2. package/dist/Quiz/MarketsAnswersType.d.ts +22 -0
  3. package/dist/SmarticoPublicAPI.d.ts +23 -0
  4. package/dist/Store/BuyShopItemErrorCode.d.ts +10 -0
  5. package/dist/Store/BuyShopItemRequest.d.ts +4 -0
  6. package/dist/Store/BuyShopItemResponse.d.ts +4 -0
  7. package/dist/Store/GetCategoriesShopResponse.d.ts +5 -0
  8. package/dist/Store/GetShopItemsResponse.d.ts +5 -0
  9. package/dist/Store/ShopCategory.d.ts +5 -0
  10. package/dist/Store/ShopCategoryPublicMeta.d.ts +4 -0
  11. package/dist/Store/ShopItem.d.ts +9 -0
  12. package/dist/Store/ShopItemPublicMeta.d.ts +10 -0
  13. package/dist/Store/ShopItemType.d.ts +4 -0
  14. package/dist/Store/StorItemPruchased.d.ts +6 -0
  15. package/dist/WSAPI/WSAPITypes.d.ts +5 -1
  16. package/dist/index.js +3 -1
  17. package/dist/index.js.map +1 -1
  18. package/dist/index.modern.mjs +3 -1
  19. package/dist/index.modern.mjs.map +1 -1
  20. package/dist/service/index.d.ts +5 -0
  21. package/dist/service/types/ErrorCodes.d.ts +13 -0
  22. package/dist/service/types/GRequest.d.ts +16 -0
  23. package/dist/service/types/GResponse.d.ts +10 -0
  24. package/dist/service/types/Game/GameAttemptType.d.ts +6 -0
  25. package/dist/service/types/Game/GameCanPlayType.d.ts +10 -0
  26. package/dist/service/types/Game/GameExternalStatus.d.ts +6 -0
  27. package/dist/service/types/Game/GameInfo.d.ts +9 -0
  28. package/dist/service/types/Game/GamePick.d.ts +90 -0
  29. package/dist/service/types/Game/GameUtil.d.ts +7 -0
  30. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +7 -0
  31. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +7 -0
  32. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +5 -0
  33. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +6 -0
  34. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +5 -0
  35. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +34 -0
  36. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +11 -0
  37. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +12 -0
  38. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +5 -0
  39. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +5 -0
  40. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +5 -0
  41. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +15 -0
  42. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +10 -0
  43. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +3 -0
  44. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +5 -0
  45. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +11 -0
  46. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +8 -0
  47. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +13 -0
  48. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +21 -0
  49. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +31 -0
  50. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +12 -0
  51. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +9 -0
  52. package/dist/service/types/User/UserInfo.d.ts +10 -0
  53. package/dist/util/Util.d.ts +51 -0
  54. package/docs/enums/MiniGamePrizeTypeName.md +2 -2
  55. package/docs/interfaces/TMiniGamePrize.md +15 -16
  56. package/docs/interfaces/TMiniGameTemplate.md +11 -9
  57. package/docs/interfaces/TTournament.md +0 -4
  58. package/package.json +1 -1
  59. package/src/MiniGames/SAWGetTemplatesResponse.ts +2 -0
  60. package/src/MiniGames/SAWPrizeUI.ts +3 -0
  61. package/src/WSAPI/WSAPITypes.ts +6 -1
@@ -278,12 +278,8 @@ ___
278
278
 
279
279
  • `Optional` **min\_scores\_win**: `number`
280
280
 
281
- The minimum amount of score points that the user should get in order to be qualified for the prize
282
-
283
281
  ___
284
282
 
285
283
  ### hide\_leaderboard\_min\_scores
286
284
 
287
285
  • `Optional` **hide\_leaderboard\_min\_scores**: `boolean`
288
-
289
- When enabled, users who don’t meet the minimum qualifying score will be hidden from the Leaderboard
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.211",
3
+ "version": "0.0.212",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,6 +41,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
41
41
  next_available_spin_ts: r.next_available_spin_ts,
42
42
  steps_to_finish_game: r.saw_template_ui_definition.steps_to_finish_game,
43
43
  custom_section_id: r.saw_template_ui_definition.custom_section_id,
44
+ saw_template_ui_definition: r.saw_template_ui_definition,
44
45
 
45
46
  prizes: r.prizes.map((p) => {
46
47
  const y: TMiniGamePrize = {
@@ -71,6 +72,7 @@ export const SAWTemplatesTransform = (items: SAWTemplate[]): TMiniGameTemplate[]
71
72
  custom_data: IntUtils.JsonOrText(r.saw_template_ui_definition.custom_data),
72
73
  prize_modifiers: p.saw_prize_ui_definition.prize_modifiers,
73
74
  allow_split_decimal: p.saw_prize_ui_definition.allow_split_decimal,
75
+ hide_prize_from_history: p.saw_prize_ui_definition.hide_prize_from_history
74
76
  };
75
77
  return y;
76
78
  }),
@@ -23,4 +23,7 @@ export interface SAWPrizeUI {
23
23
  custom_data?: any;
24
24
  prize_modifiers?: PrizeModifiers[]; // treasure hunt specific
25
25
  allow_split_decimal?: boolean; // treasure hunt specific
26
+ hide_prize_from_history?: boolean;
27
+
28
+
26
29
  }
@@ -1,5 +1,5 @@
1
1
  import { BuyStoreItemErrorCode } from '../Store';
2
- import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode, SAWTemplate } from '../MiniGames';
2
+ import { MiniGamePrizeTypeName, SAWAcknowledgeTypeName, SAWBuyInTypeName, SAWGameTypeName, SAWSpinErrorCode, SAWTemplate, SAWTemplateUI } from '../MiniGames';
3
3
  import { TournamentRegistrationError, TournamentRegistrationStatusName, TournamentRegistrationTypeName } from '../Tournaments';
4
4
  import { AchCategory, AchievementAvailabilityStatus } from '../Missions';
5
5
  import { LeaderBoardPeriodType } from '../Leaderboard';
@@ -68,6 +68,8 @@ export interface TMiniGamePrize {
68
68
  prize_modifiers?: PrizeModifiers[];
69
69
  /** When enabled, you can split prize value by decimal values */
70
70
  allow_split_decimal?: boolean;
71
+ /** When enabled, you can hide prize from prize history */
72
+ hide_prize_from_history?:boolean;
71
73
  }
72
74
 
73
75
  /**
@@ -160,6 +162,9 @@ export interface TMiniGameTemplate {
160
162
  steps_to_finish_game?: number;
161
163
  /* Hold the id of the custom section */
162
164
  custom_section_id?: number;
165
+
166
+ /** The UI definition of the mini-game */
167
+ saw_template_ui_definition: SAWTemplateUI;
163
168
  }
164
169
 
165
170
  /**