export 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 || (ActionType = {}));
export 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 || (HttpMethod = {}));
// currently, used by RestAPI and S3
export var ActionResponseType;
(function (ActionResponseType) {
    ActionResponseType["AUTO"] = "auto";
    ActionResponseType["JSON"] = "json";
    ActionResponseType["TEXT"] = "text";
    ActionResponseType["BINARY"] = "binary";
    ActionResponseType["RAW"] = "raw";
})(ActionResponseType || (ActionResponseType = {}));
export const GENERIC_HTTP_REQUEST = 'genericHttpRequest';
export const DB_SQL_INITIAL_TEXT = `-- You can use SQL to query data (ex. SELECT * FROM orders;)

`;
export 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