mgtypes 1.0.99 → 1.0.100

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.99",
3
+ "version": "1.0.100",
4
4
  "description": "types for mg development",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -40,7 +40,7 @@ export enum mgNotificationsPermissionTitle {
40
40
  }
41
41
 
42
42
  // STATE //////////////////////////////////////////////
43
- // THESE ARE ALL THE PERMISSIONS THAT MOBGOB HAS AT WRITING
43
+ // THESE ARE THE ACTUAL CURRENT PERMISSIONS AVAILABLE IN APP
44
44
  export interface mgPermissionsState {
45
45
  SHOW_LOCATION_AND_DISTANCES: mgNonNativePermission;
46
46
  LOCATION_FOREGROUND: mgNativePermission;
@@ -49,25 +49,11 @@ export interface mgPermissionsState {
49
49
  export interface mgNativePermission {
50
50
  status: 'granted' | 'undetermined' | 'denied';
51
51
  canAskAgain: boolean;
52
- // will display in info modal: these are non-native, non-toggleable, and true
53
- defaultTruePermissions: (
54
- | mgNonNativePermissionTitle
55
- | mgLocationPermissionTitle
56
- | mgCalendarPermissionTitle
57
- | mgNotificationsPermissionTitle
58
- )[]; // TODO:permissionsConfig
59
- toggleablePermissions: (
60
- | mgNonNativePermissionTitle
61
- | mgLocationPermissionTitle
62
- | mgCalendarPermissionTitle
63
- | mgNotificationsPermissionTitle
64
- )[]; // TODO:permissionsConfig
65
52
  }
66
53
 
67
54
  export interface mgNonNativePermission {
68
55
  isGranted: boolean;
69
- disabled: boolean;
70
- ungrantedNativePermissions: mgNativePermissionTitle[];
56
+ isToggleable: boolean;
71
57
  }
72
58
 
73
59
  /**
@@ -441,35 +441,35 @@ export interface mgPermissionsProfile {
441
441
  // if a permission is not toggleable and defaults to false, don't
442
442
  // even bother showing it
443
443
  LOCATION: {
444
- SHOW_LOCATION_AND_DISTANCES: { canToggle: boolean; default: boolean }; // blue dot and user-to-pin distances
444
+ SHOW_LOCATION_AND_DISTANCES: { isToggleable: boolean; default: boolean }; // blue dot and user-to-pin distances
445
445
  // user coordinate are sent to server
446
- ENABLE_GEOTARGETED_CONTENT: { canToggle: boolean; default: boolean };
446
+ ENABLE_GEOTARGETED_CONTENT: { isToggleable: boolean; default: boolean };
447
447
  // shares location with friends when using the app
448
448
  SHARE_FOREGROUND_LOCATION_WITH_FRIENDS: {
449
- canToggle: boolean;
449
+ isToggleable: boolean;
450
450
  default: boolean;
451
451
  };
452
452
  // shares location with friends when not using the app
453
453
  SHARE_BACKGROUND_LOCATION_WITH_FRIENDS: {
454
- canToggle: boolean;
454
+ isToggleable: boolean;
455
455
  default: boolean;
456
456
  };
457
457
  // requires both foreground and background location tracking
458
- SHARE_LOCATIONS_FOR_EMERGENCIES: { canToggle: boolean; default: boolean };
458
+ SHARE_LOCATIONS_FOR_EMERGENCIES: { isToggleable: boolean; default: boolean };
459
459
  };
460
460
 
461
461
  // TODO:permissionsConfig
462
462
  // CALENDAR: {
463
463
  // ENABLE_CREATE_EVENTS: {
464
- // canToggle: boolean;
464
+ // isToggleable: boolean;
465
465
  // default: boolean;
466
466
  // };
467
467
  // ENABLE_CREATE_REMINDERS: {
468
- // canToggle: boolean;
468
+ // isToggleable: boolean;
469
469
  // default: boolean;
470
470
  // };
471
471
  // ENABLE_ADD_ATTENDEES: {
472
- // canToggle: boolean;
472
+ // isToggleable: boolean;
473
473
  // default: boolean;
474
474
  // };
475
475
  // };
@@ -477,15 +477,15 @@ export interface mgPermissionsProfile {
477
477
  // TODO:permissionsConfig
478
478
  // NOTIFICATIONS: {
479
479
  // RECEIVE_RSVP_NOTIFICATIONS: {
480
- // canToggle: boolean;
480
+ // isToggleable: boolean;
481
481
  // default: boolean;
482
482
  // };
483
483
  // RECEIVE_EVENT_NEWS_NOTIFICATIONS: {
484
- // canToggle: boolean;
484
+ // isToggleable: boolean;
485
485
  // default: boolean;
486
486
  // };
487
487
  // RECEIVE_MARKETING_NOTIFICATIONS: {
488
- // canToggle: boolean;
488
+ // isToggleable: boolean;
489
489
  // default: boolean;
490
490
  // };
491
491
  // };