@prismatic-io/spectral 8.0.0-preview3 → 8.0.0-preview4
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.
|
@@ -218,7 +218,7 @@ const flowFunctionKey = (flowName, functionName) => {
|
|
|
218
218
|
};
|
|
219
219
|
/** Creates the structure necessary to import a Component as part of a
|
|
220
220
|
* Code Native integration. */
|
|
221
|
-
const codeNativeIntegrationComponent = ({ iconPath, description, flows = [], dataSources = {}, connections = [], }, referenceKey) => {
|
|
221
|
+
const codeNativeIntegrationComponent = ({ name, iconPath, description, flows = [], dataSources = {}, connections = [], }, referenceKey) => {
|
|
222
222
|
const convertedActions = flows.reduce((result, { name, action }) => {
|
|
223
223
|
const actionKey = flowFunctionKey(name, "action");
|
|
224
224
|
return Object.assign(Object.assign({}, result), { [actionKey]: convertAction(actionKey, Object.assign(Object.assign({}, action), { display: { label: "action", description: "" }, inputs: {} })) });
|
|
@@ -233,7 +233,11 @@ const codeNativeIntegrationComponent = ({ iconPath, description, flows = [], dat
|
|
|
233
233
|
const convertedDataSources = Object.entries(dataSources).reduce((result, [dataSourceKey, dataSource]) => (Object.assign(Object.assign({}, result), { [dataSourceKey]: convertDataSource(dataSourceKey, Object.assign(Object.assign({}, dataSource), { inputs: {} })) })), {});
|
|
234
234
|
return {
|
|
235
235
|
key: referenceKey,
|
|
236
|
-
display: {
|
|
236
|
+
display: {
|
|
237
|
+
label: referenceKey,
|
|
238
|
+
iconPath,
|
|
239
|
+
description: description || name,
|
|
240
|
+
},
|
|
237
241
|
connections: connections.map(convertConnection),
|
|
238
242
|
actions: convertedActions,
|
|
239
243
|
triggers: convertedTriggers,
|