mgtypes 1.0.55 → 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.55",
3
+ "version": "1.0.56",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -354,6 +354,7 @@ export interface mgProfilesConfig {
354
354
  GUEST: mgProfileConfig;
355
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;
@@ -13,8 +14,8 @@ export interface mgUser {
13
14
  createdAt: string | null;
14
15
  updatedAt: string | null;
15
16
  imageURL: string | null;
16
- friendRequest?: mgFriendRequest; // a user's friends have a record of the friendship attached
17
- 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.)
18
19
  }
19
20
 
20
21
  export interface mgUserRole {