rename External Reference to Reference
This commit is contained in:
parent
bbb21fadba
commit
5a55e5d739
|
@ -0,0 +1,4 @@
|
||||||
|
export enum SourceType {
|
||||||
|
Internal = 0,
|
||||||
|
External = 1
|
||||||
|
}
|
|
@ -1,3 +1,32 @@
|
||||||
|
import { ExternalReferencesType } from "@app/core/common/enum/external-references-type";
|
||||||
|
import { IsActive } from "@app/core/common/enum/is-active.enum";
|
||||||
|
import { SourceType } from "@app/core/common/enum/source-type";
|
||||||
|
import { UUID } from "crypto";
|
||||||
|
import { DmpBlueprint } from "../dmp-blueprint/dmp-blueprint";
|
||||||
|
|
||||||
|
export interface Reference {
|
||||||
|
id: UUID;
|
||||||
|
label: string;
|
||||||
|
type: ExternalReferencesType;
|
||||||
|
description: string;
|
||||||
|
definition: string;
|
||||||
|
reference: string;
|
||||||
|
abbreviation: string;
|
||||||
|
source: string;
|
||||||
|
sourceType: SourceType;
|
||||||
|
isActive: IsActive;
|
||||||
|
createdAt: Date;
|
||||||
|
updatedAt: Date;
|
||||||
|
dmpExternalReferences: DmpReference[];
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DmpReference {
|
||||||
|
id: UUID;
|
||||||
|
dmpBlueprint: DmpBlueprint;
|
||||||
|
externalReference: Reference;
|
||||||
|
data: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FetcherExternalReference {
|
export interface FetcherExternalReference {
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|
Loading…
Reference in New Issue