Update types with new properties for new design UI

This commit is contained in:
Andrew Kingston 2022-06-15 15:56:00 +01:00
parent 0b2491a047
commit cccccd19a9
2 changed files with 30 additions and 0 deletions

View File

@ -11,9 +11,36 @@ export interface App extends Document {
instance: AppInstance
tenantId: string
status: string
theme?: string
customTheme?: {
buttonBorderRadius?: string
primaryColor?: string
primaryColorHover?: string
}
revertableVersion?: string
navigation?: AppNavigation
}
export interface AppInstance {
_id: string
}
export interface AppNavigation {
navigation: string
title: string
navWidth: string
sticky?: boolean
hideLogo?: boolean
logoUrl?: string
hideTitle?: boolean
navBackground?: string
navTextColor?: string
links?: AppNavigationLink[]
}
export interface AppNavigationLink {
text: string
url: string
id?: string
roleId?: string
}

View File

@ -2,8 +2,11 @@ import { Document } from "../document"
export interface Screen extends Document {
layoutId: string
showNavigation?: boolean
width?: string
routing: {
route: string
roleId: string
homeScreen?: boolean
}
}