UNPKG

react-native-efilli-sdk

Version:
48 lines (47 loc) 1.29 kB
/** * Enumeration of possible error types that can occur in the SDK */ export declare enum ErrorType { /** * Invalid message type received from the consent form */ INVALID_MESSAGE_TYPE = "INVALID_MESSAGE_TYPE", /** * Invalid message format received from the consent form */ INVALID_MESSAGE_FORMAT = "INVALID_MESSAGE_FORMAT", /** * Network request failed */ NETWORK_ERROR = "NETWORK_ERROR", /** * Storage operation failed */ STORAGE_ERROR = "STORAGE_ERROR", /** * Invalid parameters provided to SDK methods */ INVALID_PARAMETERS = "INVALID_PARAMETERS", /** * SDK not initialized properly */ NOT_INITIALIZED = "NOT_INITIALIZED", /** * SDK not fully configured with required language and URLs */ NOT_CONFIGURED = "NOT_CONFIGURED", /** * Invalid or missing URL for consent form */ INVALID_URL = "INVALID_URL", /** * Native module not available or properly linked */ NATIVE_MODULE_UNAVAILABLE = "NATIVE_MODULE_UNAVAILABLE" } /** * Get a user-friendly message for an error type * @param errorType - The error type * @returns User-friendly error message */ export declare const getErrorTypeMessage: (errorType: ErrorType) => string;