@lendi/integrations-transform 1.9.0 → 1.9.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.
- package/lib/transform-events/transform-asset.js +11 -10
- package/lib/types/enum-mappings/alieo-frequency.d.ts +3 -3
- package/lib/types/enum-mappings/applicant-gender.d.ts +1 -1
- package/lib/types/enum-mappings/applicant-type.d.ts +1 -1
- package/lib/types/enum-mappings/builder-type.d.ts +1 -1
- package/lib/types/enum-mappings/company-structure.d.ts +1 -1
- package/lib/types/enum-mappings/company-type.d.ts +1 -1
- package/lib/types/enum-mappings/construction-type.d.ts +1 -1
- package/lib/types/enum-mappings/country-code.d.ts +1 -1
- package/lib/types/enum-mappings/employment-basis.d.ts +1 -1
- package/lib/types/enum-mappings/expense-frequency.d.ts +1 -1
- package/lib/types/enum-mappings/funding-position.d.ts +4 -4
- package/lib/types/enum-mappings/government-benefits.d.ts +1 -1
- package/lib/types/enum-mappings/housing-status.d.ts +1 -1
- package/lib/types/enum-mappings/income-type.d.ts +1 -1
- package/lib/types/enum-mappings/liability-payment-type.d.ts +1 -1
- package/lib/types/enum-mappings/liability-type.d.ts +1 -1
- package/lib/types/enum-mappings/living-expense.d.ts +1 -1
- package/lib/types/enum-mappings/marital-status.d.ts +1 -1
- package/lib/types/enum-mappings/postcode.d.ts +1 -1
- package/lib/types/enum-mappings/preferred-repayment.d.ts +1 -1
- package/lib/types/enum-mappings/proof-of-identity.d.ts +1 -1
- package/lib/types/enum-mappings/property-expense-category.d.ts +1 -1
- package/lib/types/enum-mappings/public-financial-asset.d.ts +1 -1
- package/lib/types/enum-mappings/public-primary-purpose.d.ts +1 -1
- package/lib/types/enum-mappings/public-property-status.d.ts +1 -1
- package/lib/types/enum-mappings/public-property-type.d.ts +1 -1
- package/lib/types/enum-mappings/residency-status.d.ts +1 -1
- package/lib/types/enum-mappings/title-gender.d.ts +1 -1
- package/lib/types/enum-mappings/title.d.ts +1 -1
- package/lib/types/enum-mappings/transaction-type.d.ts +1 -1
- package/lib/types/enum-mappings/trust.d.ts +1 -1
- package/lib/types/partial-application.d.ts +1 -1
- package/lib/types/recursive-partial.d.ts +1 -1
- package/lib/utils/address-tools.d.ts +4 -4
- package/lib/utils/normalise-date.d.ts +1 -1
- package/package.json +2 -2
|
@@ -293,14 +293,12 @@ exports.generateLivingExpenses = generateLivingExpenses;
|
|
|
293
293
|
function generatePropertyExpenses(propertyExpenses) {
|
|
294
294
|
return propertyExpenses
|
|
295
295
|
.filter((expense) => expense.amount !== undefined)
|
|
296
|
-
.map(
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
};
|
|
303
|
-
});
|
|
296
|
+
.map(normalizeAmounts)
|
|
297
|
+
.map((expense) => ({
|
|
298
|
+
'@Amount': expense.amount,
|
|
299
|
+
'@Category': enum_mappings_1.propertyExpenseCategoryMapping[expense.type],
|
|
300
|
+
'@Frequency': enum_mappings_1.incomeExpenseFrequencyMapping[expense.frequency],
|
|
301
|
+
}));
|
|
304
302
|
}
|
|
305
303
|
exports.generatePropertyExpenses = generatePropertyExpenses;
|
|
306
304
|
/**
|
|
@@ -309,17 +307,20 @@ exports.generatePropertyExpenses = generatePropertyExpenses;
|
|
|
309
307
|
* @param propertyExpenses
|
|
310
308
|
*/
|
|
311
309
|
function determineOccupancy(propertyExpenses) {
|
|
312
|
-
const propertyExpenseCategoryList = propertyExpenses
|
|
310
|
+
const propertyExpenseCategoryList = propertyExpenses
|
|
311
|
+
.filter((expense) => expense.amount !== undefined)
|
|
312
|
+
.map((expense) => expense.type);
|
|
313
313
|
if (propertyExpenseCategoryList.includes(public_asset_1.PropertyExpenseType.InvestmentPropertyRunningCosts)) {
|
|
314
314
|
return lixi_internal_request_1.OccupancyList.NonOwner;
|
|
315
315
|
}
|
|
316
|
-
else if (propertyExpenseCategoryList.includes(public_asset_1.PropertyExpenseType.
|
|
316
|
+
else if (propertyExpenseCategoryList.includes(public_asset_1.PropertyExpenseType.SecondaryResidenceRunningCosts)) {
|
|
317
317
|
return lixi_internal_request_1.OccupancyList.OwnerSecondary;
|
|
318
318
|
}
|
|
319
319
|
else if (propertyExpenseCategoryList.some((item) => item !== public_asset_1.PropertyExpenseType.SecondaryResidenceRunningCosts &&
|
|
320
320
|
item === public_asset_1.PropertyExpenseType.PrimaryResidenceRunningCosts)) {
|
|
321
321
|
return lixi_internal_request_1.OccupancyList.OwnerPrimary;
|
|
322
322
|
}
|
|
323
|
+
return lixi_internal_request_1.OccupancyList.OwnerPrimary;
|
|
323
324
|
}
|
|
324
325
|
exports.determineOccupancy = determineOccupancy;
|
|
325
326
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { List as LIXIFrequency } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { RepaymentFrequency } from '../events/public-liability';
|
|
3
3
|
import { Frequency } from '../events/public-income';
|
|
4
|
-
export
|
|
4
|
+
export type LiabilityFrequencyMapping = {
|
|
5
5
|
[key in RepaymentFrequency]: LIXIFrequency;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type IncomeExpenseFrequencyMapping = {
|
|
8
8
|
[key in RepaymentFrequency | Frequency]: LIXIFrequency;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type RentalIncomeFrequencyMapping = {
|
|
11
11
|
[key in Frequency]: LIXIFrequency;
|
|
12
12
|
};
|
|
13
13
|
export declare const incomeExpenseFrequencyMapping: IncomeExpenseFrequencyMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Gender } from '../events/public-applicant';
|
|
2
2
|
import { GenderList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
3
|
-
export
|
|
3
|
+
export type ApplicantGenderMapping = {
|
|
4
4
|
[key in Gender]: GenderList;
|
|
5
5
|
};
|
|
6
6
|
export declare const applicantGenderMapping: ApplicantGenderMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApplicantTypeList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
2
2
|
import { ApplicantType } from '../events/public-applicant';
|
|
3
|
-
export
|
|
3
|
+
export type ApplicantTypeMapping = {
|
|
4
4
|
[key in ApplicantType]: ApplicantTypeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const applicantTypeMapping: ApplicantTypeMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BuilderTypeList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
2
2
|
import { BuilderType } from '../events/public-asset';
|
|
3
|
-
|
|
3
|
+
type BuilderTypeMapping = {
|
|
4
4
|
[key in BuilderType]: BuilderTypeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const builderTypeMapping: BuilderTypeMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BusinessStructureFullList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
2
2
|
import { CompanyStructure } from '../events/public-applicant';
|
|
3
|
-
|
|
3
|
+
type CompanyTypeMapping = {
|
|
4
4
|
[key in CompanyStructure]: BusinessStructureFullList;
|
|
5
5
|
};
|
|
6
6
|
export declare const companyStructureMapping: Partial<CompanyTypeMapping>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TypeOfIncorporationList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
2
2
|
import { CompanyType } from '../events/public-applicant';
|
|
3
|
-
|
|
3
|
+
type CompanyTypeMapping = {
|
|
4
4
|
[key in CompanyType]: TypeOfIncorporationList;
|
|
5
5
|
};
|
|
6
6
|
export declare const companyTypeMapping: CompanyTypeMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ConstructionTypeList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
2
2
|
import { ConstructionType } from '../events/public-asset';
|
|
3
|
-
|
|
3
|
+
type ConstructionTypeMapping = {
|
|
4
4
|
[key in ConstructionType]: ConstructionTypeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const constructionTypeMapping: ConstructionTypeMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Countries } from '../events/public-applicant';
|
|
2
2
|
import { CountryCodeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
-
|
|
3
|
+
type CountryCodeMapping = {
|
|
4
4
|
[key in Countries]: CountryCodeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const countryCodeMapping: Partial<CountryCodeMapping>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaygBasisList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { EmploymentBasis } from '../events/public-employment';
|
|
3
|
-
|
|
3
|
+
type PaygEmploymentBasisMapping = {
|
|
4
4
|
[key in EmploymentBasis]: PaygBasisList;
|
|
5
5
|
};
|
|
6
6
|
export declare const paygEmploymentBasisMapping: PaygEmploymentBasisMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { List as FrequencyList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { Frequency } from '../events/public-expense';
|
|
3
|
-
|
|
3
|
+
type FrequencyMapping = {
|
|
4
4
|
[key in Frequency]: FrequencyList;
|
|
5
5
|
};
|
|
6
6
|
export declare const frequencyMapping: Partial<FrequencyMapping>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { FeeCategoryList, FeeTypeList, Custom4DescriptionList as DescriptionList, ContributionFundsTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
-
|
|
2
|
+
type CategoryMapping = {
|
|
3
3
|
[key: string]: FeeCategoryList;
|
|
4
4
|
};
|
|
5
5
|
export declare const categoryMapping: CategoryMapping;
|
|
6
|
-
|
|
6
|
+
type TypeMapping = {
|
|
7
7
|
[key: string]: FeeTypeList;
|
|
8
8
|
};
|
|
9
9
|
export declare const typeMapping: TypeMapping;
|
|
10
|
-
|
|
10
|
+
type DescriptionMapping = {
|
|
11
11
|
[key: string]: DescriptionList;
|
|
12
12
|
};
|
|
13
13
|
export declare const descriptionMapping: DescriptionMapping;
|
|
14
|
-
|
|
14
|
+
type ContributionMapping = {
|
|
15
15
|
[key: string]: ContributionFundsTypeList;
|
|
16
16
|
};
|
|
17
17
|
export declare const contributionMapping: ContributionMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GovernmentBenefitsTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { BenefitType } from '../events/public-income';
|
|
3
|
-
|
|
3
|
+
type GovernmentBenefitsMapping = {
|
|
4
4
|
[key in BenefitType]: GovernmentBenefitsTypeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const governmentBenefitsMapping: Partial<GovernmentBenefitsMapping>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HousingStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { HousingStatusList as ApplicantEventHousingStatusList } from '../events/public-applicant';
|
|
3
|
-
|
|
3
|
+
type HousingStatusMapping = {
|
|
4
4
|
[key in ApplicantEventHousingStatusList]: HousingStatusList;
|
|
5
5
|
};
|
|
6
6
|
export declare const housingStatusMapping: HousingStatusMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OtherIncomeTypeList, Custom0DescriptionList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { IncomeType } from '../events/public-income';
|
|
3
|
-
|
|
3
|
+
type OtherIncomeMapping = {
|
|
4
4
|
[key in IncomeType]: OtherIncomeTypeList | Custom0DescriptionList;
|
|
5
5
|
};
|
|
6
6
|
export declare const otherIncomeMapping: Partial<OtherIncomeMapping>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaymentTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { RepaymentTypeDetails } from '../events/public-liability';
|
|
3
|
-
|
|
3
|
+
type LiabilityPaymentTypeMapping = {
|
|
4
4
|
[key in RepaymentTypeDetails]: PaymentTypeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const liabilityPaymentTypeMapping: LiabilityPaymentTypeMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LiabilityTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { LiabilityType } from '../events/public-liability';
|
|
3
|
-
|
|
3
|
+
type LiabilityTypeMapping = {
|
|
4
4
|
[key in LiabilityType]: LiabilityTypeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const liabilityTypeMapping: LiabilityTypeMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OtherCommitmentCategoryList, LivingExpenseCategoryList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { ExpenseType } from '../events/public-expense';
|
|
3
|
-
|
|
3
|
+
type LivingExpenseMapping = {
|
|
4
4
|
[key in ExpenseType]: LivingExpenseCategoryList | OtherCommitmentCategoryList;
|
|
5
5
|
};
|
|
6
6
|
export declare const livingExpenseMapping: LivingExpenseMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MaritalStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { MaritalStatus } from '../events/public-applicant';
|
|
3
|
-
|
|
3
|
+
type MaritalStatusMapping = {
|
|
4
4
|
[key in MaritalStatus]: MaritalStatusList;
|
|
5
5
|
};
|
|
6
6
|
export declare const maritalStatusMapping: MaritalStatusMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PaymentTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { PaymentType } from '../events/public-application';
|
|
3
|
-
|
|
3
|
+
type PreferredRepaymentMapping = {
|
|
4
4
|
[key in PaymentType]: PaymentTypeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const preferredRepaymentMapping: PreferredRepaymentMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DocumentTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { IDType } from '../events/public-required-document';
|
|
3
|
-
|
|
3
|
+
type ProofOfIdentityMapping = {
|
|
4
4
|
[key in IDType]: DocumentTypeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const proofOfIdentityMapping: ProofOfIdentityMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropertyExpenseCategoryList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
2
2
|
import { PropertyExpenseType } from '../events/public-asset';
|
|
3
|
-
|
|
3
|
+
type PropertyExpenseCategoryMapping = {
|
|
4
4
|
[key in PropertyExpenseType]: PropertyExpenseCategoryList;
|
|
5
5
|
};
|
|
6
6
|
export declare const propertyExpenseCategoryMapping: PropertyExpenseCategoryMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FinancialAssetTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { AssetType } from '../events/public-asset';
|
|
3
|
-
|
|
3
|
+
type FinancialAssetMapping = {
|
|
4
4
|
[key in AssetType]: FinancialAssetTypeList;
|
|
5
5
|
};
|
|
6
6
|
export declare const financialAssetMapping: Partial<FinancialAssetMapping>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PrimaryPurposeRealEstateAssetList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { PrimaryPurpose } from '../events/public-asset';
|
|
3
|
-
|
|
3
|
+
type PrimaryPurposeMapping = {
|
|
4
4
|
[key in PrimaryPurpose]: PrimaryPurposeRealEstateAssetList;
|
|
5
5
|
};
|
|
6
6
|
export declare const primaryPurposeMapping: PrimaryPurposeMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RealEstateAssetStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { PropertyStatus } from '../events/public-asset';
|
|
3
|
-
|
|
3
|
+
type PropertyStatusMapping = {
|
|
4
4
|
[key in PropertyStatus]: RealEstateAssetStatusList;
|
|
5
5
|
};
|
|
6
6
|
export declare const propertyStatusMapping: PropertyStatusMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropertyType } from '../events/public-asset';
|
|
2
2
|
import { ResidentialTypeList, Custom2PropertyTypeNameList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
-
|
|
3
|
+
type PropertyTypeMapping = {
|
|
4
4
|
[key in PropertyType]: ResidentialTypeList | Custom2PropertyTypeNameList;
|
|
5
5
|
};
|
|
6
6
|
export declare const propertyTypeMapping: PropertyTypeMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResidencyStatus } from '../events/public-applicant';
|
|
2
2
|
import { ResidencyStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
-
|
|
3
|
+
type ResidencyStatusMapping = {
|
|
4
4
|
[key in ResidencyStatus]: ResidencyStatusList;
|
|
5
5
|
};
|
|
6
6
|
export declare const residencyStatusMapping: ResidencyStatusMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IDTitle } from '../events/public-required-document';
|
|
2
2
|
import { GenderList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
-
|
|
3
|
+
type TitleGenderMapping = {
|
|
4
4
|
[key in IDTitle]: GenderList;
|
|
5
5
|
};
|
|
6
6
|
export declare const titleGenderMapping: Partial<TitleGenderMapping>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Title } from '../events/public-applicant';
|
|
2
2
|
import { NameTitleList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
-
|
|
3
|
+
type TitleMapping = {
|
|
4
4
|
[key in Title]: NameTitleList;
|
|
5
5
|
};
|
|
6
6
|
export declare const titleMapping: TitleMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PurposeOfApplicationList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { PrimaryPurpose } from '../events/public-application';
|
|
3
|
-
|
|
3
|
+
type TransactionTypeMapping = {
|
|
4
4
|
[key in PrimaryPurpose]: PurposeOfApplicationList;
|
|
5
5
|
};
|
|
6
6
|
export declare const transactionTypeMapping: TransactionTypeMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TrustType } from '../events/public-applicant';
|
|
2
2
|
import { TrustStructureList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
3
|
-
|
|
3
|
+
type TrustTypeMapping = {
|
|
4
4
|
[key in TrustType]: TrustStructureList;
|
|
5
5
|
};
|
|
6
6
|
export declare const trustTypeMapping: Partial<TrustTypeMapping>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InternalRequest } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
2
|
import { RecursivePartial } from './recursive-partial';
|
|
3
|
-
export
|
|
3
|
+
export type PartialApplication = RecursivePartial<InternalRequest>;
|
|
@@ -6,7 +6,7 @@ import { Address, CommonAddressProperties, Countries, PreviousAddress as Interna
|
|
|
6
6
|
/**
|
|
7
7
|
* Type definition for functions used to transform types while mapping from event values to LIXI values.
|
|
8
8
|
*/
|
|
9
|
-
export
|
|
9
|
+
export type MappingTransformFunction<I = any, O = any> = (input: I) => O;
|
|
10
10
|
/**
|
|
11
11
|
* Specifies the destination path of the object in dot notation along with an optional data transform function.
|
|
12
12
|
*/
|
|
@@ -23,7 +23,7 @@ export interface MappedTransform {
|
|
|
23
23
|
/**
|
|
24
24
|
* A type defining a record set of path mapped transforms
|
|
25
25
|
*/
|
|
26
|
-
export
|
|
26
|
+
export type PathMappedTransform = Record<string, MappedTransform>;
|
|
27
27
|
export declare const lixiContactAddressMapping: PathMappedTransform;
|
|
28
28
|
export declare const australianStates: string[];
|
|
29
29
|
/**
|
|
@@ -37,8 +37,8 @@ export declare const lixiAddressMapping: PathMappedTransform;
|
|
|
37
37
|
* @param pathMappedTransform A PathMappedTransform to be applied to the source
|
|
38
38
|
*/
|
|
39
39
|
export declare function mapTransform<T>(source: any, pathMappedTransform: PathMappedTransform): T;
|
|
40
|
-
|
|
41
|
-
export
|
|
40
|
+
type EventAddressType = InternalPreviousAddress | CommonAddressProperties;
|
|
41
|
+
export type LixiContactAddressType = CurrentAddress | PreviousAddress;
|
|
42
42
|
export interface AddressTransformedType {
|
|
43
43
|
lixiAddress: AddressType;
|
|
44
44
|
lixiContactAddress: LixiContactAddressType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lendi/integrations-transform",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.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",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@lendi/integrations-credit-protocol": "1.19.0",
|
|
25
25
|
"@lendi/integrations-protocol": "2.7.4",
|
|
26
|
-
"@lendi/logging": "^1.0.
|
|
26
|
+
"@lendi/logging": "^1.0.3",
|
|
27
27
|
"clean-deep": "^3.4.0",
|
|
28
28
|
"date-fns": "2.19.0",
|
|
29
29
|
"lodash": "^4.17.15"
|