mgtypes 1.0.12 → 1.0.14

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.12",
3
+ "version": "1.0.14",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/types/App.ts CHANGED
@@ -1,17 +1,20 @@
1
- import { Position } from "geojson";
1
+ import { Position } from 'geojson';
2
2
 
3
3
  // App coming from admin database
4
4
  export interface App {
5
- id: number,
5
+ id: number;
6
6
  eventName: string;
7
7
  appName: string;
8
8
  startDateTime: string;
9
9
  endDateTime: string;
10
10
  eventLatitude: number;
11
11
  eventLongitude: number;
12
- mapTheme: 'light' | 'dark' | 'streets' | 'outdoors'
12
+ eventCity: string;
13
+ eventState: string;
14
+ eventZip: string;
15
+ mapTheme: 'light' | 'dark' | 'streets' | 'outdoors';
13
16
  mapStyleUrl: string;
14
- mapLabels: MapLabels;
17
+ mapSigns: MapSigns;
15
18
  pins: any[];
16
19
  plans: any[];
17
20
  photos: any[];
@@ -27,7 +30,7 @@ export interface App {
27
30
  * @param iconColor use hex, as in '#e5e5e5'
28
31
  * @param image not configured, would be used to display image on label
29
32
  */
30
- export interface MapLabel {
33
+ export interface MapSign {
31
34
  title: string;
32
35
  icon: string | null;
33
36
  latitude: number;
@@ -48,7 +51,7 @@ export interface AppColors {
48
51
  surfaceVariant: string;
49
52
  }
50
53
 
51
- export interface MapLabels {
54
+ export interface MapSigns {
52
55
  zoomThresholds: number[];
53
- labels: MapLabel[][];
54
- }
56
+ signs: MapSign[][];
57
+ }
@@ -1,5 +1,5 @@
1
1
  import { Position } from 'geojson';
2
- import { MapLabel } from './Content';
2
+ import { MapSign } from './App';
3
3
 
4
4
  interface Configuration {
5
5
  eventSpecs: EventSpecs;
@@ -16,7 +16,7 @@ export interface EventSpecs {
16
16
 
17
17
  EMERGENCY_TYPES: { [key: string]: any };
18
18
 
19
- MAP_LABELS: { zoomThresholds: number[]; labels: MapLabel[][] };
19
+ MAP_LABELS: { zoomThresholds: number[]; labels: MapSign[][] };
20
20
 
21
21
  EVENT_END_DATETIME: string;
22
22
 
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
- startTime?: string | Date;
111
- endTime?: string | Date;
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: 'pending' | 'accepted' | 'denied' | 'blocked' | 'archived' | 'revoked';
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
- startTime?: string | Date;
201
- endTime?: string | Date;
206
+ startDateTime?: string | Date;
207
+ endDateTime?: string | Date;
202
208
  inviteCount?: number;
203
209
  attendingCount?: number;
204
210
  link?: string | null;
@@ -231,21 +237,13 @@ interface Route {
231
237
  photoURL?: string;
232
238
  color: string;
233
239
  coordinates: Position[];
234
- startTime: string;
235
- endTime: string;
240
+ startDateTime: string;
241
+ endDateTime: string;
236
242
  link: string;
237
243
  phoneNumber: string;
238
244
  }
239
245
 
240
- interface MapLabel {
241
- longitude: number;
242
- latitude: number;
243
- icon: string | null;
244
- iconColor: string | null;
245
- image: string | null;
246
- title: string;
247
- boundingBox: Position[];
248
- }
246
+
249
247
 
250
248
  export {
251
249
  Post,
@@ -257,7 +255,6 @@ export {
257
255
  PostWithIndex,
258
256
  AllAppContent,
259
257
  PinHour,
260
- MapLabel,
261
258
  Route,
262
259
  Contentable,
263
260
  };