feat: add scratchpad to frontend types and API client

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Michael Chihlas
2026-02-04 02:49:50 -05:00
parent 7824cddd71
commit a92671157f
2 changed files with 7 additions and 0 deletions

View File

@@ -46,6 +46,11 @@ export const sessionsApi = {
const response = await apiClient.post<string>(`/sessions/${id}/export`, options)
return response.data
},
async updateScratchpad(id: string, content: string): Promise<Session> {
const response = await apiClient.patch<Session>(`/sessions/${id}/scratchpad`, { scratchpad: content })
return response.data
},
}
export default sessionsApi

View File

@@ -40,6 +40,7 @@ export interface Session {
ticket_number: string | null
client_name: string | null
exported: boolean
scratchpad: string
}
export interface SessionCreate {
@@ -54,6 +55,7 @@ export interface SessionUpdate {
custom_steps?: CustomStep[]
ticket_number?: string
client_name?: string
scratchpad?: string
}
export interface SessionExport {