[#90] added freebusy (#618)

This commit is contained in:
Camille Moussu
2026-03-12 18:07:25 +01:00
committed by GitHub
parent 047cbeef62
commit fd7581a8db
18 changed files with 917 additions and 29 deletions
+15
View File
@@ -0,0 +1,15 @@
export function extractCalendarHrefs(data: unknown): string[] {
try {
const calendars = (
data as {
_embedded: { "dav:calendar": { _links: { self: { href: string } } }[] };
}
)._embedded["dav:calendar"];
return Array.isArray(calendars)
? calendars.map((cal) => cal?._links?.self?.href ?? "").filter(Boolean)
: [];
} catch {
return [];
}
}