@dative-gpi/foundation-core-domain 1.0.26 → 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 +6 -3
- 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
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type { RoleType } from "../enums/roleEnums";
|
|
1
|
+
import { type UserType, type UserValidityState } from "@dative-gpi/foundation-shared-domain/enums";
|
|
3
2
|
|
|
4
3
|
export class ServiceAccountOrganisationInfos {
|
|
5
4
|
id: string;
|
|
6
5
|
userId: string;
|
|
7
6
|
organisationId: string;
|
|
8
|
-
roleType: RoleType;
|
|
9
7
|
roleId: string | null;
|
|
10
8
|
roleLabel: string;
|
|
11
9
|
roleIcon: string;
|
|
@@ -20,7 +18,6 @@ export class ServiceAccountOrganisationInfos {
|
|
|
20
18
|
this.id = params.id;
|
|
21
19
|
this.userId = params.userId;
|
|
22
20
|
this.organisationId = params.organisationId;
|
|
23
|
-
this.roleType = params.roleType;
|
|
24
21
|
this.roleId = params.roleId;
|
|
25
22
|
this.roleLabel = params.roleLabel;
|
|
26
23
|
this.roleIcon = params.roleIcon;
|
|
@@ -37,7 +34,6 @@ export interface ServiceAccountOrganisationInfosDTO {
|
|
|
37
34
|
id: string;
|
|
38
35
|
userId: string;
|
|
39
36
|
organisationId: string;
|
|
40
|
-
roleType: RoleType;
|
|
41
37
|
roleId: string | null;
|
|
42
38
|
roleLabel: string;
|
|
43
39
|
roleIcon: string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ServiceAccountRoleOrganisationInfos, type ServiceAccountRoleOrganisationInfosDTO } from "./serviceAccountRoleOrganisationInfos";
|
|
2
|
+
|
|
3
|
+
export class ServiceAccountRoleOrganisationDetails extends ServiceAccountRoleOrganisationInfos {
|
|
4
|
+
description: string;
|
|
5
|
+
|
|
6
|
+
constructor(params: ServiceAccountRoleOrganisationDetailsDTO) {
|
|
7
|
+
super(params);
|
|
8
|
+
|
|
9
|
+
this.description = params.description;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ServiceAccountRoleOrganisationDetailsDTO extends ServiceAccountRoleOrganisationInfosDTO {
|
|
14
|
+
description: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface CreateServiceAccountRoleOrganisationDTO {
|
|
18
|
+
roleTemplateId: string | null;
|
|
19
|
+
icon: string;
|
|
20
|
+
code: string;
|
|
21
|
+
label: string;
|
|
22
|
+
description: string;
|
|
23
|
+
tags: string[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface UpdateServiceAccountRoleOrganisationDTO {
|
|
27
|
+
icon: string;
|
|
28
|
+
code: string;
|
|
29
|
+
label: string;
|
|
30
|
+
description: string;
|
|
31
|
+
tags: string[];
|
|
32
|
+
permissionsIds: string[];
|
|
33
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PermissionInfos, type PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { type UserType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
3
|
+
|
|
4
|
+
export class ServiceAccountRoleOrganisationInfos {
|
|
5
|
+
id: string;
|
|
6
|
+
roleId: string;
|
|
7
|
+
organisationId: string;
|
|
8
|
+
userType: UserType
|
|
9
|
+
icon: string;
|
|
10
|
+
code: string;
|
|
11
|
+
label: string;
|
|
12
|
+
tags: string[];
|
|
13
|
+
permissions: PermissionInfos[];
|
|
14
|
+
|
|
15
|
+
constructor(params: ServiceAccountRoleOrganisationInfosDTO) {
|
|
16
|
+
this.id = params.id;
|
|
17
|
+
this.roleId = params.roleId;
|
|
18
|
+
this.organisationId = params.organisationId;
|
|
19
|
+
this.userType = params.userType;
|
|
20
|
+
this.icon = params.icon;
|
|
21
|
+
this.code = params.code;
|
|
22
|
+
this.label = params.label;
|
|
23
|
+
this.tags = params.tags.slice();
|
|
24
|
+
this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface ServiceAccountRoleOrganisationInfosDTO {
|
|
29
|
+
id: string;
|
|
30
|
+
roleId: string;
|
|
31
|
+
organisationId: string;
|
|
32
|
+
userType: UserType
|
|
33
|
+
icon: string;
|
|
34
|
+
code: string;
|
|
35
|
+
label: string;
|
|
36
|
+
tags: string[];
|
|
37
|
+
permissions: PermissionInfosDTO[];
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface ServiceAccountRoleOrganisationFilters {
|
|
41
|
+
search?: string | null;
|
|
42
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Days } from "@dative-gpi/foundation-shared-domain/
|
|
1
|
+
import type { Days, DateType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
2
2
|
|
|
3
3
|
export class TimeRange {
|
|
4
4
|
startDay: Days;
|
|
@@ -7,6 +7,7 @@ export class TimeRange {
|
|
|
7
7
|
endDay: Days;
|
|
8
8
|
endHour: number;
|
|
9
9
|
endMinute: number;
|
|
10
|
+
variant: DateType;
|
|
10
11
|
|
|
11
12
|
constructor(params: TimeRangeDTO) {
|
|
12
13
|
this.startDay = params.startDay;
|
|
@@ -15,6 +16,7 @@ export class TimeRange {
|
|
|
15
16
|
this.endDay = params.endDay;
|
|
16
17
|
this.endHour = params.endHour;
|
|
17
18
|
this.endMinute = params.endMinute;
|
|
19
|
+
this.variant = params.variant;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
|
|
@@ -25,6 +27,7 @@ export interface TimeRangeDTO {
|
|
|
25
27
|
endDay: Days;
|
|
26
28
|
endHour: number;
|
|
27
29
|
endMinute: number;
|
|
30
|
+
variant: DateType;
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
export interface CreateTimeRangeDTO {
|
|
@@ -34,4 +37,5 @@ export interface CreateTimeRangeDTO {
|
|
|
34
37
|
endDay: Days;
|
|
35
38
|
endHour: number;
|
|
36
39
|
endMinute: number;
|
|
40
|
+
variant: DateType;
|
|
37
41
|
}
|
|
@@ -7,7 +7,7 @@ export class UserOrganisationTableInfos {
|
|
|
7
7
|
columns: UserOrganisationColumnInfos[];
|
|
8
8
|
|
|
9
9
|
// Depends on [OrganisationType, UserOrganisation]
|
|
10
|
-
mode: "table" | "iterator";
|
|
10
|
+
mode: "table" | "iterator" | null;
|
|
11
11
|
rowsPerPage: -1 | 10 | 30;
|
|
12
12
|
sortByKey: string | null;
|
|
13
13
|
sortByOrder: "asc" | "desc" | null;
|
|
@@ -26,7 +26,7 @@ export class UserOrganisationTableInfos {
|
|
|
26
26
|
export interface UserOrganisationTableInfosDTO {
|
|
27
27
|
id: string;
|
|
28
28
|
code: string;
|
|
29
|
-
mode: "table" | "iterator";
|
|
29
|
+
mode: "table" | "iterator" | null;
|
|
30
30
|
rowsPerPage: -1 | 10 | 30;
|
|
31
31
|
sortByKey: string | null;
|
|
32
32
|
sortByOrder: "asc" | "desc" | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { DashboardType,
|
|
1
|
+
import type { DashboardType, RoleType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
2
|
+
import type { PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
3
|
import { PermissionInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
3
4
|
|
|
4
5
|
import type { UserOrganisationInfosDTO } from "./userOrganisationInfos";
|
|
5
6
|
import { UserOrganisationInfos } from "./userOrganisationInfos";
|
|
6
|
-
import type { RoleType } from "../enums/roleEnums";
|
|
7
7
|
|
|
8
8
|
export class UserOrganisationDetails extends UserOrganisationInfos {
|
|
9
9
|
mainDashboardType: DashboardType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { UserType, UserValidityState } from "
|
|
2
|
-
import type { RoleType } from "
|
|
1
|
+
import type { UserType, UserValidityState } from "@dative-gpi/foundation-shared-domain/enums";
|
|
2
|
+
import type { RoleType } from "@dative-gpi/foundation-shared-domain/enums";
|
|
3
3
|
|
|
4
4
|
export class UserOrganisationInfos {
|
|
5
5
|
id: string;
|
|
@@ -72,5 +72,6 @@ export interface UserOrganisationInfosDTO {
|
|
|
72
72
|
|
|
73
73
|
export interface UserOrganisationFilters {
|
|
74
74
|
userId?: string | null;
|
|
75
|
+
userOrganisationsIds?: string[] | null;
|
|
75
76
|
search?: string | null;
|
|
76
77
|
}
|
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
import type { WidgetCategory } from "@dative-gpi/foundation-shared-domain/enums";
|
|
3
|
+
|
|
4
|
+
const clean = <T>(meta: T): T => {
|
|
5
|
+
const newMeta = _.cloneDeepWith(meta, (value) => {
|
|
6
|
+
if (typeof value === "string") {
|
|
7
|
+
try {
|
|
8
|
+
return JSON.parse(value as string);
|
|
9
|
+
} catch {
|
|
10
|
+
return value
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
return newMeta;
|
|
15
|
+
}
|
|
2
16
|
|
|
3
17
|
export class WidgetTemplateInfos {
|
|
4
18
|
id: string;
|
|
@@ -20,7 +34,7 @@ export class WidgetTemplateInfos {
|
|
|
20
34
|
this.category = params.category;
|
|
21
35
|
this.defaultWidth = params.defaultWidth;
|
|
22
36
|
this.defaultHeight = params.defaultHeight;
|
|
23
|
-
this.defaultMeta = params.defaultMeta;
|
|
37
|
+
this.defaultMeta = clean(params.defaultMeta);
|
|
24
38
|
}
|
|
25
39
|
}
|
|
26
40
|
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
import _ from "lodash";
|
|
2
|
+
|
|
3
|
+
const clean = <T>(meta: T): T => {
|
|
4
|
+
const newMeta = _.cloneDeepWith(meta, (value) => {
|
|
5
|
+
if (typeof value === "string") {
|
|
6
|
+
try {
|
|
7
|
+
return JSON.parse(value as string);
|
|
8
|
+
} catch {
|
|
9
|
+
return value
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
return newMeta;
|
|
14
|
+
}
|
|
15
|
+
|
|
1
16
|
export class WidgetInfos {
|
|
2
17
|
id: string;
|
|
3
18
|
templateId: string;
|
|
4
|
-
code: string;
|
|
5
19
|
hideBorders: boolean;
|
|
6
20
|
width: number;
|
|
7
21
|
height: number;
|
|
@@ -13,21 +27,19 @@ export class WidgetInfos {
|
|
|
13
27
|
constructor(params: WidgetInfosDTO) {
|
|
14
28
|
this.id = params.id;
|
|
15
29
|
this.templateId = params.templateId;
|
|
16
|
-
this.code = params.code;
|
|
17
30
|
this.hideBorders = params.hideBorders;
|
|
18
31
|
this.width = params.width;
|
|
19
32
|
this.height = params.height;
|
|
20
33
|
this.x = params.x;
|
|
21
34
|
this.y = params.y;
|
|
22
35
|
this.targetScreenSize = params.targetScreenSize;
|
|
23
|
-
this.meta =
|
|
36
|
+
this.meta = clean(params.meta);
|
|
24
37
|
}
|
|
25
38
|
}
|
|
26
39
|
|
|
27
40
|
export interface WidgetInfosDTO {
|
|
28
41
|
id: string;
|
|
29
42
|
templateId: string;
|
|
30
|
-
code: string;
|
|
31
43
|
hideBorders: boolean;
|
|
32
44
|
width: number;
|
|
33
45
|
height: number;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-domain",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.28-remove-deprecated2",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.28-remove-deprecated2",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.28-remove-deprecated2"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "65c182fd697939a07ad87c683a2f4c2fb765a7c7"
|
|
17
17
|
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
export enum ChartOrigin {
|
|
2
|
-
None = 0,
|
|
3
|
-
Organisation = 1,
|
|
4
|
-
OrganisationType = 2
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export enum ChartType {
|
|
8
|
-
None = 0,
|
|
9
|
-
XY = 1,
|
|
10
|
-
Pie = 2,
|
|
11
|
-
Heatmap = 3,
|
|
12
|
-
Slider = 4,
|
|
13
|
-
Gauge = 5,
|
|
14
|
-
ScoreCard = 6,
|
|
15
|
-
Table = 7
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export enum ColorSets {
|
|
19
|
-
Default = 0,
|
|
20
|
-
Grafana = 1,
|
|
21
|
-
Kelly = 2,
|
|
22
|
-
Armytage = 3,
|
|
23
|
-
ZeileisHornikMurrell = 4,
|
|
24
|
-
Hash = 5
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export enum AxisType {
|
|
28
|
-
None = 0,
|
|
29
|
-
Date = 1,
|
|
30
|
-
Value = 2,
|
|
31
|
-
Category = 3
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export enum SerieType {
|
|
35
|
-
None = 0,
|
|
36
|
-
Lines = 1,
|
|
37
|
-
Area = 2,
|
|
38
|
-
Range = 3,
|
|
39
|
-
Histogram = 4,
|
|
40
|
-
Operation = 5,
|
|
41
|
-
Planning = 6,
|
|
42
|
-
ScatterPlot = 7,
|
|
43
|
-
Top = 8,
|
|
44
|
-
Bars = 9,
|
|
45
|
-
StackedBars = 10,
|
|
46
|
-
Pie = 11,
|
|
47
|
-
Heatmap = 12,
|
|
48
|
-
Slider = 13,
|
|
49
|
-
Gauge = 14,
|
|
50
|
-
ScoreCard = 15,
|
|
51
|
-
Table = 16
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export enum PlotPer {
|
|
55
|
-
None = 0,
|
|
56
|
-
SinglePlot = 1,
|
|
57
|
-
Model = 2,
|
|
58
|
-
Group = 3,
|
|
59
|
-
Location = 4,
|
|
60
|
-
Device = 5
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export enum AggregationType {
|
|
64
|
-
None = 0,
|
|
65
|
-
Sum = 1,
|
|
66
|
-
Cardinal = 2,
|
|
67
|
-
Mean = 3,
|
|
68
|
-
Median = 4,
|
|
69
|
-
First = 5,
|
|
70
|
-
Last = 6,
|
|
71
|
-
Difference = 7,
|
|
72
|
-
Minimum = 8,
|
|
73
|
-
Maximum = 9,
|
|
74
|
-
Range = 10
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export enum PlanningType {
|
|
78
|
-
None = 0,
|
|
79
|
-
UntilNext = 1,
|
|
80
|
-
ElapsedTime = 2,
|
|
81
|
-
SinglePoint = 3
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export enum DisplayAs {
|
|
85
|
-
None = 0,
|
|
86
|
-
Bars = 1,
|
|
87
|
-
Lines = 2,
|
|
88
|
-
Points = 3
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export enum OperationOn {
|
|
92
|
-
None = 0,
|
|
93
|
-
SameGroup = 1,
|
|
94
|
-
SameEntity = 2,
|
|
95
|
-
SameGroupAndEntity = 3
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export enum HeatmapRule {
|
|
99
|
-
None = 0,
|
|
100
|
-
Gradient = 1,
|
|
101
|
-
Ranges = 2,
|
|
102
|
-
Fixed = 3
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export enum PieBreakdown {
|
|
106
|
-
Entity = 0,
|
|
107
|
-
Serie = 1,
|
|
108
|
-
Group = 2
|
|
109
|
-
}
|
package/models/enums/index.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./actionEnums";
|
|
2
|
-
export * from "./applicationEnums";
|
|
3
|
-
export * from "./chartEnums";
|
|
4
|
-
export * from "./customPropertyEnums";
|
|
5
|
-
export * from "./notificationEnums";
|
|
6
|
-
export * from "./roleEnums";
|
|
7
|
-
export * from "./sharedEnums";
|
|
8
|
-
export * from "./userEnums";
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export enum SelectedEntities {
|
|
2
|
-
None = 0,
|
|
3
|
-
Models = 1,
|
|
4
|
-
Groups = 2,
|
|
5
|
-
Locations = 3,
|
|
6
|
-
Devices = 5
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export enum FilterType {
|
|
10
|
-
None = 0,
|
|
11
|
-
Equal = 1,
|
|
12
|
-
More = 2,
|
|
13
|
-
Less = 3,
|
|
14
|
-
MoreOrEqual = 4,
|
|
15
|
-
LessOrEqual = 5,
|
|
16
|
-
Different = 6,
|
|
17
|
-
Contains = 7,
|
|
18
|
-
StartsWith = 8,
|
|
19
|
-
EndsWith = 9
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export enum DataTable {
|
|
23
|
-
None = 0,
|
|
24
|
-
Number = 1,
|
|
25
|
-
String = 2,
|
|
26
|
-
DateTime = 3
|
|
27
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { NotificationInfos, type NotificationInfosDTO } from "./notificationInfos";
|
|
2
|
-
|
|
3
|
-
export class NotificationDetails extends NotificationInfos {
|
|
4
|
-
constructor(params: NotificationDetailsDTO) {
|
|
5
|
-
super(params);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface NotificationDetailsDTO extends NotificationInfosDTO {
|
|
10
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { type Criticity } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
-
import { utcToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
|
|
3
|
-
|
|
4
|
-
import { type NotificationType } from "../enums/notificationEnums";
|
|
5
|
-
|
|
6
|
-
export class NotificationInfos {
|
|
7
|
-
id: string;
|
|
8
|
-
title: string;
|
|
9
|
-
body: string;
|
|
10
|
-
pageUrl: string;
|
|
11
|
-
timestamp: number;
|
|
12
|
-
criticity: Criticity;
|
|
13
|
-
acknowledged: boolean | null;
|
|
14
|
-
acknowledgingTimestamp: number | null;
|
|
15
|
-
|
|
16
|
-
constructor(params: NotificationInfosDTO) {
|
|
17
|
-
this.id = params.id;
|
|
18
|
-
this.title = params.title;
|
|
19
|
-
this.body = params.body;
|
|
20
|
-
this.pageUrl = params.pageUrl;
|
|
21
|
-
this.timestamp = utcToEpoch(params.timestamp);
|
|
22
|
-
this.criticity = params.criticity as Criticity;
|
|
23
|
-
this.acknowledged = params.acknowledged;
|
|
24
|
-
this.acknowledgingTimestamp = params.acknowledgingTimestamp ?
|
|
25
|
-
utcToEpoch(params.acknowledgingTimestamp) : null;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface NotificationInfosDTO {
|
|
30
|
-
id: string;
|
|
31
|
-
title: string;
|
|
32
|
-
body: string;
|
|
33
|
-
pageUrl: string;
|
|
34
|
-
timestamp: string;
|
|
35
|
-
criticity: number;
|
|
36
|
-
acknowledged: boolean | null;
|
|
37
|
-
acknowledgingTimestamp: string | null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface NotificationFilters {
|
|
41
|
-
type?: NotificationType | null;
|
|
42
|
-
acknowledged?: boolean | null;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./scenarioDiffusion";
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export class ScenarioDiffusion {
|
|
2
|
-
id: string;
|
|
3
|
-
scenarioId: string;
|
|
4
|
-
warnDeviceManager: boolean;
|
|
5
|
-
userOrganisationsIds: string[];
|
|
6
|
-
|
|
7
|
-
constructor(params: ScenarioDiffusionDTO) {
|
|
8
|
-
this.id = params.id;
|
|
9
|
-
this.scenarioId = params.scenarioId;
|
|
10
|
-
this.warnDeviceManager = params.warnDeviceManager;
|
|
11
|
-
this.userOrganisationsIds = params.userOrganisationsIds.slice();
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface ScenarioDiffusionDTO {
|
|
16
|
-
id: string;
|
|
17
|
-
scenarioId: string;
|
|
18
|
-
warnDeviceManager: boolean;
|
|
19
|
-
userOrganisationsIds: string[];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface UpdateScenarioDiffusionDTO {
|
|
23
|
-
warnDeviceManager: boolean;
|
|
24
|
-
userOrganisationsIds: string[];
|
|
25
|
-
}
|