kuzzle-device-manager-types 2.1.1 → 2.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.
@@ -9,7 +9,9 @@ export interface ContainerMetadata extends Metadata {
9
9
  }
10
10
  export type ContainerMeasurements = {
11
11
  temperatureExt: TemperatureMeasurement;
12
+ temperatureInt: TemperatureMeasurement;
12
13
  position: PositionMeasurement;
14
+ temperatureWeather: TemperatureMeasurement;
13
15
  };
14
16
  export interface ContainerAssetContent extends AssetContent<ContainerMeasurements, ContainerMetadata> {
15
17
  model: "Container";
@@ -42,6 +42,7 @@ export interface ApiAssetSearchRequest extends AssetsControllerRequest {
42
42
  from?: number;
43
43
  size?: number;
44
44
  scrollTTL?: string;
45
+ lang?: "koncorde" | "elasticsearch";
45
46
  body: JSONObject;
46
47
  }
47
48
  export type ApiAssetSearchResult = SearchResult<KHit<AssetContent>>;
@@ -7,8 +7,8 @@ export interface DeviceContent<TMeasures extends JSONObject = any, TMetadata ext
7
7
  /**
8
8
  * Linked asset unique identifier
9
9
  */
10
- assetId?: string;
10
+ assetId: string | null;
11
11
  /**
12
12
  */
13
- engineId?: string;
13
+ engineId: string;
14
14
  }
@@ -25,7 +25,6 @@ export declare class MeasureService {
25
25
  * - trigger events to trigger business rules
26
26
  */
27
27
  ingest(device: KDocument<DeviceContent>, measurements: DecodedMeasurement<JSONObject>[], metadata: Metadata, payloadUuids: string[]): Promise<void>;
28
- private compareMetadata;
29
28
  private updateDeviceMeasures;
30
29
  private updateAssetMeasures;
31
30
  /**
@@ -30,6 +30,10 @@ export type MeasureOriginDevice = {
30
30
  _id: string;
31
31
  };
32
32
  export type MeasureOriginComputed = {
33
+ /**
34
+ * Computed measures are not automatically added into the asset and device
35
+ * documents at the end of the ingestion pipeline.
36
+ */
33
37
  type: "computed";
34
38
  /**
35
39
  * String that identify the rule used to compute the measure
@@ -1,3 +1,4 @@
1
+ export * from "./Module";
1
2
  export * from "./types/DigitalTwinContent";
2
3
  export * from "./types/Metadata";
3
4
  export * from "./types/EmbeddedMeasure";
@@ -5,4 +6,5 @@ export * from "./types/KuzzleRole";
5
6
  export * from "./utils/lock";
6
7
  export * from "./utils/flattenObject";
7
8
  export * from "./utils/ask";
8
- export * from "./Module";
9
+ export * from "./utils/keepStack";
10
+ export * from "./utils/objectDiff";
@@ -0,0 +1,2 @@
1
+ import { KuzzleError } from "kuzzle";
2
+ export declare function keepStack(original: Error, error: KuzzleError): KuzzleError;
@@ -0,0 +1,2 @@
1
+ import { JSONObject } from "kuzzle-sdk";
2
+ export declare function objectDiff(base: JSONObject, object: JSONObject): string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kuzzle-device-manager-types",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Shared types for Kuzzle Device Manager",
5
5
  "author": "The Kuzzle Team (support@kuzzle.io)",
6
6
  "types": "dist/index.d.ts",