@apistudio/apim-cli
Version:
CLI for API Management Products
58 lines • 1.55 kB
TypeScript
/**
* Copyright IBM Corp. 2024, 2025
*/
import { ErrorResponse } from '../models/interface.js';
export declare const errorsArray: ErrorResponse[];
export declare const addErrorToResponse: (errorCode: string, field: string, description: string) => void;
export declare const constructErrorResponse: () => {
respCode: number;
message: string;
Endpoints: never[];
errors: ErrorResponse[];
};
export declare const filterSensitiveData: (data: Record<string, any>) => Record<string, any>;
export declare const generateCSV: (data: any[]) => Buffer;
export declare const generatePDF: (data: any[]) => Promise<Buffer>;
export declare const sanitizeAxiosResponse: (response: any, error?: any) => {
success: boolean;
message: any;
code: any;
status: any;
statusText: any;
headers: any;
cookies: {
key: string;
value: string;
}[];
config: {
method: any;
url: any;
timeout: any;
};
data: any;
responseTime?: undefined;
} | {
success: boolean;
status: any;
statusText: any;
headers: any;
cookies: {
key: string;
value: string;
}[];
config: {
method: any;
url: any;
timeout: any;
};
data: any;
responseTime: any;
message?: undefined;
code?: undefined;
};
export declare const isSuccessStatus: (status: number) => boolean;
export declare const parseSetCookies: (cookies: string[] | string) => {
key: string;
value: string;
}[];
//# sourceMappingURL=helper.d.ts.map