fix: multiple error
This commit is contained in:
+3
-3
@@ -104,7 +104,6 @@ export interface DemoState {
|
||||
}
|
||||
|
||||
export interface DemoDetails {
|
||||
username: string
|
||||
namespace: string
|
||||
state: DemoState
|
||||
}
|
||||
@@ -150,6 +149,7 @@ export const api = {
|
||||
request<Lead>('PATCH', `/leads/${id}/status`, { status }),
|
||||
|
||||
listDemos: () => request<{ items: Demo[] }>('GET', '/demos'),
|
||||
listMyDemos: () => request<{ items: Demo[] }>('GET', '/demos/mine'),
|
||||
getDemo: (id: string) => request<Demo>('GET', `/demos/${id}`),
|
||||
createDemo: (username: string, leadId?: string) =>
|
||||
request<Demo>('POST', '/demos', {
|
||||
@@ -167,8 +167,8 @@ export const api = {
|
||||
sendMessage: (username: string, telegram: string, sujet: string, message: string) =>
|
||||
request<{ success: string }>('POST', '/send/message', { username, telegram, sujet, message }),
|
||||
getMessage: () => request<{ messages: Contact[] }>('GET', '/messages'),
|
||||
getDemoDetails: (username: string) =>
|
||||
request<DemoDetails>('POST', '/demos/details', { username }),
|
||||
getDemoDetails: (namespace: string) =>
|
||||
request<DemoDetails>('POST', '/demos/details', { namespace }),
|
||||
updateUsername: (username: string) =>
|
||||
request<UpdateUsername>('POST', '/profile/username', { username }),
|
||||
updatePassword: (password: string) =>
|
||||
|
||||
Reference in New Issue
Block a user