@prismatic-io/spectral 9.0.3 → 9.0.4
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.
|
@@ -57,7 +57,11 @@ exports.INPUT_TYPE_MAP = {
|
|
|
57
57
|
};
|
|
58
58
|
const getInputValueType = (input) => {
|
|
59
59
|
const valueType = input.model
|
|
60
|
-
? input.model
|
|
60
|
+
? input.model
|
|
61
|
+
.map((choice) => {
|
|
62
|
+
return `\`${choice.value.replaceAll("\r", "\\r").replaceAll("\n", "\\n")}\``;
|
|
63
|
+
})
|
|
64
|
+
.join(" | ")
|
|
61
65
|
: exports.INPUT_TYPE_MAP[input.type] || "never";
|
|
62
66
|
if (input.collection === "keyvaluelist") {
|
|
63
67
|
return `Record<string, ${valueType}> | Array<{key: string, value: ${valueType}}>`;
|
|
@@ -334,8 +334,8 @@ const convertConfigVar = (key, configVar, referenceKey, componentRegistry) => {
|
|
|
334
334
|
description,
|
|
335
335
|
key,
|
|
336
336
|
dataType: "connection",
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
onPremiseConnectionConfig,
|
|
338
|
+
connection: Object.assign(Object.assign({}, ref), { template }),
|
|
339
339
|
inputs,
|
|
340
340
|
orgOnly,
|
|
341
341
|
meta,
|
|
@@ -7,7 +7,6 @@ export type ComponentReference = {
|
|
|
7
7
|
};
|
|
8
8
|
key: string;
|
|
9
9
|
template?: string;
|
|
10
|
-
onPremiseConnectionConfig?: string;
|
|
11
10
|
} | {
|
|
12
11
|
component: {
|
|
13
12
|
key: string;
|
|
@@ -16,7 +15,6 @@ export type ComponentReference = {
|
|
|
16
15
|
};
|
|
17
16
|
key: string;
|
|
18
17
|
template?: string;
|
|
19
|
-
onPremiseConnectionConfig?: string;
|
|
20
18
|
};
|
|
21
19
|
export type Input = {
|
|
22
20
|
name?: string | Input;
|
|
@@ -35,6 +33,7 @@ export interface ConnectionRequiredConfigVariable {
|
|
|
35
33
|
description?: string;
|
|
36
34
|
orgOnly?: boolean;
|
|
37
35
|
dataType: "connection";
|
|
36
|
+
onPremiseConnectionConfig?: string;
|
|
38
37
|
connection: ComponentReference;
|
|
39
38
|
inputs?: Record<string, Input>;
|
|
40
39
|
meta?: Record<string, unknown>;
|