32 lines
882 B
TypeScript
32 lines
882 B
TypeScript
export interface EntityReference {
|
|
id: string;
|
|
type: string;
|
|
entityRuleId: string;
|
|
page: number;
|
|
displayValue?: string;
|
|
}
|
|
|
|
export interface IComponentValue {
|
|
value: string;
|
|
originalValue: string;
|
|
valueDescription: string;
|
|
componentRuleId: string;
|
|
entityReferences: EntityReference[];
|
|
}
|
|
|
|
export class ComponentValue implements IComponentValue {
|
|
readonly value: string;
|
|
readonly originalValue: string;
|
|
readonly valueDescription: string;
|
|
readonly componentRuleId: string;
|
|
readonly entityReferences: EntityReference[];
|
|
|
|
constructor(value: IComponentValue) {
|
|
this.value = value.value;
|
|
this.originalValue = value.originalValue;
|
|
this.valueDescription = value.valueDescription;
|
|
this.componentRuleId = value.componentRuleId;
|
|
this.entityReferences = value.entityReferences ?? [];
|
|
}
|
|
}
|