@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.
- package/build/common/models/project/index.d.ts +1 -0
- package/build/common/node/constants.d.ts +1 -1
- package/build/common/node/constants.js +1 -1
- package/build/common/node/{goToBlock.d.ts → goToNode.d.ts} +3 -3
- package/build/common/node/{goToBlock.js → goToNode.js} +0 -0
- package/build/common/node/index.d.ts +4 -4
- package/build/common/node/index.js +2 -2
- package/build/common/runtimeLogs/index.d.ts +1 -1
- package/build/common/runtimeLogs/index.js +3 -0
- package/build/esm/models/project/index.d.ts +1 -0
- package/build/esm/node/constants.d.ts +1 -1
- package/build/esm/node/constants.js +1 -1
- package/build/esm/node/{goToBlock.d.ts → goToNode.d.ts} +3 -3
- package/build/esm/node/{goToBlock.js → goToNode.js} +0 -0
- package/build/esm/node/index.d.ts +4 -4
- package/build/esm/node/index.js +1 -1
- package/build/esm/runtimeLogs/index.d.ts +1 -1
- package/build/esm/runtimeLogs/index.js +1 -0
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -20,7 +20,7 @@ var NodeType;
|
|
|
20
20
|
NodeType["CAPTURE_V2"] = "captureV2";
|
|
21
21
|
// navigation
|
|
22
22
|
NodeType["GOTO"] = "goTo";
|
|
23
|
-
NodeType["
|
|
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
|
-
|
|
5
|
+
nodeID: Nullable<string>;
|
|
6
6
|
diagramID: Nullable<string>;
|
|
7
7
|
}
|
|
8
8
|
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
9
|
-
type: NodeType.
|
|
9
|
+
type: NodeType.GOTO_NODE;
|
|
10
10
|
}
|
|
11
11
|
export interface Node extends BaseNode, NodeNextID {
|
|
12
|
-
type: NodeType.
|
|
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
|
|
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
|
|
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 |
|
|
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 |
|
|
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.
|
|
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.
|
|
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"));
|
|
@@ -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;
|
|
@@ -17,7 +17,7 @@ export var NodeType;
|
|
|
17
17
|
NodeType["CAPTURE_V2"] = "captureV2";
|
|
18
18
|
// navigation
|
|
19
19
|
NodeType["GOTO"] = "goTo";
|
|
20
|
-
NodeType["
|
|
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
|
-
|
|
5
|
+
nodeID: Nullable<string>;
|
|
6
6
|
diagramID: Nullable<string>;
|
|
7
7
|
}
|
|
8
8
|
export interface Step<Data = StepData> extends BaseStep<Data> {
|
|
9
|
-
type: NodeType.
|
|
9
|
+
type: NodeType.GOTO_NODE;
|
|
10
10
|
}
|
|
11
11
|
export interface Node extends BaseNode, NodeNextID {
|
|
12
|
-
type: NodeType.
|
|
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
|
|
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
|
|
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 |
|
|
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 |
|
|
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;
|
package/build/esm/node/index.js
CHANGED
|
@@ -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
|
|
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';
|
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.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": "
|
|
46
|
+
"gitHead": "b22a4130ad5fc6da5775b82df9c64dd1c57abdd2"
|
|
47
47
|
}
|