define chat types
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
export interface ChatMessage {
|
||||||
|
dataVersion: "v2";
|
||||||
|
|
||||||
|
channel: string;
|
||||||
|
sender: string;
|
||||||
|
body: string;
|
||||||
|
dateSent: string;
|
||||||
|
|
||||||
|
stringifiedObject?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ChatObject {
|
||||||
|
dataVersion: "v2";
|
||||||
|
|
||||||
|
id: string;
|
||||||
|
title: string;
|
||||||
|
|
||||||
|
contentVersions: { [key: string]: MessageObjectContent };
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MessageObjectContent {
|
||||||
|
dataVersion: "v2";
|
||||||
|
|
||||||
|
id: string;
|
||||||
|
creationDate: string;
|
||||||
|
|
||||||
|
noteText?: string;
|
||||||
|
priority?: number;
|
||||||
|
category?: string;
|
||||||
|
status?: string;
|
||||||
|
date?: string;
|
||||||
|
time?: string;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user