mirror of
https://github.com/strapi/strapi.git
synced 2025-09-21 14:31:16 +00:00

Co-authored-by: Simone <simone.taeggi@strapi.io> Co-authored-by: markkaylor <mark.kaylor@strapi.io> Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com> Co-authored-by: Rémi de Juvigny <remi.dejuvigny@strapi.io> Co-authored-by: Fernando Chavez <fernando.chavez@strapi.io>
18 lines
485 B
TypeScript
18 lines
485 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;
|
|
countDraftRelations(id: string, uid: string): number;
|
|
countManyEntriesDraftRelations(ids: number[], uid: string): number;
|
|
}
|
|
|
|
export default function (opts: { strapi: Strapi }): EntityManager;
|