@smartico/public-api 0.0.116 → 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",
@@ -394,6 +394,10 @@ export interface TMissionOrBadge {
394
394
  category_ids: number[];
395
395
  /** The T&C text for the missions */
396
396
  hint_text?: string;
397
+ /** Priority (or position) of the mission in the UI. Low value indicates higher position in the UI */
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;
397
401
  }
398
402
  export interface AchRelatedGame {
399
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,
@@ -685,6 +683,8 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
685
683
  custom_section_id: r.ach_public_meta.custom_section_id,
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),
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,
688
688
  tasks: (r.achievementTasks || []).filter(function (t) {
689
689
  return t.task_type_id === exports.AchievementTaskType.CompleteAchievement;
690
690
  }).map(function (t) {
@@ -796,7 +796,7 @@ var TournamentItemsTransform = function TournamentItemsTransform(items) {
796
796
  custom_section_id: r.publicMeta.custom_section_id,
797
797
  custom_data: IntUtils.JsonOrText(r.publicMeta.custom_data),
798
798
  is_featured: r.publicMeta.featured,
799
- ribbon: r.publicMeta.label_tag,
799
+ ribbon: r.publicMeta.label_tag === 'custom' ? r.publicMeta.custom_label_tag : r.publicMeta.label_tag,
800
800
  priority: r.publicMeta.position,
801
801
  start_time: r.startTimeTs,
802
802
  end_time: r.endTimeTs,