@smartico/public-api 0.0.193 → 0.0.195

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.
@@ -5,5 +5,6 @@ export declare enum AchievementStatus {
5
5
  Archived = 4,
6
6
  FeaturedManually = 5,
7
7
  FeaturedAI = 6,
8
- Recurring = 7
8
+ Recurring = 7,
9
+ RecurringUponCompletion = 8
9
10
  }
@@ -23,12 +23,15 @@ export interface UserAchievement {
23
23
  milliseconds_till_available?: number;
24
24
  completed_tasks?: number;
25
25
  achievementTasks?: UserAchievementTask[];
26
+ next_recurrence_date_ts?: number;
26
27
  ach_status_id?: AchievementStatus;
27
28
  scheduledMissionType?: ScheduledMissionType;
28
29
  related_games?: AchRelatedGame[];
29
30
  active_from_ts?: number;
30
31
  active_till_ts?: number;
31
32
  ach_categories?: number[];
33
+ recurring_quantity?: number;
34
+ completed_count?: number;
32
35
  ach_completed_id?: number;
33
36
  requires_prize_claim?: boolean;
34
37
  prize_claimed_date_ts?: number;
@@ -475,6 +475,10 @@ export interface TMissionOrBadge {
475
475
  completed_this_month?: boolean;
476
476
  /** ID of specific Custom Section type */
477
477
  custom_section_type_id?: number;
478
+ /** Max number of times the user can complete a mission in case if mission type is Recurring upon completion. NULL equals infinite. */
479
+ max_completion_count?: number;
480
+ /** Current completion count for Recurring upon completion missions */
481
+ completion_count?: number;
478
482
  }
479
483
  export interface AchRelatedGame {
480
484
  /** The ID of the related game */
package/dist/index.js CHANGED
@@ -850,7 +850,8 @@ var StoreItemPurchasedTransform = function StoreItemPurchasedTransform(items) {
850
850
  purchase_points_amount: r.purchase_points_amount,
851
851
  purchased_today: purchasedToday,
852
852
  purchased_this_week: purchasedThisWeek,
853
- purchased_this_month: purchasedThisMonth
853
+ purchased_this_month: purchasedThisMonth,
854
+ custom_data: r.itemPublicMeta.custom_data
854
855
  };
855
856
  return x;
856
857
  });
@@ -865,6 +866,7 @@ exports.AchievementStatus = void 0;
865
866
  AchievementStatus[AchievementStatus["FeaturedManually"] = 5] = "FeaturedManually";
866
867
  AchievementStatus[AchievementStatus["FeaturedAI"] = 6] = "FeaturedAI";
867
868
  AchievementStatus[AchievementStatus["Recurring"] = 7] = "Recurring";
869
+ AchievementStatus[AchievementStatus["RecurringUponCompletion"] = 8] = "RecurringUponCompletion";
868
870
  })(exports.AchievementStatus || (exports.AchievementStatus = {}));
869
871
 
870
872
  exports.AchievementTaskType = void 0;
@@ -936,7 +938,8 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
936
938
  image: g.game_public_meta.image,
937
939
  enabled: g.game_public_meta.enabled,
938
940
  game_categories: g.game_public_meta.game_categories,
939
- game_provider: g.game_public_meta.game_provider
941
+ game_provider: g.game_public_meta.game_provider,
942
+ mobile_spec_link: g.game_public_meta.mobile_spec_link
940
943
  }
941
944
  };
942
945
  }),
@@ -951,6 +954,10 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
951
954
  completed_this_month: completedThisMonth,
952
955
  custom_section_type_id: r.ach_public_meta.custom_section_type_id
953
956
  };
957
+ if (r.ach_status_id === exports.AchievementStatus.RecurringUponCompletion) {
958
+ x.completion_count = r.completed_count;
959
+ x.max_completion_count = r.recurring_quantity;
960
+ }
954
961
  return x;
955
962
  });
956
963
  };
@@ -1162,7 +1169,8 @@ var tournamentInfoItemTransform = function tournamentInfoItemTransform(t) {
1162
1169
  image: g.game_public_meta.image,
1163
1170
  enabled: g.game_public_meta.enabled,
1164
1171
  game_categories: g.game_public_meta.game_categories,
1165
- game_provider: g.game_public_meta.game_provider
1172
+ game_provider: g.game_public_meta.game_provider,
1173
+ mobile_spec_link: g.game_public_meta.mobile_spec_link
1166
1174
  }
1167
1175
  };
1168
1176
  }),