mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 14:05:05 +02:00
Refactor server side notifications (#2327)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -13,10 +13,10 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import type { Resource, Plugin } from '@hcengineering/platform'
|
||||
import type { Plugin, Resource } from '@hcengineering/platform'
|
||||
import { plugin } from '@hcengineering/platform'
|
||||
import { Doc } from '@hcengineering/core'
|
||||
import { TriggerFunc } from '@hcengineering/server-core'
|
||||
import { Presenter } from '@hcengineering/server-notification'
|
||||
|
||||
/**
|
||||
* @public
|
||||
@@ -28,10 +28,10 @@ export const serverRecruitId = 'server-recruit' as Plugin
|
||||
*/
|
||||
export default plugin(serverRecruitId, {
|
||||
function: {
|
||||
ApplicationHTMLPresenter: '' as Resource<(doc: Doc) => string>,
|
||||
ApplicationTextPresenter: '' as Resource<(doc: Doc) => string>,
|
||||
VacancyHTMLPresenter: '' as Resource<(doc: Doc) => string>,
|
||||
VacancyTextPresenter: '' as Resource<(doc: Doc) => string>
|
||||
ApplicationHTMLPresenter: '' as Resource<Presenter>,
|
||||
ApplicationTextPresenter: '' as Resource<Presenter>,
|
||||
VacancyHTMLPresenter: '' as Resource<Presenter>,
|
||||
VacancyTextPresenter: '' as Resource<Presenter>
|
||||
},
|
||||
trigger: {
|
||||
OnRecruitUpdate: '' as Resource<TriggerFunc>
|
||||
|
||||
Reference in New Issue
Block a user