@dative-gpi/foundation-core-domain 1.0.142-alert-filter-chart → 1.0.142-role

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.
@@ -11,7 +11,6 @@ export class ChartOrganisationTypeInfos {
11
11
  organisationTypeLabel: string;
12
12
  chartCategoryId: string | null;
13
13
  chartCategoryLabel: string | null;
14
- chartCategoryIndex: number | null;
15
14
  scope: ApplicationScope;
16
15
  label: string;
17
16
  title: string;
@@ -31,7 +30,6 @@ export class ChartOrganisationTypeInfos {
31
30
  this.organisationTypeLabel = params.organisationTypeLabel;
32
31
  this.chartCategoryId = params.chartCategoryId;
33
32
  this.chartCategoryLabel = params.chartCategoryLabel;
34
- this.chartCategoryIndex = params.chartCategoryIndex;
35
33
  this.scope = params.scope;
36
34
  this.label = params.label;
37
35
  this.title = params.title;
@@ -52,7 +50,6 @@ export interface ChartOrganisationTypeInfosDTO {
52
50
  organisationTypeLabel: string;
53
51
  chartCategoryId: string | null;
54
52
  chartCategoryLabel: string | null;
55
- chartCategoryIndex: number | null;
56
53
  scope: ApplicationScope;
57
54
  label: string;
58
55
  title: string;
@@ -10,7 +10,6 @@ export class ChartOrganisationInfos {
10
10
  organisationId: string;
11
11
  chartCategoryId: string | null;
12
12
  chartCategoryLabel: string | null;
13
- chartCategoryIndex: number | null;
14
13
  scope: ApplicationScope;
15
14
  label: string;
16
15
  title: string;
@@ -29,7 +28,6 @@ export class ChartOrganisationInfos {
29
28
  this.organisationId = params.organisationId;
30
29
  this.chartCategoryId = params.chartCategoryId;
31
30
  this.chartCategoryLabel = params.chartCategoryLabel;
32
- this.chartCategoryIndex = params.chartCategoryIndex;
33
31
  this.scope = params.scope;
34
32
  this.label = params.label;
35
33
  this.title = params.title;
@@ -50,7 +48,6 @@ export interface ChartOrganisationInfosDTO {
50
48
  organisationId: string;
51
49
  chartCategoryId: string | null;
52
50
  chartCategoryLabel: string | null;
53
- chartCategoryIndex: number | null;
54
51
  scope: ApplicationScope;
55
52
  label: string;
56
53
  title: string;
@@ -8,7 +8,6 @@ export class ChartInfos {
8
8
  imageId: string | null;
9
9
  chartCategoryId: string | null;
10
10
  chartCategoryLabel: string | null;
11
- chartCategoryIndex: number | null;
12
11
  scope: ApplicationScope;
13
12
  label: string;
14
13
  title: string;
@@ -25,7 +24,6 @@ export class ChartInfos {
25
24
  this.imageId = params.imageId;
26
25
  this.chartCategoryId = params.chartCategoryId;
27
26
  this.chartCategoryLabel = params.chartCategoryLabel;
28
- this.chartCategoryIndex = params.chartCategoryIndex;
29
27
  this.scope = params.scope;
30
28
  this.label = params.label;
31
29
  this.title = params.title;
@@ -44,7 +42,6 @@ export interface ChartInfosDTO {
44
42
  imageId: string | null;
45
43
  chartCategoryId: string | null;
46
44
  chartCategoryLabel: string | null;
47
- chartCategoryIndex: number | null;
48
45
  scope: ApplicationScope;
49
46
  label: string;
50
47
  title: string;
@@ -55,6 +55,7 @@ export interface DashboardShallowInfosDTO {
55
55
  }
56
56
 
57
57
  export interface DashboardShallowFilters {
58
+ dashboardShallowsIds?: string[] | null;
58
59
  root?: boolean | null;
59
60
  folderId?: string | null;
60
61
  search?: string | null;
package/models/index.ts CHANGED
@@ -40,6 +40,7 @@ export * from "./organisations";
40
40
  export * from "./permissionCategories";
41
41
  export * from "./roleOrganisations";
42
42
  export * from "./roleOrganisationTypes";
43
+ export * from "./roles";
43
44
  export * from "./routes";
44
45
  export * from "./scenarioDeviceOrganisations";
45
46
  export * from "./scenarioOrganisations";
@@ -1,18 +1,22 @@
1
+ import { RoleTranslation, type RoleTranslationDTO } from '@/core/foundation-core-domain/models';
1
2
  import { RoleOrganisationInfos, type RoleOrganisationInfosDTO } from "./roleOrganisationInfos";
2
3
  import { type RoleType } from "@dative-gpi/foundation-shared-domain/enums";
3
4
 
4
5
  export class RoleOrganisationDetails extends RoleOrganisationInfos {
5
6
  description: string;
7
+ translations: RoleTranslation[];
6
8
 
7
9
  constructor(params: RoleOrganisationDetailsDTO) {
8
10
  super(params);
9
11
 
10
12
  this.description = params.description;
13
+ this.translations = params.translations.map(t => new RoleTranslation(t));
11
14
  }
12
15
  }
13
16
 
14
17
  export interface RoleOrganisationDetailsDTO extends RoleOrganisationInfosDTO {
15
18
  description: string;
19
+ translations: RoleTranslationDTO[];
16
20
  }
17
21
 
18
22
  export interface CreateRoleOrganisationDTO {
@@ -23,6 +27,7 @@ export interface CreateRoleOrganisationDTO {
23
27
  label: string;
24
28
  description: string;
25
29
  tags: string[];
30
+ translations: RoleTranslationDTO[];
26
31
  }
27
32
 
28
33
  export interface UpdateRoleOrganisationDTO {
@@ -32,4 +37,5 @@ export interface UpdateRoleOrganisationDTO {
32
37
  description: string;
33
38
  tags: string[];
34
39
  permissionsIds: string[];
40
+ translations: RoleTranslationDTO[];
35
41
  }
@@ -0,0 +1 @@
1
+ export * from "./roleTranslation";
@@ -0,0 +1,17 @@
1
+ export class RoleTranslation {
2
+ languageCode: string;
3
+ label: string;
4
+ description: string;
5
+
6
+ constructor(params: RoleTranslationDTO) {
7
+ this.languageCode = params.languageCode;
8
+ this.label = params.label;
9
+ this.description = params.description;
10
+ }
11
+ }
12
+
13
+ export interface RoleTranslationDTO {
14
+ languageCode: string;
15
+ label: string;
16
+ description: string;
17
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-core-domain",
3
3
  "sideEffects": false,
4
- "version": "1.0.142-alert-filter-chart",
4
+ "version": "1.0.142-role",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "1.0.142-alert-filter-chart",
14
- "@dative-gpi/foundation-shared-services": "1.0.142-alert-filter-chart"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.142-role",
14
+ "@dative-gpi/foundation-shared-services": "1.0.142-role"
15
15
  },
16
- "gitHead": "736eafad511c2f355e23f419e1967490f27bae96"
16
+ "gitHead": "071352c70ea94f5fc39e1ad8d9c058b9e1da95b9"
17
17
  }