@transai/connector-runner-api 0.13.0 → 0.15.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 +24 -0
- package/index.cjs +1 -1
- package/index.cjs.map +3 -3
- package/libs/connector-runner-api/src/lib/actions.service.d.ts +1 -2
- package/libs/connector-runner-api/src/lib/connector-runner-api.d.ts +1 -2
- package/libs/connector-runner-api/src/lib/types.d.ts +1 -2
- package/libs/connector-runtime-sdk/src/lib/sdk/offset-store.sdk.interface.d.ts +1 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/processing.sdk.interface.d.ts +17 -0
- package/package.json +1 -1
- package/index.js +0 -2
- package/index.js.map +0 -7
- package/libs/types/src/index.d.ts +0 -7
- package/libs/types/src/lib/cube-query-config.types.d.ts +0 -20
- package/libs/types/src/lib/file-action.types.d.ts +0 -5
- package/libs/types/src/lib/http-status-codes.enum.d.ts +0 -64
- package/libs/types/src/lib/management-api/action-definition.interface.d.ts +0 -12
- package/libs/types/src/lib/management-api/author.interface.d.ts +0 -11
- package/libs/types/src/lib/management-api/chart.interface.d.ts +0 -9
- package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +0 -52
- package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +0 -38
- package/libs/types/src/lib/management-api/connector-orchestrator-config.interface.d.ts +0 -14
- package/libs/types/src/lib/management-api/cube-dataset.interface.d.ts +0 -94
- package/libs/types/src/lib/management-api/dashboard.interface.d.ts +0 -35
- package/libs/types/src/lib/management-api/dataset/collection.interface.d.ts +0 -10
- package/libs/types/src/lib/management-api/dataset/dataset-record.interface.d.ts +0 -41
- package/libs/types/src/lib/management-api/dataset/dataset.interface.d.ts +0 -118
- package/libs/types/src/lib/management-api/dataset/datasets.interface.d.ts +0 -96
- package/libs/types/src/lib/management-api/dataset/dimension.interface.d.ts +0 -53
- package/libs/types/src/lib/management-api/dataset/dimensions.interface.d.ts +0 -33
- package/libs/types/src/lib/management-api/dataset/filter-group.interface.d.ts +0 -8
- package/libs/types/src/lib/management-api/dataset/filter.interface.d.ts +0 -14
- package/libs/types/src/lib/management-api/dataset/filters.interface.d.ts +0 -7
- package/libs/types/src/lib/management-api/dataset/measure.interface.d.ts +0 -27
- package/libs/types/src/lib/management-api/dataset/measures.interface.d.ts +0 -17
- package/libs/types/src/lib/management-api/dataset/meta.interface.d.ts +0 -9
- package/libs/types/src/lib/management-api/dataset/pre-aggregate.interface.d.ts +0 -41
- package/libs/types/src/lib/management-api/dataset/pre-aggregations.interface.d.ts +0 -26
- package/libs/types/src/lib/management-api/dataset/relation.interface.d.ts +0 -16
- package/libs/types/src/lib/management-api/dataset/relations.interface.d.ts +0 -12
- package/libs/types/src/lib/management-api/dataset/segment.interface.d.ts +0 -17
- package/libs/types/src/lib/management-api/dataset/segments.interface.d.ts +0 -15
- package/libs/types/src/lib/management-api/dataset/switch.interface.d.ts +0 -20
- package/libs/types/src/lib/management-api/dataset/when-item.interface.d.ts +0 -15
- package/libs/types/src/lib/management-api/dataset/when-items.interface.d.ts +0 -14
- package/libs/types/src/lib/management-api/event-origin.interface.d.ts +0 -24
- package/libs/types/src/lib/management-api/index.d.ts +0 -40
- package/libs/types/src/lib/management-api/semantic-trigger/custom-cron-trigger-record.interface.d.ts +0 -6
- package/libs/types/src/lib/management-api/semantic-trigger/index.d.ts +0 -6
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts +0 -12
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts +0 -10
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-record.interface.d.ts +0 -6
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger.interface.d.ts +0 -35
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-triggers.interface.d.ts +0 -22
- package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +0 -150
- package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +0 -314
- package/libs/types/src/lib/management-api/template.interface.d.ts +0 -190
- package/libs/types/src/lib/management-api/tenant.interface.d.ts +0 -8
- package/libs/types/src/lib/management-api/type-enums.d.ts +0 -91
- package/libs/types/src/lib/management-api/web/generic-filter.dto.d.ts +0 -37
- package/libs/types/src/lib/management-api/web/index.d.ts +0 -2
- package/libs/types/src/lib/management-api/web/paginated-response.interface.d.ts +0 -17
- package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +0 -71
- package/libs/types/src/lib/management-api/workflow/enums/index.d.ts +0 -3
- package/libs/types/src/lib/management-api/workflow/enums/node-types.enum.d.ts +0 -14
- package/libs/types/src/lib/management-api/workflow/enums/trigger-types.enum.d.ts +0 -14
- package/libs/types/src/lib/management-api/workflow/enums/workflow-status.enum.d.ts +0 -16
- package/libs/types/src/lib/management-api/workflow/index.d.ts +0 -7
- package/libs/types/src/lib/management-api/workflow/offset.interface.d.ts +0 -14
- package/libs/types/src/lib/management-api/workflow/parameter-mapper.interface.d.ts +0 -26
- package/libs/types/src/lib/management-api/workflow/workflow-definition.interface.d.ts +0 -66
- package/libs/types/src/lib/management-api/workflow/workflow-drawing.interface.d.ts +0 -96
- package/libs/types/src/lib/management-api/workflow/workflow-run.interface.d.ts +0 -57
- package/libs/types/src/lib/message.types.d.ts +0 -59
- package/libs/types/src/lib/response.types.d.ts +0 -27
- package/libs/types/src/lib/types.d.ts +0 -134
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface PaginationInterface {
|
|
2
|
-
page: number;
|
|
3
|
-
limit: number;
|
|
4
|
-
}
|
|
5
|
-
export interface QueryPaginationInterface {
|
|
6
|
-
skip: number;
|
|
7
|
-
take: number;
|
|
8
|
-
}
|
|
9
|
-
export interface PaginationMeta {
|
|
10
|
-
page: number;
|
|
11
|
-
limit: number;
|
|
12
|
-
total: number;
|
|
13
|
-
}
|
|
14
|
-
export interface PaginatedResponse<T> {
|
|
15
|
-
meta: PaginationMeta;
|
|
16
|
-
data: Array<T>;
|
|
17
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
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
|
-
}
|
|
24
|
-
export interface InputParameterInterface {
|
|
25
|
-
name: string;
|
|
26
|
-
description?: string;
|
|
27
|
-
type: 'string' | 'number' | 'boolean' | 'array';
|
|
28
|
-
required?: boolean;
|
|
29
|
-
items?: Array<InputParameterInterface>;
|
|
30
|
-
}
|
|
31
|
-
export interface ActionInterface {
|
|
32
|
-
identifier: string;
|
|
33
|
-
version: string;
|
|
34
|
-
tenantIdentifier: string;
|
|
35
|
-
name: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
connectorIdentifier: string;
|
|
38
|
-
config: {
|
|
39
|
-
[key: string]: {
|
|
40
|
-
[key: string]: string | object;
|
|
41
|
-
} | string | object;
|
|
42
|
-
};
|
|
43
|
-
inputParameters: Array<InputParameterInterface>;
|
|
44
|
-
outputParameters: LegacyOutputParameterInterface | OutputParameterInterface;
|
|
45
|
-
mode?: ConnectorOrigin;
|
|
46
|
-
createdAt: Date;
|
|
47
|
-
}
|
|
48
|
-
export type CreateActionInterface = Omit<ActionInterface, 'mode' | 'createdAt'>;
|
|
49
|
-
export declare const ActionSchema: z.ZodObject<{
|
|
50
|
-
identifier: z.ZodString;
|
|
51
|
-
version: z.ZodString;
|
|
52
|
-
name: z.ZodString;
|
|
53
|
-
description: z.ZodOptional<z.ZodString>;
|
|
54
|
-
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
55
|
-
inputParameters: z.ZodArray<z.ZodObject<{
|
|
56
|
-
name: z.ZodString;
|
|
57
|
-
description: z.ZodOptional<z.ZodString>;
|
|
58
|
-
type: z.ZodEnum<{
|
|
59
|
-
string: "string";
|
|
60
|
-
number: "number";
|
|
61
|
-
boolean: "boolean";
|
|
62
|
-
array: "array";
|
|
63
|
-
}>;
|
|
64
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
-
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
66
|
-
}, z.core.$strip>>;
|
|
67
|
-
outputParameters: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
68
|
-
mode: z.ZodOptional<z.ZodEnum<typeof ConnectorOrigin>>;
|
|
69
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
70
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
71
|
-
}, z.core.$strip>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum NodeTypes {
|
|
2
|
-
TRIGGER = "TRIGGER",
|
|
3
|
-
ACTION = "ACTION",
|
|
4
|
-
CONDITIONAL = "CONDITIONAL",
|
|
5
|
-
VALIDATION = "VALIDATION",
|
|
6
|
-
ANNOTATION = "ANNOTATION",
|
|
7
|
-
PLACEHOLDER = "PLACEHOLDER",
|
|
8
|
-
INVISIBLE = "INVISIBLE",
|
|
9
|
-
END = "END"
|
|
10
|
-
}
|
|
11
|
-
export declare enum ConditionalTypes {
|
|
12
|
-
TRUE_FALSE = "TRUE_FALSE",
|
|
13
|
-
CASE = "CASE"
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare enum TriggerType {
|
|
2
|
-
DASHBOARD_VISUALIZATION = "dashboard_visualization",
|
|
3
|
-
FORM = "form",
|
|
4
|
-
SEMANTIC_TRIGGER = "semantic_trigger",
|
|
5
|
-
CUSTOM_CRON = "custom_cron",
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use SEMANTIC_TRIGGER instead
|
|
8
|
-
*/
|
|
9
|
-
SEMANTIC = "SEMANTIC",
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use DASHBOARD_VISUALIZATION instead
|
|
12
|
-
*/
|
|
13
|
-
DASHBOARD = "DASHBOARD"
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare enum WorkflowRunStatusStatus {
|
|
2
|
-
PENDING = "PENDING",
|
|
3
|
-
RUNNING = "RUNNING",
|
|
4
|
-
SUCCESS = "SUCCESS",
|
|
5
|
-
FAILED = "FAILED",
|
|
6
|
-
ABORTED = "ABORTED"
|
|
7
|
-
}
|
|
8
|
-
export declare enum WorkflowJobStatusStatus {
|
|
9
|
-
PENDING = "PENDING",
|
|
10
|
-
RUNNING = "RUNNING",
|
|
11
|
-
SUCCESS = "SUCCESS",
|
|
12
|
-
SKIPPED = "SKIPPED",
|
|
13
|
-
BAD_REQUEST = "BAD_REQUEST",// input validation errors
|
|
14
|
-
INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
|
|
15
|
-
ABORTED = "ABORTED"
|
|
16
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './enums';
|
|
2
|
-
export * from './action.interface';
|
|
3
|
-
export * from './offset.interface';
|
|
4
|
-
export * from './workflow-definition.interface';
|
|
5
|
-
export * from './workflow-run.interface';
|
|
6
|
-
export * from './workflow-drawing.interface';
|
|
7
|
-
export * from './parameter-mapper.interface';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface ExtendedOffsetStore {
|
|
2
|
-
timestamp: number;
|
|
3
|
-
id: number | string;
|
|
4
|
-
date?: string;
|
|
5
|
-
rawTimestamp: number | string;
|
|
6
|
-
[key: string]: string | number | undefined;
|
|
7
|
-
}
|
|
8
|
-
export interface OffsetInterface {
|
|
9
|
-
identifier: string;
|
|
10
|
-
tenantIdentifier: string;
|
|
11
|
-
offset: ExtendedOffsetStore;
|
|
12
|
-
connectorIdentifier: string;
|
|
13
|
-
userOverwrite: boolean;
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface ValueMapper {
|
|
2
|
-
selector: string;
|
|
3
|
-
type: 'string' | 'number' | 'boolean';
|
|
4
|
-
required?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface ArrayMapper {
|
|
7
|
-
selector: string;
|
|
8
|
-
type: 'array';
|
|
9
|
-
required?: boolean;
|
|
10
|
-
items: MessageMapper;
|
|
11
|
-
}
|
|
12
|
-
export type MessageMapper = {
|
|
13
|
-
[key: string]: ValueMapper | ArrayMapper;
|
|
14
|
-
};
|
|
15
|
-
export interface ConditionMapper {
|
|
16
|
-
selector: string;
|
|
17
|
-
[key: string]: string | {
|
|
18
|
-
id: string;
|
|
19
|
-
value: string;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export interface ValidationMapper {
|
|
23
|
-
selector: string;
|
|
24
|
-
custom_failure_message?: string;
|
|
25
|
-
}
|
|
26
|
-
export type NodeMapper = MessageMapper | ConditionMapper | ValidationMapper | {};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { NodeTypes, TriggerType } from './enums';
|
|
2
|
-
import { ConditionMapper, MessageMapper, NodeMapper, ValidationMapper } from './parameter-mapper.interface';
|
|
3
|
-
import { WorkflowDrawing } from './workflow-drawing.interface';
|
|
4
|
-
export interface StoredInterface {
|
|
5
|
-
id: string;
|
|
6
|
-
createdAt: Date;
|
|
7
|
-
updatedAt: Date;
|
|
8
|
-
}
|
|
9
|
-
export interface TriggerInterface {
|
|
10
|
-
name: string;
|
|
11
|
-
type: TriggerType;
|
|
12
|
-
identifier: string;
|
|
13
|
-
expression?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface WorkflowDefinitionStepBase {
|
|
16
|
-
name: string;
|
|
17
|
-
identifier: string;
|
|
18
|
-
requires: Array<string>;
|
|
19
|
-
operationIdentifier: string;
|
|
20
|
-
operationVersion?: string;
|
|
21
|
-
type: NodeTypes;
|
|
22
|
-
with: NodeMapper;
|
|
23
|
-
}
|
|
24
|
-
export type BaseWorkflowDefinitionStep = WorkflowDefinitionStepBase & StoredInterface;
|
|
25
|
-
export interface ActionStep extends WorkflowDefinitionStepBase {
|
|
26
|
-
type: NodeTypes.ACTION;
|
|
27
|
-
with: MessageMapper;
|
|
28
|
-
operationVersion: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ConditionalStep extends WorkflowDefinitionStepBase {
|
|
31
|
-
type: NodeTypes.CONDITIONAL;
|
|
32
|
-
with: ConditionMapper;
|
|
33
|
-
}
|
|
34
|
-
export interface ValidationStep extends WorkflowDefinitionStepBase {
|
|
35
|
-
type: NodeTypes.VALIDATION;
|
|
36
|
-
with: ValidationMapper;
|
|
37
|
-
}
|
|
38
|
-
export interface PlaceholderStep extends WorkflowDefinitionStepBase {
|
|
39
|
-
type: NodeTypes.PLACEHOLDER;
|
|
40
|
-
with: {};
|
|
41
|
-
}
|
|
42
|
-
export type WorkflowDefinitionStep = ActionStep | ConditionalStep | ValidationStep | PlaceholderStep;
|
|
43
|
-
export interface CreateWorkflowDefinition {
|
|
44
|
-
identifier: string;
|
|
45
|
-
name: string;
|
|
46
|
-
ttl: number;
|
|
47
|
-
triggerName: string;
|
|
48
|
-
triggerType: TriggerType;
|
|
49
|
-
triggerIdentifier: string;
|
|
50
|
-
semanticIdentifier: string;
|
|
51
|
-
steps: Array<WorkflowDefinitionStepBase>;
|
|
52
|
-
enabled: boolean;
|
|
53
|
-
workflowDrawing?: WorkflowDrawing;
|
|
54
|
-
trigger?: TriggerInterface;
|
|
55
|
-
}
|
|
56
|
-
export interface WorkflowDefinition extends CreateWorkflowDefinition, StoredInterface {
|
|
57
|
-
steps: Array<WorkflowDefinitionStepBase>;
|
|
58
|
-
tenantIdentifier: string;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* TODO: set this later as WorkflowDefinition
|
|
62
|
-
* However if i do that right now, compilation fails
|
|
63
|
-
*/
|
|
64
|
-
export interface BetterWorkflowDefinition extends WorkflowDefinition {
|
|
65
|
-
steps: Array<WorkflowDefinitionStep & StoredInterface>;
|
|
66
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { ChartInterface } from '../chart.interface';
|
|
2
|
-
import { ConditionalTypes, NodeTypes, TriggerType } from './enums';
|
|
3
|
-
import { ConditionMapper, MessageMapper, ValidationMapper } from './parameter-mapper.interface';
|
|
4
|
-
export interface Conditional {
|
|
5
|
-
type: ConditionalTypes;
|
|
6
|
-
}
|
|
7
|
-
export interface Node {
|
|
8
|
-
id: string;
|
|
9
|
-
type: NodeTypes;
|
|
10
|
-
position: {
|
|
11
|
-
x: number;
|
|
12
|
-
y: number;
|
|
13
|
-
};
|
|
14
|
-
meta?: Record<string, string | Array<string>>;
|
|
15
|
-
name: string;
|
|
16
|
-
}
|
|
17
|
-
export interface ActionNode extends Node {
|
|
18
|
-
type: NodeTypes.ACTION;
|
|
19
|
-
action: {
|
|
20
|
-
identifier: string;
|
|
21
|
-
version: string;
|
|
22
|
-
};
|
|
23
|
-
with: MessageMapper;
|
|
24
|
-
}
|
|
25
|
-
export interface TriggerNode extends Node {
|
|
26
|
-
type: NodeTypes.TRIGGER;
|
|
27
|
-
trigger: {
|
|
28
|
-
name: string;
|
|
29
|
-
type: TriggerType;
|
|
30
|
-
identifier: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export interface ConditionalNode extends Node {
|
|
34
|
-
type: NodeTypes.CONDITIONAL;
|
|
35
|
-
condition: Conditional;
|
|
36
|
-
with: ConditionMapper;
|
|
37
|
-
}
|
|
38
|
-
export interface ValidationNode extends Node {
|
|
39
|
-
type: NodeTypes.VALIDATION;
|
|
40
|
-
with: ValidationMapper;
|
|
41
|
-
}
|
|
42
|
-
export interface AnnotationNode extends Node {
|
|
43
|
-
type: NodeTypes.ANNOTATION;
|
|
44
|
-
}
|
|
45
|
-
export interface EndNode extends Node {
|
|
46
|
-
type: NodeTypes.END;
|
|
47
|
-
}
|
|
48
|
-
export interface PlaceholderNode extends Node {
|
|
49
|
-
type: NodeTypes.PLACEHOLDER;
|
|
50
|
-
with: {};
|
|
51
|
-
}
|
|
52
|
-
export interface InvisibleNode extends Node {
|
|
53
|
-
type: NodeTypes.INVISIBLE;
|
|
54
|
-
}
|
|
55
|
-
export type WorkflowNode = ActionNode | ConditionalNode | AnnotationNode | PlaceholderNode | ValidationNode | EndNode | InvisibleNode;
|
|
56
|
-
export interface Edge {
|
|
57
|
-
id: string;
|
|
58
|
-
source: {
|
|
59
|
-
nodeId: string;
|
|
60
|
-
};
|
|
61
|
-
target: {
|
|
62
|
-
nodeId: string;
|
|
63
|
-
};
|
|
64
|
-
type: string;
|
|
65
|
-
meta?: Record<string, string | Array<string>>;
|
|
66
|
-
}
|
|
67
|
-
export interface CreateWorkflowDrawingInterface {
|
|
68
|
-
name: string;
|
|
69
|
-
description: string;
|
|
70
|
-
identifier: string;
|
|
71
|
-
ttl: number;
|
|
72
|
-
trigger: TriggerNode;
|
|
73
|
-
nodes: Array<WorkflowNode>;
|
|
74
|
-
edges: Array<Edge>;
|
|
75
|
-
enabled: boolean;
|
|
76
|
-
}
|
|
77
|
-
export type WorkflowDrawingChartSubInterface = Pick<ChartInterface, 'id' | 'params' | 'slice_name' | 'supersetId' | 'viz_type'>;
|
|
78
|
-
export type WorkflowDrawingPayload = Array<{
|
|
79
|
-
value: string;
|
|
80
|
-
label: string;
|
|
81
|
-
field_type: 'text' | 'string' | 'number' | 'textarea' | 'checkbox' | 'select' | 'cube-select';
|
|
82
|
-
field_options?: Array<{
|
|
83
|
-
dimensions: string;
|
|
84
|
-
}>;
|
|
85
|
-
field_dataset?: string;
|
|
86
|
-
}>;
|
|
87
|
-
export interface WorkflowDrawing extends CreateWorkflowDrawingInterface {
|
|
88
|
-
id: string;
|
|
89
|
-
createdAt: Date;
|
|
90
|
-
updatedAt: Date;
|
|
91
|
-
version: number;
|
|
92
|
-
triggerChart?: WorkflowDrawingChartSubInterface;
|
|
93
|
-
}
|
|
94
|
-
export interface WorkflowDrawingWithPayload extends WorkflowDrawing {
|
|
95
|
-
payload: WorkflowDrawingPayload;
|
|
96
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { EventInterface } from '../event-origin.interface';
|
|
2
|
-
import { WorkflowDefinition, WorkflowDefinitionStep } from './workflow-definition.interface';
|
|
3
|
-
import { WorkflowDrawing } from './workflow-drawing.interface';
|
|
4
|
-
import { ConditionMapper, MessageMapper, NodeMapper, ValidationMapper } from './parameter-mapper.interface';
|
|
5
|
-
import { WorkflowRunStatusStatus, WorkflowJobStatusStatus, NodeTypes } from './enums';
|
|
6
|
-
export interface BaseWorkflowJobInterface {
|
|
7
|
-
id: string;
|
|
8
|
-
identifier: string;
|
|
9
|
-
run: WorkflowRunInterface;
|
|
10
|
-
status: WorkflowJobStatusStatus;
|
|
11
|
-
operationIdentifier: string;
|
|
12
|
-
operationVersion?: string;
|
|
13
|
-
payload?: Record<string, unknown> | undefined;
|
|
14
|
-
log?: string;
|
|
15
|
-
result?: unknown;
|
|
16
|
-
requires: Array<string>;
|
|
17
|
-
step: WorkflowDefinitionStep;
|
|
18
|
-
testRun?: boolean;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
updatedAt: Date;
|
|
21
|
-
type: NodeTypes;
|
|
22
|
-
with: NodeMapper;
|
|
23
|
-
}
|
|
24
|
-
export interface ActionJob extends BaseWorkflowJobInterface {
|
|
25
|
-
type: NodeTypes.ACTION;
|
|
26
|
-
with: MessageMapper;
|
|
27
|
-
operationIdentifier: string;
|
|
28
|
-
operationVersion: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ConditionalJob extends BaseWorkflowJobInterface {
|
|
31
|
-
type: NodeTypes.CONDITIONAL;
|
|
32
|
-
with: ConditionMapper;
|
|
33
|
-
}
|
|
34
|
-
export interface ValidationJob extends BaseWorkflowJobInterface {
|
|
35
|
-
type: NodeTypes.VALIDATION;
|
|
36
|
-
with: ValidationMapper;
|
|
37
|
-
}
|
|
38
|
-
export interface PlaceholderJob extends BaseWorkflowJobInterface {
|
|
39
|
-
type: NodeTypes.PLACEHOLDER;
|
|
40
|
-
with: {};
|
|
41
|
-
}
|
|
42
|
-
export type WorkflowJobInterface = ActionJob | ConditionalJob | ValidationJob | PlaceholderJob;
|
|
43
|
-
export interface WorkflowRunInterface {
|
|
44
|
-
id: string;
|
|
45
|
-
tenantIdentifier: string;
|
|
46
|
-
semanticIdentifier: string;
|
|
47
|
-
status: WorkflowRunStatusStatus;
|
|
48
|
-
ttl: number;
|
|
49
|
-
workflow: WorkflowDefinition;
|
|
50
|
-
drawing?: WorkflowDrawing;
|
|
51
|
-
trigger: EventInterface;
|
|
52
|
-
jobs: Array<WorkflowJobInterface>;
|
|
53
|
-
createdAt: Date;
|
|
54
|
-
updatedAt: Date;
|
|
55
|
-
testRun?: boolean;
|
|
56
|
-
restartOf?: string;
|
|
57
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface XodBaseMessageType {
|
|
2
|
-
type: 'ACTION' | 'EVENT' | 'SOURCE' | 'JOB';
|
|
3
|
-
eventId: string;
|
|
4
|
-
eventType: string;
|
|
5
|
-
eventTopic?: string;
|
|
6
|
-
created: number;
|
|
7
|
-
payload: object;
|
|
8
|
-
ttl: number;
|
|
9
|
-
tenantIdentifier: string;
|
|
10
|
-
testRun?: boolean;
|
|
11
|
-
meta?: {
|
|
12
|
-
[key: string]: unknown;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
export interface EventPayload {
|
|
16
|
-
tenantId: string;
|
|
17
|
-
data?: {
|
|
18
|
-
[key: string]: unknown;
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export interface XodEventType extends XodBaseMessageType {
|
|
22
|
-
type: 'EVENT';
|
|
23
|
-
payload: EventPayload;
|
|
24
|
-
}
|
|
25
|
-
export interface XodActionPayloadType {
|
|
26
|
-
content?: string;
|
|
27
|
-
destination?: string;
|
|
28
|
-
}
|
|
29
|
-
export interface XodActionType extends XodBaseMessageType {
|
|
30
|
-
type: 'ACTION';
|
|
31
|
-
payload: XodActionPayloadType;
|
|
32
|
-
}
|
|
33
|
-
export interface XodJobType extends XodBaseMessageType {
|
|
34
|
-
type: 'JOB';
|
|
35
|
-
actionIdentifier: string;
|
|
36
|
-
actionVersion: string;
|
|
37
|
-
payload: Record<string, unknown>;
|
|
38
|
-
}
|
|
39
|
-
export interface XodSourcePayloadType {
|
|
40
|
-
keyField?: string;
|
|
41
|
-
incrementalField?: string;
|
|
42
|
-
collection?: string;
|
|
43
|
-
indexes?: Array<string>;
|
|
44
|
-
body: {
|
|
45
|
-
[key: string]: unknown;
|
|
46
|
-
};
|
|
47
|
-
metadata?: {
|
|
48
|
-
[key: string]: unknown;
|
|
49
|
-
};
|
|
50
|
-
priority?: boolean;
|
|
51
|
-
endOfBatch?: boolean;
|
|
52
|
-
}
|
|
53
|
-
export interface XodSourceMessageType extends XodBaseMessageType {
|
|
54
|
-
type: 'SOURCE';
|
|
55
|
-
payload: XodSourcePayloadType;
|
|
56
|
-
}
|
|
57
|
-
export declare function isXodBaseMessageType(obj: XodBaseMessageType): obj is XodBaseMessageType;
|
|
58
|
-
export declare function isXodEventType(obj: XodEventType): obj is XodEventType;
|
|
59
|
-
export declare function isXodActionType(obj: XodActionType): obj is XodActionType;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { XodActionType, XodBaseMessageType, XodEventType, XodJobType } from './message.types';
|
|
2
|
-
export interface KafkaCallbackResponse<T = unknown> {
|
|
3
|
-
success: boolean;
|
|
4
|
-
statusCode: number;
|
|
5
|
-
message: string;
|
|
6
|
-
payload?: T;
|
|
7
|
-
}
|
|
8
|
-
export type KafkaCallbackResponseType<T = string> = (additionalMessage?: T) => (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
|
|
9
|
-
export interface XodResponseType {
|
|
10
|
-
type: 'ACTION' | 'EVENT' | 'JOB';
|
|
11
|
-
message: XodActionType | XodEventType | XodJobType;
|
|
12
|
-
result: KafkaCallbackResponse;
|
|
13
|
-
responseSource: string;
|
|
14
|
-
}
|
|
15
|
-
export interface XodEventResponseType extends XodResponseType {
|
|
16
|
-
type: 'EVENT';
|
|
17
|
-
message: XodEventType;
|
|
18
|
-
}
|
|
19
|
-
export interface XodActionResponseType extends XodResponseType {
|
|
20
|
-
type: 'ACTION';
|
|
21
|
-
message: XodActionType;
|
|
22
|
-
}
|
|
23
|
-
export interface XodJobResponseType extends XodResponseType {
|
|
24
|
-
type: 'JOB';
|
|
25
|
-
message: XodJobType;
|
|
26
|
-
}
|
|
27
|
-
export declare function isXodResponseType(obj: any): obj is XodResponseType;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
export interface MessageMonitorConfig {
|
|
2
|
-
type: 'in-memory' | 'redis' | 'disabled';
|
|
3
|
-
}
|
|
4
|
-
export declare enum ConfiguredConnectorTypes {
|
|
5
|
-
API = "api",
|
|
6
|
-
API_SINK = "api-sink",
|
|
7
|
-
API_SOURCE = "api-source",
|
|
8
|
-
DUMMY_NODE = "dummy-node",
|
|
9
|
-
FILE_COPY = "file-copy",
|
|
10
|
-
FILE = "file",
|
|
11
|
-
FILE_SINK = "file-sink",
|
|
12
|
-
FILE_SOURCE = "file-source",
|
|
13
|
-
SAMBA_SINK = "samba-sink",
|
|
14
|
-
SAMBA_SOURCE = "samba-source",
|
|
15
|
-
SQL_SINK = "sql-sink",
|
|
16
|
-
SQL_SOURCE = "sql-source",
|
|
17
|
-
MQTT = "mqtt",
|
|
18
|
-
CUBE_QUERY_RUNNER = "cube-query-runner",
|
|
19
|
-
FACTORY_NEBULA_SOURCE = "factory-nebula-source",
|
|
20
|
-
BYSTRONIC = "bystronic",
|
|
21
|
-
IMAP_SOURCE = "imap-source",
|
|
22
|
-
IMAP_SINK = "imap-sink",
|
|
23
|
-
OPCUA_SOURCE = "opcua-source",
|
|
24
|
-
OPCUA_SINK = "opcua-sink",
|
|
25
|
-
AI_AGENT = "ai-agent",
|
|
26
|
-
MICROSOFT_OFFICE365_EMAIL = "microsoft-office365-email",
|
|
27
|
-
MKG = "mkg",
|
|
28
|
-
EZ_MES = "ez-mes",
|
|
29
|
-
OTTO_FLEET_MANAGER_V2 = "otto-fleet-manager-v2",
|
|
30
|
-
FRAUNHOFER_BATTERY_ASSEMBLY_CELLS = "fraunhofer-battery-assembly-cells",
|
|
31
|
-
PDF_GENERATE = "pdf-generate",
|
|
32
|
-
ONSHAPE = "onshape"
|
|
33
|
-
}
|
|
34
|
-
export interface ConnectorConfig {
|
|
35
|
-
type: ConfiguredConnectorTypes;
|
|
36
|
-
identifier: string;
|
|
37
|
-
}
|
|
38
|
-
export interface RedisMessageMonitorConfig extends MessageMonitorConfig {
|
|
39
|
-
type: 'redis';
|
|
40
|
-
url: string;
|
|
41
|
-
ttl?: number;
|
|
42
|
-
}
|
|
43
|
-
export interface InMemoryMessageMonitorConfig extends MessageMonitorConfig {
|
|
44
|
-
type: 'in-memory';
|
|
45
|
-
messagesToKeep: number;
|
|
46
|
-
}
|
|
47
|
-
export interface DisabledMessageMonitorConfig extends MessageMonitorConfig {
|
|
48
|
-
type: 'disabled';
|
|
49
|
-
}
|
|
50
|
-
export interface TopicRegex {
|
|
51
|
-
pattern: string;
|
|
52
|
-
flags: string;
|
|
53
|
-
}
|
|
54
|
-
export interface FileRegex {
|
|
55
|
-
pattern: string;
|
|
56
|
-
flags: string;
|
|
57
|
-
}
|
|
58
|
-
export declare function isTopicRegex(obj: TopicRegex | string): obj is TopicRegex;
|
|
59
|
-
export interface CubeConfigHeaders {
|
|
60
|
-
Authorization: string;
|
|
61
|
-
}
|
|
62
|
-
export interface CubeConfig {
|
|
63
|
-
auth0_client_secret?: string;
|
|
64
|
-
auth0_client_id?: string;
|
|
65
|
-
auth0_audience?: string;
|
|
66
|
-
auth0_token_url?: string;
|
|
67
|
-
authorization?: string;
|
|
68
|
-
apiUrl: string;
|
|
69
|
-
headers?: CubeConfigHeaders;
|
|
70
|
-
redis_url?: string;
|
|
71
|
-
}
|
|
72
|
-
export declare function isCubeConfigType(obj: CubeConfig): obj is CubeConfig;
|
|
73
|
-
export interface AwsKafkaSaslConfig {
|
|
74
|
-
region?: string;
|
|
75
|
-
accessKeyId?: string;
|
|
76
|
-
secretAccessKey?: string;
|
|
77
|
-
mechanism: 'aws';
|
|
78
|
-
}
|
|
79
|
-
export declare function isAwsKafkaSalsConfig(obj: AwsKafkaSaslConfig): obj is AwsKafkaSaslConfig;
|
|
80
|
-
export interface DatabaseConfig {
|
|
81
|
-
uri: string;
|
|
82
|
-
ssl?: boolean;
|
|
83
|
-
tenantPassword?: string;
|
|
84
|
-
}
|
|
85
|
-
export interface ActionConfig {
|
|
86
|
-
timeSensitive: boolean;
|
|
87
|
-
}
|
|
88
|
-
export interface KafkaBrokerConfig {
|
|
89
|
-
groupId: string;
|
|
90
|
-
clientId: string;
|
|
91
|
-
brokers: Array<string>;
|
|
92
|
-
consumerTopics?: Array<string | TopicRegex>;
|
|
93
|
-
sasl?: AwsKafkaSaslConfig;
|
|
94
|
-
intervalCheckForNewTopics?: number;
|
|
95
|
-
disableLogs?: boolean;
|
|
96
|
-
autoCommitThreshold?: number;
|
|
97
|
-
autoCommitInterval?: number;
|
|
98
|
-
partitionsConsumedConcurrently?: number;
|
|
99
|
-
messageMonitor?: RedisMessageMonitorConfig | InMemoryMessageMonitorConfig | DisabledMessageMonitorConfig;
|
|
100
|
-
useConfluentLibrary?: boolean;
|
|
101
|
-
newConsumerProtocol?: boolean;
|
|
102
|
-
}
|
|
103
|
-
export declare function isKafkaBrokerConfigType(obj: KafkaBrokerConfig): obj is KafkaBrokerConfig;
|
|
104
|
-
export declare function isActionConfigType(obj: any): obj is ActionConfig;
|
|
105
|
-
export declare function isDatabaseConfigType(obj: DatabaseConfig): obj is DatabaseConfig;
|
|
106
|
-
export interface BaseConnectorConfig {
|
|
107
|
-
processIdentifier: string;
|
|
108
|
-
tenantIdentifier: string;
|
|
109
|
-
datasourceIdentifier: string;
|
|
110
|
-
kafka: KafkaBrokerConfig;
|
|
111
|
-
action?: ActionConfig;
|
|
112
|
-
}
|
|
113
|
-
export declare function isBaseConnectorConfigType(obj: BaseConnectorConfig): obj is BaseConnectorConfig;
|
|
114
|
-
export declare const OPENAI_MODELS: readonly ["gpt-3.5-turbo", "gpt-4", "gpt-4-turbo", "gpt-4o", "gpt-4o-mini", "gpt-5-nano", "gpt-5-mini", "gpt-5", "o1-preview", "o1-mini"];
|
|
115
|
-
export declare const ANTHROPIC_MODELS: readonly ["claude-2", "claude-2-100k", "claude-instant-100k", "claude-sonnet-4-5"];
|
|
116
|
-
export declare const MISTRAL_MODELS: readonly ["mistral-large-2512", "mistral-medium-2508", "mistral-small-2506"];
|
|
117
|
-
export type OpenAiModel = (typeof OPENAI_MODELS)[number];
|
|
118
|
-
export type AnthropicModel = (typeof ANTHROPIC_MODELS)[number];
|
|
119
|
-
export type MistralModel = (typeof MISTRAL_MODELS)[number];
|
|
120
|
-
export interface AiAgentModel {
|
|
121
|
-
apiKey: string;
|
|
122
|
-
provider: 'openai' | 'anthropic' | 'aws' | 'mistral';
|
|
123
|
-
model: OpenAiModel | AnthropicModel | MistralModel;
|
|
124
|
-
region?: string;
|
|
125
|
-
credentials?: {
|
|
126
|
-
secretAccessKey: string;
|
|
127
|
-
accessKeyId: string;
|
|
128
|
-
};
|
|
129
|
-
temperature?: number;
|
|
130
|
-
timeout?: number;
|
|
131
|
-
}
|
|
132
|
-
export interface AiAgentConfig extends BaseConnectorConfig {
|
|
133
|
-
model: AiAgentModel;
|
|
134
|
-
}
|