-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestmodel.ts
More file actions
32 lines (28 loc) · 756 Bytes
/
testmodel.ts
File metadata and controls
32 lines (28 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 16 bytes, base64url encoded, no padding char
export type Id = string;
export interface Event {
/** The name of the event */
name: string,
/** A description of the event */
desc?: string,
/** The dates of the event */
dates?: DateRange[],
/** The users of the event */
users?: User[],
};
export interface User {
/** The name of the user */
name: string,
/** A comment from the user */
comment?: string,
/** The availability dates of the user */
dates?: DateRange[],
};
export interface DateType {
/** The start date of the availability */
from: number,
/** The end date of the availability */
to: number,
/** Whether the user prefers this date */
preferred: boolean,
};