vcomply-workflow-engine 3.4.17 → 3.4.18

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.
@@ -39167,26 +39167,28 @@ class AddMultipleResponsibilityWithTabComponent {
39167
39167
  });
39168
39168
  }
39169
39169
  submitResponsibilityBulkUpload() {
39170
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
39170
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
39171
39171
  this.loader = true;
39172
39172
  let payload = [];
39173
+ let responsibilityMultiTabBulkUpload = [];
39173
39174
  const frequencyTypeArray = ['1', '2', '3', '4', '7', '0', '6', '9'];
39174
39175
  const defaultWindow = [0, 2, 7, 30, 7, 15, 3, 30];
39175
39176
  const defaultFailedDay = [1, 2, 5, 5, 5, 5, 5, 5];
39176
39177
  let validResponsibilities = 0;
39177
- // this.bulkUpload?.frequency
39178
39178
  let responsibilityBulkUpload = (_c = (_b = (_a = this.bulkUpload) === null || _a === void 0 ? void 0 : _a.frequency) === null || _b === void 0 ? void 0 : _b.reports) === null || _c === void 0 ? void 0 : _c.concat((_e = (_d = this.bulkUpload) === null || _d === void 0 ? void 0 : _d.ongoing) === null || _e === void 0 ? void 0 : _e.reports, (_g = (_f = this.bulkUpload) === null || _f === void 0 ? void 0 : _f.onCompletion) === null || _g === void 0 ? void 0 : _g.reports);
39179
+ responsibilityMultiTabBulkUpload =
39180
+ (_k = (_j = (_h = this.bulkUpload) === null || _h === void 0 ? void 0 : _h.frequency) === null || _j === void 0 ? void 0 : _j.reports) === null || _k === void 0 ? void 0 : _k.concat((_m = (_l = this.bulkUpload) === null || _l === void 0 ? void 0 : _l.ongoing) === null || _m === void 0 ? void 0 : _m.reports, (_p = (_o = this.bulkUpload) === null || _o === void 0 ? void 0 : _o.onCompletion) === null || _p === void 0 ? void 0 : _p.reports);
39179
39181
  if (this.ffBulkUploadOptimization) {
39180
- (_h = this.responsibilityBulkUpload) === null || _h === void 0 ? void 0 : _h.reports.forEach((report) => {
39182
+ responsibilityMultiTabBulkUpload === null || responsibilityMultiTabBulkUpload === void 0 ? void 0 : responsibilityMultiTabBulkUpload.forEach((report) => {
39181
39183
  if (report === null || report === void 0 ? void 0 : report.isValid) {
39182
39184
  validResponsibilities += 1;
39183
39185
  }
39184
39186
  });
39185
39187
  payload = {
39186
- originalFilename: (_j = this.fileResponse[0]) === null || _j === void 0 ? void 0 : _j.original_filename,
39187
- fileName: (_k = this.fileResponse[0]) === null || _k === void 0 ? void 0 : _k.filename,
39188
- filePath: (_l = this.fileResponse[0]) === null || _l === void 0 ? void 0 : _l.filepath,
39189
- totalResponsibilityCount: (_o = (_m = this.responsibilityBulkUpload) === null || _m === void 0 ? void 0 : _m.reports) === null || _o === void 0 ? void 0 : _o.length,
39188
+ originalFilename: (_q = this.fileResponse[0]) === null || _q === void 0 ? void 0 : _q.original_filename,
39189
+ fileName: (_r = this.fileResponse[0]) === null || _r === void 0 ? void 0 : _r.filename,
39190
+ filePath: (_s = this.fileResponse[0]) === null || _s === void 0 ? void 0 : _s.filepath,
39191
+ totalResponsibilityCount: responsibilityMultiTabBulkUpload === null || responsibilityMultiTabBulkUpload === void 0 ? void 0 : responsibilityMultiTabBulkUpload.length,
39190
39192
  validResponsibilityCount: validResponsibilities,
39191
39193
  };
39192
39194
  }