interface ApiConfig {
    apiDomain: string;
    apiKey?: string;
    compressionThreshold?: number;
    jwtToken?: string;
    onError?: (error: ApiError, depth: number) => void;
    onFailure?: (
        response: ApiResponse<unknown, unknown>,
        depth: number,
    ) => void;
    onSuccess?: (
        response: ApiResponse<unknown, unknown>,
        depth: number,
    ) => void;
    query?: string;
    reportableParent?: ApiReportable;
    root?: string;
    throwError?: boolean;
    throwFailure?: boolean;
    userid?: string;
}

Hierarchy (View Summary)

Properties

apiDomain: string
apiKey?: string
compressionThreshold?: number
jwtToken?: string
onError?: (error: ApiError, depth: number) => void
onFailure?: (response: ApiResponse<unknown, unknown>, depth: number) => void
onSuccess?: (response: ApiResponse<unknown, unknown>, depth: number) => void
query?: string
reportableParent?: ApiReportable
root?: string
throwError?: boolean
throwFailure?: boolean
userid?: string