import { importShared } from './__federation_fn_import-BBEx2jc4.js';

const {baseAdminCrudInputSchema,definitionSchema,modelTransformerEntityType} = await importShared('@baseplate-dev/project-builder-lib');

const {z} = await importShared('zod');

const createAdminCrudFileInputSchema = definitionSchema(
  (ctx) => baseAdminCrudInputSchema.extend({
    type: z.literal("file"),
    modelRelationRef: ctx.withRef({
      type: modelTransformerEntityType,
      onDelete: "RESTRICT",
      parentPath: { context: "model" }
    })
  })
);

const {adminCrudInputSpec,createPlatformPluginExport} = await importShared('@baseplate-dev/project-builder-lib');
const common = createPlatformPluginExport({
  dependencies: {
    adminCrudInput: adminCrudInputSpec
  },
  exports: {},
  initialize: ({ adminCrudInput }) => {
    adminCrudInput.registerAdminCrudInput({
      name: "file",
      createSchema: createAdminCrudFileInputSchema
    });
    return {};
  }
});

export { common as default };
//# sourceMappingURL=__federation_expose_storageAdmin-crudCommon-CJj8C5a4.js.map
