UNPKG

@voiceflow/base-types

Version:

Voiceflow base project types

28 lines (27 loc) 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.APIActionType = exports.lowercaseAPIMethod = exports.APIMethod = exports.APIBodyType = void 0; var APIBodyType; (function (APIBodyType) { APIBodyType["FORM_DATA"] = "formData"; APIBodyType["RAW_INPUT"] = "rawInput"; APIBodyType["URL_ENCODED"] = "urlEncoded"; })(APIBodyType || (exports.APIBodyType = APIBodyType = {})); var APIMethod; (function (APIMethod) { APIMethod["GET"] = "GET"; APIMethod["PUT"] = "PUT"; APIMethod["POST"] = "POST"; APIMethod["PATCH"] = "PATCH"; APIMethod["DELETE"] = "DELETE"; })(APIMethod || (exports.APIMethod = APIMethod = {})); const lowercaseAPIMethod = (method) => method.toLowerCase(); exports.lowercaseAPIMethod = lowercaseAPIMethod; 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 || (exports.APIActionType = APIActionType = {}));