2019-01-18 18:03:45 +01:00
|
|
|
import { ValidationType } from "../../../common/enum/validation-type";
|
2021-04-07 18:03:22 +02:00
|
|
|
import { UserInfoListingModel } from "../../user/user-info-listing";
|
2019-01-18 18:03:45 +01:00
|
|
|
|
|
|
|
export interface DatasetProfile {
|
|
|
|
label: string;
|
|
|
|
sections: Section[];
|
|
|
|
pages: Page[];
|
2019-02-11 13:04:45 +01:00
|
|
|
status: number;
|
2019-03-26 15:30:33 +01:00
|
|
|
version: number;
|
2019-07-30 17:30:47 +02:00
|
|
|
description: string;
|
2020-06-03 11:13:31 +02:00
|
|
|
language: string;
|
2021-04-07 18:03:22 +02:00
|
|
|
users: UserInfoListingModel[];
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface Page {
|
|
|
|
id: string;
|
|
|
|
ordinal: number;
|
|
|
|
title: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Section {
|
|
|
|
sections: Section[];
|
|
|
|
fieldSets: FieldSet[];
|
|
|
|
defaultVisibility: boolean;
|
|
|
|
page: string;
|
|
|
|
ordinal: number;
|
|
|
|
id: string;
|
|
|
|
title: string;
|
|
|
|
description: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FieldSet {
|
|
|
|
id: string;
|
|
|
|
ordinal: number;
|
|
|
|
multiplicity: Multiplicity;
|
|
|
|
title: string;
|
|
|
|
description: string;
|
|
|
|
extendedDescription: string;
|
2019-03-07 11:04:54 +01:00
|
|
|
additionalInformation:string;
|
2019-01-18 18:03:45 +01:00
|
|
|
hasCommentField: boolean;
|
|
|
|
fields: Field[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Multiplicity {
|
|
|
|
min: number;
|
|
|
|
max: number;
|
2021-12-15 15:26:06 +01:00
|
|
|
placeholder: string;
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface Field {
|
|
|
|
id: string;
|
|
|
|
ordinal: number;
|
|
|
|
value: string;
|
|
|
|
viewStyle: ViewStyle;
|
|
|
|
datatype: string;
|
|
|
|
page: number;
|
|
|
|
defaultValue: DefaultValue;
|
|
|
|
data: any;
|
|
|
|
visible: Visibility;
|
|
|
|
validations: ValidationType[];
|
2019-10-15 17:29:34 +02:00
|
|
|
rdaCommonStandard: string;
|
2022-06-07 10:00:13 +02:00
|
|
|
export: boolean;
|
2019-01-18 18:03:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ViewStyle {
|
|
|
|
renderStyle: string;
|
|
|
|
cssClass: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface DefaultValue {
|
|
|
|
type: string;
|
|
|
|
value: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface Visibility {
|
|
|
|
rules: Rule[];
|
|
|
|
style: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Rule {
|
|
|
|
ruleType: string;
|
|
|
|
target: string;
|
|
|
|
ruleStyle: string;
|
|
|
|
value: string;
|
|
|
|
valueType: string;
|
|
|
|
}
|