"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TABLET_ERRORS_MANAGER_POST_ACTIONS = void 0;
exports.fetchFromTabletErrorsApi = fetchFromTabletErrorsApi;
const axios_1 = __importDefault(require("axios"));
exports.TABLET_ERRORS_MANAGER_POST_ACTIONS = new Set([
    'tablet_errors_by_bundle',
    'tablet_errors_by_table',
    'tablet_errors_by_table_and_timestamp',
]);
function fetchFromTabletErrorsApi(action, cluster, params, cancelToken) {
    return axios_1.default.post(`/api/tablet-errors/${cluster}/${action}`, { ...params, cluster }, { cancelToken });
}
