Add initial Todo items and CalDAV sync

This commit is contained in:
2025-12-02 17:32:52 +01:00
parent 2e440edc61
commit a4466a9d2c
18 changed files with 1112 additions and 114 deletions
+54
View File
@@ -165,6 +165,60 @@ export function newCustomer(): Customer {
}
}
export interface TodoType {
id: number;
name: string;
}
export function newTodoType(): TodoType {
return {
id: 0,
name: ''
}
}
export interface Todo {
id: string;
etag: string | null;
title: string;
description: string | null;
typeId: number | null;
type?: TodoType | null;
url: string | null;
dueDate: Date | null;
recurring: boolean;
priority: number;
status: string;
createdAt: Date;
lastModified: Date;
parent: string | null;
parentTodo?: Todo | null;
children?: Todo[];
object: string | null;
}
export function newTodo(): Todo {
return {
id: '',
etag: null,
title: '',
description: null,
typeId: null,
type: null,
url: null,
dueDate: null,
recurring: false,
priority: 1,
status: 'pending',
createdAt: new Date(),
lastModified: new Date(),
parent: null,
parentTodo: null,
children: [],
object: null
}
}
export type PaymentStatus = 'draft' | 'issued' | 'paid' | 'due' | 'reminded' | 'cancelled'
export interface Invoice {