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