UNPKG

@cranberry-money/shared-constants

Version:

Shared constants for Blueberry platform

89 lines 3.61 kB
export declare const API_CONFIG: { readonly DEFAULT_TIMEOUT: 30000; readonly DEFAULT_RETRY_ATTEMPTS: 3; readonly DEFAULT_RETRY_DELAY: 1000; readonly MAX_RETRY_DELAY: 10000; readonly REQUEST_DEBOUNCE_MS: 300; }; export declare const CACHE_TIMING: { readonly VERY_SHORT_STALE_TIME: number; readonly SHORT_STALE_TIME: number; readonly DEFAULT_STALE_TIME: number; readonly LONG_STALE_TIME: number; readonly VERY_LONG_STALE_TIME: number; readonly EXTRA_LONG_STALE_TIME: number; readonly DEFAULT_GC_TIME: number; readonly MEDIUM_GC_TIME: number; readonly LONG_GC_TIME: number; readonly VERY_LONG_GC_TIME: number; readonly EXTRA_LONG_GC_TIME: number; }; export declare const USER_ACCOUNT_ENDPOINTS: { readonly BASE: "/api/user-accounts/"; readonly DETAIL: (uuid: string) => `/api/user-accounts/${string}/`; }; export declare const AUTH_ENDPOINTS: { readonly SIGNIN: "/api/signin/"; readonly SIGNOUT: "/api/signout/"; readonly SIGNUP: "/api/signup/"; readonly CHANGE_PASSWORD: "/api/change-password/"; readonly EMAIL_VERIFICATION: "/api/email-verification/"; readonly RESEND_VERIFICATION: "/api/resend-verification/"; readonly TOKEN_REFRESH: "/api/token/refresh/"; readonly VERIFY: "/api/auth/verify/"; }; export declare const COUNTRY_ENDPOINTS: { readonly BASE: "/api/countries/"; readonly DETAIL: (uuid: string) => `/api/countries/${string}/`; }; export declare const ASSET_ENDPOINTS: { readonly BASE: "/api/assets/"; readonly DETAIL: (uuid: string) => `/api/assets/${string}/`; }; export declare const PORTFOLIO_ENDPOINTS: { readonly BASE: "/api/portfolios/"; readonly DETAIL: (uuid: string) => `/api/portfolios/${string}/`; }; export declare const USER_PROFILE_ENDPOINTS: { readonly BASE: "/api/user-profiles/"; readonly DETAIL: (uuid: string) => `/api/user-profiles/${string}/`; readonly DELETE_ACCOUNT: "/api/user-profiles/delete-account/"; readonly EXPORT_DATA: "/api/user-profiles/export-data/"; }; export declare const FINANCIAL_PROFILE_ENDPOINTS: { readonly BASE: "/api/financial-profiles/"; readonly DETAIL: (uuid: string) => `/api/financial-profiles/${string}/`; }; export declare const USER_PREFERENCES_ENDPOINTS: { readonly BASE: "/api/user-preferences/"; }; export declare const IDENTITY_VERIFICATION_ENDPOINTS: { readonly TOKEN: "/api/users/identity-verification/token/"; readonly STATUS: "/api/users/identity-verification/status/"; }; export declare const FAVOURITE_ASSET_ENDPOINTS: { readonly BASE: "/api/favourite-assets/"; readonly DETAIL: (uuid: string) => `/api/favourite-assets/${string}/`; }; export declare const DEVICE_TOKEN_ENDPOINTS: { readonly BASE: "/api/device-tokens/"; readonly REGISTER: "/api/device-tokens/register/"; readonly UNREGISTER: "/api/device-tokens/unregister/"; }; export declare const NOTIFICATION_PREFERENCES_ENDPOINTS: { readonly BASE: "/api/notification-preferences/"; }; export declare const NOTIFICATION_ENDPOINTS: { readonly BASE: "/api/notifications/"; readonly DETAIL: (uuid: string) => `/api/notifications/${string}/`; readonly UNREAD_COUNT: "/api/notifications/unread-count/"; readonly MARK_ALL_READ: "/api/notifications/mark-all-read/"; }; export declare const FEATURE_FLAG_ENDPOINTS: { readonly BASE: "/api/feature-flags/"; }; export declare const EXTERNAL_URLS: { readonly TERMS_OF_SERVICE: "https://blueberry.money/terms-of-service"; readonly PRIVACY_POLICY: "https://blueberry.money/privacy-policy"; }; //# sourceMappingURL=api.d.ts.map