@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.
@@ -5658,7 +5658,7 @@
5658
5658
  var PROTECTED_SLAG_V8 = '/apis/protected/v8';
5659
5659
  var ɵ0 = function (type, id) {
5660
5660
  return PROTECTED_SLAG_V8 + "/content/collection/" + type + "/" + id;
5661
- }, ɵ1 = function (contentId) { return PROTECTED_SLAG_V8 + "/user/progress/" + contentId; }, ɵ2 = function (contentId) { return "/apis/proxies/v8/cios-enroll/v1/readby/useridcourseid/" + contentId; };
5661
+ }, ɵ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; };
5662
5662
  var API_END_POINTS = {
5663
5663
  CONTENT: PROTECTED_SLAG_V8 + "/content",
5664
5664
  AUTHORING_CONTENT: "/apis/authApi/hierarchy",
@@ -5679,6 +5679,7 @@
5679
5679
  MARK_AS_COMPLETE_META: (ɵ1),
5680
5680
  EXT_USER_COURSE_ENROLL: (ɵ2),
5681
5681
  EXT_CONTENT_EROLL: "/apis/proxies/v8/cios-enroll/v1/create",
5682
+ CERT_DOWNLOAD: (ɵ3),
5682
5683
  };
5683
5684
  var WidgetContentService = (function () {
5684
5685
  function WidgetContentService(http, configSvc) {
@@ -5848,6 +5849,9 @@
5848
5849
  WidgetContentService.prototype.extContentEnroll = function (requestBody) {
5849
5850
  return this.http.post("" + API_END_POINTS.EXT_CONTENT_EROLL, requestBody);
5850
5851
  };
5852
+ WidgetContentService.prototype.downloadCert = function (certId) {
5853
+ return this.http.get("" + API_END_POINTS.CERT_DOWNLOAD(certId));
5854
+ };
5851
5855
  WidgetContentService.decorators = [
5852
5856
  { type: core.Injectable, args: [{
5853
5857
  providedIn: 'root',