@prismatic-io/spectral 10.18.7-preview.3 → 10.18.7-preview.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.
- package/dist/types/Inputs.d.ts +13 -11
- package/package.json +1 -1
package/dist/types/Inputs.d.ts
CHANGED
|
@@ -291,15 +291,19 @@ export type DateTimeInputField = BaseInputField & {
|
|
|
291
291
|
/** Clean function. */
|
|
292
292
|
clean?: InputCleanFunction<unknown>;
|
|
293
293
|
} & CollectionOptions<string>;
|
|
294
|
-
/** `InputFieldDefinition` minus container input types
|
|
295
|
-
*
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
294
|
+
/** `InputFieldDefinition` minus container input types and connection
|
|
295
|
+
* pickers. Connections resolve to config-var references outside the
|
|
296
|
+
* parent's value tree, so they're only valid at the top level — never as
|
|
297
|
+
* a child of a structuredObject or a dynamicObject configuration. */
|
|
298
|
+
export type LeafInputFieldDefinition = Exclude<InputFieldDefinition, StructuredObjectInputField | DynamicObjectInputField | ConnectionInputField | ConnectionTemplateInputField>;
|
|
299
|
+
/** `LeafInputFieldDefinition` plus `StructuredObjectInputField`; used
|
|
300
|
+
* inside a dynamicObject's `configurations.<key>.inputs` to allow leaves
|
|
301
|
+
* and structuredObject children while still rejecting nested
|
|
302
|
+
* dynamicObjects and connection pickers. */
|
|
303
|
+
export type StructuredOrLeafInputFieldDefinition = LeafInputFieldDefinition | StructuredObjectInputField;
|
|
301
304
|
/** Groups related primitive inputs under a single named container.
|
|
302
|
-
* Nesting is capped at one level.
|
|
305
|
+
* Nesting is capped at one level. Connection pickers are rejected as
|
|
306
|
+
* children — they may only appear at the top level. */
|
|
303
307
|
export type StructuredObjectInputField = Omit<BaseInputField, "dataSource"> & {
|
|
304
308
|
/** Data type the input will collect. */
|
|
305
309
|
type: "structuredObject";
|
|
@@ -317,9 +321,7 @@ export interface DynamicObjectConfiguration {
|
|
|
317
321
|
} | string;
|
|
318
322
|
/** Additional text to give guidance to the user when this configuration is selected. */
|
|
319
323
|
comments?: string;
|
|
320
|
-
/** Inputs that become available when this configuration is selected.
|
|
321
|
-
* include leaf inputs and structuredObject inputs; nested dynamicObjects
|
|
322
|
-
* are rejected at the type level. */
|
|
324
|
+
/** Inputs that become available when this configuration is selected. */
|
|
323
325
|
inputs: Record<string, StructuredOrLeafInputFieldDefinition>;
|
|
324
326
|
}
|
|
325
327
|
/** Presents a discriminated set of input groups; the user picks a configuration
|