@smartico/public-api 0.0.270 → 0.0.272

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 (59) hide show
  1. package/dist/CustomSections/AchCustomSection.d.ts +1 -2
  2. package/dist/Raffle/RafflePrize.d.ts +2 -2
  3. package/dist/index.js +8 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.modern.mjs +8 -3
  6. package/dist/index.modern.mjs.map +1 -1
  7. package/docs/interfaces/RafflePrize.md +2 -2
  8. package/package.json +1 -1
  9. package/src/CustomSections/AchCustomSection.ts +1 -2
  10. package/src/Raffle/RafflePrize.ts +2 -2
  11. package/src/SmarticoAPI.ts +9 -1
  12. package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
  13. package/dist/Raffle/GetDrawResponse.d.ts +0 -5
  14. package/dist/SmarticoPublicAPI.d.ts +0 -23
  15. package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
  16. package/dist/Store/BuyShopItemRequest.d.ts +0 -4
  17. package/dist/Store/BuyShopItemResponse.d.ts +0 -4
  18. package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
  19. package/dist/Store/GetShopItemsResponse.d.ts +0 -5
  20. package/dist/Store/ShopCategory.d.ts +0 -5
  21. package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
  22. package/dist/Store/ShopItem.d.ts +0 -9
  23. package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
  24. package/dist/Store/ShopItemType.d.ts +0 -4
  25. package/dist/Store/StorItemPruchased.d.ts +0 -6
  26. package/dist/service/index.d.ts +0 -5
  27. package/dist/service/types/ErrorCodes.d.ts +0 -13
  28. package/dist/service/types/GRequest.d.ts +0 -16
  29. package/dist/service/types/GResponse.d.ts +0 -10
  30. package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
  31. package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
  32. package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
  33. package/dist/service/types/Game/GameInfo.d.ts +0 -9
  34. package/dist/service/types/Game/GamePick.d.ts +0 -90
  35. package/dist/service/types/Game/GameUtil.d.ts +0 -7
  36. package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
  37. package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
  38. package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
  39. package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
  40. package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
  41. package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
  42. package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
  43. package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
  44. package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
  45. package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
  46. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
  47. package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
  48. package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
  49. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
  50. package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
  51. package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
  52. package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
  53. package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
  54. package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
  55. package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
  56. package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
  57. package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
  58. package/dist/service/types/User/UserInfo.d.ts +0 -10
  59. package/dist/util/Util.d.ts +0 -51
@@ -2810,8 +2810,7 @@ var AchCustomSectionType;
2810
2810
  AchCustomSectionType[AchCustomSectionType["LEVELS"] = 4] = "LEVELS";
2811
2811
  AchCustomSectionType[AchCustomSectionType["MINI_GAMES"] = 5] = "MINI_GAMES";
2812
2812
  AchCustomSectionType[AchCustomSectionType["MISSION_CUSTOM_LAYOUT"] = 6] = "MISSION_CUSTOM_LAYOUT";
2813
- AchCustomSectionType[AchCustomSectionType["MATCH_X"] = 7] = "MATCH_X";
2814
- AchCustomSectionType[AchCustomSectionType["QUIZ"] = 8] = "QUIZ";
2813
+ AchCustomSectionType[AchCustomSectionType["MATCH_X_AND_QUIZ"] = 7] = "MATCH_X_AND_QUIZ";
2815
2814
  AchCustomSectionType[AchCustomSectionType["REDIRECT_LINK"] = 9] = "REDIRECT_LINK";
2816
2815
  AchCustomSectionType[AchCustomSectionType["LOOTBOX_WEEKLY"] = 10] = "LOOTBOX_WEEKLY";
2817
2816
  AchCustomSectionType[AchCustomSectionType["LOOTBOX_CALENDAR_DAYS"] = 11] = "LOOTBOX_CALENDAR_DAYS";
@@ -2977,12 +2976,15 @@ class SmarticoAPI {
2977
2976
  'img4.smr.vc': 'dvm0p9vsezqr2.cloudfront.net',
2978
2977
  'img5.smr.vc': 'd3gen1ksvxhac8.cloudfront.net',
2979
2978
  'img6.smr.vc': 'db1kmyg7iufeo.cloudfront.net',
2979
+ 'img7.smr.vc': 'd36om2g86xefo6.cloudfront.net',
2980
+ 'img8.smr.vc': 'd2zme31v54n5pb.cloudfront.net',
2980
2981
  'static.smr.vc': 'dtt380pweilws.cloudfront.net',
2981
2982
  'static3.smr.vc': 'd1qt8ake8g4imn.cloudfront.net',
2982
2983
  'static4.smr.vc': 'd146b4m7rkvjkw.cloudfront.net',
2983
2984
  'static5.smr.vc': 'd3l7suk1kl9rwh.cloudfront.net',
2984
2985
  'static6.smr.vc': 'd121pfj16xdfcq.cloudfront.net',
2985
- 'static7.smr.vc': 'd21deilz814qgl.cloudfront.net'
2986
+ 'static7.smr.vc': 'd21deilz814qgl.cloudfront.net',
2987
+ 'static8.smr.vc': 'd1uffsroxjy2ku.cloudfront.net'
2986
2988
  };
2987
2989
  const escapeRegExp = str => str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2988
2990
  let replacedValue = typeof value === 'string' ? value : JSON.stringify(value);
@@ -3023,6 +3025,9 @@ class SmarticoAPI {
3023
3025
  try {
3024
3026
  const timeStart = new Date().getTime();
3025
3027
  result = await this.messageSender(message, this.publicUrl, expectCID);
3028
+ if (result.errCode && result.errSetup) {
3029
+ throw new Error(result.errMessage);
3030
+ }
3026
3031
  result = SmarticoAPI.replaceSmrDomainsWithCloudfront(result);
3027
3032
  const timeEnd = new Date().getTime();
3028
3033
  if (this.logHTTPTiming) {