import { SalesOrderLine } from "../../data/entities.js";
import { orderLineCreateSchema } from "../../data/validators.js";
import { E } from "../../../../generated/entities.ids.generated.js";
import * as F from "../../../../generated/entities/sales_order_line/index.js";
import { makeSalesLineRoute } from "../../lib/makeSalesLineRoute.js";
const route = makeSalesLineRoute({
  entity: SalesOrderLine,
  entityId: E.sales.sales_order_line,
  fieldConstants: F,
  parentFkColumn: "order_id",
  parentFkParam: "orderId",
  createSchema: orderLineCreateSchema,
  features: { view: "sales.orders.view", manage: "sales.orders.manage" },
  commandPrefix: "sales.orders.lines",
  openApi: {
    resourceName: "Order line",
    description: "an order line and recalculates totals"
  }
});
const metadata = route.metadata;
const { GET, POST, PUT, DELETE } = route;
const openApi = route.openApi;
export {
  DELETE,
  GET,
  POST,
  PUT,
  metadata,
  openApi
};
//# sourceMappingURL=route.js.map
