@voiceflow/base-types 2.24.2 → 2.25.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/models/base/node.d.ts +5 -0
- package/build/common/node/constants.d.ts +1 -0
- package/build/common/node/constants.js +1 -0
- package/build/common/node/goTo.d.ts +9 -1
- package/build/common/node/goToBlock.d.ts +14 -0
- package/build/common/node/goToBlock.js +2 -0
- package/build/esm/models/base/node.d.ts +5 -0
- package/build/esm/node/constants.d.ts +1 -0
- package/build/esm/node/constants.js +1 -0
- package/build/esm/node/goTo.d.ts +9 -1
- package/build/esm/node/goToBlock.d.ts +14 -0
- package/build/esm/node/goToBlock.js +1 -0
- package/package.json +2 -2
|
@@ -37,3 +37,8 @@ export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPo
|
|
|
37
37
|
}
|
|
38
38
|
export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
|
|
39
39
|
}
|
|
40
|
+
export interface ActionsData {
|
|
41
|
+
steps: string[];
|
|
42
|
+
}
|
|
43
|
+
export interface Actions extends BaseDiagramNode<ActionsData> {
|
|
44
|
+
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { IntentRequest } from "../request";
|
|
2
|
+
import { Nullable } from "../types";
|
|
2
3
|
import { NodeType } from './constants';
|
|
3
|
-
import { BaseNode, BaseNoMatchNodeData } from './utils';
|
|
4
|
+
import { BaseNode, BaseNoMatchNodeData, BaseStep } from './utils';
|
|
5
|
+
export interface StepData {
|
|
6
|
+
intent: Nullable<string>;
|
|
7
|
+
diagramID: Nullable<string>;
|
|
8
|
+
}
|
|
9
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
10
|
+
type: NodeType.GOTO;
|
|
11
|
+
}
|
|
4
12
|
export interface Node extends BaseNode, BaseNoMatchNodeData {
|
|
5
13
|
type: NodeType.GOTO;
|
|
6
14
|
request: IntentRequest;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Nullable } from "../types";
|
|
2
|
+
import { NodeType } from './constants';
|
|
3
|
+
import { BaseNode, BaseStep, NodeNextID } from './utils';
|
|
4
|
+
export interface StepData {
|
|
5
|
+
blockID: Nullable<string>;
|
|
6
|
+
diagramID: Nullable<string>;
|
|
7
|
+
}
|
|
8
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
9
|
+
type: NodeType.GOTO_BLOCK;
|
|
10
|
+
}
|
|
11
|
+
export interface Node extends BaseNode, NodeNextID {
|
|
12
|
+
type: NodeType.GOTO_BLOCK;
|
|
13
|
+
diagramID: Nullable<string>;
|
|
14
|
+
}
|
|
@@ -37,3 +37,8 @@ export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPo
|
|
|
37
37
|
}
|
|
38
38
|
export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
|
|
39
39
|
}
|
|
40
|
+
export interface ActionsData {
|
|
41
|
+
steps: string[];
|
|
42
|
+
}
|
|
43
|
+
export interface Actions extends BaseDiagramNode<ActionsData> {
|
|
44
|
+
}
|
package/build/esm/node/goTo.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { IntentRequest } from "../request";
|
|
2
|
+
import { Nullable } from "../types";
|
|
2
3
|
import { NodeType } from './constants';
|
|
3
|
-
import { BaseNode, BaseNoMatchNodeData } from './utils';
|
|
4
|
+
import { BaseNode, BaseNoMatchNodeData, BaseStep } from './utils';
|
|
5
|
+
export interface StepData {
|
|
6
|
+
intent: Nullable<string>;
|
|
7
|
+
diagramID: Nullable<string>;
|
|
8
|
+
}
|
|
9
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
10
|
+
type: NodeType.GOTO;
|
|
11
|
+
}
|
|
4
12
|
export interface Node extends BaseNode, BaseNoMatchNodeData {
|
|
5
13
|
type: NodeType.GOTO;
|
|
6
14
|
request: IntentRequest;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Nullable } from "../types";
|
|
2
|
+
import { NodeType } from './constants';
|
|
3
|
+
import { BaseNode, BaseStep, NodeNextID } from './utils';
|
|
4
|
+
export interface StepData {
|
|
5
|
+
blockID: Nullable<string>;
|
|
6
|
+
diagramID: Nullable<string>;
|
|
7
|
+
}
|
|
8
|
+
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
9
|
+
type: NodeType.GOTO_BLOCK;
|
|
10
|
+
}
|
|
11
|
+
export interface Node extends BaseNode, NodeNextID {
|
|
12
|
+
type: NodeType.GOTO_BLOCK;
|
|
13
|
+
diagramID: Nullable<string>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
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.25.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": "
|
|
46
|
+
"gitHead": "001c3bfb3c45d7496cc8010611d9fd1c9f452bba"
|
|
47
47
|
}
|