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