@dative-gpi/foundation-core-domain 0.0.159 → 0.0.160
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/dashboardOrganisationTypes/dashboardOrganisationTypeDetails.ts +2 -0
- package/models/dashboardShallowVariables/dashboardShallowVariableDetails.ts +2 -2
- package/models/dashboardShallowVariables/dashboardShallowVariableInfos.ts +4 -4
- package/models/dashboardVariableValues/dashboardVariableValue.ts +28 -0
- package/models/{dashboardVariables → dashboardVariableValues}/dashboardVariableValueTranslation.ts +1 -1
- package/models/dashboardVariableValues/index.ts +2 -0
- package/models/dashboardVariables/dashboardVariableDetails.ts +2 -2
- package/models/dashboardVariables/dashboardVariableInfos.ts +4 -4
- package/models/dashboardVariables/index.ts +1 -2
- package/models/index.ts +1 -0
- package/package.json +2 -2
|
@@ -33,6 +33,8 @@ export class DashboardOrganisationTypeDetails extends DashboardOrganisationTypeI
|
|
|
33
33
|
this.entityPresetCode = params.entityPresetCode;
|
|
34
34
|
this.datePresetCode = params.datePresetCode;
|
|
35
35
|
this.variableCode = params.variableCode;
|
|
36
|
+
this.datePresets = params.datePresets.map(dto => new DashboardDatePresetInfos(dto));
|
|
37
|
+
this.entityPresets = params.entityPresets.map(dto => new DashboardEntityPresetInfos(dto));
|
|
36
38
|
this.variables = params.variables.map(dto => new DashboardVariableInfos(dto));
|
|
37
39
|
this.widgets = params.widgets.map(dto => new WidgetInfos(dto));
|
|
38
40
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateDashboardVariableValueDTO } from "../dashboardVariableValues";
|
|
2
2
|
|
|
3
3
|
export interface CreateDashboardShallowVariableDTO {
|
|
4
4
|
code: string;
|
|
5
5
|
defaultValue: string;
|
|
6
6
|
useOnlyAllowedValues: boolean;
|
|
7
|
-
allowedValues:
|
|
7
|
+
allowedValues: CreateDashboardVariableValueDTO[];
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DashboardVariableValue, DashboardVariableValueDTO } from "../dashboardVariableValues";
|
|
2
2
|
|
|
3
3
|
export class DashboardShallowVariableInfos {
|
|
4
4
|
id: string;
|
|
@@ -6,7 +6,7 @@ export class DashboardShallowVariableInfos {
|
|
|
6
6
|
code: string;
|
|
7
7
|
defaultValue: string;
|
|
8
8
|
useOnlyAllowedValues: boolean;
|
|
9
|
-
allowedValues:
|
|
9
|
+
allowedValues: DashboardVariableValue[];
|
|
10
10
|
|
|
11
11
|
constructor(params: DashboardShallowVariableInfosDTO) {
|
|
12
12
|
this.id = params.id;
|
|
@@ -14,7 +14,7 @@ export class DashboardShallowVariableInfos {
|
|
|
14
14
|
this.code = params.code;
|
|
15
15
|
this.defaultValue = params.defaultValue;
|
|
16
16
|
this.useOnlyAllowedValues = params.useOnlyAllowedValues;
|
|
17
|
-
this.allowedValues =
|
|
17
|
+
this.allowedValues = params.allowedValues.map(dto => new DashboardVariableValue(dto));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
@@ -24,5 +24,5 @@ export interface DashboardShallowVariableInfosDTO {
|
|
|
24
24
|
code: string;
|
|
25
25
|
defaultValue: string;
|
|
26
26
|
useOnlyAllowedValues: boolean;
|
|
27
|
-
allowedValues:
|
|
27
|
+
allowedValues: DashboardVariableValueDTO[];
|
|
28
28
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DashboardVariableValueTranslation, DashboardVariableValueTranslationDTO } from "./dashboardVariableValueTranslation";
|
|
2
|
+
|
|
3
|
+
export class DashboardVariableValue {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
labelDefault: string;
|
|
7
|
+
translations: DashboardVariableValueTranslation[];
|
|
8
|
+
|
|
9
|
+
constructor(params: DashboardVariableValueDTO) {
|
|
10
|
+
this.value = params.value;
|
|
11
|
+
this.label = params.label;
|
|
12
|
+
this.labelDefault = params.labelDefault;
|
|
13
|
+
this.translations = params.translations.map(t => new DashboardVariableValueTranslation(t));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface DashboardVariableValueDTO {
|
|
18
|
+
value: string;
|
|
19
|
+
label: string;
|
|
20
|
+
labelDefault: string;
|
|
21
|
+
translations: DashboardVariableValueTranslationDTO[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface CreateDashboardVariableValueDTO {
|
|
25
|
+
value: string;
|
|
26
|
+
labelDefault: string;
|
|
27
|
+
translations: DashboardVariableValueTranslationDTO[];
|
|
28
|
+
}
|
package/models/{dashboardVariables → dashboardVariableValues}/dashboardVariableValueTranslation.ts
RENAMED
|
@@ -2,7 +2,7 @@ export class DashboardVariableValueTranslation {
|
|
|
2
2
|
languageCode: string;
|
|
3
3
|
label: string;
|
|
4
4
|
|
|
5
|
-
constructor(params: DashboardVariableValueTranslationDTO) {
|
|
5
|
+
constructor (params: DashboardVariableValueTranslationDTO) {
|
|
6
6
|
this.languageCode = params.languageCode;
|
|
7
7
|
this.label = params.label;
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DashboardVariableType } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
|
-
import { DashboardVariableValueTranslationDTO } from "./dashboardVariableValueTranslation";
|
|
4
3
|
import { DashboardVariableTranslationDTO } from "./dashboardVariableTranslation";
|
|
4
|
+
import { CreateDashboardVariableValueDTO } from "../dashboardVariableValues";
|
|
5
5
|
|
|
6
6
|
export interface CreateDashboardVariableDTO {
|
|
7
7
|
variableType: DashboardVariableType;
|
|
@@ -9,6 +9,6 @@ export interface CreateDashboardVariableDTO {
|
|
|
9
9
|
code: string;
|
|
10
10
|
defaultValue: string;
|
|
11
11
|
useOnlyAllowedValues: boolean;
|
|
12
|
-
allowedValues:
|
|
12
|
+
allowedValues: CreateDashboardVariableValueDTO[];
|
|
13
13
|
translations: DashboardVariableTranslationDTO[];
|
|
14
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DashboardVariableType } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
2
|
|
|
3
|
-
import { DashboardVariableValueTranslation, DashboardVariableValueTranslationDTO } from "./dashboardVariableValueTranslation";
|
|
4
3
|
import { DashboardVariableTranslation, DashboardVariableTranslationDTO } from "./dashboardVariableTranslation";
|
|
4
|
+
import { DashboardVariableValue, DashboardVariableValueDTO } from "../dashboardVariableValues";
|
|
5
5
|
|
|
6
6
|
export class DashboardVariableInfos {
|
|
7
7
|
variableType: DashboardVariableType;
|
|
@@ -10,7 +10,7 @@ export class DashboardVariableInfos {
|
|
|
10
10
|
code: string;
|
|
11
11
|
defaultValue: string;
|
|
12
12
|
useOnlyAllowedValues: boolean;
|
|
13
|
-
allowedValues:
|
|
13
|
+
allowedValues: DashboardVariableValue[];
|
|
14
14
|
translations: DashboardVariableTranslation[];
|
|
15
15
|
|
|
16
16
|
constructor(params: DashboardVariableInfosDTO) {
|
|
@@ -20,7 +20,7 @@ export class DashboardVariableInfos {
|
|
|
20
20
|
this.code = params.code;
|
|
21
21
|
this.defaultValue = params.defaultValue;
|
|
22
22
|
this.useOnlyAllowedValues = params.useOnlyAllowedValues;
|
|
23
|
-
this.allowedValues =
|
|
23
|
+
this.allowedValues = params.allowedValues.map(dto => new DashboardVariableValue(dto));
|
|
24
24
|
this.translations = params.translations.map(t => new DashboardVariableTranslation(t));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
@@ -32,6 +32,6 @@ export interface DashboardVariableInfosDTO {
|
|
|
32
32
|
code: string;
|
|
33
33
|
defaultValue: string;
|
|
34
34
|
useOnlyAllowedValues: boolean;
|
|
35
|
-
allowedValues:
|
|
35
|
+
allowedValues: DashboardVariableValueDTO[];
|
|
36
36
|
translations: DashboardVariableTranslationDTO[];
|
|
37
37
|
}
|
package/models/index.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from "./dashboardShallowEntityPresets"; // No service
|
|
|
20
20
|
export * from "./dashboardShallows";
|
|
21
21
|
export * from "./dashboardShallowVariables"; // No service
|
|
22
22
|
export * from "./dashboardVariables"; // No service
|
|
23
|
+
export * from "./dashboardVariableValues"; // No service
|
|
23
24
|
export * from "./dataCategories";
|
|
24
25
|
export * from "./dataDefinitions";
|
|
25
26
|
export * from "./dataDefinitionMappings"; // No service
|
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.160",
|
|
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": "fb4e1055e6dcf28c07dd57ab94cccc303e98ebbb"
|
|
13
13
|
}
|