From e9cc8143e86c8dde84032b7d6702726d887d727c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 15 Jun 2022 15:56:00 +0100 Subject: [PATCH] Update types with new properties for new design UI --- packages/types/src/documents/app/app.ts | 27 ++++++++++++++++++++++ packages/types/src/documents/app/screen.ts | 3 +++ 2 files changed, 30 insertions(+) diff --git a/packages/types/src/documents/app/app.ts b/packages/types/src/documents/app/app.ts index fbad9190f5..54edc39ff9 100644 --- a/packages/types/src/documents/app/app.ts +++ b/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 +} diff --git a/packages/types/src/documents/app/screen.ts b/packages/types/src/documents/app/screen.ts index 311c023011..1eead16aa0 100644 --- a/packages/types/src/documents/app/screen.ts +++ b/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 } }