"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.metadata = void 0;
const query_1 = require("@b/utils/query");
exports.metadata = {
    summary: "Deletes a specific Staking Pool",
    operationId: "deleteStakingPool",
    tags: ["Admin", "Staking", "Pools"],
    logModule: "ADMIN_STAKE",
    logTitle: "Delete Staking Pool",
    parameters: (0, query_1.deleteRecordParams)("Staking Pool"),
    responses: (0, query_1.deleteRecordResponses)("Staking Pool"),
    requiresAuth: true,
    permission: "delete.staking.pool",
};
exports.default = async (data) => {
    const { params, query } = data;
    return (0, query_1.handleSingleDelete)({
        model: "stakingPool",
        id: params.id,
        query,
    });
};
