@dative-gpi/foundation-core-domain 0.0.145 → 0.0.146
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/models/dashboardDatePresets/dashboardDatePresetDetails.ts +8 -0
- package/models/dashboardDatePresets/dashboardDatePresetInfos.ts +25 -0
- package/models/dashboardDatePresets/dashboardDatePresetTranslation.ts +14 -0
- package/models/dashboardDatePresets/index.ts +3 -0
- package/models/dashboardEntityPresets/dashboardEntityPresetDetails.ts +10 -0
- package/models/dashboardEntityPresets/dashboardEntityPresetInfos.ts +29 -0
- package/models/dashboardEntityPresets/dashboardEntityPresetTranslation.ts +14 -0
- package/models/dashboardEntityPresets/index.ts +3 -0
- package/models/dashboardOrganisationTypes/dashboardOrganisationTypeDetails.ts +11 -0
- package/models/dashboardOrganisations/dashboardOrganisationDetails.ts +14 -0
- package/models/dashboardShallows/dashboardShallowDetails.ts +15 -0
- package/models/dashboards/dashboardDetails.ts +11 -0
- package/models/index.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DashboardDatePresetTranslationDTO } from "./dashboardDatePresetTranslation";
|
|
2
|
+
|
|
3
|
+
export interface CreateDashboardDatePresetDTO {
|
|
4
|
+
labelDefault: string;
|
|
5
|
+
globalStartDate: string;
|
|
6
|
+
globalEndDate: string;
|
|
7
|
+
translations: DashboardDatePresetTranslationDTO[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DashboardDatePresetTranslation, DashboardDatePresetTranslationDTO } from "./dashboardDatePresetTranslation";
|
|
2
|
+
|
|
3
|
+
export class DashboardDatePresetInfos {
|
|
4
|
+
label: string;
|
|
5
|
+
labelDefault: string;
|
|
6
|
+
globalStartDate: string;
|
|
7
|
+
globalEndDate: string;
|
|
8
|
+
translations: DashboardDatePresetTranslation[];
|
|
9
|
+
|
|
10
|
+
constructor(params: DashboardDatePresetInfosDTO) {
|
|
11
|
+
this.label = params.label;
|
|
12
|
+
this.labelDefault = params.labelDefault;
|
|
13
|
+
this.globalStartDate = params.globalStartDate;
|
|
14
|
+
this.globalEndDate = params.globalEndDate;
|
|
15
|
+
this.translations = params.translations.map(t => new DashboardDatePresetTranslation(t));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface DashboardDatePresetInfosDTO {
|
|
20
|
+
label: string;
|
|
21
|
+
labelDefault: string;
|
|
22
|
+
globalStartDate: string;
|
|
23
|
+
globalEndDate: string;
|
|
24
|
+
translations: DashboardDatePresetTranslationDTO[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class DashboardDatePresetTranslation {
|
|
2
|
+
languageCode: string;
|
|
3
|
+
label: string;
|
|
4
|
+
|
|
5
|
+
constructor(params: DashboardDatePresetTranslationDTO) {
|
|
6
|
+
this.languageCode = params.languageCOde;
|
|
7
|
+
this.label = params.label;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface DashboardDatePresetTranslationDTO {
|
|
12
|
+
languageCOde: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DashboardEntityPresetTranslationDTO } from "./dashboardEntityPresetTranslation";
|
|
2
|
+
import { SelectedEntities } from "../enums/sharedEnums";
|
|
3
|
+
|
|
4
|
+
export interface CreateDashboardEntityPresetDTO {
|
|
5
|
+
labelDefault: string;
|
|
6
|
+
globalSelectedEntities: SelectedEntities;
|
|
7
|
+
globalEntitiesFilters: string;
|
|
8
|
+
globalEntitiesIds: string[];
|
|
9
|
+
translations: DashboardEntityPresetTranslationDTO[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DashboardEntityPresetTranslation, DashboardEntityPresetTranslationDTO } from "./dashboardEntityPresetTranslation";
|
|
2
|
+
import { SelectedEntities } from "../enums/sharedEnums";
|
|
3
|
+
|
|
4
|
+
export class DashboardEntityPresetInfos {
|
|
5
|
+
label: string;
|
|
6
|
+
labelDefault: string;
|
|
7
|
+
globalSelectedEntities: SelectedEntities;
|
|
8
|
+
globalEntitiesFilters: string;
|
|
9
|
+
globalEntitiesIds: string[];
|
|
10
|
+
translations: DashboardEntityPresetTranslation[];
|
|
11
|
+
|
|
12
|
+
constructor(params: DashboardEntityPresetInfosDTO) {
|
|
13
|
+
this.label = params.label;
|
|
14
|
+
this.labelDefault = params.labelDefault;
|
|
15
|
+
this.globalSelectedEntities = params.globalSelectedEntities;
|
|
16
|
+
this.globalEntitiesFilters = params.globalEntitiesFilters;
|
|
17
|
+
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
18
|
+
this.translations = params.translations.map(t => new DashboardEntityPresetTranslation(t));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface DashboardEntityPresetInfosDTO {
|
|
23
|
+
label: string;
|
|
24
|
+
labelDefault: string;
|
|
25
|
+
globalSelectedEntities: SelectedEntities;
|
|
26
|
+
globalEntitiesFilters: string;
|
|
27
|
+
globalEntitiesIds: string[];
|
|
28
|
+
translations: DashboardEntityPresetTranslationDTO[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class DashboardEntityPresetTranslation {
|
|
2
|
+
languageCode: string;
|
|
3
|
+
label: string;
|
|
4
|
+
|
|
5
|
+
constructor(params: DashboardEntityPresetTranslationDTO) {
|
|
6
|
+
this.languageCode = params.languageCode;
|
|
7
|
+
this.label = params.label;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface DashboardEntityPresetTranslationDTO {
|
|
12
|
+
languageCode: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
|
+
import { CreateDashboardEntityPresetDTO, DashboardEntityPresetInfos, DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
|
|
4
|
+
import { CreateDashboardDatePresetDTO, DashboardDatePresetInfos, DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
|
|
3
5
|
import { CreateDashboardVariableDTO, DashboardVariableInfos, DashboardVariableInfosDTO } from "../dashboardVariables";
|
|
4
6
|
import { DashboardOrganisationTypeInfos, DashboardOrganisationTypeInfosDTO } from "./dashboardOrganisationTypeInfos";
|
|
5
7
|
import { DashboardTranslation, DashboardTranslationDTO } from "../dashboards";
|
|
@@ -13,12 +15,15 @@ export class DashboardOrganisationTypeDetails extends DashboardOrganisationTypeI
|
|
|
13
15
|
singleEntity: boolean;
|
|
14
16
|
dynamicEntities: boolean;
|
|
15
17
|
globalSelectedEntities: SelectedEntities;
|
|
18
|
+
globalEntitiesFilters: string;
|
|
16
19
|
globalEntitiesIds: string[];
|
|
17
20
|
dynamicDates: boolean;
|
|
18
21
|
globalStartDate: string;
|
|
19
22
|
globalEndDate: string;
|
|
20
23
|
useAutoRefresh: boolean;
|
|
21
24
|
autoRefresh: AutoRefresh;
|
|
25
|
+
datePresets: DashboardDatePresetInfos[];
|
|
26
|
+
entityPresets: DashboardEntityPresetInfos[];
|
|
22
27
|
variables: DashboardVariableInfos[];
|
|
23
28
|
widgets: WidgetInfos[];
|
|
24
29
|
|
|
@@ -47,12 +52,15 @@ export interface DashboardOrganisationTypeDetailsDTO extends DashboardOrganisati
|
|
|
47
52
|
singleEntity: boolean;
|
|
48
53
|
dynamicEntities: boolean;
|
|
49
54
|
globalSelectedEntities: number;
|
|
55
|
+
globalEntitiesFilters: string;
|
|
50
56
|
globalEntitiesIds: string[];
|
|
51
57
|
dynamicDates: boolean;
|
|
52
58
|
globalStartDate: string;
|
|
53
59
|
globalEndDate: string;
|
|
54
60
|
useAutoRefresh: boolean;
|
|
55
61
|
autoRefresh: AutoRefresh;
|
|
62
|
+
datePresets: DashboardDatePresetInfosDTO[];
|
|
63
|
+
entityPresets: DashboardEntityPresetInfosDTO[];
|
|
56
64
|
variables: DashboardVariableInfosDTO[];
|
|
57
65
|
widgets: WidgetInfosDTO[];
|
|
58
66
|
}
|
|
@@ -73,12 +81,15 @@ export interface UpdateDashboardOrganisationTypeDTO {
|
|
|
73
81
|
singleEntity: boolean;
|
|
74
82
|
dynamicEntities: boolean;
|
|
75
83
|
globalSelectedEntities: number;
|
|
84
|
+
globalEntitiesFilters: string;
|
|
76
85
|
globalEntitiesIds: string[];
|
|
77
86
|
dynamicDates: boolean;
|
|
78
87
|
globalStartDate: string;
|
|
79
88
|
globalEndDate: string;
|
|
80
89
|
useAutoRefresh: boolean;
|
|
81
90
|
autoRefresh: number;
|
|
91
|
+
datePresets: CreateDashboardDatePresetDTO[];
|
|
92
|
+
entityPresets: CreateDashboardEntityPresetDTO[];
|
|
82
93
|
variables: CreateDashboardVariableDTO[];
|
|
83
94
|
widgets: CreateWidgetDTO[];
|
|
84
95
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
|
+
import { CreateDashboardEntityPresetDTO, DashboardEntityPresetInfos, DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
|
|
4
|
+
import { CreateDashboardDatePresetDTO, DashboardDatePresetInfos, DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
|
|
3
5
|
import { CreateDashboardVariableDTO, DashboardVariableInfos, DashboardVariableInfosDTO } from "../dashboardVariables";
|
|
4
6
|
import { DashboardOrganisationInfos, DashboardOrganisationInfosDTO } from "./dashboardOrganisationInfos";
|
|
5
7
|
import { DashboardTranslation, DashboardTranslationDTO } from "../dashboards";
|
|
@@ -15,12 +17,15 @@ export class DashboardOrganisationDetails extends DashboardOrganisationInfos {
|
|
|
15
17
|
singleEntity: boolean;
|
|
16
18
|
dynamicEntities: boolean;
|
|
17
19
|
globalSelectedEntities: SelectedEntities;
|
|
20
|
+
globalEntitiesFilters: string;
|
|
18
21
|
globalEntitiesIds: string[];
|
|
19
22
|
dynamicDates: boolean;
|
|
20
23
|
globalStartDate: string;
|
|
21
24
|
globalEndDate: string;
|
|
22
25
|
useAutoRefresh: boolean;
|
|
23
26
|
autoRefresh: AutoRefresh;
|
|
27
|
+
datePresets: DashboardDatePresetInfos[];
|
|
28
|
+
entityPresets: DashboardEntityPresetInfos[];
|
|
24
29
|
variables: DashboardVariableInfos[];
|
|
25
30
|
widgets: WidgetInfos[];
|
|
26
31
|
|
|
@@ -33,12 +38,15 @@ export class DashboardOrganisationDetails extends DashboardOrganisationInfos {
|
|
|
33
38
|
this.singleEntity = params.singleEntity;
|
|
34
39
|
this.dynamicEntities = params.dynamicEntities;
|
|
35
40
|
this.globalSelectedEntities = params.globalSelectedEntities as SelectedEntities;
|
|
41
|
+
this.globalEntitiesFilters = params.globalEntitiesFilters;
|
|
36
42
|
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
37
43
|
this.dynamicDates = params.dynamicDates;
|
|
38
44
|
this.globalStartDate = params.globalStartDate;
|
|
39
45
|
this.globalEndDate = params.globalEndDate;
|
|
40
46
|
this.useAutoRefresh = params.useAutoRefresh;
|
|
41
47
|
this.autoRefresh = params.autoRefresh;
|
|
48
|
+
this.datePresets = params.datePresets.map(dto => new DashboardDatePresetInfos(dto));
|
|
49
|
+
this.entityPresets = params.entityPresets.map(dto => new DashboardEntityPresetInfos(dto));
|
|
42
50
|
this.variables = params.variables.map(dto => new DashboardVariableInfos(dto));
|
|
43
51
|
this.widgets = params.widgets.map(dto => new WidgetInfos(dto));
|
|
44
52
|
}
|
|
@@ -51,12 +59,15 @@ export interface DashboardOrganisationDetailsDTO extends DashboardOrganisationIn
|
|
|
51
59
|
singleEntity: boolean;
|
|
52
60
|
dynamicEntities: boolean;
|
|
53
61
|
globalSelectedEntities: number;
|
|
62
|
+
globalEntitiesFilters: string;
|
|
54
63
|
globalEntitiesIds: string[];
|
|
55
64
|
dynamicDates: boolean;
|
|
56
65
|
globalStartDate: string;
|
|
57
66
|
globalEndDate: string;
|
|
58
67
|
useAutoRefresh: boolean;
|
|
59
68
|
autoRefresh: AutoRefresh;
|
|
69
|
+
datePresets: DashboardDatePresetInfosDTO[];
|
|
70
|
+
entityPresets: DashboardEntityPresetInfosDTO[];
|
|
60
71
|
variables: DashboardVariableInfosDTO[];
|
|
61
72
|
widgets: WidgetInfosDTO[];
|
|
62
73
|
}
|
|
@@ -83,12 +94,15 @@ export interface UpdateDashboardOrganisationDTO {
|
|
|
83
94
|
singleEntity: boolean;
|
|
84
95
|
dynamicEntities: boolean;
|
|
85
96
|
globalSelectedEntities: number;
|
|
97
|
+
globalEntitiesFilters: string;
|
|
86
98
|
globalEntitiesIds: string[];
|
|
87
99
|
dynamicDates: boolean;
|
|
88
100
|
globalStartDate: string;
|
|
89
101
|
globalEndDate: string;
|
|
90
102
|
useAutoRefresh: boolean;
|
|
91
103
|
autoRefresh: number;
|
|
104
|
+
datePresets: CreateDashboardDatePresetDTO[];
|
|
105
|
+
entityPresets: CreateDashboardEntityPresetDTO[];
|
|
92
106
|
variables: CreateDashboardVariableDTO[];
|
|
93
107
|
widgets: CreateWidgetDTO[];
|
|
94
108
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
|
+
import { DashboardEntityPresetInfos, DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
|
|
4
|
+
import { DashboardDatePresetInfos, DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
|
|
3
5
|
import { DashboardVariableInfos, DashboardVariableInfosDTO } from "../dashboardVariables";
|
|
4
6
|
import { DashboardShallowInfos, DashboardShallowInfosDTO } from "./dashboardShallowInfos";
|
|
5
7
|
import { DashboardTranslation, DashboardTranslationDTO } from "../dashboards";
|
|
@@ -13,6 +15,7 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
|
|
|
13
15
|
overrideSingleEntity: boolean | null;
|
|
14
16
|
overrideDynamicEntities: boolean | null;
|
|
15
17
|
overrideGlobalSelectedEntities: SelectedEntities | null;
|
|
18
|
+
overrideGlobalEntitiesFilters: string | null;
|
|
16
19
|
overrideGlobalEntitiesIds: string[] | null;
|
|
17
20
|
overrideDynamicDates: boolean | null;
|
|
18
21
|
overrideGlobalStartDate: string | null;
|
|
@@ -23,12 +26,15 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
|
|
|
23
26
|
singleEntity: boolean;
|
|
24
27
|
dynamicEntities: boolean;
|
|
25
28
|
globalSelectedEntities: SelectedEntities;
|
|
29
|
+
globalEntitiesFilters: string;
|
|
26
30
|
globalEntitiesIds: string[];
|
|
27
31
|
dynamicDates: boolean;
|
|
28
32
|
globalStartDate: string;
|
|
29
33
|
globalEndDate: string;
|
|
30
34
|
useAutoRefresh: boolean;
|
|
31
35
|
autoRefresh: AutoRefresh;
|
|
36
|
+
datePresets: DashboardDatePresetInfos[];
|
|
37
|
+
entityPresets: DashboardEntityPresetInfos[];
|
|
32
38
|
variables: DashboardVariableInfos[];
|
|
33
39
|
widgets: WidgetInfos[];
|
|
34
40
|
|
|
@@ -40,6 +46,7 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
|
|
|
40
46
|
this.overrideSingleEntity = params.overrideSingleEntity;
|
|
41
47
|
this.overrideDynamicEntities = params.overrideDynamicEntities;
|
|
42
48
|
this.overrideGlobalSelectedEntities = params.overrideGlobalSelectedEntities;
|
|
49
|
+
this.overrideGlobalEntitiesFilters = params.overrideGlobalEntitiesFilters;
|
|
43
50
|
this.overrideGlobalEntitiesIds = params.overrideGlobalEntitiesIds ?
|
|
44
51
|
params.overrideGlobalEntitiesIds.slice() : null;
|
|
45
52
|
this.overrideDynamicDates = params.overrideDynamicDates;
|
|
@@ -51,12 +58,15 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
|
|
|
51
58
|
this.singleEntity = params.singleEntity;
|
|
52
59
|
this.dynamicEntities = params.dynamicEntities;
|
|
53
60
|
this.globalSelectedEntities = params.globalSelectedEntities;
|
|
61
|
+
this.globalEntitiesFilters = params.globalEntitiesFilters;
|
|
54
62
|
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
55
63
|
this.dynamicDates = params.dynamicDates;
|
|
56
64
|
this.globalStartDate = params.globalStartDate;
|
|
57
65
|
this.globalEndDate = params.globalEndDate;
|
|
58
66
|
this.useAutoRefresh = params.useAutoRefresh;
|
|
59
67
|
this.autoRefresh = params.autoRefresh;
|
|
68
|
+
this.datePresets = params.datePresets.map(dto => new DashboardDatePresetInfos(dto));
|
|
69
|
+
this.entityPresets = params.entityPresets.map(dto => new DashboardEntityPresetInfos(dto));
|
|
60
70
|
this.variables = params.variables.map(dto => new DashboardVariableInfos(dto));
|
|
61
71
|
this.widgets = params.widgets.map(dto => new WidgetInfos(dto));
|
|
62
72
|
}
|
|
@@ -68,6 +78,7 @@ export interface DashboardShallowDetailsDTO extends DashboardShallowInfosDTO {
|
|
|
68
78
|
overrideSingleEntity: boolean | null;
|
|
69
79
|
overrideDynamicEntities: boolean | null;
|
|
70
80
|
overrideGlobalSelectedEntities: SelectedEntities | null;
|
|
81
|
+
overrideGlobalEntitiesFilters: string | null;
|
|
71
82
|
overrideGlobalEntitiesIds: string[] | null;
|
|
72
83
|
overrideDynamicDates: boolean | null;
|
|
73
84
|
overrideGlobalStartDate: string | null;
|
|
@@ -80,12 +91,15 @@ export interface DashboardShallowDetailsDTO extends DashboardShallowInfosDTO {
|
|
|
80
91
|
singleEntity: boolean;
|
|
81
92
|
dynamicEntities: boolean;
|
|
82
93
|
globalSelectedEntities: number;
|
|
94
|
+
globalEntitiesFilters: string;
|
|
83
95
|
globalEntitiesIds: string[];
|
|
84
96
|
dynamicDates: boolean;
|
|
85
97
|
globalStartDate: string;
|
|
86
98
|
globalEndDate: string;
|
|
87
99
|
useAutoRefresh: boolean;
|
|
88
100
|
autoRefresh: AutoRefresh;
|
|
101
|
+
datePresets: DashboardDatePresetInfosDTO[];
|
|
102
|
+
entityPresets: DashboardEntityPresetInfosDTO[];
|
|
89
103
|
variables: DashboardVariableInfosDTO[];
|
|
90
104
|
widgets: WidgetInfosDTO[];
|
|
91
105
|
}
|
|
@@ -105,6 +119,7 @@ export interface UpdateDashboardShallowDTO {
|
|
|
105
119
|
overrideSingleEntity: boolean | null;
|
|
106
120
|
overrideDynamicEntities: boolean | null;
|
|
107
121
|
overrideGlobalSelectedEntities: SelectedEntities | null;
|
|
122
|
+
overrideGlobalEntitiesFilters: string | null;
|
|
108
123
|
overrideGlobalEntitiesIds: string[] | null;
|
|
109
124
|
overrideDynamicDates: boolean | null;
|
|
110
125
|
overrideGlobalStartDate: string | null;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
|
+
import { DashboardEntityPresetInfos, DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
|
|
4
|
+
import { DashboardDatePresetInfos, DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
|
|
3
5
|
import { DashboardVariableInfos, DashboardVariableInfosDTO } from "../dashboardVariables";
|
|
4
6
|
import { DashboardInfos, DashboardInfosDTO } from "./dashboardInfos";
|
|
5
7
|
import { WidgetInfos, WidgetInfosDTO } from "../widgets/widgetInfos";
|
|
@@ -9,12 +11,15 @@ export class DashboardDetails extends DashboardInfos {
|
|
|
9
11
|
singleEntity: boolean;
|
|
10
12
|
dynamicEntities: boolean;
|
|
11
13
|
globalSelectedEntities: SelectedEntities;
|
|
14
|
+
globalEntitiesFilters: string;
|
|
12
15
|
globalEntitiesIds: string[];
|
|
13
16
|
dynamicDates: boolean;
|
|
14
17
|
globalStartDate: string;
|
|
15
18
|
globalEndDate: string;
|
|
16
19
|
useAutoRefresh: boolean;
|
|
17
20
|
autoRefresh: AutoRefresh;
|
|
21
|
+
datePresets: DashboardDatePresetInfos[];
|
|
22
|
+
entityPresets: DashboardEntityPresetInfos[];
|
|
18
23
|
variables: DashboardVariableInfos[];
|
|
19
24
|
widgets: WidgetInfos[];
|
|
20
25
|
|
|
@@ -24,12 +29,15 @@ export class DashboardDetails extends DashboardInfos {
|
|
|
24
29
|
this.singleEntity = params.singleEntity;
|
|
25
30
|
this.dynamicEntities = params.dynamicEntities;
|
|
26
31
|
this.globalSelectedEntities = params.globalSelectedEntities as SelectedEntities;
|
|
32
|
+
this.globalEntitiesFilters = params.globalEntitiesFilters;
|
|
27
33
|
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
28
34
|
this.dynamicDates = params.dynamicDates;
|
|
29
35
|
this.globalStartDate = params.globalStartDate;
|
|
30
36
|
this.globalEndDate = params.globalEndDate;
|
|
31
37
|
this.useAutoRefresh = params.useAutoRefresh;
|
|
32
38
|
this.autoRefresh = params.autoRefresh;
|
|
39
|
+
this.datePresets = params.datePresets.map(dto => new DashboardDatePresetInfos(dto));
|
|
40
|
+
this.entityPresets = params.entityPresets.map(dto => new DashboardEntityPresetInfos(dto));
|
|
33
41
|
this.variables = params.variables.map(dto => new DashboardVariableInfos(dto));
|
|
34
42
|
this.widgets = params.widgets.map(dto => new WidgetInfos(dto));
|
|
35
43
|
}
|
|
@@ -39,12 +47,15 @@ export interface DashboardDetailsDTO extends DashboardInfosDTO {
|
|
|
39
47
|
singleEntity: boolean;
|
|
40
48
|
dynamicEntities: boolean;
|
|
41
49
|
globalSelectedEntities: number;
|
|
50
|
+
globalEntitiesFilters: string;
|
|
42
51
|
globalEntitiesIds: string[];
|
|
43
52
|
dynamicDates: boolean;
|
|
44
53
|
globalStartDate: string;
|
|
45
54
|
globalEndDate: string;
|
|
46
55
|
useAutoRefresh: boolean;
|
|
47
56
|
autoRefresh: number;
|
|
57
|
+
datePresets: DashboardDatePresetInfosDTO[];
|
|
58
|
+
entityPresets: DashboardEntityPresetInfosDTO[];
|
|
48
59
|
variables: DashboardVariableInfosDTO[];
|
|
49
60
|
widgets: WidgetInfosDTO[];
|
|
50
61
|
}
|
package/models/index.ts
CHANGED
|
@@ -10,6 +10,8 @@ export * from "./comments";
|
|
|
10
10
|
export * from "./connectivityAlerts";
|
|
11
11
|
export * from "./customProperties";
|
|
12
12
|
export * from "./customPropertyValues";
|
|
13
|
+
export * from "./dashboardDatePresets"; // No service
|
|
14
|
+
export * from "./dashboardEntityPresets"; // No service
|
|
13
15
|
export * from "./dashboardOrganisations";
|
|
14
16
|
export * from "./dashboardOrganisationTypes";
|
|
15
17
|
export * from "./dashboards";
|
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.
|
|
4
|
+
"version": "0.0.146",
|
|
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": "
|
|
12
|
+
"gitHead": "b3b909100302b8a5efac8d887620fd8d9e01a8e6"
|
|
13
13
|
}
|