mgtypes 1.0.46 → 1.0.47
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/Permissions.ts +16 -3
package/package.json
CHANGED
package/types/Permissions.ts
CHANGED
|
@@ -7,6 +7,7 @@ export enum mgNativePermissionTitle {
|
|
|
7
7
|
MEDIA_LIBRARY = 'MEDIA_LIBRARY',
|
|
8
8
|
CONTACTS = 'CONTACTS',
|
|
9
9
|
MICROPHONE = 'MICROPHONE',
|
|
10
|
+
NOTIFICATIONS = 'NOTIFICATIONS',
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export enum mgLocationPermissionTitle {
|
|
@@ -27,6 +28,12 @@ export enum mgCalendarPermissionTitle {
|
|
|
27
28
|
ADD_ATTENDEES = 'ADD_ATTENDEES',
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
export enum mgNotificationsPermissionTitle {
|
|
32
|
+
ALLOW_FOR_RSVPS = 'ALLOW_FOR_RSVPS',
|
|
33
|
+
ALLOW_FOR_UPDATES = 'ALLOW_FOR_UPDATES',
|
|
34
|
+
ALLOW_FOR_MARKETING = 'ALLOW_FOR_MARKETING',
|
|
35
|
+
}
|
|
36
|
+
|
|
30
37
|
export const nativePermissionsOrder: mgNativePermissionTitle[] = [
|
|
31
38
|
mgNativePermissionTitle.LOCATION_FOREGROUND,
|
|
32
39
|
mgNativePermissionTitle.LOCATION_BACKGROUND,
|
|
@@ -47,8 +54,14 @@ export const locationPermissionsOrder: mgLocationPermissionTitle[] = [
|
|
|
47
54
|
mgLocationPermissionTitle.EMERGENCY_LOCATION_SHARING,
|
|
48
55
|
];
|
|
49
56
|
|
|
50
|
-
export const calendarPermissionsOrder: mgCalendarPermissionTitle[]=[
|
|
57
|
+
export const calendarPermissionsOrder: mgCalendarPermissionTitle[] = [
|
|
51
58
|
mgCalendarPermissionTitle.CREATE_EVENTS,
|
|
52
59
|
mgCalendarPermissionTitle.CREATE_REMINDERS,
|
|
53
|
-
mgCalendarPermissionTitle.ADD_ATTENDEES
|
|
54
|
-
]
|
|
60
|
+
mgCalendarPermissionTitle.ADD_ATTENDEES,
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
export const notificationsPermissionsOrder: mgNotificationsPermissionTitle[] = [
|
|
64
|
+
mgNotificationsPermissionTitle.ALLOW_FOR_RSVPS,
|
|
65
|
+
mgNotificationsPermissionTitle.ALLOW_FOR_UPDATES,
|
|
66
|
+
mgNotificationsPermissionTitle.ALLOW_FOR_MARKETING,
|
|
67
|
+
];
|