@dative-gpi/foundation-core-domain 1.0.6 → 1.0.9

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.
@@ -2,74 +2,75 @@ import type { UserType, UserValidityState } from "../enums/userEnums";
2
2
  import type { RoleType } from "../enums/roleEnums";
3
3
 
4
4
  export class UserOrganisationInfos {
5
- id: string;
6
- userId: string;
7
- organisationId: string;
8
- roleType: RoleType;
9
- roleId: string | null;
10
- roleLabel: string;
11
- roleIcon: string;
12
- admin: boolean;
13
- imageId: string | null;
14
- userType: UserType;
15
- validity: UserValidityState;
16
- allowNotifications: boolean;
17
- allowSms: boolean;
18
- allowEmails: boolean;
19
- email: string;
20
- phoneNumber: string;
21
- firstName: string;
22
- lastName: string;
23
- name: string;
24
- tags: string[];
5
+ id: string;
6
+ userId: string;
7
+ organisationId: string;
8
+ roleType: RoleType;
9
+ roleId: string | null;
10
+ roleLabel: string;
11
+ roleIcon: string;
12
+ admin: boolean;
13
+ imageId: string | null;
14
+ userType: UserType;
15
+ validity: UserValidityState;
16
+ allowNotifications: boolean;
17
+ allowSms: boolean;
18
+ allowEmails: boolean;
19
+ email: string;
20
+ phoneNumber: string;
21
+ firstName: string;
22
+ lastName: string;
23
+ name: string;
24
+ tags: string[];
25
25
 
26
- constructor(params: UserOrganisationInfosDTO) {
27
- this.id = params.id;
28
- this.userId = params.userId;
29
- this.organisationId = params.organisationId;
30
- this.roleType = params.roleType;
31
- this.roleId = params.roleId;
32
- this.roleLabel = params.roleLabel;
33
- this.roleIcon = params.roleIcon;
34
- this.admin = params.admin;
35
- this.imageId = params.imageId;
36
- this.userType = params.userType;
37
- this.validity = params.validity;
38
- this.allowNotifications = params.allowNotifications;
39
- this.allowSms = params.allowSms;
40
- this.allowEmails = params.allowEmails;
41
- this.email = params.email;
42
- this.phoneNumber = params.phoneNumber;
43
- this.firstName = params.firstName;
44
- this.lastName = params.lastName;
45
- this.name = params.name;
46
- this.tags = params.tags && params.tags.slice() || [];
47
- }
26
+ constructor(params: UserOrganisationInfosDTO) {
27
+ this.id = params.id;
28
+ this.userId = params.userId;
29
+ this.organisationId = params.organisationId;
30
+ this.roleType = params.roleType;
31
+ this.roleId = params.roleId;
32
+ this.roleLabel = params.roleLabel;
33
+ this.roleIcon = params.roleIcon;
34
+ this.admin = params.admin;
35
+ this.imageId = params.imageId;
36
+ this.userType = params.userType;
37
+ this.validity = params.validity;
38
+ this.allowNotifications = params.allowNotifications;
39
+ this.allowSms = params.allowSms;
40
+ this.allowEmails = params.allowEmails;
41
+ this.email = params.email;
42
+ this.phoneNumber = params.phoneNumber;
43
+ this.firstName = params.firstName;
44
+ this.lastName = params.lastName;
45
+ this.name = params.name;
46
+ this.tags = params.tags && params.tags.slice() || [];
47
+ }
48
48
  }
49
49
 
50
50
  export interface UserOrganisationInfosDTO {
51
- id: string;
52
- userId: string;
53
- organisationId: string;
54
- roleType: RoleType;
55
- roleId: string | null;
56
- roleLabel: string;
57
- roleIcon: string;
58
- admin: boolean;
59
- imageId: string | null;
60
- userType: UserType;
61
- validity: UserValidityState;
62
- allowNotifications: boolean;
63
- allowSms: boolean;
64
- allowEmails: boolean;
65
- email: string;
66
- phoneNumber: string;
67
- firstName: string;
68
- lastName: string;
69
- name: string;
70
- tags: string[] | null;
51
+ id: string;
52
+ userId: string;
53
+ organisationId: string;
54
+ roleType: RoleType;
55
+ roleId: string | null;
56
+ roleLabel: string;
57
+ roleIcon: string;
58
+ admin: boolean;
59
+ imageId: string | null;
60
+ userType: UserType;
61
+ validity: UserValidityState;
62
+ allowNotifications: boolean;
63
+ allowSms: boolean;
64
+ allowEmails: boolean;
65
+ email: string;
66
+ phoneNumber: string;
67
+ firstName: string;
68
+ lastName: string;
69
+ name: string;
70
+ tags: string[] | null;
71
71
  }
72
72
 
73
73
  export interface UserOrganisationFilters {
74
- search?: string | null;
74
+ userId?: string | null;
75
+ search?: string | null;
75
76
  }
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.6",
4
+ "version": "1.0.9",
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": "b2bbdea22792b7454a5234d8a6b8bb43553f3202"
12
+ "gitHead": "018a67489fc022344c90d45b02bfabdcd0dcefec"
13
13
  }