/// import { FastifyPluginAsync } from 'fastify' import { OpenAPIV3 } from 'openapi-types' import { FastifyError } from '@fastify/error' export interface SQLOpenApiPluginOptions extends Partial { /** * Set true to expose documentation route. */ exposeRoute?: boolean, /** * Entity/field names to ignore when mapping to routes. */ ignore?: { [entityName: string]: { [fieldName: string]: boolean } | boolean }, /** * Set true to disable all reverse relationship and FK-navigation routes. */ ignoreAllReverseRoutes?: boolean, } declare const plugin: FastifyPluginAsync export default plugin /** * All the errors thrown by the plugin. */ export namespace errors { export const UnableToCreateTheRouteForTheReverseRelationshipError: () => FastifyError export const UnableToCreateTheRouteForThePKColRelationshipError: () => FastifyError export const UnableToParseCursorStrError: () => FastifyError export const CursorValidationError: () => FastifyError export const PrimaryKeyNotIncludedInOrderByInCursorPaginationError: () => FastifyError }