2
0

refactor: ♻️ Rename step to block

This commit is contained in:
Baptiste Arnaud
2022-06-11 07:27:38 +02:00
parent 8751766d0e
commit 2df8338505
297 changed files with 4292 additions and 3989 deletions

View File

@ -11,10 +11,10 @@ import {
export const getGoogleSheetsConsentScreenUrl = (
redirectUrl: string,
stepId: string,
blockId: string,
workspaceId?: string
) => {
const queryParams = stringify({ redirectUrl, stepId, workspaceId })
const queryParams = stringify({ redirectUrl, blockId, workspaceId })
return `/api/credentials/google-sheets/consent-url?${queryParams}`
}
@ -75,10 +75,10 @@ export const useSheets = ({
export const executeWebhook = (
typebotId: string,
variables: Variable[],
{ blockId, stepId }: { blockId: string; stepId: string }
{ blockId }: { blockId: string }
) =>
sendRequest<WebhookResponse>({
url: `${process.env.NEXT_PUBLIC_VIEWER_URL}/api/typebots/${typebotId}/blocks/${blockId}/steps/${stepId}/executeWebhook`,
url: `${process.env.NEXT_PUBLIC_VIEWER_URL}/api/typebots/${typebotId}/blocks/${blockId}/executeWebhook`,
method: 'POST',
body: {
variables,