@dative-gpi/foundation-core-domain 0.0.201 → 0.0.203

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.
@@ -12,6 +12,14 @@ import type { ChartAxisDTO, CreateChartAxisDTO } from "../charts/chartAxis";
12
12
  import { ChartAxis } from "../charts/chartAxis";
13
13
  import type { ChartPlotDTO, CreateChartPlotDTO } from "../charts/chartPlot";
14
14
  import { ChartPlot } from "../charts/chartPlot";
15
+ import { ChartFilter } from "../charts/chartFilter";
16
+ import type { ChartFilterDTO,CreateChartFilterDTO } from "../charts/chartFilter";
17
+ import { ChartModifier } from "../charts/chartModifier";
18
+ import type { ChartModifierDTO,CreateChartModifierDTO } from "../charts/chartModifier";
19
+ import { ChartOperand } from "../charts/chartOperand";
20
+ import type { ChartOperandDTO,CreateChartOperandDTO } from "../charts/chartOperand";
21
+ import { ChartSerie } from "../charts/chartSerie";
22
+ import type { ChartSerieDTO,CreateChartSerieDTO } from "../charts/chartSerie";
15
23
  import type { ColorSets } from "../enums/chartEnums";
16
24
 
17
25
  export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
@@ -26,6 +34,11 @@ export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
26
34
  chartPresets: ChartPreset[];
27
35
  chartPresetFilters: ChartPresetFilter[];
28
36
  chartPlots: ChartPlot[];
37
+ chartSeries: ChartSerie[];
38
+ chartOperands: ChartOperand[];
39
+ chartFilters: ChartFilter[];
40
+ chartModifiers: ChartModifier[];
41
+ yAxis: ChartAxis[];
29
42
  translations: ChartTranslation[];
30
43
 
31
44
  constructor(params: ChartOrganisationTypeDetailsDTO) {
@@ -43,6 +56,11 @@ export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
43
56
  this.chartPresets = params.chartPresets.map(cp => new ChartPreset(cp));
44
57
  this.chartPresetFilters = params.chartPresetFilters.map(cpf => new ChartPresetFilter(cpf));
45
58
  this.chartPlots = params.chartPlots.map(cp => new ChartPlot(cp));
59
+ this.chartSeries = params.chartSeries.map(cs => new ChartSerie(cs));
60
+ this.chartOperands = params.chartOperands.map(co => new ChartOperand(co));
61
+ this.chartFilters = params.chartFilters.map(cf => new ChartFilter(cf));
62
+ this.chartModifiers = params.chartModifiers.map(cm => new ChartModifier(cm));
63
+ this.yAxis = params.yAxis.map(ya => new ChartAxis(ya));
46
64
  this.translations = params.translations.map((translation) => new ChartTranslation(translation));
47
65
  }
48
66
  }
@@ -59,6 +77,11 @@ export interface ChartOrganisationTypeDetailsDTO extends ChartOrganisationTypeIn
59
77
  chartPresets: ChartPresetDTO[];
60
78
  chartPresetFilters: ChartPresetFilterDTO[];
61
79
  chartPlots: ChartPlotDTO[];
80
+ chartSeries: ChartSerieDTO[];
81
+ chartOperands: ChartOperandDTO[];
82
+ chartFilters: ChartFilterDTO[];
83
+ chartModifiers: ChartModifierDTO[];
84
+ yAxis: ChartAxisDTO[];
62
85
  translations: ChartTranslationDTO[];
63
86
  }
64
87
 
@@ -87,5 +110,10 @@ export interface UpdateChartOrganisationTypeDTO {
87
110
  chartPresets: CreateChartPresetDTO[];
88
111
  chartPresetFilters: CreateChartPresetFilterDTO[];
89
112
  chartPlots: CreateChartPlotDTO[];
113
+ chartSeries: CreateChartSerieDTO[];
114
+ chartOperands: CreateChartOperandDTO[];
115
+ chartFilters: CreateChartFilterDTO[];
116
+ chartModifiers: CreateChartModifierDTO[];
117
+ yAxis: CreateChartAxisDTO[];
90
118
  translations: ChartTranslationDTO[];
91
119
  }
@@ -12,6 +12,14 @@ import type { ChartAxisDTO, CreateChartAxisDTO } from "../charts/chartAxis";
12
12
  import { ChartAxis } from "../charts/chartAxis";
13
13
  import type { ChartPlotDTO, CreateChartPlotDTO } from "../charts/chartPlot";
14
14
  import { ChartPlot } from "../charts/chartPlot";
15
+ import { ChartFilter } from "../charts/chartFilter";
16
+ import type { ChartFilterDTO,CreateChartFilterDTO } from "../charts/chartFilter";
17
+ import { ChartModifier } from "../charts/chartModifier";
18
+ import type { ChartModifierDTO,CreateChartModifierDTO } from "../charts/chartModifier";
19
+ import { ChartOperand } from "../charts/chartOperand";
20
+ import type { ChartOperandDTO,CreateChartOperandDTO } from "../charts/chartOperand";
21
+ import { ChartSerie } from "../charts/chartSerie";
22
+ import type { ChartSerieDTO,CreateChartSerieDTO } from "../charts/chartSerie";
15
23
  import type { ColorSets } from "../enums/chartEnums";
16
24
 
17
25
  export class ChartOrganisationDetails extends ChartOrganisationInfos {
@@ -26,6 +34,11 @@ export class ChartOrganisationDetails extends ChartOrganisationInfos {
26
34
  chartPresets: ChartPreset[];
27
35
  chartPresetFilters: ChartPresetFilter[];
28
36
  chartPlots: ChartPlot[];
37
+ chartseries: ChartSerie[];
38
+ chartOperands: ChartOperand[];
39
+ chartModifiers: ChartModifier[];
40
+ chartFilters: ChartFilter[];
41
+ yAxis: ChartAxis[];
29
42
  translations: ChartTranslation[];
30
43
 
31
44
  constructor(params: ChartOrganisationDetailsDTO) {
@@ -43,6 +56,11 @@ export class ChartOrganisationDetails extends ChartOrganisationInfos {
43
56
  this.chartPresets = params.chartPresets.map(cp => new ChartPreset(cp));
44
57
  this.chartPresetFilters = params.chartPresetFilters.map(cpf => new ChartPresetFilter(cpf));
45
58
  this.chartPlots = params.chartPlots.map(cp => new ChartPlot(cp));
59
+ this.chartseries = params.chartSeries.map(cs => new ChartSerie(cs));
60
+ this.chartOperands = params.chartOperands.map(co => new ChartOperand(co));
61
+ this.chartModifiers = params.chartModifiers.map(cm => new ChartModifier(cm));
62
+ this.chartFilters = params.chartFilters.map(cf => new ChartFilter(cf));
63
+ this.yAxis = params.yAxis.map(ya => new ChartAxis(ya));
46
64
  this.translations = params.translations.map(t => new ChartTranslation(t));
47
65
  }
48
66
  }
@@ -59,6 +77,11 @@ export interface ChartOrganisationDetailsDTO extends ChartOrganisationInfosDTO {
59
77
  chartPresets: ChartPresetDTO[];
60
78
  chartPresetFilters: ChartPresetFilterDTO[];
61
79
  chartPlots: ChartPlotDTO[];
80
+ chartSeries: ChartSerieDTO[];
81
+ chartOperands: ChartOperandDTO[];
82
+ chartModifiers: ChartModifierDTO[];
83
+ chartFilters: ChartFilterDTO[];
84
+ yAxis: ChartAxisDTO[]
62
85
  translations: ChartTranslationDTO[];
63
86
  }
64
87
 
@@ -94,5 +117,10 @@ export interface UpdateChartOrganisationDTO {
94
117
  chartPresets: CreateChartPresetDTO[];
95
118
  chartPresetFilters: CreateChartPresetFilterDTO[];
96
119
  chartPlots: CreateChartPlotDTO[];
120
+ chartSeries: CreateChartSerieDTO[];
121
+ chartOperands: CreateChartOperandDTO[];
122
+ chartModifiers: CreateChartModifierDTO[];
123
+ chartFilters: CreateChartFilterDTO[];
124
+ yAxis: ChartAxisDTO[];
97
125
  translations: ChartTranslationDTO[];
98
126
  }
@@ -2,9 +2,12 @@ import type { ChartValueRangeDTO, CreateChartValueRangeDTO } from "./chartValueR
2
2
  import { ChartValueRange } from "./chartValueRange";
3
3
  import type { CreateChartTimeRangeDTO, ChartTimeRangeDTO } from "./chartTimeRange";
4
4
  import { ChartTimeRange } from "./chartTimeRange";
5
- import { AxisType } from "../enums/chartEnums";
5
+ import type { AxisType } from "../enums/chartEnums";
6
6
 
7
7
  export class ChartAxis {
8
+ id : string;
9
+ chartId : string;
10
+ hiddenCode : string;
8
11
  type: AxisType;
9
12
  logarithmic: boolean;
10
13
  boundaries: boolean;
@@ -14,29 +17,26 @@ export class ChartAxis {
14
17
  valueRanges: ChartValueRange[];
15
18
  timeRanges: ChartTimeRange[];
16
19
 
17
- constructor(params?: ChartAxisDTO) {
18
- if (params == null) {
19
- this.type = AxisType.None;
20
- this.logarithmic = false;
21
- this.boundaries = false;
22
- this.unit = "";
23
- this.valueRanges = [];
24
- this.timeRanges = [];
25
- }
26
- else {
27
- this.type = params.type as AxisType;
28
- this.logarithmic = params.logarithmic;
29
- this.boundaries = params.boundaries;
30
- this.min = params.min;
31
- this.max = params.max;
32
- this.unit = params.unit;
33
- this.valueRanges = params.valueRanges.map(vr => new ChartValueRange(vr));
34
- this.timeRanges = params.timeRanges.map(tr => new ChartTimeRange(tr));
35
- }
20
+ constructor(params: ChartAxisDTO) {
21
+ this.id = params.id;
22
+ this.chartId = params.chartId;
23
+ this.hiddenCode = params.hiddenCode;
24
+ this.type = params.type as AxisType;
25
+ this.logarithmic = params.logarithmic;
26
+ this.boundaries = params.boundaries;
27
+ this.min = params.min;
28
+ this.max = params.max;
29
+ this.unit = params.unit;
30
+ this.valueRanges = params.valueRanges.map(vr => new ChartValueRange(vr));
31
+ this.timeRanges = params.timeRanges.map(tr => new ChartTimeRange(tr));
32
+
36
33
  }
37
34
  }
38
35
 
39
36
  export interface ChartAxisDTO {
37
+ id : string;
38
+ chartId : string;
39
+ hiddenCode : string;
40
40
  type: AxisType;
41
41
  logarithmic: boolean;
42
42
  boundaries: boolean;
@@ -48,6 +48,7 @@ export interface ChartAxisDTO {
48
48
  }
49
49
 
50
50
  export interface CreateChartAxisDTO {
51
+ hiddenCode : string;
51
52
  type: AxisType;
52
53
  logarithmic: boolean;
53
54
  boundaries: boolean;
@@ -10,6 +10,15 @@ import type { ChartAxisDTO } from "./chartAxis";
10
10
  import { ChartAxis } from "./chartAxis";
11
11
  import type { ChartPlotDTO } from "./chartPlot";
12
12
  import { ChartPlot } from "./chartPlot";
13
+ import { ChartSerie } from "./chartSerie";
14
+ import type { ChartSerieDTO } from "./chartSerie";
15
+ import { ChartOperand } from "./chartOperand";
16
+ import type { ChartOperandDTO } from "./chartOperand";
17
+ import { ChartModifier } from "./chartModifier";
18
+ import type { ChartModifierDTO } from "./chartModifier";
19
+ import { ChartFilter} from "./chartFilter";
20
+ import type { ChartFilterDTO } from "./chartFilter";
21
+
13
22
  import type { ColorSets } from "../enums/chartEnums";
14
23
 
15
24
  export class ChartDetails extends ChartInfos {
@@ -19,6 +28,11 @@ export class ChartDetails extends ChartInfos {
19
28
  aggregates: boolean | null;
20
29
  dynamicVariables: boolean | null;
21
30
  chartVariables: ChartVariable[];
31
+ chartSeries: ChartSerie[];
32
+ chartOperands: ChartOperand[];
33
+ chartModifiers: ChartModifier[];
34
+ chartFilters: ChartFilter[];
35
+ yAxis: ChartAxis[];
22
36
  chartPresets: ChartPreset[];
23
37
  chartPresetFilters: ChartPresetFilter[];
24
38
  chartPlots: ChartPlot[];
@@ -36,6 +50,11 @@ export class ChartDetails extends ChartInfos {
36
50
  this.chartPresets = params.chartPresets.map(cp => new ChartPreset(cp));
37
51
  this.chartPresetFilters = params.chartPresetFilters.map(cpf => new ChartPresetFilter(cpf));
38
52
  this.chartPlots = params.chartPlots.map(cp => new ChartPlot(cp));
53
+ this.chartSeries = params.chartSeries.map(cs => new ChartSerie(cs));
54
+ this.chartOperands = params.chartOperands.map(co => new ChartOperand(co));
55
+ this.chartModifiers = params.chartModifiers.map(cm => new ChartModifier(cm));
56
+ this.chartFilters = params.chartFilters.map(cf => new ChartFilter(cf));
57
+ this.yAxis = params.yAxis.map(ya => new ChartAxis(ya));
39
58
  }
40
59
  }
41
60
 
@@ -47,6 +66,11 @@ export interface ChartDetailsDTO extends ChartInfosDTO {
47
66
  dynamicVariables: boolean | null;
48
67
  chartVariables: ChartVariableDTO[];
49
68
  chartPresets: ChartPresetDTO[];
69
+ chartSeries: ChartSerieDTO[];
70
+ chartOperands: ChartOperandDTO[];
71
+ chartModifiers: ChartModifierDTO[];
72
+ chartFilters: ChartFilterDTO[];
73
+ yAxis: ChartAxisDTO[];
50
74
  chartPresetFilters: ChartPresetFilterDTO[];
51
75
  chartPlots: ChartPlotDTO[];
52
76
  }
@@ -2,48 +2,54 @@ import type { ChartFilterValueDTO, CreateChartFilterValueDTO } from "./chartFilt
2
2
  import { ChartFilterValue } from "./chartFilterValue";
3
3
  import type { ChartFilterTranslationDTO } from "./chartFilterTranslation";
4
4
  import { ChartFilterTranslation } from "./chartFilterTranslation";
5
- import type { ChartPresetFilterDTO } from "./chartPresetFilter";
6
- import { ChartPresetFilter } from "./chartPresetFilter";
7
5
  import type { FilterType } from "../enums/sharedEnums";
8
6
 
9
7
  export class ChartFilter {
10
8
  id: string;
9
+ chartId : string;
10
+ hiddenCode: string;
11
+ chartOperandHiddenCode : string;
11
12
  dataDefinitionId: string;
12
13
  label: string;
13
14
  labelDefault: string;
14
15
  filterType: FilterType;
15
16
  filterValues: ChartFilterValue[];
16
17
  filterDynamic: boolean;
17
- chartPresets: ChartPresetFilter[];
18
18
  translations: ChartFilterTranslation[];
19
19
 
20
20
  constructor(params: ChartFilterDTO) {
21
21
  this.id = params.id;
22
+ this.chartId = params.chartId;
23
+ this.hiddenCode = params.hiddenCode;
24
+ this.chartOperandHiddenCode = params.chartOperandHiddenCode
22
25
  this.dataDefinitionId = params.dataDefinitionId;
23
26
  this.label = params.label;
24
27
  this.labelDefault = params.labelDefault;
25
28
  this.filterType = params.filterType as FilterType;
26
29
  this.filterValues = params.filterValues.map(fv => new ChartFilterValue(fv));
27
30
  this.filterDynamic = params.filterDynamic;
28
- this.chartPresets = params.chartPresets.map(cp => new ChartPresetFilter(cp));
29
31
  this.translations = params.translations.map(t => new ChartFilterTranslation(t));
30
32
  }
31
33
  }
32
34
 
33
35
  export interface ChartFilterDTO {
34
36
  id: string;
37
+ chartId : string;
38
+ hiddenCode: string;
39
+ chartOperandHiddenCode : string;
35
40
  dataDefinitionId: string;
36
41
  label: string;
37
42
  labelDefault: string;
38
43
  filterType: number;
39
44
  filterValues: ChartFilterValueDTO[];
40
45
  filterDynamic: boolean;
41
- chartPresets: ChartPresetFilterDTO[];
42
46
  translations: ChartFilterTranslationDTO[];
43
47
  }
44
48
 
45
49
  export interface CreateChartFilterDTO {
46
50
  id: string;
51
+ hiddenCode: string;
52
+ chartOperandHiddenCode : string;
47
53
  dataDefinitionId: string;
48
54
  labelDefault: string;
49
55
  filterType: FilterType;
@@ -1,4 +1,6 @@
1
1
  export class ChartModifier {
2
+ chartId : string;
3
+ hiddenCode: string;
2
4
  dataDefinitionId: string;
3
5
  hideLabel: boolean;
4
6
 
@@ -9,11 +11,13 @@ export class ChartModifier {
9
11
  }
10
12
 
11
13
  export interface ChartModifierDTO {
14
+ hiddenCode: string;
12
15
  dataDefinitionId: string;
13
16
  hideLabel: boolean;
14
17
  }
15
18
 
16
19
  export interface CreateChartModifierDTO {
20
+ hiddenCode: string;
17
21
  dataDefinitionId: string;
18
22
  hideLabel: boolean;
19
23
  }
@@ -1,63 +1,69 @@
1
- import type { ChartModifierDTO, CreateChartModifierDTO } from "./chartModifier";
2
- import { ChartModifier } from "./chartModifier";
3
- import type { ChartFilterDTO, CreateChartFilterDTO } from "./chartFilter";
4
- import { ChartFilter } from "./chartFilter";
5
1
  import type { AggregationType } from "../enums/chartEnums";
6
2
 
7
3
  export class ChartOperand {
8
4
  id: string;
5
+ chartId : string;
6
+ hiddenCode: string;
7
+ chartSerieHiddenCode: string;
9
8
  name: string;
10
9
  aggregation?: AggregationType;
11
10
  modelId: string;
12
11
  modelLabel: string;
13
12
  dataCategoryId: string;
14
13
  dataDefinitionId?: string;
15
- xAxis?: ChartModifier;
16
- yAxis?: ChartModifier;
17
- firstModifier?: ChartModifier;
18
- secondModifier?: ChartModifier;
19
- filters: ChartFilter[];
14
+ xAxisModifierHiddenCode?: string;
15
+ yAxisModifierHiddenCode?: string;
16
+ firstModifierHiddenCode?: string;
17
+ secondModifierHiddenCode?: string;
18
+ index : number;
20
19
 
21
20
  constructor(params: ChartOperandDTO) {
22
21
  this.id = params.id;
22
+ this.chartId = params.chartId;
23
+ this.hiddenCode = params.hiddenCode;
24
+ this.chartSerieHiddenCode = params.chartSerieHiddenCode;
23
25
  this.name = params.name
24
26
  this.aggregation = (params.aggregation as AggregationType) ?? undefined;
25
27
  this.modelId = params.modelId;
26
28
  this.modelLabel = params.modelLabel;
27
29
  this.dataCategoryId = params.dataCategoryId;
28
30
  this.dataDefinitionId = params.dataDefinitionId;
29
- this.xAxis = params.xAxis ? new ChartModifier(params.xAxis) : undefined;
30
- this.yAxis = params.yAxis ? new ChartModifier(params.yAxis) : undefined;
31
- this.firstModifier = params.firstModifier ? new ChartModifier(params.firstModifier) : undefined;
32
- this.secondModifier = params.secondModifier ? new ChartModifier(params.secondModifier) : undefined;
33
- this.filters = params.filters.map(f => new ChartFilter(f));
31
+ this.xAxisModifierHiddenCode = params.xAxisModifierHiddenCode;
32
+ this.yAxisModifierHiddenCode = params.yAxisModifierHiddenCode;
33
+ this.firstModifierHiddenCode = params.firstModifierHiddenCode;
34
+ this.secondModifierHiddenCode = params.secondModifierHiddenCode;
35
+ this.index = params.index;
34
36
  }
35
37
  }
36
38
 
37
39
  export interface ChartOperandDTO {
38
40
  id: string;
41
+ chartId : string;
42
+ hiddenCode: string;
43
+ chartSerieHiddenCode: string;
39
44
  name: string;
40
45
  aggregation?: number;
41
46
  modelId: string;
42
47
  modelLabel: string;
43
48
  dataCategoryId: string;
44
49
  dataDefinitionId?: string;
45
- xAxis?: ChartModifierDTO;
46
- yAxis?: ChartModifierDTO;
47
- firstModifier?: ChartModifierDTO;
48
- secondModifier?: ChartModifierDTO;
49
- filters: ChartFilterDTO[];
50
+ xAxisModifierHiddenCode?: string;
51
+ yAxisModifierHiddenCode?: string;
52
+ firstModifierHiddenCode?: string;
53
+ secondModifierHiddenCode?: string;
54
+ index : number;
50
55
  }
51
56
 
52
57
  export interface CreateChartOperandDTO {
58
+ hiddenCode: string;
59
+ chartSerieHiddenCode: string;
53
60
  name: string;
54
61
  aggregation?: number;
55
62
  modelId: string;
56
63
  dataCategoryId: string;
57
64
  dataDefinitionId?: string;
58
- xAxis?: CreateChartModifierDTO;
59
- yAxis?: CreateChartModifierDTO;
60
- firstModifier?: CreateChartModifierDTO;
61
- secondModifier?: CreateChartModifierDTO;
62
- filters: CreateChartFilterDTO[];
65
+ xAxisModifierHiddenCode?: string;
66
+ yAxisModifierHiddenCode?: string;
67
+ firstModifierHiddenCode?: string;
68
+ secondModifierHiddenCode?: string;
63
69
  }
@@ -1,30 +1,29 @@
1
- import type { ChartSerieDTO, CreateChartSerieDTO } from "./chartSerie";
2
- import { ChartSerie } from "./chartSerie";
3
- import type { ChartAxisDTO, CreateChartAxisDTO } from "./chartAxis";
4
- import { ChartAxis } from "./chartAxis";
5
1
 
6
2
  export class ChartPlot {
7
3
  id: string;
8
4
  chartId: string;
9
- yAxis?: ChartAxis;
10
- chartSeries: ChartSerie[];
5
+ hiddenCode: string;
6
+ yAxisHiddenCode?: string;
7
+ index : number;
11
8
 
12
9
  constructor(params: ChartPlotDTO) {
13
10
  this.id = params.id;
14
11
  this.chartId = params.chartId;
15
- this.yAxis = params.yAxis ? new ChartAxis(params.yAxis) : undefined;
16
- this.chartSeries = params.chartSeries.map(cts => new ChartSerie(cts));
12
+ this.hiddenCode = params.hiddenCode;
13
+ this.yAxisHiddenCode = params.yAxisHiddenCode;
14
+ this.index = params.index;
17
15
  }
18
16
  }
19
17
 
20
18
  export interface ChartPlotDTO {
21
19
  id: string;
22
20
  chartId: string;
23
- yAxis?: ChartAxisDTO;
24
- chartSeries: ChartSerieDTO[];
21
+ hiddenCode: string;
22
+ yAxisHiddenCode?: string;
23
+ index : number;
25
24
  }
26
25
 
27
26
  export interface CreateChartPlotDTO {
28
- yAxis?: CreateChartAxisDTO;
29
- chartSeries: CreateChartSerieDTO[];
27
+ hiddenCode: string;
28
+ yAxisHiddenCode?: string;
30
29
  }
@@ -1,24 +1,22 @@
1
1
  import type { ChartPresetTranslationDTO } from "./chartPresetTranslation";
2
2
  import { ChartPresetTranslation } from "./chartPresetTranslation";
3
- import type { ChartPresetFilterDTO } from "./chartPresetFilter";
4
- import { ChartPresetFilter } from "./chartPresetFilter";
5
3
 
6
4
  export class ChartPreset {
7
5
  id: string;
8
6
  chartId: string;
7
+ hiddenCode: string;
9
8
  label: string;
10
9
  labelDefault: string;
11
10
  icon: string;
12
- chartFilters: ChartPresetFilter[];
13
11
  translations: ChartPresetTranslation[];
14
12
 
15
13
  constructor(params: ChartPresetDTO) {
16
14
  this.id = params.id;
17
15
  this.chartId = params.chartId;
16
+ this.hiddenCode = params.hiddenCode;
18
17
  this.label = params.label;
19
18
  this.labelDefault = params.labelDefault;
20
19
  this.icon = params.icon;
21
- this.chartFilters = params.chartFilters.map(cf => new ChartPresetFilter(cf));
22
20
  this.translations = params.translations.map(t => new ChartPresetTranslation(t));
23
21
  }
24
22
  }
@@ -26,16 +24,16 @@ export class ChartPreset {
26
24
  export interface ChartPresetDTO {
27
25
  id: string;
28
26
  chartId: string;
27
+ hiddenCode: string;
29
28
  label: string;
30
29
  labelDefault: string;
31
30
  icon: string;
32
- chartFilters: ChartPresetFilterDTO[];
33
31
  translations: ChartPresetTranslationDTO[];
34
32
  }
35
33
 
36
34
  export interface CreateChartPresetDTO {
37
35
  id: string;
38
- chartId: string;
36
+ hiddenCode: string;
39
37
  labelDefault: string;
40
38
  icon: string;
41
39
  translations: ChartPresetTranslationDTO[];
@@ -1,29 +1,32 @@
1
1
  export class ChartPresetFilter {
2
2
  id: string;
3
- chartPresetId: string;
4
- chartPresetLabel: string;
5
- chartFilterId: string;
3
+ chartId : string;
4
+ chartPresetHiddenCode: string;
5
+ chartFilterHiddenCode: string;
6
6
  chartFilterLabel: string;
7
+ chartPresetLabel: string;
7
8
 
8
9
 
9
10
  constructor(params: ChartPresetFilterDTO) {
10
11
  this.id = params.id;
11
- this.chartPresetId = params.chartPresetId;
12
- this.chartPresetLabel = params.chartPresetLabel;
13
- this.chartFilterId = params.chartFilterId;
12
+ this.chartId = params.chartId;
13
+ this.chartPresetHiddenCode = params.chartPresetHiddenCode;
14
+ this.chartFilterHiddenCode = params.chartFilterHiddenCode;
14
15
  this.chartFilterLabel = params.chartFilterLabel;
16
+ this.chartPresetLabel = params.chartPresetLabel;
15
17
  }
16
18
  }
17
19
 
18
20
  export interface ChartPresetFilterDTO {
19
21
  id: string;
20
- chartPresetId: string;
21
- chartPresetLabel: string;
22
- chartFilterId: string;
22
+ chartId : string;
23
+ chartPresetHiddenCode: string;
24
+ chartFilterHiddenCode: string;
23
25
  chartFilterLabel: string;
26
+ chartPresetLabel: string;
24
27
  }
25
28
 
26
29
  export interface CreateChartPresetFilterDTO {
27
- chartPresetId: string;
28
- chartFilterId: string;
30
+ chartPresetHiddenCode: string;
31
+ chartFilterHiddenCode: string;
29
32
  }
@@ -4,12 +4,12 @@ import type { ChartValueRangeDTO, CreateChartValueRangeDTO } from "./chartValueR
4
4
  import { ChartValueRange } from "./chartValueRange";
5
5
  import type { ChartTimeStepDTO, CreateChartTimeStepDTO } from "./chartTimeStep";
6
6
  import { ChartTimeStep } from "./chartTimeStep";
7
- import type { ChartOperandDTO, CreateChartOperandDTO } from "./chartOperand";
8
- import { ChartOperand } from "./chartOperand";
9
7
 
10
8
  export class ChartSerie {
11
9
  id: string;
12
- chartPlotId: string;
10
+ chartId: string;
11
+ hiddenCode: string;
12
+ chartPlotHiddenCode: string;
13
13
  serieType: number;
14
14
  plotPer?: number;
15
15
  shift?: ChartTimeStep;
@@ -39,7 +39,6 @@ export class ChartSerie {
39
39
  useOther?: boolean;
40
40
  otherThreshold?: number;
41
41
  baseBreakdown?: number;
42
- chartOperands: ChartOperand[];
43
42
  label?: string;
44
43
  xAxisLabel?: string;
45
44
  yAxisLabel?: string;
@@ -50,7 +49,9 @@ export class ChartSerie {
50
49
 
51
50
  constructor(params: ChartSerieDTO) {
52
51
  this.id = params.id;
53
- this.chartPlotId = params.chartPlotId;
52
+ this.chartId = params.chartId;
53
+ this.hiddenCode = params.hiddenCode;
54
+ this.chartPlotHiddenCode = params.chartPlotHiddenCode;
54
55
  this.serieType = params.serieType;
55
56
  this.plotPer = params.plotPer;
56
57
  this.shift = params.shift ? new ChartTimeStep(params.shift) : undefined;
@@ -80,7 +81,6 @@ export class ChartSerie {
80
81
  this.useOther = params.useOther;
81
82
  this.otherThreshold = params.otherThreshold;
82
83
  this.baseBreakdown = params.baseBreakdown;
83
- this.chartOperands = params.chartOperands.map(o => new ChartOperand(o));
84
84
  this.label = params.label;
85
85
  this.xAxisLabel = params.xAxisLabel;
86
86
  this.yAxisLabel = params.yAxisLabel;
@@ -93,7 +93,9 @@ export class ChartSerie {
93
93
 
94
94
  export interface ChartSerieDTO {
95
95
  id: string;
96
- chartPlotId: string;
96
+ chartId: string;
97
+ hiddenCode: string;
98
+ chartPlotHiddenCode: string;
97
99
  serieType: number;
98
100
  plotPer?: number;
99
101
  shift?: ChartTimeStepDTO;
@@ -123,7 +125,6 @@ export interface ChartSerieDTO {
123
125
  useOther?: boolean;
124
126
  otherThreshold?: number;
125
127
  baseBreakdown?: number;
126
- chartOperands: ChartOperandDTO[];
127
128
  label?: string;
128
129
  xAxisLabel?: string;
129
130
  yAxisLabel?: string;
@@ -134,6 +135,8 @@ export interface ChartSerieDTO {
134
135
  }
135
136
 
136
137
  export interface CreateChartSerieDTO {
138
+ hiddenCode: string;
139
+ chartPlotHiddenCode: string;
137
140
  serieType: number;
138
141
  plotPer?: number;
139
142
  shift?: CreateChartTimeStepDTO;
@@ -158,7 +161,6 @@ export interface CreateChartSerieDTO {
158
161
  displayAs?: number;
159
162
  useOther?: boolean;
160
163
  otherThreshold?: number;
161
- chartOperands: CreateChartOperandDTO[];
162
164
  labelDefault?: string;
163
165
  xAxisLabelDefault?: string;
164
166
  yAxisLabelDefault?: 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.201",
4
+ "version": "0.0.203",
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": "36570e97911fc649951dc1c63ea0fd37c6e09385"
12
+ "gitHead": "c458860cdad7dff7f9512dddaffe26e60418f880"
13
13
  }