@transai/connector-runner-api 0.2.0 → 0.3.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/libs/connector-runtime-sdk/src/lib/sdk/http-client.interface.d.ts +8 -0
  3. package/libs/connector-runtime-sdk/src/lib/sdk/sender.sdk.interface.d.ts +2 -2
  4. package/libs/types/src/lib/management-api/connector/connector.interface.d.ts +14 -102
  5. package/libs/types/src/lib/management-api/connector/connectors.interface.d.ts +14 -102
  6. package/libs/types/src/lib/management-api/dataset/collection.interface.d.ts +2 -8
  7. package/libs/types/src/lib/management-api/dataset/dataset.interface.d.ts +43 -659
  8. package/libs/types/src/lib/management-api/dataset/datasets.interface.d.ts +43 -659
  9. package/libs/types/src/lib/management-api/dataset/dimension.interface.d.ts +13 -167
  10. package/libs/types/src/lib/management-api/dataset/dimensions.interface.d.ts +13 -167
  11. package/libs/types/src/lib/management-api/dataset/filter.interface.d.ts +4 -24
  12. package/libs/types/src/lib/management-api/dataset/measure.interface.d.ts +5 -45
  13. package/libs/types/src/lib/management-api/dataset/measures.interface.d.ts +5 -45
  14. package/libs/types/src/lib/management-api/dataset/meta.interface.d.ts +1 -1
  15. package/libs/types/src/lib/management-api/dataset/pre-aggregate.interface.d.ts +10 -38
  16. package/libs/types/src/lib/management-api/dataset/pre-aggregations.interface.d.ts +11 -39
  17. package/libs/types/src/lib/management-api/dataset/relation.interface.d.ts +3 -27
  18. package/libs/types/src/lib/management-api/dataset/relations.interface.d.ts +3 -27
  19. package/libs/types/src/lib/management-api/dataset/segment.interface.d.ts +5 -33
  20. package/libs/types/src/lib/management-api/dataset/segments.interface.d.ts +5 -33
  21. package/libs/types/src/lib/management-api/dataset/switch.interface.d.ts +6 -56
  22. package/libs/types/src/lib/management-api/dataset/when-item.interface.d.ts +5 -31
  23. package/libs/types/src/lib/management-api/dataset/when-items.interface.d.ts +5 -31
  24. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filter.interface.d.ts +3 -11
  25. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger-filters.interface.d.ts +4 -12
  26. package/libs/types/src/lib/management-api/semantic-trigger/semantic-trigger.interface.d.ts +6 -46
  27. package/libs/types/src/lib/management-api/semantic-trigger/semantic-triggers.interface.d.ts +7 -47
  28. package/libs/types/src/lib/management-api/template-implementation-overrides.interface.d.ts +65 -1069
  29. package/libs/types/src/lib/management-api/template-implementation.interface.d.ts +132 -2685
  30. package/libs/types/src/lib/management-api/template.interface.d.ts +65 -1079
  31. package/libs/types/src/lib/management-api/type-enums.d.ts +2 -2
  32. package/libs/types/src/lib/management-api/workflow/action.interface.d.ts +13 -48
  33. package/libs/types/src/lib/types.d.ts +4 -1
  34. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,40 @@
1
+ ## 0.3.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-1134:** added generic API connector ([#883](https://github.com/xip-online-applications/xod-core/pull/883))
9
+ - **XODO-1029 XODO-620:** added initial bystronic connector runner & opcua client ([#776](https://github.com/xip-online-applications/xod-core/pull/776))
10
+ - **XODO-727:** connector orchestration config through API call ([#797](https://github.com/xip-online-applications/xod-core/pull/797))
11
+ - **XODO-852:** made connectors publish to npm ([89cd40eb](https://github.com/xip-online-applications/xod-core/commit/89cd40eb))
12
+ - **XODO-852:** made connectors buildable ([6ca5f111](https://github.com/xip-online-applications/xod-core/commit/6ca5f111))
13
+
14
+ ### 🧱 Updated Dependencies
15
+
16
+ - Updated @transai/connector-runtime-sdk to 0.3.0
17
+
18
+ ### ❤️ Thank You
19
+
20
+ - Rene Heijdens @H31nz3l
21
+ - Youri Lefers @yourilefers
22
+
23
+ ## 0.2.0 (2025-11-26)
24
+
25
+ ### 🚀 Features
26
+
27
+ - fix connector packages publish ([9b6c43a5](https://github.com/xip-online-applications/xod-core/commit/9b6c43a5))
28
+ - fix connector packages publish ([24714951](https://github.com/xip-online-applications/xod-core/commit/24714951))
29
+
30
+ ### 🧱 Updated Dependencies
31
+
32
+ - Updated @transai/connector-runtime-sdk to 0.2.0
33
+
34
+ ### ❤️ Thank You
35
+
36
+ - Youri Lefers @yourilefers
37
+
1
38
  ## 0.1.0 (2025-11-19)
2
39
 
3
40
  ### 🚀 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<never>, metadata?: Metadata, context?: Context): Promise<Result>;
21
- documents(metrics: Array<object>, metadata?: Metadata, context?: Context): Promise<Result>;
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.ZodNativeEnum<typeof ConfiguredConnectorTypes>;
7
+ connectorType: z.ZodEnum<typeof ConfiguredConnectorTypes>;
8
8
  name: z.ZodString;
9
9
  location: z.ZodString;
10
- config: z.ZodRecord<z.ZodString, z.ZodAny>;
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
- type: z.ZodEnum<["string", "number", "boolean", "array"]>;
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, "many">>;
23
- }, "strip", z.ZodTypeAny, {
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.ZodNativeEnum<typeof ConnectorOrigin>>;
31
+ mode: z.ZodOptional<z.ZodEnum<typeof ConnectorOrigin>>;
36
32
  createdAt: z.ZodOptional<z.ZodDate>;
37
33
  updatedAt: z.ZodOptional<z.ZodDate>;
38
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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.ZodNativeEnum<typeof import("../../types").ConfiguredConnectorTypes>;
5
+ connectorType: z.ZodEnum<typeof import("../../types").ConfiguredConnectorTypes>;
6
6
  name: z.ZodString;
7
7
  location: z.ZodString;
8
- config: z.ZodRecord<z.ZodString, z.ZodAny>;
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
- type: z.ZodEnum<["string", "number", "boolean", "array"]>;
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, "many">>;
21
- }, "strip", z.ZodTypeAny, {
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.ZodNativeEnum<typeof import("../type-enums").ConnectorOrigin>>;
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
- }, "strip", z.ZodTypeAny, {
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
- }, "strip", z.ZodTypeAny, {
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.ZodTypeDef, FiltersInterface>>;
6
- }, "strip", z.ZodTypeAny, {
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;