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
+3 -3
View File
@@ -13,9 +13,9 @@
// limitations under the License.
//
import { Doc } from '@hcengineering/core'
import type { Plugin, Resource } from '@hcengineering/platform'
import { plugin } from '@hcengineering/platform'
import { Presenter } from '@hcengineering/server-notification'
/**
* @public
@@ -27,7 +27,7 @@ export const serverTaskId = 'server-task' as Plugin
*/
export default plugin(serverTaskId, {
function: {
IssueHTMLPresenter: '' as Resource<(doc: Doc) => string>,
IssueTextPresenter: '' as Resource<(doc: Doc) => string>
IssueHTMLPresenter: '' as Resource<Presenter>,
IssueTextPresenter: '' as Resource<Presenter>
}
})