@lendi/act-credit-decisions-transform 2.0.1 → 2.0.4
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.
|
@@ -13,7 +13,6 @@ 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
15
|
const bcm_application_status_updated_1 = require("../types/events/bcm-application-status-updated");
|
|
16
|
-
const launch_darkly_1 = require("worker/src/services/launch-darkly");
|
|
17
16
|
const application_workflow_1 = require("../types/events/application-workflow");
|
|
18
17
|
/**
|
|
19
18
|
* Generates a partial application from an BCMStatusUpdated event
|
|
@@ -23,11 +22,7 @@ const application_workflow_1 = require("../types/events/application-workflow");
|
|
|
23
22
|
*/
|
|
24
23
|
function transformBcmStatusUpdated(bcmStatusUpdatedPayload) {
|
|
25
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
const bcmForDeclinedStatusEnabled = yield launch_darkly_1.ldServiceClient.getFeatureFlag(launch_darkly_1.FeatureFlags.BCM_FOR_DECLINED_STATUS);
|
|
27
25
|
const partialApplication = {};
|
|
28
|
-
if (!bcmForDeclinedStatusEnabled) {
|
|
29
|
-
return partialApplication;
|
|
30
|
-
}
|
|
31
26
|
const { applicationId, message } = bcmStatusUpdatedPayload;
|
|
32
27
|
if (message !== bcm_application_status_updated_1.Message.Declined) {
|
|
33
28
|
return partialApplication;
|
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.4",
|
|
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",
|