import { defineMessages , MessageDescriptor } from 'react-intl' ; interface INotificationsMessages extends Record < string | number | symbol , MessageDescriptor > { declarationsSynced : MessageDescriptor ; draftsSaved : MessageDescriptor ; outboxText : MessageDescriptor ; updatePINSuccess : MessageDescriptor ; processingText : MessageDescriptor ; statusRegistering : MessageDescriptor ; statusRejecting : MessageDescriptor ; statusSubmitting : MessageDescriptor ; statusWaitingToValidate : MessageDescriptor ; statusWaitingToRegister : MessageDescriptor ; statusWaitingToReject : MessageDescriptor ; statusWaitingToSubmit : MessageDescriptor ; userAuditSuccess : MessageDescriptor ; userFormFail : MessageDescriptor ; userFormSuccess : MessageDescriptor ; userFormUpdateSuccess : MessageDescriptor ; waitingToRetry : MessageDescriptor ; } const messagesToDefine = { declarationsSynced : { defaultMessage : 'As you have connectivity, we can synchronize your applications.' , description : 'The message that appears in notification when background sync takes place' , id : 'misc.notif.declarationsSynced' } , draftsSaved : { defaultMessage : 'Your draft has been saved' , description : 'The message that appears in notification when save drafts button is clicked' , id : 'misc.notif.draftsSaved' } , outboxText : { defaultMessage : 'Outbox({num})' , description : 'Application outbox text' , id : 'misc.notif.outboxText' } , updatePINSuccess : { defaultMessage : 'Your pin has been successfully updated' , description : 'Label for update PIN success notification toast' , id : 'misc.notif.updatePINSuccess' } , processingText : { defaultMessage : '{num} application processing...' , description : 'Application processing text' , id : 'misc.notif.processingText' } , statusRegistering : { defaultMessage : 'Registering...' , description : 'Label for application status Registering' , id : 'regHome.outbox.statusRegistering' } , statusRejecting : { defaultMessage : 'Rejecting...' , description : 'Label for application status Rejecting' , id : 'regHome.outbox.statusRejecting' } , statusSubmitting : { defaultMessage : 'Submitting...' , description : 'Label for application status submitting' , id : 'regHome.outbox.statusSubmitting' } , statusWaitingToValidate : { defaultMessage : 'Sending for approval' , description : 'Label for application status waiting for validate' , id : 'regHome.outbox.statusWaitingToValidate' } , statusWaitingToRegister : { defaultMessage : 'Waiting to register' , description : 'Label for application status waiting for register' , id : 'regHome.outbox.statusWaitingToRegister' } , statusWaitingToReject : { defaultMessage : 'Waiting to reject' , description : 'Label for application status waiting for reject' , id : 'regHome.outbox.statusWaitingToReject' } , statusWaitingToSubmit : { defaultMessage : 'Waiting to submit' , description : 'Label for application status waiting for reject' , id : 'regHome.outbox.statusWaitingToSubmit' } , userAuditSuccess : { defaultMessage : '{name} was {action, select, DEACTIVATE {deactivated} REACTIVATE {reactivated}}' , description : 'Label for user audit success notification' , id : 'misc.notif.userAuditSuccess' } , userFormFail : { defaultMessage : 'Sorry! Something went wrong' , description : 'The message that appears in notification when a new user creation fails' , id : 'misc.notif.sorryError' } , userFormSuccess : { defaultMessage : 'New user created' , description : 'The message that appears in notification when a new user is created' , id : 'misc.notif.userFormSuccess' } , userFormUpdateSuccess : { defaultMessage : 'User details have been updated' , description : 'The message that appears in notification when user details have been updated' , id : 'misc.notif.userFormUpdateSuccess' } , waitingToRetry : { defaultMessage : 'Waiting to retry' , description : 'Label for application status waiting for connection' , id : 'regHome.outbox.waitingToRetry' } } ; export const messages = defineMessages ( messagesToDefine ) ;