Fix API notifikasi untuk job

### No Issue
This commit is contained in:
2026-01-08 10:14:35 +08:00
parent 87515ae19f
commit 2086692897
5 changed files with 67 additions and 10 deletions

View File

@@ -1,14 +1,30 @@
// Jika semua custom type diawali "custom_"
export type NotificationMobilePayload = {
title: string;
body: string;
title: NotificationMobileTitleType;
body: NotificationMobileBodyType;
userLoginId?: string;
appId?: string;
status?: string;
type: "announcement" | "trigger";
deepLink: string;
kategoriApp: TypeNotificationCategoryApp
kategoriApp: TypeNotificationCategoryApp;
};
export type NotificationMobileTitleType =
| (string & { __type: "NotificationMobileTitleType" })
| "Pengajuan Review"
| "Review Selesai";
export type NotificationMobileBodyType =
// USER
| (string & { __type: "NotificationMobileBodyType" })
| "Terdapat pengajuan baru yang perlu direview"
// ADMIN
| "Pengajuan data anda telah di tolak !"
| "Selamat data anda telah terpublikasi"
export type TypeNotificationCategoryApp =
| "EVENT"
| "JOB"