@voiceflow/base-types 2.23.3 → 2.24.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.
@@ -2,8 +2,6 @@ import { BaseCommand, BaseNode, Variable } from './base';
2
2
  export interface Model<Node extends BaseNode = BaseNode, Command extends BaseCommand = BaseCommand> {
3
3
  id: string;
4
4
  startId: string;
5
- /** @deprecated in favor of versionID */
6
- skill_id: string;
7
5
  versionID: string;
8
6
  name?: string;
9
7
  lines: Record<string, Node>;
@@ -1,6 +1,6 @@
1
1
  import { Nullable } from "../types";
2
2
  import { NodeType } from './constants';
3
- import { BaseCommand, BaseStep, NodeID, SlotMappings } from './utils';
3
+ import { BaseCommand, BaseStep, CommandType, NodeID, SlotMappings } from './utils';
4
4
  export declare enum IntentAvailability {
5
5
  LOCAL = "LOCAL",
6
6
  GLOBAL = "GLOBAL"
@@ -17,7 +17,7 @@ export interface Step<Data = StepData> extends BaseStep<Data> {
17
17
  * use Node.Utils.AnyCommand for other platforms
18
18
  */
19
19
  export interface Command extends BaseCommand, Required<SlotMappings> {
20
- type: NodeType.INTENT;
20
+ type: CommandType.JUMP;
21
21
  next: NodeID;
22
22
  intent: string;
23
23
  diagramID?: string;
@@ -1,6 +1,6 @@
1
1
  import { Nullable } from "../types";
2
2
  import { NodeType } from './constants';
3
- import { BaseCommand, BaseStep, NodeID, SlotMappings } from './utils';
3
+ import { BaseCommand, BaseStep, CommandType, NodeID, SlotMappings } from './utils';
4
4
  export interface StepData extends SlotMappings {
5
5
  name: string;
6
6
  intent: Nullable<string>;
@@ -14,7 +14,7 @@ export interface Step<Data = StepData> extends BaseStep<Data> {
14
14
  * use Node.Utils.AnyCommand for other platforms
15
15
  */
16
16
  export interface Command extends BaseCommand, Required<SlotMappings> {
17
- type: NodeType.COMMAND;
17
+ type: CommandType.PUSH;
18
18
  next?: NodeID;
19
19
  intent: string;
20
20
  diagram_id?: string;
@@ -2,8 +2,6 @@ import { BaseCommand, BaseNode, Variable } from './base';
2
2
  export interface Model<Node extends BaseNode = BaseNode, Command extends BaseCommand = BaseCommand> {
3
3
  id: string;
4
4
  startId: string;
5
- /** @deprecated in favor of versionID */
6
- skill_id: string;
7
5
  versionID: string;
8
6
  name?: string;
9
7
  lines: Record<string, Node>;
@@ -1,6 +1,6 @@
1
1
  import { Nullable } from "../types";
2
2
  import { NodeType } from './constants';
3
- import { BaseCommand, BaseStep, NodeID, SlotMappings } from './utils';
3
+ import { BaseCommand, BaseStep, CommandType, NodeID, SlotMappings } from './utils';
4
4
  export declare enum IntentAvailability {
5
5
  LOCAL = "LOCAL",
6
6
  GLOBAL = "GLOBAL"
@@ -17,7 +17,7 @@ export interface Step<Data = StepData> extends BaseStep<Data> {
17
17
  * use Node.Utils.AnyCommand for other platforms
18
18
  */
19
19
  export interface Command extends BaseCommand, Required<SlotMappings> {
20
- type: NodeType.INTENT;
20
+ type: CommandType.JUMP;
21
21
  next: NodeID;
22
22
  intent: string;
23
23
  diagramID?: string;
@@ -1,6 +1,6 @@
1
1
  import { Nullable } from "../types";
2
2
  import { NodeType } from './constants';
3
- import { BaseCommand, BaseStep, NodeID, SlotMappings } from './utils';
3
+ import { BaseCommand, BaseStep, CommandType, NodeID, SlotMappings } from './utils';
4
4
  export interface StepData extends SlotMappings {
5
5
  name: string;
6
6
  intent: Nullable<string>;
@@ -14,7 +14,7 @@ export interface Step<Data = StepData> extends BaseStep<Data> {
14
14
  * use Node.Utils.AnyCommand for other platforms
15
15
  */
16
16
  export interface Command extends BaseCommand, Required<SlotMappings> {
17
- type: NodeType.COMMAND;
17
+ type: CommandType.PUSH;
18
18
  next?: NodeID;
19
19
  intent: string;
20
20
  diagram_id?: string;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@voiceflow/base-types",
3
3
  "description": "Voiceflow base project types",
4
- "version": "2.23.3",
4
+ "version": "2.24.0",
5
5
  "author": "Voiceflow",
6
6
  "bugs": {
7
7
  "url": "https://github.com/voiceflow/libs/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@voiceflow/common": "^7.26.0",
10
+ "@voiceflow/common": "^7.26.1",
11
11
  "slate": "0.73.0"
12
12
  },
13
13
  "files": [
@@ -43,5 +43,5 @@
43
43
  "test:smoke": "exit 0",
44
44
  "test:unit": "exit 0"
45
45
  },
46
- "gitHead": "5d2192c396458db5ed76a5b59b6b726b474df995"
46
+ "gitHead": "be263549ffb37914ec57409d5a43e9cd631a4fdd"
47
47
  }