mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 01:25:00 +02:00
UBERF-5603 (#4754)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
import { Class, Doc, Ref, Space } from '@hcengineering/core'
|
||||
import type { Asset, Plugin } from '@hcengineering/platform'
|
||||
import { plugin } from '@hcengineering/platform'
|
||||
import { AnyComponent, Location } from '@hcengineering/ui'
|
||||
|
||||
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
|
||||
},
|
||||
space: {
|
||||
Links: '' as Ref<Space>
|
||||
},
|
||||
component: {
|
||||
GuestApp: '' as AnyComponent
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user