phx-react
Version:
PHX REACT
58 lines (57 loc) • 1.39 kB
TypeScript
export interface IGroupRequestType {
group: string;
count?: number;
items?: {
label: string;
count: number;
}[];
}
export declare enum EmailType {
TRANSACTION_BASIC = "transaction-basic",
HRM_REMIND = "hrm-remind",
ORDER_SUCCESS = "order-success",
FREESTYLE_CAMPAIGN = "freestyle-campaign"
}
export declare enum NotificationType {
SYSTEM = "SYSTEM",
TO_ME = "TO_ME"
}
export interface Attachment {
filename: string;
pathname: string;
}
export interface PushNotiMobile {
title: string;
message: string;
module_code: string;
app: string;
payload: any;
related_id?: string;
preview_text?: string;
}
export interface SendEmailV3 {
emailType: EmailType;
to: string;
subject: string;
title: string;
previewText: string;
isValidEmail?: boolean;
callToActionURL?: string;
callToActionText?: string;
content?: string;
listRequests?: IGroupRequestType[];
description?: string;
schoolId?: number;
tag?: string;
attachments?: Attachment[];
}
export interface PushInappNoti {
user_id: number;
action_code: string;
hostname: string;
student_id?: number;
type?: NotificationType;
pushNotiMobile?: PushNotiMobile;
sendEmailV3?: SendEmailV3;
}
export declare function PHXPushNotificationService(payload: PushInappNoti): Promise<any>;