@climatepartner/climatepartner-api-sdk
Version:
The ClimatePartner API provides one uniform public API to customers of ClimatePartner.
34 lines (33 loc) • 960 B
TypeScript
export type RawError = {
error: {
code: string;
message: string;
};
};
export declare class UnifiedApiError extends Error {
statusCode: number;
code: string;
message: string;
constructor(statusCode: number, code: string, message: string);
}
export declare class UnifiedApiBadRequestError extends UnifiedApiError {
statusCode: number;
code: string;
message: string;
constructor(statusCode: number, code: string, message: string);
}
export declare class UnifiedApiInternalServerError extends UnifiedApiError {
statusCode: number;
code: string;
message: string;
constructor(statusCode: number, code: string, message: string);
}
export declare enum CreateOrderErrorCode {
INTERNAL_ERROR = "INTERNAL_ERROR",
REQUEST_TIMED_OUT = "REQUEST_TIMED_OUT"
}
export type UnifiedApiConfiguration = {
longtermToken: string;
endpointUrl?: string;
authorizationStoragePath?: string;
};