@voiceflow/base-types 2.33.0 → 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.
@@ -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 {
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ButtonAction = void 0;
4
+ /**
5
+ * @deprecated use `actions` instead
6
+ */
4
7
  var ButtonAction;
5
8
  (function (ButtonAction) {
6
9
  ButtonAction["URL"] = "URL";
@@ -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 {
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ChoiceAction = void 0;
4
+ /**
5
+ * @deprecated use `actions` instead
6
+ */
4
7
  var ChoiceAction;
5
8
  (function (ChoiceAction) {
6
9
  ChoiceAction["PATH"] = "PATH";
@@ -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 {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated use `actions` instead
3
+ */
1
4
  export var ButtonAction;
2
5
  (function (ButtonAction) {
3
6
  ButtonAction["URL"] = "URL";
@@ -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 {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated use `actions` instead
3
+ */
1
4
  export var ChoiceAction;
2
5
  (function (ChoiceAction) {
3
6
  ChoiceAction["PATH"] = "PATH";
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.33.0",
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": "00c2ca540070ed84d0245987b065de803fcca3b5"
46
+ "gitHead": "a4294d7c4afe3a3cdbe06ac210c4d7519bfeaf33"
47
47
  }