@lendi/act-credit-decisions-transform 1.9.0
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/README.md +31 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +28 -0
- package/lib/logger.d.ts +1 -0
- package/lib/logger.js +5 -0
- package/lib/schemas/application-workflow-event.json +240 -0
- package/lib/schemas/credit-report-retrieved-event.json +57 -0
- package/lib/schemas/public-applicant-event.json +910 -0
- package/lib/schemas/public-application-event.json +250 -0
- package/lib/schemas/public-asset-event.json +679 -0
- package/lib/schemas/public-asset-liability-relation-delete-event.json +74 -0
- package/lib/schemas/public-asset-liability-relation-event.json +73 -0
- package/lib/schemas/public-create-applicant-event.json +609 -0
- package/lib/schemas/public-delete-applicant-event.json +66 -0
- package/lib/schemas/public-delete-asset-event.json +53 -0
- package/lib/schemas/public-delete-income-event.json +55 -0
- package/lib/schemas/public-employment-delete-event.json +31 -0
- package/lib/schemas/public-employment-event.json +278 -0
- package/lib/schemas/public-expense-delete-event.json +41 -0
- package/lib/schemas/public-expense-event.json +133 -0
- package/lib/schemas/public-funding-position-event.json +419 -0
- package/lib/schemas/public-income-event.json +242 -0
- package/lib/schemas/public-liability-delete-event.json +37 -0
- package/lib/schemas/public-liability-event.json +262 -0
- package/lib/schemas/public-required-document-event.json +366 -0
- package/lib/schemas/public-update-applicant-event.json +606 -0
- package/lib/schemas/sf-opportunity-event-out.json +138 -0
- package/lib/transform-events/generate-asset-liability-link.d.ts +10 -0
- package/lib/transform-events/generate-asset-liability-link.js +29 -0
- package/lib/transform-events/generate-credit-report-rebuilt.d.ts +8 -0
- package/lib/transform-events/generate-credit-report-rebuilt.js +41 -0
- package/lib/transform-events/transform-applicant.d.ts +8 -0
- package/lib/transform-events/transform-applicant.js +180 -0
- package/lib/transform-events/transform-application-workflow.d.ts +8 -0
- package/lib/transform-events/transform-application-workflow.js +30 -0
- package/lib/transform-events/transform-application.d.ts +20 -0
- package/lib/transform-events/transform-application.js +67 -0
- package/lib/transform-events/transform-asset-address.d.ts +25 -0
- package/lib/transform-events/transform-asset-address.js +87 -0
- package/lib/transform-events/transform-asset.d.ts +58 -0
- package/lib/transform-events/transform-asset.js +337 -0
- package/lib/transform-events/transform-employment.d.ts +8 -0
- package/lib/transform-events/transform-employment.js +106 -0
- package/lib/transform-events/transform-expenses.d.ts +41 -0
- package/lib/transform-events/transform-expenses.js +121 -0
- package/lib/transform-events/transform-funding-position.d.ts +21 -0
- package/lib/transform-events/transform-funding-position.js +107 -0
- package/lib/transform-events/transform-income.d.ts +48 -0
- package/lib/transform-events/transform-income.js +260 -0
- package/lib/transform-events/transform-liability.d.ts +12 -0
- package/lib/transform-events/transform-liability.js +117 -0
- package/lib/transform-events/transform-percent-owned.d.ts +10 -0
- package/lib/transform-events/transform-percent-owned.js +22 -0
- package/lib/transform-events/transform-required-document.d.ts +67 -0
- package/lib/transform-events/transform-required-document.js +148 -0
- package/lib/types/enum-mappings/alieo-frequency.d.ts +15 -0
- package/lib/types/enum-mappings/alieo-frequency.js +25 -0
- package/lib/types/enum-mappings/applicant-gender.d.ts +6 -0
- package/lib/types/enum-mappings/applicant-gender.js +11 -0
- package/lib/types/enum-mappings/applicant-type.d.ts +6 -0
- package/lib/types/enum-mappings/applicant-type.js +10 -0
- package/lib/types/enum-mappings/asset-type.d.ts +3 -0
- package/lib/types/enum-mappings/asset-type.js +17 -0
- package/lib/types/enum-mappings/builder-type.d.ts +7 -0
- package/lib/types/enum-mappings/builder-type.js +9 -0
- package/lib/types/enum-mappings/company-structure.d.ts +7 -0
- package/lib/types/enum-mappings/company-structure.js +10 -0
- package/lib/types/enum-mappings/company-type.d.ts +7 -0
- package/lib/types/enum-mappings/company-type.js +11 -0
- package/lib/types/enum-mappings/construction-type.d.ts +7 -0
- package/lib/types/enum-mappings/construction-type.js +10 -0
- package/lib/types/enum-mappings/country-code.d.ts +7 -0
- package/lib/types/enum-mappings/country-code.js +246 -0
- package/lib/types/enum-mappings/employment-basis.d.ts +7 -0
- package/lib/types/enum-mappings/employment-basis.js +12 -0
- package/lib/types/enum-mappings/expense-frequency.d.ts +7 -0
- package/lib/types/enum-mappings/expense-frequency.js +11 -0
- package/lib/types/enum-mappings/funding-position.d.ts +18 -0
- package/lib/types/enum-mappings/funding-position.js +36 -0
- package/lib/types/enum-mappings/government-benefits.d.ts +7 -0
- package/lib/types/enum-mappings/government-benefits.js +10 -0
- package/lib/types/enum-mappings/guarantor-relationship-type.d.ts +3 -0
- package/lib/types/enum-mappings/guarantor-relationship-type.js +16 -0
- package/lib/types/enum-mappings/housing-status.d.ts +7 -0
- package/lib/types/enum-mappings/housing-status.js +15 -0
- package/lib/types/enum-mappings/income-type.d.ts +7 -0
- package/lib/types/enum-mappings/income-type.js +16 -0
- package/lib/types/enum-mappings/index.d.ts +27 -0
- package/lib/types/enum-mappings/index.js +43 -0
- package/lib/types/enum-mappings/liability-payment-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-payment-type.js +9 -0
- package/lib/types/enum-mappings/liability-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-type.js +21 -0
- package/lib/types/enum-mappings/living-expense.d.ts +7 -0
- package/lib/types/enum-mappings/living-expense.js +31 -0
- package/lib/types/enum-mappings/marital-status.d.ts +7 -0
- package/lib/types/enum-mappings/marital-status.js +12 -0
- package/lib/types/enum-mappings/postcode.d.ts +6 -0
- package/lib/types/enum-mappings/postcode.js +15 -0
- package/lib/types/enum-mappings/preferred-repayment.d.ts +7 -0
- package/lib/types/enum-mappings/preferred-repayment.js +10 -0
- package/lib/types/enum-mappings/proof-of-identity.d.ts +7 -0
- package/lib/types/enum-mappings/proof-of-identity.js +10 -0
- package/lib/types/enum-mappings/property-expense-category.d.ts +7 -0
- package/lib/types/enum-mappings/property-expense-category.js +11 -0
- package/lib/types/enum-mappings/public-financial-asset.d.ts +7 -0
- package/lib/types/enum-mappings/public-financial-asset.js +12 -0
- package/lib/types/enum-mappings/public-primary-purpose.d.ts +7 -0
- package/lib/types/enum-mappings/public-primary-purpose.js +9 -0
- package/lib/types/enum-mappings/public-property-status.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-status.js +11 -0
- package/lib/types/enum-mappings/public-property-type.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-type.js +23 -0
- package/lib/types/enum-mappings/residency-status.d.ts +7 -0
- package/lib/types/enum-mappings/residency-status.js +11 -0
- package/lib/types/enum-mappings/title-gender.d.ts +7 -0
- package/lib/types/enum-mappings/title-gender.js +13 -0
- package/lib/types/enum-mappings/title.d.ts +7 -0
- package/lib/types/enum-mappings/title.js +13 -0
- package/lib/types/enum-mappings/to-be-purchased.d.ts +5 -0
- package/lib/types/enum-mappings/to-be-purchased.js +8 -0
- package/lib/types/enum-mappings/to-be-used-as-security.d.ts +5 -0
- package/lib/types/enum-mappings/to-be-used-as-security.js +8 -0
- package/lib/types/enum-mappings/transaction-type.d.ts +7 -0
- package/lib/types/enum-mappings/transaction-type.js +9 -0
- package/lib/types/enum-mappings/trust.d.ts +7 -0
- package/lib/types/enum-mappings/trust.js +14 -0
- package/lib/types/enum-mappings/verification.d.ts +3 -0
- package/lib/types/enum-mappings/verification.js +13 -0
- package/lib/types/events/applicant-delete.d.ts +42 -0
- package/lib/types/events/applicant-delete.js +15 -0
- package/lib/types/events/application-workflow.d.ts +233 -0
- package/lib/types/events/application-workflow.js +172 -0
- package/lib/types/events/asset-delete.d.ts +33 -0
- package/lib/types/events/asset-delete.js +15 -0
- package/lib/types/events/asset-liability-relation-delete.d.ts +52 -0
- package/lib/types/events/asset-liability-relation-delete.js +15 -0
- package/lib/types/events/credit-report-retrieved.d.ts +36 -0
- package/lib/types/events/credit-report-retrieved.js +15 -0
- package/lib/types/events/employment-delete.d.ts +19 -0
- package/lib/types/events/employment-delete.js +7 -0
- package/lib/types/events/expense-delete.d.ts +21 -0
- package/lib/types/events/expense-delete.js +7 -0
- package/lib/types/events/funding-position.d.ts +116 -0
- package/lib/types/events/funding-position.js +34 -0
- package/lib/types/events/income-delete.d.ts +33 -0
- package/lib/types/events/income-delete.js +15 -0
- package/lib/types/events/liability-delete.d.ts +17 -0
- package/lib/types/events/liability-delete.js +7 -0
- package/lib/types/events/opportunity.d.ts +102 -0
- package/lib/types/events/opportunity.js +47 -0
- package/lib/types/events/public-applicant.d.ts +628 -0
- package/lib/types/events/public-applicant.js +411 -0
- package/lib/types/events/public-application.d.ts +151 -0
- package/lib/types/events/public-application.js +103 -0
- package/lib/types/events/public-asset-liability-relation.d.ts +52 -0
- package/lib/types/events/public-asset-liability-relation.js +15 -0
- package/lib/types/events/public-asset.d.ts +502 -0
- package/lib/types/events/public-asset.js +348 -0
- package/lib/types/events/public-employment.d.ts +121 -0
- package/lib/types/events/public-employment.js +46 -0
- package/lib/types/events/public-expense.d.ts +84 -0
- package/lib/types/events/public-expense.js +51 -0
- package/lib/types/events/public-funding-position.d.ts +341 -0
- package/lib/types/events/public-funding-position.js +20 -0
- package/lib/types/events/public-income.d.ts +144 -0
- package/lib/types/events/public-income.js +65 -0
- package/lib/types/events/public-liability.d.ts +140 -0
- package/lib/types/events/public-liability.js +68 -0
- package/lib/types/events/public-required-document.d.ts +374 -0
- package/lib/types/events/public-required-document.js +297 -0
- package/lib/types/partial-application.d.ts +3 -0
- package/lib/types/partial-application.js +2 -0
- package/lib/types/recursive-partial.d.ts +3 -0
- package/lib/types/recursive-partial.js +2 -0
- package/lib/update-application/merge-application.d.ts +14 -0
- package/lib/update-application/merge-application.js +175 -0
- package/lib/update-application/remove-ids-not-required.d.ts +11 -0
- package/lib/update-application/remove-ids-not-required.js +63 -0
- package/lib/update-application/update-primary-applicant.d.ts +27 -0
- package/lib/update-application/update-primary-applicant.js +46 -0
- package/lib/utils/address-tools.d.ts +84 -0
- package/lib/utils/address-tools.js +176 -0
- package/lib/utils/clean-up.d.ts +7 -0
- package/lib/utils/clean-up.js +24 -0
- package/lib/utils/errors.d.ts +28 -0
- package/lib/utils/errors.js +43 -0
- package/lib/utils/formatYesNo.d.ts +8 -0
- package/lib/utils/formatYesNo.js +12 -0
- package/lib/utils/generate-address.d.ts +19 -0
- package/lib/utils/generate-address.js +97 -0
- package/lib/utils/get-financial-institution.d.ts +8 -0
- package/lib/utils/get-financial-institution.js +17 -0
- package/lib/utils/is-asset-type.d.ts +25 -0
- package/lib/utils/is-asset-type.js +46 -0
- package/lib/utils/is-income-type.d.ts +73 -0
- package/lib/utils/is-income-type.js +134 -0
- package/lib/utils/iso-date.d.ts +7 -0
- package/lib/utils/iso-date.js +12 -0
- package/lib/utils/normalise-date.d.ts +8 -0
- package/lib/utils/normalise-date.js +17 -0
- package/lib/utils/round-decimal.d.ts +6 -0
- package/lib/utils/round-decimal.js +12 -0
- package/package.json +78 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.maritalStatusMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
5
|
+
const public_applicant_1 = require("../events/public-applicant");
|
|
6
|
+
exports.maritalStatusMapping = {
|
|
7
|
+
[public_applicant_1.MaritalStatus.DeFacto]: lixi_internal_request_1.MaritalStatusList.DeFacto,
|
|
8
|
+
[public_applicant_1.MaritalStatus.Divorced]: lixi_internal_request_1.MaritalStatusList.Divorced,
|
|
9
|
+
[public_applicant_1.MaritalStatus.Married]: lixi_internal_request_1.MaritalStatusList.Married,
|
|
10
|
+
[public_applicant_1.MaritalStatus.Single]: lixi_internal_request_1.MaritalStatusList.Single,
|
|
11
|
+
[public_applicant_1.MaritalStatus.Unknown]: lixi_internal_request_1.MaritalStatusList.Unknown,
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postcodeMapping = void 0;
|
|
4
|
+
// Mapping the postcode based on the state if not specified.
|
|
5
|
+
const public_required_document_1 = require("../events/public-required-document");
|
|
6
|
+
exports.postcodeMapping = {
|
|
7
|
+
[public_required_document_1.AustralianState.Act]: '2600',
|
|
8
|
+
[public_required_document_1.AustralianState.Nsw]: '2000',
|
|
9
|
+
[public_required_document_1.AustralianState.NT]: '0800',
|
|
10
|
+
[public_required_document_1.AustralianState.Qld]: '4000',
|
|
11
|
+
[public_required_document_1.AustralianState.Sa]: '5000',
|
|
12
|
+
[public_required_document_1.AustralianState.Tas]: '7000',
|
|
13
|
+
[public_required_document_1.AustralianState.Vic]: '3000',
|
|
14
|
+
[public_required_document_1.AustralianState.Wa]: '6000',
|
|
15
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PaymentTypeList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { PaymentType } from '../events/public-application';
|
|
3
|
+
type PreferredRepaymentMapping = {
|
|
4
|
+
[key in PaymentType]: PaymentTypeList;
|
|
5
|
+
};
|
|
6
|
+
export declare const preferredRepaymentMapping: PreferredRepaymentMapping;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.preferredRepaymentMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
5
|
+
const public_application_1 = require("../events/public-application");
|
|
6
|
+
exports.preferredRepaymentMapping = {
|
|
7
|
+
[public_application_1.PaymentType.InterestOnly]: lixi_internal_request_1.PaymentTypeList.InterestOnly,
|
|
8
|
+
[public_application_1.PaymentType.PrincipalAndInterest]: lixi_internal_request_1.PaymentTypeList.PrincipalAndInterest,
|
|
9
|
+
[public_application_1.PaymentType.StillDeciding]: lixi_internal_request_1.PaymentTypeList.PrincipalAndInterest,
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DocumentTypeList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { IDType } from '../events/public-required-document';
|
|
3
|
+
type ProofOfIdentityMapping = {
|
|
4
|
+
[key in IDType]: DocumentTypeList;
|
|
5
|
+
};
|
|
6
|
+
export declare const proofOfIdentityMapping: ProofOfIdentityMapping;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.proofOfIdentityMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
5
|
+
const public_required_document_1 = require("../events/public-required-document");
|
|
6
|
+
exports.proofOfIdentityMapping = {
|
|
7
|
+
[public_required_document_1.IDType.AustralianDriverLicense]: lixi_internal_request_1.DocumentTypeList.AustralianDriversLicence,
|
|
8
|
+
[public_required_document_1.IDType.NationalIDCard]: lixi_internal_request_1.DocumentTypeList.NationalIdentityCard,
|
|
9
|
+
[public_required_document_1.IDType.Passport]: lixi_internal_request_1.DocumentTypeList.AustralianPassport,
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropertyExpenseCategoryList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
2
|
+
import { PropertyExpenseType } from '../events/public-asset';
|
|
3
|
+
type PropertyExpenseCategoryMapping = {
|
|
4
|
+
[key in PropertyExpenseType]: PropertyExpenseCategoryList;
|
|
5
|
+
};
|
|
6
|
+
export declare const propertyExpenseCategoryMapping: PropertyExpenseCategoryMapping;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propertyExpenseCategoryMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/integrations-credit-protocol/types/lixi-internal-request");
|
|
5
|
+
const public_asset_1 = require("../events/public-asset");
|
|
6
|
+
exports.propertyExpenseCategoryMapping = {
|
|
7
|
+
[public_asset_1.PropertyExpenseType.BodyCorporateFeesStrataFeesAndLandTax]: lixi_internal_request_1.PropertyExpenseCategoryList.BodyCorporateFeesStrataFeesAndLandTax,
|
|
8
|
+
[public_asset_1.PropertyExpenseType.InvestmentPropertyRunningCosts]: lixi_internal_request_1.PropertyExpenseCategoryList.RunningCosts,
|
|
9
|
+
[public_asset_1.PropertyExpenseType.PrimaryResidenceRunningCosts]: lixi_internal_request_1.PropertyExpenseCategoryList.RunningCosts,
|
|
10
|
+
[public_asset_1.PropertyExpenseType.SecondaryResidenceRunningCosts]: lixi_internal_request_1.PropertyExpenseCategoryList.RunningCosts,
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FinancialAssetTypeList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { AssetType } from '../events/public-asset';
|
|
3
|
+
type FinancialAssetMapping = {
|
|
4
|
+
[key in AssetType]: FinancialAssetTypeList;
|
|
5
|
+
};
|
|
6
|
+
export declare const financialAssetMapping: Partial<FinancialAssetMapping>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.financialAssetMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
5
|
+
const public_asset_1 = require("../events/public-asset");
|
|
6
|
+
exports.financialAssetMapping = {
|
|
7
|
+
[public_asset_1.AssetType.Shares]: lixi_internal_request_1.FinancialAssetTypeList.SharesAndDebentures,
|
|
8
|
+
[public_asset_1.AssetType.Superannuation]: lixi_internal_request_1.FinancialAssetTypeList.Superannuation,
|
|
9
|
+
[public_asset_1.AssetType.TermDeposit]: lixi_internal_request_1.FinancialAssetTypeList.TermDeposit,
|
|
10
|
+
[public_asset_1.AssetType.SavingCheckAccount]: lixi_internal_request_1.FinancialAssetTypeList.SavingsAccount,
|
|
11
|
+
[public_asset_1.AssetType.ManagedFunds]: lixi_internal_request_1.FinancialAssetTypeList.ManagedFunds,
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PrimaryPurposeRealEstateAssetList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { PrimaryPurpose } from '../events/public-asset';
|
|
3
|
+
type PrimaryPurposeMapping = {
|
|
4
|
+
[key in PrimaryPurpose]: PrimaryPurposeRealEstateAssetList;
|
|
5
|
+
};
|
|
6
|
+
export declare const primaryPurposeMapping: PrimaryPurposeMapping;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.primaryPurposeMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
5
|
+
const public_asset_1 = require("../events/public-asset");
|
|
6
|
+
exports.primaryPurposeMapping = {
|
|
7
|
+
[public_asset_1.PrimaryPurpose.Investment]: lixi_internal_request_1.PrimaryPurposeRealEstateAssetList.Investment,
|
|
8
|
+
[public_asset_1.PrimaryPurpose.OwnerOccupied]: lixi_internal_request_1.PrimaryPurposeRealEstateAssetList.OwnerOccupied,
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RealEstateAssetStatusList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { PropertyStatus } from '../events/public-asset';
|
|
3
|
+
type PropertyStatusMapping = {
|
|
4
|
+
[key in PropertyStatus]: RealEstateAssetStatusList;
|
|
5
|
+
};
|
|
6
|
+
export declare const propertyStatusMapping: PropertyStatusMapping;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propertyStatusMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
5
|
+
const public_asset_1 = require("../events/public-asset");
|
|
6
|
+
exports.propertyStatusMapping = {
|
|
7
|
+
[public_asset_1.PropertyStatus.Established]: lixi_internal_request_1.RealEstateAssetStatusList.Established,
|
|
8
|
+
[public_asset_1.PropertyStatus.NewBuilding]: lixi_internal_request_1.RealEstateAssetStatusList.NewBuilding,
|
|
9
|
+
[public_asset_1.PropertyStatus.VacantLand]: lixi_internal_request_1.RealEstateAssetStatusList.VacantLand,
|
|
10
|
+
[public_asset_1.PropertyStatus.OffThePlan]: lixi_internal_request_1.RealEstateAssetStatusList.OffThePlan,
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropertyType } from '../events/public-asset';
|
|
2
|
+
import { ResidentialTypeList, Custom2PropertyTypeNameList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
+
type PropertyTypeMapping = {
|
|
4
|
+
[key in PropertyType]: ResidentialTypeList | Custom2PropertyTypeNameList;
|
|
5
|
+
};
|
|
6
|
+
export declare const propertyTypeMapping: PropertyTypeMapping;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propertyTypeMapping = void 0;
|
|
4
|
+
const public_asset_1 = require("../events/public-asset");
|
|
5
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
6
|
+
exports.propertyTypeMapping = {
|
|
7
|
+
[public_asset_1.PropertyType.ApartmentUnitLessThan50M2]: lixi_internal_request_1.ResidentialTypeList.HighDensityApartment,
|
|
8
|
+
[public_asset_1.PropertyType.ApartmentUnitMoreThan50M2]: lixi_internal_request_1.ResidentialTypeList.ApartmentUnitFlat,
|
|
9
|
+
[public_asset_1.PropertyType.Duplex]: lixi_internal_request_1.ResidentialTypeList.Duplex,
|
|
10
|
+
[public_asset_1.PropertyType.FullyDetachedHouse]: lixi_internal_request_1.ResidentialTypeList.FullyDetachedHouse,
|
|
11
|
+
[public_asset_1.PropertyType.KitHome]: lixi_internal_request_1.ResidentialTypeList.KitHome,
|
|
12
|
+
[public_asset_1.PropertyType.Land]: lixi_internal_request_1.ResidentialTypeList.VacantLand,
|
|
13
|
+
[public_asset_1.PropertyType.Studio]: lixi_internal_request_1.ResidentialTypeList.BedsitterBachelor,
|
|
14
|
+
[public_asset_1.PropertyType.SemiDetachedHouse]: lixi_internal_request_1.ResidentialTypeList.SemiDetachedHouse,
|
|
15
|
+
[public_asset_1.PropertyType.ServicedApartment]: lixi_internal_request_1.ResidentialTypeList.ServicedApartment,
|
|
16
|
+
[public_asset_1.PropertyType.StudentAccommodation]: lixi_internal_request_1.ResidentialTypeList.UnitStudentAccommodation,
|
|
17
|
+
[public_asset_1.PropertyType.Terrace]: lixi_internal_request_1.ResidentialTypeList.Terrace,
|
|
18
|
+
[public_asset_1.PropertyType.Townhouse]: lixi_internal_request_1.ResidentialTypeList.Townhouse,
|
|
19
|
+
[public_asset_1.PropertyType.Villa]: lixi_internal_request_1.ResidentialTypeList.Villa,
|
|
20
|
+
[public_asset_1.PropertyType.WarehouseApartment]: lixi_internal_request_1.ResidentialTypeList.StudioWarehouseApartment,
|
|
21
|
+
[public_asset_1.PropertyType.PropertyOver10_Ha]: lixi_internal_request_1.Custom2PropertyTypeNameList.PropertyOver10HA,
|
|
22
|
+
[public_asset_1.PropertyType.MultiDwellingSingleTitle]: lixi_internal_request_1.Custom2PropertyTypeNameList.MultiDwellingSingleTitle,
|
|
23
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ResidencyStatus } from '../events/public-applicant';
|
|
2
|
+
import { ResidencyStatusList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
+
type ResidencyStatusMapping = {
|
|
4
|
+
[key in ResidencyStatus]: ResidencyStatusList;
|
|
5
|
+
};
|
|
6
|
+
export declare const residencyStatusMapping: ResidencyStatusMapping;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.residencyStatusMapping = void 0;
|
|
4
|
+
const public_applicant_1 = require("../events/public-applicant");
|
|
5
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
6
|
+
exports.residencyStatusMapping = {
|
|
7
|
+
[public_applicant_1.ResidencyStatus.AustralianCitizen]: lixi_internal_request_1.ResidencyStatusList.PermanentlyInAustralia,
|
|
8
|
+
[public_applicant_1.ResidencyStatus.PermanentResident]: lixi_internal_request_1.ResidencyStatusList.PermanentlyInAustralia,
|
|
9
|
+
[public_applicant_1.ResidencyStatus.TemporaryResident]: lixi_internal_request_1.ResidencyStatusList.TemporarilyInAustralia,
|
|
10
|
+
[public_applicant_1.ResidencyStatus.Unknown]: lixi_internal_request_1.ResidencyStatusList.NonResident,
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IDTitle } from '../events/public-required-document';
|
|
2
|
+
import { GenderList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
+
type TitleGenderMapping = {
|
|
4
|
+
[key in IDTitle]: GenderList;
|
|
5
|
+
};
|
|
6
|
+
export declare const titleGenderMapping: Partial<TitleGenderMapping>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.titleGenderMapping = void 0;
|
|
4
|
+
const public_required_document_1 = require("../events/public-required-document");
|
|
5
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
6
|
+
exports.titleGenderMapping = {
|
|
7
|
+
[public_required_document_1.IDTitle.Miss]: lixi_internal_request_1.GenderList.Female,
|
|
8
|
+
[public_required_document_1.IDTitle.Mr]: lixi_internal_request_1.GenderList.Male,
|
|
9
|
+
[public_required_document_1.IDTitle.Mrs]: lixi_internal_request_1.GenderList.Female,
|
|
10
|
+
[public_required_document_1.IDTitle.MS]: lixi_internal_request_1.GenderList.Female,
|
|
11
|
+
[public_required_document_1.IDTitle.Other]: lixi_internal_request_1.GenderList.Undisclosed,
|
|
12
|
+
[public_required_document_1.IDTitle.Unknown]: lixi_internal_request_1.GenderList.Undisclosed,
|
|
13
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Title } from '../events/public-applicant';
|
|
2
|
+
import { NameTitleList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
3
|
+
type TitleMapping = {
|
|
4
|
+
[key in Title]: NameTitleList;
|
|
5
|
+
};
|
|
6
|
+
export declare const titleMapping: TitleMapping;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.titleMapping = void 0;
|
|
4
|
+
const public_applicant_1 = require("../events/public-applicant");
|
|
5
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
6
|
+
exports.titleMapping = {
|
|
7
|
+
[public_applicant_1.Title.DR]: lixi_internal_request_1.NameTitleList.DR,
|
|
8
|
+
[public_applicant_1.Title.Miss]: lixi_internal_request_1.NameTitleList.Miss,
|
|
9
|
+
[public_applicant_1.Title.Mr]: lixi_internal_request_1.NameTitleList.Mr,
|
|
10
|
+
[public_applicant_1.Title.Mrs]: lixi_internal_request_1.NameTitleList.Mrs,
|
|
11
|
+
[public_applicant_1.Title.MS]: lixi_internal_request_1.NameTitleList.MS,
|
|
12
|
+
[public_applicant_1.Title.Unknown]: lixi_internal_request_1.NameTitleList.Other,
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toBePurchasedMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
5
|
+
exports.toBePurchasedMapping = {
|
|
6
|
+
true: lixi_internal_request_1.AssetTransactionList.Purchasing,
|
|
7
|
+
false: lixi_internal_request_1.AssetTransactionList.Owns,
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toBeUsedAsSecurityMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/integrations-credit-protocol/types/lixi-internal-request");
|
|
5
|
+
exports.toBeUsedAsSecurityMapping = {
|
|
6
|
+
true: lixi_internal_request_1.YesNoList.Yes,
|
|
7
|
+
false: lixi_internal_request_1.YesNoList.No,
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PurposeOfApplicationList } from '@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request';
|
|
2
|
+
import { PrimaryPurpose } from '../events/public-application';
|
|
3
|
+
type TransactionTypeMapping = {
|
|
4
|
+
[key in PrimaryPurpose]: PurposeOfApplicationList;
|
|
5
|
+
};
|
|
6
|
+
export declare const transactionTypeMapping: TransactionTypeMapping;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transactionTypeMapping = void 0;
|
|
4
|
+
const lixi_internal_request_1 = require("@lendi/act-eac-integrations-protocol/lib/types/lixi-internal-request");
|
|
5
|
+
const public_application_1 = require("../events/public-application");
|
|
6
|
+
exports.transactionTypeMapping = {
|
|
7
|
+
[public_application_1.PrimaryPurpose.NewPurchase]: lixi_internal_request_1.PurposeOfApplicationList.PurchaseRealEstate,
|
|
8
|
+
[public_application_1.PrimaryPurpose.Refinance]: lixi_internal_request_1.PurposeOfApplicationList.RefinanceHomeLoan,
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TrustType } from '../events/public-applicant';
|
|
2
|
+
import { TrustStructureList } from '@lendi/integrations-credit-protocol/types/lixi-internal-request';
|
|
3
|
+
type TrustTypeMapping = {
|
|
4
|
+
[key in TrustType]: TrustStructureList;
|
|
5
|
+
};
|
|
6
|
+
export declare const trustTypeMapping: Partial<TrustTypeMapping>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.trustTypeMapping = void 0;
|
|
4
|
+
const public_applicant_1 = require("../events/public-applicant");
|
|
5
|
+
const lixi_internal_request_1 = require("@lendi/integrations-credit-protocol/types/lixi-internal-request");
|
|
6
|
+
exports.trustTypeMapping = {
|
|
7
|
+
[public_applicant_1.TrustType.CashManagementTrust]: lixi_internal_request_1.TrustStructureList.CashManagement,
|
|
8
|
+
[public_applicant_1.TrustType.DiscretionaryTrust]: lixi_internal_request_1.TrustStructureList.Discretionary,
|
|
9
|
+
[public_applicant_1.TrustType.Fixed]: lixi_internal_request_1.TrustStructureList.Fixed,
|
|
10
|
+
[public_applicant_1.TrustType.Hybrid]: lixi_internal_request_1.TrustStructureList.Hybrid,
|
|
11
|
+
[public_applicant_1.TrustType.SimpleOrBare]: lixi_internal_request_1.TrustStructureList.Simple,
|
|
12
|
+
[public_applicant_1.TrustType.SuperannuationTrusts]: lixi_internal_request_1.TrustStructureList.SuperannuationFund,
|
|
13
|
+
[public_applicant_1.TrustType.Unit]: lixi_internal_request_1.TrustStructureList.Unit,
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.verificationMapping = void 0;
|
|
4
|
+
const public_required_document_1 = require("../events/public-required-document");
|
|
5
|
+
const lixi_internal_request_1 = require("@lendi/integrations-credit-protocol/types/lixi-internal-request");
|
|
6
|
+
exports.verificationMapping = {
|
|
7
|
+
[public_required_document_1.Status.Expired]: lixi_internal_request_1.YesNoList.No,
|
|
8
|
+
[public_required_document_1.Status.FailedVerification]: lixi_internal_request_1.YesNoList.No,
|
|
9
|
+
[public_required_document_1.Status.NotRequired]: lixi_internal_request_1.YesNoList.No,
|
|
10
|
+
[public_required_document_1.Status.PendingUpload]: lixi_internal_request_1.YesNoList.No,
|
|
11
|
+
[public_required_document_1.Status.Verified]: lixi_internal_request_1.YesNoList.Yes,
|
|
12
|
+
[public_required_document_1.Status.PendingVerification]: lixi_internal_request_1.YesNoList.No,
|
|
13
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delete.
|
|
3
|
+
*/
|
|
4
|
+
export interface ApplicantDelete {
|
|
5
|
+
payload: Payload;
|
|
6
|
+
type: Type;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
export interface Payload {
|
|
13
|
+
/**
|
|
14
|
+
* uuid of application
|
|
15
|
+
*/
|
|
16
|
+
applicationId: string;
|
|
17
|
+
id: string;
|
|
18
|
+
meta?: ApplicantMeta;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The metadata of the applicant
|
|
22
|
+
*/
|
|
23
|
+
export interface ApplicantMeta {
|
|
24
|
+
/**
|
|
25
|
+
* uuid of user who made the action (delete)
|
|
26
|
+
*/
|
|
27
|
+
actionedBy: string;
|
|
28
|
+
/**
|
|
29
|
+
* role of the user that made the action
|
|
30
|
+
*/
|
|
31
|
+
actionedByRole: ActionedByRole;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* role of the user that made the action
|
|
35
|
+
*/
|
|
36
|
+
export declare enum ActionedByRole {
|
|
37
|
+
Customer = "customer",
|
|
38
|
+
Team = "team"
|
|
39
|
+
}
|
|
40
|
+
export declare enum Type {
|
|
41
|
+
DeleteApplicant = "DeleteApplicant"
|
|
42
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Type = exports.ActionedByRole = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* role of the user that made the action
|
|
6
|
+
*/
|
|
7
|
+
var ActionedByRole;
|
|
8
|
+
(function (ActionedByRole) {
|
|
9
|
+
ActionedByRole["Customer"] = "customer";
|
|
10
|
+
ActionedByRole["Team"] = "team";
|
|
11
|
+
})(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
|
|
12
|
+
var Type;
|
|
13
|
+
(function (Type) {
|
|
14
|
+
Type["DeleteApplicant"] = "DeleteApplicant";
|
|
15
|
+
})(Type = exports.Type || (exports.Type = {}));
|