@dative-gpi/foundation-core-domain 1.0.139-reportV1 → 1.0.139-widgetextensions
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.
|
@@ -16,6 +16,8 @@ export class AlertInfos {
|
|
|
16
16
|
deviceOrganisationImageId: string | null;
|
|
17
17
|
deviceOrganisationCode: string;
|
|
18
18
|
deviceOrganisationLabel: string;
|
|
19
|
+
deviceOrganisationLocationLabel: string | null;
|
|
20
|
+
deviceOrganisationOwnerLabel: string | null;
|
|
19
21
|
icon: string;
|
|
20
22
|
code: string;
|
|
21
23
|
label: string;
|
|
@@ -48,6 +50,8 @@ export class AlertInfos {
|
|
|
48
50
|
this.deviceOrganisationImageId = params.deviceOrganisationImageId;
|
|
49
51
|
this.deviceOrganisationCode = params.deviceOrganisationCode;
|
|
50
52
|
this.deviceOrganisationLabel = params.deviceOrganisationLabel;
|
|
53
|
+
this.deviceOrganisationLocationLabel = params.deviceOrganisationLocationLabel;
|
|
54
|
+
this.deviceOrganisationOwnerLabel = params.deviceOrganisationOwnerLabel;
|
|
51
55
|
this.icon = params.icon;
|
|
52
56
|
this.code = params.code;
|
|
53
57
|
this.label = params.label;
|
|
@@ -89,6 +93,8 @@ export interface AlertInfosDTO {
|
|
|
89
93
|
deviceOrganisationImageId: string | null;
|
|
90
94
|
deviceOrganisationCode: string;
|
|
91
95
|
deviceOrganisationLabel: string;
|
|
96
|
+
deviceOrganisationLocationLabel: string | null;
|
|
97
|
+
deviceOrganisationOwnerLabel: string | null;
|
|
92
98
|
icon: string;
|
|
93
99
|
code: string;
|
|
94
100
|
label: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _ from "lodash";
|
|
2
2
|
import type { WidgetCategory } from "@dative-gpi/foundation-shared-domain/enums";
|
|
3
|
+
import type { WidgetTemplateType } from '@dative-gpi/foundation-shared-domain/enums/widgetTemplates';
|
|
3
4
|
|
|
4
5
|
const clean = <T>(meta: T): T => {
|
|
5
6
|
const newMeta = _.cloneDeepWith(meta, (value) => {
|
|
@@ -16,6 +17,7 @@ const clean = <T>(meta: T): T => {
|
|
|
16
17
|
|
|
17
18
|
export class WidgetTemplateInfos {
|
|
18
19
|
id: string;
|
|
20
|
+
type: WidgetTemplateType;
|
|
19
21
|
extensionId: string | null;
|
|
20
22
|
extensionHost: string | null;
|
|
21
23
|
label: string;
|
|
@@ -29,6 +31,7 @@ export class WidgetTemplateInfos {
|
|
|
29
31
|
|
|
30
32
|
constructor(params: WidgetTemplateInfosDTO) {
|
|
31
33
|
this.id = params.id;
|
|
34
|
+
this.type = params.type;
|
|
32
35
|
this.extensionId = params.extensionId ?? null;
|
|
33
36
|
this.extensionHost = params.extensionHost ?? null;
|
|
34
37
|
this.label = params.label;
|
|
@@ -44,6 +47,7 @@ export class WidgetTemplateInfos {
|
|
|
44
47
|
|
|
45
48
|
export interface WidgetTemplateInfosDTO {
|
|
46
49
|
id: string;
|
|
50
|
+
type: WidgetTemplateType;
|
|
47
51
|
extensionId?: string;
|
|
48
52
|
extensionHost?: string;
|
|
49
53
|
label: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WidgetTemplateType } from '@dative-gpi/foundation-shared-domain/enums/widgetTemplates';
|
|
1
2
|
import type { WidgetInfosDTO } from "./widgetInfos";
|
|
2
3
|
import { WidgetInfos } from "./widgetInfos";
|
|
3
4
|
|
|
@@ -11,6 +12,7 @@ export interface WidgetDetailsDTO extends WidgetInfosDTO {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export interface CreateWidgetDTO {
|
|
15
|
+
templateType: WidgetTemplateType;
|
|
14
16
|
templateId: string;
|
|
15
17
|
hideBorders: boolean;
|
|
16
18
|
width: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WidgetTemplateType } from '@dative-gpi/foundation-shared-domain/enums/widgetTemplates';
|
|
1
2
|
import _ from "lodash";
|
|
2
3
|
|
|
3
4
|
const clean = <T>(meta: T): T => {
|
|
@@ -15,6 +16,7 @@ const clean = <T>(meta: T): T => {
|
|
|
15
16
|
|
|
16
17
|
export class WidgetInfos {
|
|
17
18
|
id: string;
|
|
19
|
+
templateType: WidgetTemplateType;
|
|
18
20
|
templateId: string;
|
|
19
21
|
hideBorders: boolean;
|
|
20
22
|
width: number;
|
|
@@ -26,6 +28,7 @@ export class WidgetInfos {
|
|
|
26
28
|
|
|
27
29
|
constructor(params: WidgetInfosDTO) {
|
|
28
30
|
this.id = params.id;
|
|
31
|
+
this.templateType = params.templateType;
|
|
29
32
|
this.templateId = params.templateId;
|
|
30
33
|
this.hideBorders = params.hideBorders;
|
|
31
34
|
this.width = params.width;
|
|
@@ -39,6 +42,7 @@ export class WidgetInfos {
|
|
|
39
42
|
|
|
40
43
|
export interface WidgetInfosDTO {
|
|
41
44
|
id: string;
|
|
45
|
+
templateType: WidgetTemplateType;
|
|
42
46
|
templateId: string;
|
|
43
47
|
hideBorders: boolean;
|
|
44
48
|
width: 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.139-
|
|
4
|
+
"version": "1.0.139-widgetextensions",
|
|
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.139-
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.139-
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.139-widgetextensions",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.139-widgetextensions"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "940ca3219ce7b2be17e5977c2e539131d353380e"
|
|
17
17
|
}
|