@prismatic-io/spectral 10.4.2 → 10.4.3-alpha.0
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.
|
@@ -64,7 +64,7 @@ const convertConfigPages = (pages, userLevelConfigured) => {
|
|
|
64
64
|
value: key,
|
|
65
65
|
}) })));
|
|
66
66
|
};
|
|
67
|
-
const codeNativeIntegrationYaml = ({ name, description, category, documentation, version, labels, endpointType, triggerPreprocessFlowConfig, flows, configPages, userLevelConfigPages, scopedConfigVars, componentRegistry = {}, }, referenceKey, configVars) => {
|
|
67
|
+
const codeNativeIntegrationYaml = ({ name, description, category, documentation, version, labels, endpointType, triggerPreprocessFlowConfig, flows, configPages, userLevelConfigPages, scopedConfigVars, instanceProfile = "Default Instance Profile", componentRegistry = {}, }, referenceKey, configVars) => {
|
|
68
68
|
// Find the preprocess flow config on the flow, if one exists.
|
|
69
69
|
const preprocessFlows = flows.filter((flow) => flow.preprocessFlowConfig);
|
|
70
70
|
// Do some validation of preprocess flow configs.
|
|
@@ -108,6 +108,7 @@ const codeNativeIntegrationYaml = ({ name, description, category, documentation,
|
|
|
108
108
|
externalCustomerUserIdField: fieldNameToReferenceInput(hasPreprocessFlow ? "onExecution" : "payload", preprocessFlowConfig === null || preprocessFlowConfig === void 0 ? void 0 : preprocessFlowConfig.externalCustomerUserIdField),
|
|
109
109
|
flowNameField: fieldNameToReferenceInput(hasPreprocessFlow ? "onExecution" : "payload", preprocessFlowConfig === null || preprocessFlowConfig === void 0 ? void 0 : preprocessFlowConfig.flowNameField),
|
|
110
110
|
flows: flows.map((flow) => (0, exports.convertFlow)(flow, componentRegistry, referenceKey)),
|
|
111
|
+
defaultInstanceProfile: instanceProfile,
|
|
111
112
|
configPages: [
|
|
112
113
|
...convertConfigPages(configPages, false),
|
|
113
114
|
...convertConfigPages(userLevelConfigPages, true),
|
|
@@ -30,6 +30,10 @@ export type IntegrationDefinition = {
|
|
|
30
30
|
userLevelConfigPages?: UserLevelConfigPages;
|
|
31
31
|
/** Scoped ConfigVars for this Integration. */
|
|
32
32
|
scopedConfigVars?: ScopedConfigVarMap;
|
|
33
|
+
/** Instance Profile used for this integration.
|
|
34
|
+
* @default "Default Instance Profile"
|
|
35
|
+
*/
|
|
36
|
+
instanceProfile?: string;
|
|
33
37
|
componentRegistry?: ComponentRegistry;
|
|
34
38
|
};
|
|
35
39
|
export type FlowOnExecution<TTriggerPayload extends TriggerPayload> = ActionPerformFunction<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismatic-io/spectral",
|
|
3
|
-
"version": "10.4.
|
|
3
|
+
"version": "10.4.3-alpha.0",
|
|
4
4
|
"description": "Utility library for building Prismatic connectors and code-native integrations",
|
|
5
5
|
"keywords": ["prismatic"],
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@types/jest": "29.5.12",
|
|
64
64
|
"@types/lodash": "4.17.0",
|
|
65
65
|
"@types/node": "14.14.35",
|
|
66
|
+
"@types/prettier": "2.6.2",
|
|
66
67
|
"@types/sax": "1.2.4",
|
|
67
68
|
"@types/url-join": "4.0.1",
|
|
68
69
|
"@types/uuid": "8.3.4",
|