Browse Source

Update types with new properties for new design UI

master
Andrew Kingston 4 years ago
parent
commit
e9cc8143e8
  1. 27
      packages/types/src/documents/app/app.ts
  2. 3
      packages/types/src/documents/app/screen.ts

27
packages/types/src/documents/app/app.ts

@ -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
}

3
packages/types/src/documents/app/screen.ts

@ -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
}
}

Loading…
Cancel
Save