@voiceflow/base-types 2.20.0 → 2.21.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/base/node.d.ts +3 -1
- package/build/common/models/base/port.d.ts +2 -0
- package/build/common/node/api.d.ts +1 -0
- package/build/common/node/api.js +3 -1
- package/build/esm/models/base/node.d.ts +3 -1
- package/build/esm/models/base/port.d.ts +2 -0
- package/build/esm/node/api.d.ts +1 -0
- package/build/esm/node/api.js +1 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyRecord } from "../../types";
|
|
2
|
-
import { BasePortList, NextStepPorts } from './port';
|
|
2
|
+
import { AnyBaseStepPorts, BasePortList, NextStepPorts } from './port';
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated use BaseNode instead
|
|
5
5
|
*/
|
|
@@ -35,3 +35,5 @@ export declare type StepOnlyData<Ports, PortsOld> = {
|
|
|
35
35
|
};
|
|
36
36
|
export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPorts, PortsOld = BasePortList> extends BaseDiagramNode<Data & StepOnlyData<Ports, PortsOld>> {
|
|
37
37
|
}
|
|
38
|
+
export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
|
|
39
|
+
}
|
|
@@ -16,6 +16,8 @@ export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort
|
|
|
16
16
|
builtIn: Builtin;
|
|
17
17
|
dynamic: Dynamic;
|
|
18
18
|
}
|
|
19
|
+
export interface AnyBaseStepPorts extends BaseStepPorts<Record<string, BasePort>, BasePort[]> {
|
|
20
|
+
}
|
|
19
21
|
export interface BuiltInNextPort {
|
|
20
22
|
[PortType.NEXT]: BasePort;
|
|
21
23
|
}
|
|
@@ -21,6 +21,7 @@ export declare enum APIMethod {
|
|
|
21
21
|
PATCH = "PATCH",
|
|
22
22
|
DELETE = "DELETE"
|
|
23
23
|
}
|
|
24
|
+
export declare const lowercaseAPIMethod: <T extends APIMethod>(method: T) => Lowercase<T>;
|
|
24
25
|
export declare enum APIActionType {
|
|
25
26
|
GET = "Make a GET Request",
|
|
26
27
|
PUT = "Make a PUT Request",
|
package/build/common/node/api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.APIActionType = exports.APIMethod = exports.APIBodyType = void 0;
|
|
3
|
+
exports.APIActionType = exports.lowercaseAPIMethod = exports.APIMethod = exports.APIBodyType = void 0;
|
|
4
4
|
var APIBodyType;
|
|
5
5
|
(function (APIBodyType) {
|
|
6
6
|
APIBodyType["FORM_DATA"] = "formData";
|
|
@@ -15,6 +15,8 @@ var APIMethod;
|
|
|
15
15
|
APIMethod["PATCH"] = "PATCH";
|
|
16
16
|
APIMethod["DELETE"] = "DELETE";
|
|
17
17
|
})(APIMethod = exports.APIMethod || (exports.APIMethod = {}));
|
|
18
|
+
const lowercaseAPIMethod = (method) => method.toLowerCase();
|
|
19
|
+
exports.lowercaseAPIMethod = lowercaseAPIMethod;
|
|
18
20
|
var APIActionType;
|
|
19
21
|
(function (APIActionType) {
|
|
20
22
|
APIActionType["GET"] = "Make a GET Request";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyRecord } from "../../types";
|
|
2
|
-
import { BasePortList, NextStepPorts } from './port';
|
|
2
|
+
import { AnyBaseStepPorts, BasePortList, NextStepPorts } from './port';
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated use BaseNode instead
|
|
5
5
|
*/
|
|
@@ -35,3 +35,5 @@ export declare type StepOnlyData<Ports, PortsOld> = {
|
|
|
35
35
|
};
|
|
36
36
|
export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPorts, PortsOld = BasePortList> extends BaseDiagramNode<Data & StepOnlyData<Ports, PortsOld>> {
|
|
37
37
|
}
|
|
38
|
+
export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
|
|
39
|
+
}
|
|
@@ -16,6 +16,8 @@ export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort
|
|
|
16
16
|
builtIn: Builtin;
|
|
17
17
|
dynamic: Dynamic;
|
|
18
18
|
}
|
|
19
|
+
export interface AnyBaseStepPorts extends BaseStepPorts<Record<string, BasePort>, BasePort[]> {
|
|
20
|
+
}
|
|
19
21
|
export interface BuiltInNextPort {
|
|
20
22
|
[PortType.NEXT]: BasePort;
|
|
21
23
|
}
|
package/build/esm/node/api.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare enum APIMethod {
|
|
|
21
21
|
PATCH = "PATCH",
|
|
22
22
|
DELETE = "DELETE"
|
|
23
23
|
}
|
|
24
|
+
export declare const lowercaseAPIMethod: <T extends APIMethod>(method: T) => Lowercase<T>;
|
|
24
25
|
export declare enum APIActionType {
|
|
25
26
|
GET = "Make a GET Request",
|
|
26
27
|
PUT = "Make a PUT Request",
|
package/build/esm/node/api.js
CHANGED
|
@@ -12,6 +12,7 @@ export var APIMethod;
|
|
|
12
12
|
APIMethod["PATCH"] = "PATCH";
|
|
13
13
|
APIMethod["DELETE"] = "DELETE";
|
|
14
14
|
})(APIMethod || (APIMethod = {}));
|
|
15
|
+
export const lowercaseAPIMethod = (method) => method.toLowerCase();
|
|
15
16
|
export var APIActionType;
|
|
16
17
|
(function (APIActionType) {
|
|
17
18
|
APIActionType["GET"] = "Make a GET Request";
|
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.21.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.26.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": "2fba77e43ad98b87529f9d8d59ea983f60f14a50"
|
|
47
47
|
}
|