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

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.
@@ -17,9 +17,4 @@ export interface NotificationAudienceDTO {
17
17
  id: string;
18
18
  targetId: string;
19
19
  targetScope: number;
20
- }
21
-
22
- export interface NotificationAudienceFilters {
23
- targetScope?: Scope | null;
24
- targetId?: string | null;
25
20
  }
@@ -1,7 +1,7 @@
1
1
  import { type MessageType } from "../../enums/messages";
2
2
  import { isoToEpoch } from "../../tools/datesTools";
3
3
  import type { Criticity } from "../../enums/alerts";
4
- import { NotificationAudience, type NotificationAudienceFilters } from "./notificationAudience";
4
+ import { NotificationAudience } from "./notificationAudience";
5
5
 
6
6
  export class NotificationInfos {
7
7
  id: string;
@@ -58,5 +58,4 @@ export interface NotificationInfosDTO {
58
58
  export interface NotificationFilters {
59
59
  type?: MessageType | null;
60
60
  criticity?: Criticity | null;
61
- audiences?: NotificationAudienceFilters[] | null;
62
61
  }
@@ -1,36 +1,33 @@
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;
9
- currentOrganisationId?: string | null; // Optional, used in the context of the current organisation
2
+ id: string;
3
+ organisationTypeId: string;
4
+ imageId: string | null;
5
+ label: string;
6
+ userOrganisationsCount: number;
7
+ adminId: string | null;
8
+ adminName: string | null;
10
9
 
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
- }
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
+ }
21
19
  }
22
20
 
23
21
  export interface OrganisationInfosDTO {
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
22
+ id: string;
23
+ organisationTypeId: string;
24
+ imageId: string | null;
25
+ label: string;
26
+ userOrganisationsCount: number;
27
+ adminId: string | null;
28
+ adminName: string | null;
32
29
  }
33
30
 
34
31
  export interface OrganisationFilters {
35
- search?: string | null;
32
+ search?: string | null;
36
33
  }
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-notificationv2",
4
+ "version": "1.0.164-sankey",
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": "87b230ad540ab86c0f34de12cf3885bf0e7f489f"
15
+ "gitHead": "b5fadf101a25259e5c1068d5860ae4a2b674e937"
16
16
  }