10 lines
299 B
TypeScript
10 lines
299 B
TypeScript
import { Result } from '@typebot.io/schemas'
|
|
import { sendRequest } from '@typebot.io/lib'
|
|
|
|
export const createResultQuery = async (typebotId: string) => {
|
|
return sendRequest<{ result: Result; hasReachedLimit: boolean }>({
|
|
url: `/api/typebots/${typebotId}/results`,
|
|
method: 'POST',
|
|
})
|
|
}
|