@sunbird-cb/utils-v2 0.0.4 → 0.0.6
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/bundles/sunbird-cb-utils-v2.umd.js +10 -1
- package/bundles/sunbird-cb-utils-v2.umd.js.map +1 -1
- package/bundles/sunbird-cb-utils-v2.umd.min.js +1 -1
- package/bundles/sunbird-cb-utils-v2.umd.min.js.map +1 -1
- package/esm2015/lib/services/configurations.model.js +2 -1
- package/esm2015/lib/services/widget-content.service.js +11 -3
- package/esm5/lib/services/configurations.model.js +2 -1
- package/esm5/lib/services/widget-content.service.js +11 -3
- package/fesm2015/sunbird-cb-utils-v2.js +10 -1
- package/fesm2015/sunbird-cb-utils-v2.js.map +1 -1
- package/fesm5/sunbird-cb-utils-v2.js +10 -1
- package/fesm5/sunbird-cb-utils-v2.js.map +1 -1
- package/lib/services/configurations.model.d.ts +1 -0
- package/lib/services/widget-content.service.d.ts +2 -0
- package/package.json +1 -1
- package/sunbird-cb-utils-v2.metadata.json +1 -1
|
@@ -4764,6 +4764,7 @@
|
|
|
4764
4764
|
IConfig.prototype.positions;
|
|
4765
4765
|
IConfig.prototype.websitelanguages;
|
|
4766
4766
|
IConfig.prototype.profileTimelyNudges;
|
|
4767
|
+
IConfig.prototype.npsCategory;
|
|
4767
4768
|
}
|
|
4768
4769
|
function IPortalUrls() { }
|
|
4769
4770
|
NsInstanceConfig.IPortalUrls = IPortalUrls;
|
|
@@ -5648,7 +5649,7 @@
|
|
|
5648
5649
|
var PROTECTED_SLAG_V8 = '/apis/protected/v8';
|
|
5649
5650
|
var ɵ0 = function (type, id) {
|
|
5650
5651
|
return PROTECTED_SLAG_V8 + "/content/collection/" + type + "/" + id;
|
|
5651
|
-
}, ɵ1 = function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; };
|
|
5652
|
+
}, ɵ1 = function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; }, ɵ2 = function (contentId) { return "/apis/proxies/v8/cios-enroll/v1/readby/useridcourseid/" + contentId; };
|
|
5652
5653
|
var API_END_POINTS = {
|
|
5653
5654
|
CONTENT: PROTECTED_SLAG_V8 + "/content",
|
|
5654
5655
|
AUTHORING_CONTENT: "/apis/authApi/hierarchy",
|
|
@@ -5667,6 +5668,8 @@
|
|
|
5667
5668
|
COLLECTION_HIERARCHY: (ɵ0),
|
|
5668
5669
|
REGISTRATION_STATUS: PROTECTED_SLAG_V8 + "/admin/userRegistration/checkUserRegistrationContent",
|
|
5669
5670
|
MARK_AS_COMPLETE_META: (ɵ1),
|
|
5671
|
+
EXT_USER_COURSE_ENROLL: (ɵ2),
|
|
5672
|
+
EXT_CONTENT_EROLL: "/apis/proxies/v8/cios-enroll/v1/create",
|
|
5670
5673
|
};
|
|
5671
5674
|
var WidgetContentService = (function () {
|
|
5672
5675
|
function WidgetContentService(http, configSvc) {
|
|
@@ -5830,6 +5833,12 @@
|
|
|
5830
5833
|
WidgetContentService.prototype.fetchConfig = function (url) {
|
|
5831
5834
|
return this.http.get(url);
|
|
5832
5835
|
};
|
|
5836
|
+
WidgetContentService.prototype.fetchExtUserContentEnroll = function (contentId) {
|
|
5837
|
+
return this.http.get(API_END_POINTS.EXT_USER_COURSE_ENROLL(contentId));
|
|
5838
|
+
};
|
|
5839
|
+
WidgetContentService.prototype.extContentEnroll = function (requestBody) {
|
|
5840
|
+
return this.http.post("" + API_END_POINTS.EXT_CONTENT_EROLL, requestBody);
|
|
5841
|
+
};
|
|
5833
5842
|
WidgetContentService.decorators = [
|
|
5834
5843
|
{ type: core.Injectable, args: [{
|
|
5835
5844
|
providedIn: 'root',
|