attlaz-client 1.10.20 → 1.10.21

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.
@@ -1,10 +1,9 @@
1
- import { DataValueValue } from '../DataValue';
2
- import { CollectionResult } from '../Result/CollectionResult';
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(adapterCollectionResult: CollectionResult<AdapterConnectionConfigurationValue>): DataValueCollection;
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(adapterCollectionResult) {
7
+ static toDataValueCollection(configurationValues) {
8
8
  const result = new DataValueCollection();
9
- for (const y of adapterCollectionResult.getData()) {
10
- if (y.value !== null) {
11
- result.set(y.config_key, y.value);
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.10.20",
3
+ "version": "1.10.21",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",