@arrowsphere/api-client 3.186.0 → 3.187.0-rc.fdi.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -146,7 +146,9 @@ class AbstractRestfulClient extends AbstractHttpClient_1.AbstractHttpClient {
|
|
|
146
146
|
throw new exception_1.NotFoundException(`Resource not found on URL ${this.getUrl()}`, response.data.error, statusCode);
|
|
147
147
|
}
|
|
148
148
|
if (statusCode >= 400 && statusCode <= 599) {
|
|
149
|
-
throw new exception_1.PublicApiClientException(
|
|
149
|
+
throw new exception_1.PublicApiClientException(response.data.messages, response.data.error, statusCode, {
|
|
150
|
+
origin: `Error: status code: ${statusCode}. URL: ${this.getUrl()}`,
|
|
151
|
+
});
|
|
150
152
|
}
|
|
151
153
|
return response.data;
|
|
152
154
|
}
|
|
@@ -106,6 +106,7 @@ export declare type APIResponseCustomerMigration = {
|
|
|
106
106
|
export interface APIResponseError {
|
|
107
107
|
status: number;
|
|
108
108
|
error: string;
|
|
109
|
+
messages?: string;
|
|
109
110
|
}
|
|
110
111
|
export declare type PatchCustomerContactPayload = {
|
|
111
112
|
[Property in keyof PostCustomerContactPayload]?: PostCustomerContactPayload[Property];
|
package/package.json
CHANGED