attlaz-client 1.13.21 → 1.13.23
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.
|
@@ -13,5 +13,8 @@ export declare class HttpClient {
|
|
|
13
13
|
static HTTP_TIMEOUT: number;
|
|
14
14
|
static request(request: HttpClientRequest): Promise<HttpClientResponse>;
|
|
15
15
|
private static getContentType;
|
|
16
|
-
|
|
16
|
+
static formatContentType(input: string): {
|
|
17
|
+
type: string;
|
|
18
|
+
options: string | null;
|
|
19
|
+
};
|
|
17
20
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HttpClient } from './HttpClient.js';
|
|
1
2
|
export class HttpClientResponse {
|
|
2
3
|
status;
|
|
3
4
|
statusText;
|
|
@@ -18,9 +19,7 @@ export class HttpClientResponse {
|
|
|
18
19
|
if (contentType === null || contentType === undefined) {
|
|
19
20
|
return null;
|
|
20
21
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
throw new Error('Unknown content type `' + contentType + '`');
|
|
22
|
+
const parsedContentType = HttpClient.formatContentType(contentType);
|
|
23
|
+
return parsedContentType.type;
|
|
25
24
|
}
|
|
26
25
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DataValueValue } from '../DataValue.js';
|
|
1
2
|
export declare class AdapterConfiguration {
|
|
2
3
|
id: string;
|
|
3
4
|
key: string;
|
|
@@ -5,5 +6,7 @@ export declare class AdapterConfiguration {
|
|
|
5
6
|
adapter: string;
|
|
6
7
|
name: string;
|
|
7
8
|
description: string;
|
|
8
|
-
|
|
9
|
+
default: DataValueValue | null;
|
|
10
|
+
validation: string | null;
|
|
11
|
+
static parse(rawAdapterConfiguration: any): AdapterConfiguration;
|
|
9
12
|
}
|
|
@@ -5,14 +5,18 @@ export class AdapterConfiguration {
|
|
|
5
5
|
adapter;
|
|
6
6
|
name;
|
|
7
7
|
description;
|
|
8
|
-
|
|
8
|
+
default;
|
|
9
|
+
validation = null;
|
|
10
|
+
static parse(rawAdapterConfiguration) {
|
|
9
11
|
const configuration = new AdapterConfiguration();
|
|
10
|
-
configuration.id =
|
|
11
|
-
configuration.key =
|
|
12
|
-
configuration.type =
|
|
13
|
-
configuration.adapter =
|
|
14
|
-
configuration.name =
|
|
15
|
-
configuration.description =
|
|
12
|
+
configuration.id = rawAdapterConfiguration.id;
|
|
13
|
+
configuration.key = rawAdapterConfiguration.key;
|
|
14
|
+
configuration.type = rawAdapterConfiguration.type;
|
|
15
|
+
configuration.adapter = rawAdapterConfiguration.adapter;
|
|
16
|
+
configuration.name = rawAdapterConfiguration.name;
|
|
17
|
+
configuration.description = rawAdapterConfiguration.description;
|
|
18
|
+
configuration.default = rawAdapterConfiguration.default;
|
|
19
|
+
configuration.validation = rawAdapterConfiguration.validation;
|
|
16
20
|
return configuration;
|
|
17
21
|
}
|
|
18
22
|
}
|