add attachment

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-08-28 09:03:32 +02:00
parent 84312ab09b
commit 64539d6aa7
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -45,6 +45,16 @@ export interface Backlink extends Comment {
backlinkClass: Ref<Class<Doc>>
}
/**
* @public
*/
export interface Attachment extends Doc {
attachmentTo: Ref<Doc>
collection: string
name: string
file: string
}
/**
* @public
*/
@ -59,7 +69,8 @@ export default plugin(chunterId, {
class: {
Message: '' as Ref<Class<Message>>,
Backlink: '' as Ref<Class<Backlink>>,
Comment: '' as Ref<Class<Comment>>
Comment: '' as Ref<Class<Comment>>,
Attachment: '' as Ref<Class<Attachment>>
},
space: {
Backlinks: '' as Ref<Space>