"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DB_SQL_INITIAL_TEXT = exports.GENERIC_HTTP_REQUEST = exports.ActionResponseType = exports.HttpMethod = exports.ActionType = void 0;
exports.getMethodColor = getMethodColor;
var ActionType;
(function (ActionType) {
    ActionType[ActionType["Integration"] = 0] = "Integration";
    ActionType[ActionType["Conditional"] = 1] = "Conditional";
    ActionType[ActionType["Loop"] = 2] = "Loop";
    ActionType[ActionType["Assignment"] = 3] = "Assignment";
})(ActionType || (exports.ActionType = ActionType = {}));
var HttpMethod;
(function (HttpMethod) {
    HttpMethod["GET"] = "GET";
    HttpMethod["HEAD"] = "HEAD";
    HttpMethod["POST"] = "POST";
    HttpMethod["PUT"] = "PUT";
    HttpMethod["PATCH"] = "PATCH";
    HttpMethod["DELETE"] = "DELETE";
    HttpMethod["OPTIONS"] = "OPTIONS";
    HttpMethod["TRACE"] = "TRACE";
})(HttpMethod || (exports.HttpMethod = HttpMethod = {}));
// currently, used by RestAPI and S3
var ActionResponseType;
(function (ActionResponseType) {
    ActionResponseType["AUTO"] = "auto";
    ActionResponseType["JSON"] = "json";
    ActionResponseType["TEXT"] = "text";
    ActionResponseType["BINARY"] = "binary";
    ActionResponseType["RAW"] = "raw";
})(ActionResponseType || (exports.ActionResponseType = ActionResponseType = {}));
exports.GENERIC_HTTP_REQUEST = 'genericHttpRequest';
exports.DB_SQL_INITIAL_TEXT = `-- You can use SQL to query data (ex. SELECT * FROM orders;)

`;
function getMethodColor(method) {
    switch (method) {
        case HttpMethod.GET:
            return '#08BAA5';
        case HttpMethod.POST:
            return '#00A8F5';
        case HttpMethod.PUT:
            return '#FA8A0F';
        case HttpMethod.DELETE:
            return '#F45252';
        case HttpMethod.PATCH:
            return '#643ADF';
        default:
            return 'inherit';
    }
}
//# sourceMappingURL=action.js.map