@prismatic-io/spectral 7.0.5-pre → 7.0.6-pre
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.
|
@@ -14,4 +14,6 @@ export interface DataSourceDefinition<TInputs extends Inputs, TDataSourceResult
|
|
|
14
14
|
inputs: TInputs;
|
|
15
15
|
/** An example of the payload outputted by this Data Source. */
|
|
16
16
|
examplePayload?: Awaited<ReturnType<this["perform"]>>;
|
|
17
|
+
/** Specifies the name of a Data Source in this Component which can provide additional details about the content for this Data Source, such as example values when selecting particular API object fields. */
|
|
18
|
+
detailDataSource?: string;
|
|
17
19
|
}
|
|
@@ -8,7 +8,9 @@ export declare type DataSourceResultType = ObjectSelection | ObjectFieldMap | JS
|
|
|
8
8
|
export declare type DataSourceResult<TDataSourceResultType> = {
|
|
9
9
|
/** The resulting data that is returned from the data source. */
|
|
10
10
|
result: TDataSourceResultType;
|
|
11
|
-
/** Additional data that may be useful for out-of-band processing at a later time.
|
|
11
|
+
/** Additional data that may be useful for out-of-band processing at a later time.
|
|
12
|
+
* NOTE: This is only available when the Data Source is called as part of fetching
|
|
13
|
+
* contents for a Configuration Wizard Page. */
|
|
12
14
|
supplementalData?: {
|
|
13
15
|
data: unknown;
|
|
14
16
|
contentType: string;
|
package/dist/types/Inputs.d.ts
CHANGED