-
diff --git a/resources/js/types/academic-term.ts b/resources/js/types/academic-term.ts
index f9b537b..a6b7fad 100644
--- a/resources/js/types/academic-term.ts
+++ b/resources/js/types/academic-term.ts
@@ -10,7 +10,7 @@ export const SemesterLabels: Record = {
export type AcademicTerm = {
id: number;
- name: string;
+ academic_year: string;
semester: Semester;
start_date: string;
formatted_start_date: string;
@@ -23,10 +23,10 @@ export type AcademicTerm = {
};
export function formatAcademicTermLabel(term: {
- name: string;
+ academic_year: string;
semester: string;
}): string {
const label = SemesterLabels[term.semester as Semester];
- return label ? `${term.name} (${label})` : term.name;
+ return label ? `${term.academic_year} (${label})` : term.academic_year;
}
diff --git a/resources/js/types/course-class.ts b/resources/js/types/course-class.ts
index eb323f5..2f4a3d4 100644
--- a/resources/js/types/course-class.ts
+++ b/resources/js/types/course-class.ts
@@ -25,7 +25,11 @@ export type CourseClass = {
user: { profile: { full_name: string } | null } | null;
} | null;
academic_term_id: number;
- academic_term: { id: number; name: string; semester: string } | null;
+ academic_term: {
+ id: number;
+ academic_year: string;
+ semester: string;
+ } | null;
method: ClassMethod | null;
enrollments_count: number;
created_at: string;
diff --git a/resources/js/types/course-registration.ts b/resources/js/types/course-registration.ts
index 896954a..da7ba2e 100644
--- a/resources/js/types/course-registration.ts
+++ b/resources/js/types/course-registration.ts
@@ -82,7 +82,11 @@ export type CourseRegistrationSubmission = {
advisor_signature_url: string | null;
has_registrations: boolean;
student: CourseRegistrationSubmissionStudent | null;
- academic_term: { id: number; name: string; semester: string } | null;
+ academic_term: {
+ id: number;
+ academic_year: string;
+ semester: string;
+ } | null;
course_registrations: CourseRegistrationSubmissionEntry[];
logs: CourseRegistrationSubmissionLog[];
};
diff --git a/resources/js/types/tuition-invoice.ts b/resources/js/types/tuition-invoice.ts
index 7352838..a57f9fc 100644
--- a/resources/js/types/tuition-invoice.ts
+++ b/resources/js/types/tuition-invoice.ts
@@ -11,7 +11,11 @@ export type TuitionInvoice = {
student_id: number;
student: TuitionInvoiceStudent | null;
academic_term_id: number;
- academic_term: { id: number; name: string; semester: string } | null;
+ academic_term: {
+ id: number;
+ academic_year: string;
+ semester: string;
+ } | null;
amount_due: string;
due_date: string | null;
paid_total: string | null;