MSP-3205 add types
This commit is contained in:
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
|
||||
}
|
||||
@@ -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[]
|
||||
|
||||
Reference in new issue
Block a user