Files
hipmi/types/type-mobile-notification.ts
Bagasbanuna02 a54f8599b4 API Mobile notifikasi job
Fix:
modified:   src/app/api/mobile/admin/job/[id]/route.ts
modified:   src/app/api/mobile/job/[id]/route.ts
modified:   src/app/api/mobile/job/route.ts
modified:   src/lib/mobile/route-page-mobile.ts
modified:   types/type-mobile-notification.ts

### No Issue
2026-01-08 18:35:32 +08:00

39 lines
924 B
TypeScript

// Jika semua custom type diawali "custom_"
export type NotificationMobilePayload = {
title: NotificationMobileTitleType;
body: NotificationMobileBodyType;
userLoginId?: string;
appId?: string;
status?: string;
type: "announcement" | "trigger";
deepLink: string;
kategoriApp: TypeNotificationCategoryApp;
};
export type NotificationMobileTitleType =
| (string & { __type: "NotificationMobileTitleType" })
| "Pengajuan Review"
| "Review Selesai"
// to ALL user
| "Ada lowongan kerja baru"
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"
| "VOTING"
| "DONASI"
| "INVESTASI"
| "COLLABORATION"
| "FORUM"
| "OTHER";