Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-08-14 19:35:07 +07:00
committed by GitHub
parent e92918c6c7
commit 30f255fa7c
18 changed files with 249 additions and 54 deletions
+8 -2
View File
@@ -22,7 +22,10 @@ import { AnyComponent } from '@hcengineering/ui'
/**
* @public
*/
export interface Calendar extends Space {}
export interface Calendar extends Space {
visibility: 'public' | 'freeBusy' | 'private'
sync?: boolean
}
/**
* @public
@@ -58,6 +61,7 @@ export interface ReccuringEvent extends Event {
* @public
*/
export interface Event extends AttachedDoc {
space: Ref<Calendar>
eventId: string
title: string
description: Markup
@@ -80,6 +84,8 @@ export interface Event extends AttachedDoc {
reminders?: Timestamp[]
visibility?: 'public' | 'freeBusy' | 'private'
access: 'freeBusyReader' | 'reader' | 'writer' | 'owner'
}
@@ -132,7 +138,7 @@ const calendarPlugin = plugin(calendarId, {
},
space: {
// deprecated
PersonalEvents: '' as Ref<Space>
PersonalEvents: '' as Ref<Calendar>
},
app: {
Calendar: '' as Ref<Doc>