@pathway-io/core 1.0.14 → 1.0.16

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/dist/index.d.mts CHANGED
@@ -91,7 +91,7 @@ type Message = {
91
91
  id: number;
92
92
  };
93
93
  user: {
94
- id: number;
94
+ id: string;
95
95
  };
96
96
  createdAt: Date;
97
97
  deletedAt: Date | null;
package/dist/index.d.ts CHANGED
@@ -91,7 +91,7 @@ type Message = {
91
91
  id: number;
92
92
  };
93
93
  user: {
94
- id: number;
94
+ id: string;
95
95
  };
96
96
  createdAt: Date;
97
97
  deletedAt: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Shared constants and types for Pathway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -15,7 +15,7 @@ export type Message = {
15
15
  id: number
16
16
  }
17
17
  user: {
18
- id: number
18
+ id: string
19
19
  }
20
20
 
21
21
  createdAt: Date
@@ -0,0 +1,16 @@
1
+ export type UserRole = "USER" | "PRACTITIONER" | "ADMIN" | "SUPERADMIN";
2
+
3
+ export type User = {
4
+ id: string;
5
+ email: string;
6
+ firstName?: string;
7
+ lastName?: string;
8
+ namePrefix?: string;
9
+ nameSuffix?: string;
10
+ createdAt: Date;
11
+ updatedAt: Date;
12
+ deactivatedAt?: Date;
13
+ lastSignedInAt?: Date;
14
+ signInCount: number;
15
+ role: UserRole;
16
+ };