@prismatic-io/spectral 7.3.5 → 7.3.7
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.
|
@@ -151,7 +151,7 @@ const sendRawRequest = (baseUrl, values, authorizationHeaders = {}) => __awaiter
|
|
|
151
151
|
url: values.url,
|
|
152
152
|
headers: Object.assign(Object.assign(Object.assign({}, util_1.default.types.keyValPairListToObject(values.headers)), (payload instanceof form_data_1.default ? payload.getHeaders() : {})), authorizationHeaders),
|
|
153
153
|
params: util_1.default.types.keyValPairListToObject(values.queryParams),
|
|
154
|
-
data: payload,
|
|
154
|
+
data: payload || undefined,
|
|
155
155
|
});
|
|
156
156
|
});
|
|
157
157
|
exports.sendRawRequest = sendRawRequest;
|
|
@@ -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. */
|