export interface Coperation { Name: string; Code: string; Sector: string; Product: string; ListingDay: string; ClosingMonth: string; Representative: string; Homepage: string; AddressArea: string; LastUpdate: string; } export interface PageCorpsInfo { name: string; description: string; corpListByDate: Record; } export interface CorpSimple { Code: string; Name: string; } export async function fetchPageInfo(pageName: string): Promise{ const res = await fetch("/api/pages/" + encodeURIComponent(pageName)); return await res.json(); } export async function fetchKospiList(): Promise{ const res = await fetch("/api/kospi"); return await res.json(); } export async function fetchKosdaqList(): Promise { const res = await fetch("/api/kosdaq"); return await res.json(); }