@lendi/act-credit-decisions-transform 1.9.9 → 1.9.11
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 +64 -0
- package/lib/transform-events/transform-bcm-status-updated.d.ts +1 -1
- package/lib/transform-events/transform-bcm-status-updated.js +2 -2
- package/lib/types/events/{bcm-status-updated.d.ts → bcm-application-status-updated.d.ts} +31 -7
- package/lib/types/events/{bcm-status-updated.js → bcm-application-status-updated.js} +15 -5
- package/package.json +1 -1
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`
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.transformBcmStatusUpdated = void 0;
|
|
13
13
|
const application_paths_1 = require("@lendi/act-eac-integrations-protocol/lib/utils/application-paths");
|
|
14
14
|
const lodash_1 = require("lodash");
|
|
15
|
-
const
|
|
15
|
+
const bcm_application_status_updated_1 = require("../types/events/bcm-application-status-updated");
|
|
16
16
|
const launch_darkly_1 = require("worker/src/services/launch-darkly");
|
|
17
17
|
const application_workflow_1 = require("../types/events/application-workflow");
|
|
18
18
|
/**
|
|
@@ -29,7 +29,7 @@ function transformBcmStatusUpdated(bcmStatusUpdatedPayload) {
|
|
|
29
29
|
return partialApplication;
|
|
30
30
|
}
|
|
31
31
|
const { applicationId, message } = bcmStatusUpdatedPayload;
|
|
32
|
-
if (message !==
|
|
32
|
+
if (message !== bcm_application_status_updated_1.Message.Declined) {
|
|
33
33
|
return partialApplication;
|
|
34
34
|
}
|
|
35
35
|
(0, lodash_1.set)(partialApplication, application_paths_1.paths.ApplicationId, applicationId);
|
|
@@ -1,17 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Event produced to update status of application from an external party.
|
|
3
|
+
*/
|
|
4
|
+
export interface BcmApplicationStatusUpdated {
|
|
4
5
|
payload: Payload;
|
|
6
|
+
type: BcmApplicationStatusUpdatedType;
|
|
7
|
+
/**
|
|
8
|
+
* Current schema version.
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
5
11
|
}
|
|
6
12
|
export interface Payload {
|
|
13
|
+
/**
|
|
14
|
+
* json stringified string of a json object that captures any additional information from
|
|
15
|
+
* upstream.
|
|
16
|
+
*/
|
|
17
|
+
additionalInformation?: string;
|
|
7
18
|
applicationId: string;
|
|
8
19
|
description: string;
|
|
20
|
+
/**
|
|
21
|
+
* The internal reference id assigned by the lender after it is submitted to them by the
|
|
22
|
+
* gateway. This identifier is required by team members to reference a specific application
|
|
23
|
+
* when communicating with a lender.
|
|
24
|
+
*/
|
|
25
|
+
lenderAssignedId: string;
|
|
9
26
|
message: Message;
|
|
10
27
|
publishedAt: string;
|
|
28
|
+
source: Source;
|
|
11
29
|
sourceInternalId: string;
|
|
12
|
-
|
|
13
|
-
source: string;
|
|
14
|
-
type: string;
|
|
30
|
+
type: PayloadType;
|
|
15
31
|
}
|
|
16
32
|
export declare enum Message {
|
|
17
33
|
ApplicationReceived = "Application Received",
|
|
@@ -34,6 +50,14 @@ export declare enum Message {
|
|
|
34
50
|
ValuationReceived = "Valuation Received",
|
|
35
51
|
Withdrawn = "Withdrawn"
|
|
36
52
|
}
|
|
37
|
-
export declare enum
|
|
53
|
+
export declare enum Source {
|
|
54
|
+
Nextgen = "Nextgen",
|
|
55
|
+
Simpology = "Simpology"
|
|
56
|
+
}
|
|
57
|
+
export declare enum PayloadType {
|
|
58
|
+
Event = "event",
|
|
59
|
+
Status = "status"
|
|
60
|
+
}
|
|
61
|
+
export declare enum BcmApplicationStatusUpdatedType {
|
|
38
62
|
BcmApplicationStatusUpdated = "BcmApplicationStatusUpdated"
|
|
39
63
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BcmApplicationStatusUpdatedType = exports.PayloadType = exports.Source = exports.Message = void 0;
|
|
4
4
|
var Message;
|
|
5
5
|
(function (Message) {
|
|
6
6
|
Message["ApplicationReceived"] = "Application Received";
|
|
@@ -23,7 +23,17 @@ var Message;
|
|
|
23
23
|
Message["ValuationReceived"] = "Valuation Received";
|
|
24
24
|
Message["Withdrawn"] = "Withdrawn";
|
|
25
25
|
})(Message || (exports.Message = Message = {}));
|
|
26
|
-
var
|
|
27
|
-
(function (
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
var Source;
|
|
27
|
+
(function (Source) {
|
|
28
|
+
Source["Nextgen"] = "Nextgen";
|
|
29
|
+
Source["Simpology"] = "Simpology";
|
|
30
|
+
})(Source || (exports.Source = Source = {}));
|
|
31
|
+
var PayloadType;
|
|
32
|
+
(function (PayloadType) {
|
|
33
|
+
PayloadType["Event"] = "event";
|
|
34
|
+
PayloadType["Status"] = "status";
|
|
35
|
+
})(PayloadType || (exports.PayloadType = PayloadType = {}));
|
|
36
|
+
var BcmApplicationStatusUpdatedType;
|
|
37
|
+
(function (BcmApplicationStatusUpdatedType) {
|
|
38
|
+
BcmApplicationStatusUpdatedType["BcmApplicationStatusUpdated"] = "BcmApplicationStatusUpdated";
|
|
39
|
+
})(BcmApplicationStatusUpdatedType || (exports.BcmApplicationStatusUpdatedType = BcmApplicationStatusUpdatedType = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lendi/act-credit-decisions-transform",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.11",
|
|
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",
|