@smartico/public-api 0.0.159 → 0.0.160

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartico/public-api",
3
- "version": "0.0.159",
3
+ "version": "0.0.160",
4
4
  "description": "Smartico public API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -62,6 +62,7 @@ export const UserAchievementTransform = (items: UserAchievement[]): TMissionOrBa
62
62
  is_requires_optin: r.requiresOptin,
63
63
  is_opted_in: r.isOptedIn,
64
64
  time_limit_ms: r.time_limit_ms,
65
+ active_from_ts: r.active_from_ts,
65
66
  dt_start: r.start_date_ts,
66
67
  reward: r.ach_public_meta.reward,
67
68
  progress: r.progress,
@@ -436,6 +436,10 @@ export interface TMissionOrBadge {
436
436
  is_opted_in: boolean;
437
437
  /** The amount of time in milliseconds that user has to complete the mission */
438
438
  time_limit_ms: number;
439
+
440
+ /** Holds time from which mission will become available, for the missions that are targeted to be available from specific date/time */
441
+ active_from_ts: number;
442
+
439
443
  /** The date when the mission was started, relevant for the time limited missions */
440
444
  dt_start: number;
441
445
  /** The progress of the mission in percents calculated as the aggregated relative percentage of all tasks */