mirror of
https://github.com/strapi/strapi.git
synced 2025-07-27 19:10:01 +00:00
26 lines
630 B
TypeScript
26 lines
630 B
TypeScript
![]() |
import { Entity } from '@strapi/types';
|
||
|
import { errors } from '@strapi/utils';
|
||
|
|
||
|
/**
|
||
|
* POST /i18n/content-manager/actions/get-non-localized-fields - Get the localized fields
|
||
|
*/
|
||
|
export declare namespace GetNonLocalizedFields {
|
||
|
export interface Request {
|
||
|
query: {};
|
||
|
body: {
|
||
|
id?: Entity.ID;
|
||
|
locale?: string;
|
||
|
model: string;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* TODO: this should follow the usual `data/error` pattern.
|
||
|
*/
|
||
|
export interface Response {
|
||
|
nonLocalizedFields: object;
|
||
|
localizations: Array<{ id: Entity.ID; locale: string; publishedAt: string | null }>;
|
||
|
error?: errors.ApplicationError;
|
||
|
}
|
||
|
}
|