@kronos-integration/service-influxdb 1.0.0 → 1.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/service-influxdb",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -37,8 +37,8 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@influxdata/influxdb-client": "^1.35.0",
40
- "@kronos-integration/service": "^13.0.0",
41
- "pacc": "^3.8.0"
40
+ "@kronos-integration/service": "^13.0.1",
41
+ "pacc": "^3.9.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^24.0.15",
@@ -1,4 +1,8 @@
1
- import { prepareAttributesDefinitions, url_attribute } from "pacc";
1
+ import {
2
+ prepareAttributesDefinitions,
3
+ url_attribute,
4
+ token_attribute
5
+ } from "pacc";
2
6
  import { Service } from "@kronos-integration/service";
3
7
  import { InfluxDB } from "@influxdata/influxdb-client";
4
8
 
@@ -17,20 +21,21 @@ export class ServiceInfluxdb extends Service {
17
21
  return "influxdb client";
18
22
  }
19
23
 
20
- static attributes = prepareAttributesDefinitions({
21
- url: {
22
- ...url_attribute,
23
- description: "url of the influxdb server",
24
- needsRestart: true,
25
- env: "INFLUXDB_URL"
24
+ static attributes = prepareAttributesDefinitions(
25
+ {
26
+ url: {
27
+ ...url_attribute,
28
+ description: "url of the influxdb server",
29
+ needsRestart: true,
30
+ env: "INFLUXDB_URL"
31
+ },
32
+ token: {
33
+ ...token_attribute,
34
+ env: "INFLUXDB_TOKEN"
35
+ }
26
36
  },
27
- token: {
28
- type: "string",
29
- private: true,
30
- env: "INFLUXDB_TOKEN"
31
- },
32
- ...Service.attributes
33
- });
37
+ Service.attributes
38
+ );
34
39
 
35
40
  /**
36
41
  * @return {string} name with url
@@ -2,7 +2,6 @@
2
2
  * influxdb client.
3
3
  */
4
4
  export class ServiceInfluxdb extends Service {
5
- static attributes: any;
6
5
  client: InfluxDB;
7
6
  }
8
7
  export default ServiceInfluxdb;