mgtypes 1.0.13 → 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.13",
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
@@ -243,15 +243,7 @@ interface Route {
243
243
  phoneNumber: string;
244
244
  }
245
245
 
246
- interface MapLabel {
247
- longitude: number;
248
- latitude: number;
249
- icon: string | null;
250
- iconColor: string | null;
251
- image: string | null;
252
- title: string;
253
- boundingBox: Position[];
254
- }
246
+
255
247
 
256
248
  export {
257
249
  Post,
@@ -263,7 +255,6 @@ export {
263
255
  PostWithIndex,
264
256
  AllAppContent,
265
257
  PinHour,
266
- MapLabel,
267
258
  Route,
268
259
  Contentable,
269
260
  };