@transai/connector-runner-dummy-node 0.1.2 → 0.2.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/.eslintrc.json +30 -0
- package/CHANGELOG.md +4 -0
- package/jest.config.ts +10 -0
- package/package.json +1 -1
- package/project.json +41 -0
- package/src/lib/connector-runner-dummy-node.ts +52 -0
- package/tsconfig.json +22 -0
- package/tsconfig.lib.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/index.cjs +0 -2
- package/index.cjs.map +0 -7
- package/index.js +0 -2
- package/index.js.map +0 -7
- package/libs/connector-runner-dummy-node/src/lib/connector-runner-dummy-node.d.ts +0 -8
- package/libs/connector-runtime-sdk/src/index.d.ts +0 -3
- package/libs/connector-runtime-sdk/src/lib/connector-runtime.d.ts +0 -16
- package/libs/connector-runtime-sdk/src/lib/connector-runtime.interface.d.ts +0 -5
- package/libs/connector-runtime-sdk/src/lib/sdk/index.d.ts +0 -7
- package/libs/connector-runtime-sdk/src/lib/sdk/logger.sdk.interface.d.ts +0 -7
- package/libs/connector-runtime-sdk/src/lib/sdk/offset-store.sdk.interface.d.ts +0 -11
- package/libs/connector-runtime-sdk/src/lib/sdk/processing.sdk.interface.d.ts +0 -12
- package/libs/connector-runtime-sdk/src/lib/sdk/receiver.sdk.interface.d.ts +0 -14
- package/libs/connector-runtime-sdk/src/lib/sdk/sdk.interface.d.ts +0 -16
- package/libs/connector-runtime-sdk/src/lib/sdk/sender.sdk.interface.d.ts +0 -22
- package/libs/connector-runtime-sdk/src/lib/sdk/templating.sdk.interface.d.ts +0 -12
- 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 -63
- package/libs/types/src/lib/management-api/action-definition.interface.d.ts +0 -12
- 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 -140
- package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +0 -126
- 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 -93
- 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 -16
- package/libs/types/src/lib/management-api/dataset/dataset-record.interface.d.ts +0 -5
- package/libs/types/src/lib/management-api/dataset/dataset.interface.d.ts +0 -730
- package/libs/types/src/lib/management-api/dataset/datasets.interface.d.ts +0 -710
- package/libs/types/src/lib/management-api/dataset/dimension.interface.d.ts +0 -205
- package/libs/types/src/lib/management-api/dataset/dimensions.interface.d.ts +0 -186
- 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 -34
- 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 -65
- package/libs/types/src/lib/management-api/dataset/measures.interface.d.ts +0 -56
- 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 -69
- package/libs/types/src/lib/management-api/dataset/pre-aggregations.interface.d.ts +0 -54
- package/libs/types/src/lib/management-api/dataset/relation.interface.d.ts +0 -40
- package/libs/types/src/lib/management-api/dataset/relations.interface.d.ts +0 -36
- package/libs/types/src/lib/management-api/dataset/segment.interface.d.ts +0 -45
- package/libs/types/src/lib/management-api/dataset/segments.interface.d.ts +0 -43
- package/libs/types/src/lib/management-api/dataset/switch.interface.d.ts +0 -70
- package/libs/types/src/lib/management-api/dataset/when-item.interface.d.ts +0 -41
- package/libs/types/src/lib/management-api/dataset/when-items.interface.d.ts +0 -40
- package/libs/types/src/lib/management-api/event-origin.interface.d.ts +0 -22
- package/libs/types/src/lib/management-api/index.d.ts +0 -39
- package/libs/types/src/lib/management-api/pagination/index.d.ts +0 -1
- package/libs/types/src/lib/management-api/pagination/paginated-response.interface.d.ts +0 -17
- package/libs/types/src/lib/management-api/semantic-trigger/index.d.ts +0 -5
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts +0 -20
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts +0 -18
- 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 -74
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-triggers.interface.d.ts +0 -62
- package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +0 -1152
- package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +0 -2860
- package/libs/types/src/lib/management-api/template.interface.d.ts +0 -1191
- 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 -85
- package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +0 -85
- package/libs/types/src/lib/management-api/workflow/index.d.ts +0 -6
- package/libs/types/src/lib/management-api/workflow/offset.interface.d.ts +0 -16
- package/libs/types/src/lib/management-api/workflow/trigger-types.interface.d.ts +0 -5
- package/libs/types/src/lib/management-api/workflow/workflow-definition.interface.d.ts +0 -49
- package/libs/types/src/lib/management-api/workflow/workflow-run.d.ts +0 -65
- package/libs/types/src/lib/management-api/workflow/workflow.drawing.d.ts +0 -101
- 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 -113
- /package/{libs/connector-runner-dummy-node/src/index.d.ts → src/index.ts} +0 -0
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare enum DatasetTypeEnum {
|
|
3
|
-
documents = "documents",
|
|
4
|
-
metrics = "metrics",
|
|
5
|
-
events = "events"
|
|
6
|
-
}
|
|
7
|
-
export declare enum FilterOperatorsEnum {
|
|
8
|
-
equals = "=",
|
|
9
|
-
notEquals = "<>",
|
|
10
|
-
greaterThan = ">",
|
|
11
|
-
greaterThanOrEqual = ">=",
|
|
12
|
-
lessThan = "<",
|
|
13
|
-
lessThanOrEqual = "<=",
|
|
14
|
-
in = "IN"
|
|
15
|
-
}
|
|
16
|
-
export declare const FilterValueType: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>;
|
|
17
|
-
export type FilterValueType = z.infer<typeof FilterValueType>;
|
|
18
|
-
export declare enum FilterGroupTypesEnum {
|
|
19
|
-
and = "AND",
|
|
20
|
-
or = "OR"
|
|
21
|
-
}
|
|
22
|
-
export declare const FieldValueType: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
23
|
-
export type FieldValueType = z.infer<typeof FieldValueType>;
|
|
24
|
-
export declare enum DimensionTypesEnum {
|
|
25
|
-
string = "string",
|
|
26
|
-
number = "number",
|
|
27
|
-
boolean = "boolean",
|
|
28
|
-
time = "time"
|
|
29
|
-
}
|
|
30
|
-
export declare enum DimensionFormatsEnum {
|
|
31
|
-
id = "image_url",
|
|
32
|
-
imageUrl = "image_url",
|
|
33
|
-
link = "link",
|
|
34
|
-
percent = "percent",
|
|
35
|
-
currency = "currency"
|
|
36
|
-
}
|
|
37
|
-
export declare enum RelationTypesEnum {
|
|
38
|
-
oneToOne = "one_to_one",
|
|
39
|
-
oneToMany = "one_to_many",
|
|
40
|
-
manyToOne = "many_to_one",
|
|
41
|
-
manyToMany = "many_to_many"
|
|
42
|
-
}
|
|
43
|
-
export declare enum MeasureTypesEnum {
|
|
44
|
-
count = "count",
|
|
45
|
-
countDistinct = "count_distinct",
|
|
46
|
-
countDistinctApprox = "count_distinct_approx",
|
|
47
|
-
sum = "sum",
|
|
48
|
-
avg = "avg",
|
|
49
|
-
min = "min",
|
|
50
|
-
max = "max",
|
|
51
|
-
string = "string",
|
|
52
|
-
time = "time",
|
|
53
|
-
boolean = "boolean",
|
|
54
|
-
number = "number"
|
|
55
|
-
}
|
|
56
|
-
export declare enum MeasureFormatsEnum {
|
|
57
|
-
percent = "percent",
|
|
58
|
-
currency = "currency"
|
|
59
|
-
}
|
|
60
|
-
export declare enum SemanticTriggerFilterOperatorsEnum {
|
|
61
|
-
equals = "equals",
|
|
62
|
-
notEquals = "notEquals",
|
|
63
|
-
contains = "contains",
|
|
64
|
-
notContains = "notContains",
|
|
65
|
-
startsWith = "startsWith",
|
|
66
|
-
notStartsWith = "notStartsWith",
|
|
67
|
-
endsWith = "endsWith",
|
|
68
|
-
notEndsWith = "notEndsWith",
|
|
69
|
-
gt = "gt",
|
|
70
|
-
gte = "gte",
|
|
71
|
-
lt = "lt",
|
|
72
|
-
lte = "lte",
|
|
73
|
-
set = "set",
|
|
74
|
-
notSet = "notSet",
|
|
75
|
-
inDateRange = "inDateRange",
|
|
76
|
-
notInDateRange = "notInDateRange",
|
|
77
|
-
beforeDate = "beforeDate",
|
|
78
|
-
beforeOrOnDate = "beforeOrOnDate",
|
|
79
|
-
afterDate = "afterDate",
|
|
80
|
-
afterOrOnDate = "afterOrOnDate"
|
|
81
|
-
}
|
|
82
|
-
export declare enum ConnectorOrigin {
|
|
83
|
-
from_template = "from_template",
|
|
84
|
-
manual = "manual"
|
|
85
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ConnectorOrigin } from '@xip-online-data/types';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
export interface InputParameterInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
type: 'string' | 'number' | 'boolean' | 'array';
|
|
6
|
-
required?: boolean;
|
|
7
|
-
items?: Array<InputParameterInterface>;
|
|
8
|
-
}
|
|
9
|
-
export interface ActionInterface {
|
|
10
|
-
identifier: string;
|
|
11
|
-
version: string;
|
|
12
|
-
tenantIdentifier: string;
|
|
13
|
-
name: string;
|
|
14
|
-
description?: string;
|
|
15
|
-
connectorIdentifier: string;
|
|
16
|
-
config: {
|
|
17
|
-
[key: string]: {
|
|
18
|
-
[key: string]: string | object;
|
|
19
|
-
} | string | object;
|
|
20
|
-
};
|
|
21
|
-
inputParameters: Array<InputParameterInterface>;
|
|
22
|
-
outputParameters: unknown;
|
|
23
|
-
mode?: ConnectorOrigin;
|
|
24
|
-
createdAt: Date;
|
|
25
|
-
}
|
|
26
|
-
export type CreateActionInterface = Omit<ActionInterface, 'mode' | 'createdAt'>;
|
|
27
|
-
export declare const ActionSchema: z.ZodObject<{
|
|
28
|
-
identifier: z.ZodString;
|
|
29
|
-
version: z.ZodString;
|
|
30
|
-
name: z.ZodString;
|
|
31
|
-
description: z.ZodOptional<z.ZodString>;
|
|
32
|
-
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
33
|
-
inputParameters: z.ZodArray<z.ZodObject<{
|
|
34
|
-
name: z.ZodString;
|
|
35
|
-
type: z.ZodEnum<["string", "number", "boolean", "array"]>;
|
|
36
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
-
items: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
38
|
-
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
type: "string" | "number" | "boolean" | "array";
|
|
40
|
-
name: string;
|
|
41
|
-
required?: boolean | undefined;
|
|
42
|
-
items?: any[] | undefined;
|
|
43
|
-
}, {
|
|
44
|
-
type: "string" | "number" | "boolean" | "array";
|
|
45
|
-
name: string;
|
|
46
|
-
required?: boolean | undefined;
|
|
47
|
-
items?: any[] | undefined;
|
|
48
|
-
}>, "many">;
|
|
49
|
-
outputParameters: z.ZodAny;
|
|
50
|
-
mode: z.ZodOptional<z.ZodNativeEnum<typeof ConnectorOrigin>>;
|
|
51
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
52
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
53
|
-
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
identifier: string;
|
|
55
|
-
version: string;
|
|
56
|
-
name: string;
|
|
57
|
-
config: Record<string, any>;
|
|
58
|
-
inputParameters: {
|
|
59
|
-
type: "string" | "number" | "boolean" | "array";
|
|
60
|
-
name: string;
|
|
61
|
-
required?: boolean | undefined;
|
|
62
|
-
items?: any[] | undefined;
|
|
63
|
-
}[];
|
|
64
|
-
mode?: ConnectorOrigin | undefined;
|
|
65
|
-
createdAt?: Date | undefined;
|
|
66
|
-
description?: string | undefined;
|
|
67
|
-
outputParameters?: any;
|
|
68
|
-
updatedAt?: Date | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
identifier: string;
|
|
71
|
-
version: string;
|
|
72
|
-
name: string;
|
|
73
|
-
config: Record<string, any>;
|
|
74
|
-
inputParameters: {
|
|
75
|
-
type: "string" | "number" | "boolean" | "array";
|
|
76
|
-
name: string;
|
|
77
|
-
required?: boolean | undefined;
|
|
78
|
-
items?: any[] | undefined;
|
|
79
|
-
}[];
|
|
80
|
-
mode?: ConnectorOrigin | undefined;
|
|
81
|
-
createdAt?: Date | undefined;
|
|
82
|
-
description?: string | undefined;
|
|
83
|
-
outputParameters?: any;
|
|
84
|
-
updatedAt?: Date | undefined;
|
|
85
|
-
}>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface OffsetStore {
|
|
2
|
-
timestamp: number;
|
|
3
|
-
id: number | string;
|
|
4
|
-
date?: string;
|
|
5
|
-
rawTimestamp: number | string;
|
|
6
|
-
}
|
|
7
|
-
export interface ExtendedOffsetStore extends OffsetStore {
|
|
8
|
-
[key: string]: string | number | undefined;
|
|
9
|
-
}
|
|
10
|
-
export interface OffsetInterface {
|
|
11
|
-
identifier: string;
|
|
12
|
-
tenantIdentifier: string;
|
|
13
|
-
offset: ExtendedOffsetStore;
|
|
14
|
-
connectorIdentifier: string;
|
|
15
|
-
userOverwrite: boolean;
|
|
16
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { TriggerType } from './trigger-types.interface';
|
|
2
|
-
import { NodeTypes, WorkflowDrawing } from './workflow.drawing';
|
|
3
|
-
export interface MessageMapper {
|
|
4
|
-
[key: string]: string | {
|
|
5
|
-
selector: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export interface ConditionMapper {
|
|
10
|
-
selector: string;
|
|
11
|
-
[key: string]: string | {
|
|
12
|
-
id: string;
|
|
13
|
-
value: string;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export type NodeMapper = MessageMapper | ConditionMapper;
|
|
17
|
-
export interface CreateWorkflowDefinitionStep {
|
|
18
|
-
name: string;
|
|
19
|
-
identifier: string;
|
|
20
|
-
requires: Array<string>;
|
|
21
|
-
type: NodeTypes;
|
|
22
|
-
operationIdentifier: string;
|
|
23
|
-
operationVersion?: string;
|
|
24
|
-
with: NodeMapper;
|
|
25
|
-
}
|
|
26
|
-
export interface WorkflowDefinitionStep extends CreateWorkflowDefinitionStep {
|
|
27
|
-
id: string;
|
|
28
|
-
createdAt: Date;
|
|
29
|
-
updatedAt: Date;
|
|
30
|
-
}
|
|
31
|
-
export interface CreateWorkflowDefinition {
|
|
32
|
-
identifier: string;
|
|
33
|
-
name: string;
|
|
34
|
-
ttl: number;
|
|
35
|
-
triggerName: string;
|
|
36
|
-
triggerType: TriggerType;
|
|
37
|
-
triggerIdentifier: string;
|
|
38
|
-
semanticIdentifier: string;
|
|
39
|
-
steps: Array<CreateWorkflowDefinitionStep>;
|
|
40
|
-
enabled: boolean;
|
|
41
|
-
workflowDrawing?: WorkflowDrawing;
|
|
42
|
-
}
|
|
43
|
-
export interface WorkflowDefinition extends CreateWorkflowDefinition {
|
|
44
|
-
steps: Array<WorkflowDefinitionStep>;
|
|
45
|
-
id: string;
|
|
46
|
-
createdAt: Date;
|
|
47
|
-
updatedAt: Date;
|
|
48
|
-
tenantIdentifier: string;
|
|
49
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { EventInterface } from '../event-origin.interface';
|
|
2
|
-
import { ConditionMapper, MessageMapper, NodeMapper, WorkflowDefinition, WorkflowDefinitionStep } from './workflow-definition.interface';
|
|
3
|
-
import { NodeTypes, WorkflowDrawing } from './workflow.drawing';
|
|
4
|
-
export declare enum WorkflowRunStatusStatus {
|
|
5
|
-
PENDING = "PENDING",
|
|
6
|
-
RUNNING = "RUNNING",
|
|
7
|
-
SUCCESS = "SUCCESS",
|
|
8
|
-
FAILED = "FAILED"
|
|
9
|
-
}
|
|
10
|
-
export declare enum WorkflowJobStatusStatus {
|
|
11
|
-
PENDING = "PENDING",
|
|
12
|
-
RUNNING = "RUNNING",
|
|
13
|
-
SUCCESS = "SUCCESS",
|
|
14
|
-
SKIPPED = "SKIPPED",
|
|
15
|
-
BAD_REQUEST = "BAD_REQUEST",
|
|
16
|
-
INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR"
|
|
17
|
-
}
|
|
18
|
-
export interface WorkflowRunInterface {
|
|
19
|
-
id: string;
|
|
20
|
-
tenantIdentifier: string;
|
|
21
|
-
semanticIdentifier: string;
|
|
22
|
-
status: WorkflowRunStatusStatus;
|
|
23
|
-
ttl: number;
|
|
24
|
-
workflow: WorkflowDefinition;
|
|
25
|
-
drawing?: WorkflowDrawing;
|
|
26
|
-
trigger: EventInterface;
|
|
27
|
-
jobs: Array<ActionJob | ConditionalJob | ValidationJob | AgentJob>;
|
|
28
|
-
createdAt: Date;
|
|
29
|
-
updatedAt: Date;
|
|
30
|
-
testRun?: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface WorkflowJobInterface {
|
|
33
|
-
id: string;
|
|
34
|
-
identifier: string;
|
|
35
|
-
run: WorkflowRunInterface;
|
|
36
|
-
status: WorkflowJobStatusStatus;
|
|
37
|
-
operationIdentifier: string;
|
|
38
|
-
operationVersion?: string;
|
|
39
|
-
payload?: Record<string, unknown> | undefined;
|
|
40
|
-
log?: string;
|
|
41
|
-
result?: unknown;
|
|
42
|
-
type: NodeTypes;
|
|
43
|
-
with: NodeMapper;
|
|
44
|
-
requires: Array<string>;
|
|
45
|
-
step: WorkflowDefinitionStep;
|
|
46
|
-
testRun?: boolean;
|
|
47
|
-
createdAt: Date;
|
|
48
|
-
updatedAt: Date;
|
|
49
|
-
}
|
|
50
|
-
export interface ActionJob extends WorkflowJobInterface {
|
|
51
|
-
type: NodeTypes.ACTION;
|
|
52
|
-
with: MessageMapper;
|
|
53
|
-
}
|
|
54
|
-
export interface AgentJob extends WorkflowJobInterface {
|
|
55
|
-
type: NodeTypes.AGENT;
|
|
56
|
-
with: MessageMapper;
|
|
57
|
-
}
|
|
58
|
-
export interface ConditionalJob extends WorkflowJobInterface {
|
|
59
|
-
type: NodeTypes.CONDITIONAL;
|
|
60
|
-
with: ConditionMapper;
|
|
61
|
-
}
|
|
62
|
-
export interface ValidationJob extends WorkflowJobInterface {
|
|
63
|
-
type: NodeTypes.VALIDATION;
|
|
64
|
-
with: ConditionMapper;
|
|
65
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { ConditionMapper, MessageMapper } from './workflow-definition.interface';
|
|
2
|
-
export declare enum NodeTypes {
|
|
3
|
-
TRIGGER = "TRIGGER",
|
|
4
|
-
ACTION = "ACTION",
|
|
5
|
-
AGENT = "AGENT",
|
|
6
|
-
CONDITIONAL = "CONDITIONAL",
|
|
7
|
-
VALIDATION = "VALIDATION",
|
|
8
|
-
ANNOTATION = "ANNOTATION",
|
|
9
|
-
PLACEHOLDER = "PLACEHOLDER",
|
|
10
|
-
INVISIBLE = "INVISIBLE",
|
|
11
|
-
END = "END"
|
|
12
|
-
}
|
|
13
|
-
export declare enum ConditionalTypes {
|
|
14
|
-
TRUE_FALSE = "TRUE_FALSE",
|
|
15
|
-
CASE = "CASE"
|
|
16
|
-
}
|
|
17
|
-
export interface Conditional {
|
|
18
|
-
type: ConditionalTypes;
|
|
19
|
-
}
|
|
20
|
-
export interface Node {
|
|
21
|
-
id: string;
|
|
22
|
-
type: NodeTypes;
|
|
23
|
-
position: {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
};
|
|
27
|
-
meta?: Record<string, string | Array<string>>;
|
|
28
|
-
name: string;
|
|
29
|
-
}
|
|
30
|
-
export interface ActionNode extends Node {
|
|
31
|
-
type: NodeTypes.ACTION;
|
|
32
|
-
action: {
|
|
33
|
-
identifier: string;
|
|
34
|
-
version: string;
|
|
35
|
-
};
|
|
36
|
-
with: MessageMapper;
|
|
37
|
-
}
|
|
38
|
-
export interface AgentNode extends Node {
|
|
39
|
-
type: NodeTypes.AGENT;
|
|
40
|
-
agent: {
|
|
41
|
-
identifier: string;
|
|
42
|
-
};
|
|
43
|
-
with: MessageMapper;
|
|
44
|
-
}
|
|
45
|
-
export interface TriggerNode extends Node {
|
|
46
|
-
type: NodeTypes.TRIGGER;
|
|
47
|
-
trigger: {
|
|
48
|
-
name: string;
|
|
49
|
-
type: string;
|
|
50
|
-
identifier: string;
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export interface ConditionalNode extends Node {
|
|
54
|
-
type: NodeTypes.CONDITIONAL;
|
|
55
|
-
condition: Conditional;
|
|
56
|
-
with: ConditionMapper;
|
|
57
|
-
}
|
|
58
|
-
export interface ValidationNode extends Node {
|
|
59
|
-
type: NodeTypes.VALIDATION;
|
|
60
|
-
with: ConditionMapper;
|
|
61
|
-
}
|
|
62
|
-
export interface AnnotationNode extends Node {
|
|
63
|
-
type: NodeTypes.ANNOTATION;
|
|
64
|
-
}
|
|
65
|
-
export interface EndNode extends Node {
|
|
66
|
-
type: NodeTypes.END;
|
|
67
|
-
}
|
|
68
|
-
export interface PlaceholderNode extends Node {
|
|
69
|
-
type: NodeTypes.PLACEHOLDER;
|
|
70
|
-
}
|
|
71
|
-
export interface InvisibleNode extends Node {
|
|
72
|
-
type: NodeTypes.INVISIBLE;
|
|
73
|
-
}
|
|
74
|
-
export type WorkflowNode = ActionNode | AgentNode | ConditionalNode | AnnotationNode | PlaceholderNode | ValidationNode | EndNode | InvisibleNode;
|
|
75
|
-
export interface Edge {
|
|
76
|
-
id: string;
|
|
77
|
-
source: {
|
|
78
|
-
nodeId: string;
|
|
79
|
-
};
|
|
80
|
-
target: {
|
|
81
|
-
nodeId: string;
|
|
82
|
-
};
|
|
83
|
-
type: string;
|
|
84
|
-
meta?: Record<string, string | Array<string>>;
|
|
85
|
-
}
|
|
86
|
-
export interface CreateWorkflowDrawingInterface {
|
|
87
|
-
name: string;
|
|
88
|
-
description: string;
|
|
89
|
-
identifier: string;
|
|
90
|
-
ttl: number;
|
|
91
|
-
trigger: TriggerNode;
|
|
92
|
-
nodes: Array<WorkflowNode>;
|
|
93
|
-
edges: Array<Edge>;
|
|
94
|
-
enabled: boolean;
|
|
95
|
-
}
|
|
96
|
-
export interface WorkflowDrawing extends CreateWorkflowDrawingInterface {
|
|
97
|
-
id: string;
|
|
98
|
-
createdAt: Date;
|
|
99
|
-
updatedAt: Date;
|
|
100
|
-
version: number;
|
|
101
|
-
}
|
|
@@ -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,113 +0,0 @@
|
|
|
1
|
-
export interface MessageMonitorConfig {
|
|
2
|
-
type: 'in-memory' | 'redis' | 'disabled';
|
|
3
|
-
}
|
|
4
|
-
export declare enum ConfiguredConnectorTypes {
|
|
5
|
-
API_SINK = "api-sink",
|
|
6
|
-
API_SOURCE = "api-source",
|
|
7
|
-
DUMMY_NODE = "dummy-node",
|
|
8
|
-
FILE_COPY = "file-copy",
|
|
9
|
-
FILE_SINK = "file-sink",
|
|
10
|
-
FILE_SOURCE = "file-source",
|
|
11
|
-
SAMBA_SINK = "samba-sink",
|
|
12
|
-
SAMBA_SOURCE = "samba-source",
|
|
13
|
-
SQL_SINK = "sql-sink",
|
|
14
|
-
SQL_SOURCE = "sql-source",
|
|
15
|
-
MQTT = "mqtt",
|
|
16
|
-
CUBE_QUERY_RUNNER = "cube-query-runner",
|
|
17
|
-
FACTORY_NEBULA_SOURCE = "factory-nebula-source",
|
|
18
|
-
BYSTRONIC = "bystronic",
|
|
19
|
-
IMAP_SOURCE = "imap-source",
|
|
20
|
-
IMAP_SINK = "imap-sink",
|
|
21
|
-
OPCUA_SOURCE = "opcua-source",
|
|
22
|
-
OPCUA_SINK = "opcua-sink",
|
|
23
|
-
AI_AGENT = "ai-agent",
|
|
24
|
-
MICROSOFT_OFFICE365_EMAIL = "microsoft-office365-email"
|
|
25
|
-
}
|
|
26
|
-
export interface ConnectorConfig {
|
|
27
|
-
type: ConfiguredConnectorTypes;
|
|
28
|
-
identifier: string;
|
|
29
|
-
}
|
|
30
|
-
export interface RedisMessageMonitorConfig extends MessageMonitorConfig {
|
|
31
|
-
type: 'redis';
|
|
32
|
-
url: string;
|
|
33
|
-
ttl?: number;
|
|
34
|
-
}
|
|
35
|
-
export interface InMemoryMessageMonitorConfig extends MessageMonitorConfig {
|
|
36
|
-
type: 'in-memory';
|
|
37
|
-
messagesToKeep: number;
|
|
38
|
-
}
|
|
39
|
-
export interface DisabledMessageMonitorConfig extends MessageMonitorConfig {
|
|
40
|
-
type: 'disabled';
|
|
41
|
-
}
|
|
42
|
-
export interface TopicRegex {
|
|
43
|
-
pattern: string;
|
|
44
|
-
flags: string;
|
|
45
|
-
}
|
|
46
|
-
export interface FileRegex {
|
|
47
|
-
pattern: string;
|
|
48
|
-
flags: string;
|
|
49
|
-
}
|
|
50
|
-
export declare function isTopicRegex(obj: TopicRegex | string): obj is TopicRegex;
|
|
51
|
-
export interface CubeConfigHeaders {
|
|
52
|
-
Authorization: string;
|
|
53
|
-
}
|
|
54
|
-
export interface CubeConfig {
|
|
55
|
-
auth0_client_secret?: string;
|
|
56
|
-
auth0_client_id?: string;
|
|
57
|
-
auth0_audience?: string;
|
|
58
|
-
auth0_token_url?: string;
|
|
59
|
-
authorization?: string;
|
|
60
|
-
apiUrl: string;
|
|
61
|
-
headers?: CubeConfigHeaders;
|
|
62
|
-
redis_url?: string;
|
|
63
|
-
}
|
|
64
|
-
export declare function isCubeConfigType(obj: CubeConfig): obj is CubeConfig;
|
|
65
|
-
export interface AwsKafkaSaslConfig {
|
|
66
|
-
region?: string;
|
|
67
|
-
accessKeyId?: string;
|
|
68
|
-
secretAccessKey?: string;
|
|
69
|
-
mechanism: 'aws';
|
|
70
|
-
}
|
|
71
|
-
export declare function isAwsKafkaSalsConfig(obj: AwsKafkaSaslConfig): obj is AwsKafkaSaslConfig;
|
|
72
|
-
export interface DatabaseConfig {
|
|
73
|
-
uri: string;
|
|
74
|
-
ssl?: boolean;
|
|
75
|
-
tenantPassword?: string;
|
|
76
|
-
}
|
|
77
|
-
export interface ActionConfig {
|
|
78
|
-
timeSensitive: boolean;
|
|
79
|
-
}
|
|
80
|
-
export interface KafkaBrokerConfig {
|
|
81
|
-
groupId: string;
|
|
82
|
-
clientId: string;
|
|
83
|
-
brokers: Array<string>;
|
|
84
|
-
consumerTopics?: Array<string | TopicRegex>;
|
|
85
|
-
sasl?: AwsKafkaSaslConfig;
|
|
86
|
-
intervalCheckForNewTopics?: number;
|
|
87
|
-
disableLogs?: boolean;
|
|
88
|
-
autoCommitThreshold?: number;
|
|
89
|
-
autoCommitInterval?: number;
|
|
90
|
-
partitionsConsumedConcurrently?: number;
|
|
91
|
-
messageMonitor?: RedisMessageMonitorConfig | InMemoryMessageMonitorConfig | DisabledMessageMonitorConfig;
|
|
92
|
-
useConfluentLibrary?: boolean;
|
|
93
|
-
newConsumerProtocol?: boolean;
|
|
94
|
-
}
|
|
95
|
-
export declare function isKafkaBrokerConfigType(obj: KafkaBrokerConfig): obj is KafkaBrokerConfig;
|
|
96
|
-
export declare function isActionConfigType(obj: any): obj is ActionConfig;
|
|
97
|
-
export declare function isDatabaseConfigType(obj: DatabaseConfig): obj is DatabaseConfig;
|
|
98
|
-
export interface BaseConnectorConfig {
|
|
99
|
-
processIdentifier: string;
|
|
100
|
-
tenantIdentifier: string;
|
|
101
|
-
datasourceIdentifier: string;
|
|
102
|
-
kafka: KafkaBrokerConfig;
|
|
103
|
-
action?: ActionConfig;
|
|
104
|
-
}
|
|
105
|
-
export declare function isBaseConnectorConfigType(obj: BaseConnectorConfig): obj is BaseConnectorConfig;
|
|
106
|
-
export interface AiAgentConfig {
|
|
107
|
-
openai: {
|
|
108
|
-
apiKey: string;
|
|
109
|
-
model: 'gpt-3.5-turbo' | 'gpt-4' | 'gpt-4-turbo' | 'gpt-4o' | 'gpt-4o-mini' | 'o1-preview' | 'o1-mini';
|
|
110
|
-
temperature?: number;
|
|
111
|
-
timeout?: number;
|
|
112
|
-
};
|
|
113
|
-
}
|
|
File without changes
|