@dative-gpi/foundation-core-domain 0.0.136 → 0.0.138
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/charts/chartVariable.ts +4 -0
- package/models/dashboardVariables/dashboardVariableDetails.ts +1 -0
- package/models/dashboardVariables/dashboardVariableInfos.ts +3 -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";
|
|
@@ -5,6 +5,7 @@ export class ChartVariable {
|
|
|
5
5
|
chartId: string;
|
|
6
6
|
label: string;
|
|
7
7
|
labelDefault: string;
|
|
8
|
+
code: string;
|
|
8
9
|
valueDefault: number;
|
|
9
10
|
translations: ChartVariableTranslation[];
|
|
10
11
|
|
|
@@ -13,6 +14,7 @@ export class ChartVariable {
|
|
|
13
14
|
this.chartId = params.chartId;
|
|
14
15
|
this.label = params.label;
|
|
15
16
|
this.labelDefault = params.labelDefault;
|
|
17
|
+
this.code = params.code;
|
|
16
18
|
this.valueDefault = params.valueDefault;
|
|
17
19
|
this.translations = params.translations.map(t => new ChartVariableTranslation(t));
|
|
18
20
|
}
|
|
@@ -23,6 +25,7 @@ export interface ChartVariableDTO {
|
|
|
23
25
|
chartId: string;
|
|
24
26
|
label: string;
|
|
25
27
|
labelDefault: string;
|
|
28
|
+
code: string;
|
|
26
29
|
valueDefault: number;
|
|
27
30
|
translations: ChartVariableTranslationDTO[];
|
|
28
31
|
}
|
|
@@ -30,6 +33,7 @@ export interface ChartVariableDTO {
|
|
|
30
33
|
export interface CreateChartVariableDTO {
|
|
31
34
|
chartId: string;
|
|
32
35
|
labelDefault: string;
|
|
36
|
+
code: string;
|
|
33
37
|
valueDefault: number;
|
|
34
38
|
translations: ChartVariableTranslationDTO[];
|
|
35
39
|
}
|
|
@@ -16,6 +16,7 @@ export interface DashboardVariableDetailsDTO extends DashboardVariableInfosDTO {
|
|
|
16
16
|
export interface CreateDashboardVariableDTO {
|
|
17
17
|
variableType: DashboardVariableType;
|
|
18
18
|
labelDefault: string;
|
|
19
|
+
code: string;
|
|
19
20
|
defaultValue: string;
|
|
20
21
|
useOnlyAllowedValues: boolean;
|
|
21
22
|
allowedValues: { [key: string]: DashboardVariableValueTranslationDTO[] };
|
|
@@ -9,6 +9,7 @@ export class DashboardVariableInfos {
|
|
|
9
9
|
variableType: DashboardVariableType;
|
|
10
10
|
label: string;
|
|
11
11
|
labelDefault: string;
|
|
12
|
+
code: string;
|
|
12
13
|
defaultValue: string;
|
|
13
14
|
useOnlyAllowedValues: boolean;
|
|
14
15
|
allowedValues: { [key: string]: DashboardVariableValueTranslation[] };
|
|
@@ -20,6 +21,7 @@ export class DashboardVariableInfos {
|
|
|
20
21
|
this.variableType = params.variableType;
|
|
21
22
|
this.label = params.label;
|
|
22
23
|
this.labelDefault = params.labelDefault;
|
|
24
|
+
this.code = params.code;
|
|
23
25
|
this.defaultValue = params.defaultValue;
|
|
24
26
|
this.useOnlyAllowedValues = params.useOnlyAllowedValues;
|
|
25
27
|
this.allowedValues = { ...params.allowedValues };
|
|
@@ -33,6 +35,7 @@ export interface DashboardVariableInfosDTO {
|
|
|
33
35
|
variableType: DashboardVariableType;
|
|
34
36
|
label: string;
|
|
35
37
|
labelDefault: string;
|
|
38
|
+
code: string;
|
|
36
39
|
defaultValue: string;
|
|
37
40
|
useOnlyAllowedValues: boolean;
|
|
38
41
|
allowedValues: { [key: string]: DashboardVariableValueTranslationDTO[] };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-domain",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.138",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"main": "index.ts",
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
|
-
"gitHead": "
|
|
12
|
+
"gitHead": "04cbc1ca857639ef5b10bb164aaf1df156c3e5d5"
|
|
13
13
|
}
|