2018-10-30 09:35:47 -07:00
|
|
|
// backend
|
|
|
|
export interface SocialMedia {
|
|
|
|
socialMediaLink: string;
|
|
|
|
}
|
|
|
|
export interface Milestone {
|
|
|
|
content: string;
|
|
|
|
dateCreated: string;
|
|
|
|
dateEstimated: string;
|
|
|
|
immediatePayout: boolean;
|
|
|
|
payoutPercent: string;
|
|
|
|
stage: string;
|
|
|
|
title: string;
|
|
|
|
}
|
|
|
|
export interface Proposal {
|
2018-11-09 10:48:55 -08:00
|
|
|
proposalId: number;
|
|
|
|
proposalAddress: string;
|
2018-10-30 09:35:47 -07:00
|
|
|
dateCreated: number;
|
|
|
|
title: string;
|
2018-11-14 09:59:48 -08:00
|
|
|
content: string;
|
2018-10-30 09:35:47 -07:00
|
|
|
stage: string;
|
|
|
|
category: string;
|
|
|
|
milestones: Milestone[];
|
|
|
|
team: User[];
|
|
|
|
comments: Comment[];
|
|
|
|
contractStatus: string;
|
|
|
|
}
|
|
|
|
export interface Comment {
|
|
|
|
commentId: string;
|
|
|
|
dateCreated: string;
|
|
|
|
content: string;
|
|
|
|
}
|
|
|
|
export interface User {
|
|
|
|
accountAddress: string;
|
|
|
|
avatar: null | { imageUrl: string };
|
|
|
|
displayName: string;
|
|
|
|
emailAddress: string;
|
|
|
|
socialMedias: SocialMedia[];
|
|
|
|
title: string;
|
|
|
|
userid: number;
|
|
|
|
proposals: Proposal[];
|
|
|
|
comments: Comment[];
|
|
|
|
}
|