UBER-220 TG/GMAIL new message inbox notifications (#3246)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-05-24 13:09:11 +06:00
committed by GitHub
parent 30a0413dc3
commit d8e69eb6bc
25 changed files with 153 additions and 15 deletions
+2
View File
@@ -17,6 +17,7 @@
import { Class, Doc, DocumentQuery, FindOptions, FindResult, Hierarchy, Ref } from '@hcengineering/core'
import type { Plugin, Resource } from '@hcengineering/platform'
import { plugin } from '@hcengineering/platform'
import { TypeMatchFunc } from '@hcengineering/server-notification'
import { TriggerFunc } from '@hcengineering/server-core'
/**
@@ -32,6 +33,7 @@ export default plugin(serverGmailId, {
OnMessageCreate: '' as Resource<TriggerFunc>
},
function: {
IsIncomingMessage: '' as TypeMatchFunc,
FindMessages: '' as Resource<
(
doc: Doc,