18 lines
502 B
TypeScript
Raw Normal View History

interface EntityManager {
2023-05-26 12:37:52 +02:00
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, locale?: string): number;
}
2023-02-20 11:46:18 +01:00
export default function (opts: { strapi: Strapi }): EntityManager;