{"version":3,"file":"common.mjs","sources":["../../../src/services/document-service/common.ts"],"sourcesContent":["import type { UID, Modules } from '@strapi/types';\n\nexport type RepositoryFactoryMethod = <TContentTypeUID extends UID.ContentType>(\n  uid: TContentTypeUID,\n  entityValidator: Modules.EntityValidator.EntityValidator\n) => Modules.Documents.ServiceInstance<TContentTypeUID>;\n\nexport const wrapInTransaction = (fn: (...args: any) => any) => {\n  return (...args: any[]) => strapi.db.transaction?.(() => fn(...args));\n};\n"],"names":["wrapInTransaction","fn","args","strapi","db","transaction"],"mappings":"AAOO,MAAMA,oBAAoB,CAACC,EAAAA,GAAAA;IAChC,OAAO,CAAC,GAAGC,IAAAA,GAAgBC,MAAAA,CAAOC,EAAE,CAACC,WAAW,GAAG,IAAMJ,EAAAA,CAAAA,GAAMC,IAAAA,CAAAA,CAAAA;AACjE;;;;"}