platform/plugins/print/src/plugin.ts
Alexey Zinoviev 48e1ca9849
UBERF-7090: Add QMS plugins (#5716)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
2024-06-03 19:55:54 +04:00

32 lines
762 B
TypeScript

//
// Copyright © 2024 Hardcore Engineering Inc.
//
import { type Doc } from '@hcengineering/core'
import { type IntlString, type Metadata, type Plugin, plugin, type Asset, type Resource } from '@hcengineering/platform'
import { type AnyComponent } from '@hcengineering/ui'
export const printId = 'print' as Plugin
export const print = plugin(printId, {
string: {
PrintToPDF: '' as IntlString
},
component: {
PrintToPDF: '' as AnyComponent,
DOCXViewer: '' as AnyComponent
},
icon: {
Print: '' as Asset
},
metadata: {
PrintURL: '' as Metadata<string>
},
function: {
CanPrint: '' as Resource<(doc?: Doc | Doc[]) => Promise<boolean>>,
CanConvert: '' as Resource<() => Promise<boolean>>
}
})
export default print