d2aura 26.0.16 → 26.0.17
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/api/eda/edaManagerApi.d.ts +8 -4
- package/api/eda/edaManagerApi.js +26 -2
- package/api/eda/edaManagerApi.js.map +1 -1
- package/api/eda/generated/events.d.ts +93 -70
- package/api/eda/generated/events.js +170 -129
- package/api/eda/generated/events.js.map +1 -1
- package/api/eda/generated/structures.d.ts +7 -6
- package/api/eda/generated/structures.js.map +1 -1
- package/api/webAuthn/webAuthnManageApi.d.ts +9 -0
- package/api/webAuthn/webAuthnManageApi.js +61 -0
- package/api/webAuthn/webAuthnManageApi.js.map +1 -0
- package/api/webPush/webPushApi.js.map +1 -1
- package/api/webPush/webPushUtils.js.map +1 -1
- package/core/i18n/d2aura.sk.json +30 -0
- package/coreui/auth/passkeyLogin.d.ts +8 -0
- package/coreui/auth/passkeyLogin.js +70 -0
- package/coreui/auth/passkeyLogin.js.map +1 -0
- package/coreui/auth/passkeyLoginButton.d.ts +9 -0
- package/coreui/auth/passkeyLoginButton.js +24 -0
- package/coreui/auth/passkeyLoginButton.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaChartViewer.js +1 -1
- package/coreui/components/edaManagerComponent/components/edaChartViewer.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js +3 -6
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.js +1 -0
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaDialogTitle.d.ts +8 -0
- package/coreui/components/edaManagerComponent/components/edaDialogTitle.js +10 -0
- package/coreui/components/edaManagerComponent/components/edaDialogTitle.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js +2 -1
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaGroupDetailPanel.js +1 -1
- package/coreui/components/edaManagerComponent/components/edaGroupDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaLoadingOverlay.d.ts +1 -6
- package/coreui/components/edaManagerComponent/components/edaLoadingOverlay.js +9 -8
- package/coreui/components/edaManagerComponent/components/edaLoadingOverlay.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.d.ts +0 -1
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js +4 -4
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaScenarioDetailPanel.js +1 -1
- package/coreui/components/edaManagerComponent/components/edaScenarioDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js +7 -24
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTreeView.js +117 -145
- package/coreui/components/edaManagerComponent/components/edaTreeView.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.js +19 -16
- package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/constants/actionTypes.d.ts +1 -0
- package/coreui/components/edaManagerComponent/constants/actionTypes.js +1 -0
- package/coreui/components/edaManagerComponent/constants/actionTypes.js.map +1 -1
- package/coreui/components/edaManagerComponent/constants/edaTypes.d.ts +6 -2
- package/coreui/components/edaManagerComponent/constants/edaTypes.js +1 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.d.ts +0 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.d.ts +2 -3
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js +77 -37
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/loadingContext.d.ts +11 -1
- package/coreui/components/edaManagerComponent/context/loadingContext.js +40 -2
- package/coreui/components/edaManagerComponent/context/loadingContext.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/useEdaActions.d.ts +1 -0
- package/coreui/components/edaManagerComponent/context/useEdaActions.js +18 -9
- package/coreui/components/edaManagerComponent/context/useEdaActions.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/descriptiveVectorDetailPanel.js +5 -3
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/descriptiveVectorDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.d.ts +0 -1
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.js +3 -5
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.d.ts +0 -1
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.js +4 -6
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/utils.js +1 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/utils.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/edaDescriptiveVectorEditorDialog.js +46 -12
- package/coreui/components/edaManagerComponent/dialogs/edaDescriptiveVectorEditorDialog.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.js +10 -8
- package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.d.ts +1 -9
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.js +48 -79
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/importDialog.d.ts +10 -0
- package/coreui/components/edaManagerComponent/dialogs/importDialog.js +418 -0
- package/coreui/components/edaManagerComponent/dialogs/importDialog.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/export.d.ts +17 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/export.js +335 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/export.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/import.d.ts +58 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/import.js +375 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/import.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/types.d.ts +8 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/types.js +98 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/types.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeCheckbox.d.ts +5 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeCheckbox.js +13 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeCheckbox.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.d.ts +2 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.js +17 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/xmlAttributeHolder.d.ts +20 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/xmlAttributeHolder.js +36 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/xmlAttributeHolder.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/{groupVectorSelection.d.ts → vectorSelectionDialog.d.ts} +1 -1
- package/coreui/components/edaManagerComponent/dialogs/{groupVectorSelection.js → vectorSelectionDialog.js} +5 -4
- package/coreui/components/edaManagerComponent/dialogs/vectorSelectionDialog.js.map +1 -0
- package/coreui/components/edaManagerComponent/edaDetail.js +24 -20
- package/coreui/components/edaManagerComponent/edaDetail.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaManager.js +9 -7
- package/coreui/components/edaManagerComponent/edaManager.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaSelect.js +8 -11
- package/coreui/components/edaManagerComponent/edaSelect.js.map +1 -1
- package/coreui/components/edaManagerComponent/utils/utils.d.ts +7 -6
- package/coreui/components/edaManagerComponent/utils/utils.js +63 -5
- package/coreui/components/edaManagerComponent/utils/utils.js.map +1 -1
- package/coreui/components/passkey/passkeyManager.d.ts +7 -0
- package/coreui/components/passkey/passkeyManager.js +75 -0
- package/coreui/components/passkey/passkeyManager.js.map +1 -0
- package/coreui/components/webPush/webPushSwitch.js.map +1 -1
- package/coreui/images/logo.svg +9 -9
- package/coreui/images/logo_full.svg +11 -11
- package/package.json +9 -4
- package/coreui/components/edaManagerComponent/dialogs/groupVectorSelection.js.map +0 -1
- package/coreui/components/edaManagerComponent/utils/export.d.ts +0 -9
- package/coreui/components/edaManagerComponent/utils/export.js +0 -570
- package/coreui/components/edaManagerComponent/utils/export.js.map +0 -1
|
@@ -38,7 +38,7 @@ function processOutParameters(parameters, fields) {
|
|
|
38
38
|
result = v === "vTrue";
|
|
39
39
|
break;
|
|
40
40
|
case "time":
|
|
41
|
-
result =
|
|
41
|
+
result = v;
|
|
42
42
|
break;
|
|
43
43
|
default:
|
|
44
44
|
result = v;
|
|
@@ -60,7 +60,7 @@ function processOutParameters(parameters, fields) {
|
|
|
60
60
|
obj[f] = val.value === "vTrue";
|
|
61
61
|
break;
|
|
62
62
|
case "time":
|
|
63
|
-
obj[f] =
|
|
63
|
+
obj[f] = val.value;
|
|
64
64
|
break;
|
|
65
65
|
default:
|
|
66
66
|
obj[f] = val.value;
|
|
@@ -75,15 +75,15 @@ function processOutParameters(parameters, fields) {
|
|
|
75
75
|
})
|
|
76
76
|
.filter(([_, value]) => value !== undefined));
|
|
77
77
|
}
|
|
78
|
-
export class
|
|
79
|
-
async
|
|
78
|
+
export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
79
|
+
async FindGroups(parameters, callParameters = {}) {
|
|
80
80
|
return new Promise(async (resolve) => {
|
|
81
81
|
const inParams = [
|
|
82
|
-
{ type: "
|
|
82
|
+
{ type: "record", name: "conditions", structName: "SD.EM_Filter_Condition", structFields: ["id_condition", "id_filter", "not_flag", "left_par", "column_name", "operator", "value", "value_type", "right_par", "logical_operator"] },
|
|
83
|
+
{ type: "int", name: "count" },
|
|
83
84
|
];
|
|
84
85
|
const outParams = [
|
|
85
|
-
{ type: "record", name: "
|
|
86
|
-
{ type: "text", name: "prescription" },
|
|
86
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
87
87
|
{ type: "bool", name: "isOk" },
|
|
88
88
|
{ type: "text", name: "errorMsg" },
|
|
89
89
|
];
|
|
@@ -91,17 +91,18 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
91
91
|
...processInParameters(parameters, inParams),
|
|
92
92
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
93
93
|
];
|
|
94
|
-
const result = await this.d2api.rpc("E.
|
|
94
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindGroups", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
95
95
|
resolve(processOutParameters(result, outParams));
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
-
async
|
|
98
|
+
async FindScenarios(parameters, callParameters = {}) {
|
|
99
99
|
return new Promise(async (resolve) => {
|
|
100
100
|
const inParams = [
|
|
101
|
-
{ type: "
|
|
101
|
+
{ type: "record", name: "conditions", structName: "SD.EM_Filter_Condition", structFields: ["id_condition", "id_filter", "not_flag", "left_par", "column_name", "operator", "value", "value_type", "right_par", "logical_operator"] },
|
|
102
|
+
{ type: "int", name: "count" },
|
|
102
103
|
];
|
|
103
104
|
const outParams = [
|
|
104
|
-
{ type: "record", name: "
|
|
105
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
105
106
|
{ type: "bool", name: "isOk" },
|
|
106
107
|
{ type: "text", name: "errorMsg" },
|
|
107
108
|
];
|
|
@@ -109,17 +110,18 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
109
110
|
...processInParameters(parameters, inParams),
|
|
110
111
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
111
112
|
];
|
|
112
|
-
const result = await this.d2api.rpc("E.
|
|
113
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindScenarios", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
113
114
|
resolve(processOutParameters(result, outParams));
|
|
114
115
|
});
|
|
115
116
|
}
|
|
116
|
-
async
|
|
117
|
+
async FindVectors(parameters, callParameters = {}) {
|
|
117
118
|
return new Promise(async (resolve) => {
|
|
118
119
|
const inParams = [
|
|
119
|
-
{ type: "
|
|
120
|
+
{ type: "record", name: "conditions", structName: "SD.EM_Filter_Condition", structFields: ["id_condition", "id_filter", "not_flag", "left_par", "column_name", "operator", "value", "value_type", "right_par", "logical_operator"] },
|
|
121
|
+
{ type: "int", name: "count" },
|
|
120
122
|
];
|
|
121
123
|
const outParams = [
|
|
122
|
-
{ type: "record", name: "
|
|
124
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
123
125
|
{ type: "bool", name: "isOk" },
|
|
124
126
|
{ type: "text", name: "errorMsg" },
|
|
125
127
|
];
|
|
@@ -127,17 +129,17 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
127
129
|
...processInParameters(parameters, inParams),
|
|
128
130
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
129
131
|
];
|
|
130
|
-
const result = await this.d2api.rpc("E.
|
|
132
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
131
133
|
resolve(processOutParameters(result, outParams));
|
|
132
134
|
});
|
|
133
135
|
}
|
|
134
|
-
async
|
|
136
|
+
async GetGroup(parameters, callParameters = {}) {
|
|
135
137
|
return new Promise(async (resolve) => {
|
|
136
138
|
const inParams = [
|
|
137
139
|
{ type: "int", name: "id" },
|
|
138
140
|
];
|
|
139
141
|
const outParams = [
|
|
140
|
-
{ type: "record", name: "
|
|
142
|
+
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
141
143
|
{ type: "bool", name: "isOk" },
|
|
142
144
|
{ type: "text", name: "errorMsg" },
|
|
143
145
|
];
|
|
@@ -145,17 +147,21 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
145
147
|
...processInParameters(parameters, inParams),
|
|
146
148
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
147
149
|
];
|
|
148
|
-
const result = await this.d2api.rpc("E.
|
|
150
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroup", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
149
151
|
resolve(processOutParameters(result, outParams));
|
|
150
152
|
});
|
|
151
153
|
}
|
|
152
|
-
async
|
|
154
|
+
async GetGroupChildren(parameters, callParameters = {}) {
|
|
153
155
|
return new Promise(async (resolve) => {
|
|
154
156
|
const inParams = [
|
|
155
157
|
{ type: "int", name: "id" },
|
|
158
|
+
{ type: "bool", name: "showOmitted" },
|
|
159
|
+
{ type: "int", name: "count" },
|
|
160
|
+
{ type: "int", name: "offset" },
|
|
156
161
|
];
|
|
157
162
|
const outParams = [
|
|
158
|
-
{ type: "record", name: "
|
|
163
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
164
|
+
{ type: "int", name: "leftCount" },
|
|
159
165
|
{ type: "bool", name: "isOk" },
|
|
160
166
|
{ type: "text", name: "errorMsg" },
|
|
161
167
|
];
|
|
@@ -163,19 +169,21 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
163
169
|
...processInParameters(parameters, inParams),
|
|
164
170
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
165
171
|
];
|
|
166
|
-
const result = await this.d2api.rpc("E.
|
|
172
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
167
173
|
resolve(processOutParameters(result, outParams));
|
|
168
174
|
});
|
|
169
175
|
}
|
|
170
|
-
async
|
|
176
|
+
async GetGroupVectors(parameters, callParameters = {}) {
|
|
171
177
|
return new Promise(async (resolve) => {
|
|
172
178
|
const inParams = [
|
|
173
179
|
{ type: "int", name: "id" },
|
|
180
|
+
{ type: "bool", name: "showOmitted" },
|
|
181
|
+
{ type: "int", name: "count" },
|
|
182
|
+
{ type: "int", name: "offset" },
|
|
174
183
|
];
|
|
175
184
|
const outParams = [
|
|
176
|
-
{ type: "record", name: "
|
|
177
|
-
{ type: "
|
|
178
|
-
{ type: "record", name: "dataFunction", structName: "SD.EM_EDA_Function", structFields: ["ID_VEKTOR", "TYP", "PERIODA", "POSUN", "PREPOCIT", "PREDV_OD", "PREDV_DO", "PRECALC_RQ"] },
|
|
185
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
186
|
+
{ type: "int", name: "leftCount" },
|
|
179
187
|
{ type: "bool", name: "isOk" },
|
|
180
188
|
{ type: "text", name: "errorMsg" },
|
|
181
189
|
];
|
|
@@ -183,20 +191,17 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
183
191
|
...processInParameters(parameters, inParams),
|
|
184
192
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
185
193
|
];
|
|
186
|
-
const result = await this.d2api.rpc("E.
|
|
194
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
187
195
|
resolve(processOutParameters(result, outParams));
|
|
188
196
|
});
|
|
189
197
|
}
|
|
190
|
-
}
|
|
191
|
-
export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
192
|
-
async FindGroups(parameters, callParameters = {}) {
|
|
198
|
+
async GetScenario(parameters, callParameters = {}) {
|
|
193
199
|
return new Promise(async (resolve) => {
|
|
194
200
|
const inParams = [
|
|
195
|
-
{ type: "
|
|
196
|
-
{ type: "int", name: "count" },
|
|
201
|
+
{ type: "int", name: "id" },
|
|
197
202
|
];
|
|
198
203
|
const outParams = [
|
|
199
|
-
{ type: "record", name: "
|
|
204
|
+
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
200
205
|
{ type: "bool", name: "isOk" },
|
|
201
206
|
{ type: "text", name: "errorMsg" },
|
|
202
207
|
];
|
|
@@ -204,18 +209,21 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
204
209
|
...processInParameters(parameters, inParams),
|
|
205
210
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
206
211
|
];
|
|
207
|
-
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "
|
|
212
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenario", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
208
213
|
resolve(processOutParameters(result, outParams));
|
|
209
214
|
});
|
|
210
215
|
}
|
|
211
|
-
async
|
|
216
|
+
async GetScenarioChildren(parameters, callParameters = {}) {
|
|
212
217
|
return new Promise(async (resolve) => {
|
|
213
218
|
const inParams = [
|
|
214
|
-
{ type: "
|
|
219
|
+
{ type: "int", name: "id" },
|
|
220
|
+
{ type: "bool", name: "showOmitted" },
|
|
215
221
|
{ type: "int", name: "count" },
|
|
222
|
+
{ type: "int", name: "offset" },
|
|
216
223
|
];
|
|
217
224
|
const outParams = [
|
|
218
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
|
|
225
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
226
|
+
{ type: "int", name: "leftCount" },
|
|
219
227
|
{ type: "bool", name: "isOk" },
|
|
220
228
|
{ type: "text", name: "errorMsg" },
|
|
221
229
|
];
|
|
@@ -223,18 +231,22 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
223
231
|
...processInParameters(parameters, inParams),
|
|
224
232
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
225
233
|
];
|
|
226
|
-
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "
|
|
234
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
227
235
|
resolve(processOutParameters(result, outParams));
|
|
228
236
|
});
|
|
229
237
|
}
|
|
230
|
-
async
|
|
238
|
+
async GetScenarioVectors(parameters, callParameters = {}) {
|
|
231
239
|
return new Promise(async (resolve) => {
|
|
232
240
|
const inParams = [
|
|
233
|
-
{ type: "
|
|
241
|
+
{ type: "int", name: "id" },
|
|
242
|
+
{ type: "bool", name: "showOmitted" },
|
|
243
|
+
{ type: "bool", name: "showDynamic" },
|
|
234
244
|
{ type: "int", name: "count" },
|
|
245
|
+
{ type: "int", name: "offset" },
|
|
235
246
|
];
|
|
236
247
|
const outParams = [
|
|
237
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
|
|
248
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
249
|
+
{ type: "int", name: "leftCount" },
|
|
238
250
|
{ type: "bool", name: "isOk" },
|
|
239
251
|
{ type: "text", name: "errorMsg" },
|
|
240
252
|
];
|
|
@@ -242,17 +254,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
242
254
|
...processInParameters(parameters, inParams),
|
|
243
255
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
244
256
|
];
|
|
245
|
-
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "
|
|
257
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
246
258
|
resolve(processOutParameters(result, outParams));
|
|
247
259
|
});
|
|
248
260
|
}
|
|
249
|
-
async
|
|
261
|
+
async GetVector(parameters, callParameters = {}) {
|
|
250
262
|
return new Promise(async (resolve) => {
|
|
251
263
|
const inParams = [
|
|
252
264
|
{ type: "int", name: "id" },
|
|
253
265
|
];
|
|
254
266
|
const outParams = [
|
|
255
|
-
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
|
|
267
|
+
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
256
268
|
{ type: "bool", name: "isOk" },
|
|
257
269
|
{ type: "text", name: "errorMsg" },
|
|
258
270
|
];
|
|
@@ -260,21 +272,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
260
272
|
...processInParameters(parameters, inParams),
|
|
261
273
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
262
274
|
];
|
|
263
|
-
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "
|
|
275
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
264
276
|
resolve(processOutParameters(result, outParams));
|
|
265
277
|
});
|
|
266
278
|
}
|
|
267
|
-
async
|
|
279
|
+
async IncludeVectorToGroup(parameters, callParameters = {}) {
|
|
268
280
|
return new Promise(async (resolve) => {
|
|
269
281
|
const inParams = [
|
|
270
|
-
{ type: "int", name: "
|
|
271
|
-
{ type: "
|
|
272
|
-
{ type: "int", name: "count" },
|
|
273
|
-
{ type: "int", name: "offset" },
|
|
282
|
+
{ type: "int", name: "groupId" },
|
|
283
|
+
{ type: "int", name: "vectorId" },
|
|
274
284
|
];
|
|
275
285
|
const outParams = [
|
|
276
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
|
|
277
|
-
{ type: "int", name: "leftCount" },
|
|
278
286
|
{ type: "bool", name: "isOk" },
|
|
279
287
|
{ type: "text", name: "errorMsg" },
|
|
280
288
|
];
|
|
@@ -282,21 +290,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
282
290
|
...processInParameters(parameters, inParams),
|
|
283
291
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
284
292
|
];
|
|
285
|
-
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "
|
|
293
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToGroup", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
286
294
|
resolve(processOutParameters(result, outParams));
|
|
287
295
|
});
|
|
288
296
|
}
|
|
289
|
-
async
|
|
297
|
+
async IncludeVectorToScenario(parameters, callParameters = {}) {
|
|
290
298
|
return new Promise(async (resolve) => {
|
|
291
299
|
const inParams = [
|
|
292
|
-
{ type: "int", name: "
|
|
293
|
-
{ type: "
|
|
294
|
-
{ type: "int", name: "count" },
|
|
295
|
-
{ type: "int", name: "offset" },
|
|
300
|
+
{ type: "int", name: "scenarioId" },
|
|
301
|
+
{ type: "int", name: "vectorId" },
|
|
296
302
|
];
|
|
297
303
|
const outParams = [
|
|
298
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
|
|
299
|
-
{ type: "int", name: "leftCount" },
|
|
300
304
|
{ type: "bool", name: "isOk" },
|
|
301
305
|
{ type: "text", name: "errorMsg" },
|
|
302
306
|
];
|
|
@@ -304,17 +308,24 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
304
308
|
...processInParameters(parameters, inParams),
|
|
305
309
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
306
310
|
];
|
|
307
|
-
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "
|
|
311
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToScenario", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
308
312
|
resolve(processOutParameters(result, outParams));
|
|
309
313
|
});
|
|
310
314
|
}
|
|
311
|
-
|
|
315
|
+
}
|
|
316
|
+
export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
317
|
+
async CalcValuesForUnsavedVector(parameters, callParameters = {}) {
|
|
312
318
|
return new Promise(async (resolve) => {
|
|
313
319
|
const inParams = [
|
|
314
|
-
{ type: "int", name: "
|
|
320
|
+
{ type: "int", name: "type" },
|
|
321
|
+
{ type: "text", name: "prescription" },
|
|
322
|
+
{ type: "time", name: "from" },
|
|
323
|
+
{ type: "time", name: "to" },
|
|
324
|
+
{ type: "int", name: "step" },
|
|
315
325
|
];
|
|
316
326
|
const outParams = [
|
|
317
|
-
{ type: "record", name: "
|
|
327
|
+
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
328
|
+
{ type: "record", name: "stats", structName: "SD.EM_EDA_VectorStats", structFields: ["Min", "Max", "Sum", "Avg"] },
|
|
318
329
|
{ type: "bool", name: "isOk" },
|
|
319
330
|
{ type: "text", name: "errorMsg" },
|
|
320
331
|
];
|
|
@@ -322,21 +333,21 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
322
333
|
...processInParameters(parameters, inParams),
|
|
323
334
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
324
335
|
];
|
|
325
|
-
const result = await this.d2api.rpc("E.
|
|
336
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "CalcValuesForUnsavedVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
326
337
|
resolve(processOutParameters(result, outParams));
|
|
327
338
|
});
|
|
328
339
|
}
|
|
329
|
-
async
|
|
340
|
+
async GetValuesForDescriptiveVector(parameters, callParameters = {}) {
|
|
330
341
|
return new Promise(async (resolve) => {
|
|
331
342
|
const inParams = [
|
|
332
|
-
{ type: "
|
|
333
|
-
{ type: "
|
|
334
|
-
{ type: "
|
|
335
|
-
{ type: "int", name: "
|
|
343
|
+
{ type: "record", name: "definition", structName: "SD.EDA_DescriptiveData2", structFields: ["id", "parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
|
|
344
|
+
{ type: "time", name: "from" },
|
|
345
|
+
{ type: "time", name: "to" },
|
|
346
|
+
{ type: "int", name: "step" },
|
|
347
|
+
{ type: "int", name: "integral" },
|
|
336
348
|
];
|
|
337
349
|
const outParams = [
|
|
338
|
-
{ type: "record", name: "
|
|
339
|
-
{ type: "int", name: "leftCount" },
|
|
350
|
+
{ type: "record", name: "values", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
340
351
|
{ type: "bool", name: "isOk" },
|
|
341
352
|
{ type: "text", name: "errorMsg" },
|
|
342
353
|
];
|
|
@@ -344,22 +355,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
344
355
|
...processInParameters(parameters, inParams),
|
|
345
356
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
346
357
|
];
|
|
347
|
-
const result = await this.d2api.rpc("E.
|
|
358
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "GetValuesForDescriptiveVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
348
359
|
resolve(processOutParameters(result, outParams));
|
|
349
360
|
});
|
|
350
361
|
}
|
|
351
|
-
async
|
|
362
|
+
async InsertValuesToVector(parameters, callParameters = {}) {
|
|
352
363
|
return new Promise(async (resolve) => {
|
|
353
364
|
const inParams = [
|
|
354
365
|
{ type: "int", name: "id" },
|
|
355
|
-
{ type: "
|
|
356
|
-
{ type: "bool", name: "showDynamic" },
|
|
357
|
-
{ type: "int", name: "count" },
|
|
358
|
-
{ type: "int", name: "offset" },
|
|
366
|
+
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
359
367
|
];
|
|
360
368
|
const outParams = [
|
|
361
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
|
|
362
|
-
{ type: "int", name: "leftCount" },
|
|
363
369
|
{ type: "bool", name: "isOk" },
|
|
364
370
|
{ type: "text", name: "errorMsg" },
|
|
365
371
|
];
|
|
@@ -367,17 +373,20 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
367
373
|
...processInParameters(parameters, inParams),
|
|
368
374
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
369
375
|
];
|
|
370
|
-
const result = await this.d2api.rpc("E.
|
|
376
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "InsertValuesToVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
371
377
|
resolve(processOutParameters(result, outParams));
|
|
372
378
|
});
|
|
373
379
|
}
|
|
374
|
-
async
|
|
380
|
+
async ReadValuesFromPairVector(parameters, callParameters = {}) {
|
|
375
381
|
return new Promise(async (resolve) => {
|
|
376
382
|
const inParams = [
|
|
377
383
|
{ type: "int", name: "id" },
|
|
384
|
+
{ type: "time", name: "from" },
|
|
385
|
+
{ type: "time", name: "to" },
|
|
386
|
+
{ type: "int", name: "step" },
|
|
378
387
|
];
|
|
379
388
|
const outParams = [
|
|
380
|
-
{ type: "record", name: "
|
|
389
|
+
{ type: "record", name: "data", structName: "SD.EDA_PairData", structFields: ["idx", "valX", "valY"] },
|
|
381
390
|
{ type: "bool", name: "isOk" },
|
|
382
391
|
{ type: "text", name: "errorMsg" },
|
|
383
392
|
];
|
|
@@ -385,17 +394,21 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
385
394
|
...processInParameters(parameters, inParams),
|
|
386
395
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
387
396
|
];
|
|
388
|
-
const result = await this.d2api.rpc("E.
|
|
397
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromPairVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
389
398
|
resolve(processOutParameters(result, outParams));
|
|
390
399
|
});
|
|
391
400
|
}
|
|
392
|
-
async
|
|
401
|
+
async ReadValuesFromVector(parameters, callParameters = {}) {
|
|
393
402
|
return new Promise(async (resolve) => {
|
|
394
403
|
const inParams = [
|
|
395
|
-
{ type: "int", name: "
|
|
396
|
-
{ type: "
|
|
404
|
+
{ type: "int", name: "id" },
|
|
405
|
+
{ type: "time", name: "from" },
|
|
406
|
+
{ type: "time", name: "to" },
|
|
407
|
+
{ type: "int", name: "step" },
|
|
397
408
|
];
|
|
398
409
|
const outParams = [
|
|
410
|
+
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
411
|
+
{ type: "record", name: "stats", structName: "SD.EM_EDA_VectorStats", structFields: ["Min", "Max", "Sum", "Avg"] },
|
|
399
412
|
{ type: "bool", name: "isOk" },
|
|
400
413
|
{ type: "text", name: "errorMsg" },
|
|
401
414
|
];
|
|
@@ -403,16 +416,29 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
403
416
|
...processInParameters(parameters, inParams),
|
|
404
417
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
405
418
|
];
|
|
406
|
-
const result = await this.d2api.rpc("E.
|
|
419
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
407
420
|
resolve(processOutParameters(result, outParams));
|
|
408
421
|
});
|
|
409
422
|
}
|
|
410
|
-
|
|
423
|
+
}
|
|
424
|
+
export class EM_VECTOR_MANAGEREventApi extends BaseApi {
|
|
425
|
+
async InsertSession(parameters, callParameters = {}) {
|
|
411
426
|
return new Promise(async (resolve) => {
|
|
412
427
|
const inParams = [
|
|
413
|
-
{ type: "int", name: "
|
|
414
|
-
{ type: "int", name: "vectorId" },
|
|
428
|
+
{ type: "int", name: "processId" },
|
|
415
429
|
];
|
|
430
|
+
const outParams = [];
|
|
431
|
+
const processedParams = [
|
|
432
|
+
...processInParameters(parameters, inParams),
|
|
433
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
434
|
+
];
|
|
435
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "InsertSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
436
|
+
resolve(processOutParameters(result, outParams));
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
async KillEdaSession(parameters, callParameters = {}) {
|
|
440
|
+
return new Promise(async (resolve) => {
|
|
441
|
+
const inParams = [];
|
|
416
442
|
const outParams = [
|
|
417
443
|
{ type: "bool", name: "isOk" },
|
|
418
444
|
{ type: "text", name: "errorMsg" },
|
|
@@ -421,13 +447,11 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
421
447
|
...processInParameters(parameters, inParams),
|
|
422
448
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
423
449
|
];
|
|
424
|
-
const result = await this.d2api.rpc("E.
|
|
450
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "KillEdaSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
425
451
|
resolve(processOutParameters(result, outParams));
|
|
426
452
|
});
|
|
427
453
|
}
|
|
428
|
-
}
|
|
429
|
-
export class EM_VECTOR_MANAGEREventApi extends BaseApi {
|
|
430
|
-
async InsertSession(parameters, callParameters = {}) {
|
|
454
|
+
async RemoveSession(parameters, callParameters = {}) {
|
|
431
455
|
return new Promise(async (resolve) => {
|
|
432
456
|
const inParams = [
|
|
433
457
|
{ type: "int", name: "processId" },
|
|
@@ -437,14 +461,20 @@ export class EM_VECTOR_MANAGEREventApi extends BaseApi {
|
|
|
437
461
|
...processInParameters(parameters, inParams),
|
|
438
462
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
439
463
|
];
|
|
440
|
-
const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "
|
|
464
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "RemoveSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
441
465
|
resolve(processOutParameters(result, outParams));
|
|
442
466
|
});
|
|
443
467
|
}
|
|
444
|
-
|
|
468
|
+
}
|
|
469
|
+
export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
470
|
+
async LoadCalcVectorData(parameters, callParameters = {}) {
|
|
445
471
|
return new Promise(async (resolve) => {
|
|
446
|
-
const inParams = [
|
|
472
|
+
const inParams = [
|
|
473
|
+
{ type: "int", name: "id" },
|
|
474
|
+
];
|
|
447
475
|
const outParams = [
|
|
476
|
+
{ type: "record", name: "data", structName: "SD.EM_EDA_FunctionPrescription", structFields: ["ID_VEKTOR", "POPIS", "PLATNOST_OD", "PLATNOST_DO"] },
|
|
477
|
+
{ type: "text", name: "prescription" },
|
|
448
478
|
{ type: "bool", name: "isOk" },
|
|
449
479
|
{ type: "text", name: "errorMsg" },
|
|
450
480
|
];
|
|
@@ -452,37 +482,35 @@ export class EM_VECTOR_MANAGEREventApi extends BaseApi {
|
|
|
452
482
|
...processInParameters(parameters, inParams),
|
|
453
483
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
454
484
|
];
|
|
455
|
-
const result = await this.d2api.rpc("E.
|
|
485
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadCalcVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
456
486
|
resolve(processOutParameters(result, outParams));
|
|
457
487
|
});
|
|
458
488
|
}
|
|
459
|
-
async
|
|
489
|
+
async LoadDescriptiveVectorData(parameters, callParameters = {}) {
|
|
460
490
|
return new Promise(async (resolve) => {
|
|
461
491
|
const inParams = [
|
|
462
|
-
{ type: "int", name: "
|
|
492
|
+
{ type: "int", name: "id" },
|
|
493
|
+
];
|
|
494
|
+
const outParams = [
|
|
495
|
+
{ type: "record", name: "data", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
|
|
496
|
+
{ type: "bool", name: "isOk" },
|
|
497
|
+
{ type: "text", name: "errorMsg" },
|
|
463
498
|
];
|
|
464
|
-
const outParams = [];
|
|
465
499
|
const processedParams = [
|
|
466
500
|
...processInParameters(parameters, inParams),
|
|
467
501
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
468
502
|
];
|
|
469
|
-
const result = await this.d2api.rpc("E.
|
|
503
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
470
504
|
resolve(processOutParameters(result, outParams));
|
|
471
505
|
});
|
|
472
506
|
}
|
|
473
|
-
}
|
|
474
|
-
export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
475
|
-
async GetValuesForDescriptiveVector(parameters, callParameters = {}) {
|
|
507
|
+
async LoadGroupData(parameters, callParameters = {}) {
|
|
476
508
|
return new Promise(async (resolve) => {
|
|
477
509
|
const inParams = [
|
|
478
|
-
{ type: "
|
|
479
|
-
{ type: "time", name: "from" },
|
|
480
|
-
{ type: "time", name: "to" },
|
|
481
|
-
{ type: "int", name: "step" },
|
|
482
|
-
{ type: "int", name: "integral" },
|
|
510
|
+
{ type: "int", name: "id" },
|
|
483
511
|
];
|
|
484
512
|
const outParams = [
|
|
485
|
-
{ type: "record", name: "
|
|
513
|
+
{ type: "record", name: "data", structName: "SD.EM_EDA_GroupVector", structFields: ["ID_SKVEKTOR", "EDA_ID_SKVEKTOR", "MENO", "POPIS", "AUTOR", "PRIST_PRAVA_R", "PRIST_PRAVA_W", "CESTA", "ANO_PLATNY", "ZOBRAZ_MENO", "PRIVATE", "USERINPUTFLAG", "ANO_PAIR"] },
|
|
486
514
|
{ type: "bool", name: "isOk" },
|
|
487
515
|
{ type: "text", name: "errorMsg" },
|
|
488
516
|
];
|
|
@@ -490,17 +518,17 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
|
490
518
|
...processInParameters(parameters, inParams),
|
|
491
519
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
492
520
|
];
|
|
493
|
-
const result = await this.d2api.rpc("E.
|
|
521
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadGroupData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
494
522
|
resolve(processOutParameters(result, outParams));
|
|
495
523
|
});
|
|
496
524
|
}
|
|
497
|
-
async
|
|
525
|
+
async LoadPairVectorData(parameters, callParameters = {}) {
|
|
498
526
|
return new Promise(async (resolve) => {
|
|
499
527
|
const inParams = [
|
|
500
528
|
{ type: "int", name: "id" },
|
|
501
|
-
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
502
529
|
];
|
|
503
530
|
const outParams = [
|
|
531
|
+
{ type: "record", name: "data", structName: "SD.EM_EDA_PairVector", structFields: ["ID_VEKTOR", "ID_SKVEKTOR", "ID_FUNKCIA", "MENO", "POPIS", "TECH_JEDNOTKY", "TYP_HODNOTY", "TYP", "DATA_OD", "DATA_DO", "AUTOR", "PRIVATE", "PRIST_PRAVA_R", "PRIST_PRAVA_W", "INTEGRAL", "ZOBRAZ_MENO", "ANO_PLATNY", "VIEW_ROUND", "EXEC_ROUND", "VIEW_DEC_PL", "EXEC_DEC_PL", "USER_CH", "MENOEX", "DATA_OFFSET", "ID_TABLESPACE", "TECH_JEDNOTKY_Y", "HODNOTA_X", "HODNOTA_Y", "TIME_ZONE", "VERSIONED_SINCE", "ARCHIVE_NAME", "ARCHIVE_ROW", "ARCHIVE_COL", "STATUS_TEXT", "PERIOD_BEGIN_TIME", "PERIOD_STEP_BASE", "PERIOD_STEP_COUNT"] },
|
|
504
532
|
{ type: "bool", name: "isOk" },
|
|
505
533
|
{ type: "text", name: "errorMsg" },
|
|
506
534
|
];
|
|
@@ -508,20 +536,17 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
|
508
536
|
...processInParameters(parameters, inParams),
|
|
509
537
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
510
538
|
];
|
|
511
|
-
const result = await this.d2api.rpc("E.
|
|
539
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadPairVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
512
540
|
resolve(processOutParameters(result, outParams));
|
|
513
541
|
});
|
|
514
542
|
}
|
|
515
|
-
async
|
|
543
|
+
async LoadScenarioData(parameters, callParameters = {}) {
|
|
516
544
|
return new Promise(async (resolve) => {
|
|
517
545
|
const inParams = [
|
|
518
546
|
{ type: "int", name: "id" },
|
|
519
|
-
{ type: "time", name: "from" },
|
|
520
|
-
{ type: "time", name: "to" },
|
|
521
|
-
{ type: "int", name: "step" },
|
|
522
547
|
];
|
|
523
548
|
const outParams = [
|
|
524
|
-
{ type: "record", name: "data", structName: "SD.
|
|
549
|
+
{ type: "record", name: "data", structName: "SD.EM_EDA_Scenario", structFields: ["ID_SCENAR", "EDA_ID_SCENAR", "MENO", "POPIS", "IDX", "CAS_DLZKA", "CAS_POSUN", "CAS_JEMNOST", "AUTOR", "PRIVATE", "PRIST_PRAVA_R", "PRIST_PRAVA_W", "CESTA", "FILTER", "FILTER_USER", "FILTER_TYP", "ZOBRAZ_MENO", "ANO_PLATNY", "DIAGRAM", "ANO_DIAGRAM", "ANO_EDITACIA", "ANO_ZMENA", "ANO_GRAFXY", "ANO_MATICA", "ANO_PAIR"] },
|
|
525
550
|
{ type: "bool", name: "isOk" },
|
|
526
551
|
{ type: "text", name: "errorMsg" },
|
|
527
552
|
];
|
|
@@ -529,21 +554,19 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
|
529
554
|
...processInParameters(parameters, inParams),
|
|
530
555
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
531
556
|
];
|
|
532
|
-
const result = await this.d2api.rpc("E.
|
|
557
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadScenarioData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
533
558
|
resolve(processOutParameters(result, outParams));
|
|
534
559
|
});
|
|
535
560
|
}
|
|
536
|
-
async
|
|
561
|
+
async LoadVectorData(parameters, callParameters = {}) {
|
|
537
562
|
return new Promise(async (resolve) => {
|
|
538
563
|
const inParams = [
|
|
539
564
|
{ type: "int", name: "id" },
|
|
540
|
-
{ type: "time", name: "from" },
|
|
541
|
-
{ type: "time", name: "to" },
|
|
542
|
-
{ type: "int", name: "step" },
|
|
543
565
|
];
|
|
544
566
|
const outParams = [
|
|
545
|
-
{ type: "record", name: "data", structName: "SD.
|
|
546
|
-
{ type: "record", name: "
|
|
567
|
+
{ type: "record", name: "data", structName: "SD.EM_EDA_Vector", structFields: ["ID_VEKTOR", "ID_SKVEKTOR", "ID_FUNKCIA", "MENO", "POPIS", "TECH_JEDNOTKY", "TYP_HODNOTY", "TYP", "DATA_OD", "DATA_DO", "AUTOR", "PRIVATE", "PRIST_PRAVA_R", "PRIST_PRAVA_W", "INTEGRAL", "ZOBRAZ_MENO", "ANO_PLATNY", "VIEW_ROUND", "EXEC_ROUND", "VIEW_DEC_PL", "EXEC_DEC_PL", "USER_CH", "MENOEX", "ID_TABLESPACE", "DATA_OFFSET", "TIME_ZONE", "VERSIONED_SINCE", "ARCHIVE_NAME", "ARCHIVE_ROW", "ARCHIVE_COL", "LOG_ACCESS", "STATUS_TEXT", "ID_MASTER_ENTITY", "INTERVAL_STABLE", "PERIOD_BEGIN_TIME", "PERIOD_STEP_BASE", "PERIOD_STEP_COUNT", "ID_VALIDATOR"] },
|
|
568
|
+
{ type: "record", name: "dataEx", structName: "SD.EM_EDA_VectorEx", structFields: ["ID_VEKTOR", "DATE_IN", "DATE_CH"] },
|
|
569
|
+
{ type: "record", name: "dataFunction", structName: "SD.EM_EDA_Function", structFields: ["ID_VEKTOR", "TYP", "PERIODA", "POSUN", "PREPOCIT", "PREDV_OD", "PREDV_DO", "PRECALC_RQ"] },
|
|
547
570
|
{ type: "bool", name: "isOk" },
|
|
548
571
|
{ type: "text", name: "errorMsg" },
|
|
549
572
|
];
|
|
@@ -551,7 +574,25 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
|
551
574
|
...processInParameters(parameters, inParams),
|
|
552
575
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
553
576
|
];
|
|
554
|
-
const result = await this.d2api.rpc("E.
|
|
577
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
578
|
+
resolve(processOutParameters(result, outParams));
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
async SetDescriptiveVectorData(parameters, callParameters = {}) {
|
|
582
|
+
return new Promise(async (resolve) => {
|
|
583
|
+
const inParams = [
|
|
584
|
+
{ type: "int", name: "id" },
|
|
585
|
+
{ type: "record", name: "data", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
|
|
586
|
+
];
|
|
587
|
+
const outParams = [
|
|
588
|
+
{ type: "bool", name: "isOk" },
|
|
589
|
+
{ type: "text", name: "errorMsg" },
|
|
590
|
+
];
|
|
591
|
+
const processedParams = [
|
|
592
|
+
...processInParameters(parameters, inParams),
|
|
593
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
594
|
+
];
|
|
595
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "SetDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
555
596
|
resolve(processOutParameters(result, outParams));
|
|
556
597
|
});
|
|
557
598
|
}
|