import { makeActivityRoute } from "@open-mercato/core/modules/entities/lib/makeActivityRoute";
import { ResourcesResourceActivity } from "../data/entities.js";
import {
  resourcesResourceActivityCreateSchema,
  resourcesResourceActivityUpdateSchema
} from "../data/validators.js";
import { E } from "../../../generated/entities.ids.generated.js";
import { createResourcesCrudOpenApi } from "./openapi.js";
const route = makeActivityRoute({
  entity: ResourcesResourceActivity,
  entityId: E.resources.resources_resource_activity,
  parentFkColumn: "resource_id",
  parentFkParam: "resourceId",
  features: { view: "resources.view", manage: "resources.manage_resources" },
  createSchema: resourcesResourceActivityCreateSchema,
  updateSchema: resourcesResourceActivityUpdateSchema,
  commandPrefix: "resources.resource-activities",
  logPrefix: "[resources.activities]",
  openApiFactory: createResourcesCrudOpenApi,
  openApi: {
    resourceName: "ResourceActivity",
    createDescription: "Adds an activity to a resource timeline.",
    updateDescription: "Updates a resource activity.",
    deleteDescription: "Deletes a resource activity."
  }
});
const metadata = route.metadata;
const openApi = route.openApi;
const GET = route.GET;
const POST = route.POST;
const PUT = route.PUT;
const DELETE = route.DELETE;
export {
  DELETE,
  GET,
  POST,
  PUT,
  metadata,
  openApi
};
//# sourceMappingURL=activities.js.map
