@prismatic-io/spectral 10.2.2 → 10.3.0
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.
|
@@ -623,7 +623,7 @@ const codeNativeIntegrationComponent = ({ name, iconPath, description, flows = [
|
|
|
623
623
|
return result;
|
|
624
624
|
}
|
|
625
625
|
const convertedInputs = Object.entries(configVar.inputs).map(([key, value]) => (0, convertComponent_1.convertInput)(key, value));
|
|
626
|
-
const connection = (0, lodash_1.pick)(configVar, ["oauth2Type"]);
|
|
626
|
+
const connection = (0, lodash_1.pick)(configVar, ["oauth2Type", "oauth2PkceMethod"]);
|
|
627
627
|
const { avatarPath: avatarIconPath, oauth2ConnectionIconPath: iconPath } = (_a = configVar.icons) !== null && _a !== void 0 ? _a : {};
|
|
628
628
|
return [
|
|
629
629
|
...result,
|
package/dist/types/Inputs.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export type ConnectionInput = (StringInputField | DataInputField | TextInputFiel
|
|
|
71
71
|
export type OnPremConnectionInput = {
|
|
72
72
|
onPremControlled: true;
|
|
73
73
|
} & ConnectionInput;
|
|
74
|
-
export type InputFieldDefinition = StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField | CodeInputField | ConditionalInputField | ConnectionInputField | ObjectSelectionInputField | ObjectFieldMapInputField | JSONFormInputField | DynamicObjectSelectionInputField | DynamicFieldSelectionInputField;
|
|
74
|
+
export type InputFieldDefinition = StringInputField | DataInputField | TextInputField | PasswordInputField | BooleanInputField | CodeInputField | ConditionalInputField | ConnectionInputField | ObjectSelectionInputField | ObjectFieldMapInputField | JSONFormInputField | DynamicObjectSelectionInputField | DynamicFieldSelectionInputField | DateInputField | DateTimeInputField;
|
|
75
75
|
export type InputCleanFunction<TValue, TResult = TValue> = (value: TValue) => TResult;
|
|
76
76
|
interface BaseInputField {
|
|
77
77
|
/** Interface label of the InputField. */
|
|
@@ -247,6 +247,22 @@ export interface DynamicFieldSelectionInputField extends BaseInputField {
|
|
|
247
247
|
/** Clean function */
|
|
248
248
|
clean?: InputCleanFunction<this["default"]>;
|
|
249
249
|
}
|
|
250
|
+
export type DateInputField = BaseInputField & {
|
|
251
|
+
/** Data type the InputField will collect. */
|
|
252
|
+
type: "date";
|
|
253
|
+
/** Dictates possible choices for the input. */
|
|
254
|
+
model?: InputFieldChoice[];
|
|
255
|
+
/** Clean function */
|
|
256
|
+
clean?: InputCleanFunction<unknown>;
|
|
257
|
+
} & CollectionOptions<string>;
|
|
258
|
+
export type DateTimeInputField = BaseInputField & {
|
|
259
|
+
/** Data type the InputField will collect. */
|
|
260
|
+
type: "timestamp";
|
|
261
|
+
/** Dictates possible choices for the input. */
|
|
262
|
+
model?: InputFieldChoice[];
|
|
263
|
+
/** Clean function */
|
|
264
|
+
clean?: InputCleanFunction<unknown>;
|
|
265
|
+
} & CollectionOptions<string>;
|
|
250
266
|
/** Defines a single Choice option for a InputField. */
|
|
251
267
|
export interface InputFieldChoice {
|
|
252
268
|
/** Label to display for this Choice. */
|
|
@@ -258,4 +274,10 @@ export interface InputFieldChoice {
|
|
|
258
274
|
export type InputFieldCollection = "valuelist" | "keyvaluelist";
|
|
259
275
|
/** Config variable result collection */
|
|
260
276
|
export type ConfigVarResultCollection = Record<string, string | Schedule | Connection | unknown | ObjectSelection | ObjectFieldMap>;
|
|
277
|
+
export type FlowInputField = BaseInputField & {
|
|
278
|
+
/** Data type the InputField will collect. */
|
|
279
|
+
type: "flow";
|
|
280
|
+
/** Clean function */
|
|
281
|
+
clean?: InputCleanFunction<unknown>;
|
|
282
|
+
} & CollectionOptions<string>;
|
|
261
283
|
export {};
|
package/dist/types/Inputs.js
CHANGED