@managemint-solutions/entities 1.0.31 → 1.0.32

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.
@@ -7,7 +7,17 @@ export interface UserIdentity {
7
7
  email: string;
8
8
  profile_image: string | null;
9
9
  }
10
- export interface User {
10
+ export interface UserSummary {
11
+ mms_id: UUID;
12
+ name: string;
13
+ surname: string;
14
+ email: string;
15
+ profile_image: string | null;
16
+ active: boolean;
17
+ created_at: Date;
18
+ last_logged_in: Date | null;
19
+ }
20
+ export interface UserEntity {
11
21
  mms_id: string;
12
22
  name: string;
13
23
  surname: string;
@@ -116,6 +126,10 @@ export interface PermissionsEntity {
116
126
  read_subscriptions: boolean;
117
127
  update_subscriptions: boolean;
118
128
  delete_subscriptions: boolean;
129
+ create_logs: boolean;
130
+ read_logs: boolean;
131
+ update_logs: boolean;
132
+ delete_logs: boolean;
119
133
  }
120
134
  export interface Permissions {
121
135
  permissions: {
@@ -130,12 +144,14 @@ export interface Permissions {
130
144
  organization: Omit<CrudPermission, 'create' | 'delete'>;
131
145
  subscription: Omit<CrudPermission, 'read' | 'create' | 'delete'>;
132
146
  payments: Omit<CrudPermission, 'read' | 'update' | 'delete'>;
147
+ notifications: Omit<CrudPermission, 'create' | 'update' | 'delete'>;
148
+ logs: Omit<CrudPermission, 'create' | 'update' | 'delete'>;
133
149
  };
134
150
  roles: {
135
151
  admin: boolean;
136
152
  owner: boolean;
137
153
  };
138
154
  }
139
- export interface LoggedInUser extends User, Permissions {
155
+ export interface LoggedInUser extends UserEntity, Permissions {
140
156
  alerts: Record<string, boolean>;
141
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "Entity types used by both the api and portal",
5
5
  "homepage": "https://github.com/ManageMint-Solutions/managemint-solutions-entities#readme",
6
6
  "bugs": {