export namespace MmsMapping { export interface GetIcdParams { icdFile: File } 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[] } 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 GetXmlFromJsonRequestPayload { mappingJson: string } export interface GetXmlFromJsonParams { request: GetXmlFromJsonRequestPayload } export interface BuildIndexSelectionRequest { confirmData: IndexConfirmGroup[] confirmedData: ConfirmedIndexGroup[] } export interface XmlFileResponse { fileName?: string contentType?: string encoding?: string content?: string } export interface IcdDocument { [key: string]: unknown } export interface MappingDocument { [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 methodDescribe?: string icdDocument?: IcdDocument mappingDocument?: MappingDocument mappingJson?: string mappingXml?: string xmlContent?: string xmlText?: string xmlFile?: XmlFileResponse savedPath?: string indexCandidates?: IndexCandidateGroup[] problems?: string[] } export interface BaseRequestForm { version: string author: string } }