UBER-845: Add NotificationPresenter to send rich text notifications (#3729)

Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
This commit is contained in:
Maksim Karmatskikh
2023-09-28 12:08:00 +07:00
committed by GitHub
parent a3fd97e3b4
commit 1ca9de297a
21 changed files with 368 additions and 47 deletions
+17 -1
View File
@@ -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>