@sunbird-cb/cbp-ai 0.1.91 → 0.1.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/components/suggest-more-courses/suggest-more-courses.component.mjs +9 -4
- package/esm2022/lib/components/view-final-cbp-plan/view-final-cbp-plan.component.mjs +6 -6
- package/fesm2022/sunbird-cb-cbp-ai.mjs +13 -8
- package/fesm2022/sunbird-cb-cbp-ai.mjs.map +1 -1
- package/lib/components/suggest-more-courses/suggest-more-courses.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/sunbird-cb-cbp-ai-0.1.93.tgz +0 -0
- package/sunbird-cb-cbp-ai-0.1.91.tgz +0 -0
|
@@ -3016,11 +3016,16 @@ class SuggestMoreCoursesComponent {
|
|
|
3016
3016
|
query: this.searchText?.trim() || '',
|
|
3017
3017
|
limit: this.pageSize,
|
|
3018
3018
|
offset: this.currentPage * this.pageSize,
|
|
3019
|
-
sort_by: {
|
|
3020
|
-
createdOn: 'desc'
|
|
3021
|
-
}
|
|
3022
3019
|
}
|
|
3023
3020
|
};
|
|
3021
|
+
if (!this.searchText) {
|
|
3022
|
+
reqBody['request']['sort_by'] = {
|
|
3023
|
+
createdOn: 'desc'
|
|
3024
|
+
};
|
|
3025
|
+
}
|
|
3026
|
+
else {
|
|
3027
|
+
reqBody['request']['sort_by'] = {};
|
|
3028
|
+
}
|
|
3024
3029
|
console.log('API FILTER PAYLOAD', JSON.stringify(reqBody, null, 2));
|
|
3025
3030
|
this.sharedService.getIGOTSuggestedCourses(reqBody).subscribe({
|
|
3026
3031
|
next: (res) => {
|
|
@@ -12939,12 +12944,12 @@ class ViewFinalCbpPlanComponent {
|
|
|
12939
12944
|
const competencies = (c.competencies || [])
|
|
12940
12945
|
.map((cc) => `${cc.competencyAreaName} → ${cc.competencyThemeName} → ${cc.competencySubThemeName}`)
|
|
12941
12946
|
.join(" | ");
|
|
12942
|
-
return (`${i + 1}. Course Name: ${c
|
|
12943
|
-
` Identifier: ${c
|
|
12947
|
+
return (`${i + 1}. Course Name: ${c?.course}\n` +
|
|
12948
|
+
` Identifier: ${c?.identifier}\n` +
|
|
12944
12949
|
` Duration (mins): ${Math.round(+c.duration / 60)}\n` +
|
|
12945
|
-
` Relevancy: ${c
|
|
12946
|
-
` Rationale: ${c
|
|
12947
|
-
` Organisation: ${(c
|
|
12950
|
+
` Relevancy: ${c?.relevancy}%\n` +
|
|
12951
|
+
` Rationale: ${c?.rationale}\n` +
|
|
12952
|
+
` Organisation: ${(c?.organisation || []).join(", ")}\n` +
|
|
12948
12953
|
` Competencies: ${competencies}`);
|
|
12949
12954
|
}).join("\n\n");
|
|
12950
12955
|
return {
|