@prismatic-io/spectral 8.0.0-preview10 → 8.0.0-preview11
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.
|
@@ -144,6 +144,7 @@ const convertFlow = (flow, referenceKey) => {
|
|
|
144
144
|
delete result.errorConfig;
|
|
145
145
|
const triggerStep = {
|
|
146
146
|
name: "On Trigger",
|
|
147
|
+
stableKey: `${flow.stableKey}-onTrigger`,
|
|
147
148
|
description: "The function that will be executed by the flow to return an HTTP response.",
|
|
148
149
|
isTrigger: true,
|
|
149
150
|
errorConfig: "errorConfig" in flow ? Object.assign({}, flow.errorConfig) : undefined,
|
|
@@ -173,6 +174,7 @@ const convertFlow = (flow, referenceKey) => {
|
|
|
173
174
|
component: { key: referenceKey, version: "LATEST", isPublic: false },
|
|
174
175
|
},
|
|
175
176
|
name: "On Execution",
|
|
177
|
+
stableKey: `${flow.stableKey}-onExecution`,
|
|
176
178
|
description: "The function that will be executed by the flow.",
|
|
177
179
|
errorConfig: "errorConfig" in flow ? Object.assign({}, flow.errorConfig) : undefined,
|
|
178
180
|
};
|
|
@@ -185,6 +187,7 @@ const convertConfigVar = (configVar, referenceKey) => {
|
|
|
185
187
|
// relevant to config vars.
|
|
186
188
|
const fields = [
|
|
187
189
|
"key",
|
|
190
|
+
"stableKey",
|
|
188
191
|
"description",
|
|
189
192
|
"orgOnly",
|
|
190
193
|
"inputs",
|
|
@@ -305,9 +308,9 @@ const codeNativeIntegrationComponent = ({ name, iconPath, description, flows = [
|
|
|
305
308
|
// Remove a few fields that are not relevant to connections.
|
|
306
309
|
const {
|
|
307
310
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
308
|
-
orgOnly, visibleToOrgDeployer, visibleToCustomerDeployer } = configVar,
|
|
311
|
+
orgOnly, visibleToOrgDeployer, visibleToCustomerDeployer, stableKey } = configVar,
|
|
309
312
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
310
|
-
connection = __rest(configVar, ["orgOnly", "visibleToOrgDeployer", "visibleToCustomerDeployer"]);
|
|
313
|
+
connection = __rest(configVar, ["orgOnly", "visibleToOrgDeployer", "visibleToCustomerDeployer", "stableKey"]);
|
|
311
314
|
return [...result, convertConnection(Object.assign(Object.assign({}, connection), { key }))];
|
|
312
315
|
}, []);
|
|
313
316
|
return {
|
|
@@ -39,6 +39,8 @@ export declare type IntegrationDefinition<TConfigVars extends ConfigVarCollectio
|
|
|
39
39
|
export interface Flow<TConfigVars extends ConfigVarCollection = ConfigVarCollection, TTriggerPayload extends TriggerPayload = TriggerPayload> {
|
|
40
40
|
/** The unique name for this Flow. */
|
|
41
41
|
name: string;
|
|
42
|
+
/** A unique, unchanging value that is used to maintain identity for the Flow even if the name changes. */
|
|
43
|
+
stableKey: string;
|
|
42
44
|
/** Optional description for this Flow. */
|
|
43
45
|
description?: string;
|
|
44
46
|
/** Optional Preprocess Flow configuration for when the result of this Flow contains the flow routing attributes. Only one Flow per Integration may define this. */
|
|
@@ -78,6 +80,8 @@ export declare type CodeNativeDataSource = Pick<DataSourceDefinition<Inputs, Dat
|
|
|
78
80
|
declare type BaseConfigVar = {
|
|
79
81
|
/** The unique key for this Config Var. */
|
|
80
82
|
key: string;
|
|
83
|
+
/** A unique, unchanging value that is used to maintain identity for the Config Var even if the key changes. */
|
|
84
|
+
stableKey: string;
|
|
81
85
|
/** Optional description for this Config Var. */
|
|
82
86
|
description?: string;
|
|
83
87
|
/** Optional value that specifies whether this Config Var is only configurable by Organization users. @default false */
|