@managemint-solutions/entities 1.1.39 → 1.1.41

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,6 @@
1
1
  export type GetNotificationsDto = {
2
2
  search?: string | null;
3
+ unread?: boolean;
3
4
  page: number;
4
5
  page_size: number;
5
6
  };
@@ -1,5 +1,30 @@
1
+ import type { UUID } from 'crypto';
2
+ import { NotificationChannel, NotificationStatus, NotificationType } from './enum';
1
3
  export * from './enum';
2
4
  export interface NotificationSummary {
5
+ mms_id: UUID;
6
+ created_at: string;
7
+ type: NotificationType;
8
+ channel: NotificationChannel;
9
+ status: NotificationStatus;
10
+ template_id: string | null;
11
+ recipient_email: string | null;
12
+ sent_at: string | null;
13
+ failed_at: string | null;
14
+ delivered_at: string | null;
15
+ read_at: string | null;
3
16
  }
4
- export interface NotificationEntity {
17
+ export interface NotificationEntity extends NotificationSummary {
18
+ template_variables: Record<string, unknown>;
19
+ failure_reason: string | null;
20
+ delivery_failure_reason: string | null;
21
+ provider: string | null;
22
+ }
23
+ export interface NotificationContent {
24
+ channel: NotificationChannel;
25
+ subject: string | null;
26
+ html: string | null;
27
+ }
28
+ export interface NotificationUnreadCount {
29
+ count: number;
5
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/entities",
3
- "version": "1.1.39",
3
+ "version": "1.1.41",
4
4
  "description": "Entity types used by both the api and portal",
5
5
  "homepage": "https://github.com/ManageMint-Solutions/managemint-solutions-entities#readme",
6
6
  "bugs": {