mgtypes 1.0.102 → 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 +1 -1
- package/types/Content.ts +7 -3
- package/types/User.ts +2 -0
- package/types/configs/ClientConfig.ts +10 -7
package/package.json
CHANGED
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[];
|
|
@@ -76,12 +76,6 @@ export interface mgPlaceholdersConfig {
|
|
|
76
76
|
*/
|
|
77
77
|
export interface mgMapConfig {
|
|
78
78
|
MAP_BILLBOARDS: mgMapBillboards;
|
|
79
|
-
DEFAULT_MAP_CAMERA: {
|
|
80
|
-
centerCoordinate: Position;
|
|
81
|
-
zoomLevel: number;
|
|
82
|
-
pitch?: number;
|
|
83
|
-
heading?: number;
|
|
84
|
-
};
|
|
85
79
|
mapStyleURL: string | null;
|
|
86
80
|
}
|
|
87
81
|
|
|
@@ -384,7 +378,16 @@ export interface mgProfilesConfig {
|
|
|
384
378
|
|
|
385
379
|
interface mgProfileConfig {
|
|
386
380
|
PERMISSIONS: mgPermissionsProfile;
|
|
387
|
-
|
|
381
|
+
|
|
382
|
+
MAP: {
|
|
383
|
+
MAP_FILTERS: mgMapFiltersProfile;
|
|
384
|
+
DEFAULT_CAMERA: {
|
|
385
|
+
centerCoordinate: Position;
|
|
386
|
+
zoomLevel: number;
|
|
387
|
+
pitch?: number;
|
|
388
|
+
heading?: number;
|
|
389
|
+
};
|
|
390
|
+
}
|
|
388
391
|
}
|
|
389
392
|
|
|
390
393
|
export interface mgPermissionsProfile {
|