mgtypes 1.0.103 → 1.0.104

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.103",
3
+ "version": "1.0.104",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/types/Content.ts CHANGED
@@ -92,7 +92,7 @@ export interface mgContentable {
92
92
 
93
93
  // Pins, plans, routes & photos
94
94
  mediaURL?: string;
95
-
95
+ thumbhash?:string;
96
96
  // Pins
97
97
  pinCategory?: string;
98
98
  pinType?: string;
@@ -177,6 +177,7 @@ export interface mgPin {
177
177
  // WHICH ARE NEEDED FOR createPresignedUrlWothClient
178
178
  // KEY IS ROUTE + FILENAME
179
179
  mediaURL?: string; // only available after post is created (ie, this is not added by the user)
180
+ thumbhash?:string;
180
181
  primaryText: string;
181
182
  secondaryText: string;
182
183
  latitude?: number | string | null; // should be a number but is coming back from db as a string for some reason
@@ -194,7 +195,7 @@ export interface mgPlan {
194
195
  planType: string;
195
196
  primaryText: string;
196
197
  secondaryText: string;
197
- mediaURL: string;
198
+ mediaURL: string;thumbhash?:string;
198
199
  address?: string;
199
200
  startDateTime?: string | Date;
200
201
  endDateTime?: string | Date;
@@ -217,8 +218,10 @@ export interface mgComment {
217
218
 
218
219
  export interface mgPhoto {
219
220
  id: number | null; // will not have id when creating
221
+
220
222
  primaryText: string;
221
223
  mediaURL?: string;
224
+ thumbhash?:string;
222
225
  createdAt: string;
223
226
  updatedAt: string;
224
227
  }
@@ -228,7 +231,8 @@ export interface mgRoute {
228
231
  routeType:string;
229
232
  primaryText: string;
230
233
  secondaryText: string;
231
- mediaURL?: string;
234
+ mediaURL?: string; thumbhash?:string;
235
+
232
236
  color: string;
233
237
  coordinates: Position[];
234
238
  startDateTime: string;
package/types/User.ts CHANGED
@@ -14,6 +14,8 @@ export interface mgUser {
14
14
  createdAt: string | null;
15
15
  updatedAt: string | null;
16
16
  imageURL: string | null;
17
+ thumbhash?:string;
18
+
17
19
  createdBy: 'admin' | 'user';
18
20
  // friendship?: mgFriendship; // a user's friends have a record of the friendship attached
19
21
  roles?: mgUserRole[];