@pathway-io/core 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.d.mts CHANGED
@@ -102,4 +102,20 @@ type MessageCreateInput = {
102
102
  content: string;
103
103
  };
104
104
 
105
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, colors, fonts };
105
+ type UserRole = "USER" | "PRACTITIONER" | "ADMIN" | "SUPERADMIN";
106
+ type User = {
107
+ id: string;
108
+ email: string;
109
+ firstName?: string;
110
+ lastName?: string;
111
+ namePrefix?: string;
112
+ nameSuffix?: string;
113
+ createdAt: Date;
114
+ updatedAt: Date;
115
+ deactivatedAt?: Date;
116
+ lastSignedInAt?: Date;
117
+ signInCount: number;
118
+ role: UserRole;
119
+ };
120
+
121
+ export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, type User, type UserRole, colors, fonts };
package/dist/index.d.ts CHANGED
@@ -102,4 +102,20 @@ type MessageCreateInput = {
102
102
  content: string;
103
103
  };
104
104
 
105
- export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, colors, fonts };
105
+ type UserRole = "USER" | "PRACTITIONER" | "ADMIN" | "SUPERADMIN";
106
+ type User = {
107
+ id: string;
108
+ email: string;
109
+ firstName?: string;
110
+ lastName?: string;
111
+ namePrefix?: string;
112
+ nameSuffix?: string;
113
+ createdAt: Date;
114
+ updatedAt: Date;
115
+ deactivatedAt?: Date;
116
+ lastSignedInAt?: Date;
117
+ signInCount: number;
118
+ role: UserRole;
119
+ };
120
+
121
+ export { type AuthOtpRequest, type AuthSignInRefreshRequest, type AuthSignInRefreshResponse, type AuthSignInRequest, type AuthSignInResponse, type Message, type MessageCreateInput, type MessageListCoercedQueryParams, type MessageListQueryParams, type User, type UserRole, colors, fonts };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pathway-io/core",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Shared constants and types for Pathway",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,2 +1,3 @@
1
- export * from './auth'
2
- export * from './messages'
1
+ export * from "./auth";
2
+ export * from "./messages";
3
+ export * from "./user";