@voiceflow/base-types
Version:
Voiceflow base project types
24 lines (23 loc) • 887 B
JavaScript
export var APIBodyType;
(function (APIBodyType) {
APIBodyType["FORM_DATA"] = "formData";
APIBodyType["RAW_INPUT"] = "rawInput";
APIBodyType["URL_ENCODED"] = "urlEncoded";
})(APIBodyType || (APIBodyType = {}));
export var APIMethod;
(function (APIMethod) {
APIMethod["GET"] = "GET";
APIMethod["PUT"] = "PUT";
APIMethod["POST"] = "POST";
APIMethod["PATCH"] = "PATCH";
APIMethod["DELETE"] = "DELETE";
})(APIMethod || (APIMethod = {}));
export const lowercaseAPIMethod = (method) => method.toLowerCase();
export var APIActionType;
(function (APIActionType) {
APIActionType["GET"] = "Make a GET Request";
APIActionType["PUT"] = "Make a PUT Request";
APIActionType["POST"] = "Make a POST Request";
APIActionType["PATCH"] = "Make a PATCH Request";
APIActionType["DELETE"] = "Make a DELETE Request";
})(APIActionType || (APIActionType = {}));