Checkpoint for implementing OH Schedule

This commit is contained in:
Antoine Phan
2025-07-08 17:47:54 -04:00
parent 0639f07bf7
commit 9c3e2fad64
7 changed files with 123 additions and 65 deletions

42
src/lib/schemas.ts Normal file
View File

@@ -0,0 +1,42 @@
export interface EventPost {
id: string;
title: string;
description: string;
date: string;
time: string;
location: string;
image: string;
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';
export type HomepageCMSResponse = {
description: InputValue;
councilPhoto: string;
faqs: {
question: string;
answer: string;
}[];
};
export type OhCMSResponse = {
day: string;
startTime: string;
endTime: string;
host: {
name: string;
position: string;
};
}[];

View File

@@ -1,25 +0,0 @@
/**
* @typedef {Object} EventPost event object
* @property {string} id - event id
* @property {string} title - event title
* @property {string} description - event description
* @property {string} date - event date
* @property {string} time - event time
* @property {string} location - event location
* @property {string} image - event image
* @property {string} link - event link
* @property {string} category - event category
* @property {string} payment - event payment link (e.g., Zeffy)3
*/
/**
* @typedef {Object} CouncilMember
* @property {string} role
* @property {string} name
* @property {string} email
* @property {string} image
* @property {string} major
* @property {string} year
*/
export {};