@lendi/integrations-transform 1.3.0 → 1.3.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadClass as ApplicationWorkflow } from '../types/events/application-workflow';
|
|
2
2
|
/**
|
|
3
|
-
* Generates a partial internal request from a partial
|
|
3
|
+
* Generates a partial internal request from a partial application workflow event.
|
|
4
4
|
*
|
|
5
5
|
* @return partialApplication: A partial internal request.
|
|
6
6
|
* @param applicationWorkflow: ApplicationWorkflow object.
|
|
@@ -4,7 +4,7 @@ exports.transformApplicationWorkflow = void 0;
|
|
|
4
4
|
var application_paths_1 = require("@lendi/integrations-protocol/lib/utils/application-paths");
|
|
5
5
|
var lodash_1 = require("lodash");
|
|
6
6
|
/**
|
|
7
|
-
* Generates a partial internal request from a partial
|
|
7
|
+
* Generates a partial internal request from a partial application workflow event.
|
|
8
8
|
*
|
|
9
9
|
* @return partialApplication: A partial internal request.
|
|
10
10
|
* @param applicationWorkflow: ApplicationWorkflow object.
|
|
@@ -20,7 +20,7 @@ function transformApplicationWorkflow(applicationWorkflow) {
|
|
|
20
20
|
if (opportunityMapping[key]) {
|
|
21
21
|
if (key === 'stage') {
|
|
22
22
|
(0, lodash_1.set)(partialApplication, "".concat(application_paths_1.paths.Instructions, ".@UniqueID"), "".concat(applicationWorkflow.applicationId, "-stage"));
|
|
23
|
-
(0, lodash_1.set)(partialApplication, "".concat(opportunityMapping[key], ".@Details"),
|
|
23
|
+
(0, lodash_1.set)(partialApplication, "".concat(opportunityMapping[key], ".@Details"), value || 'Unknown');
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
26
|
(0, lodash_1.set)(partialApplication, opportunityMapping[key], value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lendi/integrations-transform",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
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",
|