* added config to support code split * splitting config * moved the window declaration in EE file as its dependency will be updated in EE * CE: Splitting ApiConstants and SocialLogin constants * CE: split login page * CE: moved getSocialLoginButtonProps func to EE file as it's dependencies will be updated in EE * added key icon * CE: created a factory class to share social auths list * Minor style fix for social btns * Updated the third party auth styles * updated jest config * updated third party login registry class
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
export const REQUEST_TIMEOUT_MS = 20000;
|
|
export const DEFAULT_ACTION_TIMEOUT = 10000;
|
|
export const DEFAULT_EXECUTE_ACTION_TIMEOUT_MS = 15000;
|
|
export const DEFAULT_TEST_DATA_SOURCE_TIMEOUT_MS = 30000;
|
|
|
|
export enum API_STATUS_CODES {
|
|
REQUEST_NOT_AUTHORISED = 401,
|
|
RESOURCE_NOT_FOUND = 404,
|
|
SERVER_ERROR = 502,
|
|
SERVER_UNAVAILABLE = 503,
|
|
}
|
|
|
|
export enum SERVER_ERROR_CODES {
|
|
INCORRECT_BINDING_LIST_OF_WIDGET = 4022,
|
|
RESOURCE_NOT_FOUND = 4028,
|
|
UNABLE_TO_FIND_PAGE = 4027,
|
|
}
|
|
|
|
export enum ERROR_CODES {
|
|
PAGE_NOT_FOUND = "PAGE_NOT_FOUND",
|
|
SERVER_ERROR = "SERVER_ERROR",
|
|
REQUEST_NOT_AUTHORISED = "REQUEST_NOT_AUTHORIZED",
|
|
REQUEST_TIMEOUT = "REQUEST_TIMEOUT",
|
|
FAILED_TO_CORRECT_BINDING = "FAILED_TO_CORRECT_BINDING",
|
|
}
|
|
|
|
export const OAuthURL = "/oauth2/authorization";
|
|
export const GoogleOAuthURL = `${OAuthURL}/google`;
|
|
export const GithubOAuthURL = `${OAuthURL}/github`;
|
|
|
|
export const LOGIN_SUBMIT_PATH = "login";
|
|
export const SIGNUP_SUBMIT_PATH = "users";
|
|
export const SUPER_USER_SUBMIT_PATH = `${SIGNUP_SUBMIT_PATH}/super`;
|
|
|
|
export const getExportAppAPIRoute = (applicationId: string) =>
|
|
`/api/v1/applications/export/${applicationId}`;
|