attlaz-client 1.37.2 → 1.37.5
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.
- package/dist/Model/EntityId.js +1 -1
- package/dist/Service/Endpoint.d.ts +2 -2
- package/dist/Service/Endpoint.js +9 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/Model/EntityId.js
CHANGED
|
@@ -3,7 +3,7 @@ export class EntityId {
|
|
|
3
3
|
constructor(id) {
|
|
4
4
|
this.id = id;
|
|
5
5
|
if (id === null || id === undefined || (id + '').length < 1) {
|
|
6
|
-
throw new Error('Invalid id');
|
|
6
|
+
throw new Error('Invalid entity id (' + this.constructor.name + ')');
|
|
7
7
|
}
|
|
8
8
|
if ((id + '').length !== 27) {
|
|
9
9
|
// console.error('Id `' + id + '` does not seem a valid KSUID (type `' + this.getIdType() + '`)');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { Parameters } from '../Http/Data/Parameters.js';
|
|
2
|
+
import { QueryString } from '../Http/Data/QueryString.js';
|
|
1
3
|
import { OAuthClient } from '../Http/OAuthClient.js';
|
|
2
4
|
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
3
5
|
import { ObjectResult } from '../Model/Result/ObjectResult.js';
|
|
4
|
-
import { Parameters } from '../Http/Data/Parameters.js';
|
|
5
|
-
import { QueryString } from '../Http/Data/QueryString.js';
|
|
6
6
|
export declare abstract class Endpoint {
|
|
7
7
|
protected httpClient: OAuthClient;
|
|
8
8
|
constructor(httpClient: OAuthClient);
|
package/dist/Service/Endpoint.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ObjectResult } from '../Model/Result/ObjectResult.js';
|
|
3
|
-
import { Utils } from '../Utils.js';
|
|
4
|
-
import { ObjectWrapper } from '../Model/Result/ObjectWrapper.js';
|
|
5
|
-
import { DataValueCollection } from '../Model/DataValueCollection.js';
|
|
6
|
-
import { JsonSerializable } from '../Model/JsonSerializable.js';
|
|
7
|
-
import { LogStreamId } from '../Model/Log/LogStreamId.js';
|
|
1
|
+
import { ClientError } from '../Http/ClientError.js';
|
|
8
2
|
import { QueryString } from '../Http/Data/QueryString.js';
|
|
9
3
|
import { HttpStatus } from '../Http/HttpStatus.js';
|
|
4
|
+
import { DataValueCollection } from '../Model/DataValueCollection.js';
|
|
10
5
|
import { ApiError } from '../Model/Error/ApiError.js';
|
|
11
|
-
import {
|
|
6
|
+
import { JsonSerializable } from '../Model/JsonSerializable.js';
|
|
7
|
+
import { LogStreamId } from '../Model/Log/LogStreamId.js';
|
|
8
|
+
import { CollectionResult } from '../Model/Result/CollectionResult.js';
|
|
9
|
+
import { ObjectResult } from '../Model/Result/ObjectResult.js';
|
|
10
|
+
import { ObjectWrapper } from '../Model/Result/ObjectWrapper.js';
|
|
11
|
+
import { Utils } from '../Utils.js';
|
|
12
12
|
export class Endpoint {
|
|
13
13
|
httpClient;
|
|
14
14
|
constructor(httpClient) {
|
|
@@ -188,7 +188,7 @@ export class Endpoint {
|
|
|
188
188
|
return parser(wrappedData);
|
|
189
189
|
}
|
|
190
190
|
catch (error) {
|
|
191
|
-
console.error('Unable to parse
|
|
191
|
+
console.error('Unable to parse object', { object: rawObject, error });
|
|
192
192
|
}
|
|
193
193
|
return null;
|
|
194
194
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.37.
|
|
1
|
+
export declare const VERSION = "1.37.2";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.37.
|
|
1
|
+
export const VERSION = "1.37.2";
|