@smartico/public-api 0.0.304 → 0.0.305

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.
@@ -18,4 +18,6 @@ export interface AchievementPublicMeta {
18
18
  hide_badge_from_ui?: boolean;
19
19
  show_badge_first_task_completed?: boolean;
20
20
  custom_section_type_id?: number;
21
+ claim_button_title?: string;
22
+ claim_button_action?: string;
21
23
  }
@@ -608,6 +608,10 @@ export interface TMissionOrBadge {
608
608
  next_recurrence_date_ts?: number;
609
609
  /** Availability status of the mission depends on the defined time limits */
610
610
  availability_status?: AchievementAvailabilityStatus;
611
+ /** Title for the claim reward button */
612
+ claim_button_title?: string;
613
+ /** Action for the claim reward button */
614
+ claim_button_action?: string;
611
615
  }
612
616
  export interface AchRelatedGame {
613
617
  /** The ID of the related game */
package/dist/index.js CHANGED
@@ -1353,7 +1353,9 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
1353
1353
  completed_this_week: completedThisWeek,
1354
1354
  completed_this_month: completedThisMonth,
1355
1355
  custom_section_type_id: r.ach_public_meta.custom_section_type_id,
1356
- availability_status: MissionUtils.getAvailabilityStatus(r)
1356
+ availability_status: MissionUtils.getAvailabilityStatus(r),
1357
+ claim_button_title: r.ach_public_meta.claim_button_title,
1358
+ claim_button_action: r.ach_public_meta.claim_button_action
1357
1359
  };
1358
1360
  if (r.ach_status_id === exports.AchievementStatus.Recurring) {
1359
1361
  x.next_recurrence_date_ts = r.next_recurrence_date_ts;