mgtypes 1.0.54 → 1.0.56

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.54",
3
+ "version": "1.0.56",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -351,9 +351,10 @@ export interface mgStylesConfig {
351
351
  * Configs for account-specific permissions and features
352
352
  */
353
353
  export interface mgProfilesConfig {
354
- USER: mgProfileConfig;
355
354
  GUEST: mgProfileConfig;
355
+ MEMBER: mgProfileConfig;
356
356
  ADMIN: mgProfileConfig;
357
+ DEFAULT: mgProfileConfig;
357
358
  }
358
359
 
359
360
  interface mgProfileConfig {
package/types/Content.ts CHANGED
@@ -133,8 +133,10 @@ export interface mgSharedContentDetails {
133
133
  * Documents when the request was originally made and who
134
134
  * has last updated it. TODO:type create events that document
135
135
  * how a friendship has changed over time
136
+ *
137
+ * based on the User_friend model
136
138
  */
137
- export interface mgFriendRequest {
139
+ export interface mgFriendship {
138
140
  id: number;
139
141
  status:
140
142
  | 'pending'
package/types/User.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { mgFriendRequest } from "./Content";
1
+ import { mgFriendship } from "./Content";
2
2
 
3
3
  export interface mgUser {
4
4
  id: number | null;
5
+ deviceId: string| null; // this will be abstracted away to a join table
5
6
  givenName: string | null;
6
7
  familyName: string | null;
7
8
  longName: string | null;
@@ -9,20 +10,19 @@ export interface mgUser {
9
10
  phoneNumber: string | number | null; // TODO:type currently this datum is a string but could/should change to numbers?
10
11
  latitude: number | string | null; // same as Content interface
11
12
  longitude: number | string | null; // same
12
- shareLoc: boolean | null;
13
13
  birthdate: string | null;
14
14
  createdAt: string | null;
15
15
  updatedAt: string | null;
16
16
  imageURL: string | null;
17
- friendRequest?: mgFriendRequest; // a user's friends have a record of the friendship attached
18
- activeRole?:string; // indicates whether user is a friend ('user') or responder ('medical', 'security', etc.)
17
+ // friendship?: mgFriendship; // a user's friends have a record of the friendship attached
18
+ // activeRole?:string; // indicates whether user is a friend ('user') or responder ('medical', 'security', etc.)
19
19
  }
20
20
 
21
21
  export interface mgUserRole {
22
22
  id: number | null;
23
23
  createdAt: string | null;
24
24
  updatedAt: string | null;
25
- role: 'user' | 'admin' | 'medical' | 'fire' | 'security' | 'advertiser' |'mental_health'|'vendor';
25
+ role: 'guest' | 'member' | 'admin' | 'medical' | 'fire' | 'security' | 'advertiser' |'mental_health'|'vendor';
26
26
  userId: number | null;
27
27
  isActiveRole: boolean;
28
28
  }