File tree Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Expand file tree Collapse file tree 5 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 37
37
},
38
38
"homepage" : " https://github.com/mitodl/course-search-utils#readme" ,
39
39
"dependencies" : {
40
- "@mitodl/open-api-axios" : " ^2024.6.4 " ,
40
+ "@mitodl/open-api-axios" : " ^2024.7.2 " ,
41
41
"axios" : " ^1.6.7" ,
42
42
"fuse.js" : " ^7.0.0" ,
43
43
"query-string" : " ^6.13.1" ,
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export interface Facets {
55
55
content_feature_type ?: string [ ]
56
56
learning_format ?: string [ ]
57
57
certification_type ?: string [ ]
58
+ resource_category ?: string [ ]
58
59
}
59
60
60
61
export interface BooleanFacets {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ type ResourceSearchRequest =
7
7
v1 . LearningResourcesSearchApiLearningResourcesSearchRetrieveRequest
8
8
type ContentFileSearchRequest =
9
9
v1 . ContentFileSearchApiContentFileSearchRetrieveRequest
10
- type SearchResponse = v1 . LearningResourceSearchResponse
10
+ type SearchResponse = v1 . LearningResourcesSearchResponse
11
11
12
12
type Status = "pending" | "error" | "success"
13
13
Original file line number Diff line number Diff line change 9
9
LearningResourcesSearchRetrieveSortbyEnum : SortByEnum ,
10
10
LearningResourcesSearchRetrieveAggregationsEnum : AggregationsEnum ,
11
11
LearningResourcesSearchRetrieveLearningFormatEnum : LearningFormatEnum ,
12
+ LearningResourcesSearchRetrieveResourceCategoryEnum : ResourceCategoryEnum ,
12
13
CertificationTypeEnum,
13
14
ContentFileSearchRetrieveSortbyEnum,
14
15
ContentFileSearchRetrieveAggregationsEnum
@@ -57,7 +58,8 @@ const resourceSearchValidators: QueryParamValidators<ResourceSearchRequest> = {
57
58
id : numbers ,
58
59
free : firstBoolean ,
59
60
learning_format : withinEnum ( Object . values ( LearningFormatEnum ) ) ,
60
- certification_type : withinEnum ( Object . values ( CertificationTypeEnum ) )
61
+ certification_type : withinEnum ( Object . values ( CertificationTypeEnum ) ) ,
62
+ resource_category : withinEnum ( Object . values ( ResourceCategoryEnum ) )
61
63
}
62
64
63
65
const contentSearchValidators : QueryParamValidators < ContentFileSearchRequest > =
Original file line number Diff line number Diff line change 762
762
dependencies :
763
763
make-plural "^7.0.0"
764
764
765
- " @mitodl/open-api-axios@^2024.6.4 " :
766
- version "2024.6.4 "
767
- resolved "https://registry.yarnpkg.com/@mitodl/open-api-axios/-/open-api-axios-2024.6.4 .tgz#e906b764b115665858570f4bbf04bc065a2eeb4f "
768
- integrity sha512-oJ3AwyDTrHOQXairhtqHyBHb9CzIf7En2gV7y6BANDKXhYGXKOVvxqWtvV+1jsCzgGWT6A2nBXYsKuVIGoAP6w ==
765
+ " @mitodl/open-api-axios@^2024.7.2 " :
766
+ version "2024.7.2 "
767
+ resolved "https://registry.yarnpkg.com/@mitodl/open-api-axios/-/open-api-axios-2024.7.2 .tgz#7d33927e55b0ac8be7971e9f96455329e2778b20 "
768
+ integrity sha512-x4NyMEjxjNZ3ppqq9gNO4oI83ZuoAJaCdwVQw2kBWC6RZgV7vcPdqlXIkKg1JtaY9ubqQxlQ82BtmlrFhTuIyQ ==
769
769
dependencies :
770
770
" @types/node" " ^20.11.19"
771
771
axios "^1.6.5"
You can’t perform that action at this time.
0 commit comments