@smartico/public-api 0.0.301 → 0.0.303

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.
@@ -17,4 +17,5 @@ export interface StoreItemPublicMeta {
17
17
  discount_prize?: number;
18
18
  discount_prize_ribbon?: string;
19
19
  custom_ribbon_image?: string;
20
+ purchase_limit_message?: string;
20
21
  }
@@ -253,7 +253,7 @@ export interface TLevel {
253
253
  export interface TLevelCurrent extends TLevel {
254
254
  /** The ordinal position of the level */
255
255
  ordinal_position: number;
256
- /** The progress of the level */
256
+ /** The progress of the user towards next level in the percents to complete */
257
257
  progress: number;
258
258
  }
259
259
  /**
@@ -460,6 +460,11 @@ export interface TStoreItem {
460
460
  **Note**: when user is trying to buy the item, the response from server can return custom error messages that can be shown to the user as well
461
461
  */
462
462
  limit_message: string;
463
+ /** The message that should be shown to the user if they are not eligible to buy it because of purchase limitation. This message can be used to explain the reason why user cannot buy the item, e.g. 'Item is no more available today. Come back Friday'.
464
+ The message is translated to the user language.
465
+ **Note**: when user is trying to buy the item, the response from server can return custom error messages that can be shown to the user as well
466
+ */
467
+ purchase_limit_message: string;
463
468
  /** The priority of the store item. Can be used to sort the items in the store */
464
469
  priority: number;
465
470
  /** The list of IDs of the related items. Can be used to show the related items in the store */
package/dist/index.js CHANGED
@@ -381,7 +381,7 @@ exports.SAWGameTypeName = void 0;
381
381
  /** @hidden */
382
382
  var SAWGameTypeNamed = function SAWGameTypeNamed(type) {
383
383
  var _SAWGameType$SpinAWhe;
384
- return (_SAWGameType$SpinAWhe = {}, _SAWGameType$SpinAWhe[exports.SAWGameType.SpinAWheel] = exports.SAWGameTypeName.SpinAWheel, _SAWGameType$SpinAWhe[exports.SAWGameType.ScratchCard] = exports.SAWGameTypeName.ScratchCard, _SAWGameType$SpinAWhe[exports.SAWGameType.MatchX] = exports.SAWGameTypeName.MatchX, _SAWGameType$SpinAWhe[exports.SAWGameType.GiftBox] = exports.SAWGameTypeName.GiftBox, _SAWGameType$SpinAWhe[exports.SAWGameType.PrizeDrop] = exports.SAWGameTypeName.PrizeDrop, _SAWGameType$SpinAWhe[exports.SAWGameType.Quiz] = exports.SAWGameTypeName.Quiz, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxWeekdays] = exports.SAWGameTypeName.LootboxWeekdays, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxCalendarDays] = exports.SAWGameTypeName.LootboxCalendarDays, _SAWGameType$SpinAWhe[exports.SAWGameType.TreasureHunt] = exports.SAWGameTypeName.TreasureHunt, _SAWGameType$SpinAWhe[exports.SAWGameType.Voyager] = exports.SAWGameTypeName.Voyager, _SAWGameType$SpinAWhe)[type] || exports.SAWGameTypeName.Unknown;
384
+ return (_SAWGameType$SpinAWhe = {}, _SAWGameType$SpinAWhe[exports.SAWGameType.SpinAWheel] = exports.SAWGameTypeName.SpinAWheel, _SAWGameType$SpinAWhe[exports.SAWGameType.ScratchCard] = exports.SAWGameTypeName.ScratchCard, _SAWGameType$SpinAWhe[exports.SAWGameType.MatchX] = exports.SAWGameTypeName.MatchX, _SAWGameType$SpinAWhe[exports.SAWGameType.GiftBox] = exports.SAWGameTypeName.GiftBox, _SAWGameType$SpinAWhe[exports.SAWGameType.PrizeDrop] = exports.SAWGameTypeName.PrizeDrop, _SAWGameType$SpinAWhe[exports.SAWGameType.Quiz] = exports.SAWGameTypeName.Quiz, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxWeekdays] = exports.SAWGameTypeName.LootboxWeekdays, _SAWGameType$SpinAWhe[exports.SAWGameType.LootboxCalendarDays] = exports.SAWGameTypeName.LootboxCalendarDays, _SAWGameType$SpinAWhe[exports.SAWGameType.TreasureHunt] = exports.SAWGameTypeName.TreasureHunt, _SAWGameType$SpinAWhe[exports.SAWGameType.Voyager] = exports.SAWGameTypeName.Voyager, _SAWGameType$SpinAWhe[exports.SAWGameType.Plinko] = exports.SAWGameTypeName.Plinko, _SAWGameType$SpinAWhe)[type] || exports.SAWGameTypeName.Unknown;
385
385
  };
386
386
 
387
387
  exports.SAWPrizeType = void 0;
@@ -979,6 +979,7 @@ var StoreItemTransform = function StoreItemTransform(items) {
979
979
  description: r.itemPublicMeta.description,
980
980
  ribbon: r.itemPublicMeta.label_tag === 'custom' ? r.itemPublicMeta.custom_label_tag : r.itemPublicMeta.label_tag,
981
981
  limit_message: r.itemPublicMeta.limit_message,
982
+ purchase_limit_message: r.itemPublicMeta.purchase_limit_message,
982
983
  priority: (_r$itemPublicMeta$pri = r.itemPublicMeta.priority) != null ? _r$itemPublicMeta$pri : 0,
983
984
  related_item_ids: r.itemPublicMeta.related_items,
984
985
  hint_text: r.itemPublicMeta.hint_text,
@@ -1023,6 +1024,7 @@ var StoreItemPurchasedTransform = function StoreItemPurchasedTransform(items) {
1023
1024
  description: r.itemPublicMeta.description,
1024
1025
  ribbon: r.itemPublicMeta.label_tag === 'custom' ? r.itemPublicMeta.custom_label_tag : r.itemPublicMeta.label_tag,
1025
1026
  limit_message: r.itemPublicMeta.limit_message,
1027
+ purchase_limit_message: r.itemPublicMeta.purchase_limit_message,
1026
1028
  priority: (_r$itemPublicMeta$pri = r.itemPublicMeta.priority) != null ? _r$itemPublicMeta$pri : 0,
1027
1029
  related_item_ids: r.itemPublicMeta.related_items,
1028
1030
  hint_text: r.itemPublicMeta.hint_text,