opticedge-types 1.0.35 → 1.0.37

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.
@@ -19,7 +19,8 @@ export declare enum CardApprovalStatus {
19
19
  export declare enum CardRejectType {
20
20
  INVALID_CARD = "Invalid card",
21
21
  FAKE_HIGHRISK = "Fake - High Risk",
22
- REPEAT = "Repeat"
22
+ REPEAT = "Repeat",
23
+ MODEL_FAILURE = "Model failure"
23
24
  }
24
25
  export declare enum CardRescanType {
25
26
  ENVIRONMENT_LIGHTING = "Environment - Lighting",
@@ -26,6 +26,7 @@ var CardRejectType;
26
26
  CardRejectType["INVALID_CARD"] = "Invalid card";
27
27
  CardRejectType["FAKE_HIGHRISK"] = "Fake - High Risk";
28
28
  CardRejectType["REPEAT"] = "Repeat";
29
+ CardRejectType["MODEL_FAILURE"] = "Model failure";
29
30
  })(CardRejectType || (exports.CardRejectType = CardRejectType = {}));
30
31
  var CardRescanType;
31
32
  (function (CardRescanType) {
@@ -30,3 +30,15 @@ export type User = {
30
30
  _id: string;
31
31
  _updatedAt: number;
32
32
  };
33
+ export type DBUser = {
34
+ id: string;
35
+ record: User;
36
+ insertedAt: Date;
37
+ updatedAt: Date;
38
+ isDeleted?: Boolean;
39
+ hasRecovered?: Boolean;
40
+ recovery?: {
41
+ id: string;
42
+ at: Date;
43
+ };
44
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opticedge-types",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "Common type for opticedge",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/enums/card.ts CHANGED
@@ -21,7 +21,8 @@ export enum CardApprovalStatus {
21
21
  export enum CardRejectType {
22
22
  INVALID_CARD = 'Invalid card',
23
23
  FAKE_HIGHRISK = 'Fake - High Risk',
24
- REPEAT = 'Repeat'
24
+ REPEAT = 'Repeat',
25
+ MODEL_FAILURE = 'Model failure'
25
26
  }
26
27
 
27
28
  export enum CardRescanType {
package/src/types/user.ts CHANGED
@@ -31,3 +31,16 @@ export type User = {
31
31
  _id: string
32
32
  _updatedAt: number
33
33
  }
34
+
35
+ export type DBUser = {
36
+ id: string
37
+ record: User
38
+ insertedAt: Date
39
+ updatedAt: Date
40
+ isDeleted?: Boolean
41
+ hasRecovered?: Boolean
42
+ recovery?: {
43
+ id: string
44
+ at: Date
45
+ }
46
+ }