@lendi/integrations-transform
Advanced tools
Comparing version 1.3.5 to 1.3.6
@@ -34,4 +34,5 @@ import { LivingExpense } from '@lendi/integrations-credit-protocol/types/lixi-internal-request'; | ||
* @param percentOwned: owners of the property | ||
* @param assetId: Asset id | ||
* @param propertyExpenses: propertyExpenses items | ||
*/ | ||
export declare function generatePropertyExpenses(percentOwned: PercentOwned, propertyExpenses: PropertyExpense[]): LivingExpense[]; | ||
export declare function generatePropertyExpenses(percentOwned: PercentOwned, assetId: string, propertyExpenses: PropertyExpense[]): LivingExpense[]; |
@@ -95,3 +95,3 @@ "use strict"; | ||
} | ||
var propertyExpenses = generatePropertyExpenses(asset.percentOwned, value); | ||
var propertyExpenses = generatePropertyExpenses(asset.percentOwned, id, value); | ||
(0, lodash_1.set)(partialApplication, assetMapping[key], propertyExpenses); | ||
@@ -220,5 +220,6 @@ break; | ||
* @param percentOwned: owners of the property | ||
* @param assetId: Asset id | ||
* @param propertyExpenses: propertyExpenses items | ||
*/ | ||
function generatePropertyExpenses(percentOwned, propertyExpenses) { | ||
function generatePropertyExpenses(percentOwned, assetId, propertyExpenses) { | ||
var livingExpenses = []; | ||
@@ -236,3 +237,3 @@ var filteredPropertyExpenses = propertyExpenses.filter(function (expense) { return expense.amount !== undefined; }); | ||
'@Frequency': enum_mappings_1.incomeExpenseFrequencyMapping[expense.frequency], | ||
'@UniqueID': (0, uuid_1.v4)(), | ||
'@UniqueID': "".concat((0, uuid_1.v4)(), "-").concat(assetId), | ||
PercentResponsible: { | ||
@@ -239,0 +240,0 @@ Owner: [ |
{ | ||
"name": "@lendi/integrations-transform", | ||
"version": "1.3.5", | ||
"version": "1.3.6", | ||
"description": "Library for kafka event data transforming", | ||
@@ -5,0 +5,0 @@ "author": "Integrations <integrations@lendi.com.au>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
458866
12681