mgtypes 1.0.71 → 1.0.73
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
|
-
|
|
@@ -107,36 +107,37 @@ export interface mgFeaturesConfig {
|
|
|
107
107
|
export interface mgContentConfig {
|
|
108
108
|
TAGS: string[];
|
|
109
109
|
PINS: {
|
|
110
|
-
|
|
110
|
+
art?: string[]; // painting, sculpture, etc... same as "plans-art"
|
|
111
|
+
default: ['pin'];
|
|
111
112
|
drink?: string[];
|
|
112
|
-
entertainment?: string[]; // midway/fun fair,
|
|
113
|
+
entertainment?: string[]; // midway/fun fair, bingo tent!
|
|
114
|
+
food?: string[];
|
|
113
115
|
infrastructure?: string[];
|
|
116
|
+
other?: string[];
|
|
117
|
+
personal?: string[];
|
|
118
|
+
service?: string[];
|
|
119
|
+
shopping?: string[];
|
|
114
120
|
sport?: string[]; // fields for each sport
|
|
115
|
-
|
|
121
|
+
studio?: string[]; // pottery, painting, music, graphic design, tattoo
|
|
116
122
|
toilet?: string[];
|
|
117
|
-
service?: string[];
|
|
118
123
|
transportation?: string[];
|
|
119
|
-
shopping?: string[];
|
|
120
|
-
personal?: string[];
|
|
121
|
-
other?: string[];
|
|
122
|
-
exhibition?: string[]; // painting, sculpture, etc...
|
|
123
|
-
default: ['pin'];
|
|
124
124
|
};
|
|
125
125
|
PLANS: {
|
|
126
|
-
sport?: string[]; // all of them, tailgate
|
|
127
126
|
business?: string[]; // meet and greet, job fair, trade show/conference, expo, meeting, pitch night,product launch, grand opening
|
|
128
|
-
spectacle?: string[]; // air show, drone show, fireworks, demolition derby, circus, parade?
|
|
129
|
-
gathering?: string[]; // block party, street festival, fan fest, party,
|
|
130
|
-
concert?: string[]; // default, rock, rap, classical, electronic, jazz, etc...
|
|
131
|
-
performance?: string[]; // recital, dance recital, comedy/improv, musicals, reading/booksigning
|
|
132
|
-
presentation?: string[]; // lecture, panel, roundtable, film screening, exhibition, fashion show, trophy presentation
|
|
133
|
-
tour?: string[]; // open house, open studio, orientation
|
|
134
127
|
class?: string[]; // cooking, writing, pottery, whatever, mixology classes
|
|
128
|
+
concert?: string[]; // default, rock, rap, classical, electronic, jazz, etc...
|
|
129
|
+
default: ['plan'];
|
|
130
|
+
art?: string[]; // default, pottery, modern, sculpture...
|
|
135
131
|
food?: string[]; // brunch, dinner, wine tastings, appetizers, picnic, bbq, pot luck, banquet
|
|
132
|
+
gathering?: string[]; // block party, street festival, fan fest, party,
|
|
136
133
|
group?: string[]; // karaoke, trivia,
|
|
137
|
-
shopping?: string[]; // auction, art fair, sale, pop-up,
|
|
138
134
|
other?: string[];
|
|
139
|
-
|
|
135
|
+
performance?: string[]; // recital, dance recital, comedy/improv, musicals, reading/booksigning
|
|
136
|
+
presentation?: string[]; // lecture, panel, roundtable, film screening, exhibition, fashion show, trophy presentation
|
|
137
|
+
shopping?: string[]; // auction, art fair, sale, pop-up,
|
|
138
|
+
spectacle?: string[]; // air show, drone show, fireworks, demolition derby, circus, parade?
|
|
139
|
+
sport?: string[]; // all of them, tailgate
|
|
140
|
+
tour?: string[]; // open house, open studio, orientation
|
|
140
141
|
};
|
|
141
142
|
ROUTES: {
|
|
142
143
|
parade?: string[]; // default, pride
|
|
@@ -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;
|