kuzzle-device-manager-types 2.7.0 → 2.7.1

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.
@@ -22,6 +22,7 @@ export declare class AssetService extends DigitalTwinService {
22
22
  * Update or Create an asset metadata
23
23
  */
24
24
  upsert(engineId: string, model: string, reference: string, metadata: Metadata, request: KuzzleRequest): Promise<KDocument<AssetContent>>;
25
+ private _create;
25
26
  /**
26
27
  * Create an asset metadata
27
28
  */
@@ -9,6 +9,7 @@ import { DeviceContent } from "./types/DeviceContent";
9
9
  export declare class DeviceService extends DigitalTwinService {
10
10
  constructor(plugin: DeviceManagerPlugin);
11
11
  registerAskEvents(): void;
12
+ private _create;
12
13
  /**
13
14
  * Create a new device.
14
15
  *
@@ -30,6 +31,15 @@ export declare class DeviceService extends DigitalTwinService {
30
31
  update(engineId: string, deviceId: string, metadata: Metadata, request: KuzzleRequest): Promise<KDocument<DeviceContent>>;
31
32
  delete(engineId: string, deviceId: string, request: KuzzleRequest): Promise<void>;
32
33
  search(engineId: string, searchParams: SearchParams, request: KuzzleRequest): Promise<SearchResult<KHit<DeviceContent>>>;
34
+ /**
35
+ * Internal logic to attach the device to an engine
36
+ *
37
+ * @param engineId Engine id to attach to
38
+ * @param deviceId Device id to attach
39
+ * @param options.refresh Wait for ES indexation
40
+ * @param options.strict If true, throw if an operation isn't possible
41
+ */
42
+ private _attachEngine;
33
43
  /**
34
44
  * Attach the device to an engine
35
45
  *
@@ -67,7 +77,14 @@ export declare class DeviceService extends DigitalTwinService {
67
77
  */
68
78
  private generateMissingAssetMeasureNames;
69
79
  /**
70
- * Unlink a device of an asset
80
+ * Internal logic of unlink a device of an asset
81
+ *
82
+ * @param {string} deviceId Id of the device
83
+ * @param {KuzzleRequest} request kuzzle request
84
+ */
85
+ private _unlinkAsset;
86
+ /**
87
+ * Unlink a device of an asset with lock
71
88
  *
72
89
  * @param {string} deviceId Id of the device
73
90
  * @param {KuzzleRequest} request kuzzle request
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kuzzle-device-manager-types",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "description": "Shared types for Kuzzle Device Manager",
5
5
  "author": "The Kuzzle Team (support@kuzzle.io)",
6
6
  "main": "index.js",