d2aura 26.0.11 → 26.0.12

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 (71) hide show
  1. package/api/eda/edaManagerApi.d.ts +19 -2
  2. package/api/eda/edaManagerApi.js +36 -3
  3. package/api/eda/edaManagerApi.js.map +1 -1
  4. package/api/eda/generated/events.d.ts +86 -28
  5. package/api/eda/generated/events.js +154 -42
  6. package/api/eda/generated/events.js.map +1 -1
  7. package/api/eda/generated/structures.d.ts +21 -0
  8. package/api/eda/generated/structures.js.map +1 -1
  9. package/api/webPush/webPushApi.js.map +1 -1
  10. package/api/webPush/webPushUtils.js.map +1 -1
  11. package/core/i18n/d2aura.sk.json +8 -0
  12. package/coreui/components/edaManagerComponent/components/edaDataBasePanel.d.ts +13 -37
  13. package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js +114 -211
  14. package/coreui/components/edaManagerComponent/components/edaDataBasePanel.js.map +1 -1
  15. package/coreui/components/edaManagerComponent/components/edaDetailPanel.d.ts +2 -0
  16. package/coreui/components/edaManagerComponent/components/edaDetailPanel.js +2 -2
  17. package/coreui/components/edaManagerComponent/components/edaDetailPanel.js.map +1 -1
  18. package/coreui/components/edaManagerComponent/components/edaGraphPanel.d.ts +14 -5
  19. package/coreui/components/edaManagerComponent/components/edaGraphPanel.js +338 -326
  20. package/coreui/components/edaManagerComponent/components/edaGraphPanel.js.map +1 -1
  21. package/coreui/components/edaManagerComponent/components/edaTablePanel.d.ts +15 -4
  22. package/coreui/components/edaManagerComponent/components/edaTablePanel.js +139 -64
  23. package/coreui/components/edaManagerComponent/components/edaTablePanel.js.map +1 -1
  24. package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.d.ts +3 -8
  25. package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js +12 -38
  26. package/coreui/components/edaManagerComponent/components/edaTimeWindowPickerPanel.js.map +1 -1
  27. package/coreui/components/edaManagerComponent/components/edaTreeView.d.ts +1 -1
  28. package/coreui/components/edaManagerComponent/components/edaTreeView.js +5 -5
  29. package/coreui/components/edaManagerComponent/components/edaTreeView.js.map +1 -1
  30. package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.d.ts +8 -2
  31. package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.js +39 -11
  32. package/coreui/components/edaManagerComponent/components/edaVectorDetailPanel.js.map +1 -1
  33. package/coreui/components/edaManagerComponent/context/edaVectorDataContext.d.ts +33 -0
  34. package/coreui/components/edaManagerComponent/context/edaVectorDataContext.js +3 -0
  35. package/coreui/components/edaManagerComponent/context/edaVectorDataContext.js.map +1 -0
  36. package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.d.ts +9 -0
  37. package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js +267 -0
  38. package/coreui/components/edaManagerComponent/context/edaVectorDataProvider.js.map +1 -0
  39. package/coreui/components/edaManagerComponent/context/loadingContext.d.ts +7 -0
  40. package/coreui/components/edaManagerComponent/context/loadingContext.js +3 -0
  41. package/coreui/components/edaManagerComponent/context/loadingContext.js.map +1 -0
  42. package/coreui/components/edaManagerComponent/context/sharedSampleRange.d.ts +1 -2
  43. package/coreui/components/edaManagerComponent/context/sharedSampleRange.js +10 -0
  44. package/coreui/components/edaManagerComponent/context/sharedSampleRange.js.map +1 -1
  45. package/coreui/components/edaManagerComponent/edaDetail.d.ts +4 -12
  46. package/coreui/components/edaManagerComponent/edaDetail.js +53 -88
  47. package/coreui/components/edaManagerComponent/edaDetail.js.map +1 -1
  48. package/coreui/components/edaManagerComponent/edaNavigator.d.ts +2 -1
  49. package/coreui/components/edaManagerComponent/edaNavigator.js.map +1 -1
  50. package/coreui/components/edaManagerComponent/edaSelect.d.ts +13 -7
  51. package/coreui/components/edaManagerComponent/edaSelect.js +211 -7
  52. package/coreui/components/edaManagerComponent/edaSelect.js.map +1 -1
  53. package/coreui/components/edaManagerComponent/utils/utils.d.ts +17 -0
  54. package/coreui/components/edaManagerComponent/utils/utils.js +57 -0
  55. package/coreui/components/edaManagerComponent/utils/utils.js.map +1 -1
  56. package/coreui/components/webPush/webPushSwitch.js.map +1 -1
  57. package/coreui/images/logo.svg +9 -9
  58. package/coreui/images/logo_full.svg +11 -11
  59. package/d2configuration/edaManager/E.EM_NAVIGATOR_IMPL.xml +64 -2
  60. package/d2configuration/edaManager/E.EM_NAVIGATOR_SQL.xml +51 -13
  61. package/d2configuration/edaManager/E.EM_NAVIGATOR_UNIT.xml +304 -4
  62. package/d2configuration/edaManager/E.EM_VECTOR_IMPL.xml +9 -3
  63. package/d2configuration/edaManager/E.EM_VECTOR_UNIT.xml +89 -3
  64. package/d2configuration/edaManager/EDA_StatVectorRec.xml +56 -0
  65. package/d2configuration/edaManager/SD.EM_EDA_StatVectorRec_V1.xml +125 -0
  66. package/d2configuration/edaManager/SD.EM_Filter_Condition.xml +156 -0
  67. package/d2configuration/edaManager/SD.EM_Tree_Item.xml +34 -1
  68. package/package.json +2 -2
  69. package/coreui/components/edaManagerComponent/context/sharedSampleRangeWrapper.d.ts +0 -6
  70. package/coreui/components/edaManagerComponent/context/sharedSampleRangeWrapper.js +0 -14
  71. package/coreui/components/edaManagerComponent/context/sharedSampleRangeWrapper.js.map +0 -1
@@ -1,11 +1,22 @@
1
1
  import AbstractApi from "../abstractApi";
2
2
  import { D2WebApi } from "d2jsapi";
3
- import { EM_DETAIL_IMPLLoadGroupDataResult, EM_DETAIL_IMPLLoadScenarioDataResult, EM_DETAIL_IMPLLoadVectorDataResult, EM_NAVIGATOR_IMPLGetGroupChildrenResult, EM_NAVIGATOR_IMPLGetGroupVectorsResult, EM_NAVIGATOR_IMPLGetScenarioChildrenResult } from "./generated/events";
3
+ import { EM_DETAIL_IMPLLoadGroupDataResult, EM_DETAIL_IMPLLoadScenarioDataResult, EM_DETAIL_IMPLLoadVectorDataResult, EM_NAVIGATOR_IMPLFindGroupsResult, EM_NAVIGATOR_IMPLFindScenariosResult, EM_NAVIGATOR_IMPLFindVectorsResult, EM_NAVIGATOR_IMPLGetGroupChildrenResult, EM_NAVIGATOR_IMPLGetGroupResult, EM_NAVIGATOR_IMPLGetGroupVectorsResult, EM_NAVIGATOR_IMPLGetScenarioChildrenResult, EM_NAVIGATOR_IMPLGetScenarioResult, EM_NAVIGATOR_IMPLGetVectorResult } from "./generated/events";
4
4
  import dayjs from "d2core/dayjs";
5
5
  import { UnivalValue } from "d2jsapi/dist/unival";
6
+ import { AdvancedFilterCondition } from "../advancedFilterApi";
6
7
  export interface VectorValue {
7
8
  Value: UnivalValue;
8
9
  }
10
+ export interface VectorStats {
11
+ Min: UnivalValue;
12
+ Max: UnivalValue;
13
+ Sum: UnivalValue;
14
+ Avg: UnivalValue;
15
+ }
16
+ export interface VectorValuesData {
17
+ data?: VectorValue[];
18
+ stats?: VectorStats;
19
+ }
9
20
  type ClearType<T> = Omit<T, "isOk" | "errorMsg">;
10
21
  export default class EdaManagerApi extends AbstractApi {
11
22
  private readonly edaNavigatorApi;
@@ -20,7 +31,13 @@ export default class EdaManagerApi extends AbstractApi {
20
31
  loadVectorData(id: number): Promise<ClearType<EM_DETAIL_IMPLLoadVectorDataResult>>;
21
32
  loadGroupData(id: number): Promise<ClearType<EM_DETAIL_IMPLLoadGroupDataResult>>;
22
33
  loadScenarioData(id: number): Promise<ClearType<EM_DETAIL_IMPLLoadScenarioDataResult>>;
23
- readVectorValues(id: number, from: dayjs.Dayjs, to: dayjs.Dayjs, step: number): Promise<VectorValue[]>;
34
+ getVector(id: number): Promise<ClearType<EM_NAVIGATOR_IMPLGetVectorResult>>;
35
+ getGroup(id: number): Promise<ClearType<EM_NAVIGATOR_IMPLGetGroupResult>>;
36
+ getScenario(id: number): Promise<ClearType<EM_NAVIGATOR_IMPLGetScenarioResult>>;
37
+ findVectors(filter: AdvancedFilterCondition[]): Promise<ClearType<EM_NAVIGATOR_IMPLFindVectorsResult>>;
38
+ findGroups(filter: AdvancedFilterCondition[]): Promise<ClearType<EM_NAVIGATOR_IMPLFindGroupsResult>>;
39
+ findScenarios(filter: AdvancedFilterCondition[]): Promise<ClearType<EM_NAVIGATOR_IMPLFindScenariosResult>>;
40
+ readVectorValues(id: number, from: dayjs.Dayjs, to: dayjs.Dayjs, step: number): Promise<VectorValuesData>;
24
41
  cancelSession(): Promise<ClearType<EM_DETAIL_IMPLLoadScenarioDataResult>>;
25
42
  }
26
43
  export {};
@@ -29,15 +29,48 @@ export default class EdaManagerApi extends AbstractApi {
29
29
  loadScenarioData(id) {
30
30
  return this.edaDetailApi.LoadScenarioData({ id });
31
31
  }
32
+ getVector(id) {
33
+ return this.edaNavigatorApi.GetVector({ id });
34
+ }
35
+ getGroup(id) {
36
+ return this.edaNavigatorApi.GetGroup({ id });
37
+ }
38
+ getScenario(id) {
39
+ return this.edaNavigatorApi.GetScenario({ id });
40
+ }
41
+ findVectors(filter) {
42
+ return this.edaNavigatorApi.FindVectors({
43
+ conditions: filter,
44
+ count: this.pageSize
45
+ });
46
+ }
47
+ findGroups(filter) {
48
+ return this.edaNavigatorApi.FindGroups({
49
+ conditions: filter,
50
+ count: this.pageSize
51
+ });
52
+ }
53
+ findScenarios(filter) {
54
+ return this.edaNavigatorApi.FindScenarios({
55
+ conditions: filter,
56
+ count: this.pageSize
57
+ });
58
+ }
32
59
  async readVectorValues(id, from, to, step) {
33
60
  const result = await this.d2Api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromVector", id, from.toDate(), to.toDate(), step, {
34
61
  type: "record",
35
62
  structType: "SD.EM_EDA_VectorValues",
36
63
  returnFields: ["ValueTime", "Flags"],
37
64
  returnAs: "data"
38
- }, { type: "bool", returnAs: "isOk" }, { type: "text", returnAs: "errorMessage" }).call(undefined);
39
- if (result.isOk) {
40
- return result.data;
65
+ }, {
66
+ type: "record",
67
+ structType: "SD.EM_EDA_VectorStats",
68
+ returnAs: "stats"
69
+ }, { type: "bool", returnAs: "isOk" }, { type: "text", returnAs: "errorMessage" }).call(60000);
70
+ if (result.isOk.value === "vTrue") {
71
+ const data = result.data;
72
+ const stats = result.stats[0];
73
+ return { data: data, stats: stats };
41
74
  }
42
75
  else {
43
76
  console.error(result.errorMessage);
@@ -1 +1 @@
1
- {"version":3,"file":"edaManagerApi.js","sourceRoot":"","sources":["../../../../api/eda/edaManagerApi.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EACH,sBAAsB,EAItB,yBAAyB,EAIzB,yBAAyB,EAC5B,MAAM,oBAAoB,CAAC;AAU5B,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IAMlD,YAAY,KAAe,EAAE,QAAgB;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,eAAe,GAAG,IAAI,yBAAyB,CAAC,KAAK,CAAC,CAAC;QAC5D,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAsB,CAAC,KAAK,CAAC,CAAC;QACtD,IAAI,CAAC,mBAAmB,GAAG,IAAI,yBAAyB,CAAC,KAAK,CAAC,CAAC;IACpE,CAAC;IAED,gBAAgB,CAAC,EAAsB,EAAE,MAAe,EAAE,WAAqB;QAC3E,OAAO,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC,EAAC,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,EAAE,WAAW,EAAE,WAAW,IAAI,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAC,CAAgE,CAAC;IACpM,CAAC;IAED,eAAe,CAAC,EAAsB,EAAE,MAAe,EAAE,WAAqB;QAC1E,OAAO,IAAI,CAAC,eAAe,CAAC,eAAe,CAAC,EAAC,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,EAAE,WAAW,EAAE,WAAW,IAAI,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAC,CAA+D,CAAC;IAClM,CAAC;IAED,mBAAmB,CAAC,EAAsB,EAAE,MAA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,EACD,EAAC,IAAI,QAAqB,EAAE,QAAQ,EAAE,MAAM,EAAC,EAC7C,EAAC,IAAI,QAAqB,EAAE,QAAQ,EAAE,cAAc,EAAC,CACxD,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAElB,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YACd,OAAO,MAAM,CAAC,IAAgC,CAAC;QACnD,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YACnC,MAAM,MAAM,CAAC,YAAY,CAAC;QAC9B,CAAC;IACL,CAAC;IAED,aAAa;QACT,OAAO,IAAI,CAAC,mBAAmB,CAAC,cAAc,CAAC,EAAE,CAA6D,CAAC;IACnH,CAAC;CACJ","sourcesContent":["import AbstractApi from \"../abstractApi\";\r\nimport {D2WebApi, ReturnFieldEnum, UnivalTypeEnum} from \"d2jsapi\";\r\nimport {\r\n EM_DETAIL_IMPLEventApi,\r\n EM_DETAIL_IMPLLoadGroupDataResult,\r\n EM_DETAIL_IMPLLoadScenarioDataResult,\r\n EM_DETAIL_IMPLLoadVectorDataResult,\r\n EM_NAVIGATOR_IMPLEventApi,\r\n EM_NAVIGATOR_IMPLGetGroupChildrenResult,\r\n EM_NAVIGATOR_IMPLGetGroupVectorsResult,\r\n EM_NAVIGATOR_IMPLGetScenarioChildrenResult,\r\n EM_VECTOR_MANAGEREventApi\r\n} from \"./generated/events\";\r\nimport dayjs from \"d2core/dayjs\";\r\nimport {UnivalValue} from \"d2jsapi/dist/unival\";\r\n\r\nexport interface VectorValue {\r\n Value: UnivalValue\r\n}\r\n\r\ntype ClearType<T> = Omit<T, \"isOk\" | \"errorMsg\">\r\n\r\nexport default class EdaManagerApi extends AbstractApi {\r\n private readonly edaNavigatorApi: EM_NAVIGATOR_IMPLEventApi;\r\n private readonly edaDetailApi: EM_DETAIL_IMPLEventApi;\r\n private readonly edaVectorManagerApi: EM_VECTOR_MANAGEREventApi;\r\n readonly pageSize;\r\n\r\n constructor(d2Api: D2WebApi, pageSize: number) {\r\n super(d2Api);\r\n this.pageSize = pageSize;\r\n this.edaNavigatorApi = new EM_NAVIGATOR_IMPLEventApi(d2Api);\r\n this.edaDetailApi = new EM_DETAIL_IMPLEventApi(d2Api);\r\n this.edaVectorManagerApi = new EM_VECTOR_MANAGEREventApi(d2Api);\r\n }\r\n\r\n getGroupChildren(id: number | undefined, offset?: number, showOmitted?: boolean) {\r\n return this.edaNavigatorApi.GetGroupChildren({id, offset: offset ?? 0, showOmitted: showOmitted ?? false, count: this.pageSize}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetGroupChildrenResult>>;\r\n }\r\n\r\n getGroupVectors(id: number | undefined, offset?: number, showOmitted?: boolean) {\r\n return this.edaNavigatorApi.GetGroupVectors({id, offset: offset ?? 0, showOmitted: showOmitted ?? false, count: this.pageSize}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetGroupVectorsResult>>;\r\n }\r\n\r\n getScenarioChildren(id: number | undefined, offset?: number, showOmitted?: boolean) {\r\n return this.edaNavigatorApi.GetScenarioChildren({id, offset: offset ?? 0, showOmitted: showOmitted ?? false, count: this.pageSize}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetScenarioChildrenResult>>;\r\n }\r\n\r\n getScenarioVectors(id: number | undefined, offset?: number, showOmitted?: boolean, showDynamic?: boolean) {\r\n return this.edaNavigatorApi.GetScenarioVectors({id, offset: offset ?? 0, showOmitted: showOmitted ?? false, showDynamic: showDynamic ?? false, count: this.pageSize}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetScenarioChildrenResult>>;\r\n }\r\n\r\n loadVectorData(id: number) {\r\n return this.edaDetailApi.LoadVectorData({id}) as Promise<ClearType<EM_DETAIL_IMPLLoadVectorDataResult>>\r\n }\r\n\r\n loadGroupData(id: number) {\r\n return this.edaDetailApi.LoadGroupData({id}) as Promise<ClearType<EM_DETAIL_IMPLLoadGroupDataResult>>\r\n }\r\n\r\n loadScenarioData(id: number) {\r\n return this.edaDetailApi.LoadScenarioData({id}) as Promise<ClearType<EM_DETAIL_IMPLLoadScenarioDataResult>>\r\n }\r\n\r\n async readVectorValues(id: number, from: dayjs.Dayjs, to: dayjs.Dayjs, step: number) {\r\n const result = await this.d2Api.rpc(\r\n \"E.EM_VECTOR_IMPL\",\r\n \"ReadValuesFromVector\",\r\n id,\r\n from.toDate(),\r\n to.toDate(),\r\n step,\r\n {\r\n type: UnivalTypeEnum.RECORD,\r\n structType: \"SD.EM_EDA_VectorValues\",\r\n returnFields: [ReturnFieldEnum.VALUE_TIME, ReturnFieldEnum.FLAGS],\r\n returnAs: \"data\"\r\n },\r\n {type: UnivalTypeEnum.BOOL, returnAs: \"isOk\"},\r\n {type: UnivalTypeEnum.TEXT, returnAs: \"errorMessage\"}\r\n ).call(undefined);\r\n\r\n if (result.isOk) {\r\n return result.data as unknown as VectorValue[];\r\n } else {\r\n console.error(result.errorMessage);\r\n throw result.errorMessage;\r\n }\r\n }\r\n\r\n cancelSession() {\r\n return this.edaVectorManagerApi.KillEdaSession({}) as Promise<ClearType<EM_DETAIL_IMPLLoadScenarioDataResult>>;\r\n }\r\n}"]}
1
+ {"version":3,"file":"edaManagerApi.js","sourceRoot":"","sources":["../../../../api/eda/edaManagerApi.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EACH,sBAAsB,EAItB,yBAAyB,EAUzB,yBAAyB,EAC5B,MAAM,oBAAoB,CAAC;AAwB5B,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IAMlD,YAAY,KAAe,EAAE,QAAgB;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,eAAe,GAAG,IAAI,yBAAyB,CAAC,KAAK,CAAC,CAAC;QAC5D,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAsB,CAAC,KAAK,CAAC,CAAC;QACtD,IAA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AK,CAAC,GAAG,CAC/B,kBAAkB,EAClB,sBAAsB,EACtB,EAAE,EACF,IAAI,CAAC,MAAM,EAAE,EACb,EAAE,CAAC,MAAM,EAAE,EACX,IAAI,EACJ;YACI,IAAI,UAAuB;YAC3B,UAAU,EAAE,wBAAwB;YACpC,YAAY,EAAE,sBAAmD;YACjE,QAAQ,EAAE,MAAM;SACnB,EACD;YACI,IAAI,UAAuB;YAC3B,UAAU,EAAE,uBAAuB;YACnC,QAAQ,EAAE,OAAO;SACpB,EACD,EAAC,IAAI,QAAqB,EAAE,QAAQ,EAAE,MAAM,EAAC,EAC7C,EAAC,IAAI,QAAqB,EAAE,QAAQ,EAAE,cAAc,EAAC,CACxD,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAEd,IAAK,MAAM,CAAC,IAAoB,CAAC,KAAK,KAAK,OAAO,EAAE,CAAC;YACjD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAgC,CAAC;YACrD,MAAM,KAAK,GAAI,MAAM,CAAC,KAAa,CAAC,CAAC,CAA2B,CAAC;YACjE,OAAO,EAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAqB,CAAC;QAC1D,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;YACnC,MAAM,MAAM,CAAC,YAAY,CAAC;QAC9B,CAAC;IACL,CAAC;IAED,aAAa;QACT,OAAO,IAAI,CAAC,mBAAmB,CAAC,cAAc,CAAC,EAAE,CAA6D,CAAC;IACnH,CAAC;CACJ","sourcesContent":["import AbstractApi from \"../abstractApi\";\r\nimport {D2WebApi, ReturnFieldEnum, UnivalTypeEnum} from \"d2jsapi\";\r\nimport {\r\n EM_DETAIL_IMPLEventApi,\r\n EM_DETAIL_IMPLLoadGroupDataResult,\r\n EM_DETAIL_IMPLLoadScenarioDataResult,\r\n EM_DETAIL_IMPLLoadVectorDataResult,\r\n EM_NAVIGATOR_IMPLEventApi,\r\n EM_NAVIGATOR_IMPLFindGroupsResult,\r\n EM_NAVIGATOR_IMPLFindScenariosResult,\r\n EM_NAVIGATOR_IMPLFindVectorsResult,\r\n EM_NAVIGATOR_IMPLGetGroupChildrenResult,\r\n EM_NAVIGATOR_IMPLGetGroupResult,\r\n EM_NAVIGATOR_IMPLGetGroupVectorsResult,\r\n EM_NAVIGATOR_IMPLGetScenarioChildrenResult,\r\n EM_NAVIGATOR_IMPLGetScenarioResult,\r\n EM_NAVIGATOR_IMPLGetVectorResult,\r\n EM_VECTOR_MANAGEREventApi\r\n} from \"./generated/events\";\r\nimport dayjs from \"d2core/dayjs\";\r\nimport {UnivalValue} from \"d2jsapi/dist/unival\";\r\nimport {AdvancedFilterCondition} from \"../advancedFilterApi\";\r\nimport {SD_EM_Filter_Condition} from \"./generated/structures\";\r\n\r\nexport interface VectorValue {\r\n Value: UnivalValue\r\n}\r\n\r\nexport interface VectorStats {\r\n Min: UnivalValue\r\n Max: UnivalValue\r\n Sum: UnivalValue\r\n Avg: UnivalValue\r\n}\r\n\r\nexport interface VectorValuesData {\r\n data?: VectorValue[]\r\n stats?: VectorStats\r\n}\r\n\r\ntype ClearType<T> = Omit<T, \"isOk\" | \"errorMsg\">\r\n\r\nexport default class EdaManagerApi extends AbstractApi {\r\n private readonly edaNavigatorApi: EM_NAVIGATOR_IMPLEventApi;\r\n private readonly edaDetailApi: EM_DETAIL_IMPLEventApi;\r\n private readonly edaVectorManagerApi: EM_VECTOR_MANAGEREventApi;\r\n readonly pageSize;\r\n\r\n constructor(d2Api: D2WebApi, pageSize: number) {\r\n super(d2Api);\r\n this.pageSize = pageSize;\r\n this.edaNavigatorApi = new EM_NAVIGATOR_IMPLEventApi(d2Api);\r\n this.edaDetailApi = new EM_DETAIL_IMPLEventApi(d2Api);\r\n this.edaVectorManagerApi = new EM_VECTOR_MANAGEREventApi(d2Api);\r\n }\r\n\r\n getGroupChildren(id: number | undefined, offset?: number, showOmitted?: boolean) {\r\n return this.edaNavigatorApi.GetGroupChildren({id, offset: offset ?? 0, showOmitted: showOmitted ?? false, count: this.pageSize}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetGroupChildrenResult>>;\r\n }\r\n\r\n getGroupVectors(id: number | undefined, offset?: number, showOmitted?: boolean) {\r\n return this.edaNavigatorApi.GetGroupVectors({id, offset: offset ?? 0, showOmitted: showOmitted ?? false, count: this.pageSize}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetGroupVectorsResult>>;\r\n }\r\n\r\n getScenarioChildren(id: number | undefined, offset?: number, showOmitted?: boolean) {\r\n return this.edaNavigatorApi.GetScenarioChildren({id, offset: offset ?? 0, showOmitted: showOmitted ?? false, count: this.pageSize}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetScenarioChildrenResult>>;\r\n }\r\n\r\n getScenarioVectors(id: number | undefined, offset?: number, showOmitted?: boolean, showDynamic?: boolean) {\r\n return this.edaNavigatorApi.GetScenarioVectors({id, offset: offset ?? 0, showOmitted: showOmitted ?? false, showDynamic: showDynamic ?? false, count: this.pageSize}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetScenarioChildrenResult>>;\r\n }\r\n\r\n loadVectorData(id: number) {\r\n return this.edaDetailApi.LoadVectorData({id}) as Promise<ClearType<EM_DETAIL_IMPLLoadVectorDataResult>>\r\n }\r\n\r\n loadGroupData(id: number) {\r\n return this.edaDetailApi.LoadGroupData({id}) as Promise<ClearType<EM_DETAIL_IMPLLoadGroupDataResult>>\r\n }\r\n\r\n loadScenarioData(id: number) {\r\n return this.edaDetailApi.LoadScenarioData({id}) as Promise<ClearType<EM_DETAIL_IMPLLoadScenarioDataResult>>\r\n }\r\n\r\n getVector(id: number) {\r\n return this.edaNavigatorApi.GetVector({id}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetVectorResult>>\r\n }\r\n\r\n getGroup(id: number) {\r\n return this.edaNavigatorApi.GetGroup({id}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetGroupResult>>\r\n }\r\n\r\n getScenario(id: number) {\r\n return this.edaNavigatorApi.GetScenario({id}) as Promise<ClearType<EM_NAVIGATOR_IMPLGetScenarioResult>>\r\n }\r\n\r\n findVectors(filter: AdvancedFilterCondition[]) {\r\n return this.edaNavigatorApi.FindVectors({\r\n conditions: filter as SD_EM_Filter_Condition[],\r\n count: this.pageSize\r\n }) as Promise<ClearType<EM_NAVIGATOR_IMPLFindVectorsResult>>\r\n }\r\n\r\n findGroups(filter: AdvancedFilterCondition[]) {\r\n return this.edaNavigatorApi.FindGroups({\r\n conditions: filter as SD_EM_Filter_Condition[],\r\n count: this.pageSize\r\n }) as Promise<ClearType<EM_NAVIGATOR_IMPLFindGroupsResult>>\r\n }\r\n\r\n findScenarios(filter: AdvancedFilterCondition[]) {\r\n return this.edaNavigatorApi.FindScenarios({\r\n conditions: filter as SD_EM_Filter_Condition[],\r\n count: this.pageSize\r\n }) as Promise<ClearType<EM_NAVIGATOR_IMPLFindScenariosResult>>\r\n }\r\n\r\n async readVectorValues(id: number, from: dayjs.Dayjs, to: dayjs.Dayjs, step: number) {\r\n const result = await this.d2Api.rpc(\r\n \"E.EM_VECTOR_IMPL\",\r\n \"ReadValuesFromVector\",\r\n id,\r\n from.toDate(),\r\n to.toDate(),\r\n step,\r\n {\r\n type: UnivalTypeEnum.RECORD,\r\n structType: \"SD.EM_EDA_VectorValues\",\r\n returnFields: [ReturnFieldEnum.VALUE_TIME, ReturnFieldEnum.FLAGS],\r\n returnAs: \"data\"\r\n },\r\n {\r\n type: UnivalTypeEnum.RECORD,\r\n structType: \"SD.EM_EDA_VectorStats\",\r\n returnAs: \"stats\"\r\n },\r\n {type: UnivalTypeEnum.BOOL, returnAs: \"isOk\"},\r\n {type: UnivalTypeEnum.TEXT, returnAs: \"errorMessage\"}\r\n ).call(60000);\r\n\r\n if ((result.isOk as UnivalValue).value === \"vTrue\") {\r\n const data = result.data as unknown as VectorValue[];\r\n const stats = (result.stats as any)[0] as unknown as VectorStats;\r\n return {data: data, stats: stats} as VectorValuesData;\r\n } else {\r\n console.error(result.errorMessage);\r\n throw result.errorMessage;\r\n }\r\n }\r\n\r\n cancelSession() {\r\n return this.edaVectorManagerApi.KillEdaSession({}) as Promise<ClearType<EM_DETAIL_IMPLLoadScenarioDataResult>>;\r\n }\r\n}"]}
@@ -10,6 +10,35 @@ export interface EM_DETAIL_IMPLLoadScenarioDataParameters {
10
10
  export interface EM_DETAIL_IMPLLoadVectorDataParameters {
11
11
  id: number;
12
12
  }
13
+ export interface EM_VECTOR_IMPLReadValuesFromVectorParameters {
14
+ id: number;
15
+ from: UnixTime;
16
+ to: UnixTime;
17
+ step: number;
18
+ }
19
+ export interface EM_VECTOR_MANAGERInsertSessionParameters {
20
+ processId: number;
21
+ }
22
+ export interface EM_VECTOR_MANAGERKillEdaSessionParameters {
23
+ }
24
+ export interface EM_VECTOR_MANAGERRemoveSessionParameters {
25
+ processId: number;
26
+ }
27
+ export interface EM_NAVIGATOR_IMPLFindGroupsParameters {
28
+ conditions: Partial<SD.SD_EM_Filter_Condition>[];
29
+ count: number;
30
+ }
31
+ export interface EM_NAVIGATOR_IMPLFindScenariosParameters {
32
+ conditions: Partial<SD.SD_EM_Filter_Condition>[];
33
+ count: number;
34
+ }
35
+ export interface EM_NAVIGATOR_IMPLFindVectorsParameters {
36
+ conditions: Partial<SD.SD_EM_Filter_Condition>[];
37
+ count: number;
38
+ }
39
+ export interface EM_NAVIGATOR_IMPLGetGroupParameters {
40
+ id: number;
41
+ }
13
42
  export interface EM_NAVIGATOR_IMPLGetGroupChildrenParameters {
14
43
  id: number;
15
44
  showOmitted: boolean;
@@ -22,6 +51,9 @@ export interface EM_NAVIGATOR_IMPLGetGroupVectorsParameters {
22
51
  count: number;
23
52
  offset: number;
24
53
  }
54
+ export interface EM_NAVIGATOR_IMPLGetScenarioParameters {
55
+ id: number;
56
+ }
25
57
  export interface EM_NAVIGATOR_IMPLGetScenarioChildrenParameters {
26
58
  id: number;
27
59
  showOmitted: boolean;
@@ -35,19 +67,8 @@ export interface EM_NAVIGATOR_IMPLGetScenarioVectorsParameters {
35
67
  count: number;
36
68
  offset: number;
37
69
  }
38
- export interface EM_VECTOR_IMPLReadValuesFromVectorParameters {
70
+ export interface EM_NAVIGATOR_IMPLGetVectorParameters {
39
71
  id: number;
40
- from: UnixTime;
41
- to: UnixTime;
42
- step: number;
43
- }
44
- export interface EM_VECTOR_MANAGERInsertSessionParameters {
45
- processId: number;
46
- }
47
- export interface EM_VECTOR_MANAGERKillEdaSessionParameters {
48
- }
49
- export interface EM_VECTOR_MANAGERRemoveSessionParameters {
50
- processId: number;
51
72
  }
52
73
  export interface EM_DETAIL_IMPLLoadGroupDataResult {
53
74
  data: Partial<SD.SD_EM_EDA_GroupVector>[];
@@ -66,6 +87,40 @@ export interface EM_DETAIL_IMPLLoadVectorDataResult {
66
87
  isOk: boolean;
67
88
  errorMsg: string;
68
89
  }
90
+ export interface EM_VECTOR_IMPLReadValuesFromVectorResult {
91
+ data: Partial<SD.SD_EM_EDA_VectorValues>[];
92
+ stats: Partial<SD.SD_EM_EDA_VectorStats>[];
93
+ isOk: boolean;
94
+ errorMsg: string;
95
+ }
96
+ export interface EM_VECTOR_MANAGERInsertSessionResult {
97
+ }
98
+ export interface EM_VECTOR_MANAGERKillEdaSessionResult {
99
+ isOk: boolean;
100
+ errorMsg: string;
101
+ }
102
+ export interface EM_VECTOR_MANAGERRemoveSessionResult {
103
+ }
104
+ export interface EM_NAVIGATOR_IMPLFindGroupsResult {
105
+ items: Partial<SD.SD_EM_Tree_Item>[];
106
+ isOk: boolean;
107
+ errorMsg: string;
108
+ }
109
+ export interface EM_NAVIGATOR_IMPLFindScenariosResult {
110
+ items: Partial<SD.SD_EM_Tree_Item>[];
111
+ isOk: boolean;
112
+ errorMsg: string;
113
+ }
114
+ export interface EM_NAVIGATOR_IMPLFindVectorsResult {
115
+ items: Partial<SD.SD_EM_Tree_Item>[];
116
+ isOk: boolean;
117
+ errorMsg: string;
118
+ }
119
+ export interface EM_NAVIGATOR_IMPLGetGroupResult {
120
+ item: Partial<SD.SD_EM_Tree_Item>[];
121
+ isOk: boolean;
122
+ errorMsg: string;
123
+ }
69
124
  export interface EM_NAVIGATOR_IMPLGetGroupChildrenResult {
70
125
  items: Partial<SD.SD_EM_Tree_Item>[];
71
126
  leftCount: number;
@@ -78,6 +133,11 @@ export interface EM_NAVIGATOR_IMPLGetGroupVectorsResult {
78
133
  isOk: boolean;
79
134
  errorMsg: string;
80
135
  }
136
+ export interface EM_NAVIGATOR_IMPLGetScenarioResult {
137
+ item: Partial<SD.SD_EM_Tree_Item>[];
138
+ isOk: boolean;
139
+ errorMsg: string;
140
+ }
81
141
  export interface EM_NAVIGATOR_IMPLGetScenarioChildrenResult {
82
142
  items: Partial<SD.SD_EM_Tree_Item>[];
83
143
  leftCount: number;
@@ -90,19 +150,11 @@ export interface EM_NAVIGATOR_IMPLGetScenarioVectorsResult {
90
150
  isOk: boolean;
91
151
  errorMsg: string;
92
152
  }
93
- export interface EM_VECTOR_IMPLReadValuesFromVectorResult {
94
- data: Partial<SD.SD_EM_EDA_VectorValues>[];
153
+ export interface EM_NAVIGATOR_IMPLGetVectorResult {
154
+ item: Partial<SD.SD_EM_Tree_Item>[];
95
155
  isOk: boolean;
96
156
  errorMsg: string;
97
157
  }
98
- export interface EM_VECTOR_MANAGERInsertSessionResult {
99
- }
100
- export interface EM_VECTOR_MANAGERKillEdaSessionResult {
101
- isOk: boolean;
102
- errorMsg: string;
103
- }
104
- export interface EM_VECTOR_MANAGERRemoveSessionResult {
105
- }
106
158
  declare class BaseApi {
107
159
  protected d2api: D2WebApi;
108
160
  constructor(d2api: D2WebApi);
@@ -115,12 +167,6 @@ export declare class EM_DETAIL_IMPLEventApi extends BaseApi {
115
167
  LoadScenarioData(parameters: Partial<EM_DETAIL_IMPLLoadScenarioDataParameters>, callParameters?: CallParameters): Promise<Partial<EM_DETAIL_IMPLLoadScenarioDataResult>>;
116
168
  LoadVectorData(parameters: Partial<EM_DETAIL_IMPLLoadVectorDataParameters>, callParameters?: CallParameters): Promise<Partial<EM_DETAIL_IMPLLoadVectorDataResult>>;
117
169
  }
118
- export declare class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
119
- GetGroupChildren(parameters: Partial<EM_NAVIGATOR_IMPLGetGroupChildrenParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetGroupChildrenResult>>;
120
- GetGroupVectors(parameters: Partial<EM_NAVIGATOR_IMPLGetGroupVectorsParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetGroupVectorsResult>>;
121
- GetScenarioChildren(parameters: Partial<EM_NAVIGATOR_IMPLGetScenarioChildrenParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetScenarioChildrenResult>>;
122
- GetScenarioVectors(parameters: Partial<EM_NAVIGATOR_IMPLGetScenarioVectorsParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetScenarioVectorsResult>>;
123
- }
124
170
  export declare class EM_VECTOR_IMPLEventApi extends BaseApi {
125
171
  ReadValuesFromVector(parameters: Partial<EM_VECTOR_IMPLReadValuesFromVectorParameters>, callParameters?: CallParameters): Promise<Partial<EM_VECTOR_IMPLReadValuesFromVectorResult>>;
126
172
  }
@@ -129,4 +175,16 @@ export declare class EM_VECTOR_MANAGEREventApi extends BaseApi {
129
175
  KillEdaSession(parameters: Partial<EM_VECTOR_MANAGERKillEdaSessionParameters>, callParameters?: CallParameters): Promise<Partial<EM_VECTOR_MANAGERKillEdaSessionResult>>;
130
176
  RemoveSession(parameters: Partial<EM_VECTOR_MANAGERRemoveSessionParameters>, callParameters?: CallParameters): Promise<Partial<EM_VECTOR_MANAGERRemoveSessionResult>>;
131
177
  }
178
+ export declare class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
179
+ FindGroups(parameters: Partial<EM_NAVIGATOR_IMPLFindGroupsParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLFindGroupsResult>>;
180
+ FindScenarios(parameters: Partial<EM_NAVIGATOR_IMPLFindScenariosParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLFindScenariosResult>>;
181
+ FindVectors(parameters: Partial<EM_NAVIGATOR_IMPLFindVectorsParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLFindVectorsResult>>;
182
+ GetGroup(parameters: Partial<EM_NAVIGATOR_IMPLGetGroupParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetGroupResult>>;
183
+ GetGroupChildren(parameters: Partial<EM_NAVIGATOR_IMPLGetGroupChildrenParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetGroupChildrenResult>>;
184
+ GetGroupVectors(parameters: Partial<EM_NAVIGATOR_IMPLGetGroupVectorsParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetGroupVectorsResult>>;
185
+ GetScenario(parameters: Partial<EM_NAVIGATOR_IMPLGetScenarioParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetScenarioResult>>;
186
+ GetScenarioChildren(parameters: Partial<EM_NAVIGATOR_IMPLGetScenarioChildrenParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetScenarioChildrenResult>>;
187
+ GetScenarioVectors(parameters: Partial<EM_NAVIGATOR_IMPLGetScenarioVectorsParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetScenarioVectorsResult>>;
188
+ GetVector(parameters: Partial<EM_NAVIGATOR_IMPLGetVectorParameters>, callParameters?: CallParameters): Promise<Partial<EM_NAVIGATOR_IMPLGetVectorResult>>;
189
+ }
132
190
  export {};
@@ -133,18 +133,84 @@ export class EM_DETAIL_IMPLEventApi extends BaseApi {
133
133
  });
134
134
  }
135
135
  }
136
- export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
137
- async GetGroupChildren(parameters, callParameters = {}) {
136
+ export class EM_VECTOR_IMPLEventApi extends BaseApi {
137
+ async ReadValuesFromVector(parameters, callParameters = {}) {
138
138
  return new Promise(async (resolve) => {
139
139
  const inParams = [
140
140
  { type: "int", name: "id" },
141
- { type: "bool", name: "showOmitted" },
141
+ { type: "time", name: "from" },
142
+ { type: "time", name: "to" },
143
+ { type: "int", name: "step" },
144
+ ];
145
+ const outParams = [
146
+ { type: "record", name: "data", structName: "SD.EM_EDA_VectorValues", structFields: ["Value"] },
147
+ { type: "record", name: "stats", structName: "SD.EM_EDA_VectorStats", structFields: ["Min", "Max", "Sum", "Avg"] },
148
+ { type: "bool", name: "isOk" },
149
+ { type: "text", name: "errorMsg" },
150
+ ];
151
+ const processedParams = [
152
+ ...processInParameters(parameters, inParams),
153
+ ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
154
+ ];
155
+ const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
156
+ resolve(processOutParameters(result, outParams));
157
+ });
158
+ }
159
+ }
160
+ export class EM_VECTOR_MANAGEREventApi extends BaseApi {
161
+ async InsertSession(parameters, callParameters = {}) {
162
+ return new Promise(async (resolve) => {
163
+ const inParams = [
164
+ { type: "int", name: "processId" },
165
+ ];
166
+ const outParams = [];
167
+ const processedParams = [
168
+ ...processInParameters(parameters, inParams),
169
+ ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
170
+ ];
171
+ const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "InsertSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
172
+ resolve(processOutParameters(result, outParams));
173
+ });
174
+ }
175
+ async KillEdaSession(parameters, callParameters = {}) {
176
+ return new Promise(async (resolve) => {
177
+ const inParams = [];
178
+ const outParams = [
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_VECTOR_MANAGER", "KillEdaSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
187
+ resolve(processOutParameters(result, outParams));
188
+ });
189
+ }
190
+ async RemoveSession(parameters, callParameters = {}) {
191
+ return new Promise(async (resolve) => {
192
+ const inParams = [
193
+ { type: "int", name: "processId" },
194
+ ];
195
+ const outParams = [];
196
+ const processedParams = [
197
+ ...processInParameters(parameters, inParams),
198
+ ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
199
+ ];
200
+ const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "RemoveSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
201
+ resolve(processOutParameters(result, outParams));
202
+ });
203
+ }
204
+ }
205
+ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
206
+ async FindGroups(parameters, callParameters = {}) {
207
+ return new Promise(async (resolve) => {
208
+ const inParams = [
209
+ { 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"] },
142
210
  { type: "int", name: "count" },
143
- { type: "int", name: "offset" },
144
211
  ];
145
212
  const outParams = [
146
- { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type"] },
147
- { type: "int", name: "leftCount" },
213
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
148
214
  { type: "bool", name: "isOk" },
149
215
  { type: "text", name: "errorMsg" },
150
216
  ];
@@ -152,21 +218,18 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
152
218
  ...processInParameters(parameters, inParams),
153
219
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
154
220
  ];
155
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
221
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindGroups", ...processedParams).callAndGet(undefined, callParameters.timeout);
156
222
  resolve(processOutParameters(result, outParams));
157
223
  });
158
224
  }
159
- async GetGroupVectors(parameters, callParameters = {}) {
225
+ async FindScenarios(parameters, callParameters = {}) {
160
226
  return new Promise(async (resolve) => {
161
227
  const inParams = [
162
- { type: "int", name: "id" },
163
- { type: "bool", name: "showOmitted" },
228
+ { 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"] },
164
229
  { type: "int", name: "count" },
165
- { type: "int", name: "offset" },
166
230
  ];
167
231
  const outParams = [
168
- { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type"] },
169
- { type: "int", name: "leftCount" },
232
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
170
233
  { type: "bool", name: "isOk" },
171
234
  { type: "text", name: "errorMsg" },
172
235
  ];
@@ -174,11 +237,48 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
174
237
  ...processInParameters(parameters, inParams),
175
238
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
176
239
  ];
177
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
240
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindScenarios", ...processedParams).callAndGet(undefined, callParameters.timeout);
178
241
  resolve(processOutParameters(result, outParams));
179
242
  });
180
243
  }
181
- async GetScenarioChildren(parameters, callParameters = {}) {
244
+ async FindVectors(parameters, callParameters = {}) {
245
+ return new Promise(async (resolve) => {
246
+ const inParams = [
247
+ { 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"] },
248
+ { type: "int", name: "count" },
249
+ ];
250
+ const outParams = [
251
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
252
+ { type: "bool", name: "isOk" },
253
+ { type: "text", name: "errorMsg" },
254
+ ];
255
+ const processedParams = [
256
+ ...processInParameters(parameters, inParams),
257
+ ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
258
+ ];
259
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "FindVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
260
+ resolve(processOutParameters(result, outParams));
261
+ });
262
+ }
263
+ async GetGroup(parameters, callParameters = {}) {
264
+ return new Promise(async (resolve) => {
265
+ const inParams = [
266
+ { type: "int", name: "id" },
267
+ ];
268
+ const outParams = [
269
+ { type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
270
+ { type: "bool", name: "isOk" },
271
+ { type: "text", name: "errorMsg" },
272
+ ];
273
+ const processedParams = [
274
+ ...processInParameters(parameters, inParams),
275
+ ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
276
+ ];
277
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroup", ...processedParams).callAndGet(undefined, callParameters.timeout);
278
+ resolve(processOutParameters(result, outParams));
279
+ });
280
+ }
281
+ async GetGroupChildren(parameters, callParameters = {}) {
182
282
  return new Promise(async (resolve) => {
183
283
  const inParams = [
184
284
  { type: "int", name: "id" },
@@ -187,7 +287,7 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
187
287
  { type: "int", name: "offset" },
188
288
  ];
189
289
  const outParams = [
190
- { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type"] },
290
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
191
291
  { type: "int", name: "leftCount" },
192
292
  { type: "bool", name: "isOk" },
193
293
  { type: "text", name: "errorMsg" },
@@ -196,21 +296,20 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
196
296
  ...processInParameters(parameters, inParams),
197
297
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
198
298
  ];
199
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
299
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
200
300
  resolve(processOutParameters(result, outParams));
201
301
  });
202
302
  }
203
- async GetScenarioVectors(parameters, callParameters = {}) {
303
+ async GetGroupVectors(parameters, callParameters = {}) {
204
304
  return new Promise(async (resolve) => {
205
305
  const inParams = [
206
306
  { type: "int", name: "id" },
207
307
  { type: "bool", name: "showOmitted" },
208
- { type: "bool", name: "showDynamic" },
209
308
  { type: "int", name: "count" },
210
309
  { type: "int", name: "offset" },
211
310
  ];
212
311
  const outParams = [
213
- { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type"] },
312
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
214
313
  { type: "int", name: "leftCount" },
215
314
  { type: "bool", name: "isOk" },
216
315
  { type: "text", name: "errorMsg" },
@@ -219,22 +318,17 @@ export class EM_NAVIGATOR_IMPLEventApi extends BaseApi {
219
318
  ...processInParameters(parameters, inParams),
220
319
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
221
320
  ];
222
- const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
321
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetGroupVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
223
322
  resolve(processOutParameters(result, outParams));
224
323
  });
225
324
  }
226
- }
227
- export class EM_VECTOR_IMPLEventApi extends BaseApi {
228
- async ReadValuesFromVector(parameters, callParameters = {}) {
325
+ async GetScenario(parameters, callParameters = {}) {
229
326
  return new Promise(async (resolve) => {
230
327
  const inParams = [
231
328
  { type: "int", name: "id" },
232
- { type: "time", name: "from" },
233
- { type: "time", name: "to" },
234
- { type: "int", name: "step" },
235
329
  ];
236
330
  const outParams = [
237
- { type: "record", name: "data", structName: "SD.EM_EDA_VectorValues", structFields: ["Value"] },
331
+ { type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
238
332
  { type: "bool", name: "isOk" },
239
333
  { type: "text", name: "errorMsg" },
240
334
  ];
@@ -242,30 +336,44 @@ export class EM_VECTOR_IMPLEventApi extends BaseApi {
242
336
  ...processInParameters(parameters, inParams),
243
337
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
244
338
  ];
245
- const result = await this.d2api.rpc("E.EM_VECTOR_IMPL", "ReadValuesFromVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
339
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenario", ...processedParams).callAndGet(undefined, callParameters.timeout);
246
340
  resolve(processOutParameters(result, outParams));
247
341
  });
248
342
  }
249
- }
250
- export class EM_VECTOR_MANAGEREventApi extends BaseApi {
251
- async InsertSession(parameters, callParameters = {}) {
343
+ async GetScenarioChildren(parameters, callParameters = {}) {
252
344
  return new Promise(async (resolve) => {
253
345
  const inParams = [
254
- { type: "int", name: "processId" },
346
+ { type: "int", name: "id" },
347
+ { type: "bool", name: "showOmitted" },
348
+ { type: "int", name: "count" },
349
+ { type: "int", name: "offset" },
350
+ ];
351
+ const outParams = [
352
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
353
+ { type: "int", name: "leftCount" },
354
+ { type: "bool", name: "isOk" },
355
+ { type: "text", name: "errorMsg" },
255
356
  ];
256
- const outParams = [];
257
357
  const processedParams = [
258
358
  ...processInParameters(parameters, inParams),
259
359
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
260
360
  ];
261
- const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "InsertSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
361
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioChildren", ...processedParams).callAndGet(undefined, callParameters.timeout);
262
362
  resolve(processOutParameters(result, outParams));
263
363
  });
264
364
  }
265
- async KillEdaSession(parameters, callParameters = {}) {
365
+ async GetScenarioVectors(parameters, callParameters = {}) {
266
366
  return new Promise(async (resolve) => {
267
- const inParams = [];
367
+ const inParams = [
368
+ { type: "int", name: "id" },
369
+ { type: "bool", name: "showOmitted" },
370
+ { type: "bool", name: "showDynamic" },
371
+ { type: "int", name: "count" },
372
+ { type: "int", name: "offset" },
373
+ ];
268
374
  const outParams = [
375
+ { type: "record", name: "items", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
376
+ { type: "int", name: "leftCount" },
269
377
  { type: "bool", name: "isOk" },
270
378
  { type: "text", name: "errorMsg" },
271
379
  ];
@@ -273,21 +381,25 @@ export class EM_VECTOR_MANAGEREventApi extends BaseApi {
273
381
  ...processInParameters(parameters, inParams),
274
382
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
275
383
  ];
276
- const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "KillEdaSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
384
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetScenarioVectors", ...processedParams).callAndGet(undefined, callParameters.timeout);
277
385
  resolve(processOutParameters(result, outParams));
278
386
  });
279
387
  }
280
- async RemoveSession(parameters, callParameters = {}) {
388
+ async GetVector(parameters, callParameters = {}) {
281
389
  return new Promise(async (resolve) => {
282
390
  const inParams = [
283
- { type: "int", name: "processId" },
391
+ { type: "int", name: "id" },
392
+ ];
393
+ const outParams = [
394
+ { type: "record", name: "item", structName: "SD.EM_Tree_Item", structFields: ["ID", "ParentID", "Name", "Path", "DisplayName", "Type", "Units", "RoundingType", "RoundingPlaces"] },
395
+ { type: "bool", name: "isOk" },
396
+ { type: "text", name: "errorMsg" },
284
397
  ];
285
- const outParams = [];
286
398
  const processedParams = [
287
399
  ...processInParameters(parameters, inParams),
288
400
  ...outParams.map((p) => ({ type: p.type, returnAs: p.name, structType: p.structName }))
289
401
  ];
290
- const result = await this.d2api.rpc("E.EM_VECTOR_MANAGER", "RemoveSession", ...processedParams).callAndGet(undefined, callParameters.timeout);
402
+ const result = await this.d2api.rpc("E.EM_NAVIGATOR_IMPL", "GetVector", ...processedParams).callAndGet(undefined, callParameters.timeout);
291
403
  resolve(processOutParameters(result, outParams));
292
404
  });
293
405
  }