rename External Reference to Reference

This commit is contained in:
amentis 2023-10-26 12:08:45 +03:00
parent bbb21fadba
commit 5a55e5d739
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,4 @@
export enum SourceType {
Internal = 0,
External = 1
}

View File

@ -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;