@prismatic-io/spectral 7.3.5 → 7.3.6
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.
|
@@ -8,14 +8,15 @@ interface DisplayDefinition {
|
|
|
8
8
|
/** Description to display to the user. */
|
|
9
9
|
description: string;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
declare type PublicComponentCategory = "Application Connectors" | "Data Platforms" | "Helpers" | "Logic" | "Triggers";
|
|
12
|
+
interface ExtraDisplayDefinitionFields<TPublic extends boolean> {
|
|
12
13
|
/** Path to icon to use for this Component. Path should be relative to the built component source. */
|
|
13
14
|
iconPath: string;
|
|
14
15
|
/** Category of the Component. */
|
|
15
|
-
category?: string;
|
|
16
|
+
category?: TPublic extends true ? PublicComponentCategory : string;
|
|
16
17
|
}
|
|
17
18
|
/** Component extensions for display properties. */
|
|
18
|
-
export declare type ComponentDisplayDefinition<
|
|
19
|
+
export declare type ComponentDisplayDefinition<TPublic extends boolean> = TPublic extends true ? DisplayDefinition & Required<ExtraDisplayDefinitionFields<TPublic>> : DisplayDefinition & ExtraDisplayDefinitionFields<TPublic>;
|
|
19
20
|
/** Action-specific Display attributes. */
|
|
20
21
|
export interface ActionDisplayDefinition extends DisplayDefinition {
|
|
21
22
|
/** Directions to help guide the user if additional configuration is required for this Action. */
|