new-site/api/src/routes
justin a4bad723bc esign: ink-reproduction consent gate + patent-risk research
Consent gate (the legal linchpin from the wet-signature memo):
- migration 092 adds ink_consent/ink_consent_at/ink_consent_text to esign_records
- extract pure, unit-tested gate logic into esign-ink-consent.ts (DRY single
  source for route + signing page): isInkReproduction / inkConsentRequired /
  inkConsentSatisfied + verbatim client-safe INK_CONSENT_TEXT
- portal-esign-generic.ts: GET surfaces ink_reproduction + consent text; POST
  gates DRAWN signatures on ink-path docs on explicit consent, stores it
- signing page locks the signature block until consent is checked (drawn only)
- npi_provider marks cms855/cms10114 esign metadata ink_reproduction=true
- 33 unit checks: gate truth table + consent text omits all internal mechanics
  (plotter/machine/CMS/MAC/etc) and keeps required legal reassurances

Patent-risk memo (docs/legal/patent-risk-mechanical-wet-signature.md):
- prior-art-dated risk analysis (autopen 1803/1942, plotters, CNC = public domain
  => low risk on core concept; e-sign workflow space litigious)
- firsthand recent-grant sweep (1.58M USPTO grants 2021-2025, queried via DuckDB):
  ZERO patents on machine-applies-signature-in-ink; e-sign players hold only
  electronic-workflow patents. Not an FTO; flags where attorney search is needed
2026-06-07 04:44:11 -05:00
..
admin-crypto.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
admin.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
agents.ts Allow multiple referral codes per sales agent 2026-06-02 14:44:22 -05:00
amb-locations.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
bundles.ts Rename 'IPES & ISP Registrations' to 'FCC Carrier / ISP Registration' 2026-04-29 08:06:47 -05:00
canada-crtc.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
cdr.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
checkout.ts Wire fulfillment alerts to Telegram + surface order progress in portal + even out ERPNext sync 2026-06-07 03:17:46 -05:00
compliance-orders.ts feat(npi): wire 6 healthcare services into catalog, intake, items, handlers, portal 2026-06-05 01:25:05 -05:00
corp-status.ts Fix corp search LIMIT type: cast to int 2026-04-28 23:05:43 -05:00
discounts.ts Fix: add allowed_emails to DiscountCode TypeScript interface 2026-05-22 01:19:12 -05:00
dot-lookup.ts intake: prefill order form from ?dot= campaign CTA links 2026-06-02 12:46:33 -05:00
entities.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
esign-ink-consent.ts esign: ink-reproduction consent gate + patent-risk research 2026-06-07 04:44:11 -05:00
fcc-carrier-registration.ts Add referral/discount code to FCC carrier page + REF-JAYK05 agent 2026-06-02 14:31:22 -05:00
fcc-filings.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
fcc-lookup.ts Fix: FCC errors now fall through to local DB fallback 2026-05-22 00:42:43 -05:00
foreign-qualification.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
formations.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
health.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
icc.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
id-upload.ts add blur detection + Ollama ID validation + corporate check for all carriers 2026-05-30 19:17:31 -05:00
identity.ts Fix 6 bugs found in compliance and checkout flows 2026-04-27 09:56:12 -05:00
lnpa-regions.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
npi-lookup.ts feat(npi): healthcare marketing pages, nav dropdown, NPI lookup API + free tool + companion data migration/loader 2026-06-05 01:33:36 -05:00
order-timeline-status.ts Wire fulfillment alerts to Telegram + surface order progress in portal + even out ERPNext sync 2026-06-07 03:17:46 -05:00
order-timeline.ts Wire fulfillment alerts to Telegram + surface order progress in portal + even out ERPNext sync 2026-06-07 03:17:46 -05:00
payment-methods.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
paypal.ts Fix PayPal capture for compliance orders + MCS-150 form generator 2026-05-30 11:34:16 -05:00
portal-auth.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
portal-esign-generic.ts esign: ink-reproduction consent gate + patent-risk research 2026-06-07 04:44:11 -05:00
portal-esign.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
portal-rmd-review.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
portal-setup.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
portal.ts Wire fulfillment alerts to Telegram + surface order progress in portal + even out ERPNext sync 2026-06-07 03:17:46 -05:00
puc.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
quotes.ts Add Telegram notifications for tickets, quotes, and insurance leads 2026-05-30 16:35:11 -05:00
refunds.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
reseller-certs.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
subscribe.ts Add interest field to mailing list subscribe (telecom/trucking/formation) 2026-05-29 12:50:27 -05:00
survey.ts post-completion flow: survey, referral program, review ask 2026-05-30 21:22:14 -05:00
telecom-entities.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
tickets.ts trucking wrap-up: close-out becomes a paid order + workflow 2026-05-31 01:01:02 -05:00
webhooks.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00