@smartico/public-api 0.0.350 → 0.0.351
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/index.js
CHANGED
|
@@ -3962,12 +3962,14 @@ var ActivityLogTransform = function ActivityLogTransform(items) {
|
|
|
3962
3962
|
return [];
|
|
3963
3963
|
}
|
|
3964
3964
|
return items.map(function (item) {
|
|
3965
|
+
var _item$type;
|
|
3965
3966
|
var itemTransformed = {
|
|
3966
3967
|
create_date: item.create_date,
|
|
3967
3968
|
user_ext_id: item.user_ext_id,
|
|
3968
3969
|
crm_brand_id: item.crm_brand_id,
|
|
3969
3970
|
source_type_id: item.source_type_id
|
|
3970
3971
|
};
|
|
3972
|
+
item.type = (_item$type = item.type) != null ? _item$type : exports.UserBalanceType.Points;
|
|
3971
3973
|
if (item.type === exports.UserBalanceType.Diamonds || item.type === exports.UserBalanceType.Gems) {
|
|
3972
3974
|
itemTransformed.type = item.type;
|
|
3973
3975
|
itemTransformed.amount = item.amount;
|