Update all hooks (Projects, Tasks, Certificates), implement backend for Projects. HomePage on Mentors
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
// types/certificate.types.ts
|
||||
|
||||
export interface CertificateUser {
|
||||
id: number;
|
||||
full_name: string;
|
||||
email: string;
|
||||
}
|
||||
|
||||
export interface CertificateProject {
|
||||
id: number;
|
||||
project_name: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
export interface Certificate {
|
||||
id: number;
|
||||
id_project: number;
|
||||
id_user: number;
|
||||
certificate_no: string;
|
||||
issued_at: string;
|
||||
user: CertificateUser;
|
||||
project: CertificateProject;
|
||||
}
|
||||
|
||||
export interface CertificateVerifyResult {
|
||||
uuid: string;
|
||||
intern_name: string;
|
||||
project_name: string;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
export interface CertificateTemplate {
|
||||
id_project: number;
|
||||
certificate_template: string;
|
||||
}
|
||||
|
||||
// Notification
|
||||
export interface Notification {
|
||||
id: number;
|
||||
id_user: number;
|
||||
id_admin: number | null;
|
||||
title: string;
|
||||
message: string;
|
||||
is_read: boolean;
|
||||
created_at: string;
|
||||
}
|
||||
@@ -12,6 +12,7 @@ export interface ProjectAdmin {
|
||||
}
|
||||
|
||||
export interface ProjectMember {
|
||||
avatar: string;
|
||||
id: number;
|
||||
id_user: number;
|
||||
status?: MemberStatus;
|
||||
@@ -117,4 +118,23 @@ export interface ProjectMember {
|
||||
professional_bio: string | null;
|
||||
position: string;
|
||||
kelompok_peminatan: string;
|
||||
}
|
||||
|
||||
export interface Mahasiswa {
|
||||
id: number;
|
||||
nama_depan: string;
|
||||
nama_belakang: string;
|
||||
email: string;
|
||||
kontak: string;
|
||||
jurusan: string;
|
||||
role: string;
|
||||
cv_path: string;
|
||||
portofolio_path: string;
|
||||
motivasi: string;
|
||||
relevant_skills: string;
|
||||
}
|
||||
|
||||
export interface MahasiswaResponse {
|
||||
message: string;
|
||||
data: Mahasiswa[];
|
||||
}
|
||||
Reference in New Issue
Block a user