mgtypes 1.0.71 → 1.0.72
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
package/types/Content.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { mgVote } from './Vote';
|
|
|
4
4
|
import { mgEmergency } from './Emergency';
|
|
5
5
|
import { Position } from 'geojson';
|
|
6
6
|
|
|
7
|
-
|
|
8
7
|
export interface mgPost {
|
|
9
8
|
content: mgContent;
|
|
10
9
|
contentable: mgContentable;
|
|
@@ -76,7 +75,7 @@ export interface mgContentable {
|
|
|
76
75
|
updatedAt: string;
|
|
77
76
|
|
|
78
77
|
// Pins, plans, routes & photos
|
|
79
|
-
|
|
78
|
+
mediaURL?: string;
|
|
80
79
|
|
|
81
80
|
// Pins
|
|
82
81
|
pinCategory?: string;
|
|
@@ -104,7 +103,7 @@ export interface mgContentable {
|
|
|
104
103
|
|
|
105
104
|
// Routes
|
|
106
105
|
routeCategory?: string;
|
|
107
|
-
routeType?:string;
|
|
106
|
+
routeType?: string;
|
|
108
107
|
distance?: string;
|
|
109
108
|
color?: string;
|
|
110
109
|
coordinates?: Position[];
|
|
@@ -161,7 +160,7 @@ export interface mgPin {
|
|
|
161
160
|
// TODO:type CHANGE TO KEY AND BUCKET
|
|
162
161
|
// WHICH ARE NEEDED FOR createPresignedUrlWothClient
|
|
163
162
|
// KEY IS ROUTE + FILENAME
|
|
164
|
-
|
|
163
|
+
mediaURL?: string; // only available after post is created (ie, this is not added by the user)
|
|
165
164
|
primaryText: string;
|
|
166
165
|
secondaryText: string;
|
|
167
166
|
latitude?: number | string | null; // should be a number but is coming back from db as a string for some reason
|
|
@@ -179,6 +178,7 @@ export interface mgPlan {
|
|
|
179
178
|
planType: string;
|
|
180
179
|
primaryText: string;
|
|
181
180
|
secondaryText: string;
|
|
181
|
+
mediaURL: string;
|
|
182
182
|
address?: string;
|
|
183
183
|
startDateTime?: string | Date;
|
|
184
184
|
endDateTime?: string | Date;
|
|
@@ -202,7 +202,7 @@ export interface mgComment {
|
|
|
202
202
|
export interface mgPhoto {
|
|
203
203
|
id: number | null; // will not have id when creating
|
|
204
204
|
primaryText: string;
|
|
205
|
-
|
|
205
|
+
mediaURL?: string;
|
|
206
206
|
createdAt: string;
|
|
207
207
|
updatedAt: string;
|
|
208
208
|
}
|
|
@@ -211,7 +211,7 @@ export interface mgRoute {
|
|
|
211
211
|
routeCategory: string;
|
|
212
212
|
primaryText: string;
|
|
213
213
|
secondaryText: string;
|
|
214
|
-
|
|
214
|
+
mediaURL?: string;
|
|
215
215
|
color: string;
|
|
216
216
|
coordinates: Position[];
|
|
217
217
|
startDateTime: string;
|
|
@@ -238,4 +238,3 @@ export interface mgMapBillboards {
|
|
|
238
238
|
zoomThresholds: number[];
|
|
239
239
|
billboards: mgMapBillboard[][];
|
|
240
240
|
}
|
|
241
|
-
|
|
@@ -16,10 +16,11 @@ export interface mgFeedComponentConfig {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface mgOtherComponentConfig {
|
|
19
|
-
STICKY: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
STICKY: {
|
|
20
|
+
height: number;
|
|
21
|
+
SEARCH_BAR: { placeholder: string; fontSize: number; height: number };
|
|
22
|
+
BOTTOM: { height: number };
|
|
23
|
+
};
|
|
23
24
|
CARD: {
|
|
24
25
|
actionButtonSize: number;
|
|
25
26
|
avatarImageSize: number;
|