mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-12 12:47:45 +02:00
UBER-845: Add NotificationPresenter to send rich text notifications (#3729)
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
This commit is contained in:
@@ -95,6 +95,16 @@ export interface NotificationTemplate {
|
||||
subjectTemplate: string
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export interface NotificationContent {
|
||||
title: IntlString
|
||||
body: IntlString
|
||||
intlParams: Record<string, string | number>
|
||||
intlParamsNotLocalized?: Record<string, IntlString>
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
@@ -171,6 +181,10 @@ export interface DocUpdateTx {
|
||||
modifiedBy: Ref<Account>
|
||||
modifiedOn: Timestamp
|
||||
isNew: boolean
|
||||
title?: IntlString
|
||||
body?: IntlString
|
||||
intlParams?: Record<string, string | number>
|
||||
intlParamsNotLocalized?: Record<string, IntlString>
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -263,7 +277,9 @@ const notification = plugin(notificationId, {
|
||||
Notification: '' as IntlString,
|
||||
Notifications: '' as IntlString,
|
||||
DontTrack: '' as IntlString,
|
||||
Inbox: '' as IntlString
|
||||
Inbox: '' as IntlString,
|
||||
CommonNotificationTitle: '' as IntlString,
|
||||
CommonNotificationBody: '' as IntlString
|
||||
},
|
||||
function: {
|
||||
GetNotificationClient: '' as Resource<NotificationClientFactoy>
|
||||
|
||||
Reference in New Issue
Block a user