markkaylor a82de46746
feature/bulk-publish-v2 (#17185)
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>
2023-07-18 09:03:55 +02:00

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;