@smartico/public-api 0.0.374 → 0.0.376
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/Clans/JoinClanErrorCode.d.ts +8 -6
- package/dist/MiniGames/SAWTemplateUI.d.ts +6 -0
- package/dist/index.js +518 -523
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +20 -23
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Clans/JoinClanErrorCode.ts +8 -6
- package/src/MiniGames/SAWTemplateUI.ts +7 -0
- 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
|
@@ -177,18 +177,13 @@ var ClassId;
|
|
|
177
177
|
})(ClassId || (ClassId = {}));
|
|
178
178
|
|
|
179
179
|
function _extends() {
|
|
180
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
181
|
-
for (var
|
|
182
|
-
var
|
|
183
|
-
for (var
|
|
184
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
185
|
-
target[key] = source[key];
|
|
186
|
-
}
|
|
187
|
-
}
|
|
180
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
181
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
182
|
+
var t = arguments[e];
|
|
183
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
188
184
|
}
|
|
189
|
-
return
|
|
190
|
-
};
|
|
191
|
-
return _extends.apply(this, arguments);
|
|
185
|
+
return n;
|
|
186
|
+
}, _extends.apply(null, arguments);
|
|
192
187
|
}
|
|
193
188
|
|
|
194
189
|
class IntUtils {
|
|
@@ -1246,7 +1241,7 @@ var BadgesTimeLimitStates;
|
|
|
1246
1241
|
BadgesTimeLimitStates[BadgesTimeLimitStates["AfterEndDateWithProgress"] = 5] = "AfterEndDateWithProgress";
|
|
1247
1242
|
})(BadgesTimeLimitStates || (BadgesTimeLimitStates = {}));
|
|
1248
1243
|
|
|
1249
|
-
var
|
|
1244
|
+
var _MissionUtils;
|
|
1250
1245
|
const USER_STATE_PARAMS_KEYS_GAMES = ['core_fav_game_top3', 'core_fav_game_type_top3', 'core_fav_game_provider_top3'];
|
|
1251
1246
|
const USER_STATE_PARAMS_KEYS_BET_AMOUNT = ['core_recommended_deposit_amount', 'core_recommended_casino_bet_amount', 'casino_last_bet_amount', 'casino_last_bet_amount_real', 'casino_last_bet_amount_bonus', 'acc_last_deposit_amount'];
|
|
1252
1247
|
const MINOR_WORDS = new Set(['of', 'at', 'in', 'on', 'to', 'up', 'as', 'by', 'for', 'from', 'into', 'onto', 'with', 'upon', 'via', 'and', 'but', 'or', 'nor', 'so', 'yet', 'vs', 'v', 'a', 'an', 'the']);
|
|
@@ -1268,14 +1263,14 @@ function toGameTitleCase(raw) {
|
|
|
1268
1263
|
}).join('');
|
|
1269
1264
|
}
|
|
1270
1265
|
class MissionUtils {}
|
|
1271
|
-
|
|
1266
|
+
_MissionUtils = MissionUtils;
|
|
1272
1267
|
MissionUtils.getAvailabilityStatus = mission => {
|
|
1273
1268
|
if (!mission) {
|
|
1274
1269
|
return null;
|
|
1275
1270
|
}
|
|
1276
|
-
const activeFrom = mission.active_from_ts ?
|
|
1277
|
-
const activeTill = mission.active_till_ts ?
|
|
1278
|
-
const startDate = mission.start_date_ts ?
|
|
1271
|
+
const activeFrom = mission.active_from_ts ? _MissionUtils.getMs(mission.active_from_ts) : null;
|
|
1272
|
+
const activeTill = mission.active_till_ts ? _MissionUtils.getMs(mission.active_till_ts) : null;
|
|
1273
|
+
const startDate = mission.start_date_ts ? _MissionUtils.getMs(mission.start_date_ts) : null;
|
|
1279
1274
|
const timeLimit = mission.time_limit_ms;
|
|
1280
1275
|
const requiresOptIn = mission.requiresOptin;
|
|
1281
1276
|
const optedIn = mission.isOptedIn;
|
|
@@ -1479,7 +1474,7 @@ MissionUtils.replaceFavGameNameTag = ({
|
|
|
1479
1474
|
currencySymbol
|
|
1480
1475
|
}) => {
|
|
1481
1476
|
if (task && task.task_public_meta && task.task_public_meta.name) {
|
|
1482
|
-
task.task_public_meta.name =
|
|
1477
|
+
task.task_public_meta.name = _MissionUtils.replaceTagsFavMissionTask({
|
|
1483
1478
|
task,
|
|
1484
1479
|
valueToReplace: task.task_public_meta.name,
|
|
1485
1480
|
currencySymbol
|
|
@@ -5770,18 +5765,20 @@ var JoinClanErrorCode;
|
|
|
5770
5765
|
(function (JoinClanErrorCode) {
|
|
5771
5766
|
/** No error, join completed */
|
|
5772
5767
|
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_OK"] = 0] = "JOIN_CLAN_OK";
|
|
5768
|
+
/** Invalid parameters */
|
|
5769
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_INVALID_PARAMETERS"] = 1000] = "JOIN_CLAN_INVALID_PARAMETERS";
|
|
5773
5770
|
/** clan_id doesn't exist for this label */
|
|
5774
5771
|
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_NOT_FOUND"] = 1001] = "JOIN_CLAN_NOT_FOUND";
|
|
5775
5772
|
/** members_count >= capacity_limit */
|
|
5776
5773
|
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_FULL"] = 1002] = "JOIN_CLAN_FULL";
|
|
5777
|
-
/**
|
|
5778
|
-
JoinClanErrorCode[JoinClanErrorCode["
|
|
5774
|
+
/** Not enough Points / Gems / Diamonds for entry fee */
|
|
5775
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_INSUFFICIENT_FUNDS"] = 1003] = "JOIN_CLAN_INSUFFICIENT_FUNDS";
|
|
5779
5776
|
/** User doesn't satisfy entry_conditions / entry_segment_id */
|
|
5780
5777
|
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_SEGMENT_MISMATCH"] = 1004] = "JOIN_CLAN_SEGMENT_MISMATCH";
|
|
5781
|
-
/**
|
|
5782
|
-
JoinClanErrorCode[JoinClanErrorCode["
|
|
5783
|
-
/** User is
|
|
5784
|
-
JoinClanErrorCode[JoinClanErrorCode["
|
|
5778
|
+
/** User is not in a clan */
|
|
5779
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_USER_IS_NOT_IN_CLAN"] = 1005] = "JOIN_CLAN_USER_IS_NOT_IN_CLAN";
|
|
5780
|
+
/** User is within the CLAN_COOLDOWN_DAYS window */
|
|
5781
|
+
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_COOLDOWN_ACTIVE"] = 1006] = "JOIN_CLAN_COOLDOWN_ACTIVE";
|
|
5785
5782
|
/** clan_status_id != 1 (clan is archived) */
|
|
5786
5783
|
JoinClanErrorCode[JoinClanErrorCode["JOIN_CLAN_ARCHIVED"] = 1007] = "JOIN_CLAN_ARCHIVED";
|
|
5787
5784
|
/** Clan joined after tournament start */
|