argos/dmp-frontend/src/app/core/model/external-reference/external-reference.ts

45 lines
1.1 KiB
TypeScript

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;
pid: string;
pidTypeField: string;
uri: string;
description: string;
source: string;
count: string;
path: string;
host: string;
types: string;
firstName: string;
lastName: string;
tag: string;
}