eerrerer
erdfsfsfsdf
This commit is contained in:
@@ -105,7 +105,7 @@ export const api = {
|
||||
name: string
|
||||
description: string
|
||||
confidence: number
|
||||
action: any
|
||||
action?: { name?: string }
|
||||
}>
|
||||
}>('/email/sort', {
|
||||
method: 'POST',
|
||||
@@ -276,6 +276,7 @@ export const api = {
|
||||
blockedSenders?: string[]
|
||||
customRules?: Array<{ condition: string; category: string }>
|
||||
priorityTopics?: string[]
|
||||
companyLabels?: Array<{ name: string; condition?: string; category: string; enabled: boolean }>
|
||||
}) {
|
||||
return fetchApi<{ success: boolean }>('/preferences', {
|
||||
method: 'POST',
|
||||
@@ -292,8 +293,8 @@ export const api = {
|
||||
enabledCategories: string[]
|
||||
categoryActions: Record<string, 'inbox' | 'archive_read' | 'star'>
|
||||
autoDetectCompanies: boolean
|
||||
cleanup?: any
|
||||
categoryAdvanced?: Record<string, any>
|
||||
cleanup?: unknown
|
||||
categoryAdvanced?: Record<string, unknown>
|
||||
version?: number
|
||||
}>(`/preferences/ai-control?userId=${userId}`)
|
||||
},
|
||||
@@ -302,8 +303,8 @@ export const api = {
|
||||
enabledCategories?: string[]
|
||||
categoryActions?: Record<string, 'inbox' | 'archive_read' | 'star'>
|
||||
autoDetectCompanies?: boolean
|
||||
cleanup?: any
|
||||
categoryAdvanced?: Record<string, any>
|
||||
cleanup?: unknown
|
||||
categoryAdvanced?: Record<string, unknown>
|
||||
version?: number
|
||||
}) {
|
||||
return fetchApi<{ success: boolean }>('/preferences/ai-control', {
|
||||
@@ -407,14 +408,14 @@ export const api = {
|
||||
// ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
async getProducts() {
|
||||
return fetchApi<any[]>('/products')
|
||||
return fetchApi<unknown[]>('/products')
|
||||
},
|
||||
|
||||
async getQuestions(productSlug: string) {
|
||||
return fetchApi<any[]>(`/questions?productSlug=${productSlug}`)
|
||||
return fetchApi<unknown[]>(`/questions?productSlug=${productSlug}`)
|
||||
},
|
||||
|
||||
async createSubmission(productSlug: string, answers: Record<string, any>) {
|
||||
async createSubmission(productSlug: string, answers: Record<string, unknown>) {
|
||||
return fetchApi<{ submissionId: string }>('/submissions', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ productSlug, answers }),
|
||||
|
||||
Reference in New Issue
Block a user