@prismatic-io/spectral 10.4.2 → 10.4.3-alpha.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.
|
@@ -41,8 +41,9 @@ const convertAction = (actionKey, _a, hooks) => {
|
|
|
41
41
|
}) });
|
|
42
42
|
};
|
|
43
43
|
const convertTrigger = (triggerKey, trigger, hooks) => {
|
|
44
|
+
var _a;
|
|
44
45
|
const { onInstanceDeploy, onInstanceDelete } = trigger;
|
|
45
|
-
const inputs = trigger.inputs;
|
|
46
|
+
const inputs = (_a = trigger.inputs) !== null && _a !== void 0 ? _a : {};
|
|
46
47
|
const isPollingTrigger = (0, PollingTriggerDefinition_1.isPollingTriggerDefinition)(trigger);
|
|
47
48
|
const triggerInputKeys = Object.keys(inputs);
|
|
48
49
|
const convertedTriggerInputs = Object.entries(inputs).map(([key, value]) => {
|
package/dist/types/Inputs.d.ts
CHANGED
|
@@ -87,6 +87,8 @@ interface BaseInputField {
|
|
|
87
87
|
example?: string;
|
|
88
88
|
/** Indicate if this InputField is required. */
|
|
89
89
|
required?: boolean;
|
|
90
|
+
/** Key of the data source that can be used to set the value of this input. */
|
|
91
|
+
dataSource?: string;
|
|
90
92
|
}
|
|
91
93
|
type CollectionOptions<T> = SingleValue<T> | ValueListCollection<T> | KeyValueListCollection<T>;
|
|
92
94
|
interface SingleValue<T> {
|
package/package.json
CHANGED