mgtypes 1.0.33 → 1.0.35

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.33",
3
+ "version": "1.0.35",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,6 +14,7 @@ export interface mgConfiguration {
14
14
  feed: mgFeedConfig;
15
15
  profiles: mgProfilesConfig;
16
16
  lists: mgListsConfig;
17
+ navigation: mgNavigationConfig;
17
18
  }
18
19
 
19
20
  /**
@@ -53,7 +54,14 @@ export interface mgFeedConfig {
53
54
  * Configs for lists
54
55
  */
55
56
  export interface mgListsConfig {
56
- HAS_CALENDAR: boolean;
57
+ THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
58
+ }
59
+
60
+ /**
61
+ * Configs for calendars
62
+ */
63
+ export interface mgCalendarConfig {
64
+ THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
57
65
  }
58
66
 
59
67
  /**
@@ -68,6 +76,31 @@ export interface mgSpecsConfig {
68
76
  APP_ALIAS: string;
69
77
  }
70
78
 
79
+ /**
80
+ * possible buttons in bottom nav and contained in 'MORE' menu
81
+ */
82
+ enum mgNavButton {
83
+ FEED = 'feed',
84
+ MAP = 'map',
85
+ CREATE = 'create',
86
+ LISTS = 'lists',
87
+ CALENDAR = 'calendar',
88
+ HELP = 'help',
89
+ SETTINGS = 'settings',
90
+ }
91
+
92
+ /**
93
+ * Configs for nav, like bottom nav buttons
94
+ * @property bottomNavButtons.primary: buttons that show on bottom nav, listed in order they're displayed
95
+ * @property bottomNavButtons.secondary: buttons that show in 'MORE' menu
96
+ */
97
+ export interface mgNavigationConfig {
98
+ bottomNavButtons: {
99
+ primary: mgNavButton[];
100
+ secondary: mgNavButton[];
101
+ };
102
+ }
103
+
71
104
  /**
72
105
  * Configs that dictate user interactivity
73
106
  */
@@ -313,7 +346,7 @@ export interface mgPermissionsProfile {
313
346
  NATIVE_PERMISSIONS: {
314
347
  LOCATION_FOREGROUND: boolean;
315
348
  LOCATION_BACKGROUND: boolean;
316
- PHOTO: boolean;
349
+ PHOTO_LIBRARY: boolean;
317
350
  CAMERA: boolean;
318
351
  MICROPHONE: boolean;
319
352
  CONTACTS: boolean;
@@ -328,6 +361,8 @@ export interface mgPermissionsProfile {
328
361
  CAN_ADD_TO_THREAD: boolean;
329
362
  CAN_EMBED_IN_THREAD: boolean;
330
363
  };
364
+ // if a permission is not toggleable and defaults to false, don't
365
+ // even bother showing it
331
366
  LOCATION: {
332
367
  SHOW_LOCATION: { canToggle: boolean; default: boolean }; // blue dot
333
368
  SHOW_DISTANCE_FROM_PINS: { canToggle: boolean; default: boolean };
@@ -0,0 +1,17 @@
1
+ export enum mgNativePermissionTitle {
2
+ LOCATION_FOREGROUND = 'LOCATION_FOREGROUND',
3
+ LOCATION_BACKGROUND = 'LOCATION_BACKGROUND',
4
+ CAMERA = 'CAMERA',
5
+ PHOTO_LIBRARY = 'PHOTO_LIBRARY',
6
+ CONTACTS = 'CONTACTS',
7
+ MICROPHONE = 'MICROPHONE',
8
+ }
9
+
10
+ export enum mgLocationPermissionTitle {
11
+ SHOW_LOCATION = 'SHOW_LOCATION',
12
+ SHOW_DISTANCE_FROM_PINS = 'SHOW_DISTANCE_FROM_PINS',
13
+ LOCATION_TARGETED_CONTENT = 'LOCATION_TARGETED_CONTENT',
14
+ FRIENDS_LOCATION_SHARING_BACKGROUND = 'FRIENDS_LOCATION_SHARING_BACKGROUND',
15
+ FRIENDS_LOCATION_SHARING_FOREGROUND = 'FRIENDS_LOCATION_SHARING_FOREGROUND',
16
+ EMERGENCY_LOCATION_SHARING = 'EMERGENCY_LOCATION_SHARING',
17
+ }