@sunbird-cb/utils-v2 0.0.8 → 0.0.10

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.
@@ -5449,7 +5449,7 @@ var NsContent;
5449
5449
  var PROTECTED_SLAG_V8 = '/apis/protected/v8';
5450
5450
  var ɵ0 = function (type, id) {
5451
5451
  return PROTECTED_SLAG_V8 + "/content/collection/" + type + "/" + id;
5452
- }, ɵ1 = function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; }, ɵ2 = function (contentId) { return "/apis/proxies/v8/cios-enroll/v1/readby/useridcourseid/" + contentId; };
5452
+ }, ɵ1 = function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; }, ɵ2 = function (contentId) { return "/apis/proxies/v8/cios-enroll/v1/readby/useridcourseid/" + contentId; }, ɵ3 = function (certId) { return PROTECTED_SLAG_V8 + "/cohorts/course/batch/cert/download/" + certId; };
5453
5453
  var API_END_POINTS = {
5454
5454
  CONTENT: PROTECTED_SLAG_V8 + "/content",
5455
5455
  AUTHORING_CONTENT: "/apis/authApi/hierarchy",
@@ -5470,6 +5470,7 @@ var API_END_POINTS = {
5470
5470
  MARK_AS_COMPLETE_META: (ɵ1),
5471
5471
  EXT_USER_COURSE_ENROLL: (ɵ2),
5472
5472
  EXT_CONTENT_EROLL: "/apis/proxies/v8/cios-enroll/v1/create",
5473
+ CERT_DOWNLOAD: (ɵ3),
5473
5474
  };
5474
5475
  var WidgetContentService = (function () {
5475
5476
  function WidgetContentService(http, configSvc) {
@@ -5639,6 +5640,9 @@ var WidgetContentService = (function () {
5639
5640
  WidgetContentService.prototype.extContentEnroll = function (requestBody) {
5640
5641
  return this.http.post("" + API_END_POINTS.EXT_CONTENT_EROLL, requestBody);
5641
5642
  };
5643
+ WidgetContentService.prototype.downloadCert = function (certId) {
5644
+ return this.http.get("" + API_END_POINTS.CERT_DOWNLOAD(certId));
5645
+ };
5642
5646
  WidgetContentService.decorators = [
5643
5647
  { type: Injectable, args: [{
5644
5648
  providedIn: 'root',