d2aura 26.0.13 → 26.0.15
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 +54 -15
- package/api/eda/edaManagerApi.js +106 -29
- package/api/eda/edaManagerApi.js.map +1 -1
- package/api/eda/generated/events.d.ts +115 -35
- package/api/eda/generated/events.js +193 -41
- package/api/eda/generated/events.js.map +1 -1
- package/api/eda/generated/structures.d.ts +110 -33
- package/api/eda/generated/structures.js.map +1 -1
- package/core/i18n/d2aura.en.json +14 -0
- package/core/i18n/d2aura.sk.json +92 -2
- package/coreui/components/edaManager/components/detail/components/edaVectorMassChangeButton.d.ts +1 -1
- package/coreui/components/edaManager/components/detail/components/edaVectorMassChangeButton.js +2 -2
- package/coreui/components/edaManager/components/detail/components/edaVectorMassChangeButton.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaChartViewer.d.ts +14 -0
- package/coreui/components/edaManagerComponent/components/edaChartViewer.js +374 -0
- package/coreui/components/edaManagerComponent/components/edaChartViewer.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.d.ts +4 -8
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js +18 -75
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.d.ts +5 -14
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.js +80 -19
- package/coreui/components/edaManagerComponent/components/edaDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.d.ts +2 -7
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js +22 -390
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaGroupDetailPanel.d.ts +3 -14
- package/coreui/components/edaManagerComponent/components/edaGroupDetailPanel.js +54 -67
- package/coreui/components/edaManagerComponent/components/edaGroupDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaLoadingOverlay.d.ts +7 -0
- package/coreui/components/edaManagerComponent/components/edaLoadingOverlay.js +35 -0
- package/coreui/components/edaManagerComponent/components/edaLoadingOverlay.js.map +1 -0
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.d.ts +12 -18
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js +55 -51
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaScenarioDetailPanel.d.ts +3 -14
- package/coreui/components/edaManagerComponent/components/edaScenarioDetailPanel.js +67 -81
- package/coreui/components/edaManagerComponent/components/edaScenarioDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTablePanel.d.ts +2 -6
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js +188 -110
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.d.ts +2 -13
- package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js +57 -88
- package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTreeView.d.ts +9 -51
- package/coreui/components/edaManagerComponent/components/edaTreeView.js +431 -262
- package/coreui/components/edaManagerComponent/components/edaTreeView.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.d.ts +3 -21
- package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.js +160 -179
- package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/constants/actionTypes.d.ts +5 -0
- package/coreui/components/edaManagerComponent/constants/actionTypes.js +7 -0
- package/coreui/components/edaManagerComponent/constants/actionTypes.js.map +1 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.d.ts +23 -11
- package/coreui/components/edaManagerComponent/constants/edaTypes.js +15 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaConfigContext.d.ts +26 -0
- package/coreui/components/edaManagerComponent/context/edaConfigContext.js +20 -0
- package/coreui/components/edaManagerComponent/context/edaConfigContext.js.map +1 -0
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.d.ts +10 -16
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.js +8 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.d.ts +0 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js +90 -92
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/loadingContext.d.ts +1 -1
- package/coreui/components/edaManagerComponent/context/loadingContext.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/{sharedSampleRange.d.ts → sharedSampleRangeContext.d.ts} +12 -4
- package/coreui/components/edaManagerComponent/context/sharedSampleRangeContext.js +10 -0
- package/coreui/components/edaManagerComponent/context/sharedSampleRangeContext.js.map +1 -0
- package/coreui/components/edaManagerComponent/context/useEdaActions.d.ts +9 -0
- package/coreui/components/edaManagerComponent/context/useEdaActions.js +36 -0
- package/coreui/components/edaManagerComponent/context/useEdaActions.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/controlButtons.d.ts +13 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/controlButtons.js +19 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/controlButtons.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/descriptiveVectorDetailPanel.d.ts +8 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/descriptiveVectorDetailPanel.js +171 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/descriptiveVectorDetailPanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.d.ts +22 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.js +75 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/intervalInput.d.ts +12 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/intervalInput.js +52 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/intervalInput.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.d.ts +22 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.js +130 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/types.d.ts +58 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/types.js +51 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/types.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/useSharedData.d.ts +18 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/useSharedData.js +74 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/useSharedData.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/utils.d.ts +38 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/utils.js +299 -0
- package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/utils.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/edaDescriptiveVectorEditorDialog.d.ts +10 -0
- package/coreui/components/edaManagerComponent/dialogs/edaDescriptiveVectorEditorDialog.js +343 -0
- package/coreui/components/edaManagerComponent/dialogs/edaDescriptiveVectorEditorDialog.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.d.ts +12 -0
- package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.js +268 -0
- package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.d.ts +18 -0
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.js +156 -0
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/groupVectorSelection.d.ts +12 -0
- package/coreui/components/edaManagerComponent/dialogs/groupVectorSelection.js +74 -0
- package/coreui/components/edaManagerComponent/dialogs/groupVectorSelection.js.map +1 -0
- package/coreui/components/edaManagerComponent/dialogs/insertVectorDialog.d.ts +16 -0
- package/coreui/components/edaManagerComponent/dialogs/insertVectorDialog.js +32 -0
- package/coreui/components/edaManagerComponent/dialogs/insertVectorDialog.js.map +1 -0
- package/coreui/components/edaManagerComponent/edaDetail.d.ts +7 -26
- package/coreui/components/edaManagerComponent/edaDetail.js +138 -106
- package/coreui/components/edaManagerComponent/edaDetail.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaManager.d.ts +4 -11
- package/coreui/components/edaManagerComponent/edaManager.js +29 -22
- package/coreui/components/edaManagerComponent/edaManager.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaNavigator.d.ts +6 -12
- package/coreui/components/edaManagerComponent/edaNavigator.js +36 -41
- package/coreui/components/edaManagerComponent/edaNavigator.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaSelect.d.ts +4 -3
- package/coreui/components/edaManagerComponent/edaSelect.js +32 -54
- package/coreui/components/edaManagerComponent/edaSelect.js.map +1 -1
- package/coreui/components/edaManagerComponent/icons/folderRemoveOutlined.d.ts +6 -0
- package/coreui/components/edaManagerComponent/icons/folderRemoveOutlined.js +7 -0
- package/coreui/components/edaManagerComponent/icons/folderRemoveOutlined.js.map +1 -0
- package/coreui/components/edaManagerComponent/utils/export.d.ts +9 -0
- package/coreui/components/edaManagerComponent/utils/export.js +570 -0
- package/coreui/components/edaManagerComponent/utils/export.js.map +1 -0
- package/coreui/components/edaManagerComponent/utils/utils.d.ts +6 -12
- package/coreui/components/edaManagerComponent/utils/utils.js +26 -15
- package/coreui/components/edaManagerComponent/utils/utils.js.map +1 -1
- package/d2configuration/edaManager/DB.EM_EDA_FunctionPrescription.xml +65 -0
- package/d2configuration/edaManager/DB.EM_EDA_VectorScenario.xml +65 -0
- package/d2configuration/edaManager/E.EM_DETAIL_IMPL.xml +67 -1
- package/d2configuration/edaManager/E.EM_DETAIL_SQL.xml +85 -0
- package/d2configuration/edaManager/E.EM_DETAIL_UNIT.xml +143 -2
- package/d2configuration/edaManager/E.EM_NAVIGATOR_IMPL.xml +14 -6
- package/d2configuration/edaManager/E.EM_NAVIGATOR_SQL.xml +12 -1
- package/d2configuration/edaManager/E.EM_NAVIGATOR_UNIT.xml +114 -6
- package/d2configuration/edaManager/E.EM_VECTOR_IMPL.xml +30 -6
- package/d2configuration/edaManager/E.EM_VECTOR_UNIT.xml +119 -17
- package/d2configuration/edaManager/SD.EM_EDA_FunctionPrescription.xml +91 -0
- package/d2configuration/edaManager/SD.EM_EDA_PairVector.xml +454 -0
- package/d2configuration/edaManager/{SD.EM_EDA_StatVectorRec_V1.xml → SD.EM_EDA_VectorScenario.xml} +13 -36
- package/d2configuration/edaManager/{SD.EM_EDA_VectorValues.xml → SD.EM_EDA_VectorStats.xml} +39 -6
- package/d2configuration/edaManager/SD.EM_Filter_Condition.xml +1 -1
- package/package.json +5 -3
- package/coreui/components/edaManagerComponent/components/edaBasePanel.d.ts +0 -16
- package/coreui/components/edaManagerComponent/components/edaBasePanel.js +0 -85
- package/coreui/components/edaManagerComponent/components/edaBasePanel.js.map +0 -1
- package/coreui/components/edaManagerComponent/context/sharedSampleRange.js +0 -13
- package/coreui/components/edaManagerComponent/context/sharedSampleRange.js.map +0 -1
- package/d2configuration/edaManager/EDA_CancelSession.xml +0 -54
- package/d2configuration/edaManager/EDA_GetSessionId.xml +0 -54
- package/d2configuration/edaManager/EDA_ReadValuesFromVektorRec.xml +0 -54
- package/d2configuration/edaManager/EDA_StatVectorRec.xml +0 -56
- package/d2configuration/edaManager/SD.EM_EDA_ReadValuesFromVector_V1.xml +0 -168
|
@@ -76,13 +76,14 @@ function processOutParameters(parameters, fields) {
|
|
|
76
76
|
.filter(([_, value]) => value !== undefined));
|
|
77
77
|
}
|
|
78
78
|
export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
79
|
-
async
|
|
79
|
+
async LoadCalcVectorData(parameters, callParameters = {}) {
|
|
80
80
|
return new Promise(async (resolve) => {
|
|
81
81
|
const inParams = [
|
|
82
82
|
{ type: "int", name: "id" },
|
|
83
83
|
];
|
|
84
84
|
const outParams = [
|
|
85
|
-
{ type: "record", name: "data", structName: "SD.
|
|
85
|
+
{ type: "record", name: "data", structName: "SD.EM_EDA_FunctionPrescription", structFields: ["ID_VEKTOR", "POPIS", "PLATNOST_OD", "PLATNOST_DO"] },
|
|
86
|
+
{ type: "text", name: "prescription" },
|
|
86
87
|
{ type: "bool", name: "isOk" },
|
|
87
88
|
{ type: "text", name: "errorMsg" },
|
|
88
89
|
];
|
|
@@ -90,17 +91,17 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
90
91
|
...processInParameters(parameters, inParams),
|
|
91
92
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
92
93
|
];
|
|
93
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "
|
|
94
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadCalcVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
94
95
|
resolve(processOutParameters(result, outParams));
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
|
-
async
|
|
98
|
+
async LoadDescriptiveVectorData(parameters, callParameters = {}) {
|
|
98
99
|
return new Promise(async (resolve) => {
|
|
99
100
|
const inParams = [
|
|
100
101
|
{ type: "int", name: "id" },
|
|
101
102
|
];
|
|
102
103
|
const outParams = [
|
|
103
|
-
{ type: "record", name: "data", structName: "SD.
|
|
104
|
+
{ type: "record", name: "data", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
|
|
104
105
|
{ type: "bool", name: "isOk" },
|
|
105
106
|
{ type: "text", name: "errorMsg" },
|
|
106
107
|
];
|
|
@@ -108,19 +109,17 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
108
109
|
...processInParameters(parameters, inParams),
|
|
109
110
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
110
111
|
];
|
|
111
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "
|
|
112
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
112
113
|
resolve(processOutParameters(result, outParams));
|
|
113
114
|
});
|
|
114
115
|
}
|
|
115
|
-
async
|
|
116
|
+
async LoadGroupData(parameters, callParameters = {}) {
|
|
116
117
|
return new Promise(async (resolve) => {
|
|
117
118
|
const inParams = [
|
|
118
119
|
{ type: "int", name: "id" },
|
|
119
120
|
];
|
|
120
121
|
const outParams = [
|
|
121
|
-
{ type: "record", name: "data", structName: "SD.
|
|
122
|
-
{ type: "record", name: "dataEx", structName: "SD.EM_EDA_VectorEx", structFields: ["ID_VEKTOR", "DATE_IN", "DATE_CH"] },
|
|
123
|
-
{ type: "record", name: "dataFunction", structName: "SD.EM_EDA_Function", structFields: ["ID_VEKTOR", "TYP", "PERIODA", "POSUN", "PREPOCIT", "PREDV_OD", "PREDV_DO", "PRECALC_RQ"] },
|
|
122
|
+
{ 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"] },
|
|
124
123
|
{ type: "bool", name: "isOk" },
|
|
125
124
|
{ type: "text", name: "errorMsg" },
|
|
126
125
|
];
|
|
@@ -128,23 +127,17 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
128
127
|
...processInParameters(parameters, inParams),
|
|
129
128
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
130
129
|
];
|
|
131
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "
|
|
130
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadGroupData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
132
131
|
resolve(processOutParameters(result, outParams));
|
|
133
132
|
});
|
|
134
133
|
}
|
|
135
|
-
}
|
|
136
|
-
export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
137
|
-
async ReadValuesFromVector(parameters, callParameters = {}) {
|
|
134
|
+
async LoadPairVectorData(parameters, callParameters = {}) {
|
|
138
135
|
return new Promise(async (resolve) => {
|
|
139
136
|
const inParams = [
|
|
140
137
|
{ type: "int", name: "id" },
|
|
141
|
-
{ type: "time", name: "from" },
|
|
142
|
-
{ type: "time", name: "to" },
|
|
143
|
-
{ type: "int", name: "step" },
|
|
144
138
|
];
|
|
145
139
|
const outParams = [
|
|
146
|
-
{ type: "record", name: "data", structName: "SD.
|
|
147
|
-
{ type: "record", name: "stats", structName: "SD.EM_EDA_VectorStats", structFields: ["Min", "Max", "Sum", "Avg"] },
|
|
140
|
+
{ 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"] },
|
|
148
141
|
{ type: "bool", name: "isOk" },
|
|
149
142
|
{ type: "text", name: "errorMsg" },
|
|
150
143
|
];
|
|
@@ -152,30 +145,17 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
|
152
145
|
...processInParameters(parameters, inParams),
|
|
153
146
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
154
147
|
];
|
|
155
|
-
const result = await this.d2api.rpc("E.
|
|
148
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadPairVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
156
149
|
resolve(processOutParameters(result, outParams));
|
|
157
150
|
});
|
|
158
151
|
}
|
|
159
|
-
}
|
|
160
|
-
export class EM_VECTOR_MANAGEREventApi extends BaseApi {
|
|
161
|
-
async InsertSession(parameters, callParameters = {}) {
|
|
152
|
+
async LoadScenarioData(parameters, callParameters = {}) {
|
|
162
153
|
return new Promise(async (resolve) => {
|
|
163
154
|
const inParams = [
|
|
164
|
-
{ type: "int", name: "
|
|
165
|
-
];
|
|
166
|
-
const outParams = [];
|
|
167
|
-
const processedParams = [
|
|
168
|
-
...processInParameters(parameters, inParams),
|
|
169
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
155
|
+
{ type: "int", name: "id" },
|
|
170
156
|
];
|
|
171
|
-
const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "InsertSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
172
|
-
resolve(processOutParameters(result, outParams));
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
async KillEdaSession(parameters, callParameters = {}) {
|
|
176
|
-
return new Promise(async (resolve) => {
|
|
177
|
-
const inParams = [];
|
|
178
157
|
const outParams = [
|
|
158
|
+
{ 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"] },
|
|
179
159
|
{ type: "bool", name: "isOk" },
|
|
180
160
|
{ type: "text", name: "errorMsg" },
|
|
181
161
|
];
|
|
@@ -183,21 +163,27 @@ export class EM_VECTOR_MANAGEREventApi extends BaseApi {
|
|
|
183
163
|
...processInParameters(parameters, inParams),
|
|
184
164
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
185
165
|
];
|
|
186
|
-
const result = await this.d2api.rpc("E.
|
|
166
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadScenarioData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
187
167
|
resolve(processOutParameters(result, outParams));
|
|
188
168
|
});
|
|
189
169
|
}
|
|
190
|
-
async
|
|
170
|
+
async LoadVectorData(parameters, callParameters = {}) {
|
|
191
171
|
return new Promise(async (resolve) => {
|
|
192
172
|
const inParams = [
|
|
193
|
-
{ type: "int", name: "
|
|
173
|
+
{ type: "int", name: "id" },
|
|
174
|
+
];
|
|
175
|
+
const outParams = [
|
|
176
|
+
{ 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"] },
|
|
177
|
+
{ type: "record", name: "dataEx", structName: "SD.EM_EDA_VectorEx", structFields: ["ID_VEKTOR", "DATE_IN", "DATE_CH"] },
|
|
178
|
+
{ type: "record", name: "dataFunction", structName: "SD.EM_EDA_Function", structFields: ["ID_VEKTOR", "TYP", "PERIODA", "POSUN", "PREPOCIT", "PREDV_OD", "PREDV_DO", "PRECALC_RQ"] },
|
|
179
|
+
{ type: "bool", name: "isOk" },
|
|
180
|
+
{ type: "text", name: "errorMsg" },
|
|
194
181
|
];
|
|
195
|
-
const outParams = [];
|
|
196
182
|
const processedParams = [
|
|
197
183
|
...processInParameters(parameters, inParams),
|
|
198
184
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
199
185
|
];
|
|
200
|
-
const result = await this.d2api.rpc("E.
|
|
186
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
201
187
|
resolve(processOutParameters(result, outParams));
|
|
202
188
|
});
|
|
203
189
|
}
|
|
@@ -403,5 +389,171 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
403
389
|
resolve(processOutParameters(result, outParams));
|
|
404
390
|
});
|
|
405
391
|
}
|
|
392
|
+
async IncludeVectorToGroup(parameters, callParameters = {}) {
|
|
393
|
+
return new Promise(async (resolve) => {
|
|
394
|
+
const inParams = [
|
|
395
|
+
{ type: "int", name: "groupId" },
|
|
396
|
+
{ type: "int", name: "vectorId" },
|
|
397
|
+
];
|
|
398
|
+
const outParams = [
|
|
399
|
+
{ type: "bool", name: "isOk" },
|
|
400
|
+
{ type: "text", name: "errorMsg" },
|
|
401
|
+
];
|
|
402
|
+
const processedParams = [
|
|
403
|
+
...processInParameters(parameters, inParams),
|
|
404
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
405
|
+
];
|
|
406
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToGroup", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
407
|
+
resolve(processOutParameters(result, outParams));
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
async IncludeVectorToScenario(parameters, callParameters = {}) {
|
|
411
|
+
return new Promise(async (resolve) => {
|
|
412
|
+
const inParams = [
|
|
413
|
+
{ type: "int", name: "scenarioId" },
|
|
414
|
+
{ type: "int", name: "vectorId" },
|
|
415
|
+
];
|
|
416
|
+
const outParams = [
|
|
417
|
+
{ type: "bool", name: "isOk" },
|
|
418
|
+
{ type: "text", name: "errorMsg" },
|
|
419
|
+
];
|
|
420
|
+
const processedParams = [
|
|
421
|
+
...processInParameters(parameters, inParams),
|
|
422
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
423
|
+
];
|
|
424
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToScenario", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
425
|
+
resolve(processOutParameters(result, outParams));
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
export class EM_VECTOR_MANAGEREventApi extends BaseApi {
|
|
430
|
+
async InsertSession(parameters, callParameters = {}) {
|
|
431
|
+
return new Promise(async (resolve) => {
|
|
432
|
+
const inParams = [
|
|
433
|
+
{ type: "int", name: "processId" },
|
|
434
|
+
];
|
|
435
|
+
const outParams = [];
|
|
436
|
+
const processedParams = [
|
|
437
|
+
...processInParameters(parameters, inParams),
|
|
438
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
439
|
+
];
|
|
440
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "InsertSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
441
|
+
resolve(processOutParameters(result, outParams));
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
async KillEdaSession(parameters, callParameters = {}) {
|
|
445
|
+
return new Promise(async (resolve) => {
|
|
446
|
+
const inParams = [];
|
|
447
|
+
const outParams = [
|
|
448
|
+
{ type: "bool", name: "isOk" },
|
|
449
|
+
{ type: "text", name: "errorMsg" },
|
|
450
|
+
];
|
|
451
|
+
const processedParams = [
|
|
452
|
+
...processInParameters(parameters, inParams),
|
|
453
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
454
|
+
];
|
|
455
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "KillEdaSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
456
|
+
resolve(processOutParameters(result, outParams));
|
|
457
|
+
});
|
|
458
|
+
}
|
|
459
|
+
async RemoveSession(parameters, callParameters = {}) {
|
|
460
|
+
return new Promise(async (resolve) => {
|
|
461
|
+
const inParams = [
|
|
462
|
+
{ type: "int", name: "processId" },
|
|
463
|
+
];
|
|
464
|
+
const outParams = [];
|
|
465
|
+
const processedParams = [
|
|
466
|
+
...processInParameters(parameters, inParams),
|
|
467
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
468
|
+
];
|
|
469
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "RemoveSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
470
|
+
resolve(processOutParameters(result, outParams));
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
475
|
+
async GetValuesForDescriptiveVector(parameters, callParameters = {}) {
|
|
476
|
+
return new Promise(async (resolve) => {
|
|
477
|
+
const inParams = [
|
|
478
|
+
{ type: "record", name: "definition", structName: "SD.EDA_DescriptiveData2", structFields: ["id", "parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
|
|
479
|
+
{ type: "time", name: "from" },
|
|
480
|
+
{ type: "time", name: "to" },
|
|
481
|
+
{ type: "int", name: "step" },
|
|
482
|
+
{ type: "int", name: "integral" },
|
|
483
|
+
];
|
|
484
|
+
const outParams = [
|
|
485
|
+
{ type: "record", name: "values", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
486
|
+
{ type: "bool", name: "isOk" },
|
|
487
|
+
{ type: "text", name: "errorMsg" },
|
|
488
|
+
];
|
|
489
|
+
const processedParams = [
|
|
490
|
+
...processInParameters(parameters, inParams),
|
|
491
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
492
|
+
];
|
|
493
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "GetValuesForDescriptiveVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
494
|
+
resolve(processOutParameters(result, outParams));
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
async InsertValuesToVector(parameters, callParameters = {}) {
|
|
498
|
+
return new Promise(async (resolve) => {
|
|
499
|
+
const inParams = [
|
|
500
|
+
{ type: "int", name: "id" },
|
|
501
|
+
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
502
|
+
];
|
|
503
|
+
const outParams = [
|
|
504
|
+
{ type: "bool", name: "isOk" },
|
|
505
|
+
{ type: "text", name: "errorMsg" },
|
|
506
|
+
];
|
|
507
|
+
const processedParams = [
|
|
508
|
+
...processInParameters(parameters, inParams),
|
|
509
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
510
|
+
];
|
|
511
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "InsertValuesToVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
512
|
+
resolve(processOutParameters(result, outParams));
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
async ReadValuesFromPairVector(parameters, callParameters = {}) {
|
|
516
|
+
return new Promise(async (resolve) => {
|
|
517
|
+
const inParams = [
|
|
518
|
+
{ type: "int", name: "id" },
|
|
519
|
+
{ type: "time", name: "from" },
|
|
520
|
+
{ type: "time", name: "to" },
|
|
521
|
+
{ type: "int", name: "step" },
|
|
522
|
+
];
|
|
523
|
+
const outParams = [
|
|
524
|
+
{ type: "record", name: "data", structName: "SD.EDA_PairData", structFields: ["idx", "valX", "valY"] },
|
|
525
|
+
{ type: "bool", name: "isOk" },
|
|
526
|
+
{ type: "text", name: "errorMsg" },
|
|
527
|
+
];
|
|
528
|
+
const processedParams = [
|
|
529
|
+
...processInParameters(parameters, inParams),
|
|
530
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
531
|
+
];
|
|
532
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromPairVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
533
|
+
resolve(processOutParameters(result, outParams));
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
async ReadValuesFromVector(parameters, callParameters = {}) {
|
|
537
|
+
return new Promise(async (resolve) => {
|
|
538
|
+
const inParams = [
|
|
539
|
+
{ type: "int", name: "id" },
|
|
540
|
+
{ type: "time", name: "from" },
|
|
541
|
+
{ type: "time", name: "to" },
|
|
542
|
+
{ type: "int", name: "step" },
|
|
543
|
+
];
|
|
544
|
+
const outParams = [
|
|
545
|
+
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
546
|
+
{ type: "record", name: "stats", structName: "SD.EM_EDA_VectorStats", structFields: ["Min", "Max", "Sum", "Avg"] },
|
|
547
|
+
{ type: "bool", name: "isOk" },
|
|
548
|
+
{ type: "text", name: "errorMsg" },
|
|
549
|
+
];
|
|
550
|
+
const processedParams = [
|
|
551
|
+
...processInParameters(parameters, inParams),
|
|
552
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
553
|
+
];
|
|
554
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
555
|
+
resolve(processOutParameters(result, outParams));
|
|
556
|
+
});
|
|
557
|
+
}
|
|
406
558
|
}
|
|
407
559
|
//# sourceMappingURL=events.js.map
|