"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.metadata = void 0;
const db_1 = require("@b/db");
exports.metadata = {
    summary: "Get Enabled Token Type Configurations",
    description: "Retrieves all enabled token type configurations for users.",
    operationId: "getEnabledTokenTypes",
    tags: ["ICO", "TokenTypes"],
    logModule: "ICO",
    logTitle: "Get Token Types",
    responses: {
        200: {
            description: "Enabled token type configurations retrieved successfully.",
            content: {
                "application/json": {
                    schema: { type: "array", items: { type: "object" } },
                },
            },
        },
        500: { description: "Internal Server Error" },
    },
};
exports.default = async (data) => {
    const enabledTokenTypes = await db_1.models.icoTokenType.findAll({
        where: { status: true },
    });
    return enabledTokenTypes;
};
