@dative-gpi/foundation-shared-domain 1.0.164-notification → 1.0.164-notificationv2

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,33 +1,36 @@
1
1
  export class OrganisationInfos {
2
- id: string;
3
- organisationTypeId: string;
4
- imageId: string | null;
5
- label: string;
6
- userOrganisationsCount: number;
7
- adminId: string | null;
8
- adminName: string | null;
2
+ id: string;
3
+ organisationTypeId: string;
4
+ imageId: string | null;
5
+ label: string;
6
+ userOrganisationsCount: number;
7
+ adminId: string | null;
8
+ adminName: string | null;
9
+ currentOrganisationId?: string | null; // Optional, used in the context of the current organisation
9
10
 
10
- constructor(params: OrganisationInfosDTO) {
11
- this.id = params.id;
12
- this.organisationTypeId = params.organisationTypeId;
13
- this.imageId = params.imageId;
14
- this.label = params.label;
15
- this.userOrganisationsCount = params.userOrganisationsCount;
16
- this.adminId = params.adminId;
17
- this.adminName = params.adminName;
18
- }
11
+ constructor(params: OrganisationInfosDTO) {
12
+ this.id = params.id;
13
+ this.organisationTypeId = params.organisationTypeId;
14
+ this.imageId = params.imageId;
15
+ this.label = params.label;
16
+ this.userOrganisationsCount = params.userOrganisationsCount;
17
+ this.adminId = params.adminId;
18
+ this.adminName = params.adminName;
19
+ this.currentOrganisationId = params.currentOrganisationId || null; // Default to null if not provided
20
+ }
19
21
  }
20
22
 
21
23
  export interface OrganisationInfosDTO {
22
- id: string;
23
- organisationTypeId: string;
24
- imageId: string | null;
25
- label: string;
26
- userOrganisationsCount: number;
27
- adminId: string | null;
28
- adminName: string | null;
24
+ id: string;
25
+ organisationTypeId: string;
26
+ imageId: string | null;
27
+ label: string;
28
+ userOrganisationsCount: number;
29
+ adminId: string | null;
30
+ adminName: string | null;
31
+ currentOrganisationId?: string | null; // Optional, used in the context of the current organisation
29
32
  }
30
33
 
31
34
  export interface OrganisationFilters {
32
- search?: string | null;
35
+ search?: string | null;
33
36
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-domain",
3
3
  "sideEffects": false,
4
- "version": "1.0.164-notification",
4
+ "version": "1.0.164-notificationv2",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -12,5 +12,5 @@
12
12
  "peerDependencies": {
13
13
  "date-fns": "^3.6.0"
14
14
  },
15
- "gitHead": "e5b94008c24ba67bc62bfadf7cdcf37c6e12cea5"
15
+ "gitHead": "87b230ad540ab86c0f34de12cf3885bf0e7f489f"
16
16
  }