@transai/connector-runner-mkg 0.7.2 → 0.7.4

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.
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Document response type example:
3
+ *
4
+ * {
5
+ * "response": {
6
+ * "ResultData": [
7
+ * {
8
+ * "vorr": [
9
+ * {
10
+ * "RowKey": "0x0000000009ca092a",
11
+ * "admi_num": 2,
12
+ * "vorh_num": "KM3020005",
13
+ * "vorr_num": 5,
14
+ * "arti_code": "PROTO-FDM-ABS-01"
15
+ * }
16
+ * ]
17
+ * }
18
+ * ]
19
+ * }
20
+ * }
21
+ */
22
+ export type ActionDocumentResponseEntryType<fields extends string = string> = {
23
+ [field in fields]: string | number | boolean;
24
+ } & {
25
+ RowKey: string;
26
+ admi_num: number;
27
+ };
28
+ export type ActionDocumentResponseDataEntryType<entities extends string = string> = {
29
+ [entity in entities]: Array<ActionDocumentResponseEntryType>;
30
+ };
31
+ export type ActionDocumentResponseType = {
32
+ response: {
33
+ ResultData: Array<ActionDocumentResponseDataEntryType>;
34
+ };
35
+ };
36
+ export declare function actionDocumentResponseFormatter(data: ActionResponseType, tableIdentifier: string, responseFields: Array<string>): Record<string, unknown>;
37
+ /**
38
+ * Service response type example:
39
+ *
40
+ * {
41
+ * "ResultData": {
42
+ * "t_actiondata": [
43
+ * {
44
+ * "t_id": "",
45
+ * "t_order": 1,
46
+ * "t_action": "StartRefresh",
47
+ * "t_parameters":"Type=RowRowKey=0x0000000009ca092a",
48
+ * "t_value": null,
49
+ * "t_result": "",
50
+ * "t_table_id": ""
51
+ * }
52
+ * ],
53
+ * "prdr": [
54
+ * {
55
+ * "RowDB": "AAAAAAnFhSc=",
56
+ * "admi_num": 2,
57
+ * "prdh_num": "KM6020016",
58
+ * "prdr_num": 1,
59
+ * "RowKey": "0x0000000009c58527",
60
+ * "RowKeyParent": ""
61
+ * }
62
+ * ]
63
+ * }
64
+ * }
65
+ */
66
+ export type ActionServiceResponseEntryType<fields extends string = string> = {
67
+ [field in fields]: string | number | boolean;
68
+ } & {
69
+ RowDB: string;
70
+ RowKey: string;
71
+ RowKeyParent: string;
72
+ admi_num: number;
73
+ };
74
+ export type ActionServiceResponseResultDataType<entities extends string = string> = {
75
+ [entity in entities]: Array<ActionServiceResponseEntryType>;
76
+ };
77
+ export type ActionServiceResponseType = {
78
+ ResultData: ActionServiceResponseResultDataType;
79
+ };
80
+ export declare function actionServiceResponseFormatter(data: ActionResponseType, tableIdentifier: string, responseFields: Array<string>): Record<string, unknown>;
81
+ /**
82
+ * GENERIC
83
+ */
84
+ export type ActionResponseType = ActionDocumentResponseType | ActionServiceResponseType;
85
+ export declare function mapResponseFields(responseFields: Array<string>, tableIdentifier: string): Record<string, Array<string>>;
@@ -0,0 +1,2 @@
1
+ import { MkgTable } from './base/table';
2
+ export declare const MKG_TABLE_VORR: MkgTable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transai/connector-runner-mkg",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },