@lendi/integrations-transform 1.5.7 → 1.5.10
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/index.js +10 -26
- package/lib/logger.d.ts +1 -2
- package/lib/logger.js +2 -5
- package/lib/schemas/application-workflow-event.json +1 -1
- package/lib/transform-events/generate-asset-liability-link.d.ts +3 -1
- package/lib/transform-events/generate-asset-liability-link.js +14 -18
- package/lib/transform-events/generate-credit-report-rebuilt.js +17 -21
- package/lib/transform-events/generate-employment.d.ts +1 -1
- package/lib/transform-events/generate-employment.js +51 -56
- package/lib/transform-events/generate-required-document.d.ts +1 -7
- package/lib/transform-events/generate-required-document.js +43 -69
- package/lib/transform-events/transform-applicant.d.ts +2 -1
- package/lib/transform-events/transform-applicant.js +78 -91
- package/lib/transform-events/transform-application-workflow.d.ts +0 -1
- package/lib/transform-events/transform-application-workflow.js +9 -14
- package/lib/transform-events/transform-application.d.ts +3 -1
- package/lib/transform-events/transform-application.js +28 -33
- package/lib/transform-events/transform-asset-address.d.ts +8 -2
- package/lib/transform-events/transform-asset-address.js +35 -37
- package/lib/transform-events/transform-asset.d.ts +7 -1
- package/lib/transform-events/transform-asset.js +164 -184
- package/lib/transform-events/transform-expenses.d.ts +4 -0
- package/lib/transform-events/transform-expenses.js +52 -58
- package/lib/transform-events/transform-funding-position.d.ts +2 -2
- package/lib/transform-events/transform-funding-position.js +38 -46
- package/lib/transform-events/transform-income.d.ts +8 -1
- package/lib/transform-events/transform-income.js +121 -139
- package/lib/transform-events/transform-liability.d.ts +4 -1
- package/lib/transform-events/transform-liability.js +62 -65
- package/lib/transform-events/transform-percent-owned.d.ts +1 -0
- package/lib/transform-events/transform-percent-owned.js +7 -14
- package/lib/types/enum-mappings/alieo-frequency.js +22 -26
- package/lib/types/enum-mappings/asset-type.js +14 -18
- package/lib/types/enum-mappings/builder-type.js +6 -10
- package/lib/types/enum-mappings/construction-type.js +7 -11
- package/lib/types/enum-mappings/country-code.js +243 -247
- package/lib/types/enum-mappings/employment-basis.js +9 -13
- package/lib/types/enum-mappings/expense-frequency.js +8 -12
- package/lib/types/enum-mappings/funding-position.js +29 -32
- package/lib/types/enum-mappings/government-benefits.js +7 -11
- package/lib/types/enum-mappings/housing-status.js +12 -16
- package/lib/types/enum-mappings/income-type.js +13 -17
- package/lib/types/enum-mappings/index.js +27 -43
- package/lib/types/enum-mappings/liability-payment-type.js +6 -10
- package/lib/types/enum-mappings/liability-type.js +18 -22
- package/lib/types/enum-mappings/living-expense.js +27 -31
- package/lib/types/enum-mappings/marital-status.js +9 -13
- package/lib/types/enum-mappings/postcode.js +11 -15
- package/lib/types/enum-mappings/preferred-repayment.js +7 -11
- package/lib/types/enum-mappings/proof-of-identity.js +7 -11
- package/lib/types/enum-mappings/property-expense-category.js +8 -12
- package/lib/types/enum-mappings/public-financial-asset.js +9 -13
- package/lib/types/enum-mappings/public-primary-purpose.js +6 -10
- package/lib/types/enum-mappings/public-property-status.js +8 -12
- package/lib/types/enum-mappings/public-property-type.js +20 -24
- package/lib/types/enum-mappings/residency-status.js +8 -12
- package/lib/types/enum-mappings/title-gender.js +10 -14
- package/lib/types/enum-mappings/title.js +10 -14
- package/lib/types/enum-mappings/to-be-purchased.js +4 -7
- package/lib/types/enum-mappings/to-be-used-as-security.js +4 -7
- package/lib/types/enum-mappings/transaction-type.js +6 -10
- package/lib/types/enum-mappings/verification.js +10 -14
- package/lib/types/events/applicant-delete.js +4 -7
- package/lib/types/events/application-workflow.js +10 -13
- package/lib/types/events/asset-delete.js +4 -7
- package/lib/types/events/asset-liability-relation-delete.js +4 -7
- package/lib/types/events/credit-report-retrieved.js +4 -7
- package/lib/types/events/employment-delete.js +2 -5
- package/lib/types/events/expense-delete.js +2 -5
- package/lib/types/events/funding-position.js +6 -9
- package/lib/types/events/income-delete.js +4 -7
- package/lib/types/events/liability-delete.js +2 -5
- package/lib/types/events/opportunity.js +6 -9
- package/lib/types/events/public-applicant.js +28 -31
- package/lib/types/events/public-application.js +26 -29
- package/lib/types/events/public-asset-liability-relation.js +4 -7
- package/lib/types/events/public-asset.js +26 -29
- package/lib/types/events/public-employment.js +18 -21
- package/lib/types/events/public-expense.js +8 -11
- package/lib/types/events/public-funding-position.js +2 -5
- package/lib/types/events/public-income.js +12 -15
- package/lib/types/events/public-liability.js +16 -19
- package/lib/types/events/public-required-document.js +14 -17
- package/lib/types/partial-application.js +1 -2
- package/lib/types/recursive-partial.js +1 -2
- package/lib/update-application/merge-application.d.ts +1 -1
- package/lib/update-application/merge-application.js +41 -38
- package/lib/update-application/update-primary-applicant.d.ts +1 -4
- package/lib/update-application/update-primary-applicant.js +14 -38
- package/lib/utils/address-tools.d.ts +3 -1
- package/lib/utils/address-tools.js +56 -68
- package/lib/utils/clean-up.d.ts +1 -1
- package/lib/utils/clean-up.js +6 -10
- package/lib/utils/formatYesNo.d.ts +0 -1
- package/lib/utils/formatYesNo.js +2 -7
- package/lib/utils/generate-address.d.ts +3 -2
- package/lib/utils/generate-address.js +33 -42
- package/lib/utils/get-financial-institution.d.ts +1 -0
- package/lib/utils/get-financial-institution.js +7 -10
- package/lib/utils/is-asset-type.js +13 -20
- package/lib/utils/is-income-type.d.ts +2 -0
- package/lib/utils/is-income-type.js +50 -69
- package/lib/utils/iso-date.d.ts +0 -1
- package/lib/utils/iso-date.js +2 -7
- package/lib/utils/normalise-date.js +6 -10
- package/lib/utils/round-decimal.js +1 -5
- package/package.json +15 -18
|
@@ -1,36 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
transferFee: lixi_internal_request_1.FeeCategoryList.Government,
|
|
14
|
-
foreignBuyerSurcharge: lixi_internal_request_1.FeeCategoryList.Government,
|
|
15
|
-
lmi: lixi_internal_request_1.FeeCategoryList.Bank
|
|
1
|
+
import { FeeCategoryList, FeeTypeList, Custom4DescriptionList as DescriptionList, ContributionFundsTypeList, } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
export const categoryMapping = {
|
|
3
|
+
accruedInterest: FeeCategoryList.Other,
|
|
4
|
+
conveyancingCost: FeeCategoryList.Other,
|
|
5
|
+
lenderDischargeFee: FeeCategoryList.Bank,
|
|
6
|
+
lenderSetupFee: FeeCategoryList.Bank,
|
|
7
|
+
mortgageRegistrationFee: FeeCategoryList.Government,
|
|
8
|
+
otherSundries: FeeCategoryList.Other,
|
|
9
|
+
stampDuty: FeeCategoryList.Government,
|
|
10
|
+
transferFee: FeeCategoryList.Government,
|
|
11
|
+
foreignBuyerSurcharge: FeeCategoryList.Government,
|
|
12
|
+
lmi: FeeCategoryList.Bank,
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
accruedInterest:
|
|
19
|
-
conveyancingCost:
|
|
20
|
-
lenderDischargeFee:
|
|
21
|
-
lenderSetupFee:
|
|
22
|
-
mortgageRegistrationFee:
|
|
23
|
-
otherSundries:
|
|
24
|
-
stampDuty:
|
|
25
|
-
transferFee:
|
|
26
|
-
foreignBuyerSurcharge:
|
|
27
|
-
lmi:
|
|
14
|
+
export const typeMapping = {
|
|
15
|
+
accruedInterest: FeeTypeList.Other,
|
|
16
|
+
conveyancingCost: FeeTypeList.LegalFee,
|
|
17
|
+
lenderDischargeFee: FeeTypeList.SecurityReleaseFee,
|
|
18
|
+
lenderSetupFee: FeeTypeList.EstablishmentFee,
|
|
19
|
+
mortgageRegistrationFee: FeeTypeList.MortgageRegistration,
|
|
20
|
+
otherSundries: FeeTypeList.Other,
|
|
21
|
+
stampDuty: FeeTypeList.StampDutyOnMortgage,
|
|
22
|
+
transferFee: FeeTypeList.TitleTransferFee,
|
|
23
|
+
foreignBuyerSurcharge: FeeTypeList.Other,
|
|
24
|
+
lmi: FeeTypeList.Lmi,
|
|
28
25
|
};
|
|
29
|
-
|
|
30
|
-
accruedInterest:
|
|
31
|
-
otherSundries:
|
|
26
|
+
export const descriptionMapping = {
|
|
27
|
+
accruedInterest: DescriptionList.PotentialAccruedInterest,
|
|
28
|
+
otherSundries: DescriptionList.OtherSundries,
|
|
32
29
|
};
|
|
33
|
-
|
|
34
|
-
totalGovernmentContributions:
|
|
35
|
-
totalDeposit:
|
|
30
|
+
export const contributionMapping = {
|
|
31
|
+
totalGovernmentContributions: ContributionFundsTypeList.FirstHomeOwnerGrant,
|
|
32
|
+
totalDeposit: ContributionFundsTypeList.Cash,
|
|
36
33
|
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
_a[public_income_1.BenefitType.AgePension] = lixi_internal_request_1.GovernmentBenefitsTypeList.AgePension,
|
|
9
|
-
_a[public_income_1.BenefitType.DisabilitySupportPension] = lixi_internal_request_1.GovernmentBenefitsTypeList.DisabilitySupportPension,
|
|
10
|
-
_a[public_income_1.BenefitType.FamilyTax] = lixi_internal_request_1.GovernmentBenefitsTypeList.FamilyAllowance,
|
|
11
|
-
_a);
|
|
1
|
+
import { GovernmentBenefitsTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { BenefitType } from '../events/public-income';
|
|
3
|
+
export const governmentBenefitsMapping = {
|
|
4
|
+
[BenefitType.AgePension]: GovernmentBenefitsTypeList.AgePension,
|
|
5
|
+
[BenefitType.DisabilitySupportPension]: GovernmentBenefitsTypeList.DisabilitySupportPension,
|
|
6
|
+
[BenefitType.FamilyTax]: GovernmentBenefitsTypeList.FamilyAllowance,
|
|
7
|
+
};
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
_a[public_applicant_1.HousingStatusList.Renting] = lixi_internal_request_1.HousingStatusList.Renting,
|
|
14
|
-
_a[public_applicant_1.HousingStatusList.SuppliedByEmployer] = lixi_internal_request_1.HousingStatusList.Other,
|
|
15
|
-
_a[public_applicant_1.HousingStatusList.WithParents] = lixi_internal_request_1.HousingStatusList.WithParents,
|
|
16
|
-
_a);
|
|
1
|
+
import { HousingStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { HousingStatusList as ApplicantEventHousingStatusList } from '../events/public-applicant';
|
|
3
|
+
export const housingStatusMapping = {
|
|
4
|
+
[ApplicantEventHousingStatusList.Boarding]: HousingStatusList.Other,
|
|
5
|
+
[ApplicantEventHousingStatusList.Caravan]: HousingStatusList.Other,
|
|
6
|
+
[ApplicantEventHousingStatusList.Other]: HousingStatusList.Other,
|
|
7
|
+
[ApplicantEventHousingStatusList.OwnHome]: HousingStatusList.OwnHome,
|
|
8
|
+
[ApplicantEventHousingStatusList.OwnHomeMortgage]: HousingStatusList.OwnHomeMortgage,
|
|
9
|
+
[ApplicantEventHousingStatusList.Renting]: HousingStatusList.Renting,
|
|
10
|
+
[ApplicantEventHousingStatusList.SuppliedByEmployer]: HousingStatusList.Other,
|
|
11
|
+
[ApplicantEventHousingStatusList.WithParents]: HousingStatusList.WithParents,
|
|
12
|
+
};
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
_a[public_income_1.IncomeType.PaygSalarySacrifice] = lixi_internal_request_1.OtherIncomeTypeList.SalarySacrificeContribution,
|
|
15
|
-
_a[public_income_1.IncomeType.SuperAnnuityPension] = lixi_internal_request_1.OtherIncomeTypeList.Superannuation,
|
|
16
|
-
_a[public_income_1.IncomeType.WorkersCompensation] = lixi_internal_request_1.OtherIncomeTypeList.WorkersCompensation,
|
|
17
|
-
_a);
|
|
1
|
+
import { OtherIncomeTypeList, Custom0DescriptionList, } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { IncomeType } from '../events/public-income';
|
|
3
|
+
export const otherIncomeMapping = {
|
|
4
|
+
[IncomeType.ChildMaintenance]: OtherIncomeTypeList.ChildMaintenance,
|
|
5
|
+
[IncomeType.ForeignIncome]: OtherIncomeTypeList.ForeignSourced,
|
|
6
|
+
[IncomeType.GovtBenefit]: OtherIncomeTypeList.GovernmentBenefits,
|
|
7
|
+
[IncomeType.InvestmentIncome]: Custom0DescriptionList.InvestmentIncome,
|
|
8
|
+
[IncomeType.OtherIncome]: OtherIncomeTypeList.OtherIncome,
|
|
9
|
+
[IncomeType.PaygNonVoluntaryDeductionsPreTax]: Custom0DescriptionList.PAYGNonVoluntaryDeductionsPreTax,
|
|
10
|
+
[IncomeType.PaygSalarySacrifice]: OtherIncomeTypeList.SalarySacrificeContribution,
|
|
11
|
+
[IncomeType.SuperAnnuityPension]: OtherIncomeTypeList.Superannuation,
|
|
12
|
+
[IncomeType.WorkersCompensation]: OtherIncomeTypeList.WorkersCompensation,
|
|
13
|
+
};
|
|
@@ -1,43 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
__exportStar(require("./living-expense"), exports);
|
|
29
|
-
__exportStar(require("./marital-status"), exports);
|
|
30
|
-
__exportStar(require("./postcode"), exports);
|
|
31
|
-
__exportStar(require("./preferred-repayment"), exports);
|
|
32
|
-
__exportStar(require("./proof-of-identity"), exports);
|
|
33
|
-
__exportStar(require("./property-expense-category"), exports);
|
|
34
|
-
__exportStar(require("./public-financial-asset"), exports);
|
|
35
|
-
__exportStar(require("./public-primary-purpose"), exports);
|
|
36
|
-
__exportStar(require("./public-property-status"), exports);
|
|
37
|
-
__exportStar(require("./public-property-type"), exports);
|
|
38
|
-
__exportStar(require("./residency-status"), exports);
|
|
39
|
-
__exportStar(require("./title-gender"), exports);
|
|
40
|
-
__exportStar(require("./title"), exports);
|
|
41
|
-
__exportStar(require("./to-be-purchased"), exports);
|
|
42
|
-
__exportStar(require("./to-be-used-as-security"), exports);
|
|
43
|
-
__exportStar(require("./transaction-type"), exports);
|
|
1
|
+
export * from './alieo-frequency';
|
|
2
|
+
export * from './asset-type';
|
|
3
|
+
export * from './country-code';
|
|
4
|
+
export * from './employment-basis';
|
|
5
|
+
export * from './expense-frequency';
|
|
6
|
+
export * from './funding-position';
|
|
7
|
+
export * from './government-benefits';
|
|
8
|
+
export * from './housing-status';
|
|
9
|
+
export * from './income-type';
|
|
10
|
+
export * from './liability-payment-type';
|
|
11
|
+
export * from './liability-type';
|
|
12
|
+
export * from './living-expense';
|
|
13
|
+
export * from './marital-status';
|
|
14
|
+
export * from './postcode';
|
|
15
|
+
export * from './preferred-repayment';
|
|
16
|
+
export * from './proof-of-identity';
|
|
17
|
+
export * from './property-expense-category';
|
|
18
|
+
export * from './public-financial-asset';
|
|
19
|
+
export * from './public-primary-purpose';
|
|
20
|
+
export * from './public-property-status';
|
|
21
|
+
export * from './public-property-type';
|
|
22
|
+
export * from './residency-status';
|
|
23
|
+
export * from './title-gender';
|
|
24
|
+
export * from './title';
|
|
25
|
+
export * from './to-be-purchased';
|
|
26
|
+
export * from './to-be-used-as-security';
|
|
27
|
+
export * from './transaction-type';
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.liabilityPaymentTypeMapping = (_a = {},
|
|
8
|
-
_a[public_liability_1.RepaymentTypeDetails.InterestOnly] = lixi_internal_request_1.PaymentTypeList.InterestOnly,
|
|
9
|
-
_a[public_liability_1.RepaymentTypeDetails.PrincipalAndInterest] = lixi_internal_request_1.PaymentTypeList.PrincipalAndInterest,
|
|
10
|
-
_a);
|
|
1
|
+
import { PaymentTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { RepaymentTypeDetails } from '../events/public-liability';
|
|
3
|
+
export const liabilityPaymentTypeMapping = {
|
|
4
|
+
[RepaymentTypeDetails.InterestOnly]: PaymentTypeList.InterestOnly,
|
|
5
|
+
[RepaymentTypeDetails.PrincipalAndInterest]: PaymentTypeList.PrincipalAndInterest,
|
|
6
|
+
};
|
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
_a[public_liability_1.LiabilityType.PersonalLoan] = lixi_internal_request_1.LiabilityTypeList.PersonalLoan,
|
|
20
|
-
_a[public_liability_1.LiabilityType.StoreCard] = lixi_internal_request_1.LiabilityTypeList.StoreCard,
|
|
21
|
-
_a[public_liability_1.LiabilityType.ShortTermFinance] = lixi_internal_request_1.LiabilityTypeList.TermLoan,
|
|
22
|
-
_a);
|
|
1
|
+
import { LiabilityTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { LiabilityType } from '../events/public-liability';
|
|
3
|
+
export const liabilityTypeMapping = {
|
|
4
|
+
[LiabilityType.CarLoan]: LiabilityTypeList.CarLoan,
|
|
5
|
+
[LiabilityType.CreditCard]: LiabilityTypeList.CreditCard,
|
|
6
|
+
[LiabilityType.HelpHecsDebt]: LiabilityTypeList.HecsHelp,
|
|
7
|
+
[LiabilityType.HirePurchase]: LiabilityTypeList.HirePurchase,
|
|
8
|
+
[LiabilityType.Lease]: LiabilityTypeList.Lease,
|
|
9
|
+
[LiabilityType.LineOfCredit]: LiabilityTypeList.LineOfCredit,
|
|
10
|
+
[LiabilityType.LeaseOrHireFinance]: LiabilityTypeList.Lease,
|
|
11
|
+
[LiabilityType.HomeLoan]: LiabilityTypeList.MortgageLoan,
|
|
12
|
+
[LiabilityType.Other]: LiabilityTypeList.Other,
|
|
13
|
+
[LiabilityType.TaxDebt]: LiabilityTypeList.OutstandingTaxation,
|
|
14
|
+
[LiabilityType.Overdraft]: LiabilityTypeList.Overdraft,
|
|
15
|
+
[LiabilityType.PersonalLoan]: LiabilityTypeList.PersonalLoan,
|
|
16
|
+
[LiabilityType.StoreCard]: LiabilityTypeList.StoreCard,
|
|
17
|
+
[LiabilityType.ShortTermFinance]: LiabilityTypeList.TermLoan,
|
|
18
|
+
};
|
|
@@ -1,31 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
_a[public_expense_1.ExpenseType.SecondaryResidenceRunningCosts] = lixi_internal_request_1.LivingExpenseCategoryList.SecondaryResidenceRunningCosts,
|
|
29
|
-
_a[public_expense_1.ExpenseType.TelephoneInternetPayTvAndMediaStreamingSubscriptions] = lixi_internal_request_1.LivingExpenseCategoryList.TelephoneInternetPayTVAndMediaStreamingSubscriptions,
|
|
30
|
-
_a[public_expense_1.ExpenseType.Transport] = lixi_internal_request_1.LivingExpenseCategoryList.Transport,
|
|
31
|
-
_a);
|
|
1
|
+
import { OtherCommitmentCategoryList, LivingExpenseCategoryList, } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { ExpenseType } from '../events/public-expense';
|
|
3
|
+
export const livingExpenseMapping = {
|
|
4
|
+
[ExpenseType.Board]: OtherCommitmentCategoryList.Board,
|
|
5
|
+
[ExpenseType.BodyCorporateFeesStrataFeesAndLandTax]: LivingExpenseCategoryList.BodyCorporateFeesStrataFeesAndLandTaxOnOwnerOccupiedPrincipalPlaceOfResidence,
|
|
6
|
+
[ExpenseType.ChildAndSpousalMaintenance]: OtherCommitmentCategoryList.ChildAndSpousalMaintenance,
|
|
7
|
+
[ExpenseType.Childcare]: LivingExpenseCategoryList.Childcare,
|
|
8
|
+
[ExpenseType.ClothingAndPersonalCare]: LivingExpenseCategoryList.ClothingAndPersonalCare,
|
|
9
|
+
[ExpenseType.Groceries]: LivingExpenseCategoryList.Groceries,
|
|
10
|
+
[ExpenseType.HealthInsurance]: LivingExpenseCategoryList.HealthInsurance,
|
|
11
|
+
[ExpenseType.HigherVocationalTrainingEducation]: LivingExpenseCategoryList.HigherEducationVocationalTrainingAndProfessionalFees,
|
|
12
|
+
[ExpenseType.Insurance]: LivingExpenseCategoryList.GeneralBasicInsurances,
|
|
13
|
+
[ExpenseType.InvestmentPropertyRunningCosts]: LivingExpenseCategoryList.InvestmentPropertyRunningCosts,
|
|
14
|
+
[ExpenseType.LifeInsurance]: LivingExpenseCategoryList.SicknessAndPersonalAccidentInsuranceLifeInsurance,
|
|
15
|
+
[ExpenseType.LivingExpensesEstimate]: LivingExpenseCategoryList.Other,
|
|
16
|
+
[ExpenseType.MedicalAndHealth]: LivingExpenseCategoryList.MedicalAndHealth,
|
|
17
|
+
[ExpenseType.Other]: LivingExpenseCategoryList.Other,
|
|
18
|
+
[ExpenseType.PetCare]: LivingExpenseCategoryList.PetCare,
|
|
19
|
+
[ExpenseType.PrimaryResidenceRunningCosts]: LivingExpenseCategoryList.PrimaryResidenceRunningCosts,
|
|
20
|
+
[ExpenseType.PrimarySecondaryEducation]: LivingExpenseCategoryList.PublicOrGovernmentPrimaryAndSecondaryEducation,
|
|
21
|
+
[ExpenseType.PrivateSchoolingAndTuition]: LivingExpenseCategoryList.PrivateSchoolingAndTuition,
|
|
22
|
+
[ExpenseType.RecreationAndEntertainment]: LivingExpenseCategoryList.RecreationAndEntertainment,
|
|
23
|
+
[ExpenseType.Rent]: OtherCommitmentCategoryList.Rent,
|
|
24
|
+
[ExpenseType.SecondaryResidenceRunningCosts]: LivingExpenseCategoryList.SecondaryResidenceRunningCosts,
|
|
25
|
+
[ExpenseType.TelephoneInternetPayTvAndMediaStreamingSubscriptions]: LivingExpenseCategoryList.TelephoneInternetPayTVAndMediaStreamingSubscriptions,
|
|
26
|
+
[ExpenseType.Transport]: LivingExpenseCategoryList.Transport,
|
|
27
|
+
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_a[public_applicant_1.MaritalStatus.Married] = lixi_internal_request_1.MaritalStatusList.Married,
|
|
11
|
-
_a[public_applicant_1.MaritalStatus.Single] = lixi_internal_request_1.MaritalStatusList.Single,
|
|
12
|
-
_a[public_applicant_1.MaritalStatus.Unknown] = lixi_internal_request_1.MaritalStatusList.Unknown,
|
|
13
|
-
_a);
|
|
1
|
+
import { MaritalStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { MaritalStatus } from '../events/public-applicant';
|
|
3
|
+
export const maritalStatusMapping = {
|
|
4
|
+
[MaritalStatus.DeFacto]: MaritalStatusList.DeFacto,
|
|
5
|
+
[MaritalStatus.Divorced]: MaritalStatusList.Divorced,
|
|
6
|
+
[MaritalStatus.Married]: MaritalStatusList.Married,
|
|
7
|
+
[MaritalStatus.Single]: MaritalStatusList.Single,
|
|
8
|
+
[MaritalStatus.Unknown]: MaritalStatusList.Unknown,
|
|
9
|
+
};
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
exports.__esModule = true;
|
|
4
|
-
exports.postcodeMapping = void 0;
|
|
5
1
|
// Mapping the postcode based on the state if not specified.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import { AustralianStates } from '../events/public-employment';
|
|
3
|
+
export const postcodeMapping = {
|
|
4
|
+
[AustralianStates.Act]: '2600',
|
|
5
|
+
[AustralianStates.Nsw]: '2000',
|
|
6
|
+
[AustralianStates.NT]: '0800',
|
|
7
|
+
[AustralianStates.Qld]: '4000',
|
|
8
|
+
[AustralianStates.Sa]: '5000',
|
|
9
|
+
[AustralianStates.Tas]: '7000',
|
|
10
|
+
[AustralianStates.Vic]: '3000',
|
|
11
|
+
[AustralianStates.Wa]: '6000',
|
|
12
|
+
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
_a[public_application_1.PaymentType.InterestOnly] = lixi_internal_request_1.PaymentTypeList.InterestOnly,
|
|
9
|
-
_a[public_application_1.PaymentType.PrincipalAndInterest] = lixi_internal_request_1.PaymentTypeList.PrincipalAndInterest,
|
|
10
|
-
_a[public_application_1.PaymentType.StillDeciding] = lixi_internal_request_1.PaymentTypeList.PrincipalAndInterest,
|
|
11
|
-
_a);
|
|
1
|
+
import { PaymentTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { PaymentType } from '../events/public-application';
|
|
3
|
+
export const preferredRepaymentMapping = {
|
|
4
|
+
[PaymentType.InterestOnly]: PaymentTypeList.InterestOnly,
|
|
5
|
+
[PaymentType.PrincipalAndInterest]: PaymentTypeList.PrincipalAndInterest,
|
|
6
|
+
[PaymentType.StillDeciding]: PaymentTypeList.PrincipalAndInterest,
|
|
7
|
+
};
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
_a[public_required_document_1.IDType.AustralianDriverLicense] = lixi_internal_request_1.DocumentTypeList.AustralianDriversLicence,
|
|
9
|
-
_a[public_required_document_1.IDType.NationalIDCard] = lixi_internal_request_1.DocumentTypeList.NationalIdentityCard,
|
|
10
|
-
_a[public_required_document_1.IDType.Passport] = lixi_internal_request_1.DocumentTypeList.AustralianPassport,
|
|
11
|
-
_a);
|
|
1
|
+
import { DocumentTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { IDType } from '../events/public-required-document';
|
|
3
|
+
export const proofOfIdentityMapping = {
|
|
4
|
+
[IDType.AustralianDriverLicense]: DocumentTypeList.AustralianDriversLicence,
|
|
5
|
+
[IDType.NationalIDCard]: DocumentTypeList.NationalIdentityCard,
|
|
6
|
+
[IDType.Passport]: DocumentTypeList.AustralianPassport,
|
|
7
|
+
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
_a[public_asset_1.PropertyExpenseType.InvestmentPropertyRunningCosts] = lixi_internal_request_1.PropertyExpenseCategoryList.RunningCosts,
|
|
10
|
-
_a[public_asset_1.PropertyExpenseType.PrimaryResidenceRunningCosts] = lixi_internal_request_1.PropertyExpenseCategoryList.RunningCosts,
|
|
11
|
-
_a[public_asset_1.PropertyExpenseType.SecondaryResidenceRunningCosts] = lixi_internal_request_1.PropertyExpenseCategoryList.RunningCosts,
|
|
12
|
-
_a);
|
|
1
|
+
import { PropertyExpenseCategoryList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
2
|
+
import { PropertyExpenseType } from '../events/public-asset';
|
|
3
|
+
export const propertyExpenseCategoryMapping = {
|
|
4
|
+
[PropertyExpenseType.BodyCorporateFeesStrataFeesAndLandTax]: PropertyExpenseCategoryList.BodyCorporateFeesStrataFeesAndLandTax,
|
|
5
|
+
[PropertyExpenseType.InvestmentPropertyRunningCosts]: PropertyExpenseCategoryList.RunningCosts,
|
|
6
|
+
[PropertyExpenseType.PrimaryResidenceRunningCosts]: PropertyExpenseCategoryList.RunningCosts,
|
|
7
|
+
[PropertyExpenseType.SecondaryResidenceRunningCosts]: PropertyExpenseCategoryList.RunningCosts,
|
|
8
|
+
};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_a[public_asset_1.AssetType.TermDeposit] = lixi_internal_request_1.FinancialAssetTypeList.TermDeposit,
|
|
11
|
-
_a[public_asset_1.AssetType.SavingCheckAccount] = lixi_internal_request_1.FinancialAssetTypeList.SavingsAccount,
|
|
12
|
-
_a[public_asset_1.AssetType.ManagedFunds] = lixi_internal_request_1.FinancialAssetTypeList.ManagedFunds,
|
|
13
|
-
_a);
|
|
1
|
+
import { FinancialAssetTypeList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { AssetType } from '../events/public-asset';
|
|
3
|
+
export const financialAssetMapping = {
|
|
4
|
+
[AssetType.Shares]: FinancialAssetTypeList.SharesAndDebentures,
|
|
5
|
+
[AssetType.Superannuation]: FinancialAssetTypeList.Superannuation,
|
|
6
|
+
[AssetType.TermDeposit]: FinancialAssetTypeList.TermDeposit,
|
|
7
|
+
[AssetType.SavingCheckAccount]: FinancialAssetTypeList.SavingsAccount,
|
|
8
|
+
[AssetType.ManagedFunds]: FinancialAssetTypeList.ManagedFunds,
|
|
9
|
+
};
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.primaryPurposeMapping = (_a = {},
|
|
8
|
-
_a[public_asset_1.PrimaryPurpose.Investment] = lixi_internal_request_1.PrimaryPurposeRealEstateAssetList.Investment,
|
|
9
|
-
_a[public_asset_1.PrimaryPurpose.OwnerOccupied] = lixi_internal_request_1.PrimaryPurposeRealEstateAssetList.OwnerOccupied,
|
|
10
|
-
_a);
|
|
1
|
+
import { PrimaryPurposeRealEstateAssetList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { PrimaryPurpose } from '../events/public-asset';
|
|
3
|
+
export const primaryPurposeMapping = {
|
|
4
|
+
[PrimaryPurpose.Investment]: PrimaryPurposeRealEstateAssetList.Investment,
|
|
5
|
+
[PrimaryPurpose.OwnerOccupied]: PrimaryPurposeRealEstateAssetList.OwnerOccupied,
|
|
6
|
+
};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
_a[public_asset_1.PropertyStatus.NewBuilding] = lixi_internal_request_1.RealEstateAssetStatusList.NewBuilding,
|
|
10
|
-
_a[public_asset_1.PropertyStatus.VacantLand] = lixi_internal_request_1.RealEstateAssetStatusList.VacantLand,
|
|
11
|
-
_a[public_asset_1.PropertyStatus.OffThePlan] = lixi_internal_request_1.RealEstateAssetStatusList.OffThePlan,
|
|
12
|
-
_a);
|
|
1
|
+
import { RealEstateAssetStatusList } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { PropertyStatus } from '../events/public-asset';
|
|
3
|
+
export const propertyStatusMapping = {
|
|
4
|
+
[PropertyStatus.Established]: RealEstateAssetStatusList.Established,
|
|
5
|
+
[PropertyStatus.NewBuilding]: RealEstateAssetStatusList.NewBuilding,
|
|
6
|
+
[PropertyStatus.VacantLand]: RealEstateAssetStatusList.VacantLand,
|
|
7
|
+
[PropertyStatus.OffThePlan]: RealEstateAssetStatusList.OffThePlan,
|
|
8
|
+
};
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
_a[public_asset_1.PropertyType.WarehouseApartment] = lixi_internal_request_1.ResidentialTypeList.StudioWarehouseApartment,
|
|
22
|
-
_a[public_asset_1.PropertyType.PropertyOver10_Ha] = lixi_internal_request_1.Custom2PropertyTypeNameList.PropertyOver10HA,
|
|
23
|
-
_a[public_asset_1.PropertyType.MultiDwellingSingleTitle] = lixi_internal_request_1.Custom2PropertyTypeNameList.MultiDwellingSingleTitle,
|
|
24
|
-
_a);
|
|
1
|
+
import { PropertyType } from '../events/public-asset';
|
|
2
|
+
import { ResidentialTypeList, Custom2PropertyTypeNameList, } from '@lendi/integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
+
export const propertyTypeMapping = {
|
|
4
|
+
[PropertyType.ApartmentUnitLessThan50M2]: ResidentialTypeList.HighDensityApartment,
|
|
5
|
+
[PropertyType.ApartmentUnitMoreThan50M2]: ResidentialTypeList.ApartmentUnitFlat,
|
|
6
|
+
[PropertyType.Duplex]: ResidentialTypeList.Duplex,
|
|
7
|
+
[PropertyType.FullyDetachedHouse]: ResidentialTypeList.FullyDetachedHouse,
|
|
8
|
+
[PropertyType.KitHome]: ResidentialTypeList.KitHome,
|
|
9
|
+
[PropertyType.Land]: ResidentialTypeList.VacantLand,
|
|
10
|
+
[PropertyType.Studio]: ResidentialTypeList.BedsitterBachelor,
|
|
11
|
+
[PropertyType.SemiDetachedHouse]: ResidentialTypeList.SemiDetachedHouse,
|
|
12
|
+
[PropertyType.ServicedApartment]: ResidentialTypeList.ServicedApartment,
|
|
13
|
+
[PropertyType.StudentAccommodation]: ResidentialTypeList.UnitStudentAccommodation,
|
|
14
|
+
[PropertyType.Terrace]: ResidentialTypeList.Terrace,
|
|
15
|
+
[PropertyType.Townhouse]: ResidentialTypeList.Townhouse,
|
|
16
|
+
[PropertyType.Villa]: ResidentialTypeList.Villa,
|
|
17
|
+
[PropertyType.WarehouseApartment]: ResidentialTypeList.StudioWarehouseApartment,
|
|
18
|
+
[PropertyType.PropertyOver10_Ha]: Custom2PropertyTypeNameList.PropertyOver10HA,
|
|
19
|
+
[PropertyType.MultiDwellingSingleTitle]: Custom2PropertyTypeNameList.MultiDwellingSingleTitle,
|
|
20
|
+
};
|