export type UpdateAssessmentFollowupInput = {followupType: 'MANUAL' | 'AUTOMATIC' | 'CONCIERGE', followupRiskThreshold?: ('NO_CONTEXT' | 'LOW' | 'MEDIUM' | 'HIGH' | 'EXTREME') | undefined, followupTimeline?: ('SEVEN_DAYS' | 'FOURTEEN_DAYS' | 'THIRTY_DAYS' | 'SIXTY_DAYS' | 'NINETY_DAYS') | undefined}; export type UpdateApiApiV1AssessmentsIdFollowupArgs = {id: number, body: UpdateAssessmentFollowupInput}; export type UpdateApiApiV1AssessmentsIdFollowupOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Update the follow-up settings of an in-progress assessment * * PUT /api/v1/assessments/{id}/followup */ export const updateApiApiV1AssessmentsIdFollowup = async (args: UpdateApiApiV1AssessmentsIdFollowupArgs, options?: UpdateApiApiV1AssessmentsIdFollowupOptions) => { const {baseUrl = "https://app.visotrust.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/api/v1/assessments/${encodeURIComponent(String(args.id))}/followup${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };