@rudderstack/integrations-lib
Version:
A comprehensive TypeScript library providing shared utilities, SDKs, and tools for RudderStack integrations and destinations.
26 lines • 1.05 kB
TypeScript
import { AxiosError } from 'axios';
import { AuthObject, FilterObj, SFMCErrorResponse, SoapResponseBody } from './type';
export declare class RestError extends Error {
errorcode: string | undefined;
documentation: string | undefined;
statusCode: number | undefined;
constructor(ex: AxiosError<SFMCErrorResponse>);
}
export declare class SoapError extends Error {
code: string;
data: string;
statusCode: number;
constructor(ex: any);
}
export declare const parseXML: (data: any) => SoapResponseBody;
export declare const parseFilter: (filter: FilterObj) => {
Property: string;
SimpleOperator: string;
Value: string;
'@_xsi:type': string;
};
export declare const getUrl: (subDomain: string) => string;
export declare const isExpired: (authObject: AuthObject) => boolean;
export declare const getToken: (authObject: AuthObject) => Promise<AuthObject>;
export declare const xmlBuilder: (object: string, properties: string[], accessToken?: string, filter?: any) => string;
//# sourceMappingURL=utils.d.ts.map