@sunbird-cb/utils-v2 0.0.5 → 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 +9 -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/widget-content.service.js +11 -3
- package/esm5/lib/services/widget-content.service.js +11 -3
- package/fesm2015/sunbird-cb-utils-v2.js +9 -1
- package/fesm2015/sunbird-cb-utils-v2.js.map +1 -1
- package/fesm5/sunbird-cb-utils-v2.js +9 -1
- package/fesm5/sunbird-cb-utils-v2.js.map +1 -1
- package/lib/services/widget-content.service.d.ts +2 -0
- package/package.json +1 -1
- package/sunbird-cb-utils-v2.metadata.json +1 -1
|
@@ -5649,7 +5649,7 @@
|
|
|
5649
5649
|
var PROTECTED_SLAG_V8 = '/apis/protected/v8';
|
|
5650
5650
|
var ɵ0 = function (type, id) {
|
|
5651
5651
|
return PROTECTED_SLAG_V8 + "/content/collection/" + type + "/" + id;
|
|
5652
|
-
}, ɵ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; };
|
|
5653
5653
|
var API_END_POINTS = {
|
|
5654
5654
|
CONTENT: PROTECTED_SLAG_V8 + "/content",
|
|
5655
5655
|
AUTHORING_CONTENT: "/apis/authApi/hierarchy",
|
|
@@ -5668,6 +5668,8 @@
|
|
|
5668
5668
|
COLLECTION_HIERARCHY: (ɵ0),
|
|
5669
5669
|
REGISTRATION_STATUS: PROTECTED_SLAG_V8 + "/admin/userRegistration/checkUserRegistrationContent",
|
|
5670
5670
|
MARK_AS_COMPLETE_META: (ɵ1),
|
|
5671
|
+
EXT_USER_COURSE_ENROLL: (ɵ2),
|
|
5672
|
+
EXT_CONTENT_EROLL: "/apis/proxies/v8/cios-enroll/v1/create",
|
|
5671
5673
|
};
|
|
5672
5674
|
var WidgetContentService = (function () {
|
|
5673
5675
|
function WidgetContentService(http, configSvc) {
|
|
@@ -5831,6 +5833,12 @@
|
|
|
5831
5833
|
WidgetContentService.prototype.fetchConfig = function (url) {
|
|
5832
5834
|
return this.http.get(url);
|
|
5833
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
|
+
};
|
|
5834
5842
|
WidgetContentService.decorators = [
|
|
5835
5843
|
{ type: core.Injectable, args: [{
|
|
5836
5844
|
providedIn: 'root',
|