d2aura 26.0.17 → 26.0.19

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.
Files changed (84) hide show
  1. package/api/abstractApi.d.ts +1 -1
  2. package/api/abstractApi.js +2 -2
  3. package/api/abstractApi.js.map +1 -1
  4. package/api/eda/edaManagerApi.d.ts +15 -10
  5. package/api/eda/edaManagerApi.js +78 -11
  6. package/api/eda/edaManagerApi.js.map +1 -1
  7. package/api/eda/generated/events.d.ts +108 -73
  8. package/api/eda/generated/events.js +202 -140
  9. package/api/eda/generated/events.js.map +1 -1
  10. package/api/eda/generated/structures.d.ts +118 -89
  11. package/api/eda/generated/structures.js.map +1 -1
  12. package/api/webAuthn/webAuthnManageApi.js +2 -2
  13. package/api/webAuthn/webAuthnManageApi.js.map +1 -1
  14. package/core/i18n/d2aura.sk.json +6 -0
  15. package/coreui/components/edaManagerComponent/components/edaChartViewer.js +11 -11
  16. package/coreui/components/edaManagerComponent/components/edaChartViewer.js.map +1 -1
  17. package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js +2 -2
  18. package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js.map +1 -1
  19. package/coreui/components/edaManagerComponent/components/edaDetailPanel.js +1 -1
  20. package/coreui/components/edaManagerComponent/components/edaDetailPanel.js.map +1 -1
  21. package/coreui/components/edaManagerComponent/components/edaGraphPanel.js +1 -1
  22. package/coreui/components/edaManagerComponent/components/edaGraphPanel.js.map +1 -1
  23. package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js +3 -2
  24. package/coreui/components/edaManagerComponent/components/edaSampleRangePickerPanel.js.map +1 -1
  25. package/coreui/components/edaManagerComponent/components/edaTablePanel.js +5 -5
  26. package/coreui/components/edaManagerComponent/components/edaTablePanel.js.map +1 -1
  27. package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js +3 -0
  28. package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js.map +1 -1
  29. package/coreui/components/edaManagerComponent/components/edaTreeView.d.ts +1 -0
  30. package/coreui/components/edaManagerComponent/components/edaTreeView.js +82 -33
  31. package/coreui/components/edaManagerComponent/components/edaTreeView.js.map +1 -1
  32. package/coreui/components/edaManagerComponent/constants/edaTypes.d.ts +11 -1
  33. package/coreui/components/edaManagerComponent/constants/edaTypes.js +6 -0
  34. package/coreui/components/edaManagerComponent/constants/edaTypes.js.map +1 -1
  35. package/coreui/components/edaManagerComponent/context/edaConfigContext.d.ts +5 -4
  36. package/coreui/components/edaManagerComponent/context/edaConfigContext.js +4 -1
  37. package/coreui/components/edaManagerComponent/context/edaConfigContext.js.map +1 -1
  38. package/coreui/components/edaManagerComponent/context/edaVectorDataContext.d.ts +4 -1
  39. package/coreui/components/edaManagerComponent/context/edaVectorDataContext.js.map +1 -1
  40. package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js +81 -57
  41. package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js.map +1 -1
  42. package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.js +1 -1
  43. package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/graphPanel.js.map +1 -1
  44. package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.js +5 -5
  45. package/coreui/components/edaManagerComponent/dialogs/descriptiveVectorDialog/tablePanel.js.map +1 -1
  46. package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.js +4 -2
  47. package/coreui/components/edaManagerComponent/dialogs/edaTableEditorDialog.js.map +1 -1
  48. package/coreui/components/edaManagerComponent/dialogs/exportDialog.js +2 -2
  49. package/coreui/components/edaManagerComponent/dialogs/exportDialog.js.map +1 -1
  50. package/coreui/components/edaManagerComponent/dialogs/importDialog.js +111 -12
  51. package/coreui/components/edaManagerComponent/dialogs/importDialog.js.map +1 -1
  52. package/coreui/components/edaManagerComponent/dialogs/importExport/export.js +48 -28
  53. package/coreui/components/edaManagerComponent/dialogs/importExport/export.js.map +1 -1
  54. package/coreui/components/edaManagerComponent/dialogs/importExport/import.d.ts +11 -2
  55. package/coreui/components/edaManagerComponent/dialogs/importExport/import.js +26 -2
  56. package/coreui/components/edaManagerComponent/dialogs/importExport/import.js.map +1 -1
  57. package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.d.ts +8 -1
  58. package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.js +9 -4
  59. package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.js.map +1 -1
  60. package/coreui/components/edaManagerComponent/dialogs/vectorSelectionDialog.js +4 -5
  61. package/coreui/components/edaManagerComponent/dialogs/vectorSelectionDialog.js.map +1 -1
  62. package/coreui/components/edaManagerComponent/edaDetail.d.ts +2 -3
  63. package/coreui/components/edaManagerComponent/edaDetail.js +3 -1
  64. package/coreui/components/edaManagerComponent/edaDetail.js.map +1 -1
  65. package/coreui/components/edaManagerComponent/edaManager.d.ts +1 -1
  66. package/coreui/components/edaManagerComponent/edaManager.js +1 -1
  67. package/coreui/components/edaManagerComponent/edaManager.js.map +1 -1
  68. package/coreui/components/edaManagerComponent/edaNavigator.d.ts +1 -0
  69. package/coreui/components/edaManagerComponent/edaNavigator.js +4 -4
  70. package/coreui/components/edaManagerComponent/edaNavigator.js.map +1 -1
  71. package/coreui/components/edaManagerComponent/utils/utils.d.ts +2 -3
  72. package/coreui/components/edaManagerComponent/utils/utils.js +4 -5
  73. package/coreui/components/edaManagerComponent/utils/utils.js.map +1 -1
  74. package/d2configuration/edaManager/E.EM_DETAIL_IMPL.xml +22 -0
  75. package/d2configuration/edaManager/E.EM_DETAIL_UNIT.xml +34 -0
  76. package/d2configuration/edaManager/E.EM_NAVIGATOR_IMPL.xml +8 -8
  77. package/d2configuration/edaManager/E.EM_NAVIGATOR_SQL.xml +8 -42
  78. package/d2configuration/edaManager/E.EM_NAVIGATOR_UNIT.xml +224 -79
  79. package/d2configuration/edaManager/E.EM_VECTOR_IMPL.xml +18 -2
  80. package/d2configuration/edaManager/E.EM_VECTOR_UNIT.xml +380 -19
  81. package/d2configuration/edaManager/SD.EM_EDA_CalcFunction_Params_V2.xml +245 -0
  82. package/d2configuration/edaManager/SD.EM_EDA_ReadValuesFromVector_Params_V2.xml +159 -0
  83. package/d2configuration/edaManager/SD.EM_Tree_Item.xml +22 -0
  84. package/package.json +3 -3
@@ -75,15 +75,14 @@ function processOutParameters(parameters, fields) {
75
75
  })
76
76
  .filter(([_, value]) => value !== undefined));
77
77
  }
78
- export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
79
- async FindGroups(parameters, callParameters = {}) {
78
+ export class EM_DETAIL_IMPLEventApi extends BaseApi {
79
+ async ImportGroupData(parameters, callParameters = {}) {
80
80
  return new Promise(async (resolve) => {
81
81
  const inParams = [
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" },
82
+ { type: "bool", name: "defaultIdValue" },
83
+ { 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"] },
84
84
  ];
85
85
  const outParams = [
86
- { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
87
86
  { type: "bool", name: "isOk" },
88
87
  { type: "text", name: "errorMsg" },
89
88
  ];
@@ -91,18 +90,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
91
90
  ...processInParameters(parameters, inParams),
92
91
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
93
92
  ];
94
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindGroups", ...processedParams).callAndGet(undefined, callParameters.timeout);
93
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "ImportGroupData", ...processedParams).callAndGet(undefined, callParameters.timeout);
95
94
  resolve(processOutParameters(result, outParams));
96
95
  });
97
96
  }
98
- async FindScenarios(parameters, callParameters = {}) {
97
+ async ImportScenarioData(parameters, callParameters = {}) {
99
98
  return new Promise(async (resolve) => {
100
99
  const inParams = [
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" },
100
+ { type: "bool", name: "defaultIdValue" },
101
+ { 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"] },
103
102
  ];
104
103
  const outParams = [
105
- { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
106
104
  { type: "bool", name: "isOk" },
107
105
  { type: "text", name: "errorMsg" },
108
106
  ];
@@ -110,18 +108,23 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
110
108
  ...processInParameters(parameters, inParams),
111
109
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
112
110
  ];
113
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindScenarios", ...processedParams).callAndGet(undefined, callParameters.timeout);
111
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "ImportScenarioData", ...processedParams).callAndGet(undefined, callParameters.timeout);
114
112
  resolve(processOutParameters(result, outParams));
115
113
  });
116
114
  }
117
- async FindVectors(parameters, callParameters = {}) {
115
+ async ImportVectorData(parameters, callParameters = {}) {
118
116
  return new Promise(async (resolve) => {
119
117
  const inParams = [
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" },
118
+ { type: "bool", name: "defaultIdValue" },
119
+ { type: "bool", name: "ignoreTimeZones" },
120
+ { type: "bool", name: "replaceCodesInPrescription" },
121
+ { type: "text", name: "prescription" },
122
+ { type: "record", name: "vectorData", 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"] },
123
+ { type: "record", name: "pairData", 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"] },
124
+ { type: "record", name: "descData", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
125
+ { type: "record", name: "values", structName: "SD.EDA_VectorData", structFields: ["val"] },
122
126
  ];
123
127
  const outParams = [
124
- { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
125
128
  { type: "bool", name: "isOk" },
126
129
  { type: "text", name: "errorMsg" },
127
130
  ];
@@ -129,17 +132,18 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
129
132
  ...processInParameters(parameters, inParams),
130
133
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
131
134
  ];
132
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
135
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "ImportVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
133
136
  resolve(processOutParameters(result, outParams));
134
137
  });
135
138
  }
136
- async GetGroup(parameters, callParameters = {}) {
139
+ async LoadCalcVectorData(parameters, callParameters = {}) {
137
140
  return new Promise(async (resolve) => {
138
141
  const inParams = [
139
142
  { type: "int", name: "id" },
140
143
  ];
141
144
  const outParams = [
142
- { type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
145
+ { type: "record", name: "data", structName: "SD.EM_EDA_FunctionPrescription", structFields: ["ID_VEKTOR", "POPIS", "PLATNOST_OD", "PLATNOST_DO"] },
146
+ { type: "text", name: "prescription" },
143
147
  { type: "bool", name: "isOk" },
144
148
  { type: "text", name: "errorMsg" },
145
149
  ];
@@ -147,21 +151,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
147
151
  ...processInParameters(parameters, inParams),
148
152
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
149
153
  ];
150
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroup", ...processedParams).callAndGet(undefined, callParameters.timeout);
154
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadCalcVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
151
155
  resolve(processOutParameters(result, outParams));
152
156
  });
153
157
  }
154
- async GetGroupChildren(parameters, callParameters = {}) {
158
+ async LoadDescriptiveVectorData(parameters, callParameters = {}) {
155
159
  return new Promise(async (resolve) => {
156
160
  const inParams = [
157
161
  { type: "int", name: "id" },
158
- { type: "bool", name: "showOmitted" },
159
- { type: "int", name: "count" },
160
- { type: "int", name: "offset" },
161
162
  ];
162
163
  const outParams = [
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" },
164
+ { type: "record", name: "data", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
165
165
  { type: "bool", name: "isOk" },
166
166
  { type: "text", name: "errorMsg" },
167
167
  ];
@@ -169,21 +169,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
169
169
  ...processInParameters(parameters, inParams),
170
170
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
171
171
  ];
172
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
172
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
173
173
  resolve(processOutParameters(result, outParams));
174
174
  });
175
175
  }
176
- async GetGroupVectors(parameters, callParameters = {}) {
176
+ async LoadGroupData(parameters, callParameters = {}) {
177
177
  return new Promise(async (resolve) => {
178
178
  const inParams = [
179
179
  { type: "int", name: "id" },
180
- { type: "bool", name: "showOmitted" },
181
- { type: "int", name: "count" },
182
- { type: "int", name: "offset" },
183
180
  ];
184
181
  const outParams = [
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" },
182
+ { 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"] },
187
183
  { type: "bool", name: "isOk" },
188
184
  { type: "text", name: "errorMsg" },
189
185
  ];
@@ -191,17 +187,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
191
187
  ...processInParameters(parameters, inParams),
192
188
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
193
189
  ];
194
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
190
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadGroupData", ...processedParams).callAndGet(undefined, callParameters.timeout);
195
191
  resolve(processOutParameters(result, outParams));
196
192
  });
197
193
  }
198
- async GetScenario(parameters, callParameters = {}) {
194
+ async LoadPairVectorData(parameters, callParameters = {}) {
199
195
  return new Promise(async (resolve) => {
200
196
  const inParams = [
201
197
  { type: "int", name: "id" },
202
198
  ];
203
199
  const outParams = [
204
- { type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
200
+ { 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"] },
205
201
  { type: "bool", name: "isOk" },
206
202
  { type: "text", name: "errorMsg" },
207
203
  ];
@@ -209,21 +205,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
209
205
  ...processInParameters(parameters, inParams),
210
206
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
211
207
  ];
212
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenario", ...processedParams).callAndGet(undefined, callParameters.timeout);
208
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadPairVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
213
209
  resolve(processOutParameters(result, outParams));
214
210
  });
215
211
  }
216
- async GetScenarioChildren(parameters, callParameters = {}) {
212
+ async LoadScenarioData(parameters, callParameters = {}) {
217
213
  return new Promise(async (resolve) => {
218
214
  const inParams = [
219
215
  { type: "int", name: "id" },
220
- { type: "bool", name: "showOmitted" },
221
- { type: "int", name: "count" },
222
- { type: "int", name: "offset" },
223
216
  ];
224
217
  const outParams = [
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" },
218
+ { 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"] },
227
219
  { type: "bool", name: "isOk" },
228
220
  { type: "text", name: "errorMsg" },
229
221
  ];
@@ -231,22 +223,19 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
231
223
  ...processInParameters(parameters, inParams),
232
224
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
233
225
  ];
234
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
226
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadScenarioData", ...processedParams).callAndGet(undefined, callParameters.timeout);
235
227
  resolve(processOutParameters(result, outParams));
236
228
  });
237
229
  }
238
- async GetScenarioVectors(parameters, callParameters = {}) {
230
+ async LoadVectorData(parameters, callParameters = {}) {
239
231
  return new Promise(async (resolve) => {
240
232
  const inParams = [
241
233
  { type: "int", name: "id" },
242
- { type: "bool", name: "showOmitted" },
243
- { type: "bool", name: "showDynamic" },
244
- { type: "int", name: "count" },
245
- { type: "int", name: "offset" },
246
234
  ];
247
235
  const outParams = [
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" },
236
+ { 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"] },
237
+ { type: "record", name: "dataEx", structName: "SD.EM_EDA_VectorEx", structFields: ["ID_VEKTOR", "DATE_IN", "DATE_CH"] },
238
+ { type: "record", name: "dataFunction", structName: "SD.EM_EDA_Function", structFields: ["ID_VEKTOR", "TYP", "PERIODA", "POSUN", "PREPOCIT", "PREDV_OD", "PREDV_DO", "PRECALC_RQ"] },
250
239
  { type: "bool", name: "isOk" },
251
240
  { type: "text", name: "errorMsg" },
252
241
  ];
@@ -254,17 +243,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
254
243
  ...processInParameters(parameters, inParams),
255
244
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
256
245
  ];
257
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
246
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
258
247
  resolve(processOutParameters(result, outParams));
259
248
  });
260
249
  }
261
- async GetVector(parameters, callParameters = {}) {
250
+ async SetDescriptiveVectorData(parameters, callParameters = {}) {
262
251
  return new Promise(async (resolve) => {
263
252
  const inParams = [
264
253
  { type: "int", name: "id" },
254
+ { type: "record", name: "data", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
265
255
  ];
266
256
  const outParams = [
267
- { type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
268
257
  { type: "bool", name: "isOk" },
269
258
  { type: "text", name: "errorMsg" },
270
259
  ];
@@ -272,17 +261,20 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
272
261
  ...processInParameters(parameters, inParams),
273
262
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
274
263
  ];
275
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
264
+ const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "SetDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
276
265
  resolve(processOutParameters(result, outParams));
277
266
  });
278
267
  }
279
- async IncludeVectorToGroup(parameters, callParameters = {}) {
268
+ }
269
+ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
270
+ async FindGroups(parameters, callParameters = {}) {
280
271
  return new Promise(async (resolve) => {
281
272
  const inParams = [
282
- { type: "int", name: "groupId" },
283
- { type: "int", name: "vectorId" },
273
+ { 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"] },
274
+ { type: "int", name: "count" },
284
275
  ];
285
276
  const outParams = [
277
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
286
278
  { type: "bool", name: "isOk" },
287
279
  { type: "text", name: "errorMsg" },
288
280
  ];
@@ -290,17 +282,18 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
290
282
  ...processInParameters(parameters, inParams),
291
283
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
292
284
  ];
293
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToGroup", ...processedParams).callAndGet(undefined, callParameters.timeout);
285
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindGroups", ...processedParams).callAndGet(undefined, callParameters.timeout);
294
286
  resolve(processOutParameters(result, outParams));
295
287
  });
296
288
  }
297
- async IncludeVectorToScenario(parameters, callParameters = {}) {
289
+ async FindScenarios(parameters, callParameters = {}) {
298
290
  return new Promise(async (resolve) => {
299
291
  const inParams = [
300
- { type: "int", name: "scenarioId" },
301
- { type: "int", name: "vectorId" },
292
+ { 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"] },
293
+ { type: "int", name: "count" },
302
294
  ];
303
295
  const outParams = [
296
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
304
297
  { type: "bool", name: "isOk" },
305
298
  { type: "text", name: "errorMsg" },
306
299
  ];
@@ -308,24 +301,18 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
308
301
  ...processInParameters(parameters, inParams),
309
302
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
310
303
  ];
311
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToScenario", ...processedParams).callAndGet(undefined, callParameters.timeout);
304
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindScenarios", ...processedParams).callAndGet(undefined, callParameters.timeout);
312
305
  resolve(processOutParameters(result, outParams));
313
306
  });
314
307
  }
315
- }
316
- export class EM_VECTOR_IMPLEventApi extends BaseApi {
317
- async CalcValuesForUnsavedVector(parameters, callParameters = {}) {
308
+ async FindVectors(parameters, callParameters = {}) {
318
309
  return new Promise(async (resolve) => {
319
310
  const inParams = [
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" },
311
+ { 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"] },
312
+ { type: "int", name: "count" },
325
313
  ];
326
314
  const outParams = [
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"] },
315
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
329
316
  { type: "bool", name: "isOk" },
330
317
  { type: "text", name: "errorMsg" },
331
318
  ];
@@ -333,21 +320,17 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
333
320
  ...processInParameters(parameters, inParams),
334
321
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
335
322
  ];
336
- const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "CalcValuesForUnsavedVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
323
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
337
324
  resolve(processOutParameters(result, outParams));
338
325
  });
339
326
  }
340
- async GetValuesForDescriptiveVector(parameters, callParameters = {}) {
327
+ async GetGroup(parameters, callParameters = {}) {
341
328
  return new Promise(async (resolve) => {
342
329
  const inParams = [
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" },
330
+ { type: "int", name: "id" },
348
331
  ];
349
332
  const outParams = [
350
- { type: "record", name: "values", structName: "SD.EDA_VectorData", structFields: ["val"] },
333
+ { type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
351
334
  { type: "bool", name: "isOk" },
352
335
  { type: "text", name: "errorMsg" },
353
336
  ];
@@ -355,17 +338,21 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
355
338
  ...processInParameters(parameters, inParams),
356
339
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
357
340
  ];
358
- const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "GetValuesForDescriptiveVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
341
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroup", ...processedParams).callAndGet(undefined, callParameters.timeout);
359
342
  resolve(processOutParameters(result, outParams));
360
343
  });
361
344
  }
362
- async InsertValuesToVector(parameters, callParameters = {}) {
345
+ async GetGroupChildren(parameters, callParameters = {}) {
363
346
  return new Promise(async (resolve) => {
364
347
  const inParams = [
365
348
  { type: "int", name: "id" },
366
- { type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
349
+ { type: "bool", name: "showOmitted" },
350
+ { type: "int", name: "pageSize" },
351
+ { type: "int", name: "pageNr" },
367
352
  ];
368
353
  const outParams = [
354
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
355
+ { type: "int", name: "totalCount" },
369
356
  { type: "bool", name: "isOk" },
370
357
  { type: "text", name: "errorMsg" },
371
358
  ];
@@ -373,20 +360,21 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
373
360
  ...processInParameters(parameters, inParams),
374
361
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
375
362
  ];
376
- const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "InsertValuesToVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
363
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
377
364
  resolve(processOutParameters(result, outParams));
378
365
  });
379
366
  }
380
- async ReadValuesFromPairVector(parameters, callParameters = {}) {
367
+ async GetGroupVectors(parameters, callParameters = {}) {
381
368
  return new Promise(async (resolve) => {
382
369
  const inParams = [
383
370
  { type: "int", name: "id" },
384
- { type: "time", name: "from" },
385
- { type: "time", name: "to" },
386
- { type: "int", name: "step" },
371
+ { type: "bool", name: "showOmitted" },
372
+ { type: "int", name: "pageSize" },
373
+ { type: "int", name: "pageNr" },
387
374
  ];
388
375
  const outParams = [
389
- { type: "record", name: "data", structName: "SD.EDA_PairData", structFields: ["idx", "valX", "valY"] },
376
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
377
+ { type: "int", name: "totalCount" },
390
378
  { type: "bool", name: "isOk" },
391
379
  { type: "text", name: "errorMsg" },
392
380
  ];
@@ -394,21 +382,17 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
394
382
  ...processInParameters(parameters, inParams),
395
383
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
396
384
  ];
397
- const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromPairVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
385
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
398
386
  resolve(processOutParameters(result, outParams));
399
387
  });
400
388
  }
401
- async ReadValuesFromVector(parameters, callParameters = {}) {
389
+ async GetScenario(parameters, callParameters = {}) {
402
390
  return new Promise(async (resolve) => {
403
391
  const inParams = [
404
392
  { type: "int", name: "id" },
405
- { type: "time", name: "from" },
406
- { type: "time", name: "to" },
407
- { type: "int", name: "step" },
408
393
  ];
409
394
  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"] },
395
+ { type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
412
396
  { type: "bool", name: "isOk" },
413
397
  { type: "text", name: "errorMsg" },
414
398
  ];
@@ -416,30 +400,44 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
416
400
  ...processInParameters(parameters, inParams),
417
401
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
418
402
  ];
419
- const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
403
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenario", ...processedParams).callAndGet(undefined, callParameters.timeout);
420
404
  resolve(processOutParameters(result, outParams));
421
405
  });
422
406
  }
423
- }
424
- export class EM_VECTOR_MANAGEREventApi extends BaseApi {
425
- async InsertSession(parameters, callParameters = {}) {
407
+ async GetScenarioChildren(parameters, callParameters = {}) {
426
408
  return new Promise(async (resolve) => {
427
409
  const inParams = [
428
- { type: "int", name: "processId" },
410
+ { type: "int", name: "id" },
411
+ { type: "bool", name: "showOmitted" },
412
+ { type: "int", name: "pageSize" },
413
+ { type: "int", name: "pageNr" },
414
+ ];
415
+ const outParams = [
416
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
417
+ { type: "int", name: "totalCount" },
418
+ { type: "bool", name: "isOk" },
419
+ { type: "text", name: "errorMsg" },
429
420
  ];
430
- const outParams = [];
431
421
  const processedParams = [
432
422
  ...processInParameters(parameters, inParams),
433
423
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
434
424
  ];
435
- const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "InsertSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
425
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
436
426
  resolve(processOutParameters(result, outParams));
437
427
  });
438
428
  }
439
- async KillEdaSession(parameters, callParameters = {}) {
429
+ async GetScenarioVectors(parameters, callParameters = {}) {
440
430
  return new Promise(async (resolve) => {
441
- const inParams = [];
431
+ const inParams = [
432
+ { type: "int", name: "id" },
433
+ { type: "bool", name: "showOmitted" },
434
+ { type: "bool", name: "showDynamic" },
435
+ { type: "int", name: "pageSize" },
436
+ { type: "int", name: "pageNr" },
437
+ ];
442
438
  const outParams = [
439
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
440
+ { type: "int", name: "totalCount" },
443
441
  { type: "bool", name: "isOk" },
444
442
  { type: "text", name: "errorMsg" },
445
443
  ];
@@ -447,34 +445,35 @@ export class EM_VECTOR_MANAGEREventApi extends BaseApi {
447
445
  ...processInParameters(parameters, inParams),
448
446
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
449
447
  ];
450
- const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "KillEdaSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
448
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
451
449
  resolve(processOutParameters(result, outParams));
452
450
  });
453
451
  }
454
- async RemoveSession(parameters, callParameters = {}) {
452
+ async GetVector(parameters, callParameters = {}) {
455
453
  return new Promise(async (resolve) => {
456
454
  const inParams = [
457
- { type: "int", name: "processId" },
455
+ { type: "int", name: "id" },
456
+ ];
457
+ const outParams = [
458
+ { type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
459
+ { type: "bool", name: "isOk" },
460
+ { type: "text", name: "errorMsg" },
458
461
  ];
459
- const outParams = [];
460
462
  const processedParams = [
461
463
  ...processInParameters(parameters, inParams),
462
464
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
463
465
  ];
464
- const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "RemoveSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
466
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
465
467
  resolve(processOutParameters(result, outParams));
466
468
  });
467
469
  }
468
- }
469
- export class EM_DETAIL_IMPLEventApi extends BaseApi {
470
- async LoadCalcVectorData(parameters, callParameters = {}) {
470
+ async IncludeVectorToGroup(parameters, callParameters = {}) {
471
471
  return new Promise(async (resolve) => {
472
472
  const inParams = [
473
- { type: "int", name: "id" },
473
+ { type: "int", name: "groupId" },
474
+ { type: "int", name: "vectorId" },
474
475
  ];
475
476
  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" },
478
477
  { type: "bool", name: "isOk" },
479
478
  { type: "text", name: "errorMsg" },
480
479
  ];
@@ -482,17 +481,17 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
482
481
  ...processInParameters(parameters, inParams),
483
482
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
484
483
  ];
485
- const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadCalcVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
484
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToGroup", ...processedParams).callAndGet(undefined, callParameters.timeout);
486
485
  resolve(processOutParameters(result, outParams));
487
486
  });
488
487
  }
489
- async LoadDescriptiveVectorData(parameters, callParameters = {}) {
488
+ async IncludeVectorToScenario(parameters, callParameters = {}) {
490
489
  return new Promise(async (resolve) => {
491
490
  const inParams = [
492
- { type: "int", name: "id" },
491
+ { type: "int", name: "scenarioId" },
492
+ { type: "int", name: "vectorId" },
493
493
  ];
494
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
495
  { type: "bool", name: "isOk" },
497
496
  { type: "text", name: "errorMsg" },
498
497
  ];
@@ -500,17 +499,25 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
500
499
  ...processInParameters(parameters, inParams),
501
500
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
502
501
  ];
503
- const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
502
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "IncludeVectorToScenario", ...processedParams).callAndGet(undefined, callParameters.timeout);
504
503
  resolve(processOutParameters(result, outParams));
505
504
  });
506
505
  }
507
- async LoadGroupData(parameters, callParameters = {}) {
506
+ }
507
+ export class EM_VECTOR_IMPLEventApi extends BaseApi {
508
+ async CalcValuesForUnsavedVector(parameters, callParameters = {}) {
508
509
  return new Promise(async (resolve) => {
509
510
  const inParams = [
510
- { type: "int", name: "id" },
511
+ { type: "int", name: "type" },
512
+ { type: "text", name: "prescription" },
513
+ { type: "time", name: "from" },
514
+ { type: "time", name: "to" },
515
+ { type: "int", name: "step" },
511
516
  ];
512
517
  const outParams = [
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"] },
518
+ { type: "record", name: "calcParams", structName: "SD.EM_EDA_CalcFunction_Params_V2", structFields: ["structVersion", "periodBeginTime", "periodStepBase", "periodStepCount", "periodTimeZone", "cacheId", "valueType", "isIntegral", "roundType", "decimalPlaces", "version", "userName", "checkFlags", "envName", "paramBlockId"] },
519
+ { type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
520
+ { type: "record", name: "stats", structName: "SD.EM_EDA_VectorStats", structFields: ["Min", "Max", "Sum", "Avg"] },
514
521
  { type: "bool", name: "isOk" },
515
522
  { type: "text", name: "errorMsg" },
516
523
  ];
@@ -518,17 +525,21 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
518
525
  ...processInParameters(parameters, inParams),
519
526
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
520
527
  ];
521
- const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadGroupData", ...processedParams).callAndGet(undefined, callParameters.timeout);
528
+ const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "CalcValuesForUnsavedVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
522
529
  resolve(processOutParameters(result, outParams));
523
530
  });
524
531
  }
525
- async LoadPairVectorData(parameters, callParameters = {}) {
532
+ async GetValuesForDescriptiveVector(parameters, callParameters = {}) {
526
533
  return new Promise(async (resolve) => {
527
534
  const inParams = [
528
- { type: "int", name: "id" },
535
+ { type: "record", name: "definition", structName: "SD.EDA_DescriptiveData2", structFields: ["id", "parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
536
+ { type: "time", name: "from" },
537
+ { type: "time", name: "to" },
538
+ { type: "int", name: "step" },
539
+ { type: "int", name: "integral" },
529
540
  ];
530
541
  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"] },
542
+ { type: "record", name: "values", structName: "SD.EDA_VectorData", structFields: ["val"] },
532
543
  { type: "bool", name: "isOk" },
533
544
  { type: "text", name: "errorMsg" },
534
545
  ];
@@ -536,17 +547,17 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
536
547
  ...processInParameters(parameters, inParams),
537
548
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
538
549
  ];
539
- const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadPairVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
550
+ const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "GetValuesForDescriptiveVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
540
551
  resolve(processOutParameters(result, outParams));
541
552
  });
542
553
  }
543
- async LoadScenarioData(parameters, callParameters = {}) {
554
+ async InsertValuesToVector(parameters, callParameters = {}) {
544
555
  return new Promise(async (resolve) => {
545
556
  const inParams = [
546
557
  { type: "int", name: "id" },
558
+ { type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
547
559
  ];
548
560
  const outParams = [
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"] },
550
561
  { type: "bool", name: "isOk" },
551
562
  { type: "text", name: "errorMsg" },
552
563
  ];
@@ -554,19 +565,20 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
554
565
  ...processInParameters(parameters, inParams),
555
566
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
556
567
  ];
557
- const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadScenarioData", ...processedParams).callAndGet(undefined, callParameters.timeout);
568
+ const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "InsertValuesToVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
558
569
  resolve(processOutParameters(result, outParams));
559
570
  });
560
571
  }
561
- async LoadVectorData(parameters, callParameters = {}) {
572
+ async ReadValuesFromPairVector(parameters, callParameters = {}) {
562
573
  return new Promise(async (resolve) => {
563
574
  const inParams = [
564
575
  { type: "int", name: "id" },
576
+ { type: "time", name: "from" },
577
+ { type: "time", name: "to" },
578
+ { type: "int", name: "step" },
565
579
  ];
566
580
  const outParams = [
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"] },
581
+ { type: "record", name: "data", structName: "SD.EDA_PairData", structFields: ["idx", "valX", "valY"] },
570
582
  { type: "bool", name: "isOk" },
571
583
  { type: "text", name: "errorMsg" },
572
584
  ];
@@ -574,17 +586,22 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
574
586
  ...processInParameters(parameters, inParams),
575
587
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
576
588
  ];
577
- const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
589
+ const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromPairVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
578
590
  resolve(processOutParameters(result, outParams));
579
591
  });
580
592
  }
581
- async SetDescriptiveVectorData(parameters, callParameters = {}) {
593
+ async ReadValuesFromVector(parameters, callParameters = {}) {
582
594
  return new Promise(async (resolve) => {
583
595
  const inParams = [
584
596
  { 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"] },
597
+ { type: "time", name: "from" },
598
+ { type: "time", name: "to" },
599
+ { type: "int", name: "step" },
600
+ { type: "record", name: "readParams", structName: "SD.EM_EDA_ReadValuesFromVector_Params_V2", structFields: ["structVersion", "cacheId", "useRounding", "skipFlags", "version", "userName", "checkFlags", "envName", "paramBlockId"] },
586
601
  ];
587
602
  const outParams = [
603
+ { type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
604
+ { type: "record", name: "stats", structName: "SD.EM_EDA_VectorStats", structFields: ["Min", "Max", "Sum", "Avg"] },
588
605
  { type: "bool", name: "isOk" },
589
606
  { type: "text", name: "errorMsg" },
590
607
  ];
@@ -592,7 +609,52 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
592
609
  ...processInParameters(parameters, inParams),
593
610
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
594
611
  ];
595
- const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "SetDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
612
+ const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
613
+ resolve(processOutParameters(result, outParams));
614
+ });
615
+ }
616
+ }
617
+ export class EM_VECTOR_MANAGEREventApi extends BaseApi {
618
+ async InsertSession(parameters, callParameters = {}) {
619
+ return new Promise(async (resolve) => {
620
+ const inParams = [
621
+ { type: "int", name: "processId" },
622
+ ];
623
+ const outParams = [];
624
+ const processedParams = [
625
+ ...processInParameters(parameters, inParams),
626
+ ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
627
+ ];
628
+ const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "InsertSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
629
+ resolve(processOutParameters(result, outParams));
630
+ });
631
+ }
632
+ async KillEdaSession(parameters, callParameters = {}) {
633
+ return new Promise(async (resolve) => {
634
+ const inParams = [];
635
+ const outParams = [
636
+ { type: "bool", name: "isOk" },
637
+ { type: "text", name: "errorMsg" },
638
+ ];
639
+ const processedParams = [
640
+ ...processInParameters(parameters, inParams),
641
+ ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
642
+ ];
643
+ const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "KillEdaSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
644
+ resolve(processOutParameters(result, outParams));
645
+ });
646
+ }
647
+ async RemoveSession(parameters, callParameters = {}) {
648
+ return new Promise(async (resolve) => {
649
+ const inParams = [
650
+ { type: "int", name: "processId" },
651
+ ];
652
+ const outParams = [];
653
+ const processedParams = [
654
+ ...processInParameters(parameters, inParams),
655
+ ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
656
+ ];
657
+ const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "RemoveSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
596
658
  resolve(processOutParameters(result, outParams));
597
659
  });
598
660
  }