@prismatic-io/spectral 5.1.0 → 5.2.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.
- package/dist/types/Inputs.d.ts +10 -2
- package/package.json +1 -1
package/dist/types/Inputs.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare type Inputs = Record<string, InputFieldDefinition>;
|
|
|
3
3
|
export declare type ConnectionInput = DefaultInputFieldDefinition & {
|
|
4
4
|
shown?: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare type InputFieldDefinition = DefaultInputFieldDefinition | CodeInputFieldDefinition;
|
|
6
|
+
export declare type InputFieldDefinition = DefaultInputFieldDefinition | CodeInputFieldDefinition | ConditionalInputField | ConnectionInputField;
|
|
7
7
|
interface BaseInputFieldDefinition {
|
|
8
8
|
/** Interface label of the InputField. */
|
|
9
9
|
label: string;
|
|
@@ -24,13 +24,21 @@ interface BaseInputFieldDefinition {
|
|
|
24
24
|
}
|
|
25
25
|
/** Defines attributes of a InputField. */
|
|
26
26
|
export interface DefaultInputFieldDefinition extends BaseInputFieldDefinition {
|
|
27
|
-
type: Exclude<InputFieldType, "code">;
|
|
27
|
+
type: Exclude<InputFieldType, "code" | "conditional" | "connection">;
|
|
28
28
|
}
|
|
29
29
|
/** Defines attributes of a CodeInputField. */
|
|
30
30
|
export interface CodeInputFieldDefinition extends BaseInputFieldDefinition {
|
|
31
31
|
type: Extract<InputFieldType, "code">;
|
|
32
32
|
language?: string;
|
|
33
33
|
}
|
|
34
|
+
/** Defines attributes of a ConditionalInputField. */
|
|
35
|
+
export interface ConditionalInputField extends BaseInputFieldDefinition {
|
|
36
|
+
type: Extract<InputFieldType, "conditional">;
|
|
37
|
+
}
|
|
38
|
+
/** Defines attributes of a ConnectionInputField. */
|
|
39
|
+
export interface ConnectionInputField extends BaseInputFieldDefinition {
|
|
40
|
+
type: Extract<InputFieldType, "connection">;
|
|
41
|
+
}
|
|
34
42
|
export interface Connection {
|
|
35
43
|
/** Key of the Connection type. */
|
|
36
44
|
key: string;
|