"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRealizeWriteImportStatements = getRealizeWriteImportStatements;
function getRealizeWriteImportStatements(operation) {
    const typeReferences = Array.from(new Set([operation.requestBody, operation.responseBody]
        .filter((el) => el !== null)
        .map((el) => el.typeName.split(".")[0])));
    // Build the standard imports
    const imports = [
        'import jwt from "jsonwebtoken";',
        'import { MyGlobal } from "../MyGlobal";',
        'import typia, { tags } from "typia";',
        'import { Prisma } from "@prisma/client";',
        'import { v4 } from "uuid";',
        'import { toISOStringSafe } from "../util/toISOStringSafe"',
        'import { HttpException } from "@nestjs/common";',
        ...typeReferences.map((ref) => `import { ${ref} } from "@ORGANIZATION/PROJECT-api/lib/structures/${ref}";`),
    ];
    return imports;
}
//# sourceMappingURL=getRealizeWriteImportStatements.js.map