/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/core/content-manager/shared/contracts/components.ts
72 строки
1 KB
Ben Irvin
fix(content-manager): homepage recent-documents dates serialize as empty objects (#27066)
22 июл 2026, 13:07
Не верифицирован
22 июл 2026, 13:07
598cf7b
Код
Авторство
О чём код?
import type { Struct } from '@strapi/types'; import { errors } from '@strapi/utils'; import type { Configuration, Settings, Metadatas, Layouts } from './content-types'; export interface Component extends Struct.ComponentSchema { isDisplayed: boolean; info: Struct.SchemaInfo; apiID: string; } export interface ComponentConfiguration extends Configuration { category: string; isComponent: boolean; } /** * GET /components */ export declare namespace FindComponents { export interface Request { body: {}; query: {}; } export interface Response { data: Component[]; error?: errors.ApplicationError; } } /** * GET /components/:uid/configuration */ export declare namespace FindComponentConfiguration { export interface Request { body: {}; query: {}; } export interface Params { uid: string; } export interface Response { data: { component: ComponentConfiguration; components: Record<string, ComponentConfiguration>; }; error?: errors.ApplicationError; } } /** * PUT /components/:uid/configuration */ export declare namespace UpdateComponentConfiguration { export interface Request { body: { layouts: Layouts; metadatas: Metadatas; settings: Settings; }; query: {}; } export interface Params { uid: string; } export interface Response { data: ComponentConfiguration; error?: errors.ApplicationError | errors.YupValidationError; } }