ia-common 1.0.1-beta.227 → 1.0.1-beta.229

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.
@@ -17,4 +17,6 @@ export interface IAdviceEntity extends IEntityAuditColumn {
17
17
  voiceUrl: string | null;
18
18
  status: AdviceStatus;
19
19
  rationale: string | null;
20
+ targetHitOn: Date;
21
+ targetHitCMP: number;
20
22
  }
@@ -18,5 +18,6 @@ export declare class DateUtil {
18
18
  day: number;
19
19
  };
20
20
  dateCodeFormatter(dateCode: string, formatter: string): string;
21
+ epochToDate(timestamp: number): Date;
21
22
  }
22
23
  export declare const dateUtil: DateUtil;
@@ -87,6 +87,9 @@ var DateUtil = /** @class */ (function () {
87
87
  var date = (0, date_fns_1.parse)(dateCode, "yyMMdd", new Date());
88
88
  return (0, date_fns_1.format)(date, formatter);
89
89
  };
90
+ DateUtil.prototype.epochToDate = function (timestamp) {
91
+ return new Date(timestamp * 1000);
92
+ };
90
93
  return DateUtil;
91
94
  }());
92
95
  exports.DateUtil = DateUtil;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ia-common",
3
- "version": "1.0.1-beta.227",
3
+ "version": "1.0.1-beta.229",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",