@dative-gpi/foundation-core-domain 0.0.183 → 0.0.184

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.
@@ -4,6 +4,7 @@ import { ChartVariableTranslation } from "./chartVariableTranslation";
4
4
  export class ChartVariable {
5
5
  id: string;
6
6
  chartId: string;
7
+ hiddenCode: string;
7
8
  label: string;
8
9
  labelDefault: string;
9
10
  code: string;
@@ -13,6 +14,7 @@ export class ChartVariable {
13
14
  constructor(params: ChartVariableDTO) {
14
15
  this.id = params.id;
15
16
  this.chartId = params.chartId;
17
+ this.hiddenCode = params.hiddenCode;
16
18
  this.label = params.label;
17
19
  this.labelDefault = params.labelDefault;
18
20
  this.code = params.code;
@@ -24,6 +26,7 @@ export class ChartVariable {
24
26
  export interface ChartVariableDTO {
25
27
  id: string;
26
28
  chartId: string;
29
+ hiddenCode: string;
27
30
  label: string;
28
31
  labelDefault: string;
29
32
  code: string;
@@ -33,6 +36,7 @@ export interface ChartVariableDTO {
33
36
 
34
37
  export interface CreateChartVariableDTO {
35
38
  chartId: string;
39
+ hiddenCode: string;
36
40
  labelDefault: string;
37
41
  code: string;
38
42
  valueDefault: number;
@@ -3,7 +3,9 @@ import type { DashboardDatePresetTranslationDTO } from "./dashboardDatePresetTra
3
3
  export interface CreateDashboardDatePresetDTO {
4
4
  hiddenCode: string;
5
5
  labelDefault: string;
6
- globalStartDate: string;
7
- globalEndDate: string;
6
+ startDate: string;
7
+ endDate: string;
8
+ useAutoRefresh: boolean;
9
+ autoRefresh: number;
8
10
  translations: DashboardDatePresetTranslationDTO[];
9
11
  }
@@ -1,3 +1,5 @@
1
+ import type { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
2
+
1
3
  import type { DashboardDatePresetTranslationDTO } from "./dashboardDatePresetTranslation";
2
4
  import { DashboardDatePresetTranslation } from "./dashboardDatePresetTranslation";
3
5
 
@@ -5,16 +7,20 @@ export class DashboardDatePresetInfos {
5
7
  hiddenCode: string;
6
8
  label: string;
7
9
  labelDefault: string;
8
- globalStartDate: string;
9
- globalEndDate: string;
10
+ startDate: string;
11
+ endDate: string;
12
+ useAutoRefresh: boolean;
13
+ autoRefresh: AutoRefresh;
10
14
  translations: DashboardDatePresetTranslation[];
11
15
 
12
16
  constructor(params: DashboardDatePresetInfosDTO) {
13
17
  this.hiddenCode = params.hiddenCode;
14
18
  this.label = params.label;
15
19
  this.labelDefault = params.labelDefault;
16
- this.globalStartDate = params.globalStartDate;
17
- this.globalEndDate = params.globalEndDate;
20
+ this.startDate = params.startDate;
21
+ this.endDate = params.endDate;
22
+ this.useAutoRefresh = params.useAutoRefresh;
23
+ this.autoRefresh = params.autoRefresh;
18
24
  this.translations = params.translations.map(t => new DashboardDatePresetTranslation(t));
19
25
  }
20
26
  }
@@ -23,7 +29,9 @@ export interface DashboardDatePresetInfosDTO {
23
29
  hiddenCode: string;
24
30
  label: string;
25
31
  labelDefault: string;
26
- globalStartDate: string;
27
- globalEndDate: string;
32
+ startDate: string;
33
+ endDate: string;
34
+ useAutoRefresh: boolean;
35
+ autoRefresh: AutoRefresh;
28
36
  translations: DashboardDatePresetTranslationDTO[];
29
37
  }
@@ -4,8 +4,9 @@ import type { SelectedEntities } from "../enums/sharedEnums";
4
4
  export interface CreateDashboardEntityPresetDTO {
5
5
  hiddenCode: string;
6
6
  labelDefault: string;
7
- globalSelectedEntities: SelectedEntities;
8
- globalEntitiesFilters: string;
9
- globalEntitiesIds: string[];
7
+ singleEntity: boolean;
8
+ selectedEntities: SelectedEntities;
9
+ entitiesFilters: string;
10
+ entitiesIds: string[];
10
11
  translations: DashboardEntityPresetTranslationDTO[];
11
12
  }
@@ -6,18 +6,20 @@ export class DashboardEntityPresetInfos {
6
6
  hiddenCode: string;
7
7
  label: string;
8
8
  labelDefault: string;
9
- globalSelectedEntities: SelectedEntities;
10
- globalEntitiesFilters: string;
11
- globalEntitiesIds: string[];
9
+ singleEntity: boolean;
10
+ selectedEntities: SelectedEntities;
11
+ entitiesFilters: string;
12
+ entitiesIds: string[];
12
13
  translations: DashboardEntityPresetTranslation[];
13
14
 
14
15
  constructor(params: DashboardEntityPresetInfosDTO) {
15
16
  this.hiddenCode = params.hiddenCode;
16
17
  this.label = params.label;
17
18
  this.labelDefault = params.labelDefault;
18
- this.globalSelectedEntities = params.globalSelectedEntities;
19
- this.globalEntitiesFilters = params.globalEntitiesFilters;
20
- this.globalEntitiesIds = params.globalEntitiesIds.slice();
19
+ this.singleEntity = params.singleEntity;
20
+ this.selectedEntities = params.selectedEntities;
21
+ this.entitiesFilters = params.entitiesFilters;
22
+ this.entitiesIds = params.entitiesIds.slice();
21
23
  this.translations = params.translations.map(t => new DashboardEntityPresetTranslation(t));
22
24
  }
23
25
  }
@@ -26,8 +28,9 @@ export interface DashboardEntityPresetInfosDTO {
26
28
  hiddenCode: string;
27
29
  label: string;
28
30
  labelDefault: string;
29
- globalSelectedEntities: SelectedEntities;
30
- globalEntitiesFilters: string;
31
- globalEntitiesIds: string[];
31
+ singleEntity: boolean;
32
+ selectedEntities: SelectedEntities;
33
+ entitiesFilters: string;
34
+ entitiesIds: string[];
32
35
  translations: DashboardEntityPresetTranslationDTO[];
33
36
  }
@@ -1,5 +1,3 @@
1
- import type { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
2
-
3
1
  import type { CreateDashboardEntityPresetDTO, DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
4
2
  import { DashboardEntityPresetInfos } from "../dashboardEntityPresets";
5
3
  import type { CreateDashboardDatePresetDTO, DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
@@ -17,9 +15,6 @@ import type { CreateWidgetDTO } from "../widgets/widgetDetails";
17
15
  export class DashboardOrganisationTypeDetails extends DashboardOrganisationTypeInfos {
18
16
  labelDefault: string;
19
17
  translations: DashboardTranslation[];
20
- useAutoRefresh: boolean;
21
- autoRefresh: AutoRefresh;
22
- singleEntity: boolean;
23
18
  entityPresetCode: string | null;
24
19
  datePresetCode: string | null;
25
20
  variableCode: string | null;
@@ -33,9 +28,6 @@ export class DashboardOrganisationTypeDetails extends DashboardOrganisationTypeI
33
28
 
34
29
  this.labelDefault = params.labelDefault;
35
30
  this.translations = params.translations.map(t => new DashboardTranslation(t));
36
- this.useAutoRefresh = params.useAutoRefresh;
37
- this.autoRefresh = params.autoRefresh;
38
- this.singleEntity = params.singleEntity;
39
31
  this.entityPresetCode = params.entityPresetCode;
40
32
  this.datePresetCode = params.datePresetCode;
41
33
  this.variableCode = params.variableCode;
@@ -49,9 +41,6 @@ export class DashboardOrganisationTypeDetails extends DashboardOrganisationTypeI
49
41
  export interface DashboardOrganisationTypeDetailsDTO extends DashboardOrganisationTypeInfosDTO {
50
42
  labelDefault: string;
51
43
  translations: DashboardTranslationDTO[];
52
- useAutoRefresh: boolean;
53
- autoRefresh: AutoRefresh;
54
- singleEntity: boolean;
55
44
  entityPresetCode: string | null;
56
45
  datePresetCode: string | null;
57
46
  variableCode: string | null;
@@ -69,9 +58,6 @@ export interface UpdateDashboardOrganisationTypeDTO {
69
58
  icon: string;
70
59
  tags: string[];
71
60
  translations: DashboardTranslationDTO[];
72
- useAutoRefresh: boolean;
73
- autoRefresh: number;
74
- singleEntity: boolean;
75
61
  entityPresetCode: string | null;
76
62
  datePresetCode: string | null;
77
63
  variableCode: string | null;
@@ -1,5 +1,3 @@
1
- import type { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
2
-
3
1
  import type { CreateDashboardEntityPresetDTO, DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
4
2
  import { DashboardEntityPresetInfos } from "../dashboardEntityPresets";
5
3
  import type { CreateDashboardDatePresetDTO, DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
@@ -20,9 +18,6 @@ export class DashboardOrganisationDetails extends DashboardOrganisationInfos {
20
18
  labelDefault: string;
21
19
  path: PathCrumb[];
22
20
  translations: DashboardTranslation[];
23
- useAutoRefresh: boolean;
24
- autoRefresh: AutoRefresh;
25
- singleEntity: boolean;
26
21
  entityPresetCode: string | null;
27
22
  datePresetCode: string | null;
28
23
  variableCode: string | null;
@@ -37,9 +32,6 @@ export class DashboardOrganisationDetails extends DashboardOrganisationInfos {
37
32
  this.labelDefault = params.labelDefault;
38
33
  this.path = params.path.map(dto => new PathCrumb(dto)).sort((a, b) => b.index - a.index);
39
34
  this.translations = params.translations.map(t => new DashboardTranslation(t));
40
- this.useAutoRefresh = params.useAutoRefresh;
41
- this.autoRefresh = params.autoRefresh;
42
- this.singleEntity = params.singleEntity;
43
35
  this.entityPresetCode = params.entityPresetCode;
44
36
  this.datePresetCode = params.datePresetCode;
45
37
  this.variableCode = params.variableCode;
@@ -54,9 +46,6 @@ export interface DashboardOrganisationDetailsDTO extends DashboardOrganisationIn
54
46
  labelDefault: string;
55
47
  path: PathCrumbDTO[];
56
48
  translations: DashboardTranslationDTO[];
57
- useAutoRefresh: boolean;
58
- autoRefresh: AutoRefresh;
59
- singleEntity: boolean;
60
49
  entityPresetCode: string | null;
61
50
  datePresetCode: string | null;
62
51
  variableCode: string | null;
@@ -85,9 +74,6 @@ export interface UpdateDashboardOrganisationDTO {
85
74
  icon: string;
86
75
  tags: string[];
87
76
  translations: DashboardTranslationDTO[];
88
- useAutoRefresh: boolean;
89
- autoRefresh: number;
90
- singleEntity: boolean;
91
77
  entityPresetCode: string | null;
92
78
  datePresetCode: string | null;
93
79
  variableCode: string | null;
@@ -1,5 +1,9 @@
1
+ import type { AutoRefresh } from "@/shared/foundation-shared-domain/models";
2
+
1
3
  export interface CreateDashboardShallowDatePresetDTO {
2
4
  hiddenCode: string;
3
- globalStartDate: string;
4
- globalEndDate: string;
5
+ startDate: string;
6
+ endDate: string;
7
+ useAutoRefresh: boolean;
8
+ autoRefresh: AutoRefresh;
5
9
  }
@@ -1,18 +1,25 @@
1
+ import type { AutoRefresh } from "@/shared/foundation-shared-domain/models";
1
2
 
2
3
  export class DashboardShallowDatePresetInfos {
3
4
  hiddenCode: string;
4
- globalStartDate: string;
5
- globalEndDate: string;
5
+ startDate: string;
6
+ endDate: string;
7
+ useAutoRefresh: boolean;
8
+ autoRefresh: AutoRefresh;
6
9
 
7
10
  constructor(params: DashboardShallowDatePresetInfosDTO) {
8
11
  this.hiddenCode = params.hiddenCode;
9
- this.globalStartDate = params.globalStartDate;
10
- this.globalEndDate = params.globalEndDate;
12
+ this.startDate = params.startDate;
13
+ this.endDate = params.endDate;
14
+ this.useAutoRefresh = params.useAutoRefresh;
15
+ this.autoRefresh = params.autoRefresh;
11
16
  }
12
17
  }
13
18
 
14
19
  export interface DashboardShallowDatePresetInfosDTO {
15
20
  hiddenCode: string;
16
- globalStartDate: string;
17
- globalEndDate: string;
21
+ startDate: string;
22
+ endDate: string;
23
+ useAutoRefresh: boolean;
24
+ autoRefresh: AutoRefresh;
18
25
  }
@@ -2,7 +2,8 @@ import type { SelectedEntities } from "../enums/sharedEnums";
2
2
 
3
3
  export interface CreateDashboardShallowEntityPresetDTO {
4
4
  hiddenCode: string;
5
- globalSelectedEntities: SelectedEntities;
6
- globalEntitiesFilters: string;
7
- globalEntitiesIds: string[];
5
+ singleEntity: boolean;
6
+ selectedEntities: SelectedEntities;
7
+ entitiesFilters: string;
8
+ entitiesIds: string[];
8
9
  }
@@ -2,21 +2,24 @@ import type { SelectedEntities } from "../enums/sharedEnums";
2
2
 
3
3
  export class DashboardShallowEntityPresetInfos {
4
4
  hiddenCode: string;
5
- globalSelectedEntities: SelectedEntities;
6
- globalEntitiesFilters: string;
7
- globalEntitiesIds: string[];
5
+ singleEntity: boolean;
6
+ selectedEntities: SelectedEntities;
7
+ entitiesFilters: string;
8
+ entitiesIds: string[];
8
9
 
9
10
  constructor(params: DashboardShallowEntityPresetInfosDTO) {
10
11
  this.hiddenCode = params.hiddenCode;
11
- this.globalSelectedEntities = params.globalSelectedEntities;
12
- this.globalEntitiesFilters = params.globalEntitiesFilters;
13
- this.globalEntitiesIds = params.globalEntitiesIds.slice();
12
+ this.singleEntity = params.singleEntity;
13
+ this.selectedEntities = params.selectedEntities;
14
+ this.entitiesFilters = params.entitiesFilters;
15
+ this.entitiesIds = params.entitiesIds.slice();
14
16
  }
15
17
  }
16
18
 
17
19
  export interface DashboardShallowEntityPresetInfosDTO {
18
20
  hiddenCode: string;
19
- globalSelectedEntities: SelectedEntities;
20
- globalEntitiesFilters: string;
21
- globalEntitiesIds: string[];
21
+ singleEntity: boolean;
22
+ selectedEntities: SelectedEntities;
23
+ entitiesFilters: string;
24
+ entitiesIds: string[];
22
25
  }
@@ -1,5 +1,3 @@
1
- import type { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
2
-
3
1
  import type { CreateDashboardShallowEntityPresetDTO, DashboardShallowEntityPresetInfosDTO } from "../dashboardShallowEntityPresets";
4
2
  import { DashboardShallowEntityPresetInfos } from "../dashboardShallowEntityPresets";
5
3
  import type { CreateDashboardShallowDatePresetDTO, DashboardShallowDatePresetInfosDTO } from "../dashboardShallowDatePresets";
@@ -24,9 +22,6 @@ import { PathCrumb } from "../shared/pathCrumb";
24
22
  export class DashboardShallowDetails extends DashboardShallowInfos {
25
23
  labelDefault: string;
26
24
  path: PathCrumb[];
27
- overrideUseAutoRefresh: boolean | null;
28
- overrideAutoRefresh: AutoRefresh | null;
29
- overrideSingleEntity: boolean | null;
30
25
  overrideEntityPresetCode: string | null;
31
26
  overrideDatePresetCode: string | null;
32
27
  overrideVariableCode: string | null;
@@ -34,9 +29,6 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
34
29
  overrideEntityPresets: DashboardShallowEntityPresetInfos[];
35
30
  overrideVariables: DashboardShallowVariableInfos[];
36
31
  translations: DashboardTranslation[];
37
- useAutoRefresh: boolean;
38
- autoRefresh: AutoRefresh;
39
- singleEntity: boolean;
40
32
  entityPresetCode: string | null;
41
33
  datePresetCode: string | null;
42
34
  variableCode: string | null;
@@ -50,9 +42,6 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
50
42
 
51
43
  this.labelDefault = params.labelDefault;
52
44
  this.path = params.path.map(dto => new PathCrumb(dto)).sort((a, b) => b.index - a.index);
53
- this.overrideUseAutoRefresh = params.overrideUseAutoRefresh;
54
- this.overrideAutoRefresh = params.overrideAutoRefresh;
55
- this.overrideSingleEntity = params.overrideSingleEntity;
56
45
  this.overrideEntityPresetCode = params.overrideEntityPresetCode;
57
46
  this.overrideDatePresetCode = params.overrideDatePresetCode;
58
47
  this.overrideVariableCode = params.overrideVariableCode;
@@ -60,9 +49,6 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
60
49
  this.overrideEntityPresets = params.overrideEntityPresets.map(dto => new DashboardShallowEntityPresetInfos(dto));
61
50
  this.overrideVariables = params.overrideVariables.map(dto => new DashboardShallowVariableInfos(dto));
62
51
  this.translations = params.translations.map(t => new DashboardTranslation(t));
63
- this.useAutoRefresh = params.useAutoRefresh;
64
- this.autoRefresh = params.autoRefresh;
65
- this.singleEntity = params.singleEntity;
66
52
  this.entityPresetCode = params.entityPresetCode;
67
53
  this.datePresetCode = params.datePresetCode;
68
54
  this.variableCode = params.variableCode;
@@ -76,9 +62,6 @@ export class DashboardShallowDetails extends DashboardShallowInfos {
76
62
  export interface DashboardShallowDetailsDTO extends DashboardShallowInfosDTO {
77
63
  labelDefault: string;
78
64
  path: PathCrumbDTO[];
79
- overrideUseAutoRefresh: boolean | null;
80
- overrideAutoRefresh: number | null;
81
- overrideSingleEntity: boolean | null;
82
65
  overrideEntityPresetCode: string | null;
83
66
  overrideDatePresetCode: string | null;
84
67
  overrideVariableCode: string | null;
@@ -88,9 +71,6 @@ export interface DashboardShallowDetailsDTO extends DashboardShallowInfosDTO {
88
71
  translations: DashboardTranslationDTO[];
89
72
  dashboardId: string;
90
73
  scope: number;
91
- useAutoRefresh: boolean;
92
- autoRefresh: AutoRefresh;
93
- singleEntity: boolean;
94
74
  entityPresetCode: string | null;
95
75
  datePresetCode: string | null;
96
76
  variableCode: string | null;
@@ -112,9 +92,6 @@ export interface UpdateDashboardShallowDTO {
112
92
  code: string;
113
93
  icon: string;
114
94
  tags: string[];
115
- overrideUseAutoRefresh: boolean | null;
116
- overrideAutoRefresh: number | null;
117
- overrideSingleEntity: boolean | null;
118
95
  overrideEntityPresetCode: string | null;
119
96
  overrideDatePresetCode: string | null;
120
97
  overrideVariableCode: string | null;
@@ -1,5 +1,3 @@
1
- import type { AutoRefresh } from "@dative-gpi/foundation-shared-domain/models";
2
-
3
1
  import type { DashboardEntityPresetInfosDTO } from "../dashboardEntityPresets";
4
2
  import { DashboardEntityPresetInfos } from "../dashboardEntityPresets";
5
3
  import type { DashboardDatePresetInfosDTO } from "../dashboardDatePresets";
@@ -12,9 +10,6 @@ import type { WidgetInfosDTO } from "../widgets/widgetInfos";
12
10
  import { WidgetInfos } from "../widgets/widgetInfos";
13
11
 
14
12
  export class DashboardDetails extends DashboardInfos {
15
- useAutoRefresh: boolean;
16
- autoRefresh: AutoRefresh;
17
- singleEntity: boolean;
18
13
  entityPresetCode: string | null;
19
14
  datePresetCode: string | null;
20
15
  variableCode: string | null;
@@ -26,9 +21,6 @@ export class DashboardDetails extends DashboardInfos {
26
21
  constructor(params: DashboardDetailsDTO) {
27
22
  super(params);
28
23
 
29
- this.useAutoRefresh = params.useAutoRefresh;
30
- this.autoRefresh = params.autoRefresh;
31
- this.singleEntity = params.singleEntity;
32
24
  this.entityPresetCode = params.entityPresetCode;
33
25
  this.datePresetCode = params.datePresetCode;
34
26
  this.variableCode = params.variableCode;
@@ -40,9 +32,6 @@ export class DashboardDetails extends DashboardInfos {
40
32
  }
41
33
 
42
34
  export interface DashboardDetailsDTO extends DashboardInfosDTO {
43
- useAutoRefresh: boolean;
44
- autoRefresh: number;
45
- singleEntity: boolean;
46
35
  entityPresetCode: string | null;
47
36
  datePresetCode: string | null;
48
37
  variableCode: string | null;
@@ -1,10 +1,12 @@
1
+ import type { WidgetCategory } from "@dative-gpi/foundation-shared-domain/models";
2
+
1
3
  export class WidgetTemplateInfos {
2
4
  id: string;
3
5
  label: string;
4
6
  code: string;
5
7
  icon: string;
6
8
  description: string;
7
- category: string | null;
9
+ category: WidgetCategory;
8
10
  defaultWidth: number;
9
11
  defaultHeight: number;
10
12
  defaultMeta: { [key: string]: string }
@@ -28,7 +30,7 @@ export interface WidgetTemplateInfosDTO {
28
30
  code: string;
29
31
  icon: string;
30
32
  description: string;
31
- category: string | null;
33
+ category: WidgetCategory;
32
34
  defaultWidth: number;
33
35
  defaultHeight: number;
34
36
  defaultMeta: { [key: string]: string }
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.183",
4
+ "version": "0.0.184",
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": "ff417ef143eb0ea6a0bfbda643ff4fec3dcd0d91"
12
+ "gitHead": "03c6e4bb0fcac0276de2e43fcc8b7446807a6fd8"
13
13
  }