@voiceflow/base-types 2.30.0 → 2.31.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.
@@ -29,6 +29,7 @@ export interface Model<PlatformData extends AnyRecord, MemberPlatformData extend
29
29
  platform: string;
30
30
  linkType?: LinkType;
31
31
  prototype?: Prototype;
32
+ livePrototype?: Prototype;
32
33
  reportTags?: Record<string, ReportTag>;
33
34
  members: Member<MemberPlatformData>[];
34
35
  platformData: PlatformData;
@@ -14,7 +14,7 @@ export declare enum NodeType {
14
14
  CAPTURE = "capture",
15
15
  CAPTURE_V2 = "captureV2",
16
16
  GOTO = "goTo",
17
- GOTO_BLOCK = "goToBlock",
17
+ GOTO_NODE = "goToNode",
18
18
  API = "api",
19
19
  ZAPIER = "zapier",
20
20
  INTEGRATIONS = "integrations",
@@ -20,7 +20,7 @@ var NodeType;
20
20
  NodeType["CAPTURE_V2"] = "captureV2";
21
21
  // navigation
22
22
  NodeType["GOTO"] = "goTo";
23
- NodeType["GOTO_BLOCK"] = "goToBlock";
23
+ NodeType["GOTO_NODE"] = "goToNode";
24
24
  // integrations
25
25
  NodeType["API"] = "api";
26
26
  NodeType["ZAPIER"] = "zapier";
@@ -2,13 +2,13 @@ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, NodeNextID } from './utils';
4
4
  export interface StepData {
5
- blockID: Nullable<string>;
5
+ nodeID: Nullable<string>;
6
6
  diagramID: Nullable<string>;
7
7
  }
8
8
  export interface Step<Data = StepData> extends BaseStep<Data> {
9
- type: NodeType.GOTO_BLOCK;
9
+ type: NodeType.GOTO_NODE;
10
10
  }
11
11
  export interface Node extends BaseNode, NodeNextID {
12
- type: NodeType.GOTO_BLOCK;
12
+ type: NodeType.GOTO_NODE;
13
13
  diagramID: Nullable<string>;
14
14
  }
File without changes
@@ -7,7 +7,7 @@ import * as Flow from './flow';
7
7
  import * as General from './general';
8
8
  import * as GoogleSheets from './googleSheets';
9
9
  import * as GoTo from './goTo';
10
- import * as GoToBlock from './goToBlock';
10
+ import * as GoToNode from './goToNode';
11
11
  import * as If from './if';
12
12
  import * as IfV2 from './ifV2';
13
13
  import * as Integration from './integration';
@@ -34,7 +34,7 @@ export * as Flow from './flow';
34
34
  export * as General from './general';
35
35
  export * as GoogleSheets from './googleSheets';
36
36
  export * as GoTo from './goTo';
37
- export * as GoToBlock from './goToBlock';
37
+ export * as GoToNode from './goToNode';
38
38
  export * as If from './if';
39
39
  export * as IfV2 from './ifV2';
40
40
  export * as Integration from './integration';
@@ -52,6 +52,6 @@ export * as Text from './text';
52
52
  export * as Utils from './utils';
53
53
  export * as Visual from './visual';
54
54
  export * as Zapier from './zapier';
55
- export declare type AnyCommonStep = Set.Step | SetV2.Step | Flow.Step | Component.Step | Start.Step | Code.Step | Intent.Step | Command.Step | Api.Step | Exit.Step | Random.Step | Zapier.Step | GoogleSheets.Step | If.Step | IfV2.Step | General.Step | GoTo.Step | GoToBlock.Step | _v1.Step;
56
- export declare type AnyCommonNode = Set.Node | SetV2.Node | Flow.Node | Start.Node | Code.Node | Integration.Node | Exit.Node | Random.Node | General.Node | If.Node | IfV2.Node | GoTo.Node | GoToBlock.Node | _v1.Node;
55
+ export declare type AnyCommonStep = Set.Step | SetV2.Step | Flow.Step | Component.Step | Start.Step | Code.Step | Intent.Step | Command.Step | Api.Step | Exit.Step | Random.Step | Zapier.Step | GoogleSheets.Step | If.Step | IfV2.Step | General.Step | GoTo.Step | GoToNode.Step | _v1.Step;
56
+ export declare type AnyCommonNode = Set.Node | SetV2.Node | Flow.Node | Start.Node | Code.Node | Integration.Node | Exit.Node | Random.Node | General.Node | If.Node | IfV2.Node | GoTo.Node | GoToNode.Node | _v1.Node;
57
57
  export declare type AnyCommonCommand = Intent.Command | Command.Command;
@@ -22,7 +22,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
22
22
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.Zapier = exports.Visual = exports.Utils = exports.Text = exports.Stream = exports.Start = exports.Speak = exports.SetV2 = exports.Set = exports.Random = exports.Command = exports.Prompt = exports.Intent = exports.Interaction = exports.Integration = exports.IfV2 = exports.If = exports.GoToBlock = exports.GoTo = exports.GoogleSheets = exports.General = exports.Flow = exports.Exit = exports.Directive = exports.Component = exports.Code = exports.CardV2 = exports.Card = exports.CaptureV2 = exports.Capture = exports.Buttons = exports.Api = exports._v1 = void 0;
25
+ exports.Zapier = exports.Visual = exports.Utils = exports.Text = exports.Stream = exports.Start = exports.Speak = exports.SetV2 = exports.Set = exports.Random = exports.Command = exports.Prompt = exports.Intent = exports.Interaction = exports.Integration = exports.IfV2 = exports.If = exports.GoToNode = exports.GoTo = exports.GoogleSheets = exports.General = exports.Flow = exports.Exit = exports.Directive = exports.Component = exports.Code = exports.CardV2 = exports.Card = exports.CaptureV2 = exports.Capture = exports.Buttons = exports.Api = exports._v1 = void 0;
26
26
  exports._v1 = __importStar(require("./_v1"));
27
27
  exports.Api = __importStar(require("./api"));
28
28
  exports.Buttons = __importStar(require("./buttons"));
@@ -39,7 +39,7 @@ exports.Flow = __importStar(require("./flow"));
39
39
  exports.General = __importStar(require("./general"));
40
40
  exports.GoogleSheets = __importStar(require("./googleSheets"));
41
41
  exports.GoTo = __importStar(require("./goTo"));
42
- exports.GoToBlock = __importStar(require("./goToBlock"));
42
+ exports.GoToNode = __importStar(require("./goToNode"));
43
43
  exports.If = __importStar(require("./if"));
44
44
  exports.IfV2 = __importStar(require("./ifV2"));
45
45
  exports.Integration = __importStar(require("./integration"));
@@ -1,3 +1,3 @@
1
1
  export * from './logs';
2
2
  export * from './runtime';
3
- export { Iso8601Timestamp, PathReference } from './utils';
3
+ export { getValueForLogLevel, Iso8601Timestamp, PathReference } from './utils';
@@ -10,5 +10,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.getValueForLogLevel = void 0;
13
14
  __exportStar(require("./logs"), exports);
14
15
  __exportStar(require("./runtime"), exports);
16
+ var utils_1 = require("./utils");
17
+ Object.defineProperty(exports, "getValueForLogLevel", { enumerable: true, get: function () { return utils_1.getValueForLogLevel; } });
@@ -29,6 +29,7 @@ export interface Model<PlatformData extends AnyRecord, MemberPlatformData extend
29
29
  platform: string;
30
30
  linkType?: LinkType;
31
31
  prototype?: Prototype;
32
+ livePrototype?: Prototype;
32
33
  reportTags?: Record<string, ReportTag>;
33
34
  members: Member<MemberPlatformData>[];
34
35
  platformData: PlatformData;
@@ -14,7 +14,7 @@ export declare enum NodeType {
14
14
  CAPTURE = "capture",
15
15
  CAPTURE_V2 = "captureV2",
16
16
  GOTO = "goTo",
17
- GOTO_BLOCK = "goToBlock",
17
+ GOTO_NODE = "goToNode",
18
18
  API = "api",
19
19
  ZAPIER = "zapier",
20
20
  INTEGRATIONS = "integrations",
@@ -17,7 +17,7 @@ export var NodeType;
17
17
  NodeType["CAPTURE_V2"] = "captureV2";
18
18
  // navigation
19
19
  NodeType["GOTO"] = "goTo";
20
- NodeType["GOTO_BLOCK"] = "goToBlock";
20
+ NodeType["GOTO_NODE"] = "goToNode";
21
21
  // integrations
22
22
  NodeType["API"] = "api";
23
23
  NodeType["ZAPIER"] = "zapier";
@@ -2,13 +2,13 @@ import { Nullable } from '@voiceflow/common';
2
2
  import { NodeType } from './constants';
3
3
  import { BaseNode, BaseStep, NodeNextID } from './utils';
4
4
  export interface StepData {
5
- blockID: Nullable<string>;
5
+ nodeID: Nullable<string>;
6
6
  diagramID: Nullable<string>;
7
7
  }
8
8
  export interface Step<Data = StepData> extends BaseStep<Data> {
9
- type: NodeType.GOTO_BLOCK;
9
+ type: NodeType.GOTO_NODE;
10
10
  }
11
11
  export interface Node extends BaseNode, NodeNextID {
12
- type: NodeType.GOTO_BLOCK;
12
+ type: NodeType.GOTO_NODE;
13
13
  diagramID: Nullable<string>;
14
14
  }
File without changes
@@ -7,7 +7,7 @@ import * as Flow from './flow';
7
7
  import * as General from './general';
8
8
  import * as GoogleSheets from './googleSheets';
9
9
  import * as GoTo from './goTo';
10
- import * as GoToBlock from './goToBlock';
10
+ import * as GoToNode from './goToNode';
11
11
  import * as If from './if';
12
12
  import * as IfV2 from './ifV2';
13
13
  import * as Integration from './integration';
@@ -34,7 +34,7 @@ export * as Flow from './flow';
34
34
  export * as General from './general';
35
35
  export * as GoogleSheets from './googleSheets';
36
36
  export * as GoTo from './goTo';
37
- export * as GoToBlock from './goToBlock';
37
+ export * as GoToNode from './goToNode';
38
38
  export * as If from './if';
39
39
  export * as IfV2 from './ifV2';
40
40
  export * as Integration from './integration';
@@ -52,6 +52,6 @@ export * as Text from './text';
52
52
  export * as Utils from './utils';
53
53
  export * as Visual from './visual';
54
54
  export * as Zapier from './zapier';
55
- export declare type AnyCommonStep = Set.Step | SetV2.Step | Flow.Step | Component.Step | Start.Step | Code.Step | Intent.Step | Command.Step | Api.Step | Exit.Step | Random.Step | Zapier.Step | GoogleSheets.Step | If.Step | IfV2.Step | General.Step | GoTo.Step | GoToBlock.Step | _v1.Step;
56
- export declare type AnyCommonNode = Set.Node | SetV2.Node | Flow.Node | Start.Node | Code.Node | Integration.Node | Exit.Node | Random.Node | General.Node | If.Node | IfV2.Node | GoTo.Node | GoToBlock.Node | _v1.Node;
55
+ export declare type AnyCommonStep = Set.Step | SetV2.Step | Flow.Step | Component.Step | Start.Step | Code.Step | Intent.Step | Command.Step | Api.Step | Exit.Step | Random.Step | Zapier.Step | GoogleSheets.Step | If.Step | IfV2.Step | General.Step | GoTo.Step | GoToNode.Step | _v1.Step;
56
+ export declare type AnyCommonNode = Set.Node | SetV2.Node | Flow.Node | Start.Node | Code.Node | Integration.Node | Exit.Node | Random.Node | General.Node | If.Node | IfV2.Node | GoTo.Node | GoToNode.Node | _v1.Node;
57
57
  export declare type AnyCommonCommand = Intent.Command | Command.Command;
@@ -14,7 +14,7 @@ export * as Flow from './flow';
14
14
  export * as General from './general';
15
15
  export * as GoogleSheets from './googleSheets';
16
16
  export * as GoTo from './goTo';
17
- export * as GoToBlock from './goToBlock';
17
+ export * as GoToNode from './goToNode';
18
18
  export * as If from './if';
19
19
  export * as IfV2 from './ifV2';
20
20
  export * as Integration from './integration';
@@ -1,3 +1,3 @@
1
1
  export * from './logs';
2
2
  export * from './runtime';
3
- export { Iso8601Timestamp, PathReference } from './utils';
3
+ export { getValueForLogLevel, Iso8601Timestamp, PathReference } from './utils';
@@ -1,2 +1,3 @@
1
1
  export * from './logs';
2
2
  export * from './runtime';
3
+ export { getValueForLogLevel } from './utils';
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.30.0",
4
+ "version": "2.31.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": "86e6c256942abafeab17c724efa659da040cc198"
46
+ "gitHead": "b22a4130ad5fc6da5775b82df9c64dd1c57abdd2"
47
47
  }