✨ (editor) Add unpublish and close typebot options
Introducing more menu items on the "Publised" button in the editor. You can now unpublish a typebot and close it to new responses
This commit is contained in:
@@ -35,6 +35,8 @@ export const parsePublicTypebotToTypebot = (
|
||||
folderId: existingTypebot.folderId,
|
||||
icon: existingTypebot.icon,
|
||||
workspaceId: existingTypebot.workspaceId,
|
||||
isArchived: existingTypebot.isArchived,
|
||||
isClosed: existingTypebot.isClosed,
|
||||
})
|
||||
|
||||
export const createPublishedTypebot = async (
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
import { sendRequest } from 'utils'
|
||||
|
||||
export const deletePublishedTypebotQuery = ({
|
||||
publishedTypebotId,
|
||||
typebotId,
|
||||
}: {
|
||||
publishedTypebotId: string
|
||||
typebotId: string
|
||||
}) =>
|
||||
sendRequest({
|
||||
method: 'DELETE',
|
||||
url: `/api/publicTypebots/${publishedTypebotId}?typebotId=${typebotId}`,
|
||||
})
|
||||
@@ -415,6 +415,8 @@ export const parseNewTypebot = ({
|
||||
| 'publicId'
|
||||
| 'customDomain'
|
||||
| 'icon'
|
||||
| 'isArchived'
|
||||
| 'isClosed'
|
||||
> => {
|
||||
const startGroupId = cuid()
|
||||
const startBlockId = cuid()
|
||||
|
||||
Reference in New Issue
Block a user