@dative-gpi/foundation-core-domain 1.0.177 → 1.0.179-edit-image
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.
|
@@ -6,61 +6,58 @@ import type { PathCrumbDTO } from "../shared/pathCrumb";
|
|
|
6
6
|
import { PathCrumb } from "../shared/pathCrumb";
|
|
7
7
|
|
|
8
8
|
export class DeviceOrganisationDetails extends DeviceOrganisationInfos {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
this.path = params.path.map(dto => new PathCrumb({ ...dto })).sort((a, b) => b.index - a.index);
|
|
23
|
-
}
|
|
9
|
+
familyId: string;
|
|
10
|
+
familyLabel: string;
|
|
11
|
+
options: DeviceOrganisationOption[];
|
|
12
|
+
path: PathCrumb[];
|
|
13
|
+
|
|
14
|
+
constructor(params: DeviceOrganisationDetailsDTO) {
|
|
15
|
+
super(params);
|
|
16
|
+
|
|
17
|
+
this.familyId = params.familyId;
|
|
18
|
+
this.familyLabel = params.familyLabel;
|
|
19
|
+
this.options = params.options.map(dto => new DeviceOrganisationOption({ ...dto }));
|
|
20
|
+
this.path = params.path.map(dto => new PathCrumb({ ...dto })).sort((a, b) => b.index - a.index);
|
|
21
|
+
}
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
export interface DeviceOrganisationDetailsDTO extends DeviceOrganisationInfosDTO {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
path: PathCrumbDTO[];
|
|
25
|
+
familyId: string;
|
|
26
|
+
familyLabel: string;
|
|
27
|
+
options: DeviceOrganisationOptionDTO[];
|
|
28
|
+
path: PathCrumbDTO[];
|
|
32
29
|
}
|
|
33
30
|
|
|
34
31
|
export interface CreateDeviceOrganisationDTO {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
32
|
+
manufacturerId: string;
|
|
33
|
+
managerId: string | null;
|
|
34
|
+
locationId: string | null;
|
|
35
|
+
groupId: string | null;
|
|
36
|
+
code: string;
|
|
37
|
+
label: string;
|
|
38
|
+
description: string;
|
|
39
|
+
tags: string[];
|
|
40
|
+
meta: { [key: string]: string };
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
export interface UpdateDeviceOrganisationDTO {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
managerId: string | null;
|
|
45
|
+
locationId: string | null;
|
|
46
|
+
latitude: number | null;
|
|
47
|
+
longitude: number | null;
|
|
48
|
+
groupId: string | null;
|
|
49
|
+
imageId: string | null;
|
|
50
|
+
image: string | null;
|
|
51
|
+
label: string;
|
|
52
|
+
description: string;
|
|
53
|
+
tags: string[];
|
|
54
|
+
meta: { [key: string]: string };
|
|
58
55
|
}
|
|
59
56
|
|
|
60
57
|
export interface ChangeDeviceOrganisationGroupDTO {
|
|
61
|
-
|
|
58
|
+
groupId: string | null;
|
|
62
59
|
}
|
|
63
60
|
|
|
64
61
|
export interface ChangeDeviceOrganisationLocationDTO {
|
|
65
|
-
|
|
62
|
+
locationId: string | null;
|
|
66
63
|
}
|
|
@@ -15,6 +15,7 @@ export class DeviceOrganisationInfos {
|
|
|
15
15
|
longitude: number | null;
|
|
16
16
|
articleId: string;
|
|
17
17
|
articleLabel: string;
|
|
18
|
+
articleCode: string;
|
|
18
19
|
modelId: string;
|
|
19
20
|
modelLabel: string;
|
|
20
21
|
ownerId: string | null;
|
|
@@ -55,6 +56,7 @@ export class DeviceOrganisationInfos {
|
|
|
55
56
|
this.longitude = params.longitude;
|
|
56
57
|
this.articleId = params.articleId;
|
|
57
58
|
this.articleLabel = params.articleLabel;
|
|
59
|
+
this.articleCode = params.articleCode;
|
|
58
60
|
this.modelId = params.modelId;
|
|
59
61
|
this.modelLabel = params.modelLabel;
|
|
60
62
|
this.ownerId = params.ownerId;
|
|
@@ -98,6 +100,7 @@ export interface DeviceOrganisationInfosDTO {
|
|
|
98
100
|
longitude: number | null;
|
|
99
101
|
articleId: string;
|
|
100
102
|
articleLabel: string;
|
|
103
|
+
articleCode: string;
|
|
101
104
|
modelId: string;
|
|
102
105
|
modelLabel: string;
|
|
103
106
|
ownerId: string | null;
|
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.179-edit-image",
|
|
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.179-edit-image",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.179-edit-image"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "72963582266af77cf47e4585c5540f61cf80958f"
|
|
17
17
|
}
|