@smartico/public-api 0.0.255 → 0.0.257
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 +6 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -1
- package/dist/index.modern.mjs.map +1 -1
- package/docs/interfaces/TStoreItem.md +24 -0
- package/package.json +1 -1
- package/src/Store/StoreItem.ts +4 -1
- package/src/WSAPI/WSAPITypes.ts +6 -0
|
@@ -442,6 +442,12 @@ export interface TStoreItem {
|
|
|
442
442
|
purchase_type: 'points' | 'gems' | 'diamonds';
|
|
443
443
|
/** The date when the store item will be available till */
|
|
444
444
|
active_till_date?: number;
|
|
445
|
+
/** The discounted price of the store item */
|
|
446
|
+
discounted_price?: number;
|
|
447
|
+
/** The ribbon of the discounted price. */
|
|
448
|
+
discount_price_ribbon?: string;
|
|
449
|
+
/** The custom ribbon image of the discounted price. */
|
|
450
|
+
custom_ribbon_image?: string;
|
|
445
451
|
}
|
|
446
452
|
/**
|
|
447
453
|
* TAchCategory describes the badge category item. Each badge item can be assigned to 1 or more categories
|
package/dist/index.js
CHANGED
|
@@ -934,7 +934,10 @@ var StoreItemTransform = function StoreItemTransform(items) {
|
|
|
934
934
|
category_ids: (_r$categoryIds = r.categoryIds) != null ? _r$categoryIds : [],
|
|
935
935
|
pool: r.shopPool,
|
|
936
936
|
custom_data: IntUtils.JsonOrText(r.itemPublicMeta.custom_data),
|
|
937
|
-
active_till_date: r.activeTillDate
|
|
937
|
+
active_till_date: r.activeTillDate,
|
|
938
|
+
discounted_price: r.itemPublicMeta.discount_prize,
|
|
939
|
+
discount_price_ribbon: r.itemPublicMeta.discount_prize_ribbon,
|
|
940
|
+
custom_ribbon_image: r.itemPublicMeta.custom_ribbon_image
|
|
938
941
|
};
|
|
939
942
|
return x;
|
|
940
943
|
});
|