attlaz-client 1.10.20 → 1.10.22
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.
|
@@ -4,6 +4,7 @@ export class AdapterConnection {
|
|
|
4
4
|
adapter;
|
|
5
5
|
name;
|
|
6
6
|
projectId;
|
|
7
|
+
status;
|
|
7
8
|
// configuration: DataValueCollection;
|
|
8
9
|
constructor() {
|
|
9
10
|
}
|
|
@@ -14,6 +15,7 @@ export class AdapterConnection {
|
|
|
14
15
|
adapterConnection.adapter = rawAdapterConnection.adapter;
|
|
15
16
|
adapterConnection.name = rawAdapterConnection.name;
|
|
16
17
|
adapterConnection.projectId = rawAdapterConnection.project;
|
|
18
|
+
adapterConnection.status = rawAdapterConnection.status;
|
|
17
19
|
// adapterConnection.configuration = DataValueCollection.fromObject(rawAdapterConnection.configuration);
|
|
18
20
|
return adapterConnection;
|
|
19
21
|
// adapter.id = rawAdapter.id;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { DataValueValue } from '../DataValue';
|
|
2
|
-
import {
|
|
3
|
-
import { DataValueCollection } from '../DataValueCollection';
|
|
1
|
+
import { DataValueValue } from '../DataValue.js';
|
|
2
|
+
import { DataValueCollection } from '../DataValueCollection.js';
|
|
4
3
|
export declare class AdapterConnectionConfigurationValue {
|
|
5
4
|
id: string;
|
|
6
5
|
config_id: string;
|
|
7
6
|
config_key: string;
|
|
8
7
|
value: DataValueValue | null;
|
|
9
|
-
static toDataValueCollection(
|
|
8
|
+
static toDataValueCollection(configurationValues: AdapterConnectionConfigurationValue[]): DataValueCollection;
|
|
10
9
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { DataValueCollection } from '../DataValueCollection';
|
|
1
|
+
import { DataValueCollection } from '../DataValueCollection.js';
|
|
2
2
|
export class AdapterConnectionConfigurationValue {
|
|
3
3
|
id;
|
|
4
4
|
config_id;
|
|
5
5
|
config_key;
|
|
6
6
|
value;
|
|
7
|
-
static toDataValueCollection(
|
|
7
|
+
static toDataValueCollection(configurationValues) {
|
|
8
8
|
const result = new DataValueCollection();
|
|
9
|
-
for (const
|
|
10
|
-
if (
|
|
11
|
-
result.set(
|
|
9
|
+
for (const configurationValue of configurationValues) {
|
|
10
|
+
if (configurationValue.value !== null) {
|
|
11
|
+
result.set(configurationValue.config_key, configurationValue.value);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
return result;
|