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

16 lines • 1.87 kB
export type { QupsTruthMode } from "./truth-mode.js"; export { QUPS_TRUTH_MODES, isQupsTruthMode } from "./truth-mode.js"; export { Qups, type QupsInput, type QuantityRatio } from "./qups.js"; export { AdjustedAmount, type AdjustedInput, type ModifierKind, type ModifierSpec, type ModifierStep, } from "./modifier.js"; export { assertAcyclicModifierOrder, ModifierOrderError, validateModifierStackOrder, type ModifierKindOrderRule, } from "./modifier-order.js"; export { LineTax, type TaxInput, type TaxMode } from "./tax.js"; export { PricingLine, type PricingLineInput } from "./line.js"; export { calculateLine, patchLine, withQupsColumns, type CalculateLineInput, type CalculateModifierInput, type CalculatedLine, type QupsColumnValues, type PatchLineInput, } from "./calculate.js"; export { applyCellPatch, type ApplyCellPatchOptions, type QupsCellField, } from "./cell-patch.js"; export { withQupsFields, withQupsFieldsRow, type QupsPersistedFields, } from "./qups-fields.js"; export { CurrencyMismatchError, InvalidTruthError, LineNotFoundError, MissingDependencyError, ProfileNotFoundError, QupsError, } from "./errors.js"; export { createQups, type CreateQupsOptions, type QupsApi } from "./create-qups.js"; export { fieldsForTruth, qupsRolesFor, syncFieldRoles, editableFieldKeys, moneyColumnPair, isBuiltinFieldKey, } from "./stores/fields.js"; export { pricingLineFromRecord, recordFromPricingLine, modifiersToRecords, recordsToModifiers, pricingLineInputFromParts, lineFieldMap, } from "./stores/serialize.js"; export type { BuiltinPricingFieldKey, PricingField, PricingFieldKind, PricingFieldRole, PricingTaxDefaults, PricingProfile, PricingLineRecord, PricingModifierRecord, PricingFieldValue, PricingProfileStore, PricingLineStore, RegisterProfileInput, UpdateProfileInput, SaveLineInput, } from "./stores/types.js"; //# sourceMappingURL=index.d.ts.map