@voiceflow/base-types 2.20.1 → 2.22.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.
|
@@ -31,6 +31,7 @@ export interface Folder {
|
|
|
31
31
|
}
|
|
32
32
|
export interface Model<_PlatformData extends PlatformData, Command extends BaseCommand = BaseCommand, Locale extends string = string> {
|
|
33
33
|
_id: string;
|
|
34
|
+
_version?: number;
|
|
34
35
|
creatorID: number;
|
|
35
36
|
projectID: string;
|
|
36
37
|
rootDiagramID: string;
|
|
@@ -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";
|
|
@@ -31,6 +31,7 @@ export interface Folder {
|
|
|
31
31
|
}
|
|
32
32
|
export interface Model<_PlatformData extends PlatformData, Command extends BaseCommand = BaseCommand, Locale extends string = string> {
|
|
33
33
|
_id: string;
|
|
34
|
+
_version?: number;
|
|
34
35
|
creatorID: number;
|
|
35
36
|
projectID: string;
|
|
36
37
|
rootDiagramID: string;
|
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.22.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": "27f08c440d3a8f5abfe89c556ad53ae1309fb7a6"
|
|
47
47
|
}
|