@pathway-io/core 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/types/user.ts +16 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.15",
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",
@@ -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
+ };