mgtypes 1.0.101 → 1.0.102

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.101",
3
+ "version": "1.0.102",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -144,14 +144,20 @@ 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: { amount: number, units: 'second'|'minute'|'day'|'week'|'month'|'year'}
147
+ interval: {
148
+ amount: number;
149
+ units: 'second' | 'minute' | 'day' | 'week' | 'month' | 'year';
150
+ };
148
151
  };
149
152
  };
150
153
  PERMISSIONS: {
151
154
  MODAL: {
152
- interval: {amount:number, units:'second'|'minute'|'day'|'week'|'month'|'year'}
153
- }
154
- }
155
+ interval: {
156
+ amount: number;
157
+ units: 'second' | 'minute' | 'day' | 'week' | 'month' | 'year';
158
+ };
159
+ };
160
+ };
155
161
  }
156
162
 
157
163
  /**
@@ -439,21 +445,35 @@ export interface mgPermissionsProfile {
439
445
  // if a permission is not toggleable and defaults to false, don't
440
446
  // even bother showing it
441
447
  LOCATION: {
442
- SHOW_LOCATION_AND_DISTANCES: { isToggleable: boolean; default: boolean }; // blue dot and user-to-pin distances
448
+ SHOW_LOCATION_AND_DISTANCES: {
449
+ isToggleable: boolean;
450
+ isGrantedByDefault: boolean;
451
+ requestOnInit: boolean;
452
+ }; // blue dot and user-to-pin distances
443
453
  // user coordinate are sent to server
444
- ENABLE_GEOTARGETED_CONTENT: { isToggleable: boolean; default: boolean };
454
+ ENABLE_GEOTARGETED_CONTENT: {
455
+ isToggleable: boolean;
456
+ isGrantedByDefault: boolean;
457
+ requestOnInit: boolean;
458
+ };
445
459
  // shares location with friends when using the app
446
460
  SHARE_FOREGROUND_LOCATION_WITH_FRIENDS: {
447
461
  isToggleable: boolean;
448
- default: boolean;
462
+ isGrantedByDefault: boolean;
463
+ requestOnInit: boolean;
449
464
  };
450
465
  // shares location with friends when not using the app
451
466
  SHARE_BACKGROUND_LOCATION_WITH_FRIENDS: {
452
467
  isToggleable: boolean;
453
- default: boolean;
468
+ isGrantedByDefault: boolean;
469
+ requestOnInit: boolean;
454
470
  };
455
471
  // requires both foreground and background location tracking
456
- SHARE_LOCATIONS_FOR_EMERGENCIES: { isToggleable: boolean; default: boolean };
472
+ SHARE_LOCATIONS_FOR_EMERGENCIES: {
473
+ isToggleable: boolean;
474
+ isGrantedByDefault: boolean;
475
+ requestOnInit: boolean;
476
+ };
457
477
  };
458
478
 
459
479
  // TODO:permissionsConfig