mgtypes 1.0.38 → 1.0.40
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 +7 -7
- package/types/Permissions.ts +36 -1
package/package.json
CHANGED
package/types/Configuration.ts
CHANGED
|
@@ -345,13 +345,13 @@ export interface mgPermissionsProfile {
|
|
|
345
345
|
// ARE THESE PERMISSIONS NEEDED FOR THE USER'S
|
|
346
346
|
// VERSION OF THE APP? IF SO, THEY APPEAR IN SETTINGS
|
|
347
347
|
NATIVE_PERMISSIONS: {
|
|
348
|
-
LOCATION_FOREGROUND: boolean;
|
|
349
|
-
LOCATION_BACKGROUND: boolean;
|
|
350
|
-
PHOTO_LIBRARY: boolean;
|
|
351
|
-
CAMERA: boolean;
|
|
352
|
-
MICROPHONE: boolean;
|
|
353
|
-
CONTACTS: boolean;
|
|
354
|
-
CALENDAR: boolean;
|
|
348
|
+
LOCATION_FOREGROUND: { isRequired: boolean; requestOnInit: boolean };
|
|
349
|
+
LOCATION_BACKGROUND: { isRequired: boolean; requestOnInit: boolean };
|
|
350
|
+
PHOTO_LIBRARY: { isRequired: boolean; requestOnInit: boolean };
|
|
351
|
+
CAMERA: { isRequired: boolean; requestOnInit: boolean };
|
|
352
|
+
MICROPHONE: { isRequired: boolean; requestOnInit: boolean };
|
|
353
|
+
CONTACTS: { isRequired: boolean; requestOnInit: boolean };
|
|
354
|
+
CALENDAR: { isRequired: boolean; requestOnInit: boolean };
|
|
355
355
|
};
|
|
356
356
|
FEATURES: {
|
|
357
357
|
CAN_HAVE_FRIENDS: boolean;
|
package/types/Permissions.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export enum mgNativePermissionTitle {
|
|
2
2
|
LOCATION_FOREGROUND = 'LOCATION_FOREGROUND',
|
|
3
3
|
LOCATION_BACKGROUND = 'LOCATION_BACKGROUND',
|
|
4
|
+
CALENDAR = 'CALENDAR',
|
|
4
5
|
CAMERA = 'CAMERA',
|
|
5
6
|
PHOTO_LIBRARY = 'PHOTO_LIBRARY',
|
|
6
7
|
CONTACTS = 'CONTACTS',
|
|
@@ -14,4 +15,38 @@ export enum mgLocationPermissionTitle {
|
|
|
14
15
|
FRIENDS_LOCATION_SHARING_BACKGROUND = 'FRIENDS_LOCATION_SHARING_BACKGROUND',
|
|
15
16
|
FRIENDS_LOCATION_SHARING_FOREGROUND = 'FRIENDS_LOCATION_SHARING_FOREGROUND',
|
|
16
17
|
EMERGENCY_LOCATION_SHARING = 'EMERGENCY_LOCATION_SHARING',
|
|
17
|
-
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// adding all of them distinctly to
|
|
21
|
+
// educate users; they can all be default
|
|
22
|
+
// and disabled true
|
|
23
|
+
export enum mgCalendarPermissionTitle {
|
|
24
|
+
CREATE_EVENTS = 'CREATE_EVENTS',
|
|
25
|
+
CREATE_REMINDERS = 'CREATE_REMINDERS',
|
|
26
|
+
ADD_ATTENDEES = 'ADD_ATTENDEES',
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const nativePermissionsOrder: mgNativePermissionTitle[] = [
|
|
30
|
+
mgNativePermissionTitle.LOCATION_FOREGROUND,
|
|
31
|
+
mgNativePermissionTitle.LOCATION_BACKGROUND,
|
|
32
|
+
mgNativePermissionTitle.CALENDAR,
|
|
33
|
+
mgNativePermissionTitle.CAMERA,
|
|
34
|
+
mgNativePermissionTitle.PHOTO_LIBRARY,
|
|
35
|
+
mgNativePermissionTitle.MICROPHONE,
|
|
36
|
+
mgNativePermissionTitle.CONTACTS,
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
export const locationPermissionsOrder: mgLocationPermissionTitle[] = [
|
|
40
|
+
mgLocationPermissionTitle.SHOW_LOCATION,
|
|
41
|
+
mgLocationPermissionTitle.SHOW_DISTANCE_FROM_PINS,
|
|
42
|
+
mgLocationPermissionTitle.LOCATION_TARGETED_CONTENT,
|
|
43
|
+
mgLocationPermissionTitle.FRIENDS_LOCATION_SHARING_FOREGROUND,
|
|
44
|
+
mgLocationPermissionTitle.FRIENDS_LOCATION_SHARING_BACKGROUND,
|
|
45
|
+
mgLocationPermissionTitle.EMERGENCY_LOCATION_SHARING,
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
export const calendarPermissionsOrder: mgCalendarPermissionTitle[]=[
|
|
49
|
+
mgCalendarPermissionTitle.CREATE_EVENTS,
|
|
50
|
+
mgCalendarPermissionTitle.CREATE_REMINDERS,
|
|
51
|
+
mgCalendarPermissionTitle.ADD_ATTENDEES
|
|
52
|
+
]
|