@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.
@@ -5440,7 +5440,7 @@ var NsContent;
5440
5440
  var PROTECTED_SLAG_V8 = '/apis/protected/v8';
5441
5441
  var ɵ0 = function (type, id) {
5442
5442
  return PROTECTED_SLAG_V8 + "/content/collection/" + type + "/" + id;
5443
- }, ɵ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; };
5444
5444
  var API_END_POINTS = {
5445
5445
  CONTENT: PROTECTED_SLAG_V8 + "/content",
5446
5446
  AUTHORING_CONTENT: "/apis/authApi/hierarchy",
@@ -5459,6 +5459,8 @@ var API_END_POINTS = {
5459
5459
  COLLECTION_HIERARCHY: (ɵ0),
5460
5460
  REGISTRATION_STATUS: PROTECTED_SLAG_V8 + "/admin/userRegistration/checkUserRegistrationContent",
5461
5461
  MARK_AS_COMPLETE_META: (ɵ1),
5462
+ EXT_USER_COURSE_ENROLL: (ɵ2),
5463
+ EXT_CONTENT_EROLL: "/apis/proxies/v8/cios-enroll/v1/create",
5462
5464
  };
5463
5465
  var WidgetContentService = (function () {
5464
5466
  function WidgetContentService(http, configSvc) {
@@ -5622,6 +5624,12 @@ var WidgetContentService = (function () {
5622
5624
  WidgetContentService.prototype.fetchConfig = function (url) {
5623
5625
  return this.http.get(url);
5624
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
+ };
5625
5633
  WidgetContentService.decorators = [
5626
5634
  { type: Injectable, args: [{
5627
5635
  providedIn: 'root',