Skip to content

Commit

Permalink
feat: add action request type to cardv2 button (CT-965) (#368)
Browse files Browse the repository at this point in the history
This allows cards to have the URL action type

Co-authored-by: Filipe Merker <filipe.merker@voiceflow.com>
  • Loading branch information
filipemerker and filipemerker committed Sep 16, 2022
1 parent 200d2ea commit 4acf87e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/base-types/src/node/cardV2.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GeneralRequestButton } from '@base-types/request';
import { ActionRequestButton, GeneralRequestButton } from '@base-types/request';
import { SlateTextValue } from '@base-types/text';
import { Nullable } from '@voiceflow/common';

Expand Down Expand Up @@ -40,7 +40,8 @@ export interface Step<Data = StepData> extends BaseStep<Data, StepPorts> {
type: NodeType.CARD_V2;
}

type CardDataWithGeneralButton = CardV2Data<GeneralRequestButton>;
type CardDataWithGeneralButton = CardV2Data<GeneralRequestButton | ActionRequestButton>;

export interface Node extends BaseNode, NodeNextID, BaseNoReplyNodeData, BaseNoMatchNodeData, CardDataWithGeneralButton {
type: NodeType.CARD_V2;
isBlocking: boolean;
Expand Down

0 comments on commit 4acf87e

Please sign in to comment.