tethys.backend/contracts/enums.ts
Arno Kaimbacher 3ea2e8ca94
All checks were successful
CI Pipeline / japa-tests (push) Successful in 55s
- import all enums for database migrations (check constraints)
- npm updates
2023-09-11 16:10:37 +02:00

113 lines
2.7 KiB
TypeScript

// ./contracts/enums.ts
export enum DatasetTypes {
analysisdata = 'Analysis',
measurementdata = 'Measurements',
monitoring = 'Monitoring',
remotesensing = 'Remote Sensing',
gis = 'GIS',
models = 'Models',
mixedtype = 'Mixed Type',
vocabulary = 'Vocabulary',
}
export enum ServerStates {
deleted = 'deleted',
inprogress = 'inprogress',
published = 'published',
released = 'released',
editor_accepted = 'editor_accepted',
approved = 'approved',
rejected_reviewer = 'rejected_reviewer',
rejected_editor = 'rejected_editor',
reviewed = 'reviewed',
}
// for table dataset_titles
export enum TitleTypes {
Main = 'Main',
Sub = 'Sub',
Alternative = 'Alternative',
Translated = 'Translated',
Other = 'Other',
}
// for table dataset_abstracts
export enum DescriptionTypes {
Abstract = 'Abstract',
Methods = 'Methods',
Series_information = 'Series_information',
Technical_info = 'Technical_info',
Translated = 'Translated',
Other = 'Other',
}
export enum PersonNameTypes {
Organizational = 'Organizational',
Personal = 'Personal',
}
export enum PersonRoles {
author = 'author',
contributor = 'contributor',
other = 'other',
}
export enum ContributorTypes {
contact_person = 'ContactPerson',
data_collector = 'DataCollector',
data_curator = 'DataCurator',
data_manager = 'DataManager',
Distributor = 'Distributor',
editor = 'Editor',
hosting_institution = 'HostingInstitution',
producer = 'Producer',
poroject_leader = 'ProjectLeader',
project_manager = 'ProjectManager',
project_member = 'ProjectMember',
registration_agency = 'RegistrationAgency',
registration_authority = 'RegistrationAuthority',
related_person = 'RelatedPerson',
researcher = 'Researcher',
research_group = 'ResearchGroup',
rights_holder = 'RightsHolder',
sponsor = 'Sponsor',
supervisor = 'Supervisor',
work_package_leader = 'WorkPackageLeader',
other = 'Other',
}
export enum SubjectTypes {
uncontrolled = 'uncontrolled',
}
export enum ReferenceIdentifierTypes {
DOI = 'DOI',
Handle = 'Handle',
ISBN = 'ISBN',
ISSN = 'ISSN',
URL = 'URL',
URN = 'URN',
}
export enum RelationTypes {
IsSupplementTo = 'IsSupplementTo',
IsSupplementedBy = 'IsSupplementedBy',
IsContinuedBy = 'IsContinuedBy',
Continues = 'Continues',
IsNewVersionOf = 'IsNewVersionOf',
IsPartOf = 'IsPartOf',
HasPart = 'HasPart',
Compiles = 'Compiles',
IsVariantFormOf = 'IsVariantFormOf',
}
export enum IdentifierTypes {
doi = 'doi',
handle = 'handle',
isbn = 'isbn',
issn = 'issn',
url = 'url',
urn = 'urn',
}