Files
huly-platform/plugins/guest/src/index.ts
T
2024-06-28 08:55:32 +05:00

37 lines
824 B
TypeScript

import { Class, Doc, Ref } from '@hcengineering/core'
import type { Asset, Plugin } from '@hcengineering/platform'
import { plugin } from '@hcengineering/platform'
import { AnyComponent, Location } from '@hcengineering/ui'
export * from './utils'
export interface PublicLink extends Doc {
attachedTo: Ref<Doc>
url: string
location: Location
restrictions: Restrictions
revokable: boolean
}
export interface Restrictions {
readonly: boolean
disableComments: boolean
disableNavigation: boolean
disableActions: boolean
}
export const guestAccountEmail = '#guest@hc.engineering'
export const guestId = 'guest' as Plugin
export default plugin(guestId, {
class: {
PublicLink: '' as Ref<Class<PublicLink>>
},
icon: {
Link: '' as Asset
},
component: {
GuestApp: '' as AnyComponent
}
})