@lendi/act-credit-decisions-transform 2.0.12 → 2.0.15
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/CHANGELOG.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# 1.9.0
|
|
2
|
+
|
|
3
|
+
Changes
|
|
4
|
+
|
|
5
|
+
- Clone from https://bitbucket.org/lendi-dev/integrations-shared-packages/commits/f1ac57093b49cc53f872cb3986d006ad90d49b10
|
|
6
|
+
|
|
7
|
+
# 1.8.6
|
|
8
|
+
|
|
9
|
+
Changes
|
|
10
|
+
|
|
11
|
+
- Update `merge-application` to merge the company applicant directors
|
|
12
|
+
|
|
13
|
+
# 1.8.5
|
|
14
|
+
|
|
15
|
+
Changes
|
|
16
|
+
|
|
17
|
+
- Update `transfrom-funding-position` to set pledge amount on application if it exists in property
|
|
18
|
+
|
|
19
|
+
# 1.8.4
|
|
20
|
+
|
|
21
|
+
Changes
|
|
22
|
+
|
|
23
|
+
- Update `applicant-event` to include SIMPLE_OR_BARE trust type and update mapping in transform
|
|
24
|
+
|
|
25
|
+
# 1.8.3
|
|
26
|
+
|
|
27
|
+
Changes
|
|
28
|
+
|
|
29
|
+
- Update `@lendi/transform-events` to support company applicant mappings
|
|
30
|
+
|
|
31
|
+
# 1.8.2
|
|
32
|
+
|
|
33
|
+
Changes
|
|
34
|
+
|
|
35
|
+
- Use `@lendi/integrations-protocol@2.7.4`
|
|
36
|
+
|
|
37
|
+
# 1.8.1
|
|
38
|
+
|
|
39
|
+
Changes
|
|
40
|
+
|
|
41
|
+
- Update `transformApplicationWorkflow` to support `applicationStatus`
|
|
42
|
+
- Use `@lendi/integrations-protocol@2.7.2`
|
|
43
|
+
|
|
44
|
+
# 1.7.3
|
|
45
|
+
|
|
46
|
+
Fix
|
|
47
|
+
|
|
48
|
+
- Remove some unnecessary `additionalProperties` from event schema to void AJV warning msg
|
|
49
|
+
|
|
50
|
+
# 1.7.0
|
|
51
|
+
|
|
52
|
+
BREAKING CHANGES
|
|
53
|
+
|
|
54
|
+
- Change to use `@lendi/integration-protocols@2.7.0` for better Identification fields support
|
|
55
|
+
|
|
56
|
+
# 1.6.0
|
|
57
|
+
|
|
58
|
+
BREAKING CHANGES
|
|
59
|
+
|
|
60
|
+
- Change to module `commonjs` to make it compatible with existing codebase
|
|
61
|
+
|
|
62
|
+
Changes
|
|
63
|
+
|
|
64
|
+
- Upgrade `@lendi/integrations-protocol` to `v2.6.4`
|
|
@@ -74,11 +74,15 @@ function getIncomeMapping(incomeType) {
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
if ((0, is_income_type_1.isFullDocOrLowDocIncome)(incomeType)) {
|
|
77
|
-
basePath = application_paths_1.paths.
|
|
77
|
+
basePath = application_paths_1.paths.SelfEmployed;
|
|
78
78
|
return {
|
|
79
|
+
/**
|
|
80
|
+
* @todo ACT1-758 map this income correctly for Full Doc and Low Doc
|
|
81
|
+
*/
|
|
79
82
|
bas: `${basePath}.Income[0].BusinessActivityStatement`,
|
|
80
|
-
companyId: `${basePath}.@UniqueID`,
|
|
81
83
|
incomes: `${basePath}.Income`,
|
|
84
|
+
// companyId: `${basePath}.@UniqueID`,
|
|
85
|
+
//
|
|
82
86
|
gross: `${basePath}.DeclaredIncome.@IncomeAmount`,
|
|
83
87
|
};
|
|
84
88
|
}
|
|
@@ -58,6 +58,7 @@ function transformLiability({ applicationId, id, liability }) {
|
|
|
58
58
|
}
|
|
59
59
|
// Default clearingFromThisLoan to No if the value is not present in the event.
|
|
60
60
|
(0, lodash_1.set)(partialApplication, liabilityMapping.clearingFromThisLoan, lixi_internal_request_1.YesNoList.No);
|
|
61
|
+
(0, lodash_1.set)(partialApplication, liabilityMapping.clearingFromOtherSource, lixi_internal_request_1.YesNoList.No);
|
|
61
62
|
for (const [key, value] of Object.entries(liability)) {
|
|
62
63
|
if (liabilityMapping[key]) {
|
|
63
64
|
switch (key) {
|
|
@@ -83,8 +84,7 @@ function transformLiability({ applicationId, id, liability }) {
|
|
|
83
84
|
(0, lodash_1.set)(partialApplication, liabilityMapping[key], value ? lixi_internal_request_1.YesNoList.Yes : lixi_internal_request_1.YesNoList.No);
|
|
84
85
|
break;
|
|
85
86
|
case 'clearingFromOtherSource':
|
|
86
|
-
|
|
87
|
-
(0, lodash_1.set)(partialApplication, liabilityMapping[key], lixi_internal_request_1.YesNoList.Yes);
|
|
87
|
+
(0, lodash_1.set)(partialApplication, liabilityMapping[key], value === public_liability_1.ClearingFromOtherSource.PayingOut ? lixi_internal_request_1.YesNoList.Yes : lixi_internal_request_1.YesNoList.No);
|
|
88
88
|
break;
|
|
89
89
|
case 'repaymentFrequency':
|
|
90
90
|
(0, lodash_1.set)(partialApplication, liabilityMapping[key], alieo_frequency_1.liabilityFrequencyMapping[value]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lendi/act-credit-decisions-transform",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
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",
|