@voiceflow/base-types 2.32.1 → 2.33.1
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/port.d.ts +1 -1
- package/build/common/models/version/index.d.ts +2 -0
- package/build/common/node/buttons.d.ts +13 -1
- package/build/common/node/buttons.js +3 -0
- package/build/common/node/interaction.d.ts +13 -1
- package/build/common/node/interaction.js +3 -0
- package/build/esm/models/base/port.d.ts +1 -1
- package/build/esm/models/version/index.d.ts +2 -0
- package/build/esm/node/buttons.d.ts +13 -1
- package/build/esm/node/buttons.js +3 -0
- package/build/esm/node/interaction.d.ts +13 -1
- package/build/esm/node/interaction.js +3 -0
- package/package.json +2 -2
|
@@ -12,7 +12,7 @@ export interface BasePort {
|
|
|
12
12
|
type: string | PortType;
|
|
13
13
|
target: Nullable<string>;
|
|
14
14
|
}
|
|
15
|
-
export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort>>, Dynamic extends BasePort[] = BasePort[], ByKey extends Record<string, BasePort
|
|
15
|
+
export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort>>, Dynamic extends BasePort[] = BasePort[], ByKey extends Partial<Record<string, BasePort>> = Partial<Record<string, BasePort>>> {
|
|
16
16
|
builtIn: Builtin;
|
|
17
17
|
dynamic: Dynamic;
|
|
18
18
|
byKey: ByKey;
|
|
@@ -2,16 +2,28 @@ import { Nullable } from '@voiceflow/common';
|
|
|
2
2
|
import { StepButtonsLayout } from '../button';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseNoMatchStepData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, DataID, NoMatchNoReplyStepPorts, StepIntentScope } from './utils';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use `actions` instead
|
|
7
|
+
*/
|
|
5
8
|
export declare enum ButtonAction {
|
|
6
9
|
URL = "URL",
|
|
7
10
|
PATH = "PATH",
|
|
8
11
|
INTENT = "INTENT"
|
|
9
12
|
}
|
|
10
13
|
export interface Button extends DataID {
|
|
11
|
-
url?: Nullable<string>;
|
|
12
14
|
name: string;
|
|
13
15
|
intent?: Nullable<string>;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated use `actions` instead
|
|
18
|
+
*/
|
|
19
|
+
url?: Nullable<string>;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated use `actions` instead
|
|
22
|
+
*/
|
|
14
23
|
actions: ButtonAction[];
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated use `actions` instead
|
|
26
|
+
*/
|
|
15
27
|
diagramID?: Nullable<string>;
|
|
16
28
|
}
|
|
17
29
|
export interface StepData extends StepButtonsLayout, BaseNoReplyStepData, StepIntentScope, BaseNoMatchStepData {
|
|
@@ -2,17 +2,29 @@ import { AnyRequestButton } from "../request";
|
|
|
2
2
|
import { Nullable } from '@voiceflow/common';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseEvent, BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, BaseTraceFrame, DeprecatedBaseNodeNoMatch, NodeIntentScope, NodeNextID, NoMatchNoReplyStepPorts, SlotMappings, StepIntentScope, TraceType } from './utils';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use `actions` instead
|
|
7
|
+
*/
|
|
5
8
|
export declare enum ChoiceAction {
|
|
6
9
|
PATH = "PATH",
|
|
7
10
|
GO_TO = "GO_TO"
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated use `actions` instead
|
|
14
|
+
*/
|
|
9
15
|
export interface ChoiceGoTo {
|
|
10
16
|
intentID: Nullable<string>;
|
|
11
17
|
diagramID?: Nullable<string>;
|
|
12
18
|
}
|
|
13
19
|
export interface Choice extends SlotMappings {
|
|
14
|
-
goTo?: ChoiceGoTo;
|
|
15
20
|
intent: string;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated use `actions` instead
|
|
23
|
+
*/
|
|
24
|
+
goTo?: ChoiceGoTo;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated use `actions` instead
|
|
27
|
+
*/
|
|
16
28
|
action?: ChoiceAction;
|
|
17
29
|
}
|
|
18
30
|
export interface StepData extends BaseNoReplyStepData, StepIntentScope, BaseNoMatchStepData {
|
|
@@ -12,7 +12,7 @@ export interface BasePort {
|
|
|
12
12
|
type: string | PortType;
|
|
13
13
|
target: Nullable<string>;
|
|
14
14
|
}
|
|
15
|
-
export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort>>, Dynamic extends BasePort[] = BasePort[], ByKey extends Record<string, BasePort
|
|
15
|
+
export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort>>, Dynamic extends BasePort[] = BasePort[], ByKey extends Partial<Record<string, BasePort>> = Partial<Record<string, BasePort>>> {
|
|
16
16
|
builtIn: Builtin;
|
|
17
17
|
dynamic: Dynamic;
|
|
18
18
|
byKey: ByKey;
|
|
@@ -2,16 +2,28 @@ import { Nullable } from '@voiceflow/common';
|
|
|
2
2
|
import { StepButtonsLayout } from '../button';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseNoMatchStepData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, DataID, NoMatchNoReplyStepPorts, StepIntentScope } from './utils';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use `actions` instead
|
|
7
|
+
*/
|
|
5
8
|
export declare enum ButtonAction {
|
|
6
9
|
URL = "URL",
|
|
7
10
|
PATH = "PATH",
|
|
8
11
|
INTENT = "INTENT"
|
|
9
12
|
}
|
|
10
13
|
export interface Button extends DataID {
|
|
11
|
-
url?: Nullable<string>;
|
|
12
14
|
name: string;
|
|
13
15
|
intent?: Nullable<string>;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated use `actions` instead
|
|
18
|
+
*/
|
|
19
|
+
url?: Nullable<string>;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated use `actions` instead
|
|
22
|
+
*/
|
|
14
23
|
actions: ButtonAction[];
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated use `actions` instead
|
|
26
|
+
*/
|
|
15
27
|
diagramID?: Nullable<string>;
|
|
16
28
|
}
|
|
17
29
|
export interface StepData extends StepButtonsLayout, BaseNoReplyStepData, StepIntentScope, BaseNoMatchStepData {
|
|
@@ -2,17 +2,29 @@ import { AnyRequestButton } from "../request";
|
|
|
2
2
|
import { Nullable } from '@voiceflow/common';
|
|
3
3
|
import { NodeType } from './constants';
|
|
4
4
|
import { BaseEvent, BaseNode, BaseNoMatchNodeData, BaseNoMatchStepData, BaseNoReplyNodeData, BaseNoReplyStepData, BaseStep, BaseStepNoMatch, BaseTraceFrame, DeprecatedBaseNodeNoMatch, NodeIntentScope, NodeNextID, NoMatchNoReplyStepPorts, SlotMappings, StepIntentScope, TraceType } from './utils';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated use `actions` instead
|
|
7
|
+
*/
|
|
5
8
|
export declare enum ChoiceAction {
|
|
6
9
|
PATH = "PATH",
|
|
7
10
|
GO_TO = "GO_TO"
|
|
8
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated use `actions` instead
|
|
14
|
+
*/
|
|
9
15
|
export interface ChoiceGoTo {
|
|
10
16
|
intentID: Nullable<string>;
|
|
11
17
|
diagramID?: Nullable<string>;
|
|
12
18
|
}
|
|
13
19
|
export interface Choice extends SlotMappings {
|
|
14
|
-
goTo?: ChoiceGoTo;
|
|
15
20
|
intent: string;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated use `actions` instead
|
|
23
|
+
*/
|
|
24
|
+
goTo?: ChoiceGoTo;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated use `actions` instead
|
|
27
|
+
*/
|
|
16
28
|
action?: ChoiceAction;
|
|
17
29
|
}
|
|
18
30
|
export interface StepData extends BaseNoReplyStepData, StepIntentScope, BaseNoMatchStepData {
|
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.33.1",
|
|
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": "a4294d7c4afe3a3cdbe06ac210c4d7519bfeaf33"
|
|
47
47
|
}
|