@lendi/integrations-transform 1.7.6 → 1.7.7

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.
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFees = exports.transformFundingPosition = void 0;
4
4
  const lixi_internal_request_1 = require("@lendi/integrations-protocol/lib/types/lixi-internal-request");
5
5
  const application_paths_1 = require("@lendi/integrations-protocol/lib/utils/application-paths");
6
- const application_paths_2 = require("@lendi/integrations-credit-protocol/utils/application-paths");
7
6
  const lodash_1 = require("lodash");
8
7
  const enum_mappings_1 = require("../types/enum-mappings");
9
8
  /**
@@ -21,7 +20,6 @@ function transformFundingPosition(fundingPosition, uniqueIdSuffix = 'loanDetails
21
20
  applicationId: application_paths_1.paths.ApplicationId,
22
21
  fundsRequested: `${application_paths_1.paths.RolledUpAmounts}.@TotalNewFunds`,
23
22
  lvr: `${application_paths_1.paths.Summary}.LoanToValuationRatio.@ApplicationLVR`,
24
- properties: `${application_paths_2.paths.AccountVariation}.LimitIncrease.@IncreaseAmount`,
25
23
  totalGovernmentContributions: application_paths_1.paths.ContributionFunds,
26
24
  totalDeposit: application_paths_1.paths.ContributionFunds,
27
25
  totalCashOut: `${application_paths_1.paths.EquityRelease}.Amount.@LumpSum`,
@@ -48,11 +46,6 @@ function transformFundingPosition(fundingPosition, uniqueIdSuffix = 'loanDetails
48
46
  case 'fundsRequested':
49
47
  (0, lodash_1.set)(partialApplication, fundingPositionMapping[key], Math.round(value));
50
48
  break;
51
- case 'properties':
52
- const propertyToBeToppedUp = value.find((property) => property.topUpAmount > 0);
53
- if (propertyToBeToppedUp)
54
- (0, lodash_1.set)(partialApplication, fundingPositionMapping[key], propertyToBeToppedUp.topUpAmount);
55
- break;
56
49
  default:
57
50
  (0, lodash_1.set)(partialApplication, fundingPositionMapping[key], value);
58
51
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lendi/integrations-transform",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
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",