updated EmailNotificationScheduleTypes to match with the backend values
This commit is contained in:
parent
2dbe010982
commit
070df8a0ab
@ -1,9 +1,9 @@
|
|||||||
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
||||||
|
|
||||||
export const notificationsTranslations: { [key: string]: string } = {
|
export const notificationsTranslations: { [key: string]: string } = {
|
||||||
instant: _('notifications-screen.schedule.instant'),
|
daily: _('notifications-screen.schedule.instant'),
|
||||||
daily: _('notifications-screen.schedule.daily'),
|
daily_summary: _('notifications-screen.schedule.daily'),
|
||||||
weekly: _('notifications-screen.schedule.weekly'),
|
weekly_summary: _('notifications-screen.schedule.weekly'),
|
||||||
inAppNotifications: _('notifications-screen.category.in-app-notifications'),
|
inAppNotifications: _('notifications-screen.category.in-app-notifications'),
|
||||||
emailNotifications: _('notifications-screen.category.email-notifications'),
|
emailNotifications: _('notifications-screen.category.email-notifications'),
|
||||||
documentIsSentForApproval: _('notifications-screen.options.document-is-sent-for-approval'),
|
documentIsSentForApproval: _('notifications-screen.options.document-is-sent-for-approval'),
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
export const EmailNotificationScheduleTypes = {
|
export const EmailNotificationScheduleTypes = {
|
||||||
INSTANT: 'INSTANT',
|
INSTANT: 'DAILY',
|
||||||
DAILY: 'DAILY',
|
DAILY: 'DAILY_SUMMARY',
|
||||||
WEEKLY: 'WEEKLY',
|
WEEKLY: 'WEEKLY_SUMMARY',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export type EmailNotificationScheduleType = keyof typeof EmailNotificationScheduleTypes;
|
export type EmailNotificationScheduleType = keyof typeof EmailNotificationScheduleTypes;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user