d2aura 26.0.17 → 26.0.18
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 +5 -3
- package/api/eda/edaManagerApi.js +36 -2
- package/api/eda/edaManagerApi.js.map +1 -1
- package/api/eda/generated/events.d.ts +63 -61
- package/api/eda/generated/events.js +143 -141
- package/api/eda/generated/events.js.map +1 -1
- package/api/eda/generated/structures.d.ts +35 -6
- package/api/eda/generated/structures.js.map +1 -1
- package/api/webAuthn/webAuthnManageApi.js +2 -2
- package/api/webAuthn/webAuthnManageApi.js.map +1 -1
- package/core/i18n/d2aura.sk.json +4 -0
- package/coreui/components/edaManagerComponent/constants/edaTypes.d.ts +2 -1
- package/coreui/components/edaManagerComponent/constants/edaTypes.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.d.ts +4 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataContext.js.map +1 -1
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js +57 -46
- package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.js +2 -2
- package/coreui/components/edaManagerComponent/dialogs/exportDialog.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/importDialog.js +55 -4
- package/coreui/components/edaManagerComponent/dialogs/importDialog.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/importExport/import.d.ts +7 -0
- package/coreui/components/edaManagerComponent/dialogs/importExport/import.js.map +1 -1
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.d.ts +8 -1
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.js +10 -4
- package/coreui/components/edaManagerComponent/dialogs/importExport/vectorTypeSelection.js.map +1 -1
- package/coreui/components/edaManagerComponent/edaDetail.d.ts +2 -3
- package/coreui/components/edaManagerComponent/edaDetail.js.map +1 -1
- package/coreui/components/edaManagerComponent/utils/utils.d.ts +1 -2
- package/coreui/components/edaManagerComponent/utils/utils.js.map +1 -1
- package/d2configuration/edaManager/E.EM_DETAIL_IMPL.xml +4 -0
- package/d2configuration/edaManager/E.EM_DETAIL_UNIT.xml +34 -0
- package/d2configuration/edaManager/E.EM_NAVIGATOR_SQL.xml +5 -5
- package/d2configuration/edaManager/E.EM_VECTOR_IMPL.xml +18 -2
- package/d2configuration/edaManager/E.EM_VECTOR_UNIT.xml +377 -16
- package/d2configuration/edaManager/SD.EM_Tree_Item.xml +22 -0
- package/package.json +2 -2
|
@@ -75,6 +75,137 @@ 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
|
+
async SetDescriptiveVectorData(parameters, callParameters = {}) {
|
|
191
|
+
return new Promise(async (resolve) => {
|
|
192
|
+
const inParams = [
|
|
193
|
+
{ type: "int", name: "id" },
|
|
194
|
+
{ type: "record", name: "data", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
|
|
195
|
+
];
|
|
196
|
+
const outParams = [
|
|
197
|
+
{ type: "bool", name: "isOk" },
|
|
198
|
+
{ type: "text", name: "errorMsg" },
|
|
199
|
+
];
|
|
200
|
+
const processedParams = [
|
|
201
|
+
...processInParameters(parameters, inParams),
|
|
202
|
+
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
203
|
+
];
|
|
204
|
+
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "SetDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
205
|
+
resolve(processOutParameters(result, outParams));
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
78
209
|
export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
79
210
|
async FindGroups(parameters, callParameters = {}) {
|
|
80
211
|
return new Promise(async (resolve) => {
|
|
@@ -83,7 +214,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
83
214
|
{ type: "int", name: "count" },
|
|
84
215
|
];
|
|
85
216
|
const outParams = [
|
|
86
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
217
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
87
218
|
{ type: "bool", name: "isOk" },
|
|
88
219
|
{ type: "text", name: "errorMsg" },
|
|
89
220
|
];
|
|
@@ -102,7 +233,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
102
233
|
{ type: "int", name: "count" },
|
|
103
234
|
];
|
|
104
235
|
const outParams = [
|
|
105
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
236
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
106
237
|
{ type: "bool", name: "isOk" },
|
|
107
238
|
{ type: "text", name: "errorMsg" },
|
|
108
239
|
];
|
|
@@ -121,7 +252,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
121
252
|
{ type: "int", name: "count" },
|
|
122
253
|
];
|
|
123
254
|
const outParams = [
|
|
124
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
255
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
125
256
|
{ type: "bool", name: "isOk" },
|
|
126
257
|
{ type: "text", name: "errorMsg" },
|
|
127
258
|
];
|
|
@@ -139,7 +270,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
139
270
|
{ type: "int", name: "id" },
|
|
140
271
|
];
|
|
141
272
|
const outParams = [
|
|
142
|
-
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
273
|
+
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
143
274
|
{ type: "bool", name: "isOk" },
|
|
144
275
|
{ type: "text", name: "errorMsg" },
|
|
145
276
|
];
|
|
@@ -160,7 +291,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
160
291
|
{ type: "int", name: "offset" },
|
|
161
292
|
];
|
|
162
293
|
const outParams = [
|
|
163
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
294
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
164
295
|
{ type: "int", name: "leftCount" },
|
|
165
296
|
{ type: "bool", name: "isOk" },
|
|
166
297
|
{ type: "text", name: "errorMsg" },
|
|
@@ -182,7 +313,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
182
313
|
{ type: "int", name: "offset" },
|
|
183
314
|
];
|
|
184
315
|
const outParams = [
|
|
185
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
316
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
186
317
|
{ type: "int", name: "leftCount" },
|
|
187
318
|
{ type: "bool", name: "isOk" },
|
|
188
319
|
{ type: "text", name: "errorMsg" },
|
|
@@ -201,7 +332,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
201
332
|
{ type: "int", name: "id" },
|
|
202
333
|
];
|
|
203
334
|
const outParams = [
|
|
204
|
-
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
335
|
+
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
205
336
|
{ type: "bool", name: "isOk" },
|
|
206
337
|
{ type: "text", name: "errorMsg" },
|
|
207
338
|
];
|
|
@@ -222,7 +353,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
222
353
|
{ type: "int", name: "offset" },
|
|
223
354
|
];
|
|
224
355
|
const outParams = [
|
|
225
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
356
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
226
357
|
{ type: "int", name: "leftCount" },
|
|
227
358
|
{ type: "bool", name: "isOk" },
|
|
228
359
|
{ type: "text", name: "errorMsg" },
|
|
@@ -245,7 +376,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
245
376
|
{ type: "int", name: "offset" },
|
|
246
377
|
];
|
|
247
378
|
const outParams = [
|
|
248
|
-
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
379
|
+
{ type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
249
380
|
{ type: "int", name: "leftCount" },
|
|
250
381
|
{ type: "bool", name: "isOk" },
|
|
251
382
|
{ type: "text", name: "errorMsg" },
|
|
@@ -264,7 +395,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
|
|
|
264
395
|
{ type: "int", name: "id" },
|
|
265
396
|
];
|
|
266
397
|
const outParams = [
|
|
267
|
-
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription"] },
|
|
398
|
+
{ type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces", "Prescription", "IsIntegral"] },
|
|
268
399
|
{ type: "bool", name: "isOk" },
|
|
269
400
|
{ type: "text", name: "errorMsg" },
|
|
270
401
|
];
|
|
@@ -324,6 +455,7 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
|
324
455
|
{ type: "int", name: "step" },
|
|
325
456
|
];
|
|
326
457
|
const outParams = [
|
|
458
|
+
{ type: "record", name: "calcParams", structName: "SD.EDA_CalcFunction_Params_V2", structFields: ["structVersion", "periodBeginTime", "periodStepBase", "periodStepCount", "periodTimeZone", "cacheId", "valueType", "isIntegral", "roundType", "decimalPlaces", "version", "userName", "checkFlags", "envName", "paramBlockId"] },
|
|
327
459
|
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
328
460
|
{ type: "record", name: "stats", structName: "SD.EM_EDA_VectorStats", structFields: ["Min", "Max", "Sum", "Avg"] },
|
|
329
461
|
{ type: "bool", name: "isOk" },
|
|
@@ -405,6 +537,7 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
|
|
|
405
537
|
{ type: "time", name: "from" },
|
|
406
538
|
{ type: "time", name: "to" },
|
|
407
539
|
{ type: "int", name: "step" },
|
|
540
|
+
{ type: "record", name: "readParams", structName: "SD.EDA_ReadValuesFromVector_Params_V2", structFields: ["structVersion", "cacheId", "useRounding", "skipFlags", "version", "userName", "checkFlags", "envName", "paramBlockId"] },
|
|
408
541
|
];
|
|
409
542
|
const outParams = [
|
|
410
543
|
{ type: "record", name: "data", structName: "SD.EDA_VectorData", structFields: ["val"] },
|
|
@@ -466,135 +599,4 @@ export class EM_VECTOR_MANAGEREventApi extends BaseApi {
|
|
|
466
599
|
});
|
|
467
600
|
}
|
|
468
601
|
}
|
|
469
|
-
export class EM_DETAIL_IMPLEventApi extends BaseApi {
|
|
470
|
-
async LoadCalcVectorData(parameters, callParameters = {}) {
|
|
471
|
-
return new Promise(async (resolve) => {
|
|
472
|
-
const inParams = [
|
|
473
|
-
{ type: "int", name: "id" },
|
|
474
|
-
];
|
|
475
|
-
const outParams = [
|
|
476
|
-
{ type: "record", name: "data", structName: "SD.EM_EDA_FunctionPrescription", structFields: ["ID_VEKTOR", "POPIS", "PLATNOST_OD", "PLATNOST_DO"] },
|
|
477
|
-
{ type: "text", name: "prescription" },
|
|
478
|
-
{ type: "bool", name: "isOk" },
|
|
479
|
-
{ type: "text", name: "errorMsg" },
|
|
480
|
-
];
|
|
481
|
-
const processedParams = [
|
|
482
|
-
...processInParameters(parameters, inParams),
|
|
483
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
484
|
-
];
|
|
485
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadCalcVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
486
|
-
resolve(processOutParameters(result, outParams));
|
|
487
|
-
});
|
|
488
|
-
}
|
|
489
|
-
async LoadDescriptiveVectorData(parameters, callParameters = {}) {
|
|
490
|
-
return new Promise(async (resolve) => {
|
|
491
|
-
const inParams = [
|
|
492
|
-
{ type: "int", name: "id" },
|
|
493
|
-
];
|
|
494
|
-
const outParams = [
|
|
495
|
-
{ type: "record", name: "data", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
|
|
496
|
-
{ type: "bool", name: "isOk" },
|
|
497
|
-
{ type: "text", name: "errorMsg" },
|
|
498
|
-
];
|
|
499
|
-
const processedParams = [
|
|
500
|
-
...processInParameters(parameters, inParams),
|
|
501
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
502
|
-
];
|
|
503
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
504
|
-
resolve(processOutParameters(result, outParams));
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
async LoadGroupData(parameters, callParameters = {}) {
|
|
508
|
-
return new Promise(async (resolve) => {
|
|
509
|
-
const inParams = [
|
|
510
|
-
{ type: "int", name: "id" },
|
|
511
|
-
];
|
|
512
|
-
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"] },
|
|
514
|
-
{ type: "bool", name: "isOk" },
|
|
515
|
-
{ type: "text", name: "errorMsg" },
|
|
516
|
-
];
|
|
517
|
-
const processedParams = [
|
|
518
|
-
...processInParameters(parameters, inParams),
|
|
519
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
520
|
-
];
|
|
521
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadGroupData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
522
|
-
resolve(processOutParameters(result, outParams));
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
async LoadPairVectorData(parameters, callParameters = {}) {
|
|
526
|
-
return new Promise(async (resolve) => {
|
|
527
|
-
const inParams = [
|
|
528
|
-
{ type: "int", name: "id" },
|
|
529
|
-
];
|
|
530
|
-
const outParams = [
|
|
531
|
-
{ type: "record", name: "data", structName: "SD.EM_EDA_PairVector", structFields: ["ID_VEKTOR", "ID_SKVEKTOR", "ID_FUNKCIA", "MENO", "POPIS", "TECH_JEDNOTKY", "TYP_HODNOTY", "TYP", "DATA_OD", "DATA_DO", "AUTOR", "PRIVATE", "PRIST_PRAVA_R", "PRIST_PRAVA_W", "INTEGRAL", "ZOBRAZ_MENO", "ANO_PLATNY", "VIEW_ROUND", "EXEC_ROUND", "VIEW_DEC_PL", "EXEC_DEC_PL", "USER_CH", "MENOEX", "DATA_OFFSET", "ID_TABLESPACE", "TECH_JEDNOTKY_Y", "HODNOTA_X", "HODNOTA_Y", "TIME_ZONE", "VERSIONED_SINCE", "ARCHIVE_NAME", "ARCHIVE_ROW", "ARCHIVE_COL", "STATUS_TEXT", "PERIOD_BEGIN_TIME", "PERIOD_STEP_BASE", "PERIOD_STEP_COUNT"] },
|
|
532
|
-
{ type: "bool", name: "isOk" },
|
|
533
|
-
{ type: "text", name: "errorMsg" },
|
|
534
|
-
];
|
|
535
|
-
const processedParams = [
|
|
536
|
-
...processInParameters(parameters, inParams),
|
|
537
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
538
|
-
];
|
|
539
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadPairVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
540
|
-
resolve(processOutParameters(result, outParams));
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
async LoadScenarioData(parameters, callParameters = {}) {
|
|
544
|
-
return new Promise(async (resolve) => {
|
|
545
|
-
const inParams = [
|
|
546
|
-
{ type: "int", name: "id" },
|
|
547
|
-
];
|
|
548
|
-
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
|
-
{ type: "bool", name: "isOk" },
|
|
551
|
-
{ type: "text", name: "errorMsg" },
|
|
552
|
-
];
|
|
553
|
-
const processedParams = [
|
|
554
|
-
...processInParameters(parameters, inParams),
|
|
555
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
556
|
-
];
|
|
557
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadScenarioData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
558
|
-
resolve(processOutParameters(result, outParams));
|
|
559
|
-
});
|
|
560
|
-
}
|
|
561
|
-
async LoadVectorData(parameters, callParameters = {}) {
|
|
562
|
-
return new Promise(async (resolve) => {
|
|
563
|
-
const inParams = [
|
|
564
|
-
{ type: "int", name: "id" },
|
|
565
|
-
];
|
|
566
|
-
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"] },
|
|
570
|
-
{ type: "bool", name: "isOk" },
|
|
571
|
-
{ type: "text", name: "errorMsg" },
|
|
572
|
-
];
|
|
573
|
-
const processedParams = [
|
|
574
|
-
...processInParameters(parameters, inParams),
|
|
575
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
576
|
-
];
|
|
577
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "LoadVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
578
|
-
resolve(processOutParameters(result, outParams));
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
async SetDescriptiveVectorData(parameters, callParameters = {}) {
|
|
582
|
-
return new Promise(async (resolve) => {
|
|
583
|
-
const inParams = [
|
|
584
|
-
{ type: "int", name: "id" },
|
|
585
|
-
{ type: "record", name: "data", structName: "SD.EDA_DescriptiveData", structFields: ["parent", "idx", "periodType", "timeFrom", "timeTo", "value", "value2", "valueType", "status", "supplement", "valid"] },
|
|
586
|
-
];
|
|
587
|
-
const outParams = [
|
|
588
|
-
{ type: "bool", name: "isOk" },
|
|
589
|
-
{ type: "text", name: "errorMsg" },
|
|
590
|
-
];
|
|
591
|
-
const processedParams = [
|
|
592
|
-
...processInParameters(parameters, inParams),
|
|
593
|
-
...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
|
|
594
|
-
];
|
|
595
|
-
const result = await this.d2api.rpc("E.EM_DETAIL_IMPL", "SetDescriptiveVectorData", ...processedParams).callAndGet(undefined, callParameters.timeout);
|
|
596
|
-
resolve(processOutParameters(result, outParams));
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
602
|
//# sourceMappingURL=events.js.map
|