import { makeActivityRoute } from "@open-mercato/core/modules/entities/lib/makeActivityRoute";
import { StaffTeamMemberActivity } from "../data/entities.js";
import {
  staffTeamMemberActivityCreateSchema,
  staffTeamMemberActivityUpdateSchema
} from "../data/validators.js";
import { E } from "../../../generated/entities.ids.generated.js";
import { createStaffCrudOpenApi } from "./openapi.js";
const route = makeActivityRoute({
  entity: StaffTeamMemberActivity,
  entityId: E.staff.staff_team_member_activity,
  parentFkColumn: "member_id",
  parentFkParam: "memberId",
  features: { view: "staff.view", manage: "staff.manage_team" },
  createSchema: staffTeamMemberActivityCreateSchema,
  updateSchema: staffTeamMemberActivityUpdateSchema,
  commandPrefix: "staff.team-member-activities",
  logPrefix: "[staff.activities]",
  openApiFactory: createStaffCrudOpenApi,
  openApi: {
    resourceName: "TeamMemberActivity",
    createDescription: "Adds an activity to a team member timeline.",
    updateDescription: "Updates a team member activity.",
    deleteDescription: "Deletes a team member 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
