[ABANDONED] React/Redux front end for the Flexor social network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
664 B

export enum EntityType {
User = 'users',
Group = 'groups',
}
export enum GroupMembershipType {
Admin = 'admin',
Moderator = 'moderator',
Member = 'member',
}
export interface Entity {
[key: string]: string | number | boolean | object | any[]
id: string
created: number
}
export type Group = Entity & {
name: string
membership?: GroupMembershipType
}
export type User = Entity & {
name: string
group?: Group
about?: string
imageUrl?: string
coverImageUrl?: string
}
export interface EntityCollection {
[id: string]: Entity
}
export interface EntityStore {
[type: string]: EntityCollection
}