@managemint-solutions/entities 1.1.38 → 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.
|
@@ -10,5 +10,6 @@ export declare enum NotificationChannel {
|
|
|
10
10
|
export declare enum NotificationType {
|
|
11
11
|
TEST = "test",
|
|
12
12
|
TASK_ASSIGNED = "task_assigned",
|
|
13
|
-
PROJECT_MANAGER_ASSIGNED = "project_manager_assigned"
|
|
13
|
+
PROJECT_MANAGER_ASSIGNED = "project_manager_assigned",
|
|
14
|
+
PAYMENT_FAILED = "payment_failed"
|
|
14
15
|
}
|
|
@@ -19,5 +19,6 @@ var NotificationType;
|
|
|
19
19
|
NotificationType["TEST"] = "test";
|
|
20
20
|
NotificationType["TASK_ASSIGNED"] = "task_assigned";
|
|
21
21
|
NotificationType["PROJECT_MANAGER_ASSIGNED"] = "project_manager_assigned";
|
|
22
|
+
NotificationType["PAYMENT_FAILED"] = "payment_failed";
|
|
22
23
|
})(NotificationType || (exports.NotificationType = NotificationType = {}));
|
|
23
24
|
;
|
|
@@ -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