function buildCrudEvents(entity) {
  return {
    module: "planner",
    entity,
    persistent: true,
    buildPayload: (ctx) => ({
      id: ctx.identifiers.id,
      organizationId: ctx.identifiers.organizationId,
      tenantId: ctx.identifiers.tenantId
    })
  };
}
const plannerAvailabilityRuleCrudEvents = buildCrudEvents("availability_rule");
const plannerAvailabilityRuleSetCrudEvents = buildCrudEvents("availability_rule_set");
export {
  plannerAvailabilityRuleCrudEvents,
  plannerAvailabilityRuleSetCrudEvents
};
//# sourceMappingURL=crud.js.map
