mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-01 21:47:00 +00:00
31 lines
827 B
TypeScript
31 lines
827 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 } from '@hcengineering/server-notification'
|
|
|
|
/**
|
|
* @public
|
|
*/
|
|
export const serverDocumentsId = 'server-documents' as Plugin
|
|
|
|
/**
|
|
* @public
|
|
*/
|
|
export default plugin(serverDocumentsId, {
|
|
trigger: {
|
|
OnDocDeleted: '' as Resource<TriggerFunc>,
|
|
OnDocPlannedEffectiveDateChanged: '' as Resource<TriggerFunc>,
|
|
OnDocApprovalRequestApproved: '' as Resource<TriggerFunc>,
|
|
OnDocHasBecomeEffective: '' as Resource<TriggerFunc>,
|
|
OnWorkspaceOwnerAdded: '' as Resource<TriggerFunc>
|
|
},
|
|
function: {
|
|
ControlledDocumentTextPresenter: '' as Resource<Presenter>
|
|
}
|
|
})
|