mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-09-30 17:03:14 +00:00
Keychain token storage, Axios client with async token injection, Cognito PKCE auth via react-native-app-auth, Redux auth slice, TanStack Query config, offline draft queue with NetInfo auto-submit, and SHOC theme.
33 lines
810 B
TypeScript
33 lines
810 B
TypeScript
export const CACHE_TIME_SHORT = 2 * 60 * 1000;
|
|
export const CACHE_TIME_MEDIUM = 5 * 60 * 1000;
|
|
export const CACHE_TIME_LONG = 10 * 60 * 1000;
|
|
|
|
export const STALE_TIME_SHORT = 1 * 60 * 1000;
|
|
export const STALE_TIME_MEDIUM = 5 * 60 * 1000;
|
|
export const STALE_TIME_LONG = 10 * 60 * 1000;
|
|
|
|
export const DEFAULT_PAGE_SIZE = 12;
|
|
export const DEFAULT_PAGE = 1;
|
|
|
|
export const DEBOUNCE_SEARCH = 600;
|
|
|
|
export const STORAGE_KEY_USER = 'proposal_system_user';
|
|
export const KEYCHAIN_SERVICE = 'com.seahavenind.proposals';
|
|
|
|
export const PROPOSAL_STATUSES = [
|
|
'Draft',
|
|
'InReview',
|
|
'Approved',
|
|
'Sent',
|
|
'Revised',
|
|
] as const;
|
|
|
|
export const SERVICE_CATEGORIES = [
|
|
'HVAC',
|
|
'Plumbing',
|
|
'Electrical',
|
|
'General',
|
|
'Renovation',
|
|
] as const;
|
|
|
|
export const PRIORITIES = ['Standard', 'Urgent', 'Emergency'] as const;
|