mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +00:00
* feat(vacay): read-only calendar shares on the server (#444, #667) * feat(vacay): shared calendars card and ring overlay on desktop * feat(vacay): share sheet and calendar rings on mobile * test(vacay): cover the calendar share flows * docs(vacay): document read-only calendar sharing
This commit is contained in:
@@ -330,6 +330,31 @@ export interface HolidaysMap {
|
||||
[date: string]: HolidayInfo
|
||||
}
|
||||
|
||||
// Read-only calendar shares (#444/#667)
|
||||
export interface VacayShareOutgoing {
|
||||
id: number
|
||||
user_id: number
|
||||
username: string
|
||||
}
|
||||
|
||||
export interface VacayShareIncoming {
|
||||
id: number
|
||||
owner_id: number
|
||||
username: string
|
||||
color: string
|
||||
hidden: boolean
|
||||
}
|
||||
|
||||
export interface SharedVacayCalendar {
|
||||
share_id: number
|
||||
owner_id: number
|
||||
owner_name: string
|
||||
color: string
|
||||
hidden: boolean
|
||||
entries: { date: string; fraction?: number }[]
|
||||
companyHolidays: { date: string; note?: string }[]
|
||||
}
|
||||
|
||||
// API error shape from axios
|
||||
export interface ApiError {
|
||||
response?: {
|
||||
|
||||
Reference in New Issue
Block a user