@pxp-nd/flow 1.0.55 → 1.0.56
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/dist/controllers/Node.js +15 -6
- package/package.json +1 -1
package/dist/controllers/Node.js
CHANGED
|
@@ -81,6 +81,7 @@ let Node = class Node extends core_1.Controller {
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
async getParameterizedNode(params, manager) {
|
|
84
|
+
console.log('getParameterizedNode llega');
|
|
84
85
|
lodash_1.default.templateSettings.interpolate = /{{([\s\S]+?)}}/g;
|
|
85
86
|
const { nodeId, flowId, substitutionsSchemaJson = {} } = params;
|
|
86
87
|
const tNodeData = (0, core_1.__)(Node_1.default.findOne(nodeId));
|
|
@@ -106,6 +107,11 @@ let Node = class Node extends core_1.Controller {
|
|
|
106
107
|
tFieldMapData
|
|
107
108
|
]);*/
|
|
108
109
|
const { actionConfigJson, action: { schemaJson, configJsonTemplate, actionType: { schemaJson: schemaJsonFromActionType } } } = nodeData;
|
|
110
|
+
console.log('nodeData actionConfigJson', actionConfigJson);
|
|
111
|
+
console.log('action schemaJson', schemaJson);
|
|
112
|
+
console.log('action configJsonTemplate', configJsonTemplate);
|
|
113
|
+
console.log('actionType schemaJsonFromActionType', schemaJsonFromActionType);
|
|
114
|
+
console.log('actionType fieldMapData', fieldMapData);
|
|
109
115
|
const actionConfigJsonObject = actionConfigJson ? JSON.parse(actionConfigJson) : {};
|
|
110
116
|
const configJsonTemplateObject = configJsonTemplate ? JSON.parse(configJsonTemplate) : {};
|
|
111
117
|
let schemaJsonFromActionTypeObject = schemaJsonFromActionType ? JSON.parse(lodash_1.default.template(schemaJsonFromActionType)(substitutionsSchemaJson)) : {};
|
|
@@ -184,6 +190,7 @@ let Node = class Node extends core_1.Controller {
|
|
|
184
190
|
}
|
|
185
191
|
return undefined;
|
|
186
192
|
};
|
|
193
|
+
console.log('mergeValues', mergeValues);
|
|
187
194
|
for (const [nameKey, value] of Object.entries(mergeValues)) {
|
|
188
195
|
if (schemaJsonObject[nameKey]) {
|
|
189
196
|
const descValue = await (0, core_1.__)(findFieldInConfigForComponent(schemaJsonObject[nameKey], value));
|
|
@@ -195,15 +202,17 @@ let Node = class Node extends core_1.Controller {
|
|
|
195
202
|
};
|
|
196
203
|
}
|
|
197
204
|
}
|
|
198
|
-
|
|
199
|
-
|
|
205
|
+
console.log('111 schemaJsonObject', schemaJsonObject);
|
|
206
|
+
/*Object.entries(schemaJsonObject)
|
|
207
|
+
.filter(([, value]: [nameKey: string, value: any]) => value.initialValue === undefined && value.fromFieldMap === undefined && value.fieldMappingType)
|
|
200
208
|
.forEach(([nameKey]) => {
|
|
201
|
-
|
|
202
|
-
|
|
209
|
+
const hasUniqueByTypeInMappingData = findFieldMapUniqueByType(schemaJsonObject[nameKey].fieldMappingType);
|
|
210
|
+
schemaJsonObject[nameKey] = {
|
|
203
211
|
...schemaJsonObject[nameKey],
|
|
204
212
|
...(hasUniqueByTypeInMappingData && { fromFieldMap: true, ...hasUniqueByTypeInMappingData }),
|
|
205
|
-
|
|
206
|
-
|
|
213
|
+
};
|
|
214
|
+
})*/
|
|
215
|
+
console.log('222 schemaJsonObject', schemaJsonObject);
|
|
207
216
|
return {
|
|
208
217
|
actionConfigJsonObject,
|
|
209
218
|
configJsonTemplateObject,
|