2024-02-26 18:40:31 +01:00
|
|
|
import { BaseEntity, BaseEntityPersist } from "@common/base/base-entity.model";
|
|
|
|
import { ExternalFetcherBaseSourceConfiguration, ExternalFetcherBaseSourceConfigurationPersist} from "../external-fetcher/external-fetcher";
|
|
|
|
|
|
|
|
export interface PrefillingSource extends BaseEntity{
|
|
|
|
label: string;
|
|
|
|
definition: PrefillingSourceDefinition;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface PrefillingSourceDefinition{
|
|
|
|
fields: PrefillingSourceDefinitionField[];
|
2024-02-29 14:18:55 +01:00
|
|
|
fixedValueFields: PrefillingSourceDefinitionFixedValueField[];
|
2024-02-26 18:40:31 +01:00
|
|
|
searchConfiguration: ExternalFetcherBaseSourceConfiguration;
|
|
|
|
getConfiguration: ExternalFetcherBaseSourceConfiguration;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface PrefillingSourceDefinitionField {
|
|
|
|
code: string;
|
|
|
|
systemFieldTarget: string;
|
|
|
|
semanticTarget: string;
|
|
|
|
trimRegex: string;
|
2024-02-29 14:18:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface PrefillingSourceDefinitionFixedValueField {
|
|
|
|
systemFieldTarget: string;
|
|
|
|
semanticTarget: string;
|
|
|
|
trimRegex: string;
|
2024-02-26 18:40:31 +01:00
|
|
|
fixedValue: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Persist
|
|
|
|
|
|
|
|
export interface PrefillingSourcePersist extends BaseEntityPersist{
|
|
|
|
label: string;
|
|
|
|
definition: PrefillingSourceDefinitionPersist;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface PrefillingSourceDefinitionPersist{
|
|
|
|
fields: PrefillingSourceDefinitionFieldPersist[];
|
2024-02-29 14:18:55 +01:00
|
|
|
fixedValueFields: PrefillingSourceDefinitionFixedValueFieldPersist[];
|
2024-02-26 18:40:31 +01:00
|
|
|
searchConfiguration: ExternalFetcherBaseSourceConfigurationPersist;
|
|
|
|
getConfiguration: ExternalFetcherBaseSourceConfigurationPersist;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface PrefillingSourceDefinitionFieldPersist {
|
|
|
|
code: string;
|
|
|
|
systemFieldTarget: string;
|
|
|
|
semanticTarget: string;
|
|
|
|
trimRegex: string;
|
|
|
|
}
|
|
|
|
|
2024-02-29 14:18:55 +01:00
|
|
|
export interface PrefillingSourceDefinitionFixedValueFieldPersist {
|
|
|
|
systemFieldTarget: string;
|
|
|
|
semanticTarget: string;
|
|
|
|
trimRegex: string;
|
|
|
|
fixedValue: string;
|
|
|
|
}
|