@transai/connector-runner-file 0.15.0 → 0.16.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.
|
@@ -23,13 +23,26 @@ export interface NumberOutputParameterInterface extends OutputItemParameterInter
|
|
|
23
23
|
export interface OutputParameterInterface {
|
|
24
24
|
[key: string]: OutputItemParameterInterface | ArrayOutputParameterInterface | NumberOutputParameterInterface;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
interface BaseInputParameter {
|
|
27
27
|
name: string;
|
|
28
28
|
description?: string;
|
|
29
|
-
type: 'string' | 'number' | 'boolean' | 'array';
|
|
30
29
|
required?: boolean;
|
|
31
|
-
items?: Array<InputParameterInterface>;
|
|
32
30
|
}
|
|
31
|
+
export interface ValueInputParameter extends BaseInputParameter {
|
|
32
|
+
type: 'string' | 'number' | 'boolean';
|
|
33
|
+
}
|
|
34
|
+
export interface SimpleArrayInputParameter extends BaseInputParameter {
|
|
35
|
+
type: 'simple-array';
|
|
36
|
+
itemType: 'string' | 'number' | 'boolean';
|
|
37
|
+
}
|
|
38
|
+
export interface ArrayInputParameter extends BaseInputParameter {
|
|
39
|
+
type: 'array';
|
|
40
|
+
items: Array<InputParameterInterface>;
|
|
41
|
+
}
|
|
42
|
+
export interface UnknownInputParameter extends BaseInputParameter {
|
|
43
|
+
type: 'unknown';
|
|
44
|
+
}
|
|
45
|
+
export type InputParameterInterface = ValueInputParameter | SimpleArrayInputParameter | ArrayInputParameter | UnknownInputParameter;
|
|
33
46
|
export interface ActionInterface {
|
|
34
47
|
identifier: string;
|
|
35
48
|
version: string;
|
|
@@ -47,3 +60,4 @@ export interface ActionInterface {
|
|
|
47
60
|
mode?: ConnectorOrigin;
|
|
48
61
|
createdAt: Date;
|
|
49
62
|
}
|
|
63
|
+
export {};
|