UNPKG

@selfcommunity/react-core

Version:

React Core Components useful for integrating UI Community components (react-ui).

109 lines (108 loc) 3.75 kB
/** * Manage Validation Error * Used to check the initial configurations */ export declare class ValidationError { static ERROR_INVALID_CONF: number; static ERROR_INVALID_SESSION: number; static ERROR_INVALID_SESSION_TYPE: number; static ERROR_INVALID_SESSION_AUTH_TOKEN: number; static ERROR_INVALID_SESSION_CLIENT_ID: number; static ERROR_INVALID_SESSION_REFRESH_TOKEN_CALLBACK: number; static ERROR_INVALID_SESSION_LOGOUT_CALLBACK: number; static ERROR_INVALID_PORTAL: number; static ERROR_INVALID_LOCALE: number; static ERROR_INVALID_TRANSLATIONS: number; static ERROR_INVALID_THEME: number; static ERROR_INVALID_ROUTER: number; static ERROR_INVALID_PROVIDERS: number; static ERROR_INVALID_HANDLE_ANONYMOUS_ACTION: number; static ERROR_INVALID_NOTIFICATIONS: number; static ERROR_INVALID_NOTIFICATIONS_WEBSOCKET: number; static ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_DISABLE_TOAST_MESSAGE: number; static ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_SECURE: number; static ERROR_INVALID_NOTIFICATIONS_WEBSOCKET_PREFIX_PATH: number; static ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING: number; static ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_DISABLE_TOAST_MESSAGE: number; static ERROR_INVALID_NOTIFICATIONS_WEB_PUSH_MESSAGING_APPLICATION_SERVER_KEY: number; static ERROR_INVALID_NOTIFICATIONS_MOBILE_PUSH_MESSAGING_DISABLE: number; static ERROR_INVALID_NOTIFICATIONS_MOBILE_NATIVE_PUSH_MESSAGING: number; static ERROR_INVALID_PREFERENCES: number; static ERROR_INVALID_GLOBAL_PREFERENCES: number; static ERROR_INVALID_PREFERENCES_FEATURES: number; static ERROR_INVALID_VOTE: number; static ERROR_INVALID_VOTE_REACTIONS: number; static ERROR_INVALID_VOTE_REACTIONS_STRUCTURE: number; static ERROR_INVALID_INTEGRATIONS: number; static ERROR_INVALID_INTEGRATIONS_OPENAI: number; static ERROR_INVALID_INTEGRATIONS_OPENAI_SECRETKEY: number; static ERROR_INVALID_INTEGRATIONS_GEOCODING: number; static ERROR_INVALID_INTEGRATIONS_GEOCODING_APIKEY: number; static defaultErrorMessageMap: { [x: number]: string; }; errorCode: any; errorData: any; errorMessage: any; constructor(errorCode: any, errorData: any, errorMessage?: string); } /** * Manage Validation Warnings * Used to check the initial configurations */ export declare class ValidationWarnings { static WARNING_SESSION_REFRESH_TOKEN_CALLBACK_NOT_FOUND: number; static WARNING_LOCALE_FALLBACK: number; static WARNING_ROUTER_FALLBACK: number; static WARNING_HANDLE_ANONYMOUS_ACTION_FALLBACK: number; static defaultErrorMessageMap: { [x: number]: string; }; warningCode: any; warningData: any; warningMessage: any; constructor(warningCode: any, warningData: any, warningMessage?: string); } /** * /** * Manage Validation Error/Warnings * of the initial configuration */ export declare class ValidationResult { errors: any[]; warnings: any[]; scope: string; constructor(scope?: string); /** * Add an error * @param errorCode * @param errorData */ addError(errorCode: any, errorData: any): any[]; /** * Add a warning * @param errorCode * @param errorData */ addWarnings(warningCode: any, warningData: any): any[]; /** * Check if contains errors */ hasErrors(): boolean; /** * Check if contains warnings */ hasWarnings(): boolean; /** * Emit in console all the errors */ emitErrors(): void; /** * Emit in console all the warnings */ emitWarnings(): void; /** * Emit in console errors/warnings */ emit(): void; }