@transai/connector-runner-mkg 0.7.9 → 0.9.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/CHANGELOG.md +20 -0
- package/index.cjs +1 -1
- package/index.cjs.map +3 -3
- package/index.js +1 -1
- package/index.js.map +3 -3
- package/libs/connector-runner-mkg/src/lib/tables/base/action.d.ts +3 -2
- package/libs/connector-runtime-sdk/src/lib/sdk/http-client.interface.d.ts +1 -0
- package/libs/connector-runtime-sdk/src/lib/sdk/sender.sdk.interface.d.ts +1 -1
- package/libs/types/src/lib/types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { MkgTableInterface } from '../../types';
|
|
2
2
|
import { ActionResponseType } from './response';
|
|
3
3
|
type MkgActionMethod = 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
4
|
+
type MkgDefaultValuesType = string | number | boolean | (() => string | number | boolean);
|
|
4
5
|
export type MkgActionMetadata = {
|
|
5
6
|
administration: string;
|
|
6
7
|
};
|
|
@@ -11,7 +12,7 @@ export interface MkgActionInterface {
|
|
|
11
12
|
method: MkgActionMethod;
|
|
12
13
|
fields: Array<string>;
|
|
13
14
|
optionalFields?: Array<string>;
|
|
14
|
-
defaultValues?: Record<string,
|
|
15
|
+
defaultValues?: Record<string, MkgDefaultValuesType>;
|
|
15
16
|
responseFields?: Array<string>;
|
|
16
17
|
path?: MkgActionPathFunction;
|
|
17
18
|
response?: MkgActionResponseFunction;
|
|
@@ -23,7 +24,7 @@ export declare class MkgAction implements MkgActionInterface {
|
|
|
23
24
|
readonly method: MkgActionMethod;
|
|
24
25
|
readonly fields: Array<string>;
|
|
25
26
|
readonly optionalFields: Array<string>;
|
|
26
|
-
readonly defaultValues: Record<string,
|
|
27
|
+
readonly defaultValues: Record<string, MkgDefaultValuesType>;
|
|
27
28
|
readonly responseFields: Array<string>;
|
|
28
29
|
readonly triggerRefresh?: Record<string, Array<string>>;
|
|
29
30
|
readonly path: MkgActionPathFunction;
|
|
@@ -8,6 +8,7 @@ export type HttpRequestOptions<D = string | object> = {
|
|
|
8
8
|
params?: Record<string, string | number | boolean>;
|
|
9
9
|
data?: D;
|
|
10
10
|
withCredentials?: boolean;
|
|
11
|
+
responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata';
|
|
11
12
|
};
|
|
12
13
|
export type HttpRequestOptionsFormatter<D = string | object> = (requestOptions: HttpRequestOptions<D>, method: HttpMethod, url: string) => Promise<HttpRequestOptions<D>> | HttpRequestOptions<D>;
|
|
13
14
|
export type HttpErrorResponseCallbackRequest<D = string | object> = {
|
|
@@ -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<T = never>(metrics: Array<T>, metadata?: Metadata, context?: Context): Promise<Result>;
|
|
20
|
+
metricsLegacy<T = never>(metrics: Array<T>, metadata?: Metadata, context?: Context, topic?: string): Promise<Result>;
|
|
21
21
|
documents<T = object>(documents: Array<T>, metadata?: Metadata, context?: Context): Promise<Result>;
|
|
22
22
|
}
|
|
@@ -27,7 +27,9 @@ export declare enum ConfiguredConnectorTypes {
|
|
|
27
27
|
MKG = "mkg",
|
|
28
28
|
EZ_MES = "ez-mes",
|
|
29
29
|
OTTO_FLEET_MANAGER_V2 = "otto-fleet-manager-v2",
|
|
30
|
-
FRAUNHOFER_BATTERY_ASSEMBLY_CELLS = "fraunhofer-battery-assembly-cells"
|
|
30
|
+
FRAUNHOFER_BATTERY_ASSEMBLY_CELLS = "fraunhofer-battery-assembly-cells",
|
|
31
|
+
PDF_GENERATE = "pdf-generate",
|
|
32
|
+
ONSHAPE = "onshape"
|
|
31
33
|
}
|
|
32
34
|
export interface ConnectorConfig {
|
|
33
35
|
type: ConfiguredConnectorTypes;
|