@voiceflow/base-types 2.20.2 → 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.
@@ -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",
@@ -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";
@@ -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",
@@ -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.20.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.25.3",
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": "af1863006aa5748d2f373bff4a9aaa69b3a20333"
46
+ "gitHead": "2fba77e43ad98b87529f9d8d59ea983f60f14a50"
47
47
  }