@dative-gpi/foundation-core-domain 0.0.124 → 0.0.126

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.
@@ -1,17 +1,20 @@
1
1
  export class AlertDataDefinition {
2
- dataDefinitionId: string;
3
- value: string;
4
- label: string;
5
-
6
- constructor(params: AlertDataDefinitionDTO) {
7
- this.dataDefinitionId = params.dataDefinitionId;
8
- this.value = params.value;
9
- this.label = params.label;
10
- }
2
+ dataDefinitionId: string;
3
+ value: string;
4
+ unit: string;
5
+ label: string;
6
+
7
+ constructor(params: AlertDataDefinitionDTO) {
8
+ this.dataDefinitionId = params.dataDefinitionId;
9
+ this.value = params.value;
10
+ this.unit = params.unit;
11
+ this.label = params.label;
11
12
  }
12
-
13
- export interface AlertDataDefinitionDTO {
14
- dataDefinitionId: string;
15
- value: string;
16
- label: string;
17
- }
13
+ }
14
+
15
+ export interface AlertDataDefinitionDTO {
16
+ dataDefinitionId: string;
17
+ value: string;
18
+ unit: string;
19
+ label: string;
20
+ }
@@ -1,7 +1,8 @@
1
+ import { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
2
+
1
3
  import { DashboardInfos, DashboardInfosDTO } from "./dashboardInfos";
2
4
  import { WidgetInfos, WidgetInfosDTO } from "../widgets/widgetInfos";
3
5
  import { SelectedEntities } from "../enums/sharedEnums";
4
- import { AutoRefresh } from "../enums/dashboardEnums";
5
6
 
6
7
  export class DashboardDetails extends DashboardInfos {
7
8
  singleEntity: boolean;
@@ -1,103 +1,109 @@
1
+ export enum ChartOrigin {
2
+ None = 0,
3
+ Organisation = 1,
4
+ OrganisationType = 2
5
+ }
6
+
1
7
  export enum ChartType {
2
- None = 0,
3
- XY = 1,
4
- Pie = 2,
5
- Heatmap = 3,
6
- Slider = 4,
7
- Gauge = 5,
8
- ScoreCard = 6,
9
- Table = 7
8
+ None = 0,
9
+ XY = 1,
10
+ Pie = 2,
11
+ Heatmap = 3,
12
+ Slider = 4,
13
+ Gauge = 5,
14
+ ScoreCard = 6,
15
+ Table = 7
10
16
  }
11
17
 
12
18
  export enum ColorSets {
13
- Default = 0,
14
- Grafana = 1,
15
- Kelly = 2,
16
- Armytage = 3,
17
- ZeileisHornikMurrell = 4,
18
- Hash = 5
19
+ Default = 0,
20
+ Grafana = 1,
21
+ Kelly = 2,
22
+ Armytage = 3,
23
+ ZeileisHornikMurrell = 4,
24
+ Hash = 5
19
25
  }
20
26
 
21
27
  export enum AxisType {
22
- None = 0,
23
- Date = 1,
24
- Value = 2,
25
- Category = 3
28
+ None = 0,
29
+ Date = 1,
30
+ Value = 2,
31
+ Category = 3
26
32
  }
27
33
 
28
34
  export enum SerieType {
29
- None = 0,
30
- Lines = 1,
31
- Area = 2,
32
- Range = 3,
33
- Histogram = 4,
34
- Operation = 5,
35
- Planning = 6,
36
- ScatterPlot = 7,
37
- Top = 8,
38
- Bars = 9,
39
- StackedBars = 10,
40
- Pie = 11,
41
- Heatmap = 12,
42
- Slider = 13,
43
- Gauge = 14,
44
- ScoreCard = 15,
45
- Table = 16
35
+ None = 0,
36
+ Lines = 1,
37
+ Area = 2,
38
+ Range = 3,
39
+ Histogram = 4,
40
+ Operation = 5,
41
+ Planning = 6,
42
+ ScatterPlot = 7,
43
+ Top = 8,
44
+ Bars = 9,
45
+ StackedBars = 10,
46
+ Pie = 11,
47
+ Heatmap = 12,
48
+ Slider = 13,
49
+ Gauge = 14,
50
+ ScoreCard = 15,
51
+ Table = 16
46
52
  }
47
53
 
48
54
  export enum PlotPer {
49
- None = 0,
50
- SinglePlot = 1,
51
- Model = 2,
52
- Group = 3,
53
- Location = 4,
54
- Device = 5
55
+ None = 0,
56
+ SinglePlot = 1,
57
+ Model = 2,
58
+ Group = 3,
59
+ Location = 4,
60
+ Device = 5
55
61
  }
56
62
 
57
63
  export enum AggregationType {
58
- None = 0,
59
- Sum = 1,
60
- Cardinal = 2,
61
- Mean = 3,
62
- Median = 4,
63
- First = 5,
64
- Last = 6,
65
- Difference = 7,
66
- Minimum = 8,
67
- Maximum = 9,
68
- Range = 10
64
+ None = 0,
65
+ Sum = 1,
66
+ Cardinal = 2,
67
+ Mean = 3,
68
+ Median = 4,
69
+ First = 5,
70
+ Last = 6,
71
+ Difference = 7,
72
+ Minimum = 8,
73
+ Maximum = 9,
74
+ Range = 10
69
75
  }
70
76
 
71
77
  export enum PlanningType {
72
- None = 0,
73
- UntilNext = 1,
74
- ElapsedTime = 2,
75
- SinglePoint = 3
78
+ None = 0,
79
+ UntilNext = 1,
80
+ ElapsedTime = 2,
81
+ SinglePoint = 3
76
82
  }
77
83
 
78
84
  export enum DisplayAs {
79
- None = 0,
80
- Bars = 1,
81
- Lines = 2,
82
- Points = 3
85
+ None = 0,
86
+ Bars = 1,
87
+ Lines = 2,
88
+ Points = 3
83
89
  }
84
90
 
85
91
  export enum OperationOn {
86
- None = 0,
87
- SameGroup = 1,
88
- SameEntity = 2,
89
- SameGroupAndEntity = 3
92
+ None = 0,
93
+ SameGroup = 1,
94
+ SameEntity = 2,
95
+ SameGroupAndEntity = 3
90
96
  }
91
97
 
92
98
  export enum HeatmapRule {
93
- None = 0,
94
- Gradient = 1,
95
- Ranges = 2,
96
- Fixed = 3
99
+ None = 0,
100
+ Gradient = 1,
101
+ Ranges = 2,
102
+ Fixed = 3
97
103
  }
98
104
 
99
105
  export enum PieBreakdown {
100
- Entity = 0,
101
- Serie = 1,
102
- Group = 2
106
+ Entity = 0,
107
+ Serie = 1,
108
+ Group = 2
103
109
  }
@@ -2,7 +2,6 @@ export * from "./actionEnums";
2
2
  export * from "./applicationEnums";
3
3
  export * from "./chartEnums";
4
4
  export * from "./customPropertyEnums";
5
- export * from "./dashboardEnums";
6
5
  export * from "./roleEnums";
7
6
  export * from "./sharedEnums";
8
7
  export * from "./userEnums";
@@ -1,12 +1,12 @@
1
1
  export enum UserType {
2
- User = 0,
3
- ServiceAccount = 1,
4
- Extension = 2
2
+ User = 0,
3
+ ServiceAccount = 1,
4
+ Extension = 2
5
5
  }
6
-
6
+
7
7
  export enum UserValidityState {
8
- InvitationNotSent = 0x000,
9
- InvitationSent = 0x001,
10
- AccountCreated = 0x011,
11
- AccountValidated = 0x111
8
+ InvitationNotSent = 0x000,
9
+ InvitationSent = 0x001,
10
+ AccountCreated = 0x011,
11
+ AccountValidated = 0x111
12
12
  }
@@ -1,7 +1,6 @@
1
- import { PermissionInfos, PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
1
+ import { DashboardType, PermissionInfos, PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
2
2
 
3
3
  import { UserOrganisationInfos, UserOrganisationInfosDTO } from "./userOrganisationInfos";
4
- import { DashboardType } from "../enums/dashboardEnums";
5
4
  import { RoleType } from "../enums/roleEnums";
6
5
 
7
6
  export class UserOrganisationDetails extends UserOrganisationInfos {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-core-domain",
3
3
  "sideEffects": false,
4
- "version": "0.0.124",
4
+ "version": "0.0.126",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -9,5 +9,5 @@
9
9
  "main": "index.ts",
10
10
  "author": "",
11
11
  "license": "ISC",
12
- "gitHead": "37128d517dbaf731a08637d60b8b996b4d6e8019"
12
+ "gitHead": "f82b3f9604201db4e53ee4c03e6344fc289eb35f"
13
13
  }
@@ -1,25 +0,0 @@
1
- export * from "@dative-gpi/foundation-shared-domain/models/enums/dashboardEnums";
2
-
3
- export enum StructureLevel {
4
- None = 0,
5
- OrganisationDashboard = 1,
6
- OrganisationTypeDashboard = 2,
7
- OrganisationWidget = 3,
8
- OrganisationTypeWidget = 4,
9
- GroupDashboard = 5,
10
- GroupWidget = 6,
11
- AlertDashboard = 7,
12
- AlertWidget = 8,
13
- OrganisationList = 9
14
- }
15
-
16
- export enum AutoRefresh {
17
- None = 0,
18
- FifteenSeconds = 1,
19
- ThirtySeconds = 2,
20
- OneMinute = 3,
21
- FiveMinutes = 4,
22
- FifteenMinutes = 5,
23
- ThirtyMinutes = 6,
24
- OneHour = 7
25
- }