first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
export enum NOTIFICATION_TYPES {
|
||||
EMAIL = "EMAIL",
|
||||
WAP = "WAP",
|
||||
SYSTEM = "SYSTEM",
|
||||
}
|
||||
|
||||
export type NotificationDataEmail = {
|
||||
email: string;
|
||||
subject: string;
|
||||
message: string;
|
||||
};
|
||||
|
||||
export type NotificationDataWap = {
|
||||
phoneNumber: string;
|
||||
message: string;
|
||||
companyId: string;
|
||||
sessionUser: string;
|
||||
};
|
||||
|
||||
export type NotificationDataSystem = {
|
||||
userId: string;
|
||||
conversationId?: string;
|
||||
subject: string;
|
||||
message: string;
|
||||
type?: string;
|
||||
code?: string;
|
||||
};
|
||||
|
||||
export interface INotificationsAdapter<T> {
|
||||
send: (data: T) => Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user