@widergy/web-utils
Version:
Utility GO! Web utils
34 lines (33 loc) • 1.17 kB
TypeScript
export declare const API_MONITORS: {
SESSION_EXPIRED: string;
MISSING_PARAMETER: string;
INVALID_PARAMETERS: string;
USER_ERROR: string;
RECORD_NOT_UNIQUE: string;
SERVER_ERROR: string;
ERROR_USER_UPDATE: string;
ROUTING_ERROR: string;
OUTDATED_TOKEN: string;
CLIENT_ERROR: string;
CIRCUIT_OPEN: string;
TIMEOUT_CLIENT: string;
};
export declare const createApiMonitors: (apiInstance: any, rollbarTracker: any, options?: any, disableMonitors?: any) => void;
export declare const addNoCacheHeader: (config?: any) => any;
interface ApiUtils {
addNoCacheHeader: (config: any) => any;
createApiMonitors: (apiInstance: any, rollbarTracker: any, options: any, disableMonitors: any) => any;
API_MONITORS: {
SESSION_EXPIRED: string;
MISSING_PARAMETER: string;
INVALID_PARAMETERS: string;
USER_ERROR: string;
RECORD_NOT_UNIQUE: string;
SERVER_ERROR: string;
ERROR_USER_UPDATE: string;
ROUTING_ERROR: string;
};
}
declare const API_UTILS: ApiUtils;
export declare const buildApi: (config: any, create: (arg0: any) => any) => any;
export default API_UTILS;