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-08 09:54:52 +08:00
|
|
|
export interface GetXmlFromJsonRequestPayload {
|
|
|
|
|
mappingJson: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface GetXmlFromJsonParams {
|
|
|
|
|
request: GetXmlFromJsonRequestPayload
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-06 08:47:39 +08:00
|
|
|
export interface BuildIndexSelectionRequest {
|
|
|
|
|
confirmData: IndexConfirmGroup[]
|
|
|
|
|
confirmedData: ConfirmedIndexGroup[]
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-08 09:54:52 +08:00
|
|
|
export interface XmlFileResponse {
|
|
|
|
|
fileName?: string
|
|
|
|
|
contentType?: string
|
|
|
|
|
encoding?: string
|
|
|
|
|
content?: string
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 11:09:06 +08:00
|
|
|
export interface IcdDocument {
|
|
|
|
|
[key: string]: unknown
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-08 09:54:52 +08:00
|
|
|
export interface MappingDocument {
|
|
|
|
|
[key: string]: unknown
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 11:09:06 +08:00
|
|
|
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
|
2026-05-08 09:54:52 +08:00
|
|
|
methodDescribe?: string
|
2026-04-23 11:09:06 +08:00
|
|
|
icdDocument?: IcdDocument
|
2026-05-08 09:54:52 +08:00
|
|
|
mappingDocument?: MappingDocument
|
2026-04-23 11:09:06 +08:00
|
|
|
mappingJson?: string
|
2026-05-08 09:54:52 +08:00
|
|
|
mappingXml?: string
|
|
|
|
|
xmlContent?: string
|
|
|
|
|
xmlText?: string
|
|
|
|
|
xmlFile?: XmlFileResponse
|
2026-04-23 11:09:06 +08:00
|
|
|
savedPath?: string
|
|
|
|
|
indexCandidates?: IndexCandidateGroup[]
|
|
|
|
|
problems?: string[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface BaseRequestForm {
|
|
|
|
|
version: string
|
|
|
|
|
author: string
|
|
|
|
|
}
|
2026-06-12 08:44:07 +08:00
|
|
|
|
|
|
|
|
export interface DeviceType {
|
|
|
|
|
id?: string
|
|
|
|
|
name?: string
|
|
|
|
|
icdId?: string
|
|
|
|
|
icdName?: string
|
|
|
|
|
icdPath?: string
|
|
|
|
|
icdResult?: number
|
|
|
|
|
icdMsg?: string
|
|
|
|
|
reportName?: string
|
|
|
|
|
canCheckIcd?: boolean
|
|
|
|
|
canCheckPqdif?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface CreateDeviceTypeRequest {
|
|
|
|
|
name: string
|
|
|
|
|
icdId?: string
|
|
|
|
|
icdName?: string
|
|
|
|
|
icdPath?: string
|
|
|
|
|
reportName?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface SaveIcdCheckResultRequest {
|
|
|
|
|
mappingJson?: string
|
|
|
|
|
xml?: string
|
|
|
|
|
result: number
|
|
|
|
|
msg?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface PqdifCheckPlaceholder {
|
|
|
|
|
status?: string
|
|
|
|
|
message?: string
|
|
|
|
|
}
|
2026-04-23 11:09:06 +08:00
|
|
|
}
|