Reworked the onboarding apis to follow standard format

This commit is contained in:
Keannu Christian Bernasol 2023-07-17 15:57:23 +08:00
parent df58613d4b
commit f503f060f2
3 changed files with 21 additions and 15 deletions

View file

@ -47,24 +47,30 @@ export interface ActivationParams {
token: string;
}
export interface SemesterParams {
export interface Semester {
id: string;
name: string;
shortname: string;
}
export interface YearLevelParams {
export type SemesterParams = [boolean, Semester];
export interface YearLevel {
id: string;
name: string;
shortname: string;
}
export interface CourseParams {
export type YearLevelParams = [boolean, YearLevel];
export interface Course {
id: string;
name: string;
shortname: string;
}
export type CourseParams = [boolean, Course];
export interface OnboardingParams {
year_level: string;
course: string;