@dative-gpi/foundation-core-domain 1.0.52 → 1.0.54
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/alerts/alertDetails.ts +10 -1
- package/models/alerts/alertInfos.ts +4 -4
- package/models/connectivityScenarios/index.ts +2 -1
- package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationDetails.ts +2 -2
- package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationInfos.ts +11 -4
- package/package.json +4 -4
|
@@ -1,15 +1,24 @@
|
|
|
1
|
+
import type { ApplicationScope } from "@/shared/foundation-shared-domain/enums";
|
|
1
2
|
import { AlertInfos, type AlertInfosDTO } from "./alertInfos";
|
|
2
3
|
|
|
3
4
|
export class AlertDetails extends AlertInfos {
|
|
4
5
|
description: string;
|
|
6
|
+
comments: string;
|
|
7
|
+
scenarioId: string;
|
|
8
|
+
scenarioScope: ApplicationScope;
|
|
5
9
|
|
|
6
10
|
constructor(params: AlertDetailsDTO) {
|
|
7
11
|
super(params);
|
|
8
|
-
|
|
12
|
+
this.comments = params.comments;
|
|
9
13
|
this.description = params.description;
|
|
14
|
+
this.scenarioId = params.scenarioId;
|
|
15
|
+
this.scenarioScope = params.scenarioScope;
|
|
10
16
|
}
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
export interface AlertDetailsDTO extends AlertInfosDTO {
|
|
14
20
|
description: string;
|
|
21
|
+
comments: string;
|
|
22
|
+
scenarioId: string;
|
|
23
|
+
scenarioScope: ApplicationScope;
|
|
15
24
|
}
|
|
@@ -8,7 +8,7 @@ import { type DateVariable } from "../shared/dateVariable";
|
|
|
8
8
|
|
|
9
9
|
export class AlertInfos {
|
|
10
10
|
id: string;
|
|
11
|
-
|
|
11
|
+
deprecatedScenarioId: string;
|
|
12
12
|
scenarioLabel: string;
|
|
13
13
|
organisationId: string;
|
|
14
14
|
deviceOrganisationId: string;
|
|
@@ -39,7 +39,7 @@ export class AlertInfos {
|
|
|
39
39
|
|
|
40
40
|
constructor(params: AlertInfosDTO) {
|
|
41
41
|
this.id = params.id;
|
|
42
|
-
this.
|
|
42
|
+
this.deprecatedScenarioId = params.deprecatedScenarioId;
|
|
43
43
|
this.scenarioLabel = params.scenarioLabel;
|
|
44
44
|
this.organisationId = params.organisationId;
|
|
45
45
|
this.deviceOrganisationId = params.deviceOrganisationId;
|
|
@@ -79,7 +79,7 @@ export class AlertInfos {
|
|
|
79
79
|
|
|
80
80
|
export interface AlertInfosDTO {
|
|
81
81
|
id: string;
|
|
82
|
-
|
|
82
|
+
deprecatedScenarioId: string;
|
|
83
83
|
scenarioLabel: string;
|
|
84
84
|
organisationId: string;
|
|
85
85
|
deviceOrganisationId: string;
|
|
@@ -110,7 +110,7 @@ export interface AlertInfosDTO {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export interface AlertFilters {
|
|
113
|
-
|
|
113
|
+
deprecatedScenarioId?: string | null;
|
|
114
114
|
deviceOrganisationId?: string | null;
|
|
115
115
|
statuses?: AlertStatus[] | null;
|
|
116
116
|
acknowledged?: boolean | null;
|
|
@@ -16,7 +16,7 @@ export interface ScenarioDeviceOrganisationDetailsDTO extends ScenarioDeviceOrga
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export interface CreateScenarioDeviceOrganisationDTO {
|
|
19
|
-
|
|
19
|
+
deprecatedScenarioId: string;
|
|
20
20
|
deviceOrganisationId: string;
|
|
21
21
|
overrideTimeRanges: boolean;
|
|
22
22
|
timeRanges: CreateTimeRangeDTO[] | null;
|
|
@@ -27,7 +27,7 @@ export interface CreateScenarioDeviceOrganisationDTO {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface CreateManyScenarioDeviceOrganisationDTO {
|
|
30
|
-
|
|
30
|
+
deprecatedScenarioId: string;
|
|
31
31
|
deviceOrganisationsIds: string[];
|
|
32
32
|
overrideTimeRanges: boolean;
|
|
33
33
|
timeRanges: CreateTimeRangeDTO[] | null;
|
|
@@ -4,10 +4,11 @@ import { ScenarioParameter } from "../scenarios/scenarioParameter";
|
|
|
4
4
|
import type { ScenarioParameterDTO } from "../scenarios/scenarioParameter";
|
|
5
5
|
import type { TimeRangeDTO } from "../shared/timeRange";
|
|
6
6
|
import { TimeRange } from "../shared/timeRange";
|
|
7
|
+
import type { ApplicationScope } from "@/shared/foundation-shared-domain/enums";
|
|
7
8
|
|
|
8
9
|
export class ScenarioDeviceOrganisationInfos {
|
|
9
10
|
id: string;
|
|
10
|
-
|
|
11
|
+
deprecatedScenarioId: string;
|
|
11
12
|
scenarioLabel: string;
|
|
12
13
|
deviceOrganisationId: string;
|
|
13
14
|
deviceOrganisationImageId: string | null;
|
|
@@ -22,10 +23,12 @@ export class ScenarioDeviceOrganisationInfos {
|
|
|
22
23
|
modelId: string;
|
|
23
24
|
overrideParameters: ScenarioParameterOverride[];
|
|
24
25
|
defaultParameters: ScenarioParameter[];
|
|
26
|
+
scenarioId: string;
|
|
27
|
+
scenarioScope: ApplicationScope;
|
|
25
28
|
|
|
26
29
|
constructor(params: ScenarioDeviceOrganisationInfosDTO) {
|
|
27
30
|
this.id = params.id;
|
|
28
|
-
this.
|
|
31
|
+
this.deprecatedScenarioId = params.deprecatedScenarioId;
|
|
29
32
|
this.scenarioLabel = params.scenarioLabel;
|
|
30
33
|
this.deviceOrganisationId = params.deviceOrganisationId;
|
|
31
34
|
this.deviceOrganisationImageId = params.deviceOrganisationImageId;
|
|
@@ -41,12 +44,14 @@ export class ScenarioDeviceOrganisationInfos {
|
|
|
41
44
|
this.modelId = params.modelId;
|
|
42
45
|
this.overrideParameters = params.overrideParameters.map(dto => new ScenarioParameterOverride(dto));
|
|
43
46
|
this.defaultParameters = params.defaultParameters.map(dto => new ScenarioParameter(dto));
|
|
47
|
+
this.scenarioId = params.scenarioId;
|
|
48
|
+
this.scenarioScope = params.scenarioScope;
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
|
|
47
52
|
export interface ScenarioDeviceOrganisationInfosDTO {
|
|
48
53
|
id: string;
|
|
49
|
-
|
|
54
|
+
deprecatedScenarioId: string;
|
|
50
55
|
scenarioLabel: string;
|
|
51
56
|
deviceOrganisationId: string;
|
|
52
57
|
deviceOrganisationImageId: string | null;
|
|
@@ -61,10 +66,12 @@ export interface ScenarioDeviceOrganisationInfosDTO {
|
|
|
61
66
|
userOrganisationsIds: string[];
|
|
62
67
|
overrideParameters: ScenarioParameterOverrideDTO[];
|
|
63
68
|
defaultParameters: ScenarioParameterDTO[];
|
|
69
|
+
scenarioId: string;
|
|
70
|
+
scenarioScope: ApplicationScope;
|
|
64
71
|
}
|
|
65
72
|
|
|
66
73
|
export interface ScenarioDeviceOrganisationFilters {
|
|
67
|
-
|
|
74
|
+
deprecatedScenarioId?: string | null;
|
|
68
75
|
deviceOrganisationId?: string | null;
|
|
69
76
|
deviceOrganisationsIds?: string[] | null;
|
|
70
77
|
}
|
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.54",
|
|
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.54",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.54"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "332546e736d95d481dc97c06af935200d8344b2c"
|
|
17
17
|
}
|