@dative-gpi/foundation-core-domain 1.0.143 → 1.0.144

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.
@@ -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 {
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,28 @@
1
+ import { RoleTranslation, type RoleTranslationDTO } from '@dative-gpi/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 {
6
+ labelDefault: string;
5
7
  description: string;
8
+ descriptionDefault: string;
9
+ translations: RoleTranslation[];
6
10
 
7
11
  constructor(params: RoleOrganisationDetailsDTO) {
8
12
  super(params);
9
13
 
14
+ this.labelDefault = params.labelDefault;
10
15
  this.description = params.description;
16
+ this.descriptionDefault = params.descriptionDefault;
17
+ this.translations = params.translations.map(t => new RoleTranslation(t));
11
18
  }
12
19
  }
13
20
 
14
21
  export interface RoleOrganisationDetailsDTO extends RoleOrganisationInfosDTO {
22
+ labelDefault: string;
15
23
  description: string;
24
+ descriptionDefault: string;
25
+ translations: RoleTranslationDTO[];
16
26
  }
17
27
 
18
28
  export interface CreateRoleOrganisationDTO {
@@ -23,6 +33,7 @@ export interface CreateRoleOrganisationDTO {
23
33
  label: string;
24
34
  description: string;
25
35
  tags: string[];
36
+ translations: RoleTranslationDTO[];
26
37
  }
27
38
 
28
39
  export interface UpdateRoleOrganisationDTO {
@@ -32,4 +43,5 @@ export interface UpdateRoleOrganisationDTO {
32
43
  description: string;
33
44
  tags: string[];
34
45
  permissionsIds: string[];
46
+ translations: RoleTranslationDTO[];
35
47
  }
@@ -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.143",
4
+ "version": "1.0.144",
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.143",
14
- "@dative-gpi/foundation-shared-services": "1.0.143"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.144",
14
+ "@dative-gpi/foundation-shared-services": "1.0.144"
15
15
  },
16
- "gitHead": "7ceaba6f1491f3868eca54ed967dd666f58cba77"
16
+ "gitHead": "885ad0c42bb531c28c3d0f948e343b0e6cea912b"
17
17
  }