Refactor server side notifications (#2327)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2022-10-26 17:24:39 +07:00
committed by GitHub
parent 70e00dbb5f
commit 3a8d1e2bcb
58 changed files with 539 additions and 400 deletions
+5 -5
View File
@@ -17,7 +17,7 @@
import type { Resource, Plugin } from '@hcengineering/platform'
import { plugin } from '@hcengineering/platform'
import type { TriggerFunc } from '@hcengineering/server-core'
import { Doc } from '@hcengineering/core'
import { Presenter } from '@hcengineering/server-notification'
/**
* @public
@@ -32,9 +32,9 @@ export default plugin(serverContactId, {
OnContactDelete: '' as Resource<TriggerFunc>
},
function: {
PersonHTMLPresenter: '' as Resource<(doc: Doc) => string>,
PersonTextPresenter: '' as Resource<(doc: Doc) => string>,
OrganizationHTMLPresenter: '' as Resource<(doc: Doc) => string>,
OrganizationTextPresenter: '' as Resource<(doc: Doc) => string>
PersonHTMLPresenter: '' as Resource<Presenter>,
PersonTextPresenter: '' as Resource<Presenter>,
OrganizationHTMLPresenter: '' as Resource<Presenter>,
OrganizationTextPresenter: '' as Resource<Presenter>
}
})