diff --git a/src/components/ActiveConfigurationsTable/active-configurations-table.type.ts b/src/components/ActiveConfigurationsTable/active-configurations-table.type.ts index bc6fd95..5669166 100644 --- a/src/components/ActiveConfigurationsTable/active-configurations-table.type.ts +++ b/src/components/ActiveConfigurationsTable/active-configurations-table.type.ts @@ -1,8 +1,9 @@ -import { ConfigType } from '@pages/ModulesPage/module.type.ts' +import { ConfigType, ModuleType } from '@pages/ModulesPage/module.type.ts' export interface ActiveConfigurationsTablePropsType { isActiveTable?: boolean data: ConfigType[] handleShowConfig: (config: ConfigType) => void handleShowCompareModal: (config: ConfigType) => void + currentModule?: ModuleType } diff --git a/src/components/ConfigSchemaModal/config-schema-moda.type.ts b/src/components/ConfigSchemaModal/config-schema-moda.type.ts index 3ba81f4..9d73e0e 100644 --- a/src/components/ConfigSchemaModal/config-schema-moda.type.ts +++ b/src/components/ConfigSchemaModal/config-schema-moda.type.ts @@ -5,5 +5,5 @@ import { JSONSchema } from '@pages/ModulesPage/module.type.ts' export interface ConfigSchemaModalPropsType extends Omit { - schema: JSONSchema + schema?: JSONSchema } diff --git a/src/pages/ModulesPage/module.type.ts b/src/pages/ModulesPage/module.type.ts index 5251ea9..155e4eb 100644 --- a/src/pages/ModulesPage/module.type.ts +++ b/src/pages/ModulesPage/module.type.ts @@ -36,6 +36,7 @@ export interface ConfigType { updatedAt: string valid: boolean version: number + unsafe?: boolean } export interface JSONSchema { @@ -88,6 +89,14 @@ export interface ModuleType { configSchema: JSONSchema } +export interface ResponseSchemaType { + createdAt: string, + id: string, + moduleId: string, + schema: JSONSchema, + updatedAt: string, + version: string +} export interface ConfigResponse { originalResponse: ConfigType[] activeConfigs: ConfigType[]