import {Id} from '../shared'; export type ComponentType = 'view' | 'service' | 'action'; export interface Component { [_: string]: any; id: Id; type: ComponentType; subType: string; name: string; title: string; description: string; author: Id; universe: Id; public: boolean; listed: boolean; profile: Id; } export interface ViewComponent extends Component { model: Id | null; list: boolean; } export interface WebView extends ViewComponent { tag: string; } export interface FlexView extends ViewComponent { definition: string; } export interface VyzeApp { [_: string]: any; id: Id; name: string; title: string; path: string; icon: Id; description: string; author: Id; universe: Id; public: boolean; } export interface AppRoute { [_: string]: any; id: Id; route: string; app: Id; view: Id; }