From 5a55e5d739f4a0af2a88d181c1862a522086210f Mon Sep 17 00:00:00 2001 From: amentis Date: Thu, 26 Oct 2023 12:08:45 +0300 Subject: [PATCH] rename External Reference to Reference --- .../src/app/core/common/enum/source-type.ts | 4 +++ .../external-reference/external-reference.ts | 29 +++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 dmp-frontend/src/app/core/common/enum/source-type.ts diff --git a/dmp-frontend/src/app/core/common/enum/source-type.ts b/dmp-frontend/src/app/core/common/enum/source-type.ts new file mode 100644 index 000000000..01a5d866a --- /dev/null +++ b/dmp-frontend/src/app/core/common/enum/source-type.ts @@ -0,0 +1,4 @@ +export enum SourceType { + Internal = 0, + External = 1 +} \ No newline at end of file diff --git a/dmp-frontend/src/app/core/model/external-reference/external-reference.ts b/dmp-frontend/src/app/core/model/external-reference/external-reference.ts index 82d264c65..83007906e 100644 --- a/dmp-frontend/src/app/core/model/external-reference/external-reference.ts +++ b/dmp-frontend/src/app/core/model/external-reference/external-reference.ts @@ -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 { id: string; name: string;