@dative-gpi/foundation-core-domain 0.1.120 → 1.0.1
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/actions/actionDetails.ts +2 -1
- package/models/actions/actionInfos.ts +5 -1
- package/models/alerts/alertDataDefinition.ts +18 -15
- package/models/alerts/alertDetails.ts +7 -7
- package/models/alerts/alertInfos.ts +5 -5
- package/models/alerts/alertState.ts +22 -22
- package/models/articles/articleDetails.ts +2 -1
- package/models/chartCategories/chartCategoryDetails.ts +33 -0
- package/models/chartCategories/chartCategoryInfos.ts +21 -0
- package/models/chartCategories/chartCategoryTranslation.ts +14 -0
- package/models/chartCategories/index.ts +3 -0
- package/models/chartOrganisationTypes/chartOrganisationTypeDetails.ts +106 -49
- package/models/chartOrganisationTypes/chartOrganisationTypeInfos.ts +57 -56
- package/models/chartOrganisations/chartOrganisationDetails.ts +113 -53
- package/models/chartOrganisations/chartOrganisationInfos.ts +54 -53
- package/models/charts/chartAxis.ts +50 -47
- package/models/charts/chartDetails.ts +51 -29
- package/models/charts/chartFilter.ts +32 -2
- package/models/charts/chartFilterTranslation.ts +14 -0
- package/models/charts/chartFilterValue.ts +4 -4
- package/models/charts/chartInfos.ts +45 -45
- package/models/charts/chartModelLabel.ts +8 -8
- package/models/charts/chartModifier.ts +25 -15
- package/models/charts/chartOperand.ts +31 -23
- package/models/charts/chartPlot.ts +11 -10
- package/models/charts/chartPreset.ts +40 -0
- package/models/charts/chartPresetFilter.ts +32 -0
- package/models/charts/chartPresetTranslation.ts +14 -0
- package/models/charts/chartSerie.ts +158 -152
- package/models/charts/chartSerieTranslation.ts +18 -18
- package/models/charts/chartTimeRange.ts +37 -36
- package/models/charts/chartTimeRangeTranslation.ts +10 -10
- package/models/charts/chartTimeStep.ts +15 -15
- package/models/charts/chartTranslation.ts +11 -17
- package/models/charts/chartValueRange.ts +28 -27
- package/models/charts/chartValueRangeTranslation.ts +10 -10
- package/models/charts/chartVariable.ts +37 -12
- package/models/charts/chartVariableTranslation.ts +14 -0
- package/models/charts/index.ts +6 -1
- package/models/comments/commentDetails.ts +2 -1
- package/models/connectivityAlerts/connectivityAlertDetails.ts +2 -1
- package/models/connectivityAlerts/connectivityAlertInfos.ts +6 -2
- package/models/connectivityScenarios/connectivityScenarioDetails.ts +7 -3
- package/models/connectivityScenarios/connectivityScenarioInfos.ts +10 -4
- package/models/connectivityScenarios/connectivityScenarioUserInfos.ts +26 -0
- package/models/customProperties/customPropertyColor.ts +1 -1
- package/models/customProperties/customPropertyDetails.ts +2 -1
- package/models/customProperties/customPropertyInfos.ts +3 -2
- package/models/customPropertyValues/customPropertyValueDetails.ts +2 -1
- package/models/dashboardDatePresets/dashboardDatePresetDetails.ts +11 -0
- package/models/dashboardDatePresets/dashboardDatePresetInfos.ts +37 -0
- package/models/dashboardDatePresets/dashboardDatePresetTranslation.ts +14 -0
- package/models/dashboardDatePresets/index.ts +3 -0
- package/models/dashboardEntityPresets/dashboardEntityPresetDetails.ts +12 -0
- package/models/dashboardEntityPresets/dashboardEntityPresetInfos.ts +36 -0
- package/models/dashboardEntityPresets/dashboardEntityPresetTranslation.ts +14 -0
- package/models/dashboardEntityPresets/index.ts +3 -0
- package/models/dashboardOrganisationTypes/dashboardOrganisationTypeDetails.ts +62 -57
- package/models/dashboardOrganisationTypes/dashboardOrganisationTypeInfos.ts +28 -25
- package/models/dashboardOrganisations/dashboardOrganisationDetails.ts +74 -64
- package/models/dashboardOrganisations/dashboardOrganisationInfos.ts +4 -1
- package/models/dashboardShallowDatePresets/dashboardShallowDatePresetDetails.ts +9 -0
- package/models/dashboardShallowDatePresets/dashboardShallowDatePresetInfos.ts +25 -0
- package/models/dashboardShallowDatePresets/index.ts +2 -0
- package/models/dashboardShallowEntityPresets/dashboardShallowEntityPresetDetails.ts +9 -0
- package/models/dashboardShallowEntityPresets/dashboardShallowEntityPresetInfos.ts +25 -0
- package/models/dashboardShallowEntityPresets/index.ts +2 -0
- package/models/dashboardShallowVariables/dashboardShallowVariableDetails.ts +8 -0
- package/models/dashboardShallowVariables/dashboardShallowVariableInfos.ts +23 -0
- package/models/dashboardShallowVariables/index.ts +2 -0
- package/models/dashboardShallows/dashboardShallowDetails.ts +82 -80
- package/models/dashboardShallows/dashboardShallowInfos.ts +4 -1
- package/models/dashboardVariableValues/dashboardVariableValue.ts +29 -0
- package/models/dashboardVariableValues/dashboardVariableValueTranslation.ts +14 -0
- package/models/dashboardVariableValues/index.ts +2 -0
- package/models/dashboardVariables/dashboardVariableDetails.ts +15 -0
- package/models/dashboardVariables/dashboardVariableInfos.ts +43 -0
- package/models/dashboardVariables/dashboardVariableTranslation.ts +14 -0
- package/models/dashboardVariables/index.ts +3 -0
- package/models/dashboards/dashboardDetails.ts +34 -37
- package/models/dashboards/dashboardInfos.ts +1 -1
- package/models/dashboards/dashboardTranslation.ts +14 -0
- package/models/dashboards/index.ts +2 -1
- package/models/dataCategories/dataCategoryDetails.ts +2 -1
- package/models/dataDefinitionMappings/dataDefinitionMappingDetails.ts +2 -1
- package/models/dataDefinitions/dataDefinitionDetails.ts +2 -1
- package/models/dataDefinitions/dataDefinitionInfos.ts +3 -2
- package/models/deviceConnectivities/deviceConnectivityDetails.ts +2 -1
- package/models/deviceConnectivities/deviceConnectivityInfos.ts +1 -1
- package/models/deviceOrganisations/deviceOrganisationAlert.ts +1 -1
- package/models/deviceOrganisations/deviceOrganisationDetails.ts +6 -3
- package/models/deviceOrganisations/deviceOrganisationInfos.ts +8 -4
- package/models/deviceStatuses/deviceStatusDetails.ts +2 -1
- package/models/enums/applicationEnums.ts +7 -7
- package/models/enums/chartEnums.ts +77 -71
- package/models/enums/index.ts +1 -1
- package/models/enums/notificationEnums.ts +6 -0
- package/models/enums/userEnums.ts +8 -8
- package/models/extensionApplications/extensionApplicationDetails.ts +2 -1
- package/models/folders/folderDetails.ts +4 -1
- package/models/folders/folderInfos.ts +2 -1
- package/models/groups/groupDetails.ts +18 -17
- package/models/groups/groupInfos.ts +2 -1
- package/models/index.ts +19 -8
- package/models/locations/index.ts +0 -1
- package/models/locations/locationDetails.ts +24 -20
- package/models/locations/locationInfos.ts +39 -36
- package/models/manufacturers/manufacturerDetails.ts +2 -1
- package/models/modelStatuses/modelStatusDetails.ts +2 -1
- package/models/models/modelDetails.ts +2 -1
- package/models/notifications/index.ts +2 -0
- package/models/notifications/notificationDetails.ts +10 -0
- package/models/notifications/notificationInfos.ts +43 -0
- package/models/organisations/organisationDetails.ts +1 -1
- package/models/permissionCategories/permissionCategoryDetails.ts +2 -1
- package/models/roleOrganisationTypes/roleOrganisationTypeDetails.ts +2 -1
- package/models/roleOrganisationTypes/roleOrganisationTypeInfos.ts +4 -3
- package/models/roleOrganisations/roleOrganisationDetails.ts +3 -2
- package/models/roleOrganisations/roleOrganisationInfos.ts +4 -3
- package/models/routes/applicationRoute.ts +1 -1
- package/models/routes/routeDetails.ts +2 -1
- package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationDetails.ts +21 -24
- package/models/scenarioDeviceOrganisations/scenarioDeviceOrganisationInfos.ts +43 -52
- package/models/scenarioOrganisationTypes/scenarioOrganisationTypeDetails.ts +109 -133
- package/models/scenarioOrganisationTypes/scenarioOrganisationTypeInfos.ts +53 -53
- package/models/scenarioOrganisations/scenarioOrganisationDetails.ts +133 -166
- package/models/scenarioOrganisations/scenarioOrganisationInfos.ts +50 -50
- package/models/scenarios/index.ts +1 -0
- package/models/scenarios/scenarioTranslation.ts +23 -0
- package/models/serviceAccountOrganisationAuthTokens/index.ts +2 -0
- package/models/serviceAccountOrganisationAuthTokens/serviceAccountOrganisationAuthTokenDetails.ts +21 -0
- package/models/serviceAccountOrganisationAuthTokens/serviceAccountOrganisationAuthTokenInfos.ts +30 -0
- package/models/serviceAccountOrganisations/index.ts +2 -0
- package/models/serviceAccountOrganisations/serviceAccountOrganisationDetails.ts +49 -0
- package/models/{serviceAccounts/serviceAccountInfos.ts → serviceAccountOrganisations/serviceAccountOrganisationInfos.ts} +6 -6
- package/models/shared/timeRange.ts +1 -1
- package/models/userOrganisationColumns/userOrganisationColumnDetails.ts +2 -1
- package/models/userOrganisationTables/userOrganisationTableDetails.ts +3 -2
- package/models/userOrganisationTables/userOrganisationTableInfos.ts +4 -3
- package/models/userOrganisations/userOrganisationDetails.ts +5 -4
- package/models/userOrganisations/userOrganisationInfos.ts +5 -2
- package/models/widgetTemplates/widgetTemplateDetails.ts +2 -1
- package/models/widgetTemplates/widgetTemplateInfos.ts +5 -0
- package/models/widgets/widgetDetails.ts +3 -1
- package/package.json +2 -2
- package/models/authTokens/authTokenDetails.ts +0 -20
- package/models/authTokens/authTokenInfos.ts +0 -29
- package/models/authTokens/index.ts +0 -2
- package/models/enums/dashboardEnums.ts +0 -25
- package/models/locations/address.ts +0 -29
- package/models/serviceAccounts/index.ts +0 -2
- package/models/serviceAccounts/serviceAccountDetails.ts +0 -47
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionType } from "../enums/actionEnums";
|
|
1
|
+
import type { ActionType } from "../enums/actionEnums";
|
|
2
2
|
|
|
3
3
|
export class ActionInfos {
|
|
4
4
|
extensionId: string | null;
|
|
@@ -25,4 +25,8 @@ export interface ActionInfosDTO {
|
|
|
25
25
|
uri: string;
|
|
26
26
|
label: string;
|
|
27
27
|
icon: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface ActionFilters {
|
|
31
|
+
path: string;
|
|
28
32
|
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
export class AlertDataDefinition {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
dataDefinitionId: string;
|
|
3
|
+
value: string;
|
|
4
|
+
unit: string;
|
|
5
|
+
label: string;
|
|
6
|
+
|
|
7
|
+
constructor(params: AlertDataDefinitionDTO) {
|
|
8
|
+
this.dataDefinitionId = params.dataDefinitionId;
|
|
9
|
+
this.value = params.value;
|
|
10
|
+
this.unit = params.unit;
|
|
11
|
+
this.label = params.label;
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface AlertDataDefinitionDTO {
|
|
16
|
+
dataDefinitionId: string;
|
|
17
|
+
value: string;
|
|
18
|
+
unit: string;
|
|
19
|
+
label: string;
|
|
20
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { AlertInfos, AlertInfosDTO } from "./alertInfos";
|
|
1
|
+
import { AlertInfos, type AlertInfosDTO } from "./alertInfos";
|
|
2
2
|
|
|
3
3
|
export class AlertDetails extends AlertInfos {
|
|
4
|
-
|
|
4
|
+
description: string;
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
constructor(params: AlertDetailsDTO) {
|
|
7
|
+
super(params);
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
this.description = params.description;
|
|
10
|
+
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export interface AlertDetailsDTO extends AlertInfosDTO {
|
|
14
|
-
|
|
14
|
+
description: string;
|
|
15
15
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { AlertStatus, Criticity } from "@dative-gpi/foundation-shared-domain/models";
|
|
1
|
+
import { type AlertStatus, type Criticity } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
import { utcToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
|
|
3
3
|
|
|
4
|
-
import { AlertDataDefinition, AlertDataDefinitionDTO } from "./alertDataDefinition";
|
|
5
|
-
import { AlertState, AlertStateDTO } from "./alertState";
|
|
6
|
-
import { SelectedEntities } from "../enums/sharedEnums";
|
|
7
|
-
import { DateVariable } from "../shared/dateVariable";
|
|
4
|
+
import { AlertDataDefinition, type AlertDataDefinitionDTO } from "./alertDataDefinition";
|
|
5
|
+
import { AlertState, type AlertStateDTO } from "./alertState";
|
|
6
|
+
import { type SelectedEntities } from "../enums/sharedEnums";
|
|
7
|
+
import { type DateVariable } from "../shared/dateVariable";
|
|
8
8
|
|
|
9
9
|
export class AlertInfos {
|
|
10
10
|
id: string;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { AlertStatus } from "@dative-gpi/foundation-shared-domain/models";
|
|
1
|
+
import { type AlertStatus } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
import { utcToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
|
|
3
3
|
|
|
4
|
-
import { AlertDataDefinition, AlertDataDefinitionDTO } from "./alertDataDefinition";
|
|
4
|
+
import { AlertDataDefinition, type AlertDataDefinitionDTO } from "./alertDataDefinition";
|
|
5
5
|
|
|
6
6
|
export class AlertState {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
id: string;
|
|
8
|
+
status: AlertStatus;
|
|
9
|
+
sourceTimestamp: number;
|
|
10
|
+
enqueuedTimestamp: number;
|
|
11
|
+
processedTimestamp: number;
|
|
12
|
+
metadataValues?: AlertDataDefinition[];
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
constructor(params: AlertStateDTO) {
|
|
15
|
+
this.id = params.id;
|
|
16
|
+
this.status = params.status;
|
|
17
|
+
this.sourceTimestamp = utcToEpoch(params.sourceTimestamp);
|
|
18
|
+
this.enqueuedTimestamp = utcToEpoch(params.enqueuedTimestamp);
|
|
19
|
+
this.processedTimestamp = utcToEpoch(params.processedTimestamp);
|
|
20
|
+
this.metadataValues = params.metadataValues?.map(dto => new AlertDataDefinition(dto));
|
|
21
|
+
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export interface AlertStateDTO {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
id: string;
|
|
26
|
+
status: AlertStatus;
|
|
27
|
+
sourceTimestamp: string;
|
|
28
|
+
enqueuedTimestamp: string;
|
|
29
|
+
processedTimestamp: string;
|
|
30
|
+
metadataValues?: AlertDataDefinitionDTO[];
|
|
31
31
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ChartCategoryTranslationDTO } from "./chartCategoryTranslation";
|
|
2
|
+
import { ChartCategoryTranslation } from "./chartCategoryTranslation";
|
|
3
|
+
import type { ChartCategoryInfosDTO } from "./chartCategoryInfos";
|
|
4
|
+
import { ChartCategoryInfos } from "./chartCategoryInfos";
|
|
5
|
+
|
|
6
|
+
export class ChartCategoryDetails extends ChartCategoryInfos {
|
|
7
|
+
labelDefault: string;
|
|
8
|
+
translations: ChartCategoryTranslation[];
|
|
9
|
+
|
|
10
|
+
constructor(params: ChartCategoryDetailsDTO) {
|
|
11
|
+
super(params);
|
|
12
|
+
|
|
13
|
+
this.labelDefault = params.labelDefault;
|
|
14
|
+
this.translations = params.translations.map(t => new ChartCategoryTranslation(t));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ChartCategoryDetailsDTO extends ChartCategoryInfosDTO {
|
|
19
|
+
labelDefault: string;
|
|
20
|
+
translations: ChartCategoryTranslationDTO[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface CreateChartCategoryDTO {
|
|
24
|
+
labelDefault: string;
|
|
25
|
+
code: string;
|
|
26
|
+
translations: ChartCategoryTranslationDTO[];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface UpdateChartCategoryDTO {
|
|
30
|
+
labelDefault: string;
|
|
31
|
+
code: string;
|
|
32
|
+
translations: ChartCategoryTranslationDTO[];
|
|
33
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export class ChartCategoryInfos {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
code: string;
|
|
5
|
+
|
|
6
|
+
constructor(params: ChartCategoryInfosDTO) {
|
|
7
|
+
this.id = params.id;
|
|
8
|
+
this.label = params.label;
|
|
9
|
+
this.code = params.code;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export interface ChartCategoryInfosDTO {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
code: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ChartCategoryFilters {
|
|
20
|
+
search?: string | null;
|
|
21
|
+
}
|
|
@@ -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,62 +1,119 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import type { ChartPresetFilterDTO, CreateChartPresetFilterDTO } from "../charts/chartPresetFilter";
|
|
2
|
+
import { ChartPresetFilter } from "../charts/chartPresetFilter";
|
|
3
|
+
import type { ChartOrganisationTypeInfosDTO } from "./chartOrganisationTypeInfos";
|
|
4
|
+
import { ChartOrganisationTypeInfos } from "./chartOrganisationTypeInfos";
|
|
5
|
+
import type { ChartVariableDTO, CreateChartVariableDTO } from "../charts/chartVariable";
|
|
6
|
+
import { ChartVariable } from "../charts/chartVariable";
|
|
7
|
+
import type { ChartPresetDTO, CreateChartPresetDTO } from "../charts/chartPreset";
|
|
8
|
+
import { ChartPreset } from "../charts/chartPreset";
|
|
9
|
+
import type { ChartTranslationDTO } from "../charts/chartTranslation";
|
|
10
|
+
import { ChartTranslation } from "../charts/chartTranslation";
|
|
11
|
+
import type { ChartAxisDTO, CreateChartAxisDTO } from "../charts/chartAxis";
|
|
12
|
+
import { ChartAxis } from "../charts/chartAxis";
|
|
13
|
+
import type { ChartPlotDTO, CreateChartPlotDTO } from "../charts/chartPlot";
|
|
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";
|
|
23
|
+
import type { ColorSets } from "../enums/chartEnums";
|
|
7
24
|
|
|
8
25
|
export class ChartOrganisationTypeDetails extends ChartOrganisationTypeInfos {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
26
|
+
labelDefault: string;
|
|
27
|
+
titleDefault: string;
|
|
28
|
+
colorSet: ColorSets;
|
|
29
|
+
colorSeed: string;
|
|
30
|
+
xAxis: ChartAxis | null;
|
|
31
|
+
aggregates: boolean | null;
|
|
32
|
+
dynamicVariables: boolean | null;
|
|
33
|
+
chartVariables: ChartVariable[];
|
|
34
|
+
chartPresets: ChartPreset[];
|
|
35
|
+
chartPresetFilters: ChartPresetFilter[];
|
|
36
|
+
chartPlots: ChartPlot[];
|
|
37
|
+
chartSeries: ChartSerie[];
|
|
38
|
+
chartOperands: ChartOperand[];
|
|
39
|
+
chartFilters: ChartFilter[];
|
|
40
|
+
chartModifiers: ChartModifier[];
|
|
41
|
+
yAxis: ChartAxis[];
|
|
42
|
+
translations: ChartTranslation[];
|
|
16
43
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
44
|
+
constructor(params: ChartOrganisationTypeDetailsDTO) {
|
|
45
|
+
super(params);
|
|
46
|
+
|
|
47
|
+
this.labelDefault = params.labelDefault;
|
|
48
|
+
this.titleDefault = params.titleDefault;
|
|
49
|
+
this.colorSet = params.colorSet as ColorSets;
|
|
50
|
+
this.colorSeed = params.colorSeed;
|
|
51
|
+
this.xAxis = params.xAxis ?
|
|
52
|
+
new ChartAxis(params.xAxis) : null;
|
|
53
|
+
this.aggregates = params.aggregates;
|
|
54
|
+
this.dynamicVariables = params.dynamicVariables;
|
|
55
|
+
this.chartVariables = params.chartVariables.map(cv => new ChartVariable(cv));
|
|
56
|
+
this.chartPresets = params.chartPresets.map(cp => new ChartPreset(cp));
|
|
57
|
+
this.chartPresetFilters = params.chartPresetFilters.map(cpf => new ChartPresetFilter(cpf));
|
|
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));
|
|
64
|
+
this.translations = params.translations.map((translation) => new ChartTranslation(translation));
|
|
65
|
+
}
|
|
29
66
|
}
|
|
30
67
|
|
|
31
68
|
export interface ChartOrganisationTypeDetailsDTO extends ChartOrganisationTypeInfosDTO {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
69
|
+
labelDefault: string;
|
|
70
|
+
titleDefault: string;
|
|
71
|
+
colorSet: number;
|
|
72
|
+
colorSeed: string;
|
|
73
|
+
xAxis: ChartAxisDTO | null;
|
|
74
|
+
aggregates: boolean | null;
|
|
75
|
+
dynamicVariables: boolean | null;
|
|
76
|
+
chartVariables: ChartVariableDTO[];
|
|
77
|
+
chartPresets: ChartPresetDTO[];
|
|
78
|
+
chartPresetFilters: ChartPresetFilterDTO[];
|
|
79
|
+
chartPlots: ChartPlotDTO[];
|
|
80
|
+
chartSeries: ChartSerieDTO[];
|
|
81
|
+
chartOperands: ChartOperandDTO[];
|
|
82
|
+
chartFilters: ChartFilterDTO[];
|
|
83
|
+
chartModifiers: ChartModifierDTO[];
|
|
84
|
+
yAxis: ChartAxisDTO[];
|
|
85
|
+
translations: ChartTranslationDTO[];
|
|
39
86
|
}
|
|
40
87
|
|
|
41
88
|
export interface CreateChartOrganisationTypeDTO {
|
|
42
|
-
|
|
43
|
-
|
|
89
|
+
chartOrganisationId: string;
|
|
90
|
+
organisationTypeId: string | null;
|
|
44
91
|
}
|
|
45
92
|
|
|
46
93
|
export interface UpdateChartOrganisationTypeDTO {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
94
|
+
chartCategoryId: string | null;
|
|
95
|
+
imageId: string | null;
|
|
96
|
+
image: string | null;
|
|
97
|
+
labelDefault: string;
|
|
98
|
+
titleDefault: string;
|
|
99
|
+
code: string;
|
|
100
|
+
icon: string;
|
|
101
|
+
tags: string[];
|
|
102
|
+
multiple: boolean;
|
|
103
|
+
chartType: number;
|
|
104
|
+
colorSet: number;
|
|
105
|
+
colorSeed: string;
|
|
106
|
+
xAxis: CreateChartAxisDTO | null;
|
|
107
|
+
aggregates: boolean | null;
|
|
108
|
+
dynamicVariables: boolean | null;
|
|
109
|
+
chartVariables: CreateChartVariableDTO[];
|
|
110
|
+
chartPresets: CreateChartPresetDTO[];
|
|
111
|
+
chartPresetFilters: CreateChartPresetFilterDTO[];
|
|
112
|
+
chartPlots: CreateChartPlotDTO[];
|
|
113
|
+
chartSeries: CreateChartSerieDTO[];
|
|
114
|
+
chartOperands: CreateChartOperandDTO[];
|
|
115
|
+
chartFilters: CreateChartFilterDTO[];
|
|
116
|
+
chartModifiers: CreateChartModifierDTO[];
|
|
117
|
+
yAxis: CreateChartAxisDTO[];
|
|
118
|
+
translations: ChartTranslationDTO[];
|
|
62
119
|
}
|
|
@@ -1,66 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ChartModelLabel
|
|
3
|
-
import { ApplicationScope } from "../enums/applicationEnums";
|
|
4
|
-
import { ChartType } from "../enums/chartEnums";
|
|
1
|
+
import type { ChartModelLabelDTO } from "../charts/chartModelLabel";
|
|
2
|
+
import { ChartModelLabel } from "../charts/chartModelLabel";
|
|
3
|
+
import type { ApplicationScope } from "../enums/applicationEnums";
|
|
4
|
+
import type { ChartType, PlotPer } from "../enums/chartEnums";
|
|
5
5
|
|
|
6
6
|
export class ChartOrganisationTypeInfos {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
+
label: string;
|
|
16
|
+
title: string;
|
|
17
|
+
code: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
tags: string[];
|
|
20
|
+
multiple: boolean;
|
|
21
|
+
chartType: ChartType;
|
|
22
|
+
modelsLabels: ChartModelLabel[];
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
24
|
+
constructor(params: ChartOrganisationTypeInfosDTO) {
|
|
25
|
+
this.id = params.id;
|
|
26
|
+
this.imageId = params.imageId;
|
|
27
|
+
this.chartId = params.chartId;
|
|
28
|
+
this.organisationTypeId = params.organisationTypeId;
|
|
29
|
+
this.organisationTypeLabel = params.organisationTypeLabel;
|
|
30
|
+
this.chartCategoryId = params.chartCategoryId;
|
|
31
|
+
this.chartCategoryLabel = params.chartCategoryLabel;
|
|
32
|
+
this.scope = params.scope;
|
|
33
|
+
this.label = params.label;
|
|
34
|
+
this.title = params.title;
|
|
35
|
+
this.code = params.code;
|
|
36
|
+
this.icon = params.icon;
|
|
37
|
+
this.tags = params.tags.slice();
|
|
38
|
+
this.multiple = params.multiple;
|
|
39
|
+
this.chartType = params.chartType;
|
|
40
|
+
this.modelsLabels = params.modelsLabels.map((modelLabel) => new ChartModelLabel(modelLabel));
|
|
41
|
+
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export interface ChartOrganisationTypeInfosDTO {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
id: string;
|
|
46
|
+
chartId: string;
|
|
47
|
+
organisationTypeId: string;
|
|
48
|
+
organisationTypeLabel: string;
|
|
49
|
+
chartCategoryId: string | null;
|
|
50
|
+
chartCategoryLabel: string | null;
|
|
51
|
+
scope: ApplicationScope;
|
|
52
|
+
label: string;
|
|
53
|
+
title: string;
|
|
54
|
+
code: string;
|
|
55
|
+
icon: string;
|
|
56
|
+
imageId: string | null;
|
|
57
|
+
tags: string[];
|
|
58
|
+
multiple: boolean;
|
|
59
|
+
chartType: ChartType;
|
|
60
|
+
modelsLabels: ChartModelLabelDTO[];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export interface ChartOrganisationTypeFilters {
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
modelsIds?: string[] | null;
|
|
65
|
+
plotPer?: PlotPer | null;
|
|
66
|
+
search?: string | null;
|
|
66
67
|
}
|