15 lines
788 B
TypeScript
15 lines
788 B
TypeScript
/**
|
|
* When true, the nurse service-areas domain is served by the in-memory mock (apis/mockApi.ts)
|
|
* behind the ServiceAreasApi seam — the duplicate `(cityId, districtId)` 409 and whole-city-first
|
|
* ordering are enforced in-memory so the coverage editor demos before backend-phase-4 is
|
|
* reachable. Flip to false to use the live `api/v1/nurse_service_areas/*` routes — no
|
|
* hook/component changes (see dev/shared-working-context/reports/mocks-registry.md).
|
|
*/
|
|
export const USE_SERVICE_AREAS_MOCK = false;
|
|
|
|
/** Service areas change only on mutation; keep them warm across screen visits. */
|
|
export const SERVICE_AREAS_STALE_TIME = 60_000;
|
|
|
|
/** api-conventions default page size; `pageSize` ≤ 100. A nurse covers a handful of areas. */
|
|
export const SERVICE_AREAS_PAGE_SIZE = 100;
|