mgtypes 1.0.92 → 1.0.94

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.92",
3
+ "version": "1.0.94",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/types/Content.ts CHANGED
@@ -47,7 +47,7 @@ export interface mgContentReference {
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
49
  referencedContent: {
50
- content:mgContent;
50
+ content: mgContent;
51
51
  tags: mgTag[];
52
52
  contentable: mgContentable;
53
53
  user: mgUser;
@@ -243,12 +243,16 @@ export interface mgRoute {
243
243
  */
244
244
  export interface mgMapBillboard {
245
245
  title: string;
246
- icon: string | null;
247
- latitude: number;
248
- longitude: number;
249
- iconColor: string | null;
250
- image: string | null;
251
- boundingBox: Position[];
246
+ image?: string;
247
+ icon?: string;
248
+ iconColor?: string;
249
+ coordinate: Position;
250
+ CAMERA_INSTRUCTIONS: {
251
+ centerCoordinate: Position;
252
+ zoomLevel: number;
253
+ pitch?: number;
254
+ heading?: number;
255
+ };
252
256
  }
253
257
  export interface mgMapBillboards {
254
258
  zoomThresholds: number[];
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
-