@dative-gpi/foundation-core-domain 1.0.139-widgethiddencode → 1.0.140-widgetextension

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.
@@ -1,7 +1,7 @@
1
1
  import { type CreateDashboardShallowEntityPresetDTO, DashboardShallowEntityPresetInfos, type DashboardShallowEntityPresetInfosDTO } from "../dashboardShallowEntityPresets";
2
2
  import { type CreateDashboardShallowDatePresetDTO, DashboardShallowDatePresetInfos, type DashboardShallowDatePresetInfosDTO } from "../dashboardShallowDatePresets";
3
3
  import { type CreateDashboardShallowVariableDTO, DashboardShallowVariableInfos, type DashboardShallowVariableInfosDTO } from "../dashboardShallowVariables";
4
- import { type CreateDashboardShallowWidgetDTO, DashboardShallowWidgetInfos, type DashboardShallowWidgetInfosDTO } from "../dashboardShallowWidgets";
4
+ import { type CreateDashboardWidgetOverrideDTO, DashboardWidgetOverrideInfos, type DashboardWidgetOverrideInfosDTO } from "../dashboardWidgetOverrides";
5
5
  import { DashboardEntityPresetInfos, type DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
6
6
  import { DashboardDatePresetInfos, type DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
7
7
  import { DashboardVariableInfos, type DashboardVariableInfosDTO } from "../dashboardVariables";
@@ -26,7 +26,7 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
26
26
  overrideDatePresets: DashboardShallowDatePresetInfos[];
27
27
  overrideEntityPresets: DashboardShallowEntityPresetInfos[];
28
28
  overrideVariables: DashboardShallowVariableInfos[];
29
- overrideWidgets: DashboardShallowWidgetInfos[];
29
+ overrideWidgets: DashboardWidgetOverrideInfos[];
30
30
 
31
31
  get datePresets() : DashboardDatePresetInfos[] {
32
32
  return this.defaultDatePresets.map(d => {
@@ -66,7 +66,7 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
66
66
  this.overrideDatePresets = params.overrideDatePresets.map(dto => new DashboardShallowDatePresetInfos(dto));
67
67
  this.overrideEntityPresets = params.overrideEntityPresets.map(dto => new DashboardShallowEntityPresetInfos(dto));
68
68
  this.overrideVariables = params.overrideVariables.map(dto => new DashboardShallowVariableInfos(dto));
69
- this.overrideWidgets = params.overrideWidgets.map(dto => new DashboardShallowWidgetInfos(dto));
69
+ this.overrideWidgets = params.overrideWidgets.map(dto => new DashboardWidgetOverrideInfos(dto));
70
70
 
71
71
  this.entityPresetCode = params.entityPresetCode;
72
72
  this.datePresetCode = params.datePresetCode;
@@ -84,7 +84,7 @@ export interface DashboardShallowDetailsDTO extends DashboardShallowInfosDTO {
84
84
  overrideDatePresets: DashboardShallowDatePresetInfosDTO[];
85
85
  overrideEntityPresets: DashboardShallowEntityPresetInfosDTO[];
86
86
  overrideVariables: DashboardShallowVariableInfosDTO[];
87
- overrideWidgets: DashboardShallowWidgetInfosDTO[];
87
+ overrideWidgets: DashboardWidgetOverrideInfosDTO[];
88
88
  translations: DashboardTranslationDTO[];
89
89
  dashboardId: string;
90
90
  scope: number;
@@ -113,7 +113,7 @@ export interface UpdateDashboardShallowDTO {
113
113
  overrideDatePresets: CreateDashboardShallowDatePresetDTO[];
114
114
  overrideEntityPresets: CreateDashboardShallowEntityPresetDTO[];
115
115
  overrideVariables: CreateDashboardShallowVariableDTO[];
116
- overrideWidgets: CreateDashboardShallowWidgetDTO[];
116
+ overrideWidgets: CreateDashboardWidgetOverrideDTO[];
117
117
  translations: DashboardTranslationDTO[];
118
118
  }
119
119
 
@@ -1,4 +1,4 @@
1
- export interface CreateDashboardShallowWidgetDTO {
1
+ export interface CreateDashboardWidgetOverrideDTO {
2
2
  hiddenCode: string;
3
3
  meta: { [key: string]: string };
4
4
  }
@@ -14,17 +14,17 @@ const clean = <T>(meta: T): T => {
14
14
  return newMeta;
15
15
  }
16
16
 
17
- export class DashboardShallowWidgetInfos {
17
+ export class DashboardWidgetOverrideInfos {
18
18
  hiddenCode: string;
19
19
  meta: { [key: string]: string };
20
20
 
21
- constructor(params: DashboardShallowWidgetInfosDTO) {
21
+ constructor(params: DashboardWidgetOverrideInfosDTO) {
22
22
  this.hiddenCode = params.hiddenCode;
23
23
  this.meta = clean(params.meta);
24
24
  }
25
25
  }
26
26
 
27
- export interface DashboardShallowWidgetInfosDTO {
27
+ export interface DashboardWidgetOverrideInfosDTO {
28
28
  hiddenCode: string;
29
29
  meta: { [key: string]: string };
30
30
  }
@@ -0,0 +1,2 @@
1
+ export * from "./dashboardWidgetOverrideDetails";
2
+ export * from "./dashboardWidgetOverrideInfos";
package/models/index.ts CHANGED
@@ -19,7 +19,7 @@ export * from "./dashboardShallowDatePresets"; // No service
19
19
  export * from "./dashboardShallowEntityPresets"; // No service
20
20
  export * from "./dashboardShallows";
21
21
  export * from "./dashboardShallowVariables"; // No service
22
- export * from "./dashboardShallowWidgets"; // No service
22
+ export * from "./dashboardWidgetOverrides"; // No service
23
23
  export * from "./dashboardVariables"; // No service
24
24
  export * from "./dashboardVariableValues"; // No service
25
25
  export * from "./dataCategories";
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-widgethiddencode",
4
+ "version": "1.0.140-widgetextension",
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-widgethiddencode",
14
- "@dative-gpi/foundation-shared-services": "1.0.139-widgethiddencode"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.140-widgetextension",
14
+ "@dative-gpi/foundation-shared-services": "1.0.140-widgetextension"
15
15
  },
16
- "gitHead": "431f23c7e498b616485cc66cf38ff70378b99552"
16
+ "gitHead": "c96ac75503470baa6c4eae4c5fa6c07dff67436b"
17
17
  }
@@ -1,2 +0,0 @@
1
- export * from "./dashboardShallowWidgetDetails";
2
- export * from "./dashboardShallowWidgetInfos";