mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-25 05:42:23 +02:00
* Send notification when document reviewed Signed-off-by: Artem Savchenko <armisav@gmail.com> * Clean up Signed-off-by: Artem Savchenko <armisav@gmail.com> --------- Signed-off-by: Artem Savchenko <armisav@gmail.com>
34 lines
1017 B
TypeScript
34 lines
1017 B
TypeScript
//
|
|
// Copyright © 2023 Hardcore Engineering Inc.
|
|
//
|
|
//
|
|
|
|
import type { Plugin, Resource } from '@hcengineering/platform'
|
|
import { plugin } from '@hcengineering/platform'
|
|
import { TriggerFunc } from '@hcengineering/server-core'
|
|
import { Presenter, TypeMatchFunc } from '@hcengineering/server-notification'
|
|
|
|
/**
|
|
* @public
|
|
*/
|
|
export const serverDocumentsId = 'server-documents' as Plugin
|
|
|
|
/**
|
|
* @public
|
|
*/
|
|
export default plugin(serverDocumentsId, {
|
|
trigger: {
|
|
OnDocEnteredNonActionableState: '' as Resource<TriggerFunc>,
|
|
OnDocPlannedEffectiveDateChanged: '' as Resource<TriggerFunc>,
|
|
OnDocApprovalRequestApproved: '' as Resource<TriggerFunc>,
|
|
OnDocHasBecomeEffective: '' as Resource<TriggerFunc>,
|
|
OnDocTitleChanged: '' as Resource<TriggerFunc>
|
|
},
|
|
function: {
|
|
ControlledDocumentTextPresenter: '' as Resource<Presenter>,
|
|
ControlledDocumentHTMLPresenter: '' as Resource<Presenter>,
|
|
CoAuthorsTypeMatch: '' as TypeMatchFunc,
|
|
DocumentReviewedTypeMatch: '' as TypeMatchFunc
|
|
}
|
|
})
|