feat(web): update views and services
Views: - AppShellRouteView.vue: update route view - SettingsView.vue: update settings view - TravelReimbursementCreateView.vue: update travel form view - scripts/SettingsView.js: update settings view logic - scripts/TravelReimbursementCreateView.js: update travel form logic Services: - services/orchestrator.js: update orchestrator service client
This commit is contained in:
@@ -6,3 +6,21 @@ export function runOrchestrator(payload) {
|
||||
body: JSON.stringify(payload)
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchLatestConversation(userId) {
|
||||
const params = new URLSearchParams({
|
||||
user_id: String(userId || '').trim()
|
||||
})
|
||||
|
||||
return apiRequest(`/orchestrator/conversations/latest?${params.toString()}`)
|
||||
}
|
||||
|
||||
export function clearUserConversations(userId) {
|
||||
const params = new URLSearchParams({
|
||||
user_id: String(userId || '').trim()
|
||||
})
|
||||
|
||||
return apiRequest(`/orchestrator/conversations?${params.toString()}`, {
|
||||
method: 'DELETE'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user