opticedge-types 1.0.36 → 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.
@@ -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.36",
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/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
+ }