@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
@@ -5,8 +5,7 @@ export declare enum AchCustomSectionType {
5
5
  LEVELS = 4,
6
6
  MINI_GAMES = 5,
7
7
  MISSION_CUSTOM_LAYOUT = 6,
8
- MATCH_X = 7,
9
- QUIZ = 8,
8
+ MATCH_X_AND_QUIZ = 7,
10
9
  REDIRECT_LINK = 9,
11
10
  LOOTBOX_WEEKLY = 10,
12
11
  LOOTBOX_CALENDAR_DAYS = 11,
@@ -75,10 +75,10 @@ interface RafflePrize {
75
75
  */
76
76
  min_required_tickets_for_user: number;
77
77
  /**
78
- * The maximum number of prizes that can be given withing one instance/run of draw.
78
+ * The maximum number of prizes that can be given within one instance/run of draw.
79
79
  * For example the prize is iPhone and add_one_prize_per_each_x_tickets is set to 1000,
80
80
  * cap_prizes_per_run is set to 3, and the total number of tickets collected is 7000.
81
- * In this case, the prizes_per_run_actual will be limitted by 3
81
+ * In this case, the prizes_per_run_actual will be limited by 3
82
82
  */
83
83
  cap_prizes_per_run?: number;
84
84
  /**
package/dist/index.js CHANGED
@@ -3236,8 +3236,7 @@ var AchCustomSectionType;
3236
3236
  AchCustomSectionType[AchCustomSectionType["LEVELS"] = 4] = "LEVELS";
3237
3237
  AchCustomSectionType[AchCustomSectionType["MINI_GAMES"] = 5] = "MINI_GAMES";
3238
3238
  AchCustomSectionType[AchCustomSectionType["MISSION_CUSTOM_LAYOUT"] = 6] = "MISSION_CUSTOM_LAYOUT";
3239
- AchCustomSectionType[AchCustomSectionType["MATCH_X"] = 7] = "MATCH_X";
3240
- AchCustomSectionType[AchCustomSectionType["QUIZ"] = 8] = "QUIZ";
3239
+ AchCustomSectionType[AchCustomSectionType["MATCH_X_AND_QUIZ"] = 7] = "MATCH_X_AND_QUIZ";
3241
3240
  AchCustomSectionType[AchCustomSectionType["REDIRECT_LINK"] = 9] = "REDIRECT_LINK";
3242
3241
  AchCustomSectionType[AchCustomSectionType["LOOTBOX_WEEKLY"] = 10] = "LOOTBOX_WEEKLY";
3243
3242
  AchCustomSectionType[AchCustomSectionType["LOOTBOX_CALENDAR_DAYS"] = 11] = "LOOTBOX_CALENDAR_DAYS";
@@ -3420,12 +3419,15 @@ var SmarticoAPI = /*#__PURE__*/function () {
3420
3419
  'img4.smr.vc': 'dvm0p9vsezqr2.cloudfront.net',
3421
3420
  'img5.smr.vc': 'd3gen1ksvxhac8.cloudfront.net',
3422
3421
  'img6.smr.vc': 'db1kmyg7iufeo.cloudfront.net',
3422
+ 'img7.smr.vc': 'd36om2g86xefo6.cloudfront.net',
3423
+ 'img8.smr.vc': 'd2zme31v54n5pb.cloudfront.net',
3423
3424
  'static.smr.vc': 'dtt380pweilws.cloudfront.net',
3424
3425
  'static3.smr.vc': 'd1qt8ake8g4imn.cloudfront.net',
3425
3426
  'static4.smr.vc': 'd146b4m7rkvjkw.cloudfront.net',
3426
3427
  'static5.smr.vc': 'd3l7suk1kl9rwh.cloudfront.net',
3427
3428
  'static6.smr.vc': 'd121pfj16xdfcq.cloudfront.net',
3428
- 'static7.smr.vc': 'd21deilz814qgl.cloudfront.net'
3429
+ 'static7.smr.vc': 'd21deilz814qgl.cloudfront.net',
3430
+ 'static8.smr.vc': 'd1uffsroxjy2ku.cloudfront.net'
3429
3431
  };
3430
3432
  var escapeRegExp = function escapeRegExp(str) {
3431
3433
  return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
@@ -3518,6 +3520,9 @@ var SmarticoAPI = /*#__PURE__*/function () {
3518
3520
  var timeStart = new Date().getTime();
3519
3521
  return Promise.resolve(_this.messageSender(message, _this.publicUrl, expectCID)).then(function (_this$messageSender) {
3520
3522
  result = _this$messageSender;
3523
+ if (result.errCode && result.errSetup) {
3524
+ throw new Error(result.errMessage);
3525
+ }
3521
3526
  result = SmarticoAPI.replaceSmrDomainsWithCloudfront(result);
3522
3527
  var timeEnd = new Date().getTime();
3523
3528
  if (_this.logHTTPTiming) {