function buildCrudEvents(entity) {
  return {
    module: "staff",
    entity,
    persistent: true,
    buildPayload: (ctx) => ({
      id: ctx.identifiers.id,
      organizationId: ctx.identifiers.organizationId,
      tenantId: ctx.identifiers.tenantId
    })
  };
}
const staffTeamCrudEvents = buildCrudEvents("team");
const staffTeamRoleCrudEvents = buildCrudEvents("team_role");
const staffTeamMemberCrudEvents = buildCrudEvents("team_member");
const staffLeaveRequestCrudEvents = buildCrudEvents("leave_request");
const staffTeamMemberAddressCrudEvents = buildCrudEvents("address");
const staffTeamMemberCommentCrudEvents = buildCrudEvents("comment");
const staffTeamMemberActivityCrudEvents = buildCrudEvents("activity");
const staffTeamMemberJobHistoryCrudEvents = buildCrudEvents("job_history");
const staffTimeEntryCrudEvents = buildCrudEvents("timesheets.time_entry");
const staffTimeProjectCrudEvents = buildCrudEvents("timesheets.time_project");
const staffTimeProjectMemberCrudEvents = buildCrudEvents("timesheets.time_project_member");
export {
  staffLeaveRequestCrudEvents,
  staffTeamCrudEvents,
  staffTeamMemberActivityCrudEvents,
  staffTeamMemberAddressCrudEvents,
  staffTeamMemberCommentCrudEvents,
  staffTeamMemberCrudEvents,
  staffTeamMemberJobHistoryCrudEvents,
  staffTeamRoleCrudEvents,
  staffTimeEntryCrudEvents,
  staffTimeProjectCrudEvents,
  staffTimeProjectMemberCrudEvents
};
//# sourceMappingURL=crud.js.map
