@voiceflow/base-types 2.25.0 → 2.25.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.
|
@@ -23,9 +23,20 @@ export interface BlockOnlyData {
|
|
|
23
23
|
color: string;
|
|
24
24
|
steps: string[];
|
|
25
25
|
}
|
|
26
|
+
export declare enum BaseNodeType {
|
|
27
|
+
BLOCK = "block",
|
|
28
|
+
ACTIONS = "actions"
|
|
29
|
+
}
|
|
26
30
|
export interface BaseBlock<D extends AnyRecord = AnyRecord> extends BaseDiagramNode<D & BlockOnlyData> {
|
|
31
|
+
type: BaseNodeType.BLOCK;
|
|
27
32
|
coords: Point;
|
|
28
33
|
}
|
|
34
|
+
export interface ActionsData {
|
|
35
|
+
actions: string[];
|
|
36
|
+
}
|
|
37
|
+
export interface BaseActions extends BaseDiagramNode<ActionsData> {
|
|
38
|
+
type: BaseNodeType.ACTIONS;
|
|
39
|
+
}
|
|
29
40
|
export declare type StepOnlyData<Ports, PortsOld> = {
|
|
30
41
|
ports?: never;
|
|
31
42
|
portsV2: Ports;
|
|
@@ -37,8 +48,3 @@ export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPo
|
|
|
37
48
|
}
|
|
38
49
|
export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
|
|
39
50
|
}
|
|
40
|
-
export interface ActionsData {
|
|
41
|
-
steps: string[];
|
|
42
|
-
}
|
|
43
|
-
export interface Actions extends BaseDiagramNode<ActionsData> {
|
|
44
|
-
}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseNodeType = void 0;
|
|
4
|
+
var BaseNodeType;
|
|
5
|
+
(function (BaseNodeType) {
|
|
6
|
+
BaseNodeType["BLOCK"] = "block";
|
|
7
|
+
BaseNodeType["ACTIONS"] = "actions";
|
|
8
|
+
})(BaseNodeType = exports.BaseNodeType || (exports.BaseNodeType = {}));
|
|
@@ -23,9 +23,20 @@ export interface BlockOnlyData {
|
|
|
23
23
|
color: string;
|
|
24
24
|
steps: string[];
|
|
25
25
|
}
|
|
26
|
+
export declare enum BaseNodeType {
|
|
27
|
+
BLOCK = "block",
|
|
28
|
+
ACTIONS = "actions"
|
|
29
|
+
}
|
|
26
30
|
export interface BaseBlock<D extends AnyRecord = AnyRecord> extends BaseDiagramNode<D & BlockOnlyData> {
|
|
31
|
+
type: BaseNodeType.BLOCK;
|
|
27
32
|
coords: Point;
|
|
28
33
|
}
|
|
34
|
+
export interface ActionsData {
|
|
35
|
+
actions: string[];
|
|
36
|
+
}
|
|
37
|
+
export interface BaseActions extends BaseDiagramNode<ActionsData> {
|
|
38
|
+
type: BaseNodeType.ACTIONS;
|
|
39
|
+
}
|
|
29
40
|
export declare type StepOnlyData<Ports, PortsOld> = {
|
|
30
41
|
ports?: never;
|
|
31
42
|
portsV2: Ports;
|
|
@@ -37,8 +48,3 @@ export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPo
|
|
|
37
48
|
}
|
|
38
49
|
export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
|
|
39
50
|
}
|
|
40
|
-
export interface ActionsData {
|
|
41
|
-
steps: string[];
|
|
42
|
-
}
|
|
43
|
-
export interface Actions extends BaseDiagramNode<ActionsData> {
|
|
44
|
-
}
|
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.25.
|
|
4
|
+
"version": "2.25.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": "
|
|
46
|
+
"gitHead": "b12ba22b5a89235411193de91c2b9e081a29d97a"
|
|
47
47
|
}
|