auth-mn
Version:
120 lines (119 loc) • 2.61 kB
TypeScript
type SinglePushNotiT = {
user_id: number;
target_app: "AVDAR-STORE" | "AUTH-APP";
body: {
title: string;
body: string;
icon: string;
image?: string;
button?: {
title: string;
url: string;
} | null;
};
};
type MailT = {
type: "notification" | "otp" | "custom";
form?: {
name?: string;
email?: string;
};
to: string[];
subject: string;
body: {
name: string;
title?: string;
desc?: string;
otp?: string | number;
button?: {
text: string;
url: string | null;
};
footer_text?: string;
};
};
export declare const SinglePushNoti: (body: SinglePushNotiT) => Promise<{
success: boolean;
data: null;
message: string;
}>;
export declare const SMS: (body: {
text: string;
to: string;
from: string;
}) => Promise<{
success: boolean;
data: null;
message: string;
}>;
export declare const MAIL: (body: MailT) => Promise<{
success: boolean;
data: null;
message: string;
}>;
export declare const _3RD_TOKI_NOTI: (body: {
accountId: string;
title: string;
body: string;
url: string;
buttonName: string;
imageURL?: string;
icon: string;
}) => Promise<{
success: boolean;
data: null;
message: string;
}>;
export declare const _3RD_TOKI_HIPAY: (body: {
customerId: string;
message: string;
}) => Promise<{
success: boolean;
data: null;
message: string;
}>;
declare const _default: {
SinglePushNoti: (body: SinglePushNotiT) => Promise<{
success: boolean;
data: null;
message: string;
}>;
SMS: (body: {
text: string;
to: string;
from: string;
}) => Promise<{
success: boolean;
data: null;
message: string;
}>;
MAIL: (body: MailT) => Promise<{
success: boolean;
data: null;
message: string;
}>;
_3RD: {
TOKI: (body: {
accountId: string;
title: string;
body: string;
url: string;
buttonName: string;
imageURL?: string;
icon: string;
}) => Promise<{
success: boolean;
data: null;
message: string;
}>;
HIPAY: (body: {
customerId: string;
message: string;
}) => Promise<{
success: boolean;
data: null;
message: string;
}>;
};
};
export default _default;