@prismatic-io/spectral 7.0.4-pre → 7.0.5-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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ObjectSelection, ObjectFieldMap,
|
|
2
|
+
import { ObjectSelection, ObjectFieldMap, JSONForm } from "./Inputs";
|
|
3
3
|
/** The type of field that is appropriate for rendering the data that is the result of the data source perform function. */
|
|
4
|
-
export declare type DataSourceResultFieldType =
|
|
4
|
+
export declare type DataSourceResultFieldType = "string" | "date" | "timestamp" | "picklist" | "schedule" | "code" | "credential" | "boolean" | "number" | "connection" | "objectSelection" | "objectFieldMap" | "jsonForm";
|
|
5
5
|
/** The actual data type of the data that is the result of the data source perform function. */
|
|
6
6
|
export declare type DataSourceResultType = ObjectSelection | ObjectFieldMap | JSONForm | Buffer | boolean | number | string | Record<string, unknown> | unknown[] | unknown;
|
|
7
7
|
/** Represents the result of a Data Source action. */
|
package/dist/types/Inputs.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { ConditionalExpression } from "./conditional-logic";
|
|
|
2
2
|
export declare type ObjectSelection = {
|
|
3
3
|
key: string;
|
|
4
4
|
label?: string;
|
|
5
|
+
selected?: boolean;
|
|
5
6
|
fields: {
|
|
6
7
|
key: string;
|
|
7
8
|
label?: string;
|
|
@@ -16,6 +17,12 @@ export declare type ObjectFieldMap = {
|
|
|
16
17
|
fieldKey: string;
|
|
17
18
|
fieldLabel?: string;
|
|
18
19
|
};
|
|
20
|
+
defaultValue?: {
|
|
21
|
+
objectKey: string;
|
|
22
|
+
objectLabel?: string;
|
|
23
|
+
fieldKey: string;
|
|
24
|
+
fieldLabel?: string;
|
|
25
|
+
};
|
|
19
26
|
}[];
|
|
20
27
|
export declare type JSONForm = {
|
|
21
28
|
schema: Record<string, unknown>;
|