mgtypes 1.0.34 → 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 +1 -1
- package/types/Configuration.ts +34 -1
- package/types/Permissions.ts +17 -0
package/package.json
CHANGED
package/types/Configuration.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
*/
|
|
@@ -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
|
+
}
|