@transai/connector-runner-mqtt 0.28.0 → 0.34.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 +68 -0
- package/DOCUMENTATION.md +58 -0
- package/index.cjs +77 -82
- package/index.cjs.map +4 -4
- package/libs/connector-runtime-sdk/src/lib/sdk/http-client.interface.d.ts +2 -0
- package/libs/connector-runtime-sdk/src/lib/types/action.d.ts +2 -2
- package/libs/logger/src/lib/logger.d.ts +18 -2
- package/package.json +2 -2
- /package/{libs → integrations}/connector-runner-mqtt/src/index.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/connector-runner-mqtt.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/helper/bambu-body-filter.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/helper/get-corresponding-collection.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/mqtt.client.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/types.d.ts +0 -0
|
@@ -2,6 +2,7 @@ export interface HttpConfig {
|
|
|
2
2
|
baseUrl?: string;
|
|
3
3
|
contentType?: string;
|
|
4
4
|
timeout?: number;
|
|
5
|
+
insecure?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export type HttpRequestOptions<D = string | object> = {
|
|
7
8
|
headers?: Record<string, string>;
|
|
@@ -28,6 +29,7 @@ export type HttpResponse<D = unknown> = {
|
|
|
28
29
|
export type HttpError = {
|
|
29
30
|
status: number;
|
|
30
31
|
error?: string;
|
|
32
|
+
headers?: Record<string, HttpResponseHeader>;
|
|
31
33
|
};
|
|
32
34
|
interface PromiseWithReason<T = unknown, R = unknown> extends Promise<T> {
|
|
33
35
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: R) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
@@ -52,8 +52,8 @@ export interface ActionInterface {
|
|
|
52
52
|
connectorIdentifier: string;
|
|
53
53
|
config: {
|
|
54
54
|
[key: string]: {
|
|
55
|
-
[key: string]: string | object;
|
|
56
|
-
} | string | object;
|
|
55
|
+
[key: string]: string | number | object;
|
|
56
|
+
} | string | number | object;
|
|
57
57
|
};
|
|
58
58
|
inputParameters: Array<InputParameterInterface>;
|
|
59
59
|
outputParameters: LegacyOutputParameterInterface | OutputParameterInterface;
|
|
@@ -2,9 +2,25 @@ export declare enum LogLevels {
|
|
|
2
2
|
error = "error",
|
|
3
3
|
warn = "warn",
|
|
4
4
|
info = "info",
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
debug = "debug",
|
|
6
|
+
verbose = "verbose"
|
|
7
7
|
}
|
|
8
|
+
export declare const LoggerLogLevels: {
|
|
9
|
+
levels: {
|
|
10
|
+
error: number;
|
|
11
|
+
warn: number;
|
|
12
|
+
info: number;
|
|
13
|
+
debug: number;
|
|
14
|
+
verbose: number;
|
|
15
|
+
};
|
|
16
|
+
colors: {
|
|
17
|
+
error: string;
|
|
18
|
+
warn: string;
|
|
19
|
+
info: string;
|
|
20
|
+
debug: string;
|
|
21
|
+
verbose: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
8
24
|
export declare class Logger {
|
|
9
25
|
#private;
|
|
10
26
|
private static instance;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|