@voiceflow/chat-types 2.6.12 → 2.7.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.
- package/build/common/node/cardV2.d.ts +12 -0
- package/build/common/node/cardV2.js +2 -0
- package/build/common/node/index.d.ts +1 -0
- package/build/common/node/index.js +2 -1
- package/build/common/version/settings.js +1 -1
- package/build/esm/node/cardV2.d.ts +12 -0
- package/build/esm/node/cardV2.js +1 -0
- package/build/esm/node/index.d.ts +1 -0
- package/build/esm/node/index.js +1 -0
- package/build/esm/version/settings.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseNode, Nullable } from '@voiceflow/base-types';
|
|
2
|
+
import { NodeNoMatch, NodeNoReply, StepNoMatch, StepNoReply } from './utils';
|
|
3
|
+
export interface StepData extends BaseNode.CardV2.StepData {
|
|
4
|
+
noReply?: Nullable<StepNoReply>;
|
|
5
|
+
noMatch?: Nullable<StepNoMatch>;
|
|
6
|
+
}
|
|
7
|
+
export interface Step<Data = StepData> extends BaseNode.CardV2.Step<Data> {
|
|
8
|
+
}
|
|
9
|
+
export interface Node extends BaseNode.CardV2.Node {
|
|
10
|
+
noReply?: Nullable<NodeNoReply>;
|
|
11
|
+
noMatch?: Nullable<NodeNoMatch>;
|
|
12
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as Buttons from './buttons';
|
|
2
2
|
export * as Capture from './capture';
|
|
3
3
|
export * as CaptureV2 from './captureV2';
|
|
4
|
+
export * as CardV2 from './cardV2';
|
|
4
5
|
export * as Interaction from './interaction';
|
|
5
6
|
export * as Prompt from './prompt';
|
|
6
7
|
export * as Utils from './utils';
|
|
@@ -19,10 +19,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.Utils = exports.Prompt = exports.Interaction = exports.CaptureV2 = exports.Capture = exports.Buttons = void 0;
|
|
22
|
+
exports.Utils = exports.Prompt = exports.Interaction = exports.CardV2 = exports.CaptureV2 = exports.Capture = exports.Buttons = void 0;
|
|
23
23
|
exports.Buttons = __importStar(require("./buttons"));
|
|
24
24
|
exports.Capture = __importStar(require("./capture"));
|
|
25
25
|
exports.CaptureV2 = __importStar(require("./captureV2"));
|
|
26
|
+
exports.CardV2 = __importStar(require("./cardV2"));
|
|
26
27
|
exports.Interaction = __importStar(require("./interaction"));
|
|
27
28
|
exports.Prompt = __importStar(require("./prompt"));
|
|
28
29
|
exports.Utils = __importStar(require("./utils"));
|
|
@@ -14,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.defaultSettings = exports.defaultMessageDelay = void 0;
|
|
15
15
|
const utils_1 = require("../utils");
|
|
16
16
|
const base_types_1 = require("@voiceflow/base-types");
|
|
17
|
-
const defaultMessageDelay = ({ durationMilliseconds =
|
|
17
|
+
const defaultMessageDelay = ({ durationMilliseconds = 1000 } = {}) => ({
|
|
18
18
|
durationMilliseconds,
|
|
19
19
|
});
|
|
20
20
|
exports.defaultMessageDelay = defaultMessageDelay;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseNode, Nullable } from '@voiceflow/base-types';
|
|
2
|
+
import { NodeNoMatch, NodeNoReply, StepNoMatch, StepNoReply } from './utils';
|
|
3
|
+
export interface StepData extends BaseNode.CardV2.StepData {
|
|
4
|
+
noReply?: Nullable<StepNoReply>;
|
|
5
|
+
noMatch?: Nullable<StepNoMatch>;
|
|
6
|
+
}
|
|
7
|
+
export interface Step<Data = StepData> extends BaseNode.CardV2.Step<Data> {
|
|
8
|
+
}
|
|
9
|
+
export interface Node extends BaseNode.CardV2.Node {
|
|
10
|
+
noReply?: Nullable<NodeNoReply>;
|
|
11
|
+
noMatch?: Nullable<NodeNoMatch>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as Buttons from './buttons';
|
|
2
2
|
export * as Capture from './capture';
|
|
3
3
|
export * as CaptureV2 from './captureV2';
|
|
4
|
+
export * as CardV2 from './cardV2';
|
|
4
5
|
export * as Interaction from './interaction';
|
|
5
6
|
export * as Prompt from './prompt';
|
|
6
7
|
export * as Utils from './utils';
|
package/build/esm/node/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * as Buttons from './buttons';
|
|
2
2
|
export * as Capture from './capture';
|
|
3
3
|
export * as CaptureV2 from './captureV2';
|
|
4
|
+
export * as CardV2 from './cardV2';
|
|
4
5
|
export * as Interaction from './interaction';
|
|
5
6
|
export * as Prompt from './prompt';
|
|
6
7
|
export * as Utils from './utils';
|
|
@@ -11,7 +11,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { prompt } from "../utils";
|
|
13
13
|
import { BaseVersion } from '@voiceflow/base-types';
|
|
14
|
-
export const defaultMessageDelay = ({ durationMilliseconds =
|
|
14
|
+
export const defaultMessageDelay = ({ durationMilliseconds = 1000 } = {}) => ({
|
|
15
15
|
durationMilliseconds,
|
|
16
16
|
});
|
|
17
17
|
export const defaultSettings = (_a = {}) => {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voiceflow/chat-types",
|
|
3
3
|
"description": "Voiceflow chat project types",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.7.0",
|
|
5
5
|
"author": "Voiceflow",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/voiceflow/libs/issues"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@voiceflow/base-types": "^2.
|
|
10
|
+
"@voiceflow/base-types": "^2.23.0"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
13
|
"build"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"test:integration": "exit 0",
|
|
42
42
|
"test:unit": "exit 0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "6076bf95c2b07f80f73d6eee4eb0281b211e0394"
|
|
45
45
|
}
|