@smartico/public-api 0.0.345 → 0.0.346
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/WSAPI/WSAPITypes.d.ts +2 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -2
- package/dist/index.modern.mjs.map +1 -1
- package/docs/api/interfaces/TStoreItem.md +8 -0
- package/package.json +1 -1
- package/src/Store/StoreItem.ts +1 -0
- package/src/WSAPI/WSAPITypes.ts +2 -0
package/dist/index.modern.mjs
CHANGED
|
@@ -1022,7 +1022,7 @@ const mapPurchaseType$1 = purchaseType => {
|
|
|
1022
1022
|
const StoreItemTransform = items => {
|
|
1023
1023
|
return items.filter(r => r.id >= 1).map(r => {
|
|
1024
1024
|
var _r$itemPublicMeta$pri, _r$categoryIds;
|
|
1025
|
-
const x = {
|
|
1025
|
+
const x = _extends({
|
|
1026
1026
|
id: r.id,
|
|
1027
1027
|
name: r.itemPublicMeta.name,
|
|
1028
1028
|
purchase_type: mapPurchaseType$1(r.itemPublicMeta.purchase_type),
|
|
@@ -1047,7 +1047,9 @@ const StoreItemTransform = items => {
|
|
|
1047
1047
|
custom_section_id: r.itemPublicMeta.custom_section_id,
|
|
1048
1048
|
only_in_custom_section: r.itemPublicMeta.only_in_custom_section,
|
|
1049
1049
|
custom_section_type_id: r.itemPublicMeta.custom_section_type_id
|
|
1050
|
-
}
|
|
1050
|
+
}, r.itemPublicMeta.cant_buy_message ? {
|
|
1051
|
+
cant_buy_message: r.itemPublicMeta.cant_buy_message
|
|
1052
|
+
} : {});
|
|
1051
1053
|
return x;
|
|
1052
1054
|
});
|
|
1053
1055
|
};
|