mgtypes 1.0.101 → 1.0.103

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.103",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -76,12 +76,6 @@ export interface mgPlaceholdersConfig {
76
76
  */
77
77
  export interface mgMapConfig {
78
78
  MAP_BILLBOARDS: mgMapBillboards;
79
- DEFAULT_MAP_CAMERA: {
80
- centerCoordinate: Position;
81
- zoomLevel: number;
82
- pitch?: number;
83
- heading?: number;
84
- };
85
79
  mapStyleURL: string | null;
86
80
  }
87
81
 
@@ -144,14 +138,20 @@ export interface mgFeaturesConfig {
144
138
  userAuthMode: 'guest only' | 'account only' | 'guest or account';
145
139
  AUTH_PAGE: {
146
140
  displayMode: 'never' | 'interval' | 'always';
147
- interval: { amount: number, units: 'second'|'minute'|'day'|'week'|'month'|'year'}
141
+ interval: {
142
+ amount: number;
143
+ units: 'second' | 'minute' | 'day' | 'week' | 'month' | 'year';
144
+ };
148
145
  };
149
146
  };
150
147
  PERMISSIONS: {
151
148
  MODAL: {
152
- interval: {amount:number, units:'second'|'minute'|'day'|'week'|'month'|'year'}
153
- }
154
- }
149
+ interval: {
150
+ amount: number;
151
+ units: 'second' | 'minute' | 'day' | 'week' | 'month' | 'year';
152
+ };
153
+ };
154
+ };
155
155
  }
156
156
 
157
157
  /**
@@ -378,7 +378,16 @@ export interface mgProfilesConfig {
378
378
 
379
379
  interface mgProfileConfig {
380
380
  PERMISSIONS: mgPermissionsProfile;
381
- MAP_FILTERS: mgMapFiltersProfile;
381
+
382
+ MAP: {
383
+ MAP_FILTERS: mgMapFiltersProfile;
384
+ DEFAULT_CAMERA: {
385
+ centerCoordinate: Position;
386
+ zoomLevel: number;
387
+ pitch?: number;
388
+ heading?: number;
389
+ };
390
+ }
382
391
  }
383
392
 
384
393
  export interface mgPermissionsProfile {
@@ -439,21 +448,35 @@ export interface mgPermissionsProfile {
439
448
  // if a permission is not toggleable and defaults to false, don't
440
449
  // even bother showing it
441
450
  LOCATION: {
442
- SHOW_LOCATION_AND_DISTANCES: { isToggleable: boolean; default: boolean }; // blue dot and user-to-pin distances
451
+ SHOW_LOCATION_AND_DISTANCES: {
452
+ isToggleable: boolean;
453
+ isGrantedByDefault: boolean;
454
+ requestOnInit: boolean;
455
+ }; // blue dot and user-to-pin distances
443
456
  // user coordinate are sent to server
444
- ENABLE_GEOTARGETED_CONTENT: { isToggleable: boolean; default: boolean };
457
+ ENABLE_GEOTARGETED_CONTENT: {
458
+ isToggleable: boolean;
459
+ isGrantedByDefault: boolean;
460
+ requestOnInit: boolean;
461
+ };
445
462
  // shares location with friends when using the app
446
463
  SHARE_FOREGROUND_LOCATION_WITH_FRIENDS: {
447
464
  isToggleable: boolean;
448
- default: boolean;
465
+ isGrantedByDefault: boolean;
466
+ requestOnInit: boolean;
449
467
  };
450
468
  // shares location with friends when not using the app
451
469
  SHARE_BACKGROUND_LOCATION_WITH_FRIENDS: {
452
470
  isToggleable: boolean;
453
- default: boolean;
471
+ isGrantedByDefault: boolean;
472
+ requestOnInit: boolean;
454
473
  };
455
474
  // requires both foreground and background location tracking
456
- SHARE_LOCATIONS_FOR_EMERGENCIES: { isToggleable: boolean; default: boolean };
475
+ SHARE_LOCATIONS_FOR_EMERGENCIES: {
476
+ isToggleable: boolean;
477
+ isGrantedByDefault: boolean;
478
+ requestOnInit: boolean;
479
+ };
457
480
  };
458
481
 
459
482
  // TODO:permissionsConfig