mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-10 11:47:42 +02:00
Refactor server side notifications (#2327)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -29,6 +29,15 @@ export interface LastView extends AttachedDoc {
|
||||
user: Ref<Account>
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
export interface NotificationAction {
|
||||
component: AnyComponent
|
||||
objectId: Ref<Doc>
|
||||
objectClass: Ref<Class<Doc>>
|
||||
}
|
||||
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
@@ -39,11 +48,7 @@ export interface Notification extends AttachedDoc {
|
||||
type: Ref<NotificationType>
|
||||
|
||||
// Defined to open particular item if required.
|
||||
action?: {
|
||||
component: AnyComponent
|
||||
objectId: Ref<Doc>
|
||||
objectClass: Ref<Class<Doc>>
|
||||
}
|
||||
action?: NotificationAction
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -72,6 +77,9 @@ export enum NotificationStatus {
|
||||
*/
|
||||
export interface NotificationType extends Doc {
|
||||
label: IntlString
|
||||
textTemplate: string
|
||||
htmlTemplate: string
|
||||
subjectTemplate: string
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user