import { AppStateMessageType, AppStateValue } from './constants'; import { BaseToClientMessage } from './common'; // Application State Structures export interface AppDetails { projectId: string; version: string; } export interface ServiceStatus { name: string; state: AppStateValue; } export interface AppState { appDetails: AppDetails; services: ServiceStatus[]; } export interface AppStatePayload { appState: AppState[]; } export interface AppStateMessage extends BaseToClientMessage { messageType: AppStateMessageType; payload: AppStatePayload; }