@dative-gpi/foundation-core-domain 1.0.29 → 1.0.30

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.
@@ -1,5 +1,5 @@
1
1
  export enum RoleType {
2
- None = 0,
3
- Organisation = 1,
4
- OrganisationType = 2
5
- }
2
+ None = 0,
3
+ Organisation = 1,
4
+ OrganisationType = 2
5
+ }
package/models/index.ts CHANGED
@@ -49,6 +49,7 @@ export * from "./scenarios"; // No service
49
49
  export * from "./shared"; // No service
50
50
  export * from "./serviceAccountOrganisationAuthTokens";
51
51
  export * from "./serviceAccountOrganisations";
52
+ export * from "./serviceAccountRoleOrganisations";
52
53
  export * from "./userOrganisationColumns"; // No service
53
54
  export * from "./userOrganisations";
54
55
  export * from "./userOrganisationTables";
@@ -1,6 +1,5 @@
1
- import type { RoleOrganisationInfosDTO } from "./roleOrganisationInfos";
2
- import { RoleOrganisationInfos } from "./roleOrganisationInfos";
3
- import type { RoleType } from "../enums/roleEnums";
1
+ import { RoleOrganisationInfos, type RoleOrganisationInfosDTO } from "./roleOrganisationInfos";
2
+ import { type RoleType } from "../enums/roleEnums";
4
3
 
5
4
  export class RoleOrganisationDetails extends RoleOrganisationInfos {
6
5
  description: string;
@@ -19,7 +18,6 @@ export interface RoleOrganisationDetailsDTO extends RoleOrganisationInfosDTO {
19
18
  export interface CreateRoleOrganisationDTO {
20
19
  roleTemplateType: RoleType;
21
20
  roleTemplateId: string | null;
22
- userType: number;
23
21
  icon: string;
24
22
  code: string;
25
23
  label: string;
@@ -1,49 +1,47 @@
1
- import type { PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
2
- import { PermissionInfos } from "@dative-gpi/foundation-shared-domain/models";
1
+ import { PermissionInfos, type PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
3
2
 
4
- import type { ApplicationScope } from "../enums/applicationEnums";
5
- import type { UserType } from "../enums/userEnums";
3
+ import { type ApplicationScope } from "../enums/applicationEnums";
4
+ import { type UserType } from "../enums/userEnums";
6
5
 
7
6
  export class RoleOrganisationInfos {
8
- id: string;
9
- roleId: string;
10
- organisationId: string;
11
- icon: string;
12
- code: string;
13
- label: string;
14
- scope: ApplicationScope;
15
- userType: UserType;
16
- tags: string[];
17
- permissions: PermissionInfos[];
7
+ id: string;
8
+ roleId: string;
9
+ organisationId: string;
10
+ scope: ApplicationScope;
11
+ userType: UserType
12
+ icon: string;
13
+ code: string;
14
+ label: string;
15
+ tags: string[];
16
+ permissions: PermissionInfos[];
18
17
 
19
- constructor(params: RoleOrganisationInfosDTO) {
20
- this.id = params.id;
21
- this.roleId = params.roleId;
22
- this.organisationId = params.organisationId;
23
- this.icon = params.icon;
24
- this.code = params.code;
25
- this.label = params.label;
26
- this.scope = params.scope;
27
- this.userType = params.userType;
28
- this.tags = params.tags.slice();
29
- this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
30
- }
18
+ constructor(params: RoleOrganisationInfosDTO) {
19
+ this.id = params.id;
20
+ this.roleId = params.roleId;
21
+ this.organisationId = params.organisationId;
22
+ this.scope = params.scope;
23
+ this.userType = params.userType;
24
+ this.icon = params.icon;
25
+ this.code = params.code;
26
+ this.label = params.label;
27
+ this.tags = params.tags.slice();
28
+ this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
29
+ }
31
30
  }
32
31
 
33
32
  export interface RoleOrganisationInfosDTO {
34
- id: string;
35
- roleId: string;
36
- organisationId: string;
37
- icon: string;
38
- code: string;
39
- label: string;
40
- scope: ApplicationScope;
41
- userType: UserType;
42
- tags: string[];
43
- permissions: PermissionInfosDTO[];
33
+ id: string;
34
+ roleId: string;
35
+ organisationId: string;
36
+ scope: ApplicationScope;
37
+ userType: UserType;
38
+ icon: string;
39
+ code: string;
40
+ label: string;
41
+ tags: string[];
42
+ permissions: PermissionInfosDTO[];
44
43
  }
45
44
 
46
45
  export interface RoleOrganisationFilters {
47
- userType?: UserType | null;
48
- search?: string | null;
46
+ search?: string | null;
49
47
  }
@@ -30,7 +30,7 @@ export class ScenarioOrganisationTypeDetails extends ScenarioOrganisationTypeInf
30
30
  timeout: number | null;
31
31
  lock: number | null;
32
32
  waitResolved: boolean;
33
- scenarioParameters: ScenarioParameter[];
33
+ parameters: ScenarioParameter[];
34
34
  translations: ScenarioTranslation[];
35
35
 
36
36
  constructor(params: ScenarioOrganisationTypeDetailsDTO) {
@@ -59,7 +59,7 @@ export class ScenarioOrganisationTypeDetails extends ScenarioOrganisationTypeInf
59
59
  this.timeout = params.timeout;
60
60
  this.lock = params.lock;
61
61
  this.waitResolved = params.waitResolved;
62
- this.scenarioParameters = params.scenarioParameters.map(p => new ScenarioParameter(p));
62
+ this.parameters = params.parameters.map(p => new ScenarioParameter(p));
63
63
  this.translations = params.translations.map(t => new ScenarioTranslation(t));
64
64
  }
65
65
  }
@@ -87,7 +87,7 @@ export interface ScenarioOrganisationTypeDetailsDTO extends ScenarioOrganisation
87
87
  timeout: number | null;
88
88
  lock: number | null;
89
89
  waitResolved: boolean;
90
- scenarioParameters: ScenarioParameterDTO[];
90
+ parameters: ScenarioParameterDTO[];
91
91
  translations: ScenarioTranslationDTO[];
92
92
  }
93
93
 
@@ -123,6 +123,6 @@ export interface UpdateScenarioOrganisationTypeDTO {
123
123
  timeout: number | null;
124
124
  lock: number | null;
125
125
  waitResolved: boolean;
126
- scenarioParameters: CreateScenarioParameterDTO[];
126
+ parameters: CreateScenarioParameterDTO[];
127
127
  translations: ScenarioTranslationDTO[];
128
128
  }
@@ -20,7 +20,7 @@ export class ScenarioOrganisationTypeInfos {
20
20
  code: string;
21
21
  icon: string;
22
22
  tags: string[];
23
- scenarioParameters: ScenarioParameter[];
23
+ parameters: ScenarioParameter[];
24
24
 
25
25
  constructor(params: ScenarioOrganisationTypeInfosDTO) {
26
26
  this.id = params.id;
@@ -39,7 +39,7 @@ export class ScenarioOrganisationTypeInfos {
39
39
  this.code = params.code;
40
40
  this.icon = params.icon;
41
41
  this.tags = params.tags.slice();
42
- this.scenarioParameters = params.scenarioParameters.map(p => new ScenarioParameter(p));
42
+ this.parameters = params.parameters.map(p => new ScenarioParameter(p));
43
43
  }
44
44
  }
45
45
 
@@ -60,7 +60,7 @@ export interface ScenarioOrganisationTypeInfosDTO {
60
60
  code: string;
61
61
  icon: string;
62
62
  tags: string[];
63
- scenarioParameters: ScenarioParameterDTO[];
63
+ parameters: ScenarioParameterDTO[];
64
64
  }
65
65
 
66
66
  export interface ScenarioOrganisationTypeFilters {
@@ -30,7 +30,7 @@ export class ScenarioOrganisationDetails extends ScenarioOrganisationInfos {
30
30
  timeout: number | null;
31
31
  lock: number | null;
32
32
  waitResolved: boolean;
33
- scenarioParameters: ScenarioParameter[];
33
+ parameters: ScenarioParameter[];
34
34
  translations: ScenarioTranslation[];
35
35
 
36
36
  constructor(params: ScenarioOrganisationDetailsDTO) {
@@ -58,7 +58,7 @@ export class ScenarioOrganisationDetails extends ScenarioOrganisationInfos {
58
58
  this.timeout = params.timeout;
59
59
  this.lock = params.lock;
60
60
  this.waitResolved = params.waitResolved;
61
- this.scenarioParameters = params.scenarioParameters.map(p => new ScenarioParameter(p));
61
+ this.parameters = params.parameters.map(p => new ScenarioParameter(p));
62
62
  this.translations = params.translations.map(t => new ScenarioTranslation(t));
63
63
  }
64
64
  }
@@ -86,7 +86,7 @@ export interface ScenarioOrganisationDetailsDTO extends ScenarioOrganisationInfo
86
86
  timeout: number | null;
87
87
  lock: number | null;
88
88
  waitResolved: boolean;
89
- scenarioParameters: ScenarioParameterDTO[];
89
+ parameters: ScenarioParameterDTO[];
90
90
  translations: ScenarioTranslationDTO[];
91
91
  }
92
92
 
@@ -117,7 +117,7 @@ export interface CreateScenarioOrganisationDTO {
117
117
  timeout: number | null;
118
118
  lock: number | null;
119
119
  waitResolved: boolean;
120
- scenarioParameters: CreateScenarioParameterDTO[];
120
+ parameters: CreateScenarioParameterDTO[];
121
121
  translations: ScenarioTranslationDTO[];
122
122
  }
123
123
 
@@ -148,6 +148,6 @@ export interface UpdateScenarioOrganisationDTO {
148
148
  timeout: number | null;
149
149
  lock: number | null;
150
150
  waitResolved: boolean;
151
- scenarioParameters: CreateScenarioParameterDTO[];
151
+ parameters: CreateScenarioParameterDTO[];
152
152
  translations: ScenarioTranslationDTO[];
153
153
  }
@@ -19,7 +19,7 @@ export class ScenarioOrganisationInfos {
19
19
  code: string;
20
20
  icon: string;
21
21
  tags: string[];
22
- scenarioParameters: ScenarioParameter[];
22
+ parameters: ScenarioParameter[];
23
23
 
24
24
  constructor(params: ScenarioOrganisationInfosDTO) {
25
25
  this.id = params.id;
@@ -37,7 +37,7 @@ export class ScenarioOrganisationInfos {
37
37
  this.code = params.code;
38
38
  this.icon = params.icon;
39
39
  this.tags = params.tags.slice();
40
- this.scenarioParameters = params.scenarioParameters.map(p => new ScenarioParameter(p));
40
+ this.parameters = params.parameters.map(p => new ScenarioParameter(p));
41
41
  }
42
42
  }
43
43
 
@@ -57,7 +57,7 @@ export interface ScenarioOrganisationInfosDTO {
57
57
  code: string;
58
58
  icon: string;
59
59
  tags: string[];
60
- scenarioParameters: ScenarioParameterDTO[];
60
+ parameters: ScenarioParameterDTO[];
61
61
  }
62
62
 
63
63
  export interface ScenarioOrganisationFilters {
@@ -36,7 +36,6 @@ export interface ScenarioParameterDTO {
36
36
 
37
37
  export interface CreateScenarioParameterDTO {
38
38
  id : string
39
- scenarioId: string;
40
39
  hiddenCode : string;
41
40
  labelDefault : string;
42
41
  valueDefault : string;
@@ -0,0 +1,2 @@
1
+ export * from "./serviceAccountRoleOrganisationDetails";
2
+ export * from "./serviceAccountRoleOrganisationInfos";
@@ -0,0 +1,33 @@
1
+ import { ServiceAccountRoleOrganisationInfos, type ServiceAccountRoleOrganisationInfosDTO } from "./serviceAccountRoleOrganisationInfos";
2
+
3
+ export class ServiceAccountRoleOrganisationDetails extends ServiceAccountRoleOrganisationInfos {
4
+ description: string;
5
+
6
+ constructor(params: ServiceAccountRoleOrganisationDetailsDTO) {
7
+ super(params);
8
+
9
+ this.description = params.description;
10
+ }
11
+ }
12
+
13
+ export interface ServiceAccountRoleOrganisationDetailsDTO extends ServiceAccountRoleOrganisationInfosDTO {
14
+ description: string;
15
+ }
16
+
17
+ export interface CreateServiceAccountRoleOrganisationDTO {
18
+ roleTemplateId: string | null;
19
+ icon: string;
20
+ code: string;
21
+ label: string;
22
+ description: string;
23
+ tags: string[];
24
+ }
25
+
26
+ export interface UpdateServiceAccountRoleOrganisationDTO {
27
+ icon: string;
28
+ code: string;
29
+ label: string;
30
+ description: string;
31
+ tags: string[];
32
+ permissionsIds: string[];
33
+ }
@@ -0,0 +1,42 @@
1
+ import { PermissionInfos, type PermissionInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
2
+ import { type UserType } from "../enums/userEnums";
3
+
4
+ export class ServiceAccountRoleOrganisationInfos {
5
+ id: string;
6
+ roleId: string;
7
+ organisationId: string;
8
+ userType: UserType
9
+ icon: string;
10
+ code: string;
11
+ label: string;
12
+ tags: string[];
13
+ permissions: PermissionInfos[];
14
+
15
+ constructor(params: ServiceAccountRoleOrganisationInfosDTO) {
16
+ this.id = params.id;
17
+ this.roleId = params.roleId;
18
+ this.organisationId = params.organisationId;
19
+ this.userType = params.userType;
20
+ this.icon = params.icon;
21
+ this.code = params.code;
22
+ this.label = params.label;
23
+ this.tags = params.tags.slice();
24
+ this.permissions = params.permissions.map(dto => new PermissionInfos(dto));
25
+ }
26
+ }
27
+
28
+ export interface ServiceAccountRoleOrganisationInfosDTO {
29
+ id: string;
30
+ roleId: string;
31
+ organisationId: string;
32
+ userType: UserType
33
+ icon: string;
34
+ code: string;
35
+ label: string;
36
+ tags: string[];
37
+ permissions: PermissionInfosDTO[];
38
+ }
39
+
40
+ export interface ServiceAccountRoleOrganisationFilters {
41
+ search?: string | null;
42
+ }
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.29",
4
+ "version": "1.0.30",
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.29",
14
- "@dative-gpi/foundation-shared-services": "1.0.29"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.30",
14
+ "@dative-gpi/foundation-shared-services": "1.0.30"
15
15
  },
16
- "gitHead": "8034b26b00eda886e08fbf02b2dacb67f59bdc48"
16
+ "gitHead": "33f1a6d59ab513176b3710729a39ec701462fdfb"
17
17
  }