Admin persistence changes (#5086)

This commit is contained in:
Joseph Insalaco 2024-08-16 22:31:57 -04:00 committed by GitHub
parent 090a48515c
commit b111f0921c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 148 additions and 10 deletions

View file

@ -1,4 +1,4 @@
import { LogItem, SortBy, User, UserSortField, WebSocketConnectOptions } from 'types';
import { WarnHistoryItem, BanHistoryItem, LogItem, SortBy, User, UserSortField, WebSocketConnectOptions, WarnListItem } from 'types';
import { NotifyUserData, ServerShutdownData, UserMessageData } from 'websocket/events/session/interfaces';
export interface ServerConnectParams {
@ -58,6 +58,15 @@ export interface ServerState {
}
notifications: NotifyUserData[];
serverShutdown: ServerShutdownData;
banUser: string;
banHistory: {
[userName: string]: BanHistoryItem[];
};
warnHistory: {
[userName: string]: WarnHistoryItem[];
};
warnListOptions: WarnListItem[];
warnUser: string;
}
export interface ServerStateStatus {