2026-04-23 11:09:06 +08:00
|
|
|
export namespace MmsMapping {
|
|
|
|
|
export interface GetIcdParams {
|
|
|
|
|
icdFile: File
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-06 08:47:39 +08:00
|
|
|
export interface IndexConfirmTarget {
|
|
|
|
|
reportName?: string
|
|
|
|
|
dataSetName?: string
|
|
|
|
|
reportDesc?: string
|
|
|
|
|
availableLnInstValues?: string[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IndexConfirmLabelItem {
|
|
|
|
|
label?: string
|
|
|
|
|
required?: boolean
|
|
|
|
|
configurableOnce?: boolean
|
|
|
|
|
defaultLnInst?: string
|
|
|
|
|
commonLnInstValues?: string[]
|
|
|
|
|
targets?: IndexConfirmTarget[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface IndexConfirmGroup {
|
|
|
|
|
groupKey?: string
|
|
|
|
|
groupDesc?: string
|
|
|
|
|
labelItems?: IndexConfirmLabelItem[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ConfirmedIndexLabelItem {
|
|
|
|
|
label: string
|
|
|
|
|
enabled: boolean
|
|
|
|
|
lnInst: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ConfirmedIndexGroup {
|
|
|
|
|
groupKey: string
|
|
|
|
|
labelItems: ConfirmedIndexLabelItem[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 11:09:06 +08:00
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-06 08:47:39 +08:00
|
|
|
export interface BuildIndexSelectionRequest {
|
|
|
|
|
confirmData: IndexConfirmGroup[]
|
|
|
|
|
confirmedData: ConfirmedIndexGroup[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 11:09:06 +08:00
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
}
|