@voiceflow/base-types 2.28.0 → 2.30.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/apiKey.d.ts +1 -0
- package/build/common/models/base/port.d.ts +2 -1
- package/build/common/node/index.d.ts +4 -2
- package/build/common/node/index.js +2 -1
- package/build/esm/models/apiKey.d.ts +1 -0
- package/build/esm/models/base/port.d.ts +2 -1
- package/build/esm/node/index.d.ts +4 -2
- package/build/esm/node/index.js +1 -0
- package/package.json +3 -3
|
@@ -12,9 +12,10 @@ 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[]> {
|
|
15
|
+
export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort>>, Dynamic extends BasePort[] = BasePort[], ByKey extends Record<string, BasePort> = Record<string, BasePort>> {
|
|
16
16
|
builtIn: Builtin;
|
|
17
17
|
dynamic: Dynamic;
|
|
18
|
+
byKey: ByKey;
|
|
18
19
|
}
|
|
19
20
|
export interface AnyBaseStepPorts extends BaseStepPorts<Record<string, BasePort>, BasePort[]> {
|
|
20
21
|
}
|
|
@@ -7,6 +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
11
|
import * as If from './if';
|
|
11
12
|
import * as IfV2 from './ifV2';
|
|
12
13
|
import * as Integration from './integration';
|
|
@@ -33,6 +34,7 @@ export * as Flow from './flow';
|
|
|
33
34
|
export * as General from './general';
|
|
34
35
|
export * as GoogleSheets from './googleSheets';
|
|
35
36
|
export * as GoTo from './goTo';
|
|
37
|
+
export * as GoToBlock from './goToBlock';
|
|
36
38
|
export * as If from './if';
|
|
37
39
|
export * as IfV2 from './ifV2';
|
|
38
40
|
export * as Integration from './integration';
|
|
@@ -50,6 +52,6 @@ export * as Text from './text';
|
|
|
50
52
|
export * as Utils from './utils';
|
|
51
53
|
export * as Visual from './visual';
|
|
52
54
|
export * as Zapier from './zapier';
|
|
53
|
-
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 | _v1.Step;
|
|
54
|
-
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 | _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 | 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
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.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.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;
|
|
26
26
|
exports._v1 = __importStar(require("./_v1"));
|
|
27
27
|
exports.Api = __importStar(require("./api"));
|
|
28
28
|
exports.Buttons = __importStar(require("./buttons"));
|
|
@@ -39,6 +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
43
|
exports.If = __importStar(require("./if"));
|
|
43
44
|
exports.IfV2 = __importStar(require("./ifV2"));
|
|
44
45
|
exports.Integration = __importStar(require("./integration"));
|
|
@@ -12,9 +12,10 @@ 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[]> {
|
|
15
|
+
export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort>>, Dynamic extends BasePort[] = BasePort[], ByKey extends Record<string, BasePort> = Record<string, BasePort>> {
|
|
16
16
|
builtIn: Builtin;
|
|
17
17
|
dynamic: Dynamic;
|
|
18
|
+
byKey: ByKey;
|
|
18
19
|
}
|
|
19
20
|
export interface AnyBaseStepPorts extends BaseStepPorts<Record<string, BasePort>, BasePort[]> {
|
|
20
21
|
}
|
|
@@ -7,6 +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
11
|
import * as If from './if';
|
|
11
12
|
import * as IfV2 from './ifV2';
|
|
12
13
|
import * as Integration from './integration';
|
|
@@ -33,6 +34,7 @@ export * as Flow from './flow';
|
|
|
33
34
|
export * as General from './general';
|
|
34
35
|
export * as GoogleSheets from './googleSheets';
|
|
35
36
|
export * as GoTo from './goTo';
|
|
37
|
+
export * as GoToBlock from './goToBlock';
|
|
36
38
|
export * as If from './if';
|
|
37
39
|
export * as IfV2 from './ifV2';
|
|
38
40
|
export * as Integration from './integration';
|
|
@@ -50,6 +52,6 @@ export * as Text from './text';
|
|
|
50
52
|
export * as Utils from './utils';
|
|
51
53
|
export * as Visual from './visual';
|
|
52
54
|
export * as Zapier from './zapier';
|
|
53
|
-
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 | _v1.Step;
|
|
54
|
-
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 | _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 | 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
57
|
export declare type AnyCommonCommand = Intent.Command | Command.Command;
|
package/build/esm/node/index.js
CHANGED
|
@@ -14,6 +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
18
|
export * as If from './if';
|
|
18
19
|
export * as IfV2 from './ifV2';
|
|
19
20
|
export * as Integration from './integration';
|
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.
|
|
4
|
+
"version": "2.30.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.
|
|
10
|
+
"@voiceflow/common": "^7.27.0",
|
|
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": "
|
|
46
|
+
"gitHead": "86e6c256942abafeab17c724efa659da040cc198"
|
|
47
47
|
}
|