d2aura 26.0.14 → 26.0.16
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 +7 -3
- package/api/eda/edaManagerApi.js +28 -2
- package/api/eda/edaManagerApi.js.map +1 -1
- package/api/eda/generated/events.d.ts +93 -62
- package/api/eda/generated/events.js +146 -88
- package/api/eda/generated/events.js.map +1 -1
- package/api/eda/generated/structures.d.ts +99 -86
- package/api/eda/generated/structures.js.map +1 -1
- package/api/types/advancedFilter.d.ts +3 -0
- package/api/types/advancedFilter.js.map +1 -1
- package/api/webPush/webPushApi.js.map +1 -1
- package/api/webPush/webPushUtils.js.map +1 -1
- package/core/i18n/d2aura.en.json +14 -0
- package/core/i18n/d2aura.sk.json +62 -0
- package/coreui/abstractListPanel.d.ts +2 -1
- package/coreui/abstractListPanel.js +5 -1
- package/coreui/abstractListPanel.js.map +1 -1
- package/coreui/components/advancedFilter/advancedFilterButton.d.ts +2 -2
- package/coreui/components/advancedFilter/advancedFilterButton.js.map +1 -1
- package/coreui/components/advancedFilter/advancedFilteredGrid.d.ts +3 -2
- package/coreui/components/advancedFilter/advancedFilteredGrid.js +9 -1
- package/coreui/components/advancedFilter/advancedFilteredGrid.js.map +1 -1
- package/coreui/components/advancedFilter/conditionList/advancedFilterConditionDetailPanel.d.ts +2 -2
- package/coreui/components/advancedFilter/conditionList/advancedFilterConditionDetailPanel.js +1 -1
- package/coreui/components/advancedFilter/conditionList/advancedFilterConditionDetailPanel.js.map +1 -1
- package/coreui/components/advancedFilter/conditionList/advancedFilterConditionListModalDialog.d.ts +2 -2
- package/coreui/components/advancedFilter/conditionList/advancedFilterConditionListModalDialog.js.map +1 -1
- package/coreui/components/advancedFilter/conditionList/advancedFilterConditionListPanel.d.ts +2 -2
- package/coreui/components/advancedFilter/conditionList/advancedFilterConditionListPanel.js +10 -2
- package/coreui/components/advancedFilter/conditionList/advancedFilterConditionListPanel.js.map +1 -1
- package/coreui/components/d2Chart/d2ChartAdvancedZoom.d.ts +25 -0
- package/coreui/components/d2Chart/d2ChartAdvancedZoom.js +197 -0
- package/coreui/components/d2Chart/d2ChartAdvancedZoom.js.map +1 -0
- package/coreui/components/d2Chart/d2ChartPanel.d.ts +2 -0
- package/coreui/components/d2Chart/d2ChartPanel.js +9 -2
- package/coreui/components/d2Chart/d2ChartPanel.js.map +1 -1
- package/coreui/components/d2Chart/d2ChartToolboxPanel.d.ts +1 -0
- package/coreui/components/d2Chart/d2ChartToolboxPanel.js +2 -2
- package/coreui/components/d2Chart/d2ChartToolboxPanel.js.map +1 -1
- package/coreui/components/edaManager/abstract/edaManagerAbstractPanel.js +1 -1
- package/coreui/components/edaManager/abstract/edaManagerAbstractPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaChartViewer.js +23 -19
- package/coreui/components/edaManagerComponent/components/edaChartViewer.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js +1 -1
- package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js +15 -18
- package/coreui/components/edaManagerComponent/components/edaGraphPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.d.ts +11 -3
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js +31 -24
- package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js +116 -95
- package/coreui/components/edaManagerComponent/components/edaTablePanel.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaTreeView.d.ts +5 -0
- package/coreui/components/edaManagerComponent/components/edaTreeView.js +189 -60
- package/coreui/components/edaManagerComponent/components/edaTreeView.js.map +1 -1
- package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.js +1 -1
- 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 +13 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.js +15 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.d.ts +1 -0
- 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.js +31 -38
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/sharedSampleRangeContext.d.ts +6 -1
- package/coreui/components/edaManagerComponent/context/sharedSampleRangeContext.js +8 -1
- package/coreui/components/edaManagerComponent/context/sharedSampleRangeContext.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/useEdaActions.d.ts +5 -3
- package/coreui/components/edaManagerComponent/context/useEdaActions.js +21 -7
- package/coreui/components/edaManagerComponent/context/useEdaActions.js.map +1 -1
- 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/{components → dialogs}/edaTableEditorDialog.js +1 -1
- package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.js.map +1 -0
- package/coreui/components/edaManagerComponent/{components → dialogs}/exportDialog.d.ts +2 -2
- package/coreui/components/edaManagerComponent/{components → dialogs}/exportDialog.js +7 -8
- 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.js +21 -7
- package/coreui/components/edaManagerComponent/edaDetail.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaNavigator.d.ts +2 -0
- package/coreui/components/edaManagerComponent/edaNavigator.js +4 -4
- package/coreui/components/edaManagerComponent/edaNavigator.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaSelect.d.ts +2 -0
- package/coreui/components/edaManagerComponent/edaSelect.js +13 -13
- 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 +1 -1
- package/coreui/components/edaManagerComponent/utils/export.js +20 -23
- package/coreui/components/edaManagerComponent/utils/export.js.map +1 -1
- package/coreui/components/select/abstractMultiSelect.d.ts +32 -0
- package/coreui/components/select/abstractMultiSelect.js +126 -0
- package/coreui/components/select/abstractMultiSelect.js.map +1 -0
- package/coreui/components/select/abstractSelectModalDialog.d.ts +5 -0
- package/coreui/components/select/abstractSelectModalDialog.js +45 -5
- package/coreui/components/select/abstractSelectModalDialog.js.map +1 -1
- 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/d2configuration/edaManager/{DB.EM_EDA_DescriptiveVector.xml → DB.EM_EDA_VectorScenario.xml} +10 -10
- package/d2configuration/edaManager/E.EM_DETAIL_IMPL.xml +4 -4
- package/d2configuration/edaManager/E.EM_DETAIL_UNIT.xml +35 -15
- package/d2configuration/edaManager/E.EM_NAVIGATOR_IMPL.xml +13 -5
- package/d2configuration/edaManager/E.EM_NAVIGATOR_SQL.xml +12 -1
- package/d2configuration/edaManager/E.EM_NAVIGATOR_UNIT.xml +113 -5
- package/d2configuration/edaManager/E.EM_VECTOR_IMPL.xml +11 -1
- package/d2configuration/edaManager/E.EM_VECTOR_UNIT.xml +25 -1
- package/d2configuration/edaManager/{SD.EM_EDA_StatVectorRec_V1.xml → SD.EM_EDA_VectorScenario.xml} +13 -36
- package/package.json +2 -2
- package/coreui/components/edaManagerComponent/components/edaTableEditorDialog.js.map +0 -1
- package/coreui/components/edaManagerComponent/components/exportDialog.js.map +0 -1
- package/d2configuration/edaManager/SD.EM_EDA_DescriptiveVector.xml +0 -179
- package/d2configuration/edaManager/SD.EM_EDA_InsertValuesToVector_V1.xml +0 -227
- package/d2configuration/edaManager/SD.EM_EDA_ReadValuesFromVector_V1.xml +0 -178
- package/d2configuration/edaManager/SD.EM_EDA_VectorValues.xml +0 -58
- /package/coreui/components/edaManagerComponent/{components → dialogs}/edaTableEditorDialog.d.ts +0 -0
|
@@ -75,6 +75,119 @@ function processOutParameters(parameters, fields) {
|
|
|
75
75
|
})
|
|
76
76
|
.filter(([_, value]) => value !== undefined));
|
|
77
77
|
}
|
|
78
|
+
export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
79
|
+
async LoadCalcVectorData(parameters, callParameters = {}) {
|
|
80
|
+
return new Promise(async (resolve) => {
|
|
81
|
+
const inParams = [
|
|
82
|
+
{ type: "int", name: "id" },
|
|
83
|
+
];
|
|
84
|
+
const outParams = [
|
|
85
|
+
{ type: "record", name: "data", structName: "SD.EM_EDA_FunctionPrescription", structFields: ["ID_VEKTOR", "POPIS", "PLATNOST_OD", "PLATNOST_DO"] },
|
|
86
|
+
{ type: "text", name: "prescription" },
|
|
87
|
+
{ type: "bool", name: "isOk" },
|
|
88
|
+
{ type: "text", name: "errorMsg" },
|
|
89
|
+
];
|
|
90
|
+
const processedParams = [
|
|
91
|
+
...processInParameters(parameters, inParams),
|
|
92
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
93
|
+
];
|
|
94
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadCalcVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
95
|
+
resolve(processOutParameters(result, outParams));
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
async LoadDescriptiveVectorData(parameters, callParameters = {}) {
|
|
99
|
+
return new Promise(async (resolve) => {
|
|
100
|
+
const inParams = [
|
|
101
|
+
{ type: "int", name: "id" },
|
|
102
|
+
];
|
|
103
|
+
const outParams = [
|
|
104
|
+
{ type: "record", name: "data", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
|
|
105
|
+
{ type: "bool", name: "isOk" },
|
|
106
|
+
{ type: "text", name: "errorMsg" },
|
|
107
|
+
];
|
|
108
|
+
const processedParams = [
|
|
109
|
+
...processInParameters(parameters, inParams),
|
|
110
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
111
|
+
];
|
|
112
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
113
|
+
resolve(processOutParameters(result, outParams));
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
async LoadGroupData(parameters, callParameters = {}) {
|
|
117
|
+
return new Promise(async (resolve) => {
|
|
118
|
+
const inParams = [
|
|
119
|
+
{ type: "int", name: "id" },
|
|
120
|
+
];
|
|
121
|
+
const outParams = [
|
|
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"] },
|
|
123
|
+
{ type: "bool", name: "isOk" },
|
|
124
|
+
{ type: "text", name: "errorMsg" },
|
|
125
|
+
];
|
|
126
|
+
const processedParams = [
|
|
127
|
+
...processInParameters(parameters, inParams),
|
|
128
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
129
|
+
];
|
|
130
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadGroupData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
131
|
+
resolve(processOutParameters(result, outParams));
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
async LoadPairVectorData(parameters, callParameters = {}) {
|
|
135
|
+
return new Promise(async (resolve) => {
|
|
136
|
+
const inParams = [
|
|
137
|
+
{ type: "int", name: "id" },
|
|
138
|
+
];
|
|
139
|
+
const outParams = [
|
|
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"] },
|
|
141
|
+
{ type: "bool", name: "isOk" },
|
|
142
|
+
{ type: "text", name: "errorMsg" },
|
|
143
|
+
];
|
|
144
|
+
const processedParams = [
|
|
145
|
+
...processInParameters(parameters, inParams),
|
|
146
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
147
|
+
];
|
|
148
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadPairVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
149
|
+
resolve(processOutParameters(result, outParams));
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
async LoadScenarioData(parameters, callParameters = {}) {
|
|
153
|
+
return new Promise(async (resolve) => {
|
|
154
|
+
const inParams = [
|
|
155
|
+
{ type: "int", name: "id" },
|
|
156
|
+
];
|
|
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"] },
|
|
159
|
+
{ type: "bool", name: "isOk" },
|
|
160
|
+
{ type: "text", name: "errorMsg" },
|
|
161
|
+
];
|
|
162
|
+
const processedParams = [
|
|
163
|
+
...processInParameters(parameters, inParams),
|
|
164
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
165
|
+
];
|
|
166
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadScenarioData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
167
|
+
resolve(processOutParameters(result, outParams));
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
async LoadVectorData(parameters, callParameters = {}) {
|
|
171
|
+
return new Promise(async (resolve) => {
|
|
172
|
+
const inParams = [
|
|
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" },
|
|
181
|
+
];
|
|
182
|
+
const processedParams = [
|
|
183
|
+
...processInParameters(parameters, inParams),
|
|
184
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
185
|
+
];
|
|
186
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
187
|
+
resolve(processOutParameters(result, outParams));
|
|
188
|
+
});
|
|
189
|
+
}
|
|
190
|
+
}
|
|
78
191
|
export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
79
192
|
async FindGroups(parameters, callParameters = {}) {
|
|
80
193
|
return new Promise(async (resolve) => {
|
|
@@ -276,13 +389,11 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
276
389
|
resolve(processOutParameters(result, outParams));
|
|
277
390
|
});
|
|
278
391
|
}
|
|
279
|
-
}
|
|
280
|
-
export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
281
|
-
async InsertValuesToVector(parameters, callParameters = {}) {
|
|
392
|
+
async IncludeVectorToGroup(parameters, callParameters = {}) {
|
|
282
393
|
return new Promise(async (resolve) => {
|
|
283
394
|
const inParams = [
|
|
284
|
-
{ type: "int", name: "
|
|
285
|
-
{ type: "
|
|
395
|
+
{ type: "int", name: "groupId" },
|
|
396
|
+
{ type: "int", name: "vectorId" },
|
|
286
397
|
];
|
|
287
398
|
const outParams = [
|
|
288
399
|
{ type: "bool", name: "isOk" },
|
|
@@ -292,20 +403,17 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
|
292
403
|
...processInParameters(parameters, inParams),
|
|
293
404
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
294
405
|
];
|
|
295
|
-
const result = await this.d2api.rpc("E.
|
|
406
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToGroup", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
296
407
|
resolve(processOutParameters(result, outParams));
|
|
297
408
|
});
|
|
298
409
|
}
|
|
299
|
-
async
|
|
410
|
+
async IncludeVectorToScenario(parameters, callParameters = {}) {
|
|
300
411
|
return new Promise(async (resolve) => {
|
|
301
412
|
const inParams = [
|
|
302
|
-
{ type: "int", name: "
|
|
303
|
-
{ type: "
|
|
304
|
-
{ type: "time", name: "to" },
|
|
305
|
-
{ type: "int", name: "step" },
|
|
413
|
+
{ type: "int", name: "scenarioId" },
|
|
414
|
+
{ type: "int", name: "vectorId" },
|
|
306
415
|
];
|
|
307
416
|
const outParams = [
|
|
308
|
-
{ type: "record", name: "data", structName: "SD.EDA_PairData", structFields: ["idx", "valX", "valY"] },
|
|
309
417
|
{ type: "bool", name: "isOk" },
|
|
310
418
|
{ type: "text", name: "errorMsg" },
|
|
311
419
|
];
|
|
@@ -313,29 +421,7 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
|
313
421
|
...processInParameters(parameters, inParams),
|
|
314
422
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
315
423
|
];
|
|
316
|
-
const result = await this.d2api.rpc("E.
|
|
317
|
-
resolve(processOutParameters(result, outParams));
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
async ReadValuesFromVector(parameters, callParameters = {}) {
|
|
321
|
-
return new Promise(async (resolve) => {
|
|
322
|
-
const inParams = [
|
|
323
|
-
{ type: "int", name: "id" },
|
|
324
|
-
{ type: "time", name: "from" },
|
|
325
|
-
{ type: "time", name: "to" },
|
|
326
|
-
{ type: "int", name: "step" },
|
|
327
|
-
];
|
|
328
|
-
const outParams = [
|
|
329
|
-
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
330
|
-
{ type: "record", name: "stats", structName: "SD.EM_EDA_VectorStats", structFields: ["Min", "Max", "Sum", "Avg"] },
|
|
331
|
-
{ type: "bool", name: "isOk" },
|
|
332
|
-
{ type: "text", name: "errorMsg" },
|
|
333
|
-
];
|
|
334
|
-
const processedParams = [
|
|
335
|
-
...processInParameters(parameters, inParams),
|
|
336
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
337
|
-
];
|
|
338
|
-
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
424
|
+
const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToScenario", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
339
425
|
resolve(processOutParameters(result, outParams));
|
|
340
426
|
});
|
|
341
427
|
}
|
|
@@ -385,51 +471,18 @@ export class EM_VECTOR_MANAGEREventApi extends BaseApi {
|
|
|
385
471
|
});
|
|
386
472
|
}
|
|
387
473
|
}
|
|
388
|
-
export class
|
|
389
|
-
async
|
|
390
|
-
return new Promise(async (resolve) => {
|
|
391
|
-
const inParams = [
|
|
392
|
-
{ type: "int", name: "id" },
|
|
393
|
-
];
|
|
394
|
-
const outParams = [
|
|
395
|
-
{ type: "record", name: "data", structName: "SD.EM_EDA_FunctionPrescription", structFields: ["ID_VEKTOR", "POPIS", "PLATNOST_OD", "PLATNOST_DO"] },
|
|
396
|
-
{ type: "text", name: "prescription" },
|
|
397
|
-
{ type: "bool", name: "isOk" },
|
|
398
|
-
{ type: "text", name: "errorMsg" },
|
|
399
|
-
];
|
|
400
|
-
const processedParams = [
|
|
401
|
-
...processInParameters(parameters, inParams),
|
|
402
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
403
|
-
];
|
|
404
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadCalcVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
405
|
-
resolve(processOutParameters(result, outParams));
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
|
-
async LoadDescriptiveVectorData(parameters, callParameters = {}) {
|
|
409
|
-
return new Promise(async (resolve) => {
|
|
410
|
-
const inParams = [
|
|
411
|
-
{ type: "int", name: "id" },
|
|
412
|
-
];
|
|
413
|
-
const outParams = [
|
|
414
|
-
{ type: "record", name: "data", structName: "SD.EM_EDA_DescriptiveVector", structFields: ["ID", "EDA_ID", "IDX", "TYP_PERIODY", "TIME_FROM", "TIME_TO", "HODNOTA", "HODNOTA2", "TYP_HODNOTY", "STAV", "DODATOK_ID", "VALID"] },
|
|
415
|
-
{ type: "bool", name: "isOk" },
|
|
416
|
-
{ type: "text", name: "errorMsg" },
|
|
417
|
-
];
|
|
418
|
-
const processedParams = [
|
|
419
|
-
...processInParameters(parameters, inParams),
|
|
420
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
421
|
-
];
|
|
422
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
423
|
-
resolve(processOutParameters(result, outParams));
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
async LoadGroupData(parameters, callParameters = {}) {
|
|
474
|
+
export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
475
|
+
async GetValuesForDescriptiveVector(parameters, callParameters = {}) {
|
|
427
476
|
return new Promise(async (resolve) => {
|
|
428
477
|
const inParams = [
|
|
429
|
-
{ type: "
|
|
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" },
|
|
430
483
|
];
|
|
431
484
|
const outParams = [
|
|
432
|
-
{ type: "record", name: "
|
|
485
|
+
{ type: "record", name: "values", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
433
486
|
{ type: "bool", name: "isOk" },
|
|
434
487
|
{ type: "text", name: "errorMsg" },
|
|
435
488
|
];
|
|
@@ -437,17 +490,17 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
437
490
|
...processInParameters(parameters, inParams),
|
|
438
491
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
439
492
|
];
|
|
440
|
-
const result = await this.d2api.rpc("E.
|
|
493
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "GetValuesForDescriptiveVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
441
494
|
resolve(processOutParameters(result, outParams));
|
|
442
495
|
});
|
|
443
496
|
}
|
|
444
|
-
async
|
|
497
|
+
async InsertValuesToVector(parameters, callParameters = {}) {
|
|
445
498
|
return new Promise(async (resolve) => {
|
|
446
499
|
const inParams = [
|
|
447
500
|
{ type: "int", name: "id" },
|
|
501
|
+
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
448
502
|
];
|
|
449
503
|
const outParams = [
|
|
450
|
-
{ 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"] },
|
|
451
504
|
{ type: "bool", name: "isOk" },
|
|
452
505
|
{ type: "text", name: "errorMsg" },
|
|
453
506
|
];
|
|
@@ -455,17 +508,20 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
455
508
|
...processInParameters(parameters, inParams),
|
|
456
509
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
457
510
|
];
|
|
458
|
-
const result = await this.d2api.rpc("E.
|
|
511
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "InsertValuesToVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
459
512
|
resolve(processOutParameters(result, outParams));
|
|
460
513
|
});
|
|
461
514
|
}
|
|
462
|
-
async
|
|
515
|
+
async ReadValuesFromPairVector(parameters, callParameters = {}) {
|
|
463
516
|
return new Promise(async (resolve) => {
|
|
464
517
|
const inParams = [
|
|
465
518
|
{ type: "int", name: "id" },
|
|
519
|
+
{ type: "time", name: "from" },
|
|
520
|
+
{ type: "time", name: "to" },
|
|
521
|
+
{ type: "int", name: "step" },
|
|
466
522
|
];
|
|
467
523
|
const outParams = [
|
|
468
|
-
{ type: "record", name: "data", structName: "SD.
|
|
524
|
+
{ type: "record", name: "data", structName: "SD.EDA_PairData", structFields: ["idx", "valX", "valY"] },
|
|
469
525
|
{ type: "bool", name: "isOk" },
|
|
470
526
|
{ type: "text", name: "errorMsg" },
|
|
471
527
|
];
|
|
@@ -473,19 +529,21 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
473
529
|
...processInParameters(parameters, inParams),
|
|
474
530
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
475
531
|
];
|
|
476
|
-
const result = await this.d2api.rpc("E.
|
|
532
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromPairVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
477
533
|
resolve(processOutParameters(result, outParams));
|
|
478
534
|
});
|
|
479
535
|
}
|
|
480
|
-
async
|
|
536
|
+
async ReadValuesFromVector(parameters, callParameters = {}) {
|
|
481
537
|
return new Promise(async (resolve) => {
|
|
482
538
|
const inParams = [
|
|
483
539
|
{ type: "int", name: "id" },
|
|
540
|
+
{ type: "time", name: "from" },
|
|
541
|
+
{ type: "time", name: "to" },
|
|
542
|
+
{ type: "int", name: "step" },
|
|
484
543
|
];
|
|
485
544
|
const outParams = [
|
|
486
|
-
{ type: "record", name: "data", structName: "SD.
|
|
487
|
-
{ type: "record", name: "
|
|
488
|
-
{ type: "record", name: "dataFunction", structName: "SD.EM_EDA_Function", structFields: ["ID_VEKTOR", "TYP", "PERIODA", "POSUN", "PREPOCIT", "PREDV_OD", "PREDV_DO", "PRECALC_RQ"] },
|
|
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"] },
|
|
489
547
|
{ type: "bool", name: "isOk" },
|
|
490
548
|
{ type: "text", name: "errorMsg" },
|
|
491
549
|
];
|
|
@@ -493,7 +551,7 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
|
493
551
|
...processInParameters(parameters, inParams),
|
|
494
552
|
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
495
553
|
];
|
|
496
|
-
const result = await this.d2api.rpc("E.
|
|
554
|
+
const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
497
555
|
resolve(processOutParameters(result, outParams));
|
|
498
556
|
});
|
|
499
557
|
}
|