@sunbird-cb/consumption 0.0.88 → 0.0.90

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.
@@ -14142,7 +14142,7 @@
14142
14142
  _this._fb = _fb;
14143
14143
  _this.emptyResponse = new core.EventEmitter();
14144
14144
  _this.viewAllResponse = new core.EventEmitter();
14145
- _this.telemtryResponse = new core.EventEmitter();
14145
+ _this.telemtryLearningContentResponse = new core.EventEmitter();
14146
14146
  _this.providerId = '';
14147
14147
  _this.emitViewAll = false;
14148
14148
  _this.channnelName = '';
@@ -14187,15 +14187,10 @@
14187
14187
  * @return {?}
14188
14188
  */
14189
14189
  function () {
14190
- var _this = this;
14191
14190
  this.initData();
14192
- this.contentSvc.telemetryData$.subscribe((/**
14193
- * @param {?} data
14194
- * @return {?}
14195
- */
14196
- function (data) {
14197
- _this.telemtryResponse.emit(data);
14198
- }));
14191
+ // this.contentSvc.telemetryData$.subscribe((data: any) => {
14192
+ // this.telemtryLearningContentResponse.emit(data)
14193
+ // })
14199
14194
  this.facetForm = this._fb.group({
14200
14195
  org: ['0']
14201
14196
  });
@@ -14531,7 +14526,7 @@
14531
14526
  * @return {?}
14532
14527
  */
14533
14528
  function (stripData) {
14534
- this.telemtryResponse.emit(stripData);
14529
+ this.telemtryLearningContentResponse.emit(stripData);
14535
14530
  };
14536
14531
  /**
14537
14532
  * @param {?} key
@@ -14615,7 +14610,7 @@
14615
14610
  };
14616
14611
  this.eventSvc.raiseInteractTelemetry({
14617
14612
  type: utilsV2.WsEvents.EnumInteractTypes.CLICK,
14618
- subType: utilsV2.WsEvents.EnumInteractSubTypes.HOME_PAGE_STRIP_TABS,
14613
+ subType: 'explore-learning-content',
14619
14614
  id: lodash.camelCase(data.label) + "-tab",
14620
14615
  }, {}, {
14621
14616
  module: utilsV2.WsEvents.EnumTelemetrymodules.HOME,
@@ -15107,7 +15102,7 @@
15107
15102
  response = _a.sent();
15108
15103
  tabIndex = 0;
15109
15104
  pillIndex = 0;
15110
- if (response.results && response.results.result) {
15105
+ if (response.results && response.results.result && response.results.result.content && response.results.result.content.length > 0) {
15111
15106
  this.mapAllDataWithFacets(strip, response.results.result.content, response.results.result.facets, calculateParentStatus);
15112
15107
  widgets = this.transformContentsToWidgets(response.results.result.content, strip);
15113
15108
  tabResults = [];
@@ -15141,6 +15136,9 @@
15141
15136
  // tabResults // tabResults as widgets
15142
15137
  // );
15143
15138
  }
15139
+ else {
15140
+ this.processStrip(strip, [], 'error', calculateParentStatus, null);
15141
+ }
15144
15142
  return [3 /*break*/, 4];
15145
15143
  case 3:
15146
15144
  error_1 = _a.sent();
@@ -15388,7 +15386,7 @@
15388
15386
  widgetData: [{ type: core.Input }],
15389
15387
  emptyResponse: [{ type: core.Output }],
15390
15388
  viewAllResponse: [{ type: core.Output }],
15391
- telemtryResponse: [{ type: core.Output }],
15389
+ telemtryLearningContentResponse: [{ type: core.Output }],
15392
15390
  providerId: [{ type: core.Input }],
15393
15391
  emitViewAll: [{ type: core.Input }],
15394
15392
  channnelName: [{ type: core.Input }],
@@ -15404,7 +15402,7 @@
15404
15402
  /** @type {?} */
15405
15403
  ContentStripFacetFilterComponent.prototype.viewAllResponse;
15406
15404
  /** @type {?} */
15407
- ContentStripFacetFilterComponent.prototype.telemtryResponse;
15405
+ ContentStripFacetFilterComponent.prototype.telemtryLearningContentResponse;
15408
15406
  /** @type {?} */
15409
15407
  ContentStripFacetFilterComponent.prototype.providerId;
15410
15408
  /** @type {?} */
@@ -20098,15 +20096,23 @@
20098
20096
  * @return {?}
20099
20097
  */
20100
20098
  function (event) {
20099
+ /** @type {?} */
20100
+ var _subType = 'mandatory-courses';
20101
+ /** @type {?} */
20102
+ var _id = 'mandatory-courses-card';
20103
+ if (event.typeOfTelemetry === 'learningContent') {
20104
+ _subType = 'explore-learning-content';
20105
+ _id = 'explore-learning-content-card';
20106
+ }
20101
20107
  this.events.raiseInteractTelemetry({
20102
20108
  type: 'click',
20103
- subType: 'mandatory-courses',
20104
- id: "mandatory-courses-card",
20109
+ subType: _subType,
20110
+ id: _id,
20105
20111
  }, {
20106
20112
  id: event.identifier,
20107
20113
  type: event.primaryCategory,
20108
20114
  }, {
20109
- pageIdExt: "mandatory-courses-card",
20115
+ pageIdExt: _id,
20110
20116
  module: 'National Learning Week',
20111
20117
  });
20112
20118
  };