@dative-gpi/foundation-core-domain 0.0.149 → 0.0.151
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 +1 -0
- package/models/dashboardDatePresets/dashboardDatePresetInfos.ts +3 -0
- package/models/dashboardEntityPresets/dashboardEntityPresetDetails.ts +1 -0
- package/models/dashboardEntityPresets/dashboardEntityPresetInfos.ts +3 -0
- package/models/dashboardOrganisationTypes/dashboardOrganisationTypeDetails.ts +8 -20
- package/models/dashboardOrganisations/dashboardOrganisationDetails.ts +8 -21
- package/models/dashboardShallowDatePresets/dashboardShallowDatePresetDetails.ts +5 -0
- package/models/dashboardShallowDatePresets/dashboardShallowDatePresetInfos.ts +18 -0
- package/models/dashboardShallowDatePresets/index.ts +2 -0
- package/models/dashboardShallowEntityPresets/dashboardShallowEntityPresetDetails.ts +8 -0
- package/models/dashboardShallowEntityPresets/dashboardShallowEntityPresetInfos.ts +22 -0
- package/models/dashboardShallowEntityPresets/index.ts +2 -0
- package/models/dashboardShallowVariables/dashboardShallowVariableDetails.ts +8 -0
- package/models/dashboardShallowVariables/dashboardShallowVariableInfos.ts +28 -0
- package/models/dashboardShallowVariables/index.ts +2 -0
- package/models/dashboardShallows/dashboardShallowDetails.ts +29 -37
- package/models/dashboardVariables/dashboardVariableDetails.ts +0 -10
- package/models/dashboards/dashboardDetails.ts +6 -16
- package/models/groups/groupDetails.ts +16 -16
- package/models/index.ts +14 -11
- package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationDetails.ts +12 -29
- package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationInfos.ts +41 -51
- package/models/scenarioOrganisationTypes/scenarioOrganisationTypeDetails.ts +1 -44
- package/models/scenarioOrganisations/scenarioOrganisationDetails.ts +1 -54
- package/models/serviceAccountAuthTokens/index.ts +2 -0
- package/models/serviceAccountAuthTokens/serviceAccountAuthTokenDetails.ts +20 -0
- package/models/{authTokens/authTokenInfos.ts → serviceAccountAuthTokens/serviceAccountIdAuthTokenInfos.ts} +7 -8
- package/package.json +2 -2
- package/models/authTokens/authTokenDetails.ts +0 -20
- package/models/authTokens/index.ts +0 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DashboardDatePresetTranslation, DashboardDatePresetTranslationDTO } from "./dashboardDatePresetTranslation";
|
|
2
2
|
|
|
3
3
|
export class DashboardDatePresetInfos {
|
|
4
|
+
code: string;
|
|
4
5
|
label: string;
|
|
5
6
|
labelDefault: string;
|
|
6
7
|
globalStartDate: string;
|
|
@@ -8,6 +9,7 @@ export class DashboardDatePresetInfos {
|
|
|
8
9
|
translations: DashboardDatePresetTranslation[];
|
|
9
10
|
|
|
10
11
|
constructor(params: DashboardDatePresetInfosDTO) {
|
|
12
|
+
this.code = params.code;
|
|
11
13
|
this.label = params.label;
|
|
12
14
|
this.labelDefault = params.labelDefault;
|
|
13
15
|
this.globalStartDate = params.globalStartDate;
|
|
@@ -17,6 +19,7 @@ export class DashboardDatePresetInfos {
|
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
export interface DashboardDatePresetInfosDTO {
|
|
22
|
+
code: string;
|
|
20
23
|
label: string;
|
|
21
24
|
labelDefault: string;
|
|
22
25
|
globalStartDate: string;
|
|
@@ -2,6 +2,7 @@ import { DashboardEntityPresetTranslationDTO } from "./dashboardEntityPresetTran
|
|
|
2
2
|
import { SelectedEntities } from "../enums/sharedEnums";
|
|
3
3
|
|
|
4
4
|
export interface CreateDashboardEntityPresetDTO {
|
|
5
|
+
code: string;
|
|
5
6
|
labelDefault: string;
|
|
6
7
|
globalSelectedEntities: SelectedEntities;
|
|
7
8
|
globalEntitiesFilters: string;
|
|
@@ -2,6 +2,7 @@ import { DashboardEntityPresetTranslation, DashboardEntityPresetTranslationDTO }
|
|
|
2
2
|
import { SelectedEntities } from "../enums/sharedEnums";
|
|
3
3
|
|
|
4
4
|
export class DashboardEntityPresetInfos {
|
|
5
|
+
code: string;
|
|
5
6
|
label: string;
|
|
6
7
|
labelDefault: string;
|
|
7
8
|
globalSelectedEntities: SelectedEntities;
|
|
@@ -10,6 +11,7 @@ export class DashboardEntityPresetInfos {
|
|
|
10
11
|
translations: DashboardEntityPresetTranslation[];
|
|
11
12
|
|
|
12
13
|
constructor(params: DashboardEntityPresetInfosDTO) {
|
|
14
|
+
this.code = params.code;
|
|
13
15
|
this.label = params.label;
|
|
14
16
|
this.labelDefault = params.labelDefault;
|
|
15
17
|
this.globalSelectedEntities = params.globalSelectedEntities;
|
|
@@ -20,6 +22,7 @@ export class DashboardEntityPresetInfos {
|
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
export interface DashboardEntityPresetInfosDTO {
|
|
25
|
+
code: string;
|
|
23
26
|
label: string;
|
|
24
27
|
labelDefault: string;
|
|
25
28
|
globalSelectedEntities: SelectedEntities;
|
|
@@ -7,19 +7,15 @@ import { DashboardOrganisationTypeInfos, DashboardOrganisationTypeInfosDTO } fro
|
|
|
7
7
|
import { DashboardTranslation, DashboardTranslationDTO } from "../dashboards";
|
|
8
8
|
import { WidgetInfos, WidgetInfosDTO } from "../widgets/widgetInfos";
|
|
9
9
|
import { CreateWidgetDTO } from "../widgets/widgetDetails";
|
|
10
|
-
import { SelectedEntities } from "../enums/sharedEnums";
|
|
11
10
|
|
|
12
11
|
export class DashboardOrganisationTypeDetails extends DashboardOrganisationTypeInfos {
|
|
13
12
|
labelDefault: string;
|
|
14
13
|
translations: DashboardTranslation[];
|
|
15
14
|
singleEntity: boolean;
|
|
16
15
|
dynamicEntities: boolean;
|
|
17
|
-
|
|
18
|
-
globalEntitiesFilters: string;
|
|
19
|
-
globalEntitiesIds: string[];
|
|
16
|
+
entityPresetCode: string;
|
|
20
17
|
dynamicDates: boolean;
|
|
21
|
-
|
|
22
|
-
globalEndDate: string;
|
|
18
|
+
datePresetCode: string;
|
|
23
19
|
useAutoRefresh: boolean;
|
|
24
20
|
autoRefresh: AutoRefresh;
|
|
25
21
|
datePresets: DashboardDatePresetInfos[];
|
|
@@ -34,11 +30,9 @@ export class DashboardOrganisationTypeDetails extends DashboardOrganisationTypeI
|
|
|
34
30
|
this.translations = params.translations.map(t => new DashboardTranslation(t));
|
|
35
31
|
this.singleEntity = params.singleEntity;
|
|
36
32
|
this.dynamicEntities = params.dynamicEntities;
|
|
37
|
-
this.
|
|
38
|
-
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
33
|
+
this.entityPresetCode = params.entityPresetCode;
|
|
39
34
|
this.dynamicDates = params.dynamicDates;
|
|
40
|
-
this.
|
|
41
|
-
this.globalEndDate = params.globalEndDate;
|
|
35
|
+
this.datePresetCode = params.datePresetCode;
|
|
42
36
|
this.useAutoRefresh = params.useAutoRefresh;
|
|
43
37
|
this.autoRefresh = params.autoRefresh;
|
|
44
38
|
this.variables = params.variables.map(dto => new DashboardVariableInfos(dto));
|
|
@@ -51,12 +45,9 @@ export interface DashboardOrganisationTypeDetailsDTO extends DashboardOrganisati
|
|
|
51
45
|
translations: DashboardTranslationDTO[];
|
|
52
46
|
singleEntity: boolean;
|
|
53
47
|
dynamicEntities: boolean;
|
|
54
|
-
|
|
55
|
-
globalEntitiesFilters: string;
|
|
56
|
-
globalEntitiesIds: string[];
|
|
48
|
+
entityPresetCode: string;
|
|
57
49
|
dynamicDates: boolean;
|
|
58
|
-
|
|
59
|
-
globalEndDate: string;
|
|
50
|
+
datePresetCode: string;
|
|
60
51
|
useAutoRefresh: boolean;
|
|
61
52
|
autoRefresh: AutoRefresh;
|
|
62
53
|
datePresets: DashboardDatePresetInfosDTO[];
|
|
@@ -80,12 +71,9 @@ export interface UpdateDashboardOrganisationTypeDTO {
|
|
|
80
71
|
translations: DashboardTranslationDTO[];
|
|
81
72
|
singleEntity: boolean;
|
|
82
73
|
dynamicEntities: boolean;
|
|
83
|
-
|
|
84
|
-
globalEntitiesFilters: string;
|
|
85
|
-
globalEntitiesIds: string[];
|
|
74
|
+
entityPresetCode: string;
|
|
86
75
|
dynamicDates: boolean;
|
|
87
|
-
|
|
88
|
-
globalEndDate: string;
|
|
76
|
+
datePresetCode: string;
|
|
89
77
|
useAutoRefresh: boolean;
|
|
90
78
|
autoRefresh: number;
|
|
91
79
|
datePresets: CreateDashboardDatePresetDTO[];
|
|
@@ -8,7 +8,6 @@ import { DashboardTranslation, DashboardTranslationDTO } from "../dashboards";
|
|
|
8
8
|
import { WidgetInfos, WidgetInfosDTO } from "../widgets/widgetInfos";
|
|
9
9
|
import { PathCrumb, PathCrumbDTO } from "../shared/pathCrumb";
|
|
10
10
|
import { CreateWidgetDTO } from "../widgets/widgetDetails";
|
|
11
|
-
import { SelectedEntities } from "../enums/sharedEnums";
|
|
12
11
|
|
|
13
12
|
export class DashboardOrganisationDetails extends DashboardOrganisationInfos {
|
|
14
13
|
labelDefault: string;
|
|
@@ -16,12 +15,9 @@ export class DashboardOrganisationDetails extends DashboardOrganisationInfos {
|
|
|
16
15
|
translations: DashboardTranslation[];
|
|
17
16
|
singleEntity: boolean;
|
|
18
17
|
dynamicEntities: boolean;
|
|
19
|
-
|
|
20
|
-
globalEntitiesFilters: string;
|
|
21
|
-
globalEntitiesIds: string[];
|
|
18
|
+
entityPresetCode: string;
|
|
22
19
|
dynamicDates: boolean;
|
|
23
|
-
|
|
24
|
-
globalEndDate: string;
|
|
20
|
+
datePresetCode: string;
|
|
25
21
|
useAutoRefresh: boolean;
|
|
26
22
|
autoRefresh: AutoRefresh;
|
|
27
23
|
datePresets: DashboardDatePresetInfos[];
|
|
@@ -37,12 +33,9 @@ export class DashboardOrganisationDetails extends DashboardOrganisationInfos {
|
|
|
37
33
|
this.translations = params.translations.map(t => new DashboardTranslation(t));
|
|
38
34
|
this.singleEntity = params.singleEntity;
|
|
39
35
|
this.dynamicEntities = params.dynamicEntities;
|
|
40
|
-
this.
|
|
41
|
-
this.globalEntitiesFilters = params.globalEntitiesFilters;
|
|
42
|
-
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
36
|
+
this.entityPresetCode = params.entityPresetCode;
|
|
43
37
|
this.dynamicDates = params.dynamicDates;
|
|
44
|
-
this.
|
|
45
|
-
this.globalEndDate = params.globalEndDate;
|
|
38
|
+
this.datePresetCode = params.datePresetCode;
|
|
46
39
|
this.useAutoRefresh = params.useAutoRefresh;
|
|
47
40
|
this.autoRefresh = params.autoRefresh;
|
|
48
41
|
this.datePresets = params.datePresets.map(dto => new DashboardDatePresetInfos(dto));
|
|
@@ -58,12 +51,9 @@ export interface DashboardOrganisationDetailsDTO extends DashboardOrganisationIn
|
|
|
58
51
|
translations: DashboardTranslationDTO[];
|
|
59
52
|
singleEntity: boolean;
|
|
60
53
|
dynamicEntities: boolean;
|
|
61
|
-
|
|
62
|
-
globalEntitiesFilters: string;
|
|
63
|
-
globalEntitiesIds: string[];
|
|
54
|
+
entityPresetCode: string;
|
|
64
55
|
dynamicDates: boolean;
|
|
65
|
-
|
|
66
|
-
globalEndDate: string;
|
|
56
|
+
datePresetCode: string;
|
|
67
57
|
useAutoRefresh: boolean;
|
|
68
58
|
autoRefresh: AutoRefresh;
|
|
69
59
|
datePresets: DashboardDatePresetInfosDTO[];
|
|
@@ -93,12 +83,9 @@ export interface UpdateDashboardOrganisationDTO {
|
|
|
93
83
|
translations: DashboardTranslationDTO[];
|
|
94
84
|
singleEntity: boolean;
|
|
95
85
|
dynamicEntities: boolean;
|
|
96
|
-
|
|
97
|
-
globalEntitiesFilters: string;
|
|
98
|
-
globalEntitiesIds: string[];
|
|
86
|
+
entityPresetCode: string;
|
|
99
87
|
dynamicDates: boolean;
|
|
100
|
-
|
|
101
|
-
globalEndDate: string;
|
|
88
|
+
datePresetCode: string;
|
|
102
89
|
useAutoRefresh: boolean;
|
|
103
90
|
autoRefresh: number;
|
|
104
91
|
datePresets: CreateDashboardDatePresetDTO[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
export class DashboardShallowDatePresetInfos {
|
|
3
|
+
code: string;
|
|
4
|
+
globalStartDate: string;
|
|
5
|
+
globalEndDate: string;
|
|
6
|
+
|
|
7
|
+
constructor(params: DashboardShallowDatePresetInfosDTO) {
|
|
8
|
+
this.code = params.code;
|
|
9
|
+
this.globalStartDate = params.globalStartDate;
|
|
10
|
+
this.globalEndDate = params.globalEndDate;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface DashboardShallowDatePresetInfosDTO {
|
|
15
|
+
code: string;
|
|
16
|
+
globalStartDate: string;
|
|
17
|
+
globalEndDate: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SelectedEntities } from "../enums/sharedEnums";
|
|
2
|
+
|
|
3
|
+
export class DashboardShallowEntityPresetInfos {
|
|
4
|
+
code: string;
|
|
5
|
+
globalSelectedEntities: SelectedEntities;
|
|
6
|
+
globalEntitiesFilters: string;
|
|
7
|
+
globalEntitiesIds: string[];
|
|
8
|
+
|
|
9
|
+
constructor(params: DashboardShallowEntityPresetInfosDTO) {
|
|
10
|
+
this.code = params.code;
|
|
11
|
+
this.globalSelectedEntities = params.globalSelectedEntities;
|
|
12
|
+
this.globalEntitiesFilters = params.globalEntitiesFilters;
|
|
13
|
+
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DashboardShallowEntityPresetInfosDTO {
|
|
18
|
+
code: string;
|
|
19
|
+
globalSelectedEntities: SelectedEntities;
|
|
20
|
+
globalEntitiesFilters: string;
|
|
21
|
+
globalEntitiesIds: string[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DashboardVariableValueTranslationDTO } from "../dashboardVariables/dashboardVariableValueTranslation";
|
|
2
|
+
|
|
3
|
+
export interface CreateDashboardShallowVariableDTO {
|
|
4
|
+
code: string;
|
|
5
|
+
defaultValue: string;
|
|
6
|
+
useOnlyAllowedValues: boolean;
|
|
7
|
+
allowedValues: { [key: string]: DashboardVariableValueTranslationDTO[] };
|
|
8
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DashboardVariableValueTranslation, DashboardVariableValueTranslationDTO } from "../dashboardVariables/dashboardVariableValueTranslation";
|
|
2
|
+
|
|
3
|
+
export class DashboardShallowVariableInfos {
|
|
4
|
+
id: string;
|
|
5
|
+
dashboardShallowId: string;
|
|
6
|
+
code: string;
|
|
7
|
+
defaultValue: string;
|
|
8
|
+
useOnlyAllowedValues: boolean;
|
|
9
|
+
allowedValues: { [key: string]: DashboardVariableValueTranslation[] };
|
|
10
|
+
|
|
11
|
+
constructor(params: DashboardShallowVariableInfosDTO) {
|
|
12
|
+
this.id = params.id;
|
|
13
|
+
this.dashboardShallowId = params.dashboardShallowId;
|
|
14
|
+
this.code = params.code;
|
|
15
|
+
this.defaultValue = params.defaultValue;
|
|
16
|
+
this.useOnlyAllowedValues = params.useOnlyAllowedValues;
|
|
17
|
+
this.allowedValues = { ...params.allowedValues };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface DashboardShallowVariableInfosDTO {
|
|
22
|
+
id: string;
|
|
23
|
+
dashboardShallowId: string;
|
|
24
|
+
code: string;
|
|
25
|
+
defaultValue: string;
|
|
26
|
+
useOnlyAllowedValues: boolean;
|
|
27
|
+
allowedValues: { [key: string]: DashboardVariableValueTranslationDTO[] };
|
|
28
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
|
+
import { CreateDashboardShallowEntityPresetDTO, DashboardShallowEntityPresetInfos, DashboardShallowEntityPresetInfosDTO } from "../dashboardShallowEntityPresets";
|
|
4
|
+
import { CreateDashboardShallowDatePresetDTO, DashboardShallowDatePresetInfos, DashboardShallowDatePresetInfosDTO } from "../dashboardShallowDatePresets";
|
|
5
|
+
import { CreateDashboardShallowVariableDTO, DashboardShallowVariableInfos, DashboardShallowVariableInfosDTO } from "../dashboardShallowVariables";
|
|
3
6
|
import { DashboardEntityPresetInfos, DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
|
|
4
7
|
import { DashboardDatePresetInfos, DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
|
|
5
8
|
import { DashboardVariableInfos, DashboardVariableInfosDTO } from "../dashboardVariables";
|
|
@@ -7,30 +10,26 @@ import { DashboardShallowInfos, DashboardShallowInfosDTO } from "./dashboardShal
|
|
|
7
10
|
import { DashboardTranslation, DashboardTranslationDTO } from "../dashboards";
|
|
8
11
|
import { WidgetInfos, WidgetInfosDTO } from "../widgets/widgetInfos";
|
|
9
12
|
import { PathCrumb, PathCrumbDTO } from "../shared/pathCrumb";
|
|
10
|
-
import { SelectedEntities } from "../enums/sharedEnums";
|
|
11
13
|
|
|
12
14
|
export class DashboardShallowDetails extends DashboardShallowInfos {
|
|
13
15
|
labelDefault: string;
|
|
14
16
|
path: PathCrumb[];
|
|
15
17
|
overrideSingleEntity: boolean | null;
|
|
16
18
|
overrideDynamicEntities: boolean | null;
|
|
17
|
-
|
|
18
|
-
overrideGlobalEntitiesFilters: string | null;
|
|
19
|
-
overrideGlobalEntitiesIds: string[] | null;
|
|
19
|
+
overrideEntityPresetCode: string | null;
|
|
20
20
|
overrideDynamicDates: boolean | null;
|
|
21
|
-
|
|
22
|
-
overrideGlobalEndDate: string | null;
|
|
21
|
+
overrideDatePresetCode: string | null;
|
|
23
22
|
overrideUseAutoRefresh: boolean | null;
|
|
24
23
|
overrideAutoRefresh: AutoRefresh | null;
|
|
24
|
+
overrideDatePresets: DashboardShallowDatePresetInfos[] | null;
|
|
25
|
+
overrideEntityPresets: DashboardShallowEntityPresetInfos[] | null;
|
|
26
|
+
overrideVariables: DashboardShallowVariableInfos[] | null;
|
|
25
27
|
translations: DashboardTranslation[];
|
|
26
28
|
singleEntity: boolean;
|
|
27
29
|
dynamicEntities: boolean;
|
|
28
|
-
|
|
29
|
-
globalEntitiesFilters: string;
|
|
30
|
-
globalEntitiesIds: string[];
|
|
30
|
+
entityPresetCode: string;
|
|
31
31
|
dynamicDates: boolean;
|
|
32
|
-
|
|
33
|
-
globalEndDate: string;
|
|
32
|
+
datePresetCode: string;
|
|
34
33
|
useAutoRefresh: boolean;
|
|
35
34
|
autoRefresh: AutoRefresh;
|
|
36
35
|
datePresets: DashboardDatePresetInfos[];
|
|
@@ -45,24 +44,20 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
|
|
|
45
44
|
this.path = params.path.map(dto => new PathCrumb(dto)).sort((a, b) => b.index - a.index);
|
|
46
45
|
this.overrideSingleEntity = params.overrideSingleEntity;
|
|
47
46
|
this.overrideDynamicEntities = params.overrideDynamicEntities;
|
|
48
|
-
this.
|
|
49
|
-
this.overrideGlobalEntitiesFilters = params.overrideGlobalEntitiesFilters;
|
|
50
|
-
this.overrideGlobalEntitiesIds = params.overrideGlobalEntitiesIds ?
|
|
51
|
-
params.overrideGlobalEntitiesIds.slice() : null;
|
|
47
|
+
this.overrideEntityPresetCode = params.overrideEntityPresetCode;
|
|
52
48
|
this.overrideDynamicDates = params.overrideDynamicDates;
|
|
53
|
-
this.
|
|
54
|
-
this.overrideGlobalEndDate = params.overrideGlobalEndDate;
|
|
49
|
+
this.overrideDatePresetCode = params.overrideDatePresetCode;
|
|
55
50
|
this.overrideUseAutoRefresh = params.overrideUseAutoRefresh;
|
|
56
51
|
this.overrideAutoRefresh = params.overrideAutoRefresh;
|
|
52
|
+
this.overrideDatePresets = params.overrideDatePresets?.map(dto => new DashboardShallowDatePresetInfos(dto)) ?? null;
|
|
53
|
+
this.overrideEntityPresets = params.overrideEntityPresets?.map(dto => new DashboardShallowEntityPresetInfos(dto)) ?? null;
|
|
54
|
+
this.overrideVariables = params.overrideVariables?.map(dto => new DashboardShallowVariableInfos(dto)) ?? null;
|
|
57
55
|
this.translations = params.translations.map(t => new DashboardTranslation(t));
|
|
58
56
|
this.singleEntity = params.singleEntity;
|
|
59
57
|
this.dynamicEntities = params.dynamicEntities;
|
|
60
|
-
this.
|
|
61
|
-
this.globalEntitiesFilters = params.globalEntitiesFilters;
|
|
62
|
-
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
58
|
+
this.entityPresetCode = params.entityPresetCode;
|
|
63
59
|
this.dynamicDates = params.dynamicDates;
|
|
64
|
-
this.
|
|
65
|
-
this.globalEndDate = params.globalEndDate;
|
|
60
|
+
this.datePresetCode = params.datePresetCode;
|
|
66
61
|
this.useAutoRefresh = params.useAutoRefresh;
|
|
67
62
|
this.autoRefresh = params.autoRefresh;
|
|
68
63
|
this.datePresets = params.datePresets.map(dto => new DashboardDatePresetInfos(dto));
|
|
@@ -77,25 +72,22 @@ export interface DashboardShallowDetailsDTO extends DashboardShallowInfosDTO {
|
|
|
77
72
|
path: PathCrumbDTO[];
|
|
78
73
|
overrideSingleEntity: boolean | null;
|
|
79
74
|
overrideDynamicEntities: boolean | null;
|
|
80
|
-
|
|
81
|
-
overrideGlobalEntitiesFilters: string | null;
|
|
82
|
-
overrideGlobalEntitiesIds: string[] | null;
|
|
75
|
+
overrideEntityPresetCode: string | null;
|
|
83
76
|
overrideDynamicDates: boolean | null;
|
|
84
|
-
|
|
85
|
-
overrideGlobalEndDate: string | null;
|
|
77
|
+
overrideDatePresetCode: string | null;
|
|
86
78
|
overrideUseAutoRefresh: boolean | null;
|
|
87
79
|
overrideAutoRefresh: number | null;
|
|
80
|
+
overrideDatePresets: DashboardShallowDatePresetInfosDTO[] | null;
|
|
81
|
+
overrideEntityPresets: DashboardShallowEntityPresetInfosDTO[] | null;
|
|
82
|
+
overrideVariables: DashboardShallowVariableInfosDTO[] | null;
|
|
88
83
|
translations: DashboardTranslationDTO[];
|
|
89
84
|
dashboardId: string;
|
|
90
85
|
scope: number;
|
|
91
86
|
singleEntity: boolean;
|
|
92
87
|
dynamicEntities: boolean;
|
|
93
|
-
|
|
94
|
-
globalEntitiesFilters: string;
|
|
95
|
-
globalEntitiesIds: string[];
|
|
88
|
+
entityPresetCode: string;
|
|
96
89
|
dynamicDates: boolean;
|
|
97
|
-
|
|
98
|
-
globalEndDate: string;
|
|
90
|
+
datePresetCode: string;
|
|
99
91
|
useAutoRefresh: boolean;
|
|
100
92
|
autoRefresh: AutoRefresh;
|
|
101
93
|
datePresets: DashboardDatePresetInfosDTO[];
|
|
@@ -118,14 +110,14 @@ export interface UpdateDashboardShallowDTO {
|
|
|
118
110
|
tags: string[];
|
|
119
111
|
overrideSingleEntity: boolean | null;
|
|
120
112
|
overrideDynamicEntities: boolean | null;
|
|
121
|
-
|
|
122
|
-
overrideGlobalEntitiesFilters: string | null;
|
|
123
|
-
overrideGlobalEntitiesIds: string[] | null;
|
|
113
|
+
overrideEntityPresetCode: string | null;
|
|
124
114
|
overrideDynamicDates: boolean | null;
|
|
125
|
-
|
|
126
|
-
overrideGlobalEndDate: string | null;
|
|
115
|
+
overrideDatePresetCode: string | null;
|
|
127
116
|
overrideUseAutoRefresh: boolean | null;
|
|
128
117
|
overrideAutoRefresh: number | null;
|
|
118
|
+
overrideDatePresets: CreateDashboardShallowDatePresetDTO[] | null;
|
|
119
|
+
overrideEntityPresets: CreateDashboardShallowEntityPresetDTO[] | null;
|
|
120
|
+
overrideVariables: CreateDashboardShallowVariableDTO[] | null;
|
|
129
121
|
translations: DashboardTranslationDTO[];
|
|
130
122
|
}
|
|
131
123
|
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import { DashboardVariableType } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
|
-
import { DashboardVariableInfos, DashboardVariableInfosDTO } from "./dashboardVariableInfos";
|
|
4
3
|
import { DashboardVariableValueTranslationDTO } from "./dashboardVariableValueTranslation";
|
|
5
4
|
import { DashboardVariableTranslationDTO } from "./dashboardVariableTranslation";
|
|
6
5
|
|
|
7
|
-
export class DashboardVariableDetails extends DashboardVariableInfos {
|
|
8
|
-
constructor(params: DashboardVariableDetailsDTO) {
|
|
9
|
-
super(params);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export interface DashboardVariableDetailsDTO extends DashboardVariableInfosDTO {
|
|
14
|
-
}
|
|
15
|
-
|
|
16
6
|
export interface CreateDashboardVariableDTO {
|
|
17
7
|
variableType: DashboardVariableType;
|
|
18
8
|
labelDefault: string;
|
|
@@ -5,17 +5,13 @@ import { DashboardDatePresetInfos, DashboardDatePresetInfosDTO } from "../dashbo
|
|
|
5
5
|
import { DashboardVariableInfos, DashboardVariableInfosDTO } from "../dashboardVariables";
|
|
6
6
|
import { DashboardInfos, DashboardInfosDTO } from "./dashboardInfos";
|
|
7
7
|
import { WidgetInfos, WidgetInfosDTO } from "../widgets/widgetInfos";
|
|
8
|
-
import { SelectedEntities } from "../enums/sharedEnums";
|
|
9
8
|
|
|
10
9
|
export class DashboardDetails extends DashboardInfos {
|
|
11
10
|
singleEntity: boolean;
|
|
12
11
|
dynamicEntities: boolean;
|
|
13
|
-
|
|
14
|
-
globalEntitiesFilters: string;
|
|
15
|
-
globalEntitiesIds: string[];
|
|
12
|
+
entityPresetCode: string;
|
|
16
13
|
dynamicDates: boolean;
|
|
17
|
-
|
|
18
|
-
globalEndDate: string;
|
|
14
|
+
datePresetCode: string;
|
|
19
15
|
useAutoRefresh: boolean;
|
|
20
16
|
autoRefresh: AutoRefresh;
|
|
21
17
|
datePresets: DashboardDatePresetInfos[];
|
|
@@ -28,12 +24,9 @@ export class DashboardDetails extends DashboardInfos {
|
|
|
28
24
|
|
|
29
25
|
this.singleEntity = params.singleEntity;
|
|
30
26
|
this.dynamicEntities = params.dynamicEntities;
|
|
31
|
-
this.
|
|
32
|
-
this.globalEntitiesFilters = params.globalEntitiesFilters;
|
|
33
|
-
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
27
|
+
this.entityPresetCode = params.entityPresetCode;
|
|
34
28
|
this.dynamicDates = params.dynamicDates;
|
|
35
|
-
this.
|
|
36
|
-
this.globalEndDate = params.globalEndDate;
|
|
29
|
+
this.datePresetCode = params.datePresetCode;
|
|
37
30
|
this.useAutoRefresh = params.useAutoRefresh;
|
|
38
31
|
this.autoRefresh = params.autoRefresh;
|
|
39
32
|
this.datePresets = params.datePresets.map(dto => new DashboardDatePresetInfos(dto));
|
|
@@ -46,12 +39,9 @@ export class DashboardDetails extends DashboardInfos {
|
|
|
46
39
|
export interface DashboardDetailsDTO extends DashboardInfosDTO {
|
|
47
40
|
singleEntity: boolean;
|
|
48
41
|
dynamicEntities: boolean;
|
|
49
|
-
|
|
50
|
-
globalEntitiesFilters: string;
|
|
51
|
-
globalEntitiesIds: string[];
|
|
42
|
+
entityPresetCode: string;
|
|
52
43
|
dynamicDates: boolean;
|
|
53
|
-
|
|
54
|
-
globalEndDate: string;
|
|
44
|
+
datePresetCode: string;
|
|
55
45
|
useAutoRefresh: boolean;
|
|
56
46
|
autoRefresh: number;
|
|
57
47
|
datePresets: DashboardDatePresetInfosDTO[];
|
|
@@ -13,29 +13,29 @@ export class GroupDetails extends GroupInfos {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface GroupDetailsDTO extends GroupInfosDTO {
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
parentIcon: string | null;
|
|
17
|
+
parentLabel: string | null;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface CreateGroupDTO {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
parentId: string | null;
|
|
22
|
+
image: string | null;
|
|
23
|
+
icon: string;
|
|
24
|
+
code: string;
|
|
25
|
+
label: string;
|
|
26
|
+
tags: string[];
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface UpdateGroupDTO {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
parentId: string | null;
|
|
31
|
+
imageId: string | null;
|
|
32
|
+
image: string | null;
|
|
33
|
+
icon: string;
|
|
34
|
+
code: string;
|
|
35
|
+
label: string;
|
|
36
|
+
tags: string[];
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface ChangeGroupParentDTO {
|
|
40
|
-
|
|
40
|
+
parentId: string | null;
|
|
41
41
|
}
|
package/models/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./actions";
|
|
2
2
|
export * from "./alerts";
|
|
3
3
|
export * from "./articles";
|
|
4
|
-
export * from "./
|
|
4
|
+
export * from "./serviceAccountAuthTokens";
|
|
5
5
|
export * from "./chartCategories";
|
|
6
6
|
export * from "./chartOrganisationTypes";
|
|
7
7
|
export * from "./chartOrganisations";
|
|
@@ -10,27 +10,30 @@ export * from "./comments";
|
|
|
10
10
|
export * from "./connectivityAlerts";
|
|
11
11
|
export * from "./customProperties";
|
|
12
12
|
export * from "./customPropertyValues";
|
|
13
|
-
export * from "./dashboardDatePresets";
|
|
14
|
-
export * from "./dashboardEntityPresets";
|
|
13
|
+
export * from "./dashboardDatePresets"; // No service
|
|
14
|
+
export * from "./dashboardEntityPresets"; // No service
|
|
15
15
|
export * from "./dashboardOrganisations";
|
|
16
16
|
export * from "./dashboardOrganisationTypes";
|
|
17
17
|
export * from "./dashboards";
|
|
18
|
+
export * from "./dashboardShallowDatePresets"; // No service
|
|
19
|
+
export * from "./dashboardShallowEntityPresets"; // No service
|
|
18
20
|
export * from "./dashboardShallows";
|
|
19
|
-
export * from "./
|
|
21
|
+
export * from "./dashboardShallowVariables"; // No service
|
|
22
|
+
export * from "./dashboardVariables"; // No service
|
|
20
23
|
export * from "./dataCategories";
|
|
21
24
|
export * from "./dataDefinitions";
|
|
22
|
-
export * from "./dataDefinitionMappings";
|
|
25
|
+
export * from "./dataDefinitionMappings"; // No service
|
|
23
26
|
export * from "./deviceConnectivities";
|
|
24
27
|
export * from "./deviceOrganisations";
|
|
25
28
|
export * from "./deviceStatuses";
|
|
26
|
-
export * from "./enums";
|
|
29
|
+
export * from "./enums"; // No service
|
|
27
30
|
export * from "./extensionApplications";
|
|
28
31
|
export * from "./folders";
|
|
29
32
|
export * from "./groups";
|
|
30
33
|
export * from "./locations";
|
|
31
34
|
export * from "./manufacturers";
|
|
32
35
|
export * from "./models";
|
|
33
|
-
export * from "./modelStatuses";
|
|
36
|
+
export * from "./modelStatuses"; // No service
|
|
34
37
|
export * from "./organisations";
|
|
35
38
|
export * from "./permissionCategories";
|
|
36
39
|
export * from "./roleOrganisations";
|
|
@@ -40,11 +43,11 @@ export * from "./scenarioDeviceOrganisations";
|
|
|
40
43
|
export * from "./scenarioDiffusions";
|
|
41
44
|
export * from "./scenarioOrganisations";
|
|
42
45
|
export * from "./scenarioOrganisationTypes";
|
|
43
|
-
export * from "./scenarios";
|
|
44
|
-
export * from "./shared";
|
|
46
|
+
export * from "./scenarios"; // No service
|
|
47
|
+
export * from "./shared"; // No service
|
|
45
48
|
export * from "./serviceAccounts";
|
|
46
|
-
export * from "./userOrganisationColumns";
|
|
49
|
+
export * from "./userOrganisationColumns"; // No service
|
|
47
50
|
export * from "./userOrganisations";
|
|
48
51
|
export * from "./userOrganisationTables";
|
|
49
|
-
export * from "./widgets";
|
|
52
|
+
export * from "./widgets"; // No service
|
|
50
53
|
export * from "./widgetTemplates";
|
|
@@ -1,36 +1,19 @@
|
|
|
1
|
-
import { ScenarioDeviceOrganisationInfos, ScenarioDeviceOrganisationInfosDTO } from "./scenarioDeviceOrganisationInfos";
|
|
2
1
|
import { CreateTimeRangeDTO } from "../shared/timeRange";
|
|
3
|
-
import { SelectedEntities } from "../enums/sharedEnums";
|
|
4
|
-
|
|
5
|
-
export class ScenarioDeviceOrganisationDetails extends ScenarioDeviceOrganisationInfos {
|
|
6
|
-
constructor(params: ScenarioDeviceOrganisationDetailsDTO) {
|
|
7
|
-
super(params);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface ScenarioDeviceOrganisationDetailsDTO extends ScenarioDeviceOrganisationInfosDTO {
|
|
12
|
-
}
|
|
13
2
|
|
|
14
3
|
export interface CreateScenarioDeviceOrganisationDTO {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
overrideEntities: boolean;
|
|
23
|
-
selectedEntities: SelectedEntities;
|
|
24
|
-
entitiesIds: string[];
|
|
4
|
+
scenarioId: string;
|
|
5
|
+
deviceOrganisationId: string;
|
|
6
|
+
overrideConditions: boolean;
|
|
7
|
+
triggerCondition: string | null;
|
|
8
|
+
autoResolveCondition: string | null;
|
|
9
|
+
overrideTimeRanges: boolean;
|
|
10
|
+
timeRanges: CreateTimeRangeDTO[] | null;
|
|
25
11
|
}
|
|
26
12
|
|
|
27
13
|
export interface UpdateScenarioDeviceOrganisationDTO {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
overrideEntities: boolean;
|
|
34
|
-
selectedEntities: SelectedEntities;
|
|
35
|
-
entitiesIds: string[];
|
|
14
|
+
overrideConditions: boolean;
|
|
15
|
+
triggerCondition: string | null;
|
|
16
|
+
autoResolveCondition: string | null;
|
|
17
|
+
overrideTimeRanges: boolean;
|
|
18
|
+
timeRanges: CreateTimeRangeDTO[] | null;
|
|
36
19
|
}
|
|
@@ -1,62 +1,52 @@
|
|
|
1
1
|
import { TimeRange, TimeRangeDTO } from "../shared/timeRange";
|
|
2
|
-
import { SelectedEntities } from "../enums/sharedEnums";
|
|
3
2
|
|
|
4
3
|
export class ScenarioDeviceOrganisationInfos {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
overrideEntities: boolean;
|
|
18
|
-
selectedEntities: SelectedEntities;
|
|
19
|
-
entitiesIds: string[];
|
|
4
|
+
id: string;
|
|
5
|
+
scenarioId: string;
|
|
6
|
+
scenarioLabel: string;
|
|
7
|
+
deviceOrganisationId: string;
|
|
8
|
+
deviceOrganisationImageId: string | null;
|
|
9
|
+
deviceOrganisationCode: string;
|
|
10
|
+
deviceOrganisationLabel: string;
|
|
11
|
+
overrideConditions: boolean;
|
|
12
|
+
triggerCondition: string | null;
|
|
13
|
+
autoResolveCondition: string | null;
|
|
14
|
+
overrideTimeRanges: boolean;
|
|
15
|
+
timeRanges: TimeRange[] | null;
|
|
20
16
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
this.selectedEntities = params.selectedEntities as SelectedEntities;
|
|
37
|
-
this.entitiesIds = params.entitiesIds.slice();
|
|
38
|
-
}
|
|
17
|
+
constructor(params: ScenarioDeviceOrganisationInfosDTO) {
|
|
18
|
+
this.id = params.id;
|
|
19
|
+
this.scenarioId = params.scenarioId;
|
|
20
|
+
this.scenarioLabel = params.scenarioLabel;
|
|
21
|
+
this.deviceOrganisationId = params.deviceOrganisationId;
|
|
22
|
+
this.deviceOrganisationImageId = params.deviceOrganisationImageId;
|
|
23
|
+
this.deviceOrganisationCode = params.deviceOrganisationCode;
|
|
24
|
+
this.deviceOrganisationLabel = params.deviceOrganisationLabel;
|
|
25
|
+
this.overrideConditions = params.overrideConditions;
|
|
26
|
+
this.triggerCondition = params.triggerCondition;
|
|
27
|
+
this.autoResolveCondition = params.autoResolveCondition;
|
|
28
|
+
this.overrideTimeRanges = params.overrideTimeRanges;
|
|
29
|
+
this.timeRanges = params.timeRanges ?
|
|
30
|
+
params.timeRanges.map(dto => new TimeRange(dto)) : null;
|
|
31
|
+
}
|
|
39
32
|
}
|
|
40
33
|
|
|
41
34
|
export interface ScenarioDeviceOrganisationInfosDTO {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
overrideEntities: boolean;
|
|
55
|
-
selectedEntities: number;
|
|
56
|
-
entitiesIds: string[];
|
|
35
|
+
id: string;
|
|
36
|
+
scenarioId: string;
|
|
37
|
+
scenarioLabel: string;
|
|
38
|
+
deviceOrganisationId: string;
|
|
39
|
+
deviceOrganisationImageId: string | null;
|
|
40
|
+
deviceOrganisationCode: string;
|
|
41
|
+
deviceOrganisationLabel: string;
|
|
42
|
+
overrideConditions: boolean;
|
|
43
|
+
triggerCondition: string | null;
|
|
44
|
+
autoResolveCondition: string | null;
|
|
45
|
+
overrideTimeRanges: boolean;
|
|
46
|
+
timeRanges: TimeRangeDTO[] | null;
|
|
57
47
|
}
|
|
58
48
|
|
|
59
49
|
export interface ScenarioDeviceOrganisationFilters {
|
|
60
|
-
|
|
61
|
-
|
|
50
|
+
scenarioId?: string | null;
|
|
51
|
+
deviceOrganisationId?: string | null;
|
|
62
52
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResolveOn, TriggerOn } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
3
|
import { ScenarioOrganisationTypeInfos, ScenarioOrganisationTypeInfosDTO } from "./scenarioOrganisationTypeInfos";
|
|
4
4
|
import { CreateTimeRangeDTO, TimeRange, TimeRangeDTO } from "../shared/timeRange";
|
|
5
5
|
import { ScenarioTranslation, ScenarioTranslationDTO } from "../scenarios";
|
|
6
|
-
import { WidgetInfos, WidgetInfosDTO } from "../widgets/widgetInfos";
|
|
7
|
-
import { CreateWidgetDTO } from "../widgets/widgetDetails";
|
|
8
|
-
import { SelectedEntities } from "../enums/sharedEnums";
|
|
9
6
|
|
|
10
7
|
export class ScenarioOrganisationTypeDetails extends ScenarioOrganisationTypeInfos {
|
|
11
8
|
groupByIds: string[];
|
|
@@ -31,16 +28,6 @@ export class ScenarioOrganisationTypeDetails extends ScenarioOrganisationTypeInf
|
|
|
31
28
|
lock: number | null;
|
|
32
29
|
waitResolved: boolean;
|
|
33
30
|
translations: ScenarioTranslation[];
|
|
34
|
-
singleEntity: boolean;
|
|
35
|
-
dynamicEntities: boolean;
|
|
36
|
-
globalSelectedEntities: SelectedEntities;
|
|
37
|
-
globalEntitiesIds: string[];
|
|
38
|
-
dynamicDates: boolean;
|
|
39
|
-
globalStartDate: string;
|
|
40
|
-
globalEndDate: string;
|
|
41
|
-
useAutoRefresh: boolean;
|
|
42
|
-
autoRefresh: AutoRefresh;
|
|
43
|
-
widgets: WidgetInfos[];
|
|
44
31
|
|
|
45
32
|
constructor(params: ScenarioOrganisationTypeDetailsDTO) {
|
|
46
33
|
super(params);
|
|
@@ -69,16 +56,6 @@ export class ScenarioOrganisationTypeDetails extends ScenarioOrganisationTypeInf
|
|
|
69
56
|
this.lock = params.lock;
|
|
70
57
|
this.waitResolved = params.waitResolved;
|
|
71
58
|
this.translations = params.translations.map(t => new ScenarioTranslation(t));
|
|
72
|
-
this.singleEntity = params.singleEntity;
|
|
73
|
-
this.dynamicEntities = params.dynamicEntities;
|
|
74
|
-
this.globalSelectedEntities = params.globalSelectedEntities as SelectedEntities;
|
|
75
|
-
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
76
|
-
this.dynamicDates = params.dynamicDates;
|
|
77
|
-
this.globalStartDate = params.globalStartDate;
|
|
78
|
-
this.globalEndDate = params.globalEndDate;
|
|
79
|
-
this.useAutoRefresh = params.useAutoRefresh;
|
|
80
|
-
this.autoRefresh = params.autoRefresh as AutoRefresh;
|
|
81
|
-
this.widgets = params.widgets.map(dto => new WidgetInfos(dto));
|
|
82
59
|
}
|
|
83
60
|
}
|
|
84
61
|
|
|
@@ -106,16 +83,6 @@ export interface ScenarioOrganisationTypeDetailsDTO extends ScenarioOrganisation
|
|
|
106
83
|
lock: number | null;
|
|
107
84
|
waitResolved: boolean;
|
|
108
85
|
translations: ScenarioTranslationDTO[];
|
|
109
|
-
singleEntity: boolean;
|
|
110
|
-
dynamicEntities: boolean;
|
|
111
|
-
globalSelectedEntities: number;
|
|
112
|
-
globalEntitiesIds: string[];
|
|
113
|
-
dynamicDates: boolean;
|
|
114
|
-
globalStartDate: string;
|
|
115
|
-
globalEndDate: string;
|
|
116
|
-
useAutoRefresh: boolean;
|
|
117
|
-
autoRefresh: number;
|
|
118
|
-
widgets: WidgetInfosDTO[];
|
|
119
86
|
}
|
|
120
87
|
|
|
121
88
|
export interface CreateScenarioOrganisationTypeDTO {
|
|
@@ -151,14 +118,4 @@ export interface UpdateScenarioOrganisationTypeDTO {
|
|
|
151
118
|
lock: number | null;
|
|
152
119
|
waitResolved: boolean;
|
|
153
120
|
translations: ScenarioTranslationDTO[];
|
|
154
|
-
singleEntity: boolean;
|
|
155
|
-
dynamicEntities: boolean;
|
|
156
|
-
globalSelectedEntities: number;
|
|
157
|
-
globalEntitiesIds: string[];
|
|
158
|
-
dynamicDates: boolean;
|
|
159
|
-
globalStartDate: string;
|
|
160
|
-
globalEndDate: string;
|
|
161
|
-
useAutoRefresh: boolean;
|
|
162
|
-
autoRefresh: number;
|
|
163
|
-
widgets: CreateWidgetDTO[];
|
|
164
121
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResolveOn, TriggerOn } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
3
|
import { ScenarioOrganisationInfos, ScenarioOrganisationInfosDTO } from "./scenarioOrganisationInfos";
|
|
4
4
|
import { CreateTimeRangeDTO, TimeRange, TimeRangeDTO } from "../shared/timeRange";
|
|
5
5
|
import { ScenarioTranslation, ScenarioTranslationDTO } from "../scenarios";
|
|
6
|
-
import { WidgetInfos, WidgetInfosDTO } from "../widgets/widgetInfos";
|
|
7
|
-
import { CreateWidgetDTO } from "../widgets/widgetDetails";
|
|
8
|
-
import { SelectedEntities } from "../enums/sharedEnums";
|
|
9
6
|
|
|
10
7
|
export class ScenarioOrganisationDetails extends ScenarioOrganisationInfos {
|
|
11
8
|
groupByIds: string[];
|
|
@@ -31,16 +28,6 @@ export class ScenarioOrganisationDetails extends ScenarioOrganisationInfos {
|
|
|
31
28
|
lock: number | null;
|
|
32
29
|
waitResolved: boolean;
|
|
33
30
|
translations: ScenarioTranslation[];
|
|
34
|
-
singleEntity: boolean;
|
|
35
|
-
dynamicEntities: boolean;
|
|
36
|
-
globalSelectedEntities: SelectedEntities;
|
|
37
|
-
globalEntitiesIds: string[];
|
|
38
|
-
dynamicDates: boolean;
|
|
39
|
-
globalStartDate: string;
|
|
40
|
-
globalEndDate: string;
|
|
41
|
-
useAutoRefresh: boolean;
|
|
42
|
-
autoRefresh: AutoRefresh;
|
|
43
|
-
widgets: WidgetInfos[];
|
|
44
31
|
|
|
45
32
|
constructor(params: ScenarioOrganisationDetailsDTO) {
|
|
46
33
|
super(params);
|
|
@@ -68,16 +55,6 @@ export class ScenarioOrganisationDetails extends ScenarioOrganisationInfos {
|
|
|
68
55
|
this.lock = params.lock;
|
|
69
56
|
this.waitResolved = params.waitResolved;
|
|
70
57
|
this.translations = params.translations.map(t => new ScenarioTranslation(t));
|
|
71
|
-
this.singleEntity = params.singleEntity;
|
|
72
|
-
this.dynamicEntities = params.dynamicEntities;
|
|
73
|
-
this.globalSelectedEntities = params.globalSelectedEntities as SelectedEntities;
|
|
74
|
-
this.globalEntitiesIds = params.globalEntitiesIds.slice();
|
|
75
|
-
this.dynamicDates = params.dynamicDates;
|
|
76
|
-
this.globalStartDate = params.globalStartDate;
|
|
77
|
-
this.globalEndDate = params.globalEndDate;
|
|
78
|
-
this.useAutoRefresh = params.useAutoRefresh;
|
|
79
|
-
this.autoRefresh = params.autoRefresh as AutoRefresh;
|
|
80
|
-
this.widgets = params.widgets.map(dto => new WidgetInfos(dto));
|
|
81
58
|
}
|
|
82
59
|
}
|
|
83
60
|
|
|
@@ -105,16 +82,6 @@ export interface ScenarioOrganisationDetailsDTO extends ScenarioOrganisationInfo
|
|
|
105
82
|
lock: number | null;
|
|
106
83
|
waitResolved: boolean;
|
|
107
84
|
translations: ScenarioTranslationDTO[];
|
|
108
|
-
singleEntity: boolean;
|
|
109
|
-
dynamicEntities: boolean;
|
|
110
|
-
globalSelectedEntities: number;
|
|
111
|
-
globalEntitiesIds: string[];
|
|
112
|
-
dynamicDates: boolean;
|
|
113
|
-
globalStartDate: string;
|
|
114
|
-
globalEndDate: string;
|
|
115
|
-
useAutoRefresh: boolean;
|
|
116
|
-
autoRefresh: number;
|
|
117
|
-
widgets: WidgetInfosDTO[];
|
|
118
85
|
}
|
|
119
86
|
|
|
120
87
|
export interface CreateScenarioOrganisationDTO {
|
|
@@ -145,16 +112,6 @@ export interface CreateScenarioOrganisationDTO {
|
|
|
145
112
|
lock: number | null;
|
|
146
113
|
waitResolved: boolean;
|
|
147
114
|
translations: ScenarioTranslationDTO[];
|
|
148
|
-
singleEntity: boolean;
|
|
149
|
-
dynamicEntities: boolean;
|
|
150
|
-
globalSelectedEntities: number;
|
|
151
|
-
globalEntitiesIds: string[];
|
|
152
|
-
dynamicDates: boolean;
|
|
153
|
-
globalStartDate: string;
|
|
154
|
-
globalEndDate: string;
|
|
155
|
-
useAutoRefresh: boolean;
|
|
156
|
-
autoRefresh: number;
|
|
157
|
-
widgets: CreateWidgetDTO[];
|
|
158
115
|
}
|
|
159
116
|
|
|
160
117
|
export interface UpdateScenarioOrganisationDTO {
|
|
@@ -185,14 +142,4 @@ export interface UpdateScenarioOrganisationDTO {
|
|
|
185
142
|
lock: number | null;
|
|
186
143
|
waitResolved: boolean;
|
|
187
144
|
translations: ScenarioTranslationDTO[];
|
|
188
|
-
singleEntity: boolean;
|
|
189
|
-
dynamicEntities: boolean;
|
|
190
|
-
globalSelectedEntities: number;
|
|
191
|
-
globalEntitiesIds: string[];
|
|
192
|
-
dynamicDates: boolean;
|
|
193
|
-
globalStartDate: string;
|
|
194
|
-
globalEndDate: string;
|
|
195
|
-
useAutoRefresh: boolean;
|
|
196
|
-
autoRefresh: number;
|
|
197
|
-
widgets: CreateWidgetDTO[];
|
|
198
145
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ServiceAccountAuthTokenInfos, ServiceAccountAuthTokenInfosDTO } from "./serviceAccountIdAuthTokenInfos";
|
|
2
|
+
|
|
3
|
+
export class ServiceAccountAuthTokenDetails extends ServiceAccountAuthTokenInfos {
|
|
4
|
+
token: string;
|
|
5
|
+
|
|
6
|
+
constructor(params: ServiceAccountAuthTokenDetailsDTO) {
|
|
7
|
+
super(params);
|
|
8
|
+
this.token = params.token;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ServiceAccountAuthTokenDetailsDTO extends ServiceAccountAuthTokenInfosDTO {
|
|
13
|
+
token: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface CreateServiceAccountAuthTokenDTO {
|
|
17
|
+
serviceAccountId?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
lifetime?: number;
|
|
20
|
+
}
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { utcToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
|
|
2
2
|
|
|
3
|
-
export class
|
|
3
|
+
export class ServiceAccountAuthTokenInfos {
|
|
4
4
|
id: string;
|
|
5
|
-
|
|
5
|
+
serviceAccountId: string | null;
|
|
6
6
|
label: string;
|
|
7
7
|
creationDate: number;
|
|
8
8
|
dateMax: number;
|
|
9
9
|
|
|
10
|
-
constructor(params:
|
|
10
|
+
constructor(params: ServiceAccountAuthTokenInfosDTO) {
|
|
11
11
|
this.id = params.id;
|
|
12
|
-
this.
|
|
12
|
+
this.serviceAccountId = params.serviceAccountId;
|
|
13
13
|
this.label = params.label;
|
|
14
14
|
this.creationDate = utcToEpoch(params.creationDate);
|
|
15
15
|
this.dateMax = utcToEpoch(params.dateMax);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export interface
|
|
19
|
+
export interface ServiceAccountAuthTokenInfosDTO {
|
|
20
20
|
id: string;
|
|
21
|
-
|
|
21
|
+
serviceAccountId: string | null;
|
|
22
22
|
label: string;
|
|
23
23
|
creationDate: string;
|
|
24
24
|
dateMax: string;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
export interface
|
|
28
|
-
userId?: string | null;
|
|
27
|
+
export interface ServiceAccountAuthTokenFilters {
|
|
29
28
|
}
|
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.151",
|
|
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": "c90845bbbf6584636e0ccd69c59f209ec17fc00e"
|
|
13
13
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AuthTokenInfos, AuthTokenInfosDTO } from "./authTokenInfos";
|
|
2
|
-
|
|
3
|
-
export class AuthTokenDetails extends AuthTokenInfos {
|
|
4
|
-
token: string;
|
|
5
|
-
|
|
6
|
-
constructor(params: AuthTokenDetailsDTO) {
|
|
7
|
-
super(params);
|
|
8
|
-
this.token = params.token;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface AuthTokenDetailsDTO extends AuthTokenInfosDTO {
|
|
13
|
-
token: string;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface CreateAuthTokenDTO {
|
|
17
|
-
userId: string;
|
|
18
|
-
label: string;
|
|
19
|
-
lifetime: number;
|
|
20
|
-
}
|