mirror of
https://github.com/strapi/strapi.git
synced 2025-08-16 04:34:40 +00:00
17 lines
421 B
TypeScript
17 lines
421 B
TypeScript
interface EntityManager {
|
|
mapEntity<T = any>(entity: T): T;
|
|
mapEntitiesResponse<T = any>(entities: T[], uid: string): T[];
|
|
find(): any;
|
|
findPage(): any;
|
|
findOne(): any;
|
|
create(): any;
|
|
update(): any;
|
|
delete(): any;
|
|
deleteMany(): any;
|
|
publish(): any;
|
|
unpublish(): any;
|
|
getNumberOfDraftRelations(id: string, uid: string): number;
|
|
}
|
|
|
|
export default function (opts: { strapi: Strapi }): EntityManager;
|