Add initial Todo items and CalDAV sync
This commit is contained in:
Vendored
+54
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user