@voiceflow/base-types 2.37.0 → 2.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { GeneralRequestButton } from "../request";
2
2
  import { SlateTextValue } from "../text";
3
3
  import { Nullable } from '@voiceflow/common';
4
4
  import { NodeType } from './constants';
5
- import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseTraceFrame, DataID, NoMatchNoReplyStepPorts, TraceType } from './utils';
5
+ import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BaseTraceFrame, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, DataID, NodeNextID, TraceType } from './utils';
6
6
  export declare enum CarouselLayout {
7
7
  CAROUSEL = "Carousel",
8
8
  LIST = "List"
@@ -17,7 +17,9 @@ export interface CarouselCard<B = CarouselButton> extends DataID {
17
17
  description: SlateTextValue;
18
18
  buttons: B[];
19
19
  }
20
- export interface StepPorts extends NoMatchNoReplyStepPorts {
20
+ export interface StepBuiltInPorts extends BuiltInNextPort, BuiltInNoMatchNoReplyPorts {
21
+ }
22
+ export interface StepPorts extends BaseStepPorts<StepBuiltInPorts, []> {
21
23
  }
22
24
  export interface StepData extends BaseNoMatchStepData, BaseNoReplyStepData {
23
25
  layout: CarouselLayout;
@@ -27,16 +29,22 @@ export interface Step<Data = StepData> extends BaseStep<Data, StepPorts> {
27
29
  type: NodeType.CAROUSEL;
28
30
  }
29
31
  export declare type NodeCarouselCard = CarouselCard<GeneralRequestButton>;
30
- export interface Node extends BaseNode, BaseNoReplyNodeData, BaseNoMatchNodeData {
32
+ export interface Node extends BaseNode, NodeNextID, BaseNoReplyNodeData, BaseNoMatchNodeData {
31
33
  type: NodeType.CAROUSEL;
32
34
  cards: NodeCarouselCard[];
35
+ layout: CarouselLayout;
33
36
  isBlocking: boolean;
34
37
  }
38
+ export interface TraceCarouselCardDescription {
39
+ slate: SlateTextValue;
40
+ text: string;
41
+ }
35
42
  export interface TraceCarouselCard extends Omit<NodeCarouselCard, 'description'> {
36
- description: string;
43
+ description: TraceCarouselCardDescription;
37
44
  }
38
45
  export interface TraceFramePayload {
39
46
  cards: TraceCarouselCard[];
47
+ layout: CarouselLayout;
40
48
  }
41
49
  export interface TraceFrame extends BaseTraceFrame<TraceFramePayload> {
42
50
  type: TraceType.CAROUSEL;
@@ -1,3 +1,4 @@
1
+ import { TraceFrame as CarouselTrace } from "../node/carousel";
1
2
  import { TraceFrame as ExitTrace } from "../node/exit";
2
3
  import { TraceFrame as FlowTrace } from "../node/flow";
3
4
  import { TraceFrame as ChoiceTrace } from "../node/interaction";
@@ -8,6 +9,7 @@ import { BaseTraceFrame, TraceType } from "../node/utils";
8
9
  import { TraceFrame as VisualTrace } from "../node/visual";
9
10
  import { IntentRequest } from "../request";
10
11
  import { Log as RuntimeLog } from "../runtimeLogs";
12
+ export { TraceFrame as CarouselTrace } from "../node/carousel";
11
13
  export { TraceFrame as ExitTrace } from "../node/exit";
12
14
  export { TraceFrame as FlowTrace } from "../node/flow";
13
15
  export { TraceFrame as ChoiceTrace } from "../node/interaction";
@@ -58,4 +60,4 @@ export declare type LogTracePayload = RuntimeLog;
58
60
  export interface LogTrace extends BaseTraceFrame<LogTracePayload> {
59
61
  type: TraceType.LOG;
60
62
  }
61
- export declare type AnyTrace = ExitTrace | TextTrace | GoToTrace | FlowTrace | SpeakTrace | BlockTrace | DebugTrace | ChoiceTrace | StreamTrace | VisualTrace | NoReplyTrace | EntityFillingTrace | LogTrace;
63
+ export declare type AnyTrace = LogTrace | ExitTrace | TextTrace | GoToTrace | FlowTrace | SpeakTrace | BlockTrace | DebugTrace | ChoiceTrace | StreamTrace | VisualTrace | NoReplyTrace | CarouselTrace | EntityFillingTrace;
@@ -2,7 +2,7 @@ import { GeneralRequestButton } from "../request";
2
2
  import { SlateTextValue } from "../text";
3
3
  import { Nullable } from '@voiceflow/common';
4
4
  import { NodeType } from './constants';
5
- import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseTraceFrame, DataID, NoMatchNoReplyStepPorts, TraceType } from './utils';
5
+ import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepPorts, BaseTraceFrame, BuiltInNextPort, BuiltInNoMatchNoReplyPorts, DataID, NodeNextID, TraceType } from './utils';
6
6
  export declare enum CarouselLayout {
7
7
  CAROUSEL = "Carousel",
8
8
  LIST = "List"
@@ -17,7 +17,9 @@ export interface CarouselCard<B = CarouselButton> extends DataID {
17
17
  description: SlateTextValue;
18
18
  buttons: B[];
19
19
  }
20
- export interface StepPorts extends NoMatchNoReplyStepPorts {
20
+ export interface StepBuiltInPorts extends BuiltInNextPort, BuiltInNoMatchNoReplyPorts {
21
+ }
22
+ export interface StepPorts extends BaseStepPorts<StepBuiltInPorts, []> {
21
23
  }
22
24
  export interface StepData extends BaseNoMatchStepData, BaseNoReplyStepData {
23
25
  layout: CarouselLayout;
@@ -27,16 +29,22 @@ export interface Step<Data = StepData> extends BaseStep<Data, StepPorts> {
27
29
  type: NodeType.CAROUSEL;
28
30
  }
29
31
  export declare type NodeCarouselCard = CarouselCard<GeneralRequestButton>;
30
- export interface Node extends BaseNode, BaseNoReplyNodeData, BaseNoMatchNodeData {
32
+ export interface Node extends BaseNode, NodeNextID, BaseNoReplyNodeData, BaseNoMatchNodeData {
31
33
  type: NodeType.CAROUSEL;
32
34
  cards: NodeCarouselCard[];
35
+ layout: CarouselLayout;
33
36
  isBlocking: boolean;
34
37
  }
38
+ export interface TraceCarouselCardDescription {
39
+ slate: SlateTextValue;
40
+ text: string;
41
+ }
35
42
  export interface TraceCarouselCard extends Omit<NodeCarouselCard, 'description'> {
36
- description: string;
43
+ description: TraceCarouselCardDescription;
37
44
  }
38
45
  export interface TraceFramePayload {
39
46
  cards: TraceCarouselCard[];
47
+ layout: CarouselLayout;
40
48
  }
41
49
  export interface TraceFrame extends BaseTraceFrame<TraceFramePayload> {
42
50
  type: TraceType.CAROUSEL;
@@ -1,3 +1,4 @@
1
+ import { TraceFrame as CarouselTrace } from "../node/carousel";
1
2
  import { TraceFrame as ExitTrace } from "../node/exit";
2
3
  import { TraceFrame as FlowTrace } from "../node/flow";
3
4
  import { TraceFrame as ChoiceTrace } from "../node/interaction";
@@ -8,6 +9,7 @@ import { BaseTraceFrame, TraceType } from "../node/utils";
8
9
  import { TraceFrame as VisualTrace } from "../node/visual";
9
10
  import { IntentRequest } from "../request";
10
11
  import { Log as RuntimeLog } from "../runtimeLogs";
12
+ export { TraceFrame as CarouselTrace } from "../node/carousel";
11
13
  export { TraceFrame as ExitTrace } from "../node/exit";
12
14
  export { TraceFrame as FlowTrace } from "../node/flow";
13
15
  export { TraceFrame as ChoiceTrace } from "../node/interaction";
@@ -58,4 +60,4 @@ export declare type LogTracePayload = RuntimeLog;
58
60
  export interface LogTrace extends BaseTraceFrame<LogTracePayload> {
59
61
  type: TraceType.LOG;
60
62
  }
61
- export declare type AnyTrace = ExitTrace | TextTrace | GoToTrace | FlowTrace | SpeakTrace | BlockTrace | DebugTrace | ChoiceTrace | StreamTrace | VisualTrace | NoReplyTrace | EntityFillingTrace | LogTrace;
63
+ export declare type AnyTrace = LogTrace | ExitTrace | TextTrace | GoToTrace | FlowTrace | SpeakTrace | BlockTrace | DebugTrace | ChoiceTrace | StreamTrace | VisualTrace | NoReplyTrace | CarouselTrace | EntityFillingTrace;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@voiceflow/base-types",
3
3
  "description": "Voiceflow base project types",
4
- "version": "2.37.0",
4
+ "version": "2.38.0",
5
5
  "author": "Voiceflow",
6
6
  "bugs": {
7
7
  "url": "https://github.com/voiceflow/libs/issues"
@@ -43,5 +43,5 @@
43
43
  "test:smoke": "exit 0",
44
44
  "test:unit": "exit 0"
45
45
  },
46
- "gitHead": "1a3db4ce0d0b8185ab11d3856ab118f65f432a74"
46
+ "gitHead": "9caeeb30bbbc893e49197e30387524f47ff042ca"
47
47
  }