attlaz-client 1.32.0 → 1.32.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.
@@ -109,14 +109,19 @@ export class Endpoint {
109
109
  if (action instanceof QueryString) {
110
110
  action = action.build();
111
111
  }
112
+ const result = new ObjectResult();
112
113
  let requestResponse;
113
114
  try {
114
115
  requestResponse = await this.httpClient.request(action, parameters, method, signWithOauthToken);
115
116
  }
116
117
  catch (error) {
117
- throw this.toApiError(error);
118
+ if (error.httpStatus === HttpStatus.HTTP_NOTFOUND) {
119
+ result.setData(null);
120
+ }
121
+ else {
122
+ throw this.toApiError(error);
123
+ }
118
124
  }
119
- const result = new ObjectResult();
120
125
  // TODO: add errors
121
126
  /**
122
127
  * Parse errors
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.31.0";
1
+ export declare const VERSION = "1.32.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.31.0";
1
+ export const VERSION = "1.32.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.32.0",
3
+ "version": "1.32.1",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",