@transai/connector-runner-samba-source 0.10.1 → 0.10.2
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 +4 -0
- package/libs/connector-runtime-sdk/src/index.d.ts +1 -0
- package/libs/connector-runtime-sdk/src/lib/connector-runtime.d.ts +1 -1
- package/libs/connector-runtime-sdk/src/lib/sdk/receiver.sdk.interface.d.ts +1 -1
- package/libs/connector-runtime-sdk/src/lib/sdk/sdk.interface.d.ts +1 -1
- package/libs/connector-runtime-sdk/src/lib/types/action.d.ts +49 -0
- package/libs/connector-runtime-sdk/src/lib/types/kafka.d.ts +40 -0
- package/libs/connector-runtime-sdk/src/lib/types.d.ts +26 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## 0.10.1 (2026-02-25)
|
|
2
|
+
|
|
3
|
+
This was a version bump only for connector-runner-samba-source to align it with other projects, there were no code changes.
|
|
4
|
+
|
|
1
5
|
## 0.10.0 (2026-02-24)
|
|
2
6
|
|
|
3
7
|
This was a version bump only for connector-runner-samba-source to align it with other projects, there were no code changes.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { KafkaCallbackResponse, BaseConnectorConfig, ActionInterface, ConnectorInterface, XodJobType } from '@xip-online-data/types';
|
|
2
1
|
import { ConnectorRuntimeInterface } from './connector-runtime.interface';
|
|
3
2
|
import { ConnectorSDKInterface } from './sdk';
|
|
3
|
+
import { ActionInterface, BaseConnectorConfig, ConnectorInterface, KafkaCallbackResponse, XodJobType } from './types';
|
|
4
4
|
export interface IpcMessage {
|
|
5
5
|
cmd: string;
|
|
6
6
|
message: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionInterface, KafkaCallbackResponse, KafkaCallbackResponseType, XodJobType } from '
|
|
1
|
+
import { ActionInterface, KafkaCallbackResponse, KafkaCallbackResponseType, XodJobType } from '../types';
|
|
2
2
|
export interface ReceiverSDKInterface {
|
|
3
3
|
readonly responses: {
|
|
4
4
|
readonly ok: KafkaCallbackResponseType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseConnectorConfig } from '
|
|
1
|
+
import { BaseConnectorConfig } from '../types';
|
|
2
2
|
import { FilesSDKInterface } from './files.sdk.interface';
|
|
3
3
|
import { HttpClientSDKInterface, HttpConfig } from './http-client.interface';
|
|
4
4
|
import { LoggerSDKInterface } from './logger.sdk.interface';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare enum ConnectorOrigin {
|
|
2
|
+
from_template = "from_template",
|
|
3
|
+
manual = "manual"
|
|
4
|
+
}
|
|
5
|
+
export interface LegacyOutputParameterInterface {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
}
|
|
8
|
+
export type SupportedOutputTypes = 'string' | 'number' | 'boolean' | 'array' | 'null';
|
|
9
|
+
export interface OutputItemParameterInterface {
|
|
10
|
+
type: SupportedOutputTypes | Array<SupportedOutputTypes>;
|
|
11
|
+
description?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface ArrayOutputParameterInterface extends OutputItemParameterInterface {
|
|
15
|
+
type: 'array';
|
|
16
|
+
items: OutputParameterInterface;
|
|
17
|
+
}
|
|
18
|
+
export interface NumberOutputParameterInterface extends OutputItemParameterInterface {
|
|
19
|
+
type: 'number' | Array<'number' | 'null'>;
|
|
20
|
+
minimum?: number;
|
|
21
|
+
maximum?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface OutputParameterInterface {
|
|
24
|
+
[key: string]: OutputItemParameterInterface | ArrayOutputParameterInterface | NumberOutputParameterInterface;
|
|
25
|
+
}
|
|
26
|
+
export interface InputParameterInterface {
|
|
27
|
+
name: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
type: 'string' | 'number' | 'boolean' | 'array';
|
|
30
|
+
required?: boolean;
|
|
31
|
+
items?: Array<InputParameterInterface>;
|
|
32
|
+
}
|
|
33
|
+
export interface ActionInterface {
|
|
34
|
+
identifier: string;
|
|
35
|
+
version: string;
|
|
36
|
+
tenantIdentifier: string;
|
|
37
|
+
name: string;
|
|
38
|
+
description?: string;
|
|
39
|
+
connectorIdentifier: string;
|
|
40
|
+
config: {
|
|
41
|
+
[key: string]: {
|
|
42
|
+
[key: string]: string | object;
|
|
43
|
+
} | string | object;
|
|
44
|
+
};
|
|
45
|
+
inputParameters: Array<InputParameterInterface>;
|
|
46
|
+
outputParameters: LegacyOutputParameterInterface | OutputParameterInterface;
|
|
47
|
+
mode?: ConnectorOrigin;
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface KafkaBrokerConfig {
|
|
2
|
+
groupId: string;
|
|
3
|
+
clientId: string;
|
|
4
|
+
brokers: Array<string>;
|
|
5
|
+
sasl?: object;
|
|
6
|
+
intervalCheckForNewTopics?: number;
|
|
7
|
+
disableLogs?: boolean;
|
|
8
|
+
autoCommitThreshold?: number;
|
|
9
|
+
autoCommitInterval?: number;
|
|
10
|
+
partitionsConsumedConcurrently?: number;
|
|
11
|
+
useConfluentLibrary?: boolean;
|
|
12
|
+
newConsumerProtocol?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface KafkaCallbackResponse<T = unknown> {
|
|
15
|
+
success: boolean;
|
|
16
|
+
statusCode: number;
|
|
17
|
+
message: string;
|
|
18
|
+
payload?: T;
|
|
19
|
+
}
|
|
20
|
+
export type KafkaCallbackResponseType<T = string> = (additionalMessage?: T) => (message: XodBaseMessageType) => Promise<KafkaCallbackResponse>;
|
|
21
|
+
export interface XodBaseMessageType {
|
|
22
|
+
type: 'ACTION' | 'EVENT' | 'SOURCE' | 'JOB';
|
|
23
|
+
eventId: string;
|
|
24
|
+
eventType: string;
|
|
25
|
+
eventTopic?: string;
|
|
26
|
+
created: number;
|
|
27
|
+
payload: object;
|
|
28
|
+
ttl: number;
|
|
29
|
+
tenantIdentifier: string;
|
|
30
|
+
testRun?: boolean;
|
|
31
|
+
meta?: {
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface XodJobType extends XodBaseMessageType {
|
|
36
|
+
type: 'JOB';
|
|
37
|
+
actionIdentifier: string;
|
|
38
|
+
actionVersion: string;
|
|
39
|
+
payload: Record<string, unknown>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ActionInterface, ConnectorOrigin } from './types/action';
|
|
2
|
+
import { KafkaBrokerConfig } from './types/kafka';
|
|
3
|
+
export * from './types/action';
|
|
4
|
+
export * from './types/kafka';
|
|
5
|
+
export interface BaseConnectorConfig {
|
|
6
|
+
processIdentifier: string;
|
|
7
|
+
tenantIdentifier: string;
|
|
8
|
+
datasourceIdentifier: string;
|
|
9
|
+
kafka: KafkaBrokerConfig;
|
|
10
|
+
action?: {
|
|
11
|
+
timeSensitive: boolean;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface ConnectorInterface<T = Partial<BaseConnectorConfig>> {
|
|
15
|
+
identifier: string;
|
|
16
|
+
connectorType: string;
|
|
17
|
+
tenantIdentifier: string;
|
|
18
|
+
name: string;
|
|
19
|
+
location: string;
|
|
20
|
+
config?: T;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
actions?: Array<ActionInterface>;
|
|
23
|
+
mode?: ConnectorOrigin;
|
|
24
|
+
createdAt?: Date;
|
|
25
|
+
updatedAt?: Date;
|
|
26
|
+
}
|