WB2: fix TodayView type for getToday returning TodayResponseV11 (deadlines field)

This commit is contained in:
hermes 2026-07-30 21:02:42 +00:00
parent d8967f29f0
commit 62b8af2ab8
2 changed files with 8 additions and 6 deletions

View file

@ -24,7 +24,8 @@ import type {
ScoreResponse, ScoreResponse,
TailorCvResponse, TailorCvResponse,
TaskRun, TaskRun,
TodayResponse TodayResponse,
TodayResponseV11
} from '@/types' } from '@/types'
const API_BASE: string = const API_BASE: string =
@ -204,8 +205,8 @@ export function batchScore(applicationIds: string[]): Promise<BatchScoringRespon
}) })
} }
export function getToday(): Promise<TodayResponse> { export function getToday(): Promise<TodayResponseV11> {
return request<TodayResponse>('/today') return request<TodayResponseV11>('/today')
} }
export function interviewPrep(applicationId: string): Promise<InterviewPrepResponse> { export function interviewPrep(applicationId: string): Promise<InterviewPrepResponse> {
@ -270,5 +271,6 @@ export type {
ScoreResponse, ScoreResponse,
TailorCvResponse, TailorCvResponse,
TaskRun, TaskRun,
TodayResponse TodayResponse,
TodayResponseV11
} }

View file

@ -4,12 +4,12 @@ import { useRouter } from 'vue-router'
import { useToastStore } from '@/stores/toast' import { useToastStore } from '@/stores/toast'
import * as api from '@/api' import * as api from '@/api'
import CostDisplay from '@/components/CostDisplay.vue' 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 toast = useToastStore()
const router = useRouter() const router = useRouter()
const today = ref<(TodayResponse & { deadlines?: TodayDeadline[] }) | null>(null) const today = ref<TodayResponseV11 | null>(null)
const loading = ref(true) const loading = ref(true)
const deadlines = ref<TodayDeadline[]>([]) const deadlines = ref<TodayDeadline[]>([])
const suggestions = ref<EmailSuggestion[]>([]) const suggestions = ref<EmailSuggestion[]>([])