Added the ChatData in FolderData
This commit is contained in:
parent
dd5e55f089
commit
78151850e8
@ -1,5 +1,27 @@
|
|||||||
import type { RoleDefinition } from "./Roles";
|
import type { RoleDefinition } from "./Roles";
|
||||||
|
|
||||||
|
export interface FolderChatAttachment {
|
||||||
|
ext: string;
|
||||||
|
file_name: string;
|
||||||
|
title?: string;
|
||||||
|
type?: string;
|
||||||
|
category?: string;
|
||||||
|
base64: string;
|
||||||
|
note?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface FolderChatData {
|
||||||
|
timestamp: number;
|
||||||
|
sender: string;
|
||||||
|
receiver: string;
|
||||||
|
fromRole: string
|
||||||
|
toRole: string
|
||||||
|
ia?: boolean;
|
||||||
|
title?: string;
|
||||||
|
message: string;
|
||||||
|
data?: FolderChatAttachment[];
|
||||||
|
}
|
||||||
|
|
||||||
export interface FolderData {
|
export interface FolderData {
|
||||||
folderNumber: string;
|
folderNumber: string;
|
||||||
name: string;
|
name: string;
|
||||||
@ -7,8 +29,8 @@ export interface FolderData {
|
|||||||
created_at: string;
|
created_at: string;
|
||||||
updated_at: string;
|
updated_at: string;
|
||||||
notes: string[];
|
notes: string[];
|
||||||
messages: string[];
|
messages: FolderChatData[];
|
||||||
messages_owner: string[];
|
messages_owner: FolderChatData[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isFolderData(data: any): data is FolderData {
|
export function isFolderData(data: any): data is FolderData {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user