lilith-platform.live/codebase/@features/api
Natalie e654855af9
Some checks failed
Deploy quinn.admin / build (push) Failing after 0s
CI / verify (push) Failing after 1s
Deploy quinn.admin / deploy (push) Has been skipped
Deploy quinn.api / deploy (push) Failing after 1s
Deploy quinn.admin (black dev) / build-and-deploy (push) Failing after 4m31s
feat(api): region-based dynamic incall pricing driven by declared location
Incall rates now derive from the active region's base hourly rate instead of
static rows. Region resolves from declared location: manual pin > active tour
stop's state (STATE_TO_REGION) > home region fallback. Schedule derives by a
fixed no-discount multiplier (1h/1.5h/2h/3h + overnight 3.5h / dinner 4h /
daily 5h). Seeds CA=$800 (home) and NYC=$1000.

- new entity region-rate (schema+repo+types+index) + region_rates table
- wire assembleProviderConfig to override incall entries by active region
- admin surface /admin/region-rates (list, upsert base, pin/unpin)
- unit tests for resolver priority + formula (9 passing)

Replaces the previously dead rateCardsByCity selector path. FMTY dynamic
derivation (deriveZonesForMarket) remains a follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 12:12:22 -04:00
..
config
scripts docs(lilith-platform): Wave 1 prospector packages migration + restructure references (from parallel docs slice) 2026-06-28 17:43:09 -04:00
src feat(api): region-based dynamic incall pricing driven by declared location 2026-07-01 12:12:22 -04:00
tests/processors
.dependency-cruiser.cjs
.env.development feat(quinn.admin): serve main-branch dev preview on black without SSO 2026-06-21 23:38:06 -05:00
bunfig.toml
package.json test(api): auto-skip DB-dependent tests off the fast LAN path 2026-06-19 18:20:11 -05:00
tsconfig.json fix(api): null-safe tour-stop hotels, declare sharp, exclude mcp-prospector 2026-06-19 06:46:08 -05:00