kuzzle-device-manager-types 2.8.0-dev.6 → 2.8.0-dev.8

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.
@@ -46,7 +46,7 @@ export declare class AssetService extends DigitalTwinService {
46
46
  * @param engineGroup
47
47
  * @param model
48
48
  */
49
- updateModelLocales(request: KuzzleRequest, engineGroup: string, model: string): Promise<ApiAssetUpdateModelLocales[]>;
49
+ updateModelLocales(request: KuzzleRequest, model: string): Promise<ApiAssetUpdateModelLocales[]>;
50
50
  private getEngine;
51
51
  private refreshModel;
52
52
  }
@@ -88,4 +88,8 @@ export declare class MeasureService extends BaseService {
88
88
  */
89
89
  private findAssetMeasureNameFromDevice;
90
90
  private mutexUpdateAsset;
91
+ /**
92
+ * Create a new document in the collection asset-history, for each asset state
93
+ */
94
+ private historizeAssetStates;
91
95
  }
@@ -8,7 +8,7 @@ interface ModelsControllerRequest {
8
8
  export interface ApiModelGetAssetRequest extends ModelsControllerRequest {
9
9
  action: "getAsset";
10
10
  model: string;
11
- engineGroup: string;
11
+ engineGroup?: string;
12
12
  }
13
13
  export type ApiModelGetAssetResult = KDocument<AssetModelContent>;
14
14
  export interface ApiModelGetDeviceRequest extends ModelsControllerRequest {
@@ -6,6 +6,12 @@ export type DeviceManagerConfiguration = {
6
6
  * Useful to start the plugin even if the mappings are not up to date.
7
7
  */
8
8
  ignoreStartupErrors: boolean;
9
+ /**
10
+ * Should be set to true to historize measures in asset-history collection (deprecated)
11
+ *
12
+ * Should be enabled only for backward compatibility because it leads to important performance costs.
13
+ */
14
+ assetsHistorizesMeasures: boolean;
9
15
  engine: {
10
16
  /**
11
17
  * Auto update collection mappings with models
@@ -1,5 +1,6 @@
1
1
  import { Backend, Controller, KuzzleRequest } from "kuzzle";
2
2
  export declare class TestsController extends Controller {
3
3
  constructor(app: Backend);
4
+ setAssetsHistorizesMeasuresConfig(request: KuzzleRequest): Promise<void>;
4
5
  createDigitalTwinFromBackend(request: KuzzleRequest): Promise<void>;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kuzzle-device-manager-types",
3
- "version": "2.8.0-dev.6",
3
+ "version": "2.8.0-dev.8",
4
4
  "description": "Shared types for Kuzzle Device Manager",
5
5
  "author": "The Kuzzle Team (support@kuzzle.io)",
6
6
  "main": "index.js",