Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion integrations/hubspot/integration.definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default new IntegrationDefinition({
name: 'hubspot',
title: 'HubSpot',
description: 'Manage contacts, tickets and more from your chatbot.',
version: '6.0.7',
version: '6.0.8',
readme: 'hub.md',
icon: 'icon.svg',
configuration: {
Expand Down
18 changes: 17 additions & 1 deletion integrations/hubspot/src/webhook/handlers/oauth-wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,23 @@ const HITL_SCOPES = [
'files',
]

const _startStep: oauthWizard.WizardStepHandler<bp.HandlerProps> = async ({ client, ctx, query, responses }) => {
const _startStep: oauthWizard.WizardStepHandler<bp.HandlerProps> = async ({
client,
ctx,
query,
selectedChoice,
responses,
}) => {
if (selectedChoice) {
await client.setState({
type: 'integration',
name: 'hitlSetupWizard',
id: ctx.integrationId,
payload: { enableHitl: selectedChoice === 'with-hitl' },
})
return responses.redirectToStep('oauth-redirect')
}

const environmentPayload = {
source: query.get('source') ?? undefined,
env: z.enum(['preview', 'production']).catch('preview').parse(query.get('env')),
Expand Down
Loading