@lendi/integrations-transform 1.5.1 → 1.5.2

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.
@@ -6,7 +6,6 @@ var application_paths_1 = require("@lendi/integrations-credit-protocol/utils/app
6
6
  var application_paths_2 = require("@lendi/integrations-protocol/lib/utils/application-paths");
7
7
  var lodash_1 = require("lodash");
8
8
  var enum_mappings_1 = require("../types/enum-mappings/");
9
- var transform_applicant_1 = require("./transform-applicant");
10
9
  /**
11
10
  * Transforms a partial opportunity event to a partial internal request.
12
11
  *
@@ -27,7 +26,6 @@ function transformApplication(opportunity) {
27
26
  (0, lodash_1.set)(partialApplication, "".concat(application_paths_2.paths.LoanDetail, ".@UniqueID"), "".concat(opportunity.id, "-loanDetails"));
28
27
  (0, lodash_1.set)(partialApplication, "".concat(application_paths_1.paths.Instructions, ".@UniqueID"), "".concat(opportunity.id, "-stage"));
29
28
  (0, lodash_1.set)(partialApplication, "".concat(application_paths_1.paths.Instructions, ".@Name"), lixi_internal_request_1.EventNameApplicationInstructionsList.ApplicationReceived);
30
- (0, lodash_1.set)(partialApplication, "".concat(application_paths_1.paths.FeaturesSelected, ".@RateLock"), lixi_internal_request_1.YesNoList.No);
31
29
  for (var _i = 0, _a = Object.entries(opportunity); _i < _a.length; _i++) {
32
30
  var _b = _a[_i], opportunityKey = _b[0], opportunityValue = _b[1];
33
31
  if (opportunityMapping[opportunityKey]) {
@@ -46,9 +44,6 @@ function transformApplication(opportunity) {
46
44
  }
47
45
  }
48
46
  }
49
- else if (opportunityKey === 'hasOptedInRateLock') {
50
- (0, lodash_1.set)(partialApplication, opportunityMapping[opportunityKey], (0, transform_applicant_1.booleanMapping)(opportunityValue));
51
- }
52
47
  else {
53
48
  (0, lodash_1.set)(partialApplication, opportunityMapping[opportunityKey], opportunityValue);
54
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/integrations-transform",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "Library for kafka event data transforming",
5
5
  "author": "Integrations <integrations@lendi.com.au>",
6
6
  "homepage": "https://bitbucket.org/lendi-dev/integrations-shared-packages#readme",