Skip to content

Commit

Permalink
use new api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abeglova committed Feb 6, 2024
1 parent f305388 commit 45d6ca8
Show file tree
Hide file tree
Showing 10 changed files with 654 additions and 2,621 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
},
"homepage": "https://github.com/mitodl/course-search-utils#readme",
"dependencies": {
"bodybuilder": "^2.5.0",
"query-string": "^6.13.1",
"ramda": "^0.27.1"
},
Expand Down
32 changes: 12 additions & 20 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,20 @@ export enum LearningResourceType {
Profile = "profile"
}

export const LR_TYPE_ALL = [
LearningResourceType.Course,
LearningResourceType.Program,
LearningResourceType.Userlist,
LearningResourceType.LearningPath,
LearningResourceType.Video,
LearningResourceType.Podcast,
LearningResourceType.PodcastEpisode
]

export const INITIAL_FACET_STATE: Facets = {
audience: [],
certification: [],
offered_by: [],
topics: [],
type: [],
department_name: [],
level: [],
course_feature_tags: [],
resource_type: []
platform: [],
offered_by: [],
topic: [],
department: [],
level: [],
course_feature: [],
resource_type: [],
content_feature_type: []
}

export const LEARNING_RESOURCE_ENDPOINT = "resource"
export const CONTENT_FILE_ENDPOINT = "content_file"

export const COURSENUM_SORT_FIELD = "department_course_numbers.sort_coursenum"

export type Level = "Graduate" | "Undergraduate" | null

Loading

0 comments on commit 45d6ca8

Please sign in to comment.