import { Channels } from "../Common/index"; import { UserInfo } from "../Users/UserTrii"; export interface Post { id: string; spaceId: string; externalId: string; title: string; details: string; imageUrl: string; photos: string[]; videos: string[]; reactions: string[]; channelInfo: Channels.IChannelInfo; newMessagesCount: number; postUrl?: string; counters: PostStats; participants: UserInfo[]; archived: boolean; createdAt: Date; updatedAt: Date; } export interface PostStats { likes: number; comments: number; } export interface WallMessage { id: string; spaceId: string; postId: string; parentId: string; readed: boolean; externalUserSender?: ExternalUserInfo; contactId?: string; contactAddressId?: string; userSender?: string; message?: string; imageUrl?: string; videoUrl?: string; reactions?: WallReaction; responses?: WallMessage[]; createdAt: Date; updatedAt: Date; } export interface WallReaction { like: number; likeUsers: ExternalUserInfo[]; love: number; loveUsers: ExternalUserInfo[]; haha: number; hahaUsers: ExternalUserInfo[]; wow: number; wowUsers: ExternalUserInfo[]; sad: number; sadUsers: ExternalUserInfo[]; angry: number; angryUsers: ExternalUserInfo[]; } export interface Response { id: string; external_parent_id: string; externalUserSender?: ExternalUserInfo; userSender?: UserInfo; message: string; response?: Response[]; createdAt: Date; updatedAt: Date; } export interface ExternalUserInfo { id: string; name: string; imageUrl: string; }