/** * @var {string} CUSTOM_PLATFORM_URL * The Recomaze platform a connected account can sign in to. */ export const CUSTOM_PLATFORM_URL: string = 'https://custom.recomaze.ai'; /** * @var {string} CUSTOM_PLATFORM_HOST * Same address without the scheme, for copy. */ export const CUSTOM_PLATFORM_HOST: string = 'custom.recomaze.ai'; /** * @var {string} CUSTOM_PLATFORM_LOGIN_URL */ export const CUSTOM_PLATFORM_LOGIN_URL: string = `${CUSTOM_PLATFORM_URL}/login`; /** * @var {string} CONNECT_LINK_FALLBACK_ERROR */ export const CONNECT_LINK_FALLBACK_ERROR: string = 'Could not open the Recomaze Platform. Please try again.'; /** * @var {number} CONNECT_STATUS_POLL_MS * How often the Settings card re-reads /me while a connect link is open in * another tab, so the card flips to Connected without a manual refresh. */ export const CONNECT_STATUS_POLL_MS: number = 4000; /** * @var {number} CONNECT_LINK_TTL_MS * Mirrors PLATFORM_CONNECT_TOKEN_TTL_MINUTES in dashboard-api; polling stops * once the link cannot work any more. */ export const CONNECT_LINK_TTL_MS: number = 30 * 60 * 1000;