diff --git a/apps/web/src/api/index.ts b/apps/web/src/api/index.ts index d3a62f7..83f4186 100644 --- a/apps/web/src/api/index.ts +++ b/apps/web/src/api/index.ts @@ -24,7 +24,8 @@ import type { ScoreResponse, TailorCvResponse, TaskRun, - TodayResponse + TodayResponse, + TodayResponseV11 } from '@/types' const API_BASE: string = @@ -204,8 +205,8 @@ export function batchScore(applicationIds: string[]): Promise { - return request('/today') +export function getToday(): Promise { + return request('/today') } export function interviewPrep(applicationId: string): Promise { @@ -270,5 +271,6 @@ export type { ScoreResponse, TailorCvResponse, TaskRun, - TodayResponse + TodayResponse, + TodayResponseV11 } \ No newline at end of file diff --git a/apps/web/src/views/TodayView.vue b/apps/web/src/views/TodayView.vue index 362245c..d645047 100644 --- a/apps/web/src/views/TodayView.vue +++ b/apps/web/src/views/TodayView.vue @@ -4,12 +4,12 @@ import { useRouter } from 'vue-router' import { useToastStore } from '@/stores/toast' import * as api from '@/api' import CostDisplay from '@/components/CostDisplay.vue' -import type { TodayResponse, TodayDeadline, EmailSuggestion, NotificationLogEntry, SuggestionClassification } from '@/types' +import type { TodayResponseV11, TodayDeadline, EmailSuggestion, NotificationLogEntry, SuggestionClassification } from '@/types' const toast = useToastStore() const router = useRouter() -const today = ref<(TodayResponse & { deadlines?: TodayDeadline[] }) | null>(null) +const today = ref(null) const loading = ref(true) const deadlines = ref([]) const suggestions = ref([])