2019-03-22 21:42:57 -04:00
|
|
|
export enum UserOperation {
|
|
|
|
Login, Register, CreateCommunity
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface User {
|
2019-03-24 23:51:27 -04:00
|
|
|
id: number;
|
2019-03-20 21:22:31 -04:00
|
|
|
username: string;
|
2019-03-22 21:42:57 -04:00
|
|
|
}
|
|
|
|
|
2019-03-24 23:51:27 -04:00
|
|
|
export interface Community {
|
|
|
|
id: number;
|
|
|
|
name: string;
|
|
|
|
published: Date;
|
|
|
|
updated?: Date;
|
|
|
|
}
|
|
|
|
|
2019-03-22 21:42:57 -04:00
|
|
|
export interface LoginForm {
|
|
|
|
username_or_email: string;
|
2019-03-20 21:22:31 -04:00
|
|
|
password: string;
|
|
|
|
}
|
2019-03-22 21:42:57 -04:00
|
|
|
|
2019-03-20 21:22:31 -04:00
|
|
|
export interface RegisterForm {
|
|
|
|
username: string;
|
|
|
|
email?: string;
|
|
|
|
password: string;
|
|
|
|
password_verify: string;
|
|
|
|
}
|
|
|
|
|
2019-03-22 21:42:57 -04:00
|
|
|
export interface CommunityForm {
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface PostForm {
|
|
|
|
name: string;
|
|
|
|
url: string;
|
|
|
|
attributed_to: string;
|
|
|
|
updated?: number
|
2019-03-20 21:22:31 -04:00
|
|
|
}
|