@smartico/public-api 0.0.359 → 0.0.361
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/MiniGames/SAWTemplateUI.d.ts +304 -7
- package/dist/Store/StoreItem.d.ts +2 -0
- package/dist/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +39 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +31 -4
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/interfaces/SAWTemplateUI.md +273 -30
- package/docs/api/interfaces/StoreItem.md +6 -0
- package/docs/api/interfaces/TStoreItem.md +8 -0
- package/package.json +1 -1
- package/src/Jackpots/GetJackpotsResponse.ts +0 -1
- package/src/MiniGames/SAWTemplateUI.ts +440 -64
- package/src/Store/StoreItem.ts +15 -0
- package/src/Store/StoreItemPurchased.ts +14 -1
- package/src/WSAPI/WSAPITypes.ts +2 -0
- package/src/index.ts +2 -1
package/dist/index.modern.mjs
CHANGED
|
@@ -1026,7 +1026,7 @@ const mapPurchaseType$1 = purchaseType => {
|
|
|
1026
1026
|
};
|
|
1027
1027
|
const StoreItemTransform = items => {
|
|
1028
1028
|
return items.filter(r => r.id >= 1).map(r => {
|
|
1029
|
-
var _r$itemPublicMeta$pri, _r$categoryIds;
|
|
1029
|
+
var _r$itemPublicMeta$pri, _r$categoryIds, _r$relatedGames;
|
|
1030
1030
|
const x = _extends({
|
|
1031
1031
|
id: r.id,
|
|
1032
1032
|
name: r.itemPublicMeta.name,
|
|
@@ -1054,7 +1054,21 @@ const StoreItemTransform = items => {
|
|
|
1054
1054
|
custom_section_type_id: r.itemPublicMeta.custom_section_type_id
|
|
1055
1055
|
}, r.itemPublicMeta.cant_buy_message ? {
|
|
1056
1056
|
cant_buy_message: r.itemPublicMeta.cant_buy_message
|
|
1057
|
-
} : {}
|
|
1057
|
+
} : {}, {
|
|
1058
|
+
related_games: (((_r$relatedGames = r.relatedGames) == null ? void 0 : _r$relatedGames.filter(g => g.game_public_meta.enabled)) || []).map((g, i) => ({
|
|
1059
|
+
ext_game_id: g.ext_game_id,
|
|
1060
|
+
game_public_meta: {
|
|
1061
|
+
name: g.game_public_meta.name,
|
|
1062
|
+
link: g.game_public_meta.link,
|
|
1063
|
+
image: g.game_public_meta.image,
|
|
1064
|
+
enabled: g.game_public_meta.enabled,
|
|
1065
|
+
game_categories: g.game_public_meta.game_categories,
|
|
1066
|
+
game_provider: g.game_public_meta.game_provider,
|
|
1067
|
+
mobile_spec_link: g.game_public_meta.mobile_spec_link,
|
|
1068
|
+
priority: i + 1
|
|
1069
|
+
}
|
|
1070
|
+
}))
|
|
1071
|
+
});
|
|
1058
1072
|
return x;
|
|
1059
1073
|
});
|
|
1060
1074
|
};
|
|
@@ -1071,7 +1085,7 @@ const mapPurchaseType = purchaseType => {
|
|
|
1071
1085
|
};
|
|
1072
1086
|
const StoreItemPurchasedTransform = items => {
|
|
1073
1087
|
return items.filter(r => r.id >= 1).map(r => {
|
|
1074
|
-
var _r$itemPublicMeta$pri, _r$categoryIds;
|
|
1088
|
+
var _r$itemPublicMeta$pri, _r$categoryIds, _r$relatedGames;
|
|
1075
1089
|
const purchasedToday = r.purchase_ts ? IntUtils.isWithinPeriod(r.purchase_ts, 'today') : false;
|
|
1076
1090
|
const purchasedThisWeek = r.purchase_ts ? IntUtils.isWithinPeriod(r.purchase_ts, 'thisWeek') : false;
|
|
1077
1091
|
const purchasedThisMonth = r.purchase_ts ? IntUtils.isWithinPeriod(r.purchase_ts, 'thisMonth') : false;
|
|
@@ -1097,7 +1111,20 @@ const StoreItemPurchasedTransform = items => {
|
|
|
1097
1111
|
purchased_today: purchasedToday,
|
|
1098
1112
|
purchased_this_week: purchasedThisWeek,
|
|
1099
1113
|
purchased_this_month: purchasedThisMonth,
|
|
1100
|
-
custom_data: r.itemPublicMeta.custom_data
|
|
1114
|
+
custom_data: r.itemPublicMeta.custom_data,
|
|
1115
|
+
related_games: (((_r$relatedGames = r.relatedGames) == null ? void 0 : _r$relatedGames.filter(g => g.game_public_meta.enabled)) || []).map((g, i) => ({
|
|
1116
|
+
ext_game_id: g.ext_game_id,
|
|
1117
|
+
game_public_meta: {
|
|
1118
|
+
name: g.game_public_meta.name,
|
|
1119
|
+
link: g.game_public_meta.link,
|
|
1120
|
+
image: g.game_public_meta.image,
|
|
1121
|
+
enabled: g.game_public_meta.enabled,
|
|
1122
|
+
game_categories: g.game_public_meta.game_categories,
|
|
1123
|
+
game_provider: g.game_public_meta.game_provider,
|
|
1124
|
+
mobile_spec_link: g.game_public_meta.mobile_spec_link,
|
|
1125
|
+
priority: i + 1
|
|
1126
|
+
}
|
|
1127
|
+
}))
|
|
1101
1128
|
};
|
|
1102
1129
|
return x;
|
|
1103
1130
|
});
|