mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-14 03:10:27 +00:00
37 lines
860 B
TypeScript
37 lines
860 B
TypeScript
import { Class, Doc, PersonUuid, 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 guestAccount = 'b6996120-416f-49cd-841e-e4a5d2e49c9b' as PersonUuid
|
|
|
|
export const guestId = 'guest' as Plugin
|
|
export default plugin(guestId, {
|
|
class: {
|
|
PublicLink: '' as Ref<Class<PublicLink>>
|
|
},
|
|
icon: {
|
|
Link: '' as Asset
|
|
},
|
|
component: {
|
|
GuestApp: '' as AnyComponent
|
|
}
|
|
})
|