@transai/connector-runner-mkg 0.5.2 → 0.6.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.
- package/CHANGELOG.md +6 -0
- package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +1 -1
- package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +1 -1
- package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +1 -1
- package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +2 -2
- package/libs/types/src/lib/management-api/template.interface.d.ts +1 -1
- package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +23 -2
- package/libs/types/src/lib/management-api/workflow/workflow-definition.interface.d.ts +13 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -27,7 +27,7 @@ export declare const ConnectorSchema: z.ZodObject<{
|
|
|
27
27
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
28
28
|
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
29
29
|
}, z.core.$strip>>;
|
|
30
|
-
outputParameters: z.ZodAny
|
|
30
|
+
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
31
31
|
mode: z.ZodOptional<z.ZodEnum<typeof ConnectorOrigin>>;
|
|
32
32
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
33
33
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -25,7 +25,7 @@ export declare const ConnectorsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
25
25
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
26
26
|
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
|
-
outputParameters: z.ZodAny
|
|
28
|
+
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
29
29
|
mode: z.ZodOptional<z.ZodEnum<typeof import("../type-enums").ConnectorOrigin>>;
|
|
30
30
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
31
31
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -132,7 +132,7 @@ export declare const TemplateImplementationOverridesSchema: z.ZodObject<{
|
|
|
132
132
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
133
133
|
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
134
134
|
}, z.core.$strip>>;
|
|
135
|
-
outputParameters: z.ZodAny
|
|
135
|
+
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
136
136
|
mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ConnectorOrigin>>;
|
|
137
137
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
138
138
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -137,7 +137,7 @@ export declare const TemplateImplementationSchema: z.ZodObject<{
|
|
|
137
137
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
138
138
|
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
139
139
|
}, z.core.$strip>>;
|
|
140
|
-
outputParameters: z.ZodAny
|
|
140
|
+
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
141
141
|
mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ConnectorOrigin>>;
|
|
142
142
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
143
143
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -283,7 +283,7 @@ export declare const TemplateImplementationCreateSchema: z.ZodObject<{
|
|
|
283
283
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
284
284
|
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
285
285
|
}, z.core.$strip>>;
|
|
286
|
-
outputParameters: z.ZodAny
|
|
286
|
+
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
287
287
|
mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ConnectorOrigin>>;
|
|
288
288
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
289
289
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -137,7 +137,7 @@ export declare const TemplateSchema: z.ZodObject<{
|
|
|
137
137
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
138
138
|
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
139
139
|
}, z.core.$strip>>;
|
|
140
|
-
outputParameters: z.ZodAny
|
|
140
|
+
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
141
141
|
mode: z.ZodOptional<z.ZodEnum<typeof import("./type-enums").ConnectorOrigin>>;
|
|
142
142
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
143
143
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { ConnectorOrigin } from '../type-enums';
|
|
3
|
+
export interface LegacyOutputParameterInterface {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
export type SupportedOutputTypes = 'string' | 'number' | 'boolean' | 'array' | 'null';
|
|
7
|
+
export interface OutputItemParameterInterface {
|
|
8
|
+
type: SupportedOutputTypes | SupportedOutputTypes[];
|
|
9
|
+
description?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface ArrayOutputParameterInterface extends OutputItemParameterInterface {
|
|
13
|
+
type: 'array';
|
|
14
|
+
items: OutputParameterInterface;
|
|
15
|
+
}
|
|
16
|
+
export interface NumberOutputParameterInterface extends OutputItemParameterInterface {
|
|
17
|
+
type: 'number' | ('number' | 'null')[];
|
|
18
|
+
minimum?: number;
|
|
19
|
+
maximum?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface OutputParameterInterface {
|
|
22
|
+
[key: string]: OutputItemParameterInterface | ArrayOutputParameterInterface | NumberOutputParameterInterface;
|
|
23
|
+
}
|
|
3
24
|
export interface InputParameterInterface {
|
|
4
25
|
name: string;
|
|
5
26
|
description?: string;
|
|
@@ -20,7 +41,7 @@ export interface ActionInterface {
|
|
|
20
41
|
} | string | object;
|
|
21
42
|
};
|
|
22
43
|
inputParameters: Array<InputParameterInterface>;
|
|
23
|
-
outputParameters:
|
|
44
|
+
outputParameters: LegacyOutputParameterInterface | OutputParameterInterface;
|
|
24
45
|
mode?: ConnectorOrigin;
|
|
25
46
|
createdAt: Date;
|
|
26
47
|
}
|
|
@@ -43,7 +64,7 @@ export declare const ActionSchema: z.ZodObject<{
|
|
|
43
64
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
44
65
|
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
45
66
|
}, z.core.$strip>>;
|
|
46
|
-
outputParameters: z.ZodAny
|
|
67
|
+
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
47
68
|
mode: z.ZodOptional<z.ZodEnum<typeof ConnectorOrigin>>;
|
|
48
69
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
49
70
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { TriggerType } from './trigger-types.interface';
|
|
2
2
|
import { NodeTypes, WorkflowDrawing } from './workflow.drawing';
|
|
3
|
-
export interface
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export interface ValueMapper {
|
|
4
|
+
selector: string;
|
|
5
|
+
type: 'string' | 'number' | 'boolean';
|
|
6
|
+
required?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ArrayMapper {
|
|
9
|
+
selector: string;
|
|
10
|
+
type: 'array';
|
|
11
|
+
required?: boolean;
|
|
12
|
+
items: MessageMapper;
|
|
9
13
|
}
|
|
14
|
+
export type MessageMapper = {
|
|
15
|
+
[key: string]: ValueMapper | ArrayMapper;
|
|
16
|
+
};
|
|
10
17
|
export interface ConditionMapper {
|
|
11
18
|
selector: string;
|
|
12
19
|
[key: string]: string | {
|