import { SalesQuoteLine } from "../../data/entities.js";
import { quoteLineCreateSchema } from "../../data/validators.js";
import { E } from "../../../../generated/entities.ids.generated.js";
import * as F from "../../../../generated/entities/sales_quote_line/index.js";
import { makeSalesLineRoute } from "../../lib/makeSalesLineRoute.js";
const route = makeSalesLineRoute({
  entity: SalesQuoteLine,
  entityId: E.sales.sales_quote_line,
  fieldConstants: F,
  parentFkColumn: "quote_id",
  parentFkParam: "quoteId",
  createSchema: quoteLineCreateSchema,
  features: { view: "sales.quotes.view", manage: "sales.quotes.manage" },
  commandPrefix: "sales.quotes.lines",
  openApi: {
    resourceName: "Quote line",
    description: "a quote 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
