{"version":3,"file":"index.mjs","sources":["../../../server/src/utils/index.ts"],"sourcesContent":["import type * as components from '../services/components';\nimport type * as builder from '../services/builder';\nimport type * as contentTypes from '../services/content-types';\nimport type * as componentCategories from '../services/component-categories';\nimport type * as apiHandler from '../services/api-handler';\nimport type * as schema from '../services/schema';\nimport type { createContentStructureService } from '../services/content-structure';\n\ntype S = {\n  'content-types': typeof contentTypes;\n  components: typeof components;\n  'component-categories': typeof componentCategories;\n  builder: typeof builder;\n  'api-handler': typeof apiHandler;\n  schema: typeof schema;\n  'content-structure': typeof createContentStructureService;\n};\n\nexport function getService<T extends keyof S>(\n  name: T\n): S[T] extends (...args: any[]) => any ? ReturnType<S[T]> : S[T] {\n  return strapi.plugin('content-type-builder').service(name);\n}\n"],"names":["getService","name","strapi","plugin","service"],"mappings":"AAkBO,SAASA,WACdC,IAAO,EAAA;AAEP,IAAA,OAAOC,MAAAA,CAAOC,MAAM,CAAC,sBAAA,CAAA,CAAwBC,OAAO,CAACH,IAAAA,CAAAA;AACvD;;;;"}