feat: add scratchpad to frontend types and API client
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -46,6 +46,11 @@ export const sessionsApi = {
|
|||||||
const response = await apiClient.post<string>(`/sessions/${id}/export`, options)
|
const response = await apiClient.post<string>(`/sessions/${id}/export`, options)
|
||||||
return response.data
|
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
|
export default sessionsApi
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ export interface Session {
|
|||||||
ticket_number: string | null
|
ticket_number: string | null
|
||||||
client_name: string | null
|
client_name: string | null
|
||||||
exported: boolean
|
exported: boolean
|
||||||
|
scratchpad: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SessionCreate {
|
export interface SessionCreate {
|
||||||
@@ -54,6 +55,7 @@ export interface SessionUpdate {
|
|||||||
custom_steps?: CustomStep[]
|
custom_steps?: CustomStep[]
|
||||||
ticket_number?: string
|
ticket_number?: string
|
||||||
client_name?: string
|
client_name?: string
|
||||||
|
scratchpad?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SessionExport {
|
export interface SessionExport {
|
||||||
|
|||||||
Reference in New Issue
Block a user