mgtypes 1.0.27 → 1.0.29

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.27",
3
+ "version": "1.0.29",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -267,11 +267,11 @@ export interface mgProfilesConfig {
267
267
  }
268
268
 
269
269
  interface mgProfileConfig {
270
- mgPermissionProfile: mgPermissionProfile;
271
- mgMapFilterProfile: mgMapFilterProfile;
270
+ PERMISSIONS: mgPermissionsProfile;
271
+ MAP_FILTERS: mgMapFiltersProfile;
272
272
  }
273
273
 
274
- interface mgPermissionProfile {
274
+ interface mgPermissionsProfile {
275
275
  CONTENT_CREATION: {
276
276
  comment: boolean;
277
277
  // whether a guest/user can take a photo versus
@@ -312,7 +312,7 @@ interface mgPermissionProfile {
312
312
  * @param pins one of this property's internal properties can be 'all', which will filter all pins
313
313
  * @param plans same as above
314
314
  */
315
- interface mgMapFilterProfile {
315
+ interface mgMapFiltersProfile {
316
316
  pins?: { [key: string]: mgMapFilter };
317
317
  plans?: { [key: string]: mgMapFilter };
318
318
  people?: {
@@ -331,7 +331,7 @@ interface mgMapFilterProfile {
331
331
  'mental health'?: mgMapFilter;
332
332
  all?: mgMapFilter;
333
333
  };
334
- routes: {
334
+ routes?: {
335
335
  runs?: mgMapFilter;
336
336
  parades?: mgMapFilter;
337
337
  all?: mgMapFilter;
package/types/Content.ts CHANGED
@@ -141,6 +141,7 @@ export interface Contentable {
141
141
 
142
142
  // Routes
143
143
  routeCategory?: string;
144
+ distance?: string;
144
145
  color?: string;
145
146
  coordinates?: Position[];
146
147