@dative-gpi/foundation-core-domain 0.0.135 → 0.0.137
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.
- package/models/chartCategories/chartCategoryDetails.ts +13 -2
- package/models/chartCategories/chartCategoryInfos.ts +0 -1
- package/models/chartCategories/chartCategoryTranslation.ts +14 -0
- package/models/chartCategories/index.ts +3 -2
- package/models/chartOrganisationTypes/chartOrganisationTypeDetails.ts +63 -54
- package/models/chartOrganisationTypes/chartOrganisationTypeInfos.ts +53 -63
- package/models/chartOrganisations/chartOrganisationDetails.ts +69 -60
- package/models/chartOrganisations/chartOrganisationInfos.ts +50 -60
- package/models/charts/chartAxis.ts +43 -43
- package/models/charts/chartFilterValue.ts +10 -1
- package/models/charts/chartFilterValueTranslation.ts +14 -0
- package/models/charts/chartInfos.ts +41 -51
- package/models/charts/chartModelLabel.ts +8 -8
- package/models/charts/chartModifier.ts +15 -15
- package/models/charts/chartPreset.ts +8 -1
- package/models/charts/chartPresetTranslation.ts +14 -0
- package/models/charts/chartSerie.ts +148 -148
- package/models/charts/chartSerieTranslation.ts +18 -18
- package/models/charts/chartTimeRange.ts +34 -34
- package/models/charts/chartTimeRangeTranslation.ts +10 -10
- package/models/charts/chartTimeStep.ts +14 -14
- package/models/charts/chartTranslation.ts +11 -17
- package/models/charts/chartValueRange.ts +26 -26
- package/models/charts/chartValueRangeTranslation.ts +10 -10
- package/models/charts/chartVariable.ts +26 -17
- package/models/charts/chartVariableTranslation.ts +14 -0
- package/models/charts/index.ts +4 -1
- package/models/dashboardOrganisationTypes/dashboardOrganisationTypeDetails.ts +65 -52
- package/models/dashboardOrganisationTypes/dashboardOrganisationTypeInfos.ts +26 -26
- package/models/dashboardOrganisations/dashboardOrganisationDetails.ts +75 -61
- package/models/dashboardShallows/dashboardShallowDetails.ts +52 -40
- package/models/dashboardVariables/dashboardVariableDetails.ts +23 -0
- package/models/dashboardVariables/dashboardVariableInfos.ts +40 -0
- package/models/dashboardVariables/dashboardVariableTranslation.ts +14 -0
- package/models/dashboardVariables/dashboardVariableValueTranslation.ts +14 -0
- package/models/dashboardVariables/index.ts +4 -0
- package/models/dashboards/dashboardDetails.ts +37 -33
- package/models/dashboards/dashboardTranslation.ts +14 -0
- package/models/dashboards/index.ts +2 -1
- package/models/index.ts +2 -0
- package/models/scenarioOrganisationTypes/scenarioOrganisationTypeDetails.ts +143 -126
- package/models/scenarioOrganisationTypes/scenarioOrganisationTypeInfos.ts +51 -51
- package/models/scenarioOrganisations/scenarioOrganisationDetails.ts +177 -159
- package/models/scenarioOrganisations/scenarioOrganisationInfos.ts +48 -48
- package/models/scenarios/index.ts +1 -0
- package/models/scenarios/scenarioTranslation.ts +23 -0
- package/package.json +2 -2
|
@@ -1,20 +1,31 @@
|
|
|
1
|
+
import { ChartCategoryTranslation, ChartCategoryTranslationDTO } from "./chartCategoryTranslation";
|
|
1
2
|
import { ChartCategoryInfos, ChartCategoryInfosDTO } from "./chartCategoryInfos";
|
|
2
3
|
|
|
3
4
|
export class ChartCategoryDetails extends ChartCategoryInfos {
|
|
5
|
+
labelDefault: string;
|
|
6
|
+
translations: ChartCategoryTranslation[];
|
|
7
|
+
|
|
4
8
|
constructor(params: ChartCategoryDetailsDTO) {
|
|
5
9
|
super(params);
|
|
10
|
+
|
|
11
|
+
this.labelDefault = params.labelDefault;
|
|
12
|
+
this.translations = params.translations.map(t => new ChartCategoryTranslation(t));
|
|
6
13
|
}
|
|
7
14
|
}
|
|
8
15
|
|
|
9
16
|
export interface ChartCategoryDetailsDTO extends ChartCategoryInfosDTO {
|
|
17
|
+
labelDefault: string;
|
|
18
|
+
translations: ChartCategoryTranslationDTO[];
|
|
10
19
|
}
|
|
11
20
|
|
|
12
21
|
export interface CreateChartCategoryDTO {
|
|
13
|
-
|
|
22
|
+
labelDefault: string;
|
|
14
23
|
code: string;
|
|
24
|
+
translations: ChartCategoryTranslationDTO[];
|
|
15
25
|
}
|
|
16
26
|
|
|
17
27
|
export interface UpdateChartCategoryDTO {
|
|
18
|
-
|
|
28
|
+
labelDefault: string;
|
|
19
29
|
code: string;
|
|
30
|
+
translations: ChartCategoryTranslationDTO[];
|
|
20
31
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class ChartCategoryTranslation {
|
|
2
|
+
languageCode: string;
|
|
3
|
+
label: string;
|
|
4
|
+
|
|
5
|
+
constructor(params: ChartCategoryTranslationDTO) {
|
|
6
|
+
this.languageCode = params.languageCode;
|
|
7
|
+
this.label = params.label;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ChartCategoryTranslationDTO {
|
|
12
|
+
languageCode: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export * from "./chartCategoryDetails"
|
|
2
|
-
export * from "./chartCategoryInfos"
|
|
1
|
+
export * from "./chartCategoryDetails";
|
|
2
|
+
export * from "./chartCategoryInfos";
|
|
3
|
+
export * from "./chartCategoryTranslation";
|
|
@@ -1,72 +1,81 @@
|
|
|
1
|
-
import { ChartVariable, ChartVariableDTO, CreateChartVariableDTO } from "../charts/chartVariable";
|
|
2
1
|
import { ChartOrganisationTypeInfos, ChartOrganisationTypeInfosDTO } from "./chartOrganisationTypeInfos";
|
|
2
|
+
import { ChartVariable, ChartVariableDTO, CreateChartVariableDTO } from "../charts/chartVariable";
|
|
3
|
+
import { ChartPreset, ChartPresetDTO, CreateChartPresetDTO } from "../charts/chartPreset";
|
|
4
|
+
import { ChartTranslation, ChartTranslationDTO } from "../charts/chartTranslation";
|
|
3
5
|
import { ChartAxis, ChartAxisDTO, CreateChartAxisDTO } from "../charts/chartAxis";
|
|
4
6
|
import { ChartPlot, ChartPlotDTO, CreateChartPlotDTO } from "../charts/chartPlot";
|
|
5
|
-
import { CreateChartTranslationDTO } from "../charts/chartTranslation";
|
|
6
|
-
import { ColorSets } from "../enums/chartEnums";
|
|
7
|
-
import { ChartPreset, ChartPresetDTO, CreateChartPresetDTO } from "../charts/chartPreset";
|
|
8
7
|
import { CreateChartPresetFilterDTO } from "../charts/chartPresetFilter";
|
|
8
|
+
import { ColorSets } from "../enums/chartEnums";
|
|
9
9
|
|
|
10
10
|
export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
labelDefault: string;
|
|
12
|
+
titleDefault: string;
|
|
13
|
+
colorSet: ColorSets;
|
|
14
|
+
colorSeed: string;
|
|
15
|
+
xAxis: ChartAxis | null;
|
|
16
|
+
aggregates: boolean | null;
|
|
17
|
+
dynamicVariables: boolean | null;
|
|
18
|
+
chartVariables: ChartVariable[];
|
|
19
|
+
chartPresets: ChartPreset[];
|
|
20
|
+
chartPlots: ChartPlot[];
|
|
21
|
+
translations: ChartTranslation[];
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
constructor(params: ChartOrganisationTypeDetailsDTO) {
|
|
24
|
+
super(params);
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
this.labelDefault = params.labelDefault;
|
|
27
|
+
this.titleDefault = params.titleDefault;
|
|
28
|
+
this.colorSet = params.colorSet as ColorSets;
|
|
29
|
+
this.colorSeed = params.colorSeed;
|
|
30
|
+
this.xAxis = params.xAxis ?
|
|
31
|
+
new ChartAxis(params.xAxis) : null;
|
|
32
|
+
this.aggregates = params.aggregates;
|
|
33
|
+
this.dynamicVariables = params.dynamicVariables;
|
|
34
|
+
this.chartVariables = params.chartVariables.map(cv => new ChartVariable(cv));
|
|
35
|
+
this.chartPresets = params.chartPresets.map(cp => new ChartPreset(cp));
|
|
36
|
+
this.chartPlots = params.chartPlots.map(cp => new ChartPlot(cp));
|
|
37
|
+
this.translations = params.translations.map((translation) => new ChartTranslation(translation));
|
|
38
|
+
}
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
export interface ChartOrganisationTypeDetailsDTO extends ChartOrganisationTypeInfosDTO {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
labelDefault: string;
|
|
43
|
+
titleDefault: string;
|
|
44
|
+
colorSet: number;
|
|
45
|
+
colorSeed: string;
|
|
46
|
+
xAxis: ChartAxisDTO | null;
|
|
47
|
+
aggregates: boolean | null;
|
|
48
|
+
dynamicVariables: boolean | null;
|
|
49
|
+
chartVariables: ChartVariableDTO[];
|
|
50
|
+
chartPresets: ChartPresetDTO[];
|
|
51
|
+
chartPlots: ChartPlotDTO[];
|
|
52
|
+
translations: ChartTranslationDTO[];
|
|
44
53
|
}
|
|
45
54
|
|
|
46
55
|
export interface CreateChartOrganisationTypeDTO {
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
chartOrganisationId: string;
|
|
57
|
+
organisationTypeId: string | null;
|
|
49
58
|
}
|
|
50
59
|
|
|
51
60
|
export interface UpdateChartOrganisationTypeDTO {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
chartCategoryId: string | null;
|
|
62
|
+
imageId: string | null;
|
|
63
|
+
image: string | null;
|
|
64
|
+
labelDefault: string;
|
|
65
|
+
titleDefault: string;
|
|
66
|
+
code: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
tags: string[];
|
|
69
|
+
multiple: boolean;
|
|
70
|
+
chartType: number;
|
|
71
|
+
colorSet: number;
|
|
72
|
+
colorSeed: string;
|
|
73
|
+
xAxis: CreateChartAxisDTO | null;
|
|
74
|
+
aggregates: boolean | null;
|
|
75
|
+
dynamicVariables: boolean | null;
|
|
76
|
+
chartVariables: CreateChartVariableDTO[];
|
|
77
|
+
chartPresets: CreateChartPresetDTO[];
|
|
78
|
+
chartPresetFilters: CreateChartPresetFilterDTO[];
|
|
79
|
+
chartPlots: CreateChartPlotDTO[];
|
|
80
|
+
translations: ChartTranslationDTO[];
|
|
72
81
|
}
|
|
@@ -1,76 +1,66 @@
|
|
|
1
|
-
import { ChartTranslation, ChartTranslationDTO } from "../charts/chartTranslation";
|
|
2
1
|
import { ChartModelLabel, ChartModelLabelDTO } from "../charts/chartModelLabel";
|
|
3
2
|
import { ApplicationScope } from "../enums/applicationEnums";
|
|
4
3
|
import { ChartType, PlotPer } from "../enums/chartEnums";
|
|
5
4
|
|
|
6
5
|
export class ChartOrganisationTypeInfos {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
labelDefault: string;
|
|
24
|
-
titleDefault: string;
|
|
25
|
-
translations: ChartTranslation[];
|
|
6
|
+
id: string;
|
|
7
|
+
imageId: string | null;
|
|
8
|
+
chartId: string;
|
|
9
|
+
organisationTypeId: string;
|
|
10
|
+
organisationTypeLabel: string;
|
|
11
|
+
chartCategoryId: string | null;
|
|
12
|
+
chartCategoryLabel: string | null;
|
|
13
|
+
scope: ApplicationScope;
|
|
14
|
+
label: string;
|
|
15
|
+
title: string;
|
|
16
|
+
code: string;
|
|
17
|
+
icon: string;
|
|
18
|
+
tags: string[];
|
|
19
|
+
multiple: boolean;
|
|
20
|
+
chartType: ChartType;
|
|
21
|
+
modelsLabels: ChartModelLabel[];
|
|
26
22
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.titleDefault = params.titleDefault;
|
|
46
|
-
this.translations = params.translations.map((translation) => new ChartTranslation(translation));
|
|
47
|
-
}
|
|
23
|
+
constructor(params: ChartOrganisationTypeInfosDTO) {
|
|
24
|
+
this.id = params.id;
|
|
25
|
+
this.imageId = params.imageId;
|
|
26
|
+
this.chartId = params.chartId;
|
|
27
|
+
this.organisationTypeId = params.organisationTypeId;
|
|
28
|
+
this.organisationTypeLabel = params.organisationTypeLabel;
|
|
29
|
+
this.chartCategoryId = params.chartCategoryId;
|
|
30
|
+
this.chartCategoryLabel = params.chartCategoryLabel;
|
|
31
|
+
this.scope = params.scope;
|
|
32
|
+
this.label = params.label;
|
|
33
|
+
this.title = params.title;
|
|
34
|
+
this.code = params.code;
|
|
35
|
+
this.icon = params.icon;
|
|
36
|
+
this.tags = params.tags.slice();
|
|
37
|
+
this.multiple = params.multiple;
|
|
38
|
+
this.chartType = params.chartType;
|
|
39
|
+
this.modelsLabels = params.modelsLabels.map((modelLabel) => new ChartModelLabel(modelLabel));
|
|
40
|
+
}
|
|
48
41
|
}
|
|
49
42
|
|
|
50
43
|
export interface ChartOrganisationTypeInfosDTO {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
labelDefault: string;
|
|
68
|
-
titleDefault: string;
|
|
69
|
-
translations: ChartTranslationDTO[];
|
|
44
|
+
id: string;
|
|
45
|
+
chartId: string;
|
|
46
|
+
organisationTypeId: string;
|
|
47
|
+
organisationTypeLabel: string;
|
|
48
|
+
chartCategoryId: string | null;
|
|
49
|
+
chartCategoryLabel: string | null;
|
|
50
|
+
scope: ApplicationScope;
|
|
51
|
+
label: string;
|
|
52
|
+
title: string;
|
|
53
|
+
code: string;
|
|
54
|
+
icon: string;
|
|
55
|
+
imageId: string | null;
|
|
56
|
+
tags: string[];
|
|
57
|
+
multiple: boolean;
|
|
58
|
+
chartType: ChartType;
|
|
59
|
+
modelsLabels: ChartModelLabelDTO[];
|
|
70
60
|
}
|
|
71
61
|
|
|
72
62
|
export interface ChartOrganisationTypeFilters {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
63
|
+
modelsIds?: string[] | null;
|
|
64
|
+
plotPer?: PlotPer | null;
|
|
65
|
+
search?: string | null;
|
|
76
66
|
}
|
|
@@ -1,79 +1,88 @@
|
|
|
1
1
|
import { ChartVariable, ChartVariableDTO, CreateChartVariableDTO } from "../charts/chartVariable";
|
|
2
2
|
import { ChartOrganisationInfos, ChartOrganisationInfosDTO } from "./chartOrganisationInfos";
|
|
3
|
+
import { ChartPreset, ChartPresetDTO, CreateChartPresetDTO } from "../charts/chartPreset";
|
|
3
4
|
import { ChartAxis, ChartAxisDTO, CreateChartAxisDTO } from "../charts/chartAxis";
|
|
4
5
|
import { ChartPlot, ChartPlotDTO, CreateChartPlotDTO } from "../charts/chartPlot";
|
|
5
|
-
import { CreateChartTranslationDTO } from "../charts/chartTranslation";
|
|
6
|
-
import { ColorSets } from "../enums/chartEnums";
|
|
7
|
-
import { ChartPreset, ChartPresetDTO, CreateChartPresetDTO } from "../charts/chartPreset";
|
|
8
6
|
import { CreateChartPresetFilterDTO } from "../charts/chartPresetFilter";
|
|
7
|
+
import { ColorSets } from "../enums/chartEnums";
|
|
8
|
+
import { ChartTranslation, ChartTranslationDTO } from "../charts/chartTranslation";
|
|
9
9
|
|
|
10
10
|
export class ChartOrganisationDetails extends ChartOrganisationInfos {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
labelDefault: string;
|
|
12
|
+
titleDefault: string;
|
|
13
|
+
colorSet: ColorSets;
|
|
14
|
+
colorSeed: string;
|
|
15
|
+
xAxis: ChartAxis | null;
|
|
16
|
+
aggregates: boolean | null;
|
|
17
|
+
dynamicVariables: boolean | null;
|
|
18
|
+
chartVariables: ChartVariable[];
|
|
19
|
+
chartPresets: ChartPreset[];
|
|
20
|
+
chartPlots: ChartPlot[];
|
|
21
|
+
translations: ChartTranslation[];
|
|
19
22
|
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
constructor(params: ChartOrganisationDetailsDTO) {
|
|
24
|
+
super(params);
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
this.labelDefault = params.labelDefault;
|
|
27
|
+
this.titleDefault = params.titleDefault;
|
|
28
|
+
this.colorSet = params.colorSet as ColorSets;
|
|
29
|
+
this.colorSeed = params.colorSeed;
|
|
30
|
+
this.xAxis = params.xAxis ?
|
|
31
|
+
new ChartAxis(params.xAxis) : null;
|
|
32
|
+
this.aggregates = params.aggregates;
|
|
33
|
+
this.dynamicVariables = params.dynamicVariables;
|
|
34
|
+
this.chartVariables = params.chartVariables.map(cv => new ChartVariable(cv));
|
|
35
|
+
this.chartPresets = params.chartPresets.map(cp => new ChartPreset(cp));
|
|
36
|
+
this.chartPlots = params.chartPlots.map(cp => new ChartPlot(cp));
|
|
37
|
+
this.translations = params.translations.map(t => new ChartTranslation(t));
|
|
38
|
+
}
|
|
33
39
|
}
|
|
34
40
|
|
|
35
41
|
export interface ChartOrganisationDetailsDTO extends ChartOrganisationInfosDTO {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
labelDefault: string;
|
|
43
|
+
titleDefault: string;
|
|
44
|
+
colorSet: number;
|
|
45
|
+
colorSeed: string;
|
|
46
|
+
xAxis: ChartAxisDTO | null;
|
|
47
|
+
aggregates: boolean | null;
|
|
48
|
+
dynamicVariables: boolean | null;
|
|
49
|
+
chartVariables: ChartVariableDTO[];
|
|
50
|
+
chartPresets: ChartPresetDTO[];
|
|
51
|
+
chartPlots: ChartPlotDTO[];
|
|
52
|
+
translations: ChartTranslationDTO[];
|
|
44
53
|
}
|
|
45
54
|
|
|
46
55
|
export interface CreateChartOrganisationDTO {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
+
chartCategoryId: string | null;
|
|
57
|
+
imageId: string | null;
|
|
58
|
+
image: string | null;
|
|
59
|
+
labelDefault: string;
|
|
60
|
+
titleDefault: string;
|
|
61
|
+
code: string;
|
|
62
|
+
icon: string;
|
|
63
|
+
tags: string[];
|
|
64
|
+
translations: ChartTranslationDTO[];
|
|
56
65
|
}
|
|
57
66
|
|
|
58
67
|
export interface UpdateChartOrganisationDTO {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
68
|
+
chartCategoryId: string | null;
|
|
69
|
+
imageId: string | null;
|
|
70
|
+
image: string | null;
|
|
71
|
+
labelDefault: string;
|
|
72
|
+
titleDefault: string;
|
|
73
|
+
code: string;
|
|
74
|
+
icon: string;
|
|
75
|
+
tags: string[];
|
|
76
|
+
multiple: boolean;
|
|
77
|
+
chartType: number;
|
|
78
|
+
colorSet: number;
|
|
79
|
+
colorSeed: string;
|
|
80
|
+
xAxis: CreateChartAxisDTO | null;
|
|
81
|
+
aggregates: boolean | null;
|
|
82
|
+
dynamicVariables: boolean | null;
|
|
83
|
+
chartVariables: CreateChartVariableDTO[];
|
|
84
|
+
chartPresets: CreateChartPresetDTO[];
|
|
85
|
+
chartPresetFilters: CreateChartPresetFilterDTO[];
|
|
86
|
+
chartPlots: CreateChartPlotDTO[];
|
|
87
|
+
translations: ChartTranslationDTO[];
|
|
79
88
|
}
|
|
@@ -1,73 +1,63 @@
|
|
|
1
|
-
import { ChartTranslation, ChartTranslationDTO } from "../charts/chartTranslation";
|
|
2
1
|
import { ChartModelLabel, ChartModelLabelDTO } from "../charts/chartModelLabel";
|
|
3
2
|
import { ApplicationScope } from "../enums/applicationEnums";
|
|
4
3
|
import { ChartType, PlotPer } from "../enums/chartEnums";
|
|
5
4
|
|
|
6
5
|
export class ChartOrganisationInfos {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
labelDefault: string;
|
|
23
|
-
titleDefault: string;
|
|
24
|
-
translations: ChartTranslation[];
|
|
6
|
+
id: string;
|
|
7
|
+
imageId: string | null;
|
|
8
|
+
chartId: string;
|
|
9
|
+
organisationId: string;
|
|
10
|
+
chartCategoryId: string | null;
|
|
11
|
+
chartCategoryLabel: string | null;
|
|
12
|
+
scope: ApplicationScope;
|
|
13
|
+
label: string;
|
|
14
|
+
title: string;
|
|
15
|
+
code: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
tags: string[];
|
|
18
|
+
multiple: boolean;
|
|
19
|
+
chartType: ChartType;
|
|
20
|
+
modelsLabels: ChartModelLabel[];
|
|
25
21
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
this.titleDefault = params.titleDefault;
|
|
44
|
-
this.translations = params.translations.map((translation) => new ChartTranslation(translation));
|
|
45
|
-
}
|
|
22
|
+
constructor(params: ChartOrganisationInfosDTO) {
|
|
23
|
+
this.id = params.id;
|
|
24
|
+
this.imageId = params.imageId;
|
|
25
|
+
this.chartId = params.chartId;
|
|
26
|
+
this.organisationId = params.organisationId;
|
|
27
|
+
this.chartCategoryId = params.chartCategoryId;
|
|
28
|
+
this.chartCategoryLabel = params.chartCategoryLabel;
|
|
29
|
+
this.scope = params.scope;
|
|
30
|
+
this.label = params.label;
|
|
31
|
+
this.title = params.title;
|
|
32
|
+
this.code = params.code;
|
|
33
|
+
this.icon = params.icon;
|
|
34
|
+
this.tags = params.tags.slice();
|
|
35
|
+
this.multiple = params.multiple;
|
|
36
|
+
this.chartType = params.chartType;
|
|
37
|
+
this.modelsLabels = params.modelsLabels.map((modelLabel) => new ChartModelLabel(modelLabel));
|
|
38
|
+
}
|
|
46
39
|
}
|
|
47
40
|
|
|
48
41
|
export interface ChartOrganisationInfosDTO {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
labelDefault: string;
|
|
65
|
-
titleDefault: string;
|
|
66
|
-
translations: ChartTranslationDTO[];
|
|
42
|
+
id: string;
|
|
43
|
+
imageId: string | null;
|
|
44
|
+
chartId: string;
|
|
45
|
+
organisationId: string;
|
|
46
|
+
chartCategoryId: string | null;
|
|
47
|
+
chartCategoryLabel: string | null;
|
|
48
|
+
scope: ApplicationScope;
|
|
49
|
+
label: string;
|
|
50
|
+
title: string;
|
|
51
|
+
code: string;
|
|
52
|
+
icon: string;
|
|
53
|
+
tags: string[];
|
|
54
|
+
multiple: boolean;
|
|
55
|
+
chartType: ChartType;
|
|
56
|
+
modelsLabels: ChartModelLabelDTO[];
|
|
67
57
|
}
|
|
68
58
|
|
|
69
59
|
export interface ChartOrganisationFilters {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
60
|
+
modelsIds?: string[] | null;
|
|
61
|
+
plotPer?: PlotPer | null;
|
|
62
|
+
search?: string | null;
|
|
73
63
|
}
|