mgtypes 1.0.100 → 1.0.101

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.100",
3
+ "version": "1.0.101",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -42,8 +42,8 @@ export enum mgNotificationsPermissionTitle {
42
42
  // STATE //////////////////////////////////////////////
43
43
  // THESE ARE THE ACTUAL CURRENT PERMISSIONS AVAILABLE IN APP
44
44
  export interface mgPermissionsState {
45
- SHOW_LOCATION_AND_DISTANCES: mgNonNativePermission;
46
- LOCATION_FOREGROUND: mgNativePermission;
45
+ SHOW_LOCATION_AND_DISTANCES?: mgNonNativePermission;
46
+ LOCATION_FOREGROUND?: mgNativePermission;
47
47
  }
48
48
 
49
49
  export interface mgNativePermission {
@@ -56,13 +56,6 @@ export interface mgNonNativePermission {
56
56
  isToggleable: boolean;
57
57
  }
58
58
 
59
- /**
60
- * a non-native permission state in secure store
61
- */
62
- export interface mgSecureStorePermission {
63
- disabled: boolean; // disabled permisions won't be displayed in Settings page
64
- isGranted: boolean;
65
- }
66
59
 
67
60
  // ORDERS OF PERMISSIONS //////////////////////////////////
68
61
 
@@ -144,16 +144,14 @@ export interface mgFeaturesConfig {
144
144
  userAuthMode: 'guest only' | 'account only' | 'guest or account';
145
145
  AUTH_PAGE: {
146
146
  displayMode: 'never' | 'interval' | 'always';
147
- interval:
148
- | null
149
- | '10 minutes'
150
- | '30 minutes'
151
- | '1 hour'
152
- | '1 day'
153
- | '1 week'
154
- | '1 month';
147
+ interval: { amount: number, units: 'second'|'minute'|'day'|'week'|'month'|'year'}
155
148
  };
156
149
  };
150
+ PERMISSIONS: {
151
+ MODAL: {
152
+ interval: {amount:number, units:'second'|'minute'|'day'|'week'|'month'|'year'}
153
+ }
154
+ }
157
155
  }
158
156
 
159
157
  /**
@@ -322,7 +320,7 @@ export interface mgFontTextStyle {
322
320
  *
323
321
  * @property labelLarge: BUTTONS, segmented buttons
324
322
  * accordion titles, help modal, confirm action snackbar title
325
- * @property labelMedium: Billboard title,
323
+ * @property labelMedium: Billboard title, setting subtitles
326
324
  * @property labelSmall: bottom navigation buttons,
327
325
  * Billboard "ZOOM IN", custom chip,
328
326
  * other small-font instructions/labels,