@kronos-integration/service 13.1.0 → 13.1.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",
3
- "version": "13.1.0",
3
+ "version": "13.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -37,9 +37,9 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@kronos-integration/endpoint": "^10.0.5",
40
- "@kronos-integration/interceptor": "^12.0.1",
40
+ "@kronos-integration/interceptor": "^12.0.2",
41
41
  "loglevel-mixin": "^7.2.5",
42
- "pacc": "^3.9.0",
42
+ "pacc": "^3.10.0",
43
43
  "remove-sensible-values": "^1.3.1",
44
44
  "statetransition-mixin": "^8.1.3"
45
45
  },
package/src/service.mjs CHANGED
@@ -4,7 +4,8 @@ import {
4
4
  prepareAttributesDefinitions,
5
5
  getAttributes,
6
6
  setAttributes,
7
- description_attribute
7
+ description_attribute,
8
+ timeout_attribute
8
9
  } from "pacc";
9
10
  import { EndpointsMixin } from "./endpoints-mixin.mjs";
10
11
  import { InitializationContext } from "./initialization-context.mjs";
@@ -102,18 +103,18 @@ export class Service extends EndpointsMixin(
102
103
  timeout: {
103
104
  attributes: {
104
105
  start: {
106
+ ...timeout_attribute,
105
107
  description: "service start timeout",
106
- type: "duration",
107
108
  default: 20
108
109
  },
109
110
  stop: {
111
+ ...timeout_attribute,
110
112
  description: "service stop timeout",
111
- type: "duration",
112
113
  default: 20
113
114
  },
114
115
  restart: {
116
+ ...timeout_attribute,
115
117
  description: "service restart timeout",
116
- type: "duration",
117
118
  default: 20
118
119
  }
119
120
  }
@@ -15,4 +15,6 @@ export class StandaloneServiceProvider extends ServiceProviderMixin(Service) {
15
15
  static get description() {
16
16
  return "This service to control services";
17
17
  }
18
+
19
+ async getCredential(key) {}
18
20
  }
@@ -34,5 +34,6 @@ declare const StandaloneServiceProvider_base: {
34
34
  */
35
35
  export class StandaloneServiceProvider extends StandaloneServiceProvider_base {
36
36
  static get description(): string;
37
+ getCredential(key: any): Promise<void>;
37
38
  }
38
39
  export {};