@voiceflow/base-types 2.22.0 → 2.23.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.
@@ -0,0 +1,30 @@
1
+ import { Nullable } from "../types";
2
+ import { NodeType } from './constants';
3
+ import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, DataID, NoMatchNoReplyStepPorts } from './utils';
4
+ export declare enum CardLayout {
5
+ CAROUSEL = "Carousel",
6
+ LIST = "List"
7
+ }
8
+ export interface CardButton extends DataID {
9
+ name: string;
10
+ intent?: Nullable<string>;
11
+ }
12
+ export interface Card extends DataID {
13
+ imageUrl: string | null;
14
+ title: string;
15
+ description: string;
16
+ buttons: CardButton[];
17
+ }
18
+ export interface StepPorts extends NoMatchNoReplyStepPorts {
19
+ }
20
+ export interface StepData extends BaseNoMatchStepData, BaseNoReplyStepData {
21
+ layout: CardLayout;
22
+ cards: Card[];
23
+ }
24
+ export interface Step<Data = StepData> extends BaseStep<Data> {
25
+ type: NodeType.CARDV2;
26
+ }
27
+ export interface Node extends BaseNode, BaseNoReplyNodeData, BaseNoMatchNodeData {
28
+ type: NodeType.CARDV2;
29
+ cards: Card[];
30
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,7 @@ export declare enum NodeType {
3
3
  SPEAK = "speak",
4
4
  START = "start",
5
5
  CARD = "card",
6
+ CARDV2 = "cardV2",
6
7
  BUTTONS = "buttons",
7
8
  INTERACTION = "interaction",
8
9
  SET = "set",
@@ -7,6 +7,7 @@ var NodeType;
7
7
  NodeType["SPEAK"] = "speak";
8
8
  NodeType["START"] = "start";
9
9
  NodeType["CARD"] = "card";
10
+ NodeType["CARDV2"] = "cardV2";
10
11
  NodeType["BUTTONS"] = "buttons";
11
12
  NodeType["INTERACTION"] = "interaction";
12
13
  // logic
@@ -23,6 +23,7 @@ export * as Buttons from './buttons';
23
23
  export * as Capture from './capture';
24
24
  export * as CaptureV2 from './captureV2';
25
25
  export * as Card from './card';
26
+ export * as CardV2 from './cardV2';
26
27
  export * as Code from './code';
27
28
  export * as Component from './component';
28
29
  export * from './constants';
@@ -22,13 +22,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
22
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.Zapier = exports.Visual = exports.Utils = exports.Text = exports.Stream = exports.Start = exports.Speak = exports.SetV2 = exports.Set = exports.Random = exports.Command = exports.Prompt = exports.Intent = exports.Interaction = exports.Integration = exports.IfV2 = exports.If = exports.GoTo = exports.GoogleSheets = exports.General = exports.Flow = exports.Exit = exports.Directive = exports.Component = exports.Code = exports.Card = exports.CaptureV2 = exports.Capture = exports.Buttons = exports.Api = exports._v1 = void 0;
25
+ exports.Zapier = exports.Visual = exports.Utils = exports.Text = exports.Stream = exports.Start = exports.Speak = exports.SetV2 = exports.Set = exports.Random = exports.Command = exports.Prompt = exports.Intent = exports.Interaction = exports.Integration = exports.IfV2 = exports.If = exports.GoTo = exports.GoogleSheets = exports.General = exports.Flow = exports.Exit = exports.Directive = exports.Component = exports.Code = exports.CardV2 = exports.Card = exports.CaptureV2 = exports.Capture = exports.Buttons = exports.Api = exports._v1 = void 0;
26
26
  exports._v1 = __importStar(require("./_v1"));
27
27
  exports.Api = __importStar(require("./api"));
28
28
  exports.Buttons = __importStar(require("./buttons"));
29
29
  exports.Capture = __importStar(require("./capture"));
30
30
  exports.CaptureV2 = __importStar(require("./captureV2"));
31
31
  exports.Card = __importStar(require("./card"));
32
+ exports.CardV2 = __importStar(require("./cardV2"));
32
33
  exports.Code = __importStar(require("./code"));
33
34
  exports.Component = __importStar(require("./component"));
34
35
  __exportStar(require("./constants"), exports);
@@ -0,0 +1,30 @@
1
+ import { Nullable } from "../types";
2
+ import { NodeType } from './constants';
3
+ import { BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, DataID, NoMatchNoReplyStepPorts } from './utils';
4
+ export declare enum CardLayout {
5
+ CAROUSEL = "Carousel",
6
+ LIST = "List"
7
+ }
8
+ export interface CardButton extends DataID {
9
+ name: string;
10
+ intent?: Nullable<string>;
11
+ }
12
+ export interface Card extends DataID {
13
+ imageUrl: string | null;
14
+ title: string;
15
+ description: string;
16
+ buttons: CardButton[];
17
+ }
18
+ export interface StepPorts extends NoMatchNoReplyStepPorts {
19
+ }
20
+ export interface StepData extends BaseNoMatchStepData, BaseNoReplyStepData {
21
+ layout: CardLayout;
22
+ cards: Card[];
23
+ }
24
+ export interface Step<Data = StepData> extends BaseStep<Data> {
25
+ type: NodeType.CARDV2;
26
+ }
27
+ export interface Node extends BaseNode, BaseNoReplyNodeData, BaseNoMatchNodeData {
28
+ type: NodeType.CARDV2;
29
+ cards: Card[];
30
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -3,6 +3,7 @@ export declare enum NodeType {
3
3
  SPEAK = "speak",
4
4
  START = "start",
5
5
  CARD = "card",
6
+ CARDV2 = "cardV2",
6
7
  BUTTONS = "buttons",
7
8
  INTERACTION = "interaction",
8
9
  SET = "set",
@@ -4,6 +4,7 @@ export var NodeType;
4
4
  NodeType["SPEAK"] = "speak";
5
5
  NodeType["START"] = "start";
6
6
  NodeType["CARD"] = "card";
7
+ NodeType["CARDV2"] = "cardV2";
7
8
  NodeType["BUTTONS"] = "buttons";
8
9
  NodeType["INTERACTION"] = "interaction";
9
10
  // logic
@@ -23,6 +23,7 @@ export * as Buttons from './buttons';
23
23
  export * as Capture from './capture';
24
24
  export * as CaptureV2 from './captureV2';
25
25
  export * as Card from './card';
26
+ export * as CardV2 from './cardV2';
26
27
  export * as Code from './code';
27
28
  export * as Component from './component';
28
29
  export * from './constants';
@@ -4,6 +4,7 @@ export * as Buttons from './buttons';
4
4
  export * as Capture from './capture';
5
5
  export * as CaptureV2 from './captureV2';
6
6
  export * as Card from './card';
7
+ export * as CardV2 from './cardV2';
7
8
  export * as Code from './code';
8
9
  export * as Component from './component';
9
10
  export * from './constants';
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.22.0",
4
+ "version": "2.23.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": "27f08c440d3a8f5abfe89c556ad53ae1309fb7a6"
46
+ "gitHead": "6076bf95c2b07f80f73d6eee4eb0281b211e0394"
47
47
  }