@smartico/public-api 0.0.117 → 0.0.118

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.
@@ -1,7 +1,5 @@
1
1
  export declare enum PublicLabelSettings {
2
- FCM_SENDER_ID = "FCM_SENDER_ID",
3
2
  PUBLIC_API_URL = "PUBLIC_API_URL",
4
- FCM_SW_URL = "FCM_SW_URL",
5
3
  RECORDING_ENABLED_FOR_ALL_USERS = "RECORDING_ENABLED_FOR_ALL_USERS",
6
4
  JS_INJECTION = "JS_INJECTION",
7
5
  GAMIFICATION_UI_MAIN = "GAMIFICATION_UI_MAIN",
@@ -396,6 +396,8 @@ export interface TMissionOrBadge {
396
396
  hint_text?: string;
397
397
  /** Priority (or position) of the mission in the UI. Low value indicates higher position in the UI */
398
398
  position?: number;
399
+ /** The ribbon of the mission/badge item. Can be 'sale', 'hot', 'new', 'vip' or URL to the image in case of custom ribbon */
400
+ ribbon?: TRibbon;
399
401
  }
400
402
  export interface AchRelatedGame {
401
403
  /** The ID of the related game */
package/dist/index.js CHANGED
@@ -494,9 +494,7 @@ CoreUtils.avatarUrl = function (avatar_id, avatarDomain) {
494
494
 
495
495
  exports.PublicLabelSettings = void 0;
496
496
  (function (PublicLabelSettings) {
497
- PublicLabelSettings["FCM_SENDER_ID"] = "FCM_SENDER_ID";
498
497
  PublicLabelSettings["PUBLIC_API_URL"] = "PUBLIC_API_URL";
499
- PublicLabelSettings["FCM_SW_URL"] = "FCM_SW_URL";
500
498
  PublicLabelSettings["RECORDING_ENABLED_FOR_ALL_USERS"] = "RECORDING_ENABLED_FOR_ALL_USERS";
501
499
  PublicLabelSettings["JS_INJECTION"] = "JS_INJECTION";
502
500
  PublicLabelSettings["GAMIFICATION_UI_MAIN"] = "GAMIFICATION_UI_MAIN";
@@ -623,7 +621,7 @@ var StoreItemTransform = function StoreItemTransform(items) {
623
621
  price: r.itemPublicMeta.price,
624
622
  image: r.itemPublicMeta.image_url,
625
623
  description: r.itemPublicMeta.description,
626
- ribbon: r.itemPublicMeta.custom_label_tag || r.itemPublicMeta.label_tag,
624
+ ribbon: r.itemPublicMeta.label_tag === 'custom' ? r.itemPublicMeta.custom_label_tag : r.itemPublicMeta.label_tag,
627
625
  limit_message: r.itemPublicMeta.limit_message,
628
626
  priority: r.itemPublicMeta.priority,
629
627
  related_item_ids: r.itemPublicMeta.related_items,
@@ -686,6 +684,7 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
686
684
  only_in_custom_section: r.ach_public_meta.only_in_custom_section,
687
685
  custom_data: IntUtils.JsonOrText(r.ach_public_meta.custom_data),
688
686
  position: r.ach_public_meta.position,
687
+ ribbon: r.ach_public_meta.label_tag === 'custom' ? r.ach_public_meta.custom_label_tag : r.ach_public_meta.label_tag,
689
688
  tasks: (r.achievementTasks || []).filter(function (t) {
690
689
  return t.task_type_id === exports.AchievementTaskType.CompleteAchievement;
691
690
  }).map(function (t) {
@@ -797,7 +796,7 @@ var TournamentItemsTransform = function TournamentItemsTransform(items) {
797
796
  custom_section_id: r.publicMeta.custom_section_id,
798
797
  custom_data: IntUtils.JsonOrText(r.publicMeta.custom_data),
799
798
  is_featured: r.publicMeta.featured,
800
- ribbon: r.publicMeta.label_tag,
799
+ ribbon: r.publicMeta.label_tag === 'custom' ? r.publicMeta.custom_label_tag : r.publicMeta.label_tag,
801
800
  priority: r.publicMeta.position,
802
801
  start_time: r.startTimeTs,
803
802
  end_time: r.endTimeTs,