template-saas/apps/backend/node_modules/@nestjs/swagger/dist/services/response-object-mapper.d.ts
rckrdmrd 26f0e52ca7 feat: Initial commit - template-saas
Template base para proyectos SaaS multi-tenant.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React/Vite)
- apps/database (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:24 -06:00

40 lines
2.2 KiB
TypeScript

import { ApiResponseMetadata, ApiResponseSchemaHost } from '../decorators';
export declare class ResponseObjectMapper {
private readonly mimetypeContentWrapper;
toArrayRefObject(response: Record<string, any>, name: string, produces: string[]): {
content: import("../interfaces/open-api-spec.interface").ContentObject;
};
toRefObject(response: Record<string, any>, name: string, produces: string[]): {
content: import("../interfaces/open-api-spec.interface").ContentObject;
};
wrapSchemaWithContent(response: ApiResponseSchemaHost & ApiResponseMetadata, produces: string[]): (ApiResponseSchemaHost & import("../decorators").ApiResponseCommonMetadata & {
example?: any;
}) | (ApiResponseSchemaHost & import("../decorators").ApiResponseCommonMetadata & {
examples?: {
[key: string]: import("../decorators").ApiResponseExamples;
};
}) | {
content: import("../interfaces/open-api-spec.interface").ContentObject;
schema?: import("../interfaces/open-api-spec.interface").SchemaObject & Partial<import("../interfaces/open-api-spec.interface").ReferenceObject>;
status?: number | "default" | "1XX" | "2XX" | "3XX" | "4XX" | "5XX";
description?: string;
headers?: import("../interfaces/open-api-spec.interface").HeadersObject;
links?: import("../interfaces/open-api-spec.interface").LinksObject;
type?: import("@nestjs/common").Type<unknown> | Function | [Function] | string;
isArray?: boolean;
example?: any;
} | {
content: import("../interfaces/open-api-spec.interface").ContentObject;
schema?: import("../interfaces/open-api-spec.interface").SchemaObject & Partial<import("../interfaces/open-api-spec.interface").ReferenceObject>;
status?: number | "default" | "1XX" | "2XX" | "3XX" | "4XX" | "5XX";
description?: string;
headers?: import("../interfaces/open-api-spec.interface").HeadersObject;
links?: import("../interfaces/open-api-spec.interface").LinksObject;
type?: import("@nestjs/common").Type<unknown> | Function | [Function] | string;
isArray?: boolean;
examples?: {
[key: string]: import("../decorators").ApiResponseExamples;
};
};
}