@dative-gpi/foundation-core-domain 0.0.150 → 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/groups/groupDetails.ts +16 -16
- 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/package.json +2 -2
|
@@ -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
|
}
|
|
@@ -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
|
}
|
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
|
}
|