@smartico/public-api 0.0.185 → 0.0.186

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.
@@ -11,5 +11,7 @@ export interface SAWPrizesHistory {
11
11
  prize_amount: number;
12
12
  client_request_id: string;
13
13
  is_claimed: boolean;
14
+ create_date_ts: number;
15
+ acknowledge_date_ts: number;
14
16
  }
15
17
  export declare const SAWHistoryTransform: (items: SAWPrizesHistory[]) => TSawHistory[];
@@ -27,6 +27,7 @@ export interface UserAchievement {
27
27
  scheduledMissionType?: ScheduledMissionType;
28
28
  related_games?: AchRelatedGame[];
29
29
  active_from_ts?: number;
30
+ active_till_ts?: number;
30
31
  ach_categories?: number[];
31
32
  ach_completed_id?: number;
32
33
  requires_prize_claim?: boolean;
@@ -415,6 +415,8 @@ export interface TMissionOrBadge {
415
415
  time_limit_ms: number;
416
416
  /** Holds time from which mission will become available, for the missions that are targeted to be available from specific date/time */
417
417
  active_from_ts: number;
418
+ /** Holds time till mission will become unavailable, for the missions that are targeted to be available from specific date/time */
419
+ active_till_ts: number;
418
420
  /** The date when the mission was started, relevant for the time limited missions */
419
421
  dt_start: number;
420
422
  /** The progress of the mission in percents calculated as the aggregated relative percentage of all tasks */
@@ -686,5 +688,9 @@ export interface TSawHistory {
686
688
  client_request_id: string;
687
689
  /** Flag indicating to show whether prize in the mini-game claimed or not */
688
690
  is_claimed: boolean;
691
+ /** Win prize date in milliseconds */
692
+ create_date_ts: number;
693
+ /** Claimed prize date in milliseconds */
694
+ acknowledge_date_ts: number;
689
695
  }
690
696
  export {};
package/dist/index.js CHANGED
@@ -468,7 +468,9 @@ var SAWHistoryTransform = function SAWHistoryTransform(items) {
468
468
  saw_prize_id: r.saw_prize_id,
469
469
  prize_amount: r.prize_amount,
470
470
  client_request_id: r.client_request_id,
471
- is_claimed: r.is_claimed
471
+ is_claimed: r.is_claimed,
472
+ create_date_ts: r.create_date_ts,
473
+ acknowledge_date_ts: r.acknowledge_date_ts
472
474
  };
473
475
  return x;
474
476
  });
@@ -888,6 +890,7 @@ var UserAchievementTransform = function UserAchievementTransform(items) {
888
890
  is_opted_in: r.isOptedIn,
889
891
  time_limit_ms: r.time_limit_ms,
890
892
  active_from_ts: r.active_from_ts,
893
+ active_till_ts: r.active_from_ts,
891
894
  dt_start: r.start_date_ts,
892
895
  reward: r.ach_public_meta.reward,
893
896
  progress: r.progress,