mgtypes 1.0.93 → 1.0.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mgtypes",
3
- "version": "1.0.93",
3
+ "version": "1.0.95",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/types/Content.ts CHANGED
@@ -225,6 +225,7 @@ export interface mgPhoto {
225
225
 
226
226
  export interface mgRoute {
227
227
  routeCategory: string;
228
+ routeType:string;
228
229
  primaryText: string;
229
230
  secondaryText: string;
230
231
  mediaURL?: string;
package/types/User.ts CHANGED
@@ -1,10 +1,8 @@
1
- import { mgFriendship } from "./Content";
2
-
3
-
1
+ import { mgFriendship } from './Content';
4
2
 
5
3
  export interface mgUser {
6
4
  id: number | null;
7
- deviceId: string| null; // this will be abstracted away to a join table
5
+ deviceId: string | null; // this will be abstracted away to a join table
8
6
  givenName: string | null;
9
7
  familyName: string | null;
10
8
  longName: string | null;
@@ -16,16 +14,17 @@ export interface mgUser {
16
14
  createdAt: string | null;
17
15
  updatedAt: string | null;
18
16
  imageURL: string | null;
19
- createdBy: 'admin' | 'user'
20
- // friendship?: mgFriendship; // a user's friends have a record of the friendship attached
21
- // activeRole?:string; // indicates whether user is a friend ('user') or responder ('medical', 'security', etc.)
17
+ createdBy: 'admin' | 'user';
18
+ // friendship?: mgFriendship; // a user's friends have a record of the friendship attached
19
+ roles?: mgUserRole[];
20
+ activeRole: 'USER' | 'GUEST' | 'ADMIN'; // might include additional roles like 'RESPONDER' or similar
22
21
  }
23
22
 
24
23
  export interface mgUserRole {
25
24
  id: number | null;
26
25
  createdAt: string | null;
27
26
  updatedAt: string | null;
28
- role: 'guest' | 'member' | 'admin' | 'medical' | 'fire' | 'security' | 'advertiser' |'mental_health'|'vendor';
27
+ role: 'USER' | 'ADMIN' | 'GUEST'; // might include additional roles like 'RESPONDER' or similar
29
28
  userId: number | null;
30
29
  isActiveRole: boolean;
31
30
  }
@@ -51,5 +50,3 @@ export interface mgShareTimeStamp {
51
50
  createdAt: string;
52
51
  updatedAt: string;
53
52
  }
54
-
55
-
@@ -373,7 +373,7 @@ export interface mgStylesConfig {
373
373
  */
374
374
  export interface mgProfilesConfig {
375
375
  GUEST: mgProfileConfig;
376
- MEMBER: mgProfileConfig;
376
+ USER: mgProfileConfig;
377
377
  ADMIN: mgProfileConfig;
378
378
  DEFAULT: mgProfileConfig;
379
379
  }