@dative-gpi/foundation-core-domain 1.0.188 → 1.0.189-add-absolute-composable2
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.
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AggregationType, EntityType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
2
|
+
|
|
3
|
+
export interface AbsoluteProfitsComparisonFilter {
|
|
4
|
+
referencePeriodStart: string;
|
|
5
|
+
referencePeriodEnd: string;
|
|
6
|
+
observedPeriodStart: string;
|
|
7
|
+
observedPeriodEnd: string;
|
|
8
|
+
|
|
9
|
+
dataDefinitionId: string;
|
|
10
|
+
timeOffset: number;
|
|
11
|
+
|
|
12
|
+
entityType: EntityType;
|
|
13
|
+
entitiesIds: string[];
|
|
14
|
+
|
|
15
|
+
unit: string;
|
|
16
|
+
aggregation: AggregationType;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./absoluteProfitsComparisonFilter";
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { AggregationType, DataTable, DatePart, DurationType, EntityType, ExecutionMode, FilterType, MergeMode, PlotPer, RootMode, SortDirection, TimeUnit } from "@dative-gpi/foundation-shared-domain/enums";
|
|
2
|
+
import type { DateVariableDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
|
|
4
|
+
export interface DataFiltersDTO {
|
|
5
|
+
startDate: string;
|
|
6
|
+
endDate: string;
|
|
7
|
+
timeOffset: number;
|
|
8
|
+
dateVariables: DateVariableDTO[];
|
|
9
|
+
mode: RootMode;
|
|
10
|
+
node?: DataNodeDTO;
|
|
11
|
+
leaf?: DataLeafDTO;
|
|
12
|
+
rawLeaf?: DataLeafRawDTO;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface DataNodeDTO {
|
|
16
|
+
label: string;
|
|
17
|
+
aggregation: AggregationType;
|
|
18
|
+
aggregateByEntity: PlotPer;
|
|
19
|
+
aggregationTimeStep?: TimeStepDTO;
|
|
20
|
+
nodeMode: MergeMode;
|
|
21
|
+
formula: string;
|
|
22
|
+
unit: string;
|
|
23
|
+
take: number;
|
|
24
|
+
executionMode: ExecutionMode;
|
|
25
|
+
executionIndex: number;
|
|
26
|
+
nodes: DataNodeDTO[];
|
|
27
|
+
leaves: DataLeafDTO[];
|
|
28
|
+
rawLeaves: DataLeafRawDTO[];
|
|
29
|
+
codeTemplate: string;
|
|
30
|
+
labelTemplate: string;
|
|
31
|
+
correlationId: string;
|
|
32
|
+
filters: string[];
|
|
33
|
+
formulaResults: DataNodeFormulaResultDTO[];
|
|
34
|
+
mergeMode: MergeMode;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface DataLeafDTO {
|
|
38
|
+
correlationId: string;
|
|
39
|
+
entitiesIds: string[];
|
|
40
|
+
entityType: EntityType;
|
|
41
|
+
labelTemplate?: string;
|
|
42
|
+
aggregateByEntity: PlotPer;
|
|
43
|
+
aggregationTimeStep?: TimeStepDTO;
|
|
44
|
+
duration: DurationType;
|
|
45
|
+
durationTimeStep?: TimeStepDTO;
|
|
46
|
+
durationDataDefinitionId?: string;
|
|
47
|
+
durationDataScale: number;
|
|
48
|
+
dataDefinitions: DataLeafDataItemDTO[];
|
|
49
|
+
groupByDataDefinitionIds: string[];
|
|
50
|
+
take: number;
|
|
51
|
+
removeRedundants: boolean;
|
|
52
|
+
dataCriterias: DataCriteriaDTO[];
|
|
53
|
+
timeCriterias: TimeCriteriaDTO[];
|
|
54
|
+
executionIndex: number;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export interface DataLeafRawDTO {
|
|
58
|
+
correlationId: string;
|
|
59
|
+
entitiesIds: string[];
|
|
60
|
+
entityType: EntityType;
|
|
61
|
+
labelTemplate: string;
|
|
62
|
+
duration: DurationType;
|
|
63
|
+
durationDataDefinitionId: string;
|
|
64
|
+
durationDataScale: number;
|
|
65
|
+
dataDefinitions: DataLeafRawDataItemDTO[];
|
|
66
|
+
take: number;
|
|
67
|
+
removeRedundants: boolean;
|
|
68
|
+
dataCriterias: DataCriteriaDTO[];
|
|
69
|
+
timeCriterias: TimeCriteriaDTO[];
|
|
70
|
+
executionIndex: number;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface TimeStepDTO {
|
|
74
|
+
value: number;
|
|
75
|
+
unit: TimeUnit
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export interface DataNodeFormulaResultDTO {
|
|
79
|
+
code: string;
|
|
80
|
+
unit: string;
|
|
81
|
+
label: string;
|
|
82
|
+
dataType: DataTable;
|
|
83
|
+
sort: SortDirection;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface DataLeafDataItemDTO {
|
|
87
|
+
dataDefinitionId: string;
|
|
88
|
+
codeTemplate: string;
|
|
89
|
+
label: string;
|
|
90
|
+
unit: string;
|
|
91
|
+
sort: SortDirection;
|
|
92
|
+
aggregation: AggregationType;
|
|
93
|
+
code: string;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface DataCriteriaDTO {
|
|
97
|
+
dataDefinitionId: string;
|
|
98
|
+
operator: FilterType;
|
|
99
|
+
values: string[];
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface TimeCriteriaDTO {
|
|
103
|
+
datePart: DatePart;
|
|
104
|
+
operator: FilterType;
|
|
105
|
+
values: number[];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export interface DataLeafRawDataItemDTO {
|
|
109
|
+
dataDefinitionId: string;
|
|
110
|
+
codeTemplate: string;
|
|
111
|
+
label: string;
|
|
112
|
+
unit: string;
|
|
113
|
+
sort: SortDirection;
|
|
114
|
+
code: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface DataSerieDTO {
|
|
118
|
+
label: string;
|
|
119
|
+
code: string;
|
|
120
|
+
correlationId: string;
|
|
121
|
+
meta: SerieDTO;
|
|
122
|
+
datas: DataPointsDTO[];
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface SerieDTO {
|
|
126
|
+
entityId: string;
|
|
127
|
+
entityLabel: string;
|
|
128
|
+
valueUnits: string[];
|
|
129
|
+
valueLabel: string[];
|
|
130
|
+
valueCodes: string[];
|
|
131
|
+
groupByValues: object[];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface DataPointsDTO {
|
|
135
|
+
timestamp: number;
|
|
136
|
+
closeTimeStamp: number;
|
|
137
|
+
values: object[];
|
|
138
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./data";
|
package/models/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./absoluteProfitsComparison";
|
|
1
2
|
export * from "./actions";
|
|
2
3
|
export * from "./alerts";
|
|
3
4
|
export * from "./articles";
|
|
@@ -22,6 +23,7 @@ export * from "./dashboardShallowVariables"; // No service
|
|
|
22
23
|
export * from "./dashboardShallowWidgets"; // No service
|
|
23
24
|
export * from "./dashboardVariables"; // No service
|
|
24
25
|
export * from "./dashboardVariableValues"; // No service
|
|
26
|
+
export * from "./data";
|
|
25
27
|
export * from "./dataCategories";
|
|
26
28
|
export * from "./dataDefinitions";
|
|
27
29
|
export * from "./dataDefinitionMappings"; // No service
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
|
|
5
5
|
},
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.189-add-absolute-composable2",
|
|
8
8
|
"description": "",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.0.189-add-absolute-composable2",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.0.189-add-absolute-composable2"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "db43320daa21c762f0f6cc298e03fa93c86d49d8"
|
|
20
20
|
}
|