fix: fixup leads
This commit is contained in:
+3
-4
@@ -46,9 +46,8 @@ export type Role = 'admin' | 'client'
|
||||
|
||||
export interface Lead {
|
||||
id: string
|
||||
company: string
|
||||
email: string
|
||||
message: string
|
||||
Telegram: string
|
||||
message?: string
|
||||
status: string
|
||||
created_at: string
|
||||
}
|
||||
@@ -124,7 +123,7 @@ export const api = {
|
||||
expired_at: string
|
||||
}>('GET', '/auth/me'), logout: () => request<{ status: string }>('POST', '/auth/logout'),
|
||||
|
||||
createLead: (telegram: string, message: string) =>
|
||||
createLead: (telegram: string, message?: string) =>
|
||||
request<Lead>('POST', '/leads', { telegram, message }),
|
||||
listLeads: () => request<{ items: Lead[] }>('GET', '/leads'),
|
||||
setLeadStatus: (id: string, status: string) =>
|
||||
|
||||
Reference in New Issue
Block a user