@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
|
@@ -238,3 +238,11 @@ ___
|
|
|
238
238
|
• `Optional` **custom\_section\_type\_id**: `number`
|
|
239
239
|
|
|
240
240
|
ID of specific Custom Section type
|
|
241
|
+
|
|
242
|
+
___
|
|
243
|
+
|
|
244
|
+
### cant\_buy\_message
|
|
245
|
+
|
|
246
|
+
• `Optional` **cant\_buy\_message**: `string`
|
|
247
|
+
|
|
248
|
+
The message that should be shown to the user if they are not eligible to buy it. This message can be used to explain the reason why user cannot buy the item, e.g. 'You should be VIP to buy this item'.
|
package/package.json
CHANGED
package/src/Store/StoreItem.ts
CHANGED
|
@@ -56,6 +56,7 @@ export const StoreItemTransform = (items: StoreItem[]): TStoreItem[] => {
|
|
|
56
56
|
custom_section_id: r.itemPublicMeta.custom_section_id,
|
|
57
57
|
only_in_custom_section: r.itemPublicMeta.only_in_custom_section,
|
|
58
58
|
custom_section_type_id: r.itemPublicMeta.custom_section_type_id,
|
|
59
|
+
...(r.itemPublicMeta.cant_buy_message ? { cant_buy_message: r.itemPublicMeta.cant_buy_message } : {}),
|
|
59
60
|
};
|
|
60
61
|
return x;
|
|
61
62
|
});
|
package/src/WSAPI/WSAPITypes.ts
CHANGED
|
@@ -558,6 +558,8 @@ export interface TStoreItem {
|
|
|
558
558
|
only_in_custom_section?: boolean;
|
|
559
559
|
/** ID of specific Custom Section type */
|
|
560
560
|
custom_section_type_id?: number;
|
|
561
|
+
/** The message that should be shown to the user if they are not eligible to buy it. This message can be used to explain the reason why user cannot buy the item, e.g. 'You should be VIP to buy this item'. */
|
|
562
|
+
cant_buy_message?: string;
|
|
561
563
|
}
|
|
562
564
|
|
|
563
565
|
/**
|