forked from Talenttrust/Talenttrust-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotification.types.ts
More file actions
38 lines (35 loc) · 823 Bytes
/
Copy pathnotification.types.ts
File metadata and controls
38 lines (35 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Enum for supported notification transport types.
*/
export enum NotificationType {
EMAIL = 'EMAIL',
WEB_PUSH = 'WEB_PUSH',
APP_UI = 'APP_UI',
}
/**
* Enum for core Key Escrow protocol events.
*/
export enum KeyEscrowEvent {
ESCROW_INITIALIZED = 'ESCROW_INITIALIZED',
FUNDS_DEPOSITED = 'FUNDS_DEPOSITED',
MILESTONE_APPROVED = 'MILESTONE_APPROVED',
DISPUTE_RAISED = 'DISPUTE_RAISED',
ESCROW_RESOLVED = 'ESCROW_RESOLVED',
ESCROW_CANCELLED = 'ESCROW_CANCELLED',
}
/**
* Interface representing the payload structure for email notifications.
*/
export interface EmailPayload {
to: string;
subject: string;
body: string;
}
/**
* Interface representing the payload structure for web/UI notifications.
*/
export interface WebPayload {
userId: string;
title: string;
message: string;
}