Something went wrong. Try again.
TypeScript client for accessing TLE Community.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738const constants = { NEW_SERVER_DATE_FORMAT: 'YYYY MM DD HH:mm:ss ZZ', OLD_SERVER_DATE_FORMAT: 'DD MM YYYY HH:mm:ss ZZ',};
/** Server says we've exceeded the RPC limit ("slow down"). Recoverable. */export const RPC_LIMIT_ERROR_CODE = 1010;
/** Server wants a captcha solved before it will honour the call. */export const CAPTCHA_ERROR_CODE = 1016;
/** * Server rejected the session id (missing, expired, or invalid). Recoverable * by re-authenticating and retrying. */export const SESSION_EXPIRED_ERROR_CODE = 1006;
/** * Error codes the transport blocks on: rather than returning these straight * away it awaits every response subscriber first, so a handler gets the * chance to resolve the condition and retry (see lib/core/responses.ts). * * Note the spec overloads 1016 - on the trade endpoints it means "the trade * is no longer valid" rather than "solve a captcha" (see * lib/types/schema.ts's `trade/accept_from_market` description). 1006 is * likewise overloaded: the v2 layer can raise it for a valid session on * methods it argument-maps wrong, not only for a genuinely dead session. * Those errors will block on handlers too, which is harmless: with nothing * subscribed the dispatch is a no-op and the error is returned unchanged. */export const BLOCKING_ERROR_CODES = [ RPC_LIMIT_ERROR_CODE, CAPTCHA_ERROR_CODE, SESSION_EXPIRED_ERROR_CODE,];
export default constants;