@dative-gpi/foundation-core-domain 1.0.27 → 1.0.28-remove-deprecated2
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/actions/actionInfos.ts +1 -1
- package/models/alerts/alertDetails.ts +3 -1
- package/models/alerts/alertInfos.ts +15 -11
- package/models/alerts/alertState.ts +5 -5
- package/models/chartOrganisationTypes/chartOrganisationTypeDetails.ts +18 -5
- package/models/chartOrganisationTypes/chartOrganisationTypeInfos.ts +9 -3
- package/models/chartOrganisations/chartOrganisationDetails.ts +21 -8
- package/models/chartOrganisations/chartOrganisationInfos.ts +9 -3
- package/models/charts/chartAllowedStep.ts +31 -0
- package/models/charts/chartAllowedStepTranslation.ts +19 -0
- package/models/charts/chartAxis.ts +1 -1
- package/models/charts/chartDetails.ts +13 -2
- package/models/charts/chartFilter.ts +1 -1
- package/models/charts/chartInfos.ts +5 -2
- package/models/charts/chartOperand.ts +1 -1
- package/models/charts/chartPreset.ts +4 -0
- package/models/charts/chartTimeRange.ts +3 -1
- package/models/charts/chartTimeStep.ts +1 -5
- package/models/charts/index.ts +2 -0
- package/models/comments/commentInfos.ts +3 -3
- package/models/connectivityAlerts/connectivityAlertInfos.ts +10 -4
- package/models/connectivityScenarios/connectivityScenarioDetails.ts +2 -2
- package/models/connectivityScenarios/index.ts +2 -1
- package/models/customProperties/customPropertyColor.ts +1 -1
- package/models/customProperties/customPropertyInfos.ts +1 -4
- package/models/customPropertyValues/customPropertyValueInfos.ts +2 -2
- package/models/dashboardDatePresets/dashboardDatePresetDetails.ts +3 -1
- package/models/dashboardDatePresets/dashboardDatePresetInfos.ts +1 -1
- package/models/dashboardEntityPresets/dashboardEntityPresetDetails.ts +2 -2
- package/models/dashboardEntityPresets/dashboardEntityPresetInfos.ts +4 -4
- package/models/dashboardOrganisationTypes/dashboardOrganisationTypeDetails.ts +4 -1
- package/models/dashboardOrganisationTypes/dashboardOrganisationTypeInfos.ts +2 -1
- package/models/dashboardOrganisations/dashboardOrganisationDetails.ts +3 -1
- package/models/dashboardOrganisations/dashboardOrganisationInfos.ts +2 -1
- package/models/dashboardShallowDatePresets/dashboardShallowDatePresetDetails.ts +1 -1
- package/models/dashboardShallowDatePresets/dashboardShallowDatePresetInfos.ts +1 -1
- package/models/dashboardShallowEntityPresets/dashboardShallowEntityPresetDetails.ts +2 -2
- package/models/dashboardShallowEntityPresets/dashboardShallowEntityPresetInfos.ts +4 -4
- package/models/dashboardShallowVariables/dashboardShallowVariableDetails.ts +1 -5
- package/models/dashboardShallowVariables/dashboardShallowVariableInfos.ts +3 -12
- package/models/dashboardShallows/dashboardShallowDetails.ts +63 -23
- package/models/dashboardShallows/dashboardShallowInfos.ts +1 -1
- package/models/dashboardVariableValues/dashboardVariableValue.ts +1 -1
- package/models/dashboardVariables/dashboardVariableDetails.ts +3 -3
- package/models/dashboardVariables/dashboardVariableInfos.ts +1 -1
- package/models/dashboards/dashboardInfos.ts +1 -1
- package/models/dataDefinitions/dataDefinitionInfos.ts +1 -1
- package/models/deviceConnectivities/deviceConnectivityInfos.ts +5 -5
- package/models/deviceExplorerElements/deviceExplorerElementDetails.ts +11 -0
- package/models/deviceExplorerElements/deviceExplorerElementInfos.ts +116 -0
- package/models/deviceExplorerElements/index.ts +2 -0
- package/models/deviceOrganisations/deviceOrganisationAlert.ts +4 -4
- package/models/deviceOrganisations/deviceOrganisationDetails.ts +0 -3
- package/models/deviceOrganisations/deviceOrganisationInfos.ts +11 -12
- package/models/deviceStatuses/deviceStatusInfos.ts +4 -4
- package/models/folders/folderInfos.ts +1 -0
- package/models/groups/groupInfos.ts +1 -2
- package/models/index.ts +16 -16
- package/models/organisations/organisationDetails.ts +1 -1
- package/models/roleOrganisationTypes/roleOrganisationTypeDetails.ts +7 -8
- package/models/roleOrganisationTypes/roleOrganisationTypeInfos.ts +41 -43
- package/models/roleOrganisations/roleOrganisationDetails.ts +2 -4
- package/models/roleOrganisations/roleOrganisationInfos.ts +36 -38
- package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationDetails.ts +25 -8
- package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationInfos.ts +35 -13
- package/models/scenarioOrganisationTypes/scenarioOrganisationTypeDetails.ts +19 -3
- package/models/scenarioOrganisationTypes/scenarioOrganisationTypeInfos.ts +31 -8
- package/models/scenarioOrganisations/scenarioOrganisationDetails.ts +27 -5
- package/models/scenarioOrganisations/scenarioOrganisationInfos.ts +31 -8
- package/models/scenarioParameterDeviceOrganisations/index.ts +2 -0
- package/models/scenarioParameterDeviceOrganisations/scenarioParameterDeviceOrganisationDetails.ts +24 -0
- package/models/scenarioParameterDeviceOrganisations/scenarioParameterDeviceOrganisationInfos.ts +45 -0
- package/models/scenarios/index.ts +5 -1
- package/models/scenarios/scenarioChart.ts +30 -0
- package/models/scenarios/scenarioParameter.ts +52 -0
- package/models/scenarios/scenarioParameterOverride.ts +20 -0
- package/models/scenarios/translationScenarioParameter.ts +14 -0
- package/models/serviceAccountOrganisationAuthTokens/serviceAccountOrganisationAuthTokenInfos.ts +3 -3
- package/models/serviceAccountOrganisations/serviceAccountOrganisationDetails.ts +2 -7
- package/models/serviceAccountOrganisations/serviceAccountOrganisationInfos.ts +1 -5
- package/models/serviceAccountRoleOrganisations/index.ts +2 -0
- package/models/serviceAccountRoleOrganisations/serviceAccountRoleOrganisationDetails.ts +33 -0
- package/models/serviceAccountRoleOrganisations/serviceAccountRoleOrganisationInfos.ts +42 -0
- package/models/shared/timeRange.ts +5 -1
- package/models/userOrganisationTables/userOrganisationTableInfos.ts +2 -2
- package/models/userOrganisations/userOrganisationDetails.ts +2 -2
- package/models/userOrganisations/userOrganisationInfos.ts +3 -2
- package/models/widgetTemplates/widgetTemplateInfos.ts +16 -2
- package/models/widgets/widgetInfos.ts +16 -4
- package/package.json +4 -4
- package/models/enums/actionEnums.ts +0 -6
- package/models/enums/applicationEnums.ts +0 -8
- package/models/enums/chartEnums.ts +0 -109
- package/models/enums/customPropertyEnums.ts +0 -12
- package/models/enums/index.ts +0 -8
- package/models/enums/notificationEnums.ts +0 -6
- package/models/enums/roleEnums.ts +0 -5
- package/models/enums/sharedEnums.ts +0 -27
- package/models/enums/userEnums.ts +0 -12
- package/models/notifications/index.ts +0 -2
- package/models/notifications/notificationDetails.ts +0 -10
- package/models/notifications/notificationInfos.ts +0 -43
- package/models/scenarioDiffusions/index.ts +0 -1
- package/models/scenarioDiffusions/scenarioDiffusion.ts +0 -25
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { type DeviceExplorerElementType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
2
|
+
|
|
3
|
+
import { DeviceConnectivityDetails, type DeviceConnectivityDetailsDTO } from "../deviceConnectivities/deviceConnectivityDetails";
|
|
4
|
+
import { DeviceOrganisationAlert, type DeviceOrganisationAlertDTO } from "../deviceOrganisations/deviceOrganisationAlert";
|
|
5
|
+
import { DeviceStatusDetails, type DeviceStatusDetailsDTO } from "../deviceStatuses/deviceStatusDetails";
|
|
6
|
+
import { ModelStatusInfos, type ModelStatusInfosDTO } from "../modelStatuses/modelStatusInfos";
|
|
7
|
+
import { PathCrumb, type PathCrumbDTO } from "../shared/pathCrumb";
|
|
8
|
+
|
|
9
|
+
export class DeviceExplorerElementInfos {
|
|
10
|
+
id: string;
|
|
11
|
+
organisationId: string | null;
|
|
12
|
+
parentId: string | null;
|
|
13
|
+
imageId: string | null;
|
|
14
|
+
code: string;
|
|
15
|
+
label: string;
|
|
16
|
+
tags: string[];
|
|
17
|
+
path: PathCrumb[];
|
|
18
|
+
type: DeviceExplorerElementType;
|
|
19
|
+
|
|
20
|
+
icon: string | null;
|
|
21
|
+
groupsIds: string[] | null;
|
|
22
|
+
deviceOrganisationsIds: string[] | null;
|
|
23
|
+
modelsIds: string[] | null;
|
|
24
|
+
recursiveGroupsIds: string[] | null;
|
|
25
|
+
recursiveDeviceOrganisationsIds: string[] | null;
|
|
26
|
+
recursiveModelsIds: string[] | null;
|
|
27
|
+
|
|
28
|
+
manufacturerLabel: string | null;
|
|
29
|
+
articleLabel: string | null;
|
|
30
|
+
modelLabel: string | null;
|
|
31
|
+
ownerLabel: string | null;
|
|
32
|
+
managerName: string | null;
|
|
33
|
+
unrestricted: boolean | null;
|
|
34
|
+
online: number | null;
|
|
35
|
+
meta: { [key: string]: string } | null;
|
|
36
|
+
modelStatuses: ModelStatusInfos[] | null;
|
|
37
|
+
status: DeviceStatusDetails | null;
|
|
38
|
+
connectivity: DeviceConnectivityDetails | null;
|
|
39
|
+
alerts: DeviceOrganisationAlert[] | null;
|
|
40
|
+
worstAlert: DeviceOrganisationAlert | null;
|
|
41
|
+
|
|
42
|
+
constructor(params: DeviceExplorerElementInfosDTO) {
|
|
43
|
+
this.id = params.id;
|
|
44
|
+
this.organisationId = params.organisationId;
|
|
45
|
+
this.parentId = params.parentId;
|
|
46
|
+
this.imageId = params.imageId;
|
|
47
|
+
this.code = params.code;
|
|
48
|
+
this.label = params.label;
|
|
49
|
+
this.tags = params.tags;
|
|
50
|
+
this.path = params.path.map(dto => new PathCrumb({ ...dto })).sort((a, b) => b.index - a.index);
|
|
51
|
+
this.type = params.type;
|
|
52
|
+
|
|
53
|
+
this.icon = params.icon ?? null;
|
|
54
|
+
this.groupsIds = params.groupsIds?.slice() ?? null;
|
|
55
|
+
this.deviceOrganisationsIds = params.deviceOrganisationsIds?.slice() ?? null;
|
|
56
|
+
this.modelsIds = params.modelsIds?.slice() ?? null;
|
|
57
|
+
this.recursiveGroupsIds = params.recursiveGroupsIds?.slice() ?? null;
|
|
58
|
+
this.recursiveDeviceOrganisationsIds = params.recursiveDeviceOrganisationsIds?.slice() ?? null;
|
|
59
|
+
this.recursiveModelsIds = params.recursiveModelsIds?.slice() ?? null;
|
|
60
|
+
|
|
61
|
+
this.manufacturerLabel = params.manufacturerLabel ?? null;
|
|
62
|
+
this.articleLabel = params.articleLabel ?? null;
|
|
63
|
+
this.modelLabel = params.modelLabel ?? null;
|
|
64
|
+
this.ownerLabel = params.ownerLabel ?? null;
|
|
65
|
+
this.managerName = params.managerName ?? null;
|
|
66
|
+
this.unrestricted = params.unrestricted ?? null;
|
|
67
|
+
this.online = params.online ?? null;
|
|
68
|
+
this.meta = params.meta ? { ...params.meta } : null;
|
|
69
|
+
this.modelStatuses = params.modelStatuses?.map(dto => new ModelStatusInfos(dto)) ?? null;
|
|
70
|
+
this.status = params.status ? new DeviceStatusDetails(params.status) : null;
|
|
71
|
+
this.connectivity = params.connectivity ? new DeviceConnectivityDetails(params.connectivity) : null;
|
|
72
|
+
this.alerts = params.alerts?.map(dto => new DeviceOrganisationAlert(dto)) ?? null;
|
|
73
|
+
this.worstAlert = params.worstAlert ? new DeviceOrganisationAlert(params.worstAlert) : null;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface DeviceExplorerElementInfosDTO {
|
|
78
|
+
id: string;
|
|
79
|
+
organisationId: string | null;
|
|
80
|
+
parentId: string | null;
|
|
81
|
+
imageId: string | null;
|
|
82
|
+
code: string;
|
|
83
|
+
label: string;
|
|
84
|
+
tags: string[];
|
|
85
|
+
path: PathCrumbDTO[];
|
|
86
|
+
type: number;
|
|
87
|
+
|
|
88
|
+
icon?: string | null;
|
|
89
|
+
groupsIds?: string[] | null;
|
|
90
|
+
deviceOrganisationsIds?: string[] | null;
|
|
91
|
+
modelsIds?: string[] | null;
|
|
92
|
+
recursiveGroupsIds?: string[] | null;
|
|
93
|
+
recursiveDeviceOrganisationsIds?: string[] | null;
|
|
94
|
+
recursiveModelsIds?: string[] | null;
|
|
95
|
+
|
|
96
|
+
manufacturerLabel?: string | null;
|
|
97
|
+
articleLabel?: string | null;
|
|
98
|
+
modelLabel?: string | null;
|
|
99
|
+
ownerLabel?: string | null;
|
|
100
|
+
managerName?: string | null;
|
|
101
|
+
unrestricted?: boolean | null;
|
|
102
|
+
online?: number | null;
|
|
103
|
+
meta?: { [key: string]: string } | null;
|
|
104
|
+
modelStatuses?: ModelStatusInfosDTO[] | null;
|
|
105
|
+
status?: DeviceStatusDetailsDTO | null;
|
|
106
|
+
connectivity?: DeviceConnectivityDetailsDTO | null;
|
|
107
|
+
alerts?: DeviceOrganisationAlertDTO[] | null;
|
|
108
|
+
worstAlert?: DeviceOrganisationAlertDTO | null;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface DeviceExplorerElementFilters {
|
|
112
|
+
ancestorId?: string | null;
|
|
113
|
+
parentId?: string | null;
|
|
114
|
+
root?: boolean | null;
|
|
115
|
+
search?: string | null;
|
|
116
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/
|
|
2
|
-
import {
|
|
1
|
+
import type { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/enums";
|
|
2
|
+
import { isoToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
|
|
3
3
|
|
|
4
4
|
export class DeviceOrganisationAlert {
|
|
5
5
|
id: string;
|
|
@@ -14,8 +14,8 @@ export class DeviceOrganisationAlert {
|
|
|
14
14
|
this.label = params.label;
|
|
15
15
|
this.status = params.status;
|
|
16
16
|
this.criticity = params.criticity;
|
|
17
|
-
this.sourceTimestamp = params.sourceTimestamp ?
|
|
18
|
-
this.enqueuedTimestamp = params.enqueuedTimestamp ?
|
|
17
|
+
this.sourceTimestamp = params.sourceTimestamp ? isoToEpoch(params.sourceTimestamp) : undefined;
|
|
18
|
+
this.enqueuedTimestamp = params.enqueuedTimestamp ? isoToEpoch(params.enqueuedTimestamp) : undefined;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -9,7 +9,6 @@ export class DeviceOrganisationDetails extends DeviceOrganisationInfos {
|
|
|
9
9
|
articleCode: string;
|
|
10
10
|
familyId: string;
|
|
11
11
|
familyLabel: string;
|
|
12
|
-
description: string;
|
|
13
12
|
options: DeviceOrganisationOption[];
|
|
14
13
|
path: PathCrumb[];
|
|
15
14
|
|
|
@@ -19,7 +18,6 @@ export class DeviceOrganisationDetails extends DeviceOrganisationInfos {
|
|
|
19
18
|
this.articleCode = params.articleCode;
|
|
20
19
|
this.familyId = params.familyId;
|
|
21
20
|
this.familyLabel = params.familyLabel;
|
|
22
|
-
this.description = params.description;
|
|
23
21
|
this.options = params.options.map(dto => new DeviceOrganisationOption({ ...dto }));
|
|
24
22
|
this.path = params.path.map(dto => new PathCrumb({ ...dto })).sort((a, b) => b.index - a.index);
|
|
25
23
|
}
|
|
@@ -29,7 +27,6 @@ export interface DeviceOrganisationDetailsDTO extends DeviceOrganisationInfosDTO
|
|
|
29
27
|
articleCode: string;
|
|
30
28
|
familyId: string;
|
|
31
29
|
familyLabel: string;
|
|
32
|
-
description: string;
|
|
33
30
|
options: DeviceOrganisationOptionDTO[];
|
|
34
31
|
path: PathCrumbDTO[];
|
|
35
32
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
import type
|
|
4
|
-
import {
|
|
5
|
-
import type
|
|
6
|
-
import { DeviceOrganisationAlert } from "./deviceOrganisationAlert";
|
|
7
|
-
import type { ModelStatusInfosDTO } from "../modelStatuses/modelStatusInfos";
|
|
8
|
-
import { ModelStatusInfos } from "../modelStatuses/modelStatusInfos";
|
|
1
|
+
import { DeviceConnectivityDetails, type DeviceConnectivityDetailsDTO } from "../deviceConnectivities/deviceConnectivityDetails";
|
|
2
|
+
import { DeviceStatusDetails, type DeviceStatusDetailsDTO } from "../deviceStatuses/deviceStatusDetails";
|
|
3
|
+
import { DeviceOrganisationAlert, type DeviceOrganisationAlertDTO } from "./deviceOrganisationAlert";
|
|
4
|
+
import { ModelStatusInfos, type ModelStatusInfosDTO } from "../modelStatuses/modelStatusInfos";
|
|
5
|
+
import { PathCrumb, type PathCrumbDTO } from "../shared/pathCrumb";
|
|
9
6
|
|
|
10
7
|
export class DeviceOrganisationInfos {
|
|
11
8
|
id: string;
|
|
@@ -29,10 +26,12 @@ export class DeviceOrganisationInfos {
|
|
|
29
26
|
groupIcon: string | null;
|
|
30
27
|
label: string;
|
|
31
28
|
code: string;
|
|
29
|
+
description: string;
|
|
32
30
|
imageId: string | null;
|
|
33
31
|
tags: string[];
|
|
34
32
|
unrestricted: boolean;
|
|
35
33
|
online: number;
|
|
34
|
+
path: PathCrumb[];
|
|
36
35
|
meta: { [key: string]: string };
|
|
37
36
|
modelStatuses: ModelStatusInfos[];
|
|
38
37
|
status: DeviceStatusDetails;
|
|
@@ -40,10 +39,6 @@ export class DeviceOrganisationInfos {
|
|
|
40
39
|
alerts: DeviceOrganisationAlert[];
|
|
41
40
|
worstAlert: DeviceOrganisationAlert | null;
|
|
42
41
|
|
|
43
|
-
get connectable(): DeviceConnectivityDetails | undefined {
|
|
44
|
-
return this.connectivity;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
42
|
constructor(params: DeviceOrganisationInfosDTO) {
|
|
48
43
|
this.id = params.id;
|
|
49
44
|
this.deviceId = params.deviceId;
|
|
@@ -66,10 +61,12 @@ export class DeviceOrganisationInfos {
|
|
|
66
61
|
this.groupIcon = params.groupIcon;
|
|
67
62
|
this.label = params.label;
|
|
68
63
|
this.code = params.code;
|
|
64
|
+
this.description = params.description;
|
|
69
65
|
this.imageId = params.imageId;
|
|
70
66
|
this.tags = params.tags.slice();
|
|
71
67
|
this.unrestricted = params.unrestricted;
|
|
72
68
|
this.online = params.online;
|
|
69
|
+
this.path = params.path.map(dto => new PathCrumb({ ...dto })).sort((a, b) => b.index - a.index);
|
|
73
70
|
this.meta = { ...params.meta };
|
|
74
71
|
this.modelStatuses = params.modelStatuses.map(dto => new ModelStatusInfos(dto));
|
|
75
72
|
this.status = new DeviceStatusDetails(params.status);
|
|
@@ -102,10 +99,12 @@ export interface DeviceOrganisationInfosDTO {
|
|
|
102
99
|
groupIcon: string | null;
|
|
103
100
|
label: string;
|
|
104
101
|
code: string;
|
|
102
|
+
description: string;
|
|
105
103
|
imageId: string | null;
|
|
106
104
|
tags: string[];
|
|
107
105
|
unrestricted: boolean;
|
|
108
106
|
online: number;
|
|
107
|
+
path: PathCrumbDTO[];
|
|
109
108
|
meta: { [key: string]: string };
|
|
110
109
|
modelStatuses: ModelStatusInfosDTO[];
|
|
111
110
|
status: DeviceStatusDetailsDTO;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isoToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
|
|
2
2
|
|
|
3
3
|
export class DeviceStatusInfos {
|
|
4
4
|
id: string;
|
|
@@ -33,11 +33,11 @@ export class DeviceStatusGroup {
|
|
|
33
33
|
|
|
34
34
|
constructor(params: DeviceStatusGroupDTO) {
|
|
35
35
|
this.sourceTimestamp = params.sourceTimestamp ?
|
|
36
|
-
|
|
36
|
+
isoToEpoch(params.sourceTimestamp) : null;
|
|
37
37
|
this.enqueuedTimestamp = params.enqueuedTimestamp ?
|
|
38
|
-
|
|
38
|
+
isoToEpoch(params.enqueuedTimestamp) : null;
|
|
39
39
|
this.processedTimestamp = params.processedTimestamp ?
|
|
40
|
-
|
|
40
|
+
isoToEpoch(params.processedTimestamp) : null;
|
|
41
41
|
this.groupByValue = params.groupByValue;
|
|
42
42
|
this.value = params.value;
|
|
43
43
|
this.unit = params.unit;
|
package/models/index.ts
CHANGED
|
@@ -10,47 +10,47 @@ export * from "./connectivityAlerts";
|
|
|
10
10
|
export * from "./connectivityScenarios";
|
|
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";
|
|
19
|
-
export * from "./dashboardShallowEntityPresets";
|
|
18
|
+
export * from "./dashboardShallowDatePresets"; // No service
|
|
19
|
+
export * from "./dashboardShallowEntityPresets"; // No service
|
|
20
20
|
export * from "./dashboardShallows";
|
|
21
|
-
export * from "./dashboardShallowVariables";
|
|
22
|
-
export * from "./dashboardVariables";
|
|
23
|
-
export * from "./dashboardVariableValues";
|
|
21
|
+
export * from "./dashboardShallowVariables"; // No service
|
|
22
|
+
export * from "./dashboardVariables"; // No service
|
|
23
|
+
export * from "./dashboardVariableValues"; // No service
|
|
24
24
|
export * from "./dataCategories";
|
|
25
25
|
export * from "./dataDefinitions";
|
|
26
|
-
export * from "./dataDefinitionMappings";
|
|
26
|
+
export * from "./dataDefinitionMappings"; // No service
|
|
27
27
|
export * from "./deviceConnectivities";
|
|
28
|
+
export * from "./deviceExplorerElements";
|
|
28
29
|
export * from "./deviceOrganisations";
|
|
29
30
|
export * from "./deviceStatuses";
|
|
30
|
-
export * from "./enums"; // No service
|
|
31
31
|
export * from "./extensionApplications";
|
|
32
32
|
export * from "./folders";
|
|
33
33
|
export * from "./groups";
|
|
34
34
|
export * from "./locations";
|
|
35
35
|
export * from "./manufacturers";
|
|
36
36
|
export * from "./models";
|
|
37
|
-
export * from "./modelStatuses";
|
|
38
|
-
export * from "./notifications";
|
|
37
|
+
export * from "./modelStatuses"; // No service
|
|
39
38
|
export * from "./organisations";
|
|
40
39
|
export * from "./permissionCategories";
|
|
41
40
|
export * from "./roleOrganisations";
|
|
42
41
|
export * from "./roleOrganisationTypes";
|
|
43
42
|
export * from "./routes";
|
|
44
43
|
export * from "./scenarioDeviceOrganisations";
|
|
45
|
-
export * from "./scenarioDiffusions";
|
|
46
44
|
export * from "./scenarioOrganisations";
|
|
47
45
|
export * from "./scenarioOrganisationTypes";
|
|
48
|
-
export * from "./
|
|
49
|
-
export * from "./
|
|
46
|
+
export * from "./scenarioParameterDeviceOrganisations"; // No service
|
|
47
|
+
export * from "./scenarios"; // No service
|
|
48
|
+
export * from "./shared"; // No service
|
|
50
49
|
export * from "./serviceAccountOrganisationAuthTokens";
|
|
51
50
|
export * from "./serviceAccountOrganisations";
|
|
52
|
-
export * from "./
|
|
51
|
+
export * from "./serviceAccountRoleOrganisations";
|
|
52
|
+
export * from "./userOrganisationColumns"; // No service
|
|
53
53
|
export * from "./userOrganisations";
|
|
54
54
|
export * from "./userOrganisationTables";
|
|
55
|
-
export * from "./widgets";
|
|
55
|
+
export * from "./widgets"; // No service
|
|
56
56
|
export * from "./widgetTemplates";
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { RoleOrganisationTypeInfos } from "./roleOrganisationTypeInfos";
|
|
1
|
+
import { RoleOrganisationTypeInfos, type RoleOrganisationTypeInfosDTO } from "./roleOrganisationTypeInfos";
|
|
3
2
|
|
|
4
3
|
export class RoleOrganisationTypeDetails extends RoleOrganisationTypeInfos {
|
|
5
|
-
|
|
4
|
+
description: string;
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
constructor(params: RoleOrganisationTypeDetailsDTO) {
|
|
7
|
+
super(params);
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
this.description = params.description;
|
|
10
|
+
}
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export interface RoleOrganisationTypeDetailsDTO extends RoleOrganisationTypeInfosDTO {
|
|
15
|
-
|
|
14
|
+
description: string;
|
|
16
15
|
}
|
|
@@ -1,54 +1,52 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { PermissionInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
1
|
+
import { PermissionInfos, type PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
3
2
|
|
|
4
|
-
import type
|
|
5
|
-
import type
|
|
3
|
+
import { type ApplicationScope } from "@dative-gpi/foundation-shared-domain/enums";
|
|
4
|
+
import { type UserType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
6
5
|
|
|
7
6
|
export class RoleOrganisationTypeInfos {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
id: string;
|
|
8
|
+
roleId: string;
|
|
9
|
+
organisationTypeId: string;
|
|
10
|
+
organisationTypeLabel: string;
|
|
11
|
+
scope: ApplicationScope;
|
|
12
|
+
userType: UserType;
|
|
13
|
+
icon: string;
|
|
14
|
+
code: string;
|
|
15
|
+
label: string;
|
|
16
|
+
tags: string[];
|
|
17
|
+
permissions: PermissionInfos[];
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
constructor(params: RoleOrganisationTypeInfosDTO) {
|
|
20
|
+
this.id = params.id;
|
|
21
|
+
this.roleId = params.roleId;
|
|
22
|
+
this.organisationTypeId = params.organisationTypeId;
|
|
23
|
+
this.organisationTypeLabel = params.organisationTypeLabel;
|
|
24
|
+
this.scope = params.scope;
|
|
25
|
+
this.userType = params.userType;
|
|
26
|
+
this.scope = params.scope;
|
|
27
|
+
this.userType = params.userType;
|
|
28
|
+
this.icon = params.icon;
|
|
29
|
+
this.code = params.code;
|
|
30
|
+
this.label = params.label;
|
|
31
|
+
this.tags = params.tags.slice();
|
|
32
|
+
this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
|
|
33
|
+
}
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
export interface RoleOrganisationTypeInfosDTO {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
id: string;
|
|
38
|
+
roleId: string;
|
|
39
|
+
organisationTypeId: string;
|
|
40
|
+
organisationTypeLabel: string;
|
|
41
|
+
scope: ApplicationScope;
|
|
42
|
+
userType: UserType;
|
|
43
|
+
icon: string;
|
|
44
|
+
code: string;
|
|
45
|
+
label: string;
|
|
46
|
+
tags: string[];
|
|
47
|
+
permissions: PermissionInfosDTO[];
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
export interface RoleOrganisationTypeFilters {
|
|
52
|
-
|
|
53
|
-
search?: string | null;
|
|
51
|
+
search?: string | null;
|
|
54
52
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
import type { RoleType } from "../enums/roleEnums";
|
|
1
|
+
import { RoleOrganisationInfos, type RoleOrganisationInfosDTO } from "./roleOrganisationInfos";
|
|
2
|
+
import { type RoleType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
4
3
|
|
|
5
4
|
export class RoleOrganisationDetails extends RoleOrganisationInfos {
|
|
6
5
|
description: string;
|
|
@@ -19,7 +18,6 @@ export interface RoleOrganisationDetailsDTO extends RoleOrganisationInfosDTO {
|
|
|
19
18
|
export interface CreateRoleOrganisationDTO {
|
|
20
19
|
roleTemplateType: RoleType;
|
|
21
20
|
roleTemplateId: string | null;
|
|
22
|
-
userType: number;
|
|
23
21
|
icon: string;
|
|
24
22
|
code: string;
|
|
25
23
|
label: string;
|
|
@@ -1,49 +1,47 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { PermissionInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
1
|
+
import { PermissionInfos, type PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
3
2
|
|
|
4
|
-
import type
|
|
5
|
-
import type
|
|
3
|
+
import { type ApplicationScope } from "@dative-gpi/foundation-shared-domain/enums";
|
|
4
|
+
import { type UserType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
6
5
|
|
|
7
6
|
export class RoleOrganisationInfos {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
id: string;
|
|
8
|
+
roleId: string;
|
|
9
|
+
organisationId: string;
|
|
10
|
+
scope: ApplicationScope;
|
|
11
|
+
userType: UserType
|
|
12
|
+
icon: string;
|
|
13
|
+
code: string;
|
|
14
|
+
label: string;
|
|
15
|
+
tags: string[];
|
|
16
|
+
permissions: PermissionInfos[];
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
constructor(params: RoleOrganisationInfosDTO) {
|
|
19
|
+
this.id = params.id;
|
|
20
|
+
this.roleId = params.roleId;
|
|
21
|
+
this.organisationId = params.organisationId;
|
|
22
|
+
this.scope = params.scope;
|
|
23
|
+
this.userType = params.userType;
|
|
24
|
+
this.icon = params.icon;
|
|
25
|
+
this.code = params.code;
|
|
26
|
+
this.label = params.label;
|
|
27
|
+
this.tags = params.tags.slice();
|
|
28
|
+
this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
|
|
29
|
+
}
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
export interface RoleOrganisationInfosDTO {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
id: string;
|
|
34
|
+
roleId: string;
|
|
35
|
+
organisationId: string;
|
|
36
|
+
scope: ApplicationScope;
|
|
37
|
+
userType: UserType;
|
|
38
|
+
icon: string;
|
|
39
|
+
code: string;
|
|
40
|
+
label: string;
|
|
41
|
+
tags: string[];
|
|
42
|
+
permissions: PermissionInfosDTO[];
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
export interface RoleOrganisationFilters {
|
|
47
|
-
|
|
48
|
-
search?: string | null;
|
|
46
|
+
search?: string | null;
|
|
49
47
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type { CreateTimeRangeDTO } from "../shared/timeRange";
|
|
2
2
|
import type { ScenarioDeviceOrganisationInfosDTO } from "./scenarioDeviceOrganisationInfos";
|
|
3
3
|
import { ScenarioDeviceOrganisationInfos } from "./scenarioDeviceOrganisationInfos";
|
|
4
|
+
import type { CreateScenarioParameterOverrideDTO } from "../scenarios/scenarioParameterOverride";
|
|
5
|
+
import type { ApplicationScope } from "@dative-gpi/foundation-shared-domain/enums";
|
|
4
6
|
|
|
5
7
|
|
|
6
8
|
export class ScenarioDeviceOrganisationDetails extends ScenarioDeviceOrganisationInfos {
|
|
7
9
|
|
|
8
|
-
constructor(params: ScenarioDeviceOrganisationDetailsDTO)
|
|
9
|
-
|
|
10
|
+
constructor(params: ScenarioDeviceOrganisationDetailsDTO) {
|
|
11
|
+
super(params);
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
|
|
@@ -16,18 +18,33 @@ export interface ScenarioDeviceOrganisationDetailsDTO extends ScenarioDeviceOrga
|
|
|
16
18
|
|
|
17
19
|
export interface CreateScenarioDeviceOrganisationDTO {
|
|
18
20
|
scenarioId: string;
|
|
21
|
+
scenarioScope: ApplicationScope;
|
|
19
22
|
deviceOrganisationId: string;
|
|
20
|
-
overrideConditions: boolean;
|
|
21
|
-
triggerCondition: string | null;
|
|
22
|
-
autoResolveCondition: string | null;
|
|
23
23
|
overrideTimeRanges: boolean;
|
|
24
24
|
timeRanges: CreateTimeRangeDTO[] | null;
|
|
25
|
+
delay: number | null;
|
|
26
|
+
warnDeviceManager: boolean;
|
|
27
|
+
userOrganisationsIds: string[];
|
|
28
|
+
overrideParameters: CreateScenarioParameterOverrideDTO[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface CreateManyScenarioDeviceOrganisationDTO {
|
|
32
|
+
scenarioId: string;
|
|
33
|
+
scenarioScope: ApplicationScope;
|
|
34
|
+
deviceOrganisationsIds: string[];
|
|
35
|
+
overrideTimeRanges: boolean;
|
|
36
|
+
timeRanges: CreateTimeRangeDTO[] | null;
|
|
37
|
+
delay: number | null;
|
|
38
|
+
warnDeviceManager: boolean;
|
|
39
|
+
userOrganisationsIds: string[];
|
|
40
|
+
overrideParameters: CreateScenarioParameterOverrideDTO[];
|
|
25
41
|
}
|
|
26
42
|
|
|
27
43
|
export interface UpdateScenarioDeviceOrganisationDTO {
|
|
28
|
-
overrideConditions: boolean;
|
|
29
|
-
triggerCondition: string | null;
|
|
30
|
-
autoResolveCondition: string | null;
|
|
31
44
|
overrideTimeRanges: boolean;
|
|
32
45
|
timeRanges: CreateTimeRangeDTO[] | null;
|
|
46
|
+
warnDeviceManager: boolean;
|
|
47
|
+
delay: number | null;
|
|
48
|
+
userOrganisationsIds: string[];
|
|
49
|
+
overrideParameters: CreateScenarioParameterOverrideDTO[];
|
|
33
50
|
}
|