@voiceflow/base-types 2.22.0 → 2.23.2
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.
- package/build/common/node/cardV2.d.ts +30 -0
- package/build/common/node/cardV2.js +8 -0
- package/build/common/node/constants.d.ts +1 -0
- package/build/common/node/constants.js +1 -0
- package/build/common/node/index.d.ts +1 -0
- package/build/common/node/index.js +2 -1
- package/build/common/node/push.d.ts +1 -2
- package/build/esm/node/cardV2.d.ts +30 -0
- package/build/esm/node/cardV2.js +5 -0
- package/build/esm/node/constants.d.ts +1 -0
- package/build/esm/node/constants.js +1 -0
- package/build/esm/node/index.d.ts +1 -0
- package/build/esm/node/index.js +1 -0
- package/build/esm/node/push.d.ts +1 -2
- package/package.json +2 -2
|
@@ -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,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CardLayout = void 0;
|
|
4
|
+
var CardLayout;
|
|
5
|
+
(function (CardLayout) {
|
|
6
|
+
CardLayout["CAROUSEL"] = "Carousel";
|
|
7
|
+
CardLayout["LIST"] = "List";
|
|
8
|
+
})(CardLayout = exports.CardLayout || (exports.CardLayout = {}));
|
|
@@ -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);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Nullable } from "../types";
|
|
2
2
|
import { NodeType } from './constants';
|
|
3
|
-
import { BaseCommand,
|
|
3
|
+
import { BaseCommand, BaseStep, NodeID, SlotMappings } from './utils';
|
|
4
4
|
export interface StepData extends SlotMappings {
|
|
5
5
|
name: string;
|
|
6
6
|
intent: Nullable<string>;
|
|
7
7
|
diagramID: Nullable<string>;
|
|
8
|
-
ports: BasePort[];
|
|
9
8
|
}
|
|
10
9
|
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
11
10
|
type: NodeType.COMMAND;
|
|
@@ -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
|
+
}
|
|
@@ -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';
|
package/build/esm/node/index.js
CHANGED
|
@@ -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/build/esm/node/push.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Nullable } from "../types";
|
|
2
2
|
import { NodeType } from './constants';
|
|
3
|
-
import { BaseCommand,
|
|
3
|
+
import { BaseCommand, BaseStep, NodeID, SlotMappings } from './utils';
|
|
4
4
|
export interface StepData extends SlotMappings {
|
|
5
5
|
name: string;
|
|
6
6
|
intent: Nullable<string>;
|
|
7
7
|
diagramID: Nullable<string>;
|
|
8
|
-
ports: BasePort[];
|
|
9
8
|
}
|
|
10
9
|
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
11
10
|
type: NodeType.COMMAND;
|
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.
|
|
4
|
+
"version": "2.23.2",
|
|
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": "
|
|
46
|
+
"gitHead": "5ce45bb898b58ffd3489224a09ebfc6d5211d003"
|
|
47
47
|
}
|