Files
baya-monorepo/client/src/services/profiles/constants.ts
T
2026-07-13 12:29:00 +03:30

12 lines
625 B
TypeScript

/**
* When true, the profiles domain is served by the in-memory mock behind the ProfilesApi
* seam. The b3 `customer_profiles/*` and `nurse_profiles/*` endpoints are live, but the
* avatar/object-storage route and the customer name/preferred-language fields are gaps
* (REQ-006 / REQ-007), so this phase demos behind the mock. Flip to false once those land —
* no hook/component changes (see dev/shared-working-context/reports/mocks-registry.md).
*/
export const USE_PROFILES_MOCK = false;
/** Profiles are stable within a session; revisiting a screen shouldn't refetch. */
export const PROFILE_STALE_TIME = 60_000;