import { Schema } from '@strapi/types'; import { errors } from '@strapi/utils'; import { ComponentConfiguration } from './components'; export type Settings = { bulkable: boolean; filterable: boolean; searchable: boolean; pageSize: number; mainField: string; defaultSortBy: string; defaultSortOrder: string; }; export type Metadatas = { [key: string]: { edit: { label?: string; description?: string; placeholder?: string; visible?: boolean; editable?: boolean; }; list: { label?: string; searchable?: boolean; sortable?: boolean; }; }; }; export type Layouts = { list: string[]; edit: { name: string; size: number; }[][]; }; export type Configuration = { uid?: string; settings: Settings; metadatas: Metadatas; layouts: Layouts; }; export interface ContentType extends Schema.ContentType { isDisplayed: boolean; apiID: string; } /** * GET /content-types */ export declare namespace FindContentTypes { interface Request { body: {}; query: {}; } interface Response { data: ContentType[]; error?: errors.ApplicationError | errors.YupValidationError; } } /** * GET /content-types-settings */ export declare namespace FindContentTypesSettings { interface Request { body: {}; query: {}; } interface Response { data: Array<{ uid: string; settings: Settings; }>; error?: errors.ApplicationError; } } /** * GET /content-types/:uid/configuration */ export declare namespace FindContentTypeConfiguration { interface Request { body: {}; query: {}; } interface Response { data: { contentType: Configuration; components: Record; }; error?: errors.ApplicationError; } } /** * PUT /content-types/:uid/configuration */ export declare namespace UpdateContentTypeConfiguration { interface Request { body: { layouts: Layouts; metadatas: Metadatas; settings: Settings; }; query: {}; } interface Response { data: { contentType: Configuration; components: Record; }; error?: errors.ApplicationError | errors.YupValidationError; } } //# sourceMappingURL=content-types.d.ts.map