@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
|
@@ -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
|
|
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
|
|
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["
|
|
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) {
|