@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.
- package/dist/CustomSections/AchCustomSection.d.ts +1 -2
- package/dist/Raffle/RafflePrize.d.ts +2 -2
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +8 -3
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/RafflePrize.md +2 -2
- package/package.json +1 -1
- package/src/CustomSections/AchCustomSection.ts +1 -2
- package/src/Raffle/RafflePrize.ts +2 -2
- package/src/SmarticoAPI.ts +9 -1
- package/dist/Quiz/MarketsAnswersType.d.ts +0 -22
- package/dist/Raffle/GetDrawResponse.d.ts +0 -5
- package/dist/SmarticoPublicAPI.d.ts +0 -23
- package/dist/Store/BuyShopItemErrorCode.d.ts +0 -10
- package/dist/Store/BuyShopItemRequest.d.ts +0 -4
- package/dist/Store/BuyShopItemResponse.d.ts +0 -4
- package/dist/Store/GetCategoriesShopResponse.d.ts +0 -5
- package/dist/Store/GetShopItemsResponse.d.ts +0 -5
- package/dist/Store/ShopCategory.d.ts +0 -5
- package/dist/Store/ShopCategoryPublicMeta.d.ts +0 -4
- package/dist/Store/ShopItem.d.ts +0 -9
- package/dist/Store/ShopItemPublicMeta.d.ts +0 -10
- package/dist/Store/ShopItemType.d.ts +0 -4
- package/dist/Store/StorItemPruchased.d.ts +0 -6
- package/dist/service/index.d.ts +0 -5
- package/dist/service/types/ErrorCodes.d.ts +0 -13
- package/dist/service/types/GRequest.d.ts +0 -16
- package/dist/service/types/GResponse.d.ts +0 -10
- package/dist/service/types/Game/GameAttemptType.d.ts +0 -6
- package/dist/service/types/Game/GameCanPlayType.d.ts +0 -10
- package/dist/service/types/Game/GameExternalStatus.d.ts +0 -6
- package/dist/service/types/Game/GameInfo.d.ts +0 -9
- package/dist/service/types/Game/GamePick.d.ts +0 -90
- package/dist/service/types/Game/GameUtil.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsRequest.d.ts +0 -7
- package/dist/service/types/SmarticoProto/GetTranslationsResponse.d.ts +0 -7
- package/dist/service/types/SmarticoProto/ProtocolMessage.d.ts +0 -5
- package/dist/service/types/SmarticoProto/ProtocolRequest.d.ts +0 -6
- package/dist/service/types/SmarticoProto/ProtocolResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/PublicLabelInfo.d.ts +0 -34
- package/dist/service/types/SmarticoProto/PublicProperties.d.ts +0 -11
- package/dist/service/types/SmarticoProto/ResponseIdentify.d.ts +0 -12
- package/dist/service/types/SmarticoProto/SAW/SAWAcknowledgeType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWBuyInType.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinRequest.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWDoSpinResponse.d.ts +0 -15
- package/dist/service/types/SmarticoProto/SAW/SAWGameType.d.ts +0 -10
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesRequest.d.ts +0 -3
- package/dist/service/types/SmarticoProto/SAW/SAWGetTemplatesResponse.d.ts +0 -5
- package/dist/service/types/SmarticoProto/SAW/SAWPrize.d.ts +0 -11
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeType.d.ts +0 -8
- package/dist/service/types/SmarticoProto/SAW/SAWPrizeUI.d.ts +0 -13
- package/dist/service/types/SmarticoProto/SAW/SAWTemplate.d.ts +0 -21
- package/dist/service/types/SmarticoProto/SAW/SAWTemplateUI.d.ts +0 -31
- package/dist/service/types/SmarticoProto/SAW/SAWWinSoundType.d.ts +0 -12
- package/dist/service/types/SmarticoProto/TranslationArea.d.ts +0 -9
- package/dist/service/types/User/UserInfo.d.ts +0 -10
- package/dist/util/Util.d.ts +0 -51
package/dist/index.modern.mjs
CHANGED
|
@@ -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["
|
|
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) {
|