proposal-system/api/src/ProposalSystem.Application/Validators
Adam Moussa 5d84399a0d
Some checks are pending
Deploy / Deploy to AWS (push) Waiting to run
feat: pricing library — curated priced items feed the RAG corpus (#127)
Adds a managed pricing library so admins can seed/curate reference priced items
directly, instead of the corpus being populated only by ingesting Sent proposals.
v1 PR5.

API:
- PricingLibraryItem entity + migration; /api/pricing-library CRUD (admin), with
  GET {id} reachable by internal Lambda callers (admins role via internal key).
- Create/update publish an ADDITIVE library-ingest SQS job {pricingLibraryItemId},
  wrapped so a publish failure never rolls back the save.

Lambda (library-ingest):
- Additive event-shape branch: pricingLibraryItemId -> fetch item, format markdown,
  upload to pricing-library/{category}/{id}.md, trigger KB sync. The existing
  proposalId path is byte-for-byte unchanged. Explicit error when neither id present;
  warns when both present.

Web:
- Pricing Library management page (/admin/pricing-library): list / create / edit / delete.

GPT-4.1 cross-review on the event-shape change: no BLOCK (neither/both-id handling
applied). Verified: api 159 tests; web tsc + 26 tests; lambdas ruff + 37 pytest.
2026-06-18 12:49:47 -04:00
..
BulkUpdateLineItemsValidator.cs Fix Phase 2 audit findings: reliability, UX, and operational monitoring 2026-05-20 19:07:49 -04:00
CreateCustomerValidator.cs feat: proposal delivery — email customers the PDF on Mark as Sent (#126) 2026-06-18 12:40:55 -04:00
CreateGeneratedPdfValidator.cs fix(api): API-M2, M5, M7, M9, M10, M12, M13 — Medium audit findings 2026-05-27 18:18:44 -04:00
CreateLineItemValidator.cs Implement Backend API Core (Phase 1) 2026-05-16 18:49:48 -04:00
CreatePricingLibraryItemValidator.cs feat: pricing library — curated priced items feed the RAG corpus (#127) 2026-06-18 12:49:47 -04:00
CreateProposalValidator.cs Implement Backend API Core (Phase 1) 2026-05-16 18:49:48 -04:00
CreateSimilarReferenceValidator.cs fix(api): API-M2, M5, M7, M9, M10, M12, M13 — Medium audit findings 2026-05-27 18:18:44 -04:00
UpdateCustomerValidator.cs feat: proposal delivery — email customers the PDF on Mark as Sent (#126) 2026-06-18 12:40:55 -04:00
UpdatePricingLibraryItemValidator.cs feat: pricing library — curated priced items feed the RAG corpus (#127) 2026-06-18 12:49:47 -04:00
UpdateProposalValidator.cs audit: fix all Critical and High security/reliability issues across monorepo 2026-05-27 18:18:44 -04:00
UpdateVendorProposalValidator.cs fix(api): API-M2, M5, M7, M9, M10, M12, M13 — Medium audit findings 2026-05-27 18:18:44 -04:00