2021-11-10 14:55:37 +00:00
|
|
|
interface IOptionsField {
|
|
|
|
label: string;
|
|
|
|
value: string | number;
|
|
|
|
second?: number;
|
|
|
|
}
|
|
|
|
export interface INotificationOptions {
|
|
|
|
[desktopNotifications: string]: IOptionsField[];
|
|
|
|
audioNotifications: IOptionsField[];
|
|
|
|
mobilePushNotifications: IOptionsField[];
|
|
|
|
emailNotifications: IOptionsField[];
|
|
|
|
desktopNotificationDuration: IOptionsField[];
|
|
|
|
audioNotificationValue: IOptionsField[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export const OPTIONS: INotificationOptions = {
|
2021-09-13 20:41:05 +00:00
|
|
|
desktopNotifications: [
|
|
|
|
{
|
|
|
|
label: 'Default',
|
|
|
|
value: 'default'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'All_Messages',
|
|
|
|
value: 'all'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Mentions',
|
|
|
|
value: 'mentions'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Nothing',
|
|
|
|
value: 'nothing'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
audioNotifications: [
|
|
|
|
{
|
|
|
|
label: 'Default',
|
|
|
|
value: 'default'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'All_Messages',
|
|
|
|
value: 'all'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Mentions',
|
|
|
|
value: 'mentions'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Nothing',
|
|
|
|
value: 'nothing'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
mobilePushNotifications: [
|
|
|
|
{
|
|
|
|
label: 'Default',
|
|
|
|
value: 'default'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'All_Messages',
|
|
|
|
value: 'all'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Mentions',
|
|
|
|
value: 'mentions'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Nothing',
|
|
|
|
value: 'nothing'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
emailNotifications: [
|
|
|
|
{
|
|
|
|
label: 'Default',
|
|
|
|
value: 'default'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'All_Messages',
|
|
|
|
value: 'all'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Mentions',
|
|
|
|
value: 'mentions'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Nothing',
|
|
|
|
value: 'nothing'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
desktopNotificationDuration: [
|
|
|
|
{
|
|
|
|
label: 'Default',
|
|
|
|
value: 0
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Seconds',
|
|
|
|
second: 1,
|
|
|
|
value: 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Seconds',
|
|
|
|
second: 2,
|
|
|
|
value: 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Seconds',
|
|
|
|
second: 3,
|
|
|
|
value: 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Seconds',
|
|
|
|
second: 4,
|
|
|
|
value: 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Seconds',
|
|
|
|
second: 5,
|
|
|
|
value: 5
|
|
|
|
}
|
|
|
|
],
|
|
|
|
audioNotificationValue: [
|
|
|
|
{
|
|
|
|
label: 'None',
|
|
|
|
value: 'none None'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Default',
|
|
|
|
value: '0 Default'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Beep',
|
|
|
|
value: 'beep Beep'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Ding',
|
|
|
|
value: 'ding Ding'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Chelle',
|
|
|
|
value: 'chelle Chelle'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Droplet',
|
|
|
|
value: 'droplet Droplet'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Highbell',
|
|
|
|
value: 'highbell Highbell'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Seasons',
|
|
|
|
value: 'seasons Seasons'
|
|
|
|
}
|
|
|
|
]
|
2020-08-21 13:30:11 +00:00
|
|
|
};
|