undo button - not functional yet but gives a good idea of what will happen

This commit is contained in:
Andrew Gundersen 2021-03-31 08:41:13 -05:00
commit f89c9944e7
13 changed files with 137 additions and 18 deletions

74
src/types.ts Normal file
View file

@ -0,0 +1,74 @@
export interface RenderMessage {
content: {
text: boolean | string;
audio: boolean | string;
};
context: string;
modifier: string;
time: number;
uid: string;
isChild: string;
seen: boolean;
newMessage: boolean;
}
export interface ClientMessage {
text: string;
audio: boolean | string;
uid: string;
}
export interface ClientRequest {
intent: string,
params: object,
epic: string | boolean,
confidence: number
}
export interface SessionState {
key: string | boolean;
newMessages: RenderMessage[];
}
export interface WindowState {
width: number;
height: number;
x: number | null;
y: number | null;
}
export interface AuthRequest {
key: boolean | string;
usr: boolean | string;
pwd: boolean | string;
}
export interface Profile {
crimataId: string;
alias: string;
initials: string;
}
export interface AuthProtocol {
key: boolean | string;
profile: boolean | Profile;
}
export interface LogoutRequest {
logout: boolean;
}
export interface Annotation {
text: string;
context: string;
uid: string;
}
export interface StandardMessage {
content: {
text: boolean | string;
audio: boolean | string;
};
context: string;
modifier: string;
}