Office Hour block, codebase clean up for schemas and utils

This commit is contained in:
Antoine Phan
2025-07-19 12:32:47 -04:00
parent fe3495227d
commit e0a4aa1fa8
11 changed files with 57 additions and 67 deletions

View File

@@ -1,4 +1,4 @@
export interface EventPost {
export type EventPost = {
id: string;
title: string;
description: string;
@@ -9,16 +9,7 @@ export interface EventPost {
link: string;
category: string;
payment: string; // event payment link (e.g., Zeffy)
}
export interface CouncilMember {
role: string;
name: string;
email: string;
image: string;
major: string;
year: string;
}
};
import type { InputValue } from '@portabletext/svelte';
@@ -35,8 +26,19 @@ export type OhCMSResponse = {
day: string;
startTime: string;
endTime: string;
host: {
member: {
name: string;
position: string;
};
}[];
export type CouncilMember = {
name: string;
email: string;
position: string;
positionDescription: string;
image: string; // URL
yearProgram: string;
};
export type Redirect = { shortname: string; url: string };