mgtypes 1.0.44 → 1.0.46
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 +20 -2
- package/types/SecureStore.ts +28 -0
package/package.json
CHANGED
package/types/Configuration.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface mgConfiguration {
|
|
|
16
16
|
lists: mgListsConfig;
|
|
17
17
|
navigation: mgNavigationConfig;
|
|
18
18
|
calendar: mgCalendarConfig;
|
|
19
|
+
authentication: mgAuthenticationConfig;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
/**
|
|
@@ -100,7 +101,7 @@ export interface mgNavigationConfig {
|
|
|
100
101
|
primary: mgNavButton[];
|
|
101
102
|
secondary: mgNavButton[];
|
|
102
103
|
};
|
|
103
|
-
homePage: 'Settings' | 'Map' | 'Feed' | 'Calendar' | 'Lists'
|
|
104
|
+
homePage: 'Settings' | 'Map' | 'Feed' | 'Calendar' | 'Lists';
|
|
104
105
|
}
|
|
105
106
|
|
|
106
107
|
/**
|
|
@@ -190,10 +191,27 @@ export interface mgFeaturesConfig {
|
|
|
190
191
|
color: string;
|
|
191
192
|
};
|
|
192
193
|
};
|
|
193
|
-
USER_AUTH_SETTING: 'guest only' | 'account only' | 'guest or account';
|
|
194
194
|
IS_CONTENT_THREADED: boolean;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
+
|
|
198
|
+
// ** AUTH **
|
|
199
|
+
|
|
200
|
+
export interface mgAuthenticationConfig {
|
|
201
|
+
USER_AUTH_MODE: 'guest only' | 'account only' | 'guest or account';
|
|
202
|
+
AUTH_PAGE_SETTINGS: {
|
|
203
|
+
DISPLAY_MODE: 'never' | 'interval' | 'always';
|
|
204
|
+
INTERVAL:
|
|
205
|
+
| null
|
|
206
|
+
| '10 minutes'
|
|
207
|
+
| '30 minutes'
|
|
208
|
+
| '1 hour'
|
|
209
|
+
| '1 day'
|
|
210
|
+
| '1 week'
|
|
211
|
+
| '1 month';
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
|
|
197
215
|
// ** COLORS **
|
|
198
216
|
|
|
199
217
|
/**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Includes types that will be stored in device's secure store as a JSON; these types represent objects before being stringified and stored.
|
|
2
|
+
|
|
3
|
+
import { mgNativePermissionTitle } from './Permissions';
|
|
4
|
+
|
|
5
|
+
export enum SecureStoreKey {
|
|
6
|
+
LOGIN_PERMISSION_MODAL= 'LOGIN_PERMISSION_MODAL',
|
|
7
|
+
PERMISSIONS = 'PERMISSIONS',
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface mgSecureStoreLoginPermissionModal {
|
|
12
|
+
showOnNextLogin: boolean;
|
|
13
|
+
lastLoginDate: Date;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface mgSecureStorePermission {
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
isGranted: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface mgSecureStorePermissions {
|
|
22
|
+
LOCATION: {
|
|
23
|
+
[key: string]: mgSecureStorePermission;
|
|
24
|
+
};
|
|
25
|
+
CALENDAR: {
|
|
26
|
+
[key: string]: mgSecureStorePermission;
|
|
27
|
+
};
|
|
28
|
+
}
|