UNPKG

@eristack/qups

Version:

Quantity / unit price / subtotal (QUPS) with 2-of-3 sources of truth, plus modifiers and tax — business line pricing on @eristack/money

20 lines • 717 B
import type { BackseatHandlerContext, BackseatResponse } from "@eristack/backseat"; import type { QupsApi } from "../core/create-qups.js"; export declare function createQupsRoutes(qups: QupsApi): ({ method: "POST"; segment: string; name: string; handler: (ctx: BackseatHandlerContext) => Promise<{ status: number; body: import("../index.js").CalculatedLine; }>; } | { method: "GET"; segment: string; name: string; handler: (ctx: BackseatHandlerContext) => Promise<BackseatResponse<import("@eristack/backseat").JsonErrorBody> | { status: number; body: import("../index.js").PricingLineRecord[]; }>; })[]; //# sourceMappingURL=qups-routes.d.ts.map