Checkpoint for implementing OH Schedule
This commit is contained in:
42
src/lib/schemas.ts
Normal file
42
src/lib/schemas.ts
Normal 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;
|
||||
};
|
||||
}[];
|
||||
@@ -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 {};
|
||||
Reference in New Issue
Block a user