Skip to content

Commit

Permalink
Added configs and types for mp projects fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
this-Aditya committed Aug 21, 2024
1 parent 1ae9911 commit 716f90f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/github-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ export const REMOTE_DEFINITIONS_CONFIG = {
ELIGIBILITY_DEFINITION_FILE_NAME_CONTENT: 'eligibility',
STUDY_INFO_DEFINITION_FILE_NAME_CONTENT: 'study_info'
}

export const MP_CONFIG = {
BASE_URL: process.env.MP_CONFIG_BASE_URL || 'http://127.0.1.1:8080/managementportal/api',
PROJECTS_ENDPOINT: process.env.MP_PROJECTS_ENDPOINT || 'public/projects',
}
13 changes: 13 additions & 0 deletions utils/structures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,16 @@ export type Definition = {
matrix_ranking: string;
field_annotation: string;
};

export type Project = {
projectName?: string;
description?: string;
sourceTypes: SourceType[];
}

export type SourceType = {
id: number;
model?: string;
producer?: string;
catalogVersion?: string;
}

0 comments on commit 716f90f

Please sign in to comment.