MSP-3205 add types

This commit is contained in:
mikheikinnv committed 2024-06-14 13:54:49 +03:00
1 parent f53d57f026
commit 21932d8c4b
3 files changed
+12 -2

No files matched your search

@@ -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
}
@@ -5,5 +5,5 @@ import { JSONSchema } from '@pages/ModulesPage/module.type.ts'
export interface ConfigSchemaModalPropsType
extends Omit<ModalPropsType, 'title' | 'children'> {
schema: JSONSchema
schema?: JSONSchema
}
+9
View File
@@ -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[]