2021-09-21 17:18:24 +02:00
|
|
|
interface EntityManager {
|
2023-05-26 12:37:52 +02:00
|
|
|
mapEntity<T = any>(entity: T): T;
|
|
|
|
mapEntitiesResponse<T = any>(entities: T[], uid: string): T[];
|
2021-09-21 17:18:24 +02:00
|
|
|
find(): any;
|
|
|
|
findPage(): any;
|
|
|
|
findOne(): any;
|
|
|
|
create(): any;
|
|
|
|
update(): any;
|
|
|
|
delete(): any;
|
|
|
|
deleteMany(): any;
|
|
|
|
publish(): any;
|
|
|
|
unpublish(): any;
|
2023-07-18 09:03:55 +02:00
|
|
|
countDraftRelations(id: string, uid: string): number;
|
2023-09-12 10:40:51 +02:00
|
|
|
countManyEntriesDraftRelations(ids: number[], uid: string, locale?: string): number;
|
2021-09-21 17:18:24 +02:00
|
|
|
}
|
|
|
|
|
2023-02-20 11:46:18 +01:00
|
|
|
export default function (opts: { strapi: Strapi }): EntityManager;
|