mgtypes 1.0.11 → 1.0.13
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 +15 -18
package/package.json
CHANGED
package/types/Content.ts
CHANGED
|
@@ -101,14 +101,14 @@ interface Contentable {
|
|
|
101
101
|
pinType?: string;
|
|
102
102
|
|
|
103
103
|
// Plans
|
|
104
|
-
planCategory?:string
|
|
104
|
+
planCategory?: string;
|
|
105
105
|
planType?: string;
|
|
106
106
|
inviteCount?: number;
|
|
107
107
|
attendingCount?: number;
|
|
108
108
|
|
|
109
109
|
// Plans or Route
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
startDateTime?: string | Date;
|
|
111
|
+
endDateTime?: string | Date;
|
|
112
112
|
|
|
113
113
|
// Plan or Pin
|
|
114
114
|
address?: string;
|
|
@@ -121,7 +121,7 @@ interface Contentable {
|
|
|
121
121
|
pinHours?: PinHour[];
|
|
122
122
|
|
|
123
123
|
// Routes
|
|
124
|
-
routeCategory?:string;
|
|
124
|
+
routeCategory?: string;
|
|
125
125
|
color?: string;
|
|
126
126
|
coordinates?: Position[];
|
|
127
127
|
|
|
@@ -160,7 +160,13 @@ interface SharedContentDetails {
|
|
|
160
160
|
*/
|
|
161
161
|
interface FriendRequest {
|
|
162
162
|
id: number;
|
|
163
|
-
status:
|
|
163
|
+
status:
|
|
164
|
+
| 'pending'
|
|
165
|
+
| 'accepted'
|
|
166
|
+
| 'denied'
|
|
167
|
+
| 'blocked'
|
|
168
|
+
| 'archived'
|
|
169
|
+
| 'revoked';
|
|
164
170
|
createdAt: string;
|
|
165
171
|
updatedAt: string;
|
|
166
172
|
requesterId: number;
|
|
@@ -197,8 +203,8 @@ interface Plan {
|
|
|
197
203
|
primaryText: string;
|
|
198
204
|
secondaryText: string;
|
|
199
205
|
address?: string;
|
|
200
|
-
|
|
201
|
-
|
|
206
|
+
startDateTime?: string | Date;
|
|
207
|
+
endDateTime?: string | Date;
|
|
202
208
|
inviteCount?: number;
|
|
203
209
|
attendingCount?: number;
|
|
204
210
|
link?: string | null;
|
|
@@ -231,8 +237,8 @@ interface Route {
|
|
|
231
237
|
photoURL?: string;
|
|
232
238
|
color: string;
|
|
233
239
|
coordinates: Position[];
|
|
234
|
-
|
|
235
|
-
|
|
240
|
+
startDateTime: string;
|
|
241
|
+
endDateTime: string;
|
|
236
242
|
link: string;
|
|
237
243
|
phoneNumber: string;
|
|
238
244
|
}
|
|
@@ -247,15 +253,6 @@ interface MapLabel {
|
|
|
247
253
|
boundingBox: Position[];
|
|
248
254
|
}
|
|
249
255
|
|
|
250
|
-
interface Route {
|
|
251
|
-
id: number;
|
|
252
|
-
name: string;
|
|
253
|
-
routeType: string;
|
|
254
|
-
coordinates: number[][];
|
|
255
|
-
createdAt: string;
|
|
256
|
-
updatedAt: string;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
256
|
export {
|
|
260
257
|
Post,
|
|
261
258
|
FriendRequest,
|