@dative-gpi/foundation-core-domain 1.0.66 → 1.0.67-map-edit

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 (76) hide show
  1. package/models/actions/actionInfos.ts +3 -0
  2. package/models/alerts/alertDetails.ts +0 -7
  3. package/models/alerts/alertInfos.ts +26 -8
  4. package/models/alerts/alertState.ts +9 -6
  5. package/models/chartCategories/chartCategoryDetails.ts +2 -0
  6. package/models/chartCategories/chartCategoryInfos.ts +3 -0
  7. package/models/chartOrganisationTypes/chartOrganisationTypeDetails.ts +17 -4
  8. package/models/chartOrganisationTypes/chartOrganisationTypeInfos.ts +10 -1
  9. package/models/chartOrganisations/chartOrganisationDetails.ts +20 -7
  10. package/models/chartOrganisations/chartOrganisationInfos.ts +10 -1
  11. package/models/charts/chartAllowedStep.ts +31 -0
  12. package/models/charts/chartAllowedStepTranslation.ts +19 -0
  13. package/models/charts/chartDetails.ts +12 -1
  14. package/models/charts/chartInfos.ts +6 -0
  15. package/models/charts/chartPreset.ts +4 -0
  16. package/models/charts/chartTimeRange.ts +3 -1
  17. package/models/charts/chartTimeStep.ts +0 -4
  18. package/models/charts/index.ts +2 -0
  19. package/models/connectivityAlerts/connectivityAlertInfos.ts +6 -0
  20. package/models/connectivityScenarios/connectivityScenarioDetails.ts +2 -2
  21. package/models/customProperties/customPropertyInfos.ts +0 -3
  22. package/models/dashboardDatePresets/dashboardDatePresetDetails.ts +1 -0
  23. package/models/dashboardDatePresets/dashboardDatePresetInfos.ts +3 -0
  24. package/models/dashboardEntityPresets/dashboardEntityPresetDetails.ts +1 -0
  25. package/models/dashboardEntityPresets/dashboardEntityPresetInfos.ts +3 -0
  26. package/models/dashboardShallowWidgets/dashboardShallowWidgetDetails.ts +4 -0
  27. package/models/dashboardShallowWidgets/dashboardShallowWidgetInfos.ts +30 -0
  28. package/models/dashboardShallowWidgets/index.ts +2 -0
  29. package/models/dashboardShallows/dashboardShallowDetails.ts +37 -61
  30. package/models/dashboardShallows/dashboardShallowInfos.ts +1 -0
  31. package/models/dashboardVariables/dashboardVariableDetails.ts +1 -0
  32. package/models/dashboardVariables/dashboardVariableInfos.ts +3 -0
  33. package/models/dashboards/dashboardSettings.ts +22 -0
  34. package/models/dashboards/index.ts +1 -0
  35. package/models/deviceDataDefinitions/deviceDataDefinitionInfos.ts +39 -0
  36. package/models/deviceDataDefinitions/index.ts +1 -0
  37. package/models/deviceExplorerElements/deviceExplorerElementDetails.ts +11 -0
  38. package/models/deviceExplorerElements/deviceExplorerElementInfos.ts +149 -0
  39. package/models/deviceExplorerElements/index.ts +2 -0
  40. package/models/deviceOrganisations/deviceOrganisationAlert.ts +3 -0
  41. package/models/deviceOrganisations/deviceOrganisationDetails.ts +2 -3
  42. package/models/deviceOrganisations/deviceOrganisationInfos.ts +26 -12
  43. package/models/folders/folderInfos.ts +6 -0
  44. package/models/groups/groupInfos.ts +1 -2
  45. package/models/index.ts +5 -1
  46. package/models/locations/locationInfos.ts +3 -0
  47. package/models/playlists/index.ts +3 -0
  48. package/models/playlists/playlistDashboard.ts +31 -0
  49. package/models/playlists/playlistDetails.ts +32 -0
  50. package/models/playlists/playlistInfos.ts +39 -0
  51. package/models/roleOrganisations/roleOrganisationDetails.ts +12 -0
  52. package/models/roles/index.ts +1 -0
  53. package/models/roles/roleTranslation.ts +17 -0
  54. package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationDetails.ts +18 -9
  55. package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationInfos.ts +14 -11
  56. package/models/scenarioOrganisationTypes/scenarioOrganisationTypeDetails.ts +12 -3
  57. package/models/scenarioOrganisationTypes/scenarioOrganisationTypeInfos.ts +18 -7
  58. package/models/scenarioOrganisations/scenarioOrganisationDetails.ts +16 -5
  59. package/models/scenarioOrganisations/scenarioOrganisationInfos.ts +18 -7
  60. package/models/scenarios/scenarioChart.ts +1 -1
  61. package/models/scenarios/scenarioParameterOverride.ts +4 -4
  62. package/models/serviceAccountOrganisations/serviceAccountOrganisationDetails.ts +0 -7
  63. package/models/serviceAccountOrganisations/serviceAccountOrganisationInfos.ts +6 -0
  64. package/models/shared/timeRange.ts +5 -1
  65. package/models/userOrganisationTables/userOrganisationTableInfos.ts +2 -2
  66. package/models/userOrganisations/userOrganisationDetails.ts +2 -1
  67. package/models/userOrganisations/userOrganisationInfos.ts +3 -0
  68. package/models/widgetTemplates/widgetTemplateInfos.ts +10 -0
  69. package/models/widgets/index.ts +2 -1
  70. package/models/widgets/widgetDetails.ts +3 -0
  71. package/models/widgets/widgetInfos.ts +7 -0
  72. package/models/widgets/widgetInterface.ts +15 -0
  73. package/package.json +4 -4
  74. package/models/extensionApplications/extensionApplicationDetails.ts +0 -18
  75. package/models/extensionApplications/extensionApplicationInfos.ts +0 -18
  76. package/models/extensionApplications/index.ts +0 -2
@@ -7,6 +7,7 @@ export class ActionInfos {
7
7
  uri: string;
8
8
  label: string;
9
9
  icon: string;
10
+ color: string | null;
10
11
 
11
12
  constructor(params: ActionInfosDTO) {
12
13
  this.extensionId = params.extensionId;
@@ -15,6 +16,7 @@ export class ActionInfos {
15
16
  this.uri = params.uri;
16
17
  this.label = params.label;
17
18
  this.icon = params.icon;
19
+ this.color = params.color ?? null;
18
20
  }
19
21
  }
20
22
 
@@ -25,6 +27,7 @@ export interface ActionInfosDTO {
25
27
  uri: string;
26
28
  label: string;
27
29
  icon: string;
30
+ color?: string | null;
28
31
  }
29
32
 
30
33
  export interface ActionFilters {
@@ -1,24 +1,17 @@
1
- import type { ApplicationScope } from "@/shared/foundation-shared-domain/enums";
2
1
  import { AlertInfos, type AlertInfosDTO } from "./alertInfos";
3
2
 
4
3
  export class AlertDetails extends AlertInfos {
5
4
  description: string;
6
5
  comments: string;
7
- scenarioId: string;
8
- scenarioScope: ApplicationScope;
9
6
 
10
7
  constructor(params: AlertDetailsDTO) {
11
8
  super(params);
12
9
  this.comments = params.comments;
13
10
  this.description = params.description;
14
- this.scenarioId = params.scenarioId;
15
- this.scenarioScope = params.scenarioScope;
16
11
  }
17
12
  }
18
13
 
19
14
  export interface AlertDetailsDTO extends AlertInfosDTO {
20
15
  description: string;
21
16
  comments: string;
22
- scenarioId: string;
23
- scenarioScope: ApplicationScope;
24
17
  }
@@ -1,4 +1,4 @@
1
- import { type AlertStatus, type Criticity } from "@dative-gpi/foundation-shared-domain/enums";
1
+ import { type ApplicationScope, type AlertStatus, type Criticity } from "@dative-gpi/foundation-shared-domain/enums";
2
2
  import { isoToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
3
3
 
4
4
  import { AlertDataDefinition, type AlertDataDefinitionDTO } from "./alertDataDefinition";
@@ -8,13 +8,16 @@ import { type DateVariable } from "../shared/dateVariable";
8
8
 
9
9
  export class AlertInfos {
10
10
  id: string;
11
- deprecatedScenarioId: string;
11
+ scenarioId: string;
12
+ scenarioScope: ApplicationScope;
12
13
  scenarioLabel: string;
13
14
  organisationId: string;
14
15
  deviceOrganisationId: string;
15
16
  deviceOrganisationImageId: string | null;
16
17
  deviceOrganisationCode: string;
17
18
  deviceOrganisationLabel: string;
19
+ deviceOrganisationLocationLabel: string | null;
20
+ deviceOrganisationOwnerLabel: string | null;
18
21
  icon: string;
19
22
  code: string;
20
23
  label: string;
@@ -28,24 +31,29 @@ export class AlertInfos {
28
31
  triggerSourceTimestamp: number | null;
29
32
  triggerEnqueuedTimestamp: number | null;
30
33
  triggerProcessedTimestamp: number | null;
34
+ triggerActualTimestamp: number | null;
31
35
  lastState: AlertState;
32
36
  currentSourceTimestamp: number | null;
33
37
  currentEnqueuedTimestamp: number | null;
34
38
  currentProcessedTimestamp: number | null;
35
- status: AlertStatus;
39
+ currentActualTimestamp: number | null;
40
+ currentStatus: AlertStatus;
36
41
  tags: string[];
37
42
  history: AlertState[];
38
43
  groupByValues: AlertDataDefinition[];
39
44
 
40
45
  constructor(params: AlertInfosDTO) {
41
46
  this.id = params.id;
42
- this.deprecatedScenarioId = params.deprecatedScenarioId;
47
+ this.scenarioId = params.scenarioId;
48
+ this.scenarioScope = params.scenarioScope;
43
49
  this.scenarioLabel = params.scenarioLabel;
44
50
  this.organisationId = params.organisationId;
45
51
  this.deviceOrganisationId = params.deviceOrganisationId;
46
52
  this.deviceOrganisationImageId = params.deviceOrganisationImageId;
47
53
  this.deviceOrganisationCode = params.deviceOrganisationCode;
48
54
  this.deviceOrganisationLabel = params.deviceOrganisationLabel;
55
+ this.deviceOrganisationLocationLabel = params.deviceOrganisationLocationLabel;
56
+ this.deviceOrganisationOwnerLabel = params.deviceOrganisationOwnerLabel;
49
57
  this.icon = params.icon;
50
58
  this.code = params.code;
51
59
  this.label = params.label;
@@ -63,6 +71,8 @@ export class AlertInfos {
63
71
  isoToEpoch(params.triggerEnqueuedTimestamp) : null;
64
72
  this.triggerProcessedTimestamp = params.triggerProcessedTimestamp ?
65
73
  isoToEpoch(params.triggerProcessedTimestamp) : null;
74
+ this.triggerActualTimestamp = params.triggerActualTimestamp ?
75
+ isoToEpoch(params.triggerActualTimestamp) : null;
66
76
  this.lastState = new AlertState(params.lastState);
67
77
  this.currentSourceTimestamp = params.currentSourceTimestamp ?
68
78
  isoToEpoch(params.currentSourceTimestamp) : null;
@@ -70,7 +80,9 @@ export class AlertInfos {
70
80
  isoToEpoch(params.currentEnqueuedTimestamp) : null;
71
81
  this.currentProcessedTimestamp = params.currentProcessedTimestamp ?
72
82
  isoToEpoch(params.currentProcessedTimestamp) : null;
73
- this.status = params.status;
83
+ this.currentActualTimestamp = params.currentActualTimestamp ?
84
+ isoToEpoch(params.currentActualTimestamp) : null;
85
+ this.currentStatus = params.currentStatus;
74
86
  this.tags = params.tags;
75
87
  this.history = params.history.map(dto => new AlertState(dto));
76
88
  this.groupByValues = params.groupByValues.map(dto => new AlertDataDefinition(dto));
@@ -79,13 +91,16 @@ export class AlertInfos {
79
91
 
80
92
  export interface AlertInfosDTO {
81
93
  id: string;
82
- deprecatedScenarioId: string;
94
+ scenarioId: string;
95
+ scenarioScope: ApplicationScope;
83
96
  scenarioLabel: string;
84
97
  organisationId: string;
85
98
  deviceOrganisationId: string;
86
99
  deviceOrganisationImageId: string | null;
87
100
  deviceOrganisationCode: string;
88
101
  deviceOrganisationLabel: string;
102
+ deviceOrganisationLocationLabel: string | null;
103
+ deviceOrganisationOwnerLabel: string | null;
89
104
  icon: string;
90
105
  code: string;
91
106
  label: string;
@@ -99,18 +114,21 @@ export interface AlertInfosDTO {
99
114
  triggerSourceTimestamp: string | null;
100
115
  triggerEnqueuedTimestamp: string | null;
101
116
  triggerProcessedTimestamp: string | null;
117
+ triggerActualTimestamp: string | null;
102
118
  lastState: AlertStateDTO;
103
119
  currentSourceTimestamp: string | null;
104
120
  currentEnqueuedTimestamp: string | null;
105
121
  currentProcessedTimestamp: string | null;
106
- status: AlertStatus;
122
+ currentActualTimestamp: string | null;
123
+ currentStatus: AlertStatus;
107
124
  tags: string[];
108
125
  history: AlertStateDTO[];
109
126
  groupByValues: AlertDataDefinitionDTO[];
110
127
  }
111
128
 
112
129
  export interface AlertFilters {
113
- deprecatedScenarioId?: string | null;
130
+ scenarioId?: string | null;
131
+ scenarioScope?: ApplicationScope | null;
114
132
  deviceOrganisationId?: string | null;
115
133
  statuses?: AlertStatus[] | null;
116
134
  acknowledged?: boolean | null;
@@ -6,17 +6,19 @@ import { AlertDataDefinition, type AlertDataDefinitionDTO } from "./alertDataDef
6
6
  export class AlertState {
7
7
  id: string;
8
8
  status: AlertStatus;
9
- sourceTimestamp: number;
10
- enqueuedTimestamp: number;
9
+ sourceTimestamp: number | null;
10
+ enqueuedTimestamp: number | null;
11
11
  processedTimestamp: number;
12
+ actualTimestamp: number;
12
13
  metadataValues?: AlertDataDefinition[];
13
14
 
14
15
  constructor(params: AlertStateDTO) {
15
16
  this.id = params.id;
16
17
  this.status = params.status;
17
- this.sourceTimestamp = isoToEpoch(params.sourceTimestamp);
18
- this.enqueuedTimestamp = isoToEpoch(params.enqueuedTimestamp);
18
+ this.sourceTimestamp = params.sourceTimestamp ? isoToEpoch(params.sourceTimestamp) : null;
19
+ this.enqueuedTimestamp = params.enqueuedTimestamp ? isoToEpoch(params.enqueuedTimestamp) : null;
19
20
  this.processedTimestamp = isoToEpoch(params.processedTimestamp);
21
+ this.actualTimestamp = isoToEpoch(params.actualTimestamp);
20
22
  this.metadataValues = params.metadataValues?.map(dto => new AlertDataDefinition(dto));
21
23
  }
22
24
  }
@@ -24,8 +26,9 @@ export class AlertState {
24
26
  export interface AlertStateDTO {
25
27
  id: string;
26
28
  status: AlertStatus;
27
- sourceTimestamp: string;
28
- enqueuedTimestamp: string;
29
+ sourceTimestamp: string | null;
30
+ enqueuedTimestamp: string | null;
29
31
  processedTimestamp: string;
32
+ actualTimestamp: string;
30
33
  metadataValues?: AlertDataDefinitionDTO[];
31
34
  }
@@ -23,11 +23,13 @@ export interface ChartCategoryDetailsDTO extends ChartCategoryInfosDTO {
23
23
  export interface CreateChartCategoryDTO {
24
24
  labelDefault: string;
25
25
  code: string;
26
+ index: number;
26
27
  translations: ChartCategoryTranslationDTO[];
27
28
  }
28
29
 
29
30
  export interface UpdateChartCategoryDTO {
30
31
  labelDefault: string;
31
32
  code: string;
33
+ index: number;
32
34
  translations: ChartCategoryTranslationDTO[];
33
35
  }
@@ -2,11 +2,13 @@ export class ChartCategoryInfos {
2
2
  id: string;
3
3
  label: string;
4
4
  code: string;
5
+ index: number;
5
6
 
6
7
  constructor(params: ChartCategoryInfosDTO) {
7
8
  this.id = params.id;
8
9
  this.label = params.label;
9
10
  this.code = params.code;
11
+ this.index = params.index;
10
12
  }
11
13
  }
12
14
 
@@ -14,6 +16,7 @@ export interface ChartCategoryInfosDTO {
14
16
  id: string;
15
17
  label: string;
16
18
  code: string;
19
+ index: number;
17
20
  }
18
21
 
19
22
  export interface ChartCategoryFilters {
@@ -13,14 +13,15 @@ import { ChartAxis } from "../charts/chartAxis";
13
13
  import type { ChartPlotDTO, CreateChartPlotDTO } from "../charts/chartPlot";
14
14
  import { ChartPlot } from "../charts/chartPlot";
15
15
  import { ChartFilter } from "../charts/chartFilter";
16
- import type { ChartFilterDTO,CreateChartFilterDTO } from "../charts/chartFilter";
16
+ import type { ChartFilterDTO, CreateChartFilterDTO } from "../charts/chartFilter";
17
17
  import { ChartModifier } from "../charts/chartModifier";
18
- import type { ChartModifierDTO,CreateChartModifierDTO } from "../charts/chartModifier";
18
+ import type { ChartModifierDTO, CreateChartModifierDTO } from "../charts/chartModifier";
19
19
  import { ChartOperand } from "../charts/chartOperand";
20
- import type { ChartOperandDTO,CreateChartOperandDTO } from "../charts/chartOperand";
20
+ import type { ChartOperandDTO, CreateChartOperandDTO } from "../charts/chartOperand";
21
21
  import { ChartSerie } from "../charts/chartSerie";
22
- import type { ChartSerieDTO,CreateChartSerieDTO } from "../charts/chartSerie";
22
+ import type { ChartSerieDTO, CreateChartSerieDTO } from "../charts/chartSerie";
23
23
  import type { ColorSets } from "@dative-gpi/foundation-shared-domain/enums";
24
+ import { ChartAllowedStep, type ChartAllowedStepDTO, type CreateChartAllowedStepDTO } from "../charts/chartAllowedStep";
24
25
 
25
26
  export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
26
27
  labelDefault: string;
@@ -30,6 +31,8 @@ export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
30
31
  xAxis: ChartAxis | null;
31
32
  aggregates: boolean | null;
32
33
  dynamicVariables: boolean | null;
34
+ showAllowedStep: boolean | null;
35
+ showPlotPerOnGraph: boolean | null;
33
36
  chartVariables: ChartVariable[];
34
37
  chartPresets: ChartPreset[];
35
38
  chartPresetFilters: ChartPresetFilter[];
@@ -39,6 +42,7 @@ export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
39
42
  chartFilters: ChartFilter[];
40
43
  chartModifiers: ChartModifier[];
41
44
  yAxis: ChartAxis[];
45
+ chartAllowedSteps: ChartAllowedStep[];
42
46
  translations: ChartTranslation[];
43
47
 
44
48
  constructor(params: ChartOrganisationTypeDetailsDTO) {
@@ -52,6 +56,8 @@ export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
52
56
  new ChartAxis(params.xAxis) : null;
53
57
  this.aggregates = params.aggregates;
54
58
  this.dynamicVariables = params.dynamicVariables;
59
+ this.showAllowedStep = params.showAllowedStep;
60
+ this.showPlotPerOnGraph = params.showPlotPerOnGraph;
55
61
  this.chartVariables = params.chartVariables.map(cv => new ChartVariable(cv));
56
62
  this.chartPresets = params.chartPresets.map(cp => new ChartPreset(cp));
57
63
  this.chartPresetFilters = params.chartPresetFilters.map(cpf => new ChartPresetFilter(cpf));
@@ -61,6 +67,7 @@ export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
61
67
  this.chartFilters = params.chartFilters.map(cf => new ChartFilter(cf));
62
68
  this.chartModifiers = params.chartModifiers.map(cm => new ChartModifier(cm));
63
69
  this.yAxis = params.yAxis.map(ya => new ChartAxis(ya));
70
+ this.chartAllowedSteps = params.chartAllowedSteps.map(cas => new ChartAllowedStep(cas));
64
71
  this.translations = params.translations.map((translation) => new ChartTranslation(translation));
65
72
  }
66
73
  }
@@ -73,6 +80,8 @@ export interface ChartOrganisationTypeDetailsDTO extends ChartOrganisationTypeIn
73
80
  xAxis: ChartAxisDTO | null;
74
81
  aggregates: boolean | null;
75
82
  dynamicVariables: boolean | null;
83
+ showAllowedStep: boolean | null;
84
+ showPlotPerOnGraph: boolean | null;
76
85
  chartVariables: ChartVariableDTO[];
77
86
  chartPresets: ChartPresetDTO[];
78
87
  chartPresetFilters: ChartPresetFilterDTO[];
@@ -82,6 +91,7 @@ export interface ChartOrganisationTypeDetailsDTO extends ChartOrganisationTypeIn
82
91
  chartFilters: ChartFilterDTO[];
83
92
  chartModifiers: ChartModifierDTO[];
84
93
  yAxis: ChartAxisDTO[];
94
+ chartAllowedSteps: ChartAllowedStepDTO[];
85
95
  translations: ChartTranslationDTO[];
86
96
  }
87
97
 
@@ -106,6 +116,8 @@ export interface UpdateChartOrganisationTypeDTO {
106
116
  xAxis: CreateChartAxisDTO | null;
107
117
  aggregates: boolean | null;
108
118
  dynamicVariables: boolean | null;
119
+ showAllowedStep: boolean | null;
120
+ showPlotPerOnGraph: boolean | null;
109
121
  chartVariables: CreateChartVariableDTO[];
110
122
  chartPresets: CreateChartPresetDTO[];
111
123
  chartPresetFilters: CreateChartPresetFilterDTO[];
@@ -115,5 +127,6 @@ export interface UpdateChartOrganisationTypeDTO {
115
127
  chartFilters: CreateChartFilterDTO[];
116
128
  chartModifiers: CreateChartModifierDTO[];
117
129
  yAxis: CreateChartAxisDTO[];
130
+ chartAllowedSteps: CreateChartAllowedStepDTO[];
118
131
  translations: ChartTranslationDTO[];
119
132
  }
@@ -11,11 +11,13 @@ export class ChartOrganisationTypeInfos {
11
11
  organisationTypeLabel: string;
12
12
  chartCategoryId: string | null;
13
13
  chartCategoryLabel: string | null;
14
+ chartCategoryIndex: number | null;
14
15
  scope: ApplicationScope;
15
16
  label: string;
16
17
  title: string;
17
18
  code: string;
18
19
  icon: string;
20
+ draft: boolean;
19
21
  tags: string[];
20
22
  multiple: boolean;
21
23
  chartType: ChartType;
@@ -29,11 +31,13 @@ export class ChartOrganisationTypeInfos {
29
31
  this.organisationTypeLabel = params.organisationTypeLabel;
30
32
  this.chartCategoryId = params.chartCategoryId;
31
33
  this.chartCategoryLabel = params.chartCategoryLabel;
34
+ this.chartCategoryIndex = params.chartCategoryIndex;
32
35
  this.scope = params.scope;
33
36
  this.label = params.label;
34
37
  this.title = params.title;
35
38
  this.code = params.code;
36
39
  this.icon = params.icon;
40
+ this.draft = params.draft;
37
41
  this.tags = params.tags.slice();
38
42
  this.multiple = params.multiple;
39
43
  this.chartType = params.chartType;
@@ -48,11 +52,13 @@ export interface ChartOrganisationTypeInfosDTO {
48
52
  organisationTypeLabel: string;
49
53
  chartCategoryId: string | null;
50
54
  chartCategoryLabel: string | null;
55
+ chartCategoryIndex: number | null;
51
56
  scope: ApplicationScope;
52
57
  label: string;
53
58
  title: string;
54
59
  code: string;
55
60
  icon: string;
61
+ draft: boolean;
56
62
  imageId: string | null;
57
63
  tags: string[];
58
64
  multiple: boolean;
@@ -62,7 +68,10 @@ export interface ChartOrganisationTypeInfosDTO {
62
68
 
63
69
  export interface ChartOrganisationTypeFilters {
64
70
  modelsIds?: string[] | null;
65
- plotPer?: PlotPer | null;
71
+ plotPers?: PlotPer[] | null;
66
72
  search?: string | null;
73
+ draft?: boolean | null;
67
74
  deprecatedChartId?: string | null;
75
+ deviceOrganisationsIds?: string[] | null
76
+ dataDefinitionsIds?: string[] | null;
68
77
  }
@@ -13,14 +13,15 @@ import { ChartAxis } from "../charts/chartAxis";
13
13
  import type { ChartPlotDTO, CreateChartPlotDTO } from "../charts/chartPlot";
14
14
  import { ChartPlot } from "../charts/chartPlot";
15
15
  import { ChartFilter } from "../charts/chartFilter";
16
- import type { ChartFilterDTO,CreateChartFilterDTO } from "../charts/chartFilter";
16
+ import type { ChartFilterDTO, CreateChartFilterDTO } from "../charts/chartFilter";
17
17
  import { ChartModifier } from "../charts/chartModifier";
18
- import type { ChartModifierDTO,CreateChartModifierDTO } from "../charts/chartModifier";
18
+ import type { ChartModifierDTO, CreateChartModifierDTO } from "../charts/chartModifier";
19
19
  import { ChartOperand } from "../charts/chartOperand";
20
- import type { ChartOperandDTO,CreateChartOperandDTO } from "../charts/chartOperand";
20
+ import type { ChartOperandDTO, CreateChartOperandDTO } from "../charts/chartOperand";
21
21
  import { ChartSerie } from "../charts/chartSerie";
22
- import type { ChartSerieDTO,CreateChartSerieDTO } from "../charts/chartSerie";
22
+ import type { ChartSerieDTO, CreateChartSerieDTO } from "../charts/chartSerie";
23
23
  import type { ColorSets } from "@dative-gpi/foundation-shared-domain/enums";
24
+ import { ChartAllowedStep, type ChartAllowedStepDTO, type CreateChartAllowedStepDTO } from "../charts/chartAllowedStep";
24
25
 
25
26
  export class ChartOrganisationDetails extends ChartOrganisationInfos {
26
27
  labelDefault: string;
@@ -30,6 +31,8 @@ export class ChartOrganisationDetails extends ChartOrganisationInfos {
30
31
  xAxis: ChartAxis | null;
31
32
  aggregates: boolean | null;
32
33
  dynamicVariables: boolean | null;
34
+ showAllowedStep: boolean | null;
35
+ showPlotPerOnGraph: boolean | null;
33
36
  chartVariables: ChartVariable[];
34
37
  chartPresets: ChartPreset[];
35
38
  chartPresetFilters: ChartPresetFilter[];
@@ -39,6 +42,7 @@ export class ChartOrganisationDetails extends ChartOrganisationInfos {
39
42
  chartModifiers: ChartModifier[];
40
43
  chartFilters: ChartFilter[];
41
44
  yAxis: ChartAxis[];
45
+ chartAllowedSteps: ChartAllowedStep[];
42
46
  translations: ChartTranslation[];
43
47
 
44
48
  constructor(params: ChartOrganisationDetailsDTO) {
@@ -49,9 +53,11 @@ export class ChartOrganisationDetails extends ChartOrganisationInfos {
49
53
  this.colorSet = params.colorSet as ColorSets;
50
54
  this.colorSeed = params.colorSeed;
51
55
  this.xAxis = params.xAxis ?
52
- new ChartAxis(params.xAxis) : null;
56
+ new ChartAxis(params.xAxis) : null;
53
57
  this.aggregates = params.aggregates;
54
58
  this.dynamicVariables = params.dynamicVariables;
59
+ this.showAllowedStep = params.showAllowedStep;
60
+ this.showPlotPerOnGraph = params.showPlotPerOnGraph;
55
61
  this.chartVariables = params.chartVariables.map(cv => new ChartVariable(cv));
56
62
  this.chartPresets = params.chartPresets.map(cp => new ChartPreset(cp));
57
63
  this.chartPresetFilters = params.chartPresetFilters.map(cpf => new ChartPresetFilter(cpf));
@@ -61,6 +67,7 @@ export class ChartOrganisationDetails extends ChartOrganisationInfos {
61
67
  this.chartModifiers = params.chartModifiers.map(cm => new ChartModifier(cm));
62
68
  this.chartFilters = params.chartFilters.map(cf => new ChartFilter(cf));
63
69
  this.yAxis = params.yAxis.map(ya => new ChartAxis(ya));
70
+ this.chartAllowedSteps = params.chartAllowedSteps.map(cas => new ChartAllowedStep(cas));
64
71
  this.translations = params.translations.map(t => new ChartTranslation(t));
65
72
  }
66
73
  }
@@ -73,6 +80,8 @@ export interface ChartOrganisationDetailsDTO extends ChartOrganisationInfosDTO {
73
80
  xAxis: ChartAxisDTO | null;
74
81
  aggregates: boolean | null;
75
82
  dynamicVariables: boolean | null;
83
+ showAllowedStep: boolean | null;
84
+ showPlotPerOnGraph: boolean | null;
76
85
  chartVariables: ChartVariableDTO[];
77
86
  chartPresets: ChartPresetDTO[];
78
87
  chartPresetFilters: ChartPresetFilterDTO[];
@@ -81,7 +90,8 @@ export interface ChartOrganisationDetailsDTO extends ChartOrganisationInfosDTO {
81
90
  chartOperands: ChartOperandDTO[];
82
91
  chartModifiers: ChartModifierDTO[];
83
92
  chartFilters: ChartFilterDTO[];
84
- yAxis: ChartAxisDTO[]
93
+ yAxis: ChartAxisDTO[];
94
+ chartAllowedSteps: ChartAllowedStepDTO[];
85
95
  translations: ChartTranslationDTO[];
86
96
  }
87
97
 
@@ -113,6 +123,8 @@ export interface UpdateChartOrganisationDTO {
113
123
  xAxis: CreateChartAxisDTO | null;
114
124
  aggregates: boolean | null;
115
125
  dynamicVariables: boolean | null;
126
+ showAllowedStep: boolean | null;
127
+ showPlotPerOnGraph: boolean | null;
116
128
  chartVariables: CreateChartVariableDTO[];
117
129
  chartPresets: CreateChartPresetDTO[];
118
130
  chartPresetFilters: CreateChartPresetFilterDTO[];
@@ -121,6 +133,7 @@ export interface UpdateChartOrganisationDTO {
121
133
  chartOperands: CreateChartOperandDTO[];
122
134
  chartModifiers: CreateChartModifierDTO[];
123
135
  chartFilters: CreateChartFilterDTO[];
124
- yAxis: ChartAxisDTO[];
136
+ yAxis: CreateChartAxisDTO[];
137
+ chartAllowedSteps: CreateChartAllowedStepDTO[];
125
138
  translations: ChartTranslationDTO[];
126
139
  }
@@ -10,11 +10,13 @@ export class ChartOrganisationInfos {
10
10
  organisationId: string;
11
11
  chartCategoryId: string | null;
12
12
  chartCategoryLabel: string | null;
13
+ chartCategoryIndex: number | null;
13
14
  scope: ApplicationScope;
14
15
  label: string;
15
16
  title: string;
16
17
  code: string;
17
18
  icon: string;
19
+ draft: boolean;
18
20
  tags: string[];
19
21
  multiple: boolean;
20
22
  chartType: ChartType;
@@ -27,11 +29,13 @@ export class ChartOrganisationInfos {
27
29
  this.organisationId = params.organisationId;
28
30
  this.chartCategoryId = params.chartCategoryId;
29
31
  this.chartCategoryLabel = params.chartCategoryLabel;
32
+ this.chartCategoryIndex = params.chartCategoryIndex;
30
33
  this.scope = params.scope;
31
34
  this.label = params.label;
32
35
  this.title = params.title;
33
36
  this.code = params.code;
34
37
  this.icon = params.icon;
38
+ this.draft = params.draft;
35
39
  this.tags = params.tags.slice();
36
40
  this.multiple = params.multiple;
37
41
  this.chartType = params.chartType;
@@ -46,11 +50,13 @@ export interface ChartOrganisationInfosDTO {
46
50
  organisationId: string;
47
51
  chartCategoryId: string | null;
48
52
  chartCategoryLabel: string | null;
53
+ chartCategoryIndex: number | null;
49
54
  scope: ApplicationScope;
50
55
  label: string;
51
56
  title: string;
52
57
  code: string;
53
58
  icon: string;
59
+ draft: boolean;
54
60
  tags: string[];
55
61
  multiple: boolean;
56
62
  chartType: ChartType;
@@ -59,7 +65,10 @@ export interface ChartOrganisationInfosDTO {
59
65
 
60
66
  export interface ChartOrganisationFilters {
61
67
  modelsIds?: string[] | null;
62
- plotPer?: PlotPer | null;
68
+ plotPers?: PlotPer[] | null;
63
69
  search?: string | null;
70
+ draft?: boolean | null;
64
71
  deprecatedChartId?: string | null;
72
+ deviceOrganisationsIds?: string[] | null;
73
+ dataDefinitionsIds?: string[] | null;
65
74
  }
@@ -0,0 +1,31 @@
1
+ import { ChartAllowedStepTranslation, type ChartAllowedStepTranslationDTO, type CreateChartAllowedStepTranslationDTO } from "./chartAllowedStepTranslation";
2
+
3
+ export class ChartAllowedStep {
4
+ id: string;
5
+ value: string;
6
+ labelDefault: string;
7
+ label: string;
8
+ translations: ChartAllowedStepTranslation[];
9
+
10
+ constructor(params: ChartAllowedStepDTO) {
11
+ this.id = params.id;
12
+ this.labelDefault = params.labelDefault;
13
+ this.value = params.value;
14
+ this.label = params.label;
15
+ this.translations = params.translations.map(t => new ChartAllowedStepTranslation(t));
16
+ }
17
+ }
18
+
19
+ export interface ChartAllowedStepDTO {
20
+ id: string;
21
+ value: string;
22
+ labelDefault: string;
23
+ label: string;
24
+ translations: ChartAllowedStepTranslationDTO[];
25
+ }
26
+
27
+ export interface CreateChartAllowedStepDTO {
28
+ value: string;
29
+ labelDefault: string;
30
+ translations: CreateChartAllowedStepTranslationDTO[];
31
+ }
@@ -0,0 +1,19 @@
1
+ export class ChartAllowedStepTranslation {
2
+ languageCode: string;
3
+ label: string;
4
+
5
+ constructor(params: ChartAllowedStepTranslationDTO) {
6
+ this.languageCode = params.languageCode;
7
+ this.label = params.label;
8
+ }
9
+ }
10
+
11
+ export interface ChartAllowedStepTranslationDTO {
12
+ languageCode: string;
13
+ label: string;
14
+ }
15
+
16
+ export interface CreateChartAllowedStepTranslationDTO {
17
+ languageCode: string;
18
+ label: string;
19
+ }
@@ -16,8 +16,10 @@ import { ChartOperand } from "./chartOperand";
16
16
  import type { ChartOperandDTO } from "./chartOperand";
17
17
  import { ChartModifier } from "./chartModifier";
18
18
  import type { ChartModifierDTO } from "./chartModifier";
19
- import { ChartFilter} from "./chartFilter";
19
+ import { ChartFilter } from "./chartFilter";
20
20
  import type { ChartFilterDTO } from "./chartFilter";
21
+ import { ChartAllowedStep } from "./chartAllowedStep";
22
+ import type { ChartAllowedStepDTO } from "./chartAllowedStep";
21
23
 
22
24
  import type { ColorSets } from "@dative-gpi/foundation-shared-domain/enums";
23
25
 
@@ -27,6 +29,8 @@ export class ChartDetails extends ChartInfos {
27
29
  xAxis: ChartAxis | null;
28
30
  aggregates: boolean | null;
29
31
  dynamicVariables: boolean | null;
32
+ showAllowedStep: boolean | null;
33
+ showPlotPerOnGraph: boolean | null;
30
34
  chartVariables: ChartVariable[];
31
35
  chartSeries: ChartSerie[];
32
36
  chartOperands: ChartOperand[];
@@ -36,6 +40,7 @@ export class ChartDetails extends ChartInfos {
36
40
  chartPresets: ChartPreset[];
37
41
  chartPresetFilters: ChartPresetFilter[];
38
42
  chartPlots: ChartPlot[];
43
+ chartAllowedSteps: ChartAllowedStep[];
39
44
 
40
45
  constructor(params: ChartDetailsDTO) {
41
46
  super(params);
@@ -46,6 +51,8 @@ export class ChartDetails extends ChartInfos {
46
51
  new ChartAxis(params.xAxis) : null;
47
52
  this.aggregates = params.aggregates;
48
53
  this.dynamicVariables = params.dynamicVariables;
54
+ this.showAllowedStep = params.showAllowedStep;
55
+ this.showPlotPerOnGraph = params.showPlotPerOnGraph;
49
56
  this.chartVariables = params.chartVariables.map(cv => new ChartVariable(cv));
50
57
  this.chartPresets = params.chartPresets.map(cp => new ChartPreset(cp));
51
58
  this.chartPresetFilters = params.chartPresetFilters.map(cpf => new ChartPresetFilter(cpf));
@@ -55,6 +62,7 @@ export class ChartDetails extends ChartInfos {
55
62
  this.chartModifiers = params.chartModifiers.map(cm => new ChartModifier(cm));
56
63
  this.chartFilters = params.chartFilters.map(cf => new ChartFilter(cf));
57
64
  this.yAxis = params.yAxis.map(ya => new ChartAxis(ya));
65
+ this.chartAllowedSteps = params.chartAllowedSteps.map(cas => new ChartAllowedStep(cas));
58
66
  }
59
67
  }
60
68
 
@@ -64,6 +72,8 @@ export interface ChartDetailsDTO extends ChartInfosDTO {
64
72
  xAxis: ChartAxisDTO | null;
65
73
  aggregates: boolean | null;
66
74
  dynamicVariables: boolean | null;
75
+ showAllowedStep: boolean | null;
76
+ showPlotPerOnGraph: boolean | null;
67
77
  chartVariables: ChartVariableDTO[];
68
78
  chartPresets: ChartPresetDTO[];
69
79
  chartSeries: ChartSerieDTO[];
@@ -73,4 +83,5 @@ export interface ChartDetailsDTO extends ChartInfosDTO {
73
83
  yAxis: ChartAxisDTO[];
74
84
  chartPresetFilters: ChartPresetFilterDTO[];
75
85
  chartPlots: ChartPlotDTO[];
86
+ chartAllowedSteps: ChartAllowedStepDTO[];
76
87
  }
@@ -8,11 +8,13 @@ export class ChartInfos {
8
8
  imageId: string | null;
9
9
  chartCategoryId: string | null;
10
10
  chartCategoryLabel: string | null;
11
+ chartCategoryIndex: number | null;
11
12
  scope: ApplicationScope;
12
13
  label: string;
13
14
  title: string;
14
15
  icon: string;
15
16
  code: string;
17
+ draft: boolean;
16
18
  tags: string[];
17
19
  multiple: boolean;
18
20
  chartType: ChartType;
@@ -23,11 +25,13 @@ export class ChartInfos {
23
25
  this.imageId = params.imageId;
24
26
  this.chartCategoryId = params.chartCategoryId;
25
27
  this.chartCategoryLabel = params.chartCategoryLabel;
28
+ this.chartCategoryIndex = params.chartCategoryIndex;
26
29
  this.scope = params.scope;
27
30
  this.label = params.label;
28
31
  this.title = params.title;
29
32
  this.icon = params.icon;
30
33
  this.code = params.code;
34
+ this.draft = params.draft;
31
35
  this.tags = params.tags.slice();
32
36
  this.multiple = params.multiple;
33
37
  this.chartType = params.chartType;
@@ -40,11 +44,13 @@ export interface ChartInfosDTO {
40
44
  imageId: string | null;
41
45
  chartCategoryId: string | null;
42
46
  chartCategoryLabel: string | null;
47
+ chartCategoryIndex: number | null;
43
48
  scope: ApplicationScope;
44
49
  label: string;
45
50
  title: string;
46
51
  icon: string;
47
52
  code: string;
53
+ draft: boolean;
48
54
  tags: string[];
49
55
  multiple: boolean;
50
56
  chartType: ChartType;