@voiceflow/base-types 2.25.1 → 2.25.2
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.
|
@@ -18,7 +18,10 @@ export interface BaseDiagramNode<D extends AnyRecord = AnyRecord> {
|
|
|
18
18
|
nodeID: string;
|
|
19
19
|
coords?: Point;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
21
|
+
export interface BaseNodeData {
|
|
22
|
+
name?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BlockOnlyData extends BaseNodeData {
|
|
22
25
|
name: string;
|
|
23
26
|
color: string;
|
|
24
27
|
steps: string[];
|
|
@@ -31,19 +34,20 @@ export interface BaseBlock<D extends AnyRecord = AnyRecord> extends BaseDiagramN
|
|
|
31
34
|
type: BaseNodeType.BLOCK;
|
|
32
35
|
coords: Point;
|
|
33
36
|
}
|
|
34
|
-
export interface ActionsData {
|
|
35
|
-
|
|
37
|
+
export interface ActionsData extends BaseNodeData {
|
|
38
|
+
steps: string[];
|
|
36
39
|
}
|
|
37
40
|
export interface BaseActions extends BaseDiagramNode<ActionsData> {
|
|
38
41
|
type: BaseNodeType.ACTIONS;
|
|
39
42
|
}
|
|
40
|
-
export declare type
|
|
43
|
+
export declare type StepPortsData<Ports, PortsOld> = {
|
|
41
44
|
ports?: never;
|
|
42
45
|
portsV2: Ports;
|
|
43
46
|
} | {
|
|
44
47
|
ports: PortsOld;
|
|
45
48
|
portsV2?: never;
|
|
46
49
|
};
|
|
50
|
+
export declare type StepOnlyData<Ports, PortsOld> = StepPortsData<Ports, PortsOld> & BaseNodeData;
|
|
47
51
|
export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPorts, PortsOld = BasePortList> extends BaseDiagramNode<Data & StepOnlyData<Ports, PortsOld>> {
|
|
48
52
|
}
|
|
49
53
|
export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
|
|
@@ -18,7 +18,10 @@ export interface BaseDiagramNode<D extends AnyRecord = AnyRecord> {
|
|
|
18
18
|
nodeID: string;
|
|
19
19
|
coords?: Point;
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
21
|
+
export interface BaseNodeData {
|
|
22
|
+
name?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface BlockOnlyData extends BaseNodeData {
|
|
22
25
|
name: string;
|
|
23
26
|
color: string;
|
|
24
27
|
steps: string[];
|
|
@@ -31,19 +34,20 @@ export interface BaseBlock<D extends AnyRecord = AnyRecord> extends BaseDiagramN
|
|
|
31
34
|
type: BaseNodeType.BLOCK;
|
|
32
35
|
coords: Point;
|
|
33
36
|
}
|
|
34
|
-
export interface ActionsData {
|
|
35
|
-
|
|
37
|
+
export interface ActionsData extends BaseNodeData {
|
|
38
|
+
steps: string[];
|
|
36
39
|
}
|
|
37
40
|
export interface BaseActions extends BaseDiagramNode<ActionsData> {
|
|
38
41
|
type: BaseNodeType.ACTIONS;
|
|
39
42
|
}
|
|
40
|
-
export declare type
|
|
43
|
+
export declare type StepPortsData<Ports, PortsOld> = {
|
|
41
44
|
ports?: never;
|
|
42
45
|
portsV2: Ports;
|
|
43
46
|
} | {
|
|
44
47
|
ports: PortsOld;
|
|
45
48
|
portsV2?: never;
|
|
46
49
|
};
|
|
50
|
+
export declare type StepOnlyData<Ports, PortsOld> = StepPortsData<Ports, PortsOld> & BaseNodeData;
|
|
47
51
|
export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPorts, PortsOld = BasePortList> extends BaseDiagramNode<Data & StepOnlyData<Ports, PortsOld>> {
|
|
48
52
|
}
|
|
49
53
|
export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
|
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.2",
|
|
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": "e60f8588e20c179f50b5048b25c76f74ab78fb9f"
|
|
47
47
|
}
|