mgtypes 1.0.34 → 1.0.36

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.34",
3
+ "version": "1.0.36",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -14,6 +14,8 @@ export interface mgConfiguration {
14
14
  feed: mgFeedConfig;
15
15
  profiles: mgProfilesConfig;
16
16
  lists: mgListsConfig;
17
+ navigation: mgNavigationConfig;
18
+ calendar: mgCalendarConfig;
17
19
  }
18
20
 
19
21
  /**
@@ -53,7 +55,14 @@ export interface mgFeedConfig {
53
55
  * Configs for lists
54
56
  */
55
57
  export interface mgListsConfig {
56
- HAS_CALENDAR: boolean;
58
+ THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
59
+ }
60
+
61
+ /**
62
+ * Configs for calendars
63
+ */
64
+ export interface mgCalendarConfig {
65
+ THIS_INTERFACE_HAS_NO_PROPERTIES: undefined;
57
66
  }
58
67
 
59
68
  /**
@@ -68,6 +77,31 @@ export interface mgSpecsConfig {
68
77
  APP_ALIAS: string;
69
78
  }
70
79
 
80
+ /**
81
+ * possible buttons in bottom nav and contained in 'MORE' menu
82
+ */
83
+ enum mgNavButton {
84
+ FEED = 'feed',
85
+ MAP = 'map',
86
+ CREATE = 'create',
87
+ LISTS = 'lists',
88
+ CALENDAR = 'calendar',
89
+ HELP = 'help',
90
+ SETTINGS = 'settings',
91
+ }
92
+
93
+ /**
94
+ * Configs for nav, like bottom nav buttons
95
+ * @property bottomNavButtons.primary: buttons that show on bottom nav, listed in order they're displayed
96
+ * @property bottomNavButtons.secondary: buttons that show in 'MORE' menu
97
+ */
98
+ export interface mgNavigationConfig {
99
+ bottomNavButtons: {
100
+ primary: mgNavButton[];
101
+ secondary: mgNavButton[];
102
+ };
103
+ }
104
+
71
105
  /**
72
106
  * Configs that dictate user interactivity
73
107
  */
@@ -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
+ }