@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.modern.mjs
CHANGED
|
@@ -3488,12 +3488,14 @@ const ActivityLogTransform = items => {
|
|
|
3488
3488
|
return [];
|
|
3489
3489
|
}
|
|
3490
3490
|
return items.map(item => {
|
|
3491
|
+
var _item$type;
|
|
3491
3492
|
const itemTransformed = {
|
|
3492
3493
|
create_date: item.create_date,
|
|
3493
3494
|
user_ext_id: item.user_ext_id,
|
|
3494
3495
|
crm_brand_id: item.crm_brand_id,
|
|
3495
3496
|
source_type_id: item.source_type_id
|
|
3496
3497
|
};
|
|
3498
|
+
item.type = (_item$type = item.type) != null ? _item$type : UserBalanceType.Points;
|
|
3497
3499
|
if (item.type === UserBalanceType.Diamonds || item.type === UserBalanceType.Gems) {
|
|
3498
3500
|
itemTransformed.type = item.type;
|
|
3499
3501
|
itemTransformed.amount = item.amount;
|