@transai/connector-runner-mkg 0.4.0 → 0.4.1
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 +27 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/http-client.interface.d.ts +8 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/sender.sdk.interface.d.ts +2 -2
- package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +14 -102
- package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +14 -102
- package/libs/types/src/lib/management-api/dataset/collection.interface.d.ts +2 -8
- package/libs/types/src/lib/management-api/dataset/dataset.interface.d.ts +43 -659
- package/libs/types/src/lib/management-api/dataset/datasets.interface.d.ts +43 -659
- package/libs/types/src/lib/management-api/dataset/dimension.interface.d.ts +13 -167
- package/libs/types/src/lib/management-api/dataset/dimensions.interface.d.ts +13 -167
- package/libs/types/src/lib/management-api/dataset/filter.interface.d.ts +4 -24
- package/libs/types/src/lib/management-api/dataset/measure.interface.d.ts +5 -45
- package/libs/types/src/lib/management-api/dataset/measures.interface.d.ts +5 -45
- package/libs/types/src/lib/management-api/dataset/meta.interface.d.ts +1 -1
- package/libs/types/src/lib/management-api/dataset/pre-aggregate.interface.d.ts +10 -38
- package/libs/types/src/lib/management-api/dataset/pre-aggregations.interface.d.ts +11 -39
- package/libs/types/src/lib/management-api/dataset/relation.interface.d.ts +3 -27
- package/libs/types/src/lib/management-api/dataset/relations.interface.d.ts +3 -27
- package/libs/types/src/lib/management-api/dataset/segment.interface.d.ts +5 -33
- package/libs/types/src/lib/management-api/dataset/segments.interface.d.ts +5 -33
- package/libs/types/src/lib/management-api/dataset/switch.interface.d.ts +6 -56
- package/libs/types/src/lib/management-api/dataset/when-item.interface.d.ts +5 -31
- package/libs/types/src/lib/management-api/dataset/when-items.interface.d.ts +5 -31
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts +3 -11
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts +4 -12
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger.interface.d.ts +6 -46
- package/libs/types/src/lib/management-api/semantic-trigger/semantic-triggers.interface.d.ts +7 -47
- package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +65 -1069
- package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +132 -2685
- package/libs/types/src/lib/management-api/template.interface.d.ts +65 -1079
- package/libs/types/src/lib/management-api/type-enums.d.ts +2 -2
- package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +13 -48
- package/libs/types/src/lib/types.d.ts +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 0.4.0 (2025-11-26)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- fix connector packages publish ([9b6c43a5](https://github.com/xip-online-applications/xod-core/commit/9b6c43a5))
|
|
6
|
+
- fix connector packages publish ([24714951](https://github.com/xip-online-applications/xod-core/commit/24714951))
|
|
7
|
+
- fix connector packages publish ([517d2fd2](https://github.com/xip-online-applications/xod-core/commit/517d2fd2))
|
|
8
|
+
- **XODO-1108:** added actions for MKG tables ([#877](https://github.com/xip-online-applications/xod-core/pull/877))
|
|
9
|
+
- add custom cron trigger functionality and related interfaces ([b859c50f](https://github.com/xip-online-applications/xod-core/commit/b859c50f))
|
|
10
|
+
- **XODO-1125:** fixes ([b625be91](https://github.com/xip-online-applications/xod-core/commit/b625be91))
|
|
11
|
+
- ability to send statistics to logs for now ([#863](https://github.com/xip-online-applications/xod-core/pull/863))
|
|
12
|
+
- **XODO-1108:** added MKG ERP connector ([#840](https://github.com/xip-online-applications/xod-core/pull/840))
|
|
13
|
+
|
|
14
|
+
### 🩹 Fixes
|
|
15
|
+
|
|
16
|
+
- correct timestamp expectation in ExtractorService tests and add CustomCronTriggerRecord interface ([e3f53d35](https://github.com/xip-online-applications/xod-core/commit/e3f53d35))
|
|
17
|
+
|
|
18
|
+
### 🧱 Updated Dependencies
|
|
19
|
+
|
|
20
|
+
- Updated @transai/connector-runtime-sdk to 0.3.0
|
|
21
|
+
|
|
22
|
+
### ❤️ Thank You
|
|
23
|
+
|
|
24
|
+
- Copilot @Copilot
|
|
25
|
+
- Rene Heijdens @H31nz3l
|
|
26
|
+
- Youri Lefers @yourilefers
|
|
27
|
+
|
|
1
28
|
## 0.3.0 (2025-11-26)
|
|
2
29
|
|
|
3
30
|
### 🚀 Features
|
|
@@ -10,6 +10,13 @@ export type HttpRequestOptions<D = string | object> = {
|
|
|
10
10
|
withCredentials?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export type HttpRequestOptionsFormatter<D = string | object> = (requestOptions: HttpRequestOptions<D>, method: HttpMethod, url: string) => Promise<HttpRequestOptions<D>> | HttpRequestOptions<D>;
|
|
13
|
+
export type HttpErrorResponseCallbackRequest<D = string | object> = {
|
|
14
|
+
client: HttpClientSDKInterface;
|
|
15
|
+
method: HttpMethod;
|
|
16
|
+
url: string;
|
|
17
|
+
options?: HttpRequestOptions<D>;
|
|
18
|
+
};
|
|
19
|
+
export type HttpErrorResponseCallback<R = unknown, D = string | object> = (error: HttpError, request: HttpErrorResponseCallbackRequest<D>) => HttpClientPromise<R>;
|
|
13
20
|
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
|
|
14
21
|
export type HttpResponseHeader = string | Array<string> | number | boolean | null;
|
|
15
22
|
export type HttpResponse<D = unknown> = {
|
|
@@ -34,5 +41,6 @@ export interface HttpClientSDKInterface {
|
|
|
34
41
|
delete<R = unknown>(destination: string, options?: HttpRequestOptions): HttpClientPromise<R>;
|
|
35
42
|
request<R = unknown, D = string | object>(method: HttpMethod, url: string, options?: HttpRequestOptions<D>): HttpClientPromise<R>;
|
|
36
43
|
setRequestOptionsFormatter<D = string | object>(formatter: HttpRequestOptionsFormatter<D>): HttpClientSDKInterface;
|
|
44
|
+
setErrorResponseHandler<R = unknown, D = string | object>(callback?: HttpErrorResponseCallback<R, D>): HttpClientSDKInterface;
|
|
37
45
|
}
|
|
38
46
|
export {};
|
|
@@ -17,6 +17,6 @@ export type Result = boolean | {
|
|
|
17
17
|
};
|
|
18
18
|
export interface SenderSDKInterface {
|
|
19
19
|
metrics(metrics: Array<Metric>, metadata?: Metadata, context?: Context): Promise<Result>;
|
|
20
|
-
metricsLegacy(metrics: Array<
|
|
21
|
-
documents(
|
|
20
|
+
metricsLegacy<T = never>(metrics: Array<T>, metadata?: Metadata, context?: Context): Promise<Result>;
|
|
21
|
+
documents<T = object>(documents: Array<T>, metadata?: Metadata, context?: Context): Promise<Result>;
|
|
22
22
|
}
|
|
@@ -4,10 +4,10 @@ import { ConnectorOrigin } from '../type-enums';
|
|
|
4
4
|
import { ActionInterface } from '../workflow';
|
|
5
5
|
export declare const ConnectorSchema: z.ZodObject<{
|
|
6
6
|
identifier: z.ZodString;
|
|
7
|
-
connectorType: z.
|
|
7
|
+
connectorType: z.ZodEnum<typeof ConfiguredConnectorTypes>;
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
location: z.ZodString;
|
|
10
|
-
config: z.
|
|
10
|
+
config: z.ZodObject<{}, z.core.$loose>;
|
|
11
11
|
enabled: z.ZodBoolean;
|
|
12
12
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
13
13
|
identifier: z.ZodString;
|
|
@@ -17,112 +17,24 @@ export declare const ConnectorSchema: z.ZodObject<{
|
|
|
17
17
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
18
18
|
inputParameters: z.ZodArray<z.ZodObject<{
|
|
19
19
|
name: z.ZodString;
|
|
20
|
-
|
|
20
|
+
description: z.ZodOptional<z.ZodString>;
|
|
21
|
+
type: z.ZodEnum<{
|
|
22
|
+
string: "string";
|
|
23
|
+
number: "number";
|
|
24
|
+
boolean: "boolean";
|
|
25
|
+
array: "array";
|
|
26
|
+
}>;
|
|
21
27
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
-
items: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
23
|
-
},
|
|
24
|
-
type: "string" | "number" | "boolean" | "array";
|
|
25
|
-
name: string;
|
|
26
|
-
required?: boolean | undefined;
|
|
27
|
-
items?: any[] | undefined;
|
|
28
|
-
}, {
|
|
29
|
-
type: "string" | "number" | "boolean" | "array";
|
|
30
|
-
name: string;
|
|
31
|
-
required?: boolean | undefined;
|
|
32
|
-
items?: any[] | undefined;
|
|
33
|
-
}>, "many">;
|
|
28
|
+
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
29
|
+
}, z.core.$strip>>;
|
|
34
30
|
outputParameters: z.ZodAny;
|
|
35
|
-
mode: z.ZodOptional<z.
|
|
31
|
+
mode: z.ZodOptional<z.ZodEnum<typeof ConnectorOrigin>>;
|
|
36
32
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
37
33
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
38
|
-
},
|
|
39
|
-
identifier: string;
|
|
40
|
-
version: string;
|
|
41
|
-
name: string;
|
|
42
|
-
config: Record<string, any>;
|
|
43
|
-
inputParameters: {
|
|
44
|
-
type: "string" | "number" | "boolean" | "array";
|
|
45
|
-
name: string;
|
|
46
|
-
required?: boolean | undefined;
|
|
47
|
-
items?: any[] | undefined;
|
|
48
|
-
}[];
|
|
49
|
-
mode?: ConnectorOrigin | undefined;
|
|
50
|
-
createdAt?: Date | undefined;
|
|
51
|
-
description?: string | undefined;
|
|
52
|
-
outputParameters?: any;
|
|
53
|
-
updatedAt?: Date | undefined;
|
|
54
|
-
}, {
|
|
55
|
-
identifier: string;
|
|
56
|
-
version: string;
|
|
57
|
-
name: string;
|
|
58
|
-
config: Record<string, any>;
|
|
59
|
-
inputParameters: {
|
|
60
|
-
type: "string" | "number" | "boolean" | "array";
|
|
61
|
-
name: string;
|
|
62
|
-
required?: boolean | undefined;
|
|
63
|
-
items?: any[] | undefined;
|
|
64
|
-
}[];
|
|
65
|
-
mode?: ConnectorOrigin | undefined;
|
|
66
|
-
createdAt?: Date | undefined;
|
|
67
|
-
description?: string | undefined;
|
|
68
|
-
outputParameters?: any;
|
|
69
|
-
updatedAt?: Date | undefined;
|
|
70
|
-
}>, "many">>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
71
35
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
72
36
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
73
|
-
},
|
|
74
|
-
identifier: string;
|
|
75
|
-
name: string;
|
|
76
|
-
config: Record<string, any>;
|
|
77
|
-
connectorType: ConfiguredConnectorTypes;
|
|
78
|
-
location: string;
|
|
79
|
-
enabled: boolean;
|
|
80
|
-
createdAt?: Date | undefined;
|
|
81
|
-
updatedAt?: Date | undefined;
|
|
82
|
-
actions?: {
|
|
83
|
-
identifier: string;
|
|
84
|
-
version: string;
|
|
85
|
-
name: string;
|
|
86
|
-
config: Record<string, any>;
|
|
87
|
-
inputParameters: {
|
|
88
|
-
type: "string" | "number" | "boolean" | "array";
|
|
89
|
-
name: string;
|
|
90
|
-
required?: boolean | undefined;
|
|
91
|
-
items?: any[] | undefined;
|
|
92
|
-
}[];
|
|
93
|
-
mode?: ConnectorOrigin | undefined;
|
|
94
|
-
createdAt?: Date | undefined;
|
|
95
|
-
description?: string | undefined;
|
|
96
|
-
outputParameters?: any;
|
|
97
|
-
updatedAt?: Date | undefined;
|
|
98
|
-
}[] | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
identifier: string;
|
|
101
|
-
name: string;
|
|
102
|
-
config: Record<string, any>;
|
|
103
|
-
connectorType: ConfiguredConnectorTypes;
|
|
104
|
-
location: string;
|
|
105
|
-
enabled: boolean;
|
|
106
|
-
createdAt?: Date | undefined;
|
|
107
|
-
updatedAt?: Date | undefined;
|
|
108
|
-
actions?: {
|
|
109
|
-
identifier: string;
|
|
110
|
-
version: string;
|
|
111
|
-
name: string;
|
|
112
|
-
config: Record<string, any>;
|
|
113
|
-
inputParameters: {
|
|
114
|
-
type: "string" | "number" | "boolean" | "array";
|
|
115
|
-
name: string;
|
|
116
|
-
required?: boolean | undefined;
|
|
117
|
-
items?: any[] | undefined;
|
|
118
|
-
}[];
|
|
119
|
-
mode?: ConnectorOrigin | undefined;
|
|
120
|
-
createdAt?: Date | undefined;
|
|
121
|
-
description?: string | undefined;
|
|
122
|
-
outputParameters?: any;
|
|
123
|
-
updatedAt?: Date | undefined;
|
|
124
|
-
}[] | undefined;
|
|
125
|
-
}>;
|
|
37
|
+
}, z.core.$strip>;
|
|
126
38
|
export interface ConnectorInterface<T = Partial<BaseConnectorConfig>> {
|
|
127
39
|
identifier: string;
|
|
128
40
|
connectorType: ConfiguredConnectorTypes;
|
|
@@ -2,10 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ConnectorInterface } from '../index';
|
|
3
3
|
export declare const ConnectorsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
4
4
|
identifier: z.ZodString;
|
|
5
|
-
connectorType: z.
|
|
5
|
+
connectorType: z.ZodEnum<typeof import("../../types").ConfiguredConnectorTypes>;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
location: z.ZodString;
|
|
8
|
-
config: z.
|
|
8
|
+
config: z.ZodObject<{}, z.core.$loose>;
|
|
9
9
|
enabled: z.ZodBoolean;
|
|
10
10
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
11
|
identifier: z.ZodString;
|
|
@@ -15,112 +15,24 @@ export declare const ConnectorsSchema: z.ZodRecord<z.ZodString, z.ZodUnion<[z.Zo
|
|
|
15
15
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
16
16
|
inputParameters: z.ZodArray<z.ZodObject<{
|
|
17
17
|
name: z.ZodString;
|
|
18
|
-
|
|
18
|
+
description: z.ZodOptional<z.ZodString>;
|
|
19
|
+
type: z.ZodEnum<{
|
|
20
|
+
string: "string";
|
|
21
|
+
number: "number";
|
|
22
|
+
boolean: "boolean";
|
|
23
|
+
array: "array";
|
|
24
|
+
}>;
|
|
19
25
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
items: z.ZodOptional<z.ZodArray<z.ZodAny
|
|
21
|
-
},
|
|
22
|
-
type: "string" | "number" | "boolean" | "array";
|
|
23
|
-
name: string;
|
|
24
|
-
required?: boolean | undefined;
|
|
25
|
-
items?: any[] | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
type: "string" | "number" | "boolean" | "array";
|
|
28
|
-
name: string;
|
|
29
|
-
required?: boolean | undefined;
|
|
30
|
-
items?: any[] | undefined;
|
|
31
|
-
}>, "many">;
|
|
26
|
+
items: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
27
|
+
}, z.core.$strip>>;
|
|
32
28
|
outputParameters: z.ZodAny;
|
|
33
|
-
mode: z.ZodOptional<z.
|
|
29
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../type-enums").ConnectorOrigin>>;
|
|
34
30
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
35
31
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
36
|
-
},
|
|
37
|
-
identifier: string;
|
|
38
|
-
version: string;
|
|
39
|
-
name: string;
|
|
40
|
-
config: Record<string, any>;
|
|
41
|
-
inputParameters: {
|
|
42
|
-
type: "string" | "number" | "boolean" | "array";
|
|
43
|
-
name: string;
|
|
44
|
-
required?: boolean | undefined;
|
|
45
|
-
items?: any[] | undefined;
|
|
46
|
-
}[];
|
|
47
|
-
mode?: import("../type-enums").ConnectorOrigin | undefined;
|
|
48
|
-
createdAt?: Date | undefined;
|
|
49
|
-
description?: string | undefined;
|
|
50
|
-
outputParameters?: any;
|
|
51
|
-
updatedAt?: Date | undefined;
|
|
52
|
-
}, {
|
|
53
|
-
identifier: string;
|
|
54
|
-
version: string;
|
|
55
|
-
name: string;
|
|
56
|
-
config: Record<string, any>;
|
|
57
|
-
inputParameters: {
|
|
58
|
-
type: "string" | "number" | "boolean" | "array";
|
|
59
|
-
name: string;
|
|
60
|
-
required?: boolean | undefined;
|
|
61
|
-
items?: any[] | undefined;
|
|
62
|
-
}[];
|
|
63
|
-
mode?: import("../type-enums").ConnectorOrigin | undefined;
|
|
64
|
-
createdAt?: Date | undefined;
|
|
65
|
-
description?: string | undefined;
|
|
66
|
-
outputParameters?: any;
|
|
67
|
-
updatedAt?: Date | undefined;
|
|
68
|
-
}>, "many">>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
69
33
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
70
34
|
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
71
|
-
},
|
|
72
|
-
identifier: string;
|
|
73
|
-
name: string;
|
|
74
|
-
config: Record<string, any>;
|
|
75
|
-
connectorType: import("../../types").ConfiguredConnectorTypes;
|
|
76
|
-
location: string;
|
|
77
|
-
enabled: boolean;
|
|
78
|
-
createdAt?: Date | undefined;
|
|
79
|
-
updatedAt?: Date | undefined;
|
|
80
|
-
actions?: {
|
|
81
|
-
identifier: string;
|
|
82
|
-
version: string;
|
|
83
|
-
name: string;
|
|
84
|
-
config: Record<string, any>;
|
|
85
|
-
inputParameters: {
|
|
86
|
-
type: "string" | "number" | "boolean" | "array";
|
|
87
|
-
name: string;
|
|
88
|
-
required?: boolean | undefined;
|
|
89
|
-
items?: any[] | undefined;
|
|
90
|
-
}[];
|
|
91
|
-
mode?: import("../type-enums").ConnectorOrigin | undefined;
|
|
92
|
-
createdAt?: Date | undefined;
|
|
93
|
-
description?: string | undefined;
|
|
94
|
-
outputParameters?: any;
|
|
95
|
-
updatedAt?: Date | undefined;
|
|
96
|
-
}[] | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
identifier: string;
|
|
99
|
-
name: string;
|
|
100
|
-
config: Record<string, any>;
|
|
101
|
-
connectorType: import("../../types").ConfiguredConnectorTypes;
|
|
102
|
-
location: string;
|
|
103
|
-
enabled: boolean;
|
|
104
|
-
createdAt?: Date | undefined;
|
|
105
|
-
updatedAt?: Date | undefined;
|
|
106
|
-
actions?: {
|
|
107
|
-
identifier: string;
|
|
108
|
-
version: string;
|
|
109
|
-
name: string;
|
|
110
|
-
config: Record<string, any>;
|
|
111
|
-
inputParameters: {
|
|
112
|
-
type: "string" | "number" | "boolean" | "array";
|
|
113
|
-
name: string;
|
|
114
|
-
required?: boolean | undefined;
|
|
115
|
-
items?: any[] | undefined;
|
|
116
|
-
}[];
|
|
117
|
-
mode?: import("../type-enums").ConnectorOrigin | undefined;
|
|
118
|
-
createdAt?: Date | undefined;
|
|
119
|
-
description?: string | undefined;
|
|
120
|
-
outputParameters?: any;
|
|
121
|
-
updatedAt?: Date | undefined;
|
|
122
|
-
}[] | undefined;
|
|
123
|
-
}>, z.ZodBoolean]>>;
|
|
35
|
+
}, z.core.$strip>, z.ZodBoolean]>>;
|
|
124
36
|
export interface ConnectorsInterface {
|
|
125
37
|
[key: string]: ConnectorInterface | boolean;
|
|
126
38
|
}
|
|
@@ -2,14 +2,8 @@ import { z } from 'zod';
|
|
|
2
2
|
import { FiltersInterface } from './filters.interface';
|
|
3
3
|
export declare const CollectionSchema: z.ZodObject<{
|
|
4
4
|
collection: z.ZodString;
|
|
5
|
-
filters: z.ZodOptional<z.ZodType<FiltersInterface, z.
|
|
6
|
-
},
|
|
7
|
-
collection: string;
|
|
8
|
-
filters?: FiltersInterface | undefined;
|
|
9
|
-
}, {
|
|
10
|
-
collection: string;
|
|
11
|
-
filters?: FiltersInterface | undefined;
|
|
12
|
-
}>;
|
|
5
|
+
filters: z.ZodOptional<z.ZodType<FiltersInterface, unknown, z.core.$ZodTypeInternals<FiltersInterface, unknown>>>;
|
|
6
|
+
}, z.core.$strip>;
|
|
13
7
|
export interface CollectionInterface {
|
|
14
8
|
collection: string;
|
|
15
9
|
filters?: FiltersInterface;
|