69 lines
1.6 KiB
TypeScript
69 lines
1.6 KiB
TypeScript
export namespace MmsMapping {
|
|
export interface GetIcdParams {
|
|
icdFile: File
|
|
}
|
|
|
|
export interface IndexSelectionBinding {
|
|
reportName: string
|
|
dataSetName: string
|
|
label: string
|
|
lnInst: string
|
|
}
|
|
|
|
export interface IndexSelectionGroup {
|
|
groupKey: string
|
|
groupDesc?: string
|
|
bindings: IndexSelectionBinding[]
|
|
}
|
|
|
|
export interface GetIcdMmsJsonRequestPayload {
|
|
version: string
|
|
author: string
|
|
saveToDisk: boolean
|
|
prettyJson: boolean
|
|
outputDir: string
|
|
indexSelection: IndexSelectionGroup[]
|
|
}
|
|
|
|
export interface GetIcdMmsJsonParams {
|
|
icdFile: File
|
|
request: GetIcdMmsJsonRequestPayload
|
|
}
|
|
|
|
export interface IcdDocument {
|
|
[key: string]: unknown
|
|
}
|
|
|
|
export interface IndexCandidateReport {
|
|
reportName?: string
|
|
dataSetName?: string
|
|
reportDesc?: string
|
|
availableLnInstValues?: string[]
|
|
}
|
|
|
|
export interface IndexCandidateGroup {
|
|
groupKey?: string
|
|
groupDesc?: string
|
|
reportCount?: number
|
|
templateLabels?: string[]
|
|
reports?: IndexCandidateReport[]
|
|
}
|
|
|
|
export type MappingTaskStatus = 'SUCCESS' | 'NEED_INDEX_SELECTION' | 'FAILED' | (string & {})
|
|
|
|
export interface MappingTaskResponse {
|
|
status?: MappingTaskStatus
|
|
message?: string
|
|
icdDocument?: IcdDocument
|
|
mappingJson?: string
|
|
savedPath?: string
|
|
indexCandidates?: IndexCandidateGroup[]
|
|
problems?: string[]
|
|
}
|
|
|
|
export interface BaseRequestForm {
|
|
version: string
|
|
author: string
|
|
}
|
|
}
|