@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
|
@@ -4555,6 +4555,7 @@ var NsInstanceConfig;
|
|
|
4555
4555
|
IConfig.prototype.positions;
|
|
4556
4556
|
IConfig.prototype.websitelanguages;
|
|
4557
4557
|
IConfig.prototype.profileTimelyNudges;
|
|
4558
|
+
IConfig.prototype.npsCategory;
|
|
4558
4559
|
}
|
|
4559
4560
|
function IPortalUrls() { }
|
|
4560
4561
|
NsInstanceConfig.IPortalUrls = IPortalUrls;
|
|
@@ -5439,7 +5440,7 @@ var NsContent;
|
|
|
5439
5440
|
var PROTECTED_SLAG_V8 = '/apis/protected/v8';
|
|
5440
5441
|
var ɵ0 = function (type, id) {
|
|
5441
5442
|
return PROTECTED_SLAG_V8 + "/content/collection/" + type + "/" + id;
|
|
5442
|
-
}, ɵ1 = function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; };
|
|
5443
|
+
}, ɵ1 = function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; }, ɵ2 = function (contentId) { return "/apis/proxies/v8/cios-enroll/v1/readby/useridcourseid/" + contentId; };
|
|
5443
5444
|
var API_END_POINTS = {
|
|
5444
5445
|
CONTENT: PROTECTED_SLAG_V8 + "/content",
|
|
5445
5446
|
AUTHORING_CONTENT: "/apis/authApi/hierarchy",
|
|
@@ -5458,6 +5459,8 @@ var API_END_POINTS = {
|
|
|
5458
5459
|
COLLECTION_HIERARCHY: (ɵ0),
|
|
5459
5460
|
REGISTRATION_STATUS: PROTECTED_SLAG_V8 + "/admin/userRegistration/checkUserRegistrationContent",
|
|
5460
5461
|
MARK_AS_COMPLETE_META: (ɵ1),
|
|
5462
|
+
EXT_USER_COURSE_ENROLL: (ɵ2),
|
|
5463
|
+
EXT_CONTENT_EROLL: "/apis/proxies/v8/cios-enroll/v1/create",
|
|
5461
5464
|
};
|
|
5462
5465
|
var WidgetContentService = (function () {
|
|
5463
5466
|
function WidgetContentService(http, configSvc) {
|
|
@@ -5621,6 +5624,12 @@ var WidgetContentService = (function () {
|
|
|
5621
5624
|
WidgetContentService.prototype.fetchConfig = function (url) {
|
|
5622
5625
|
return this.http.get(url);
|
|
5623
5626
|
};
|
|
5627
|
+
WidgetContentService.prototype.fetchExtUserContentEnroll = function (contentId) {
|
|
5628
|
+
return this.http.get(API_END_POINTS.EXT_USER_COURSE_ENROLL(contentId));
|
|
5629
|
+
};
|
|
5630
|
+
WidgetContentService.prototype.extContentEnroll = function (requestBody) {
|
|
5631
|
+
return this.http.post("" + API_END_POINTS.EXT_CONTENT_EROLL, requestBody);
|
|
5632
|
+
};
|
|
5624
5633
|
WidgetContentService.decorators = [
|
|
5625
5634
|
{ type: Injectable, args: [{
|
|
5626
5635
|
providedIn: 'root',
|