kuzzle-device-manager-types 2.4.0-beta.15 → 2.4.0-beta.16

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.
@@ -1,10 +1,10 @@
1
1
  import { KuzzleRequest, User } from "kuzzle";
2
2
  import { JSONObject, KDocument, KHit, SearchResult, mReplaceResponse } from "kuzzle-sdk";
3
3
  import { DeviceManagerPlugin } from "../plugin";
4
- import { Metadata, BaseService, SearchParams } from "../shared";
4
+ import { BaseService, Metadata, SearchParams } from "../shared";
5
5
  import { AssetHistoryService } from "./AssetHistoryService";
6
- import { AssetContent } from "./types/AssetContent";
7
6
  import { ApiAssetMigrateTenantResult } from "./types/AssetApi";
7
+ import { AssetContent } from "./types/AssetContent";
8
8
  export declare class AssetService extends BaseService {
9
9
  private assetHistoryService;
10
10
  constructor(plugin: DeviceManagerPlugin, assetHistoryService: AssetHistoryService);
@@ -1,8 +1,8 @@
1
1
  import { KuzzleRequest } from "kuzzle";
2
2
  import { JSONObject, KDocument } from "kuzzle-sdk";
3
- import { DeviceManagerPlugin } from "../plugin";
4
3
  import { DeviceContent } from "../device";
5
4
  import { DecodedMeasurement } from "../measure";
5
+ import { DeviceManagerPlugin } from "../plugin";
6
6
  import { BaseService } from "../shared";
7
7
  import { Decoder } from "./Decoder";
8
8
  export declare class PayloadService extends BaseService {
@@ -1,11 +1,11 @@
1
1
  import { KuzzleRequest } from "kuzzle";
2
2
  import { JSONObject, KDocument, KHit, SearchResult } from "kuzzle-sdk";
3
- import { AssetContent } from "./../asset";
4
- import { DeviceManagerPlugin } from "../plugin";
5
- import { Metadata, BaseService, SearchParams } from "../shared";
6
3
  import { DecodedMeasurement } from "../measure";
7
- import { DeviceContent } from "./types/DeviceContent";
4
+ import { DeviceManagerPlugin } from "../plugin";
5
+ import { BaseService, Metadata, SearchParams } from "../shared";
6
+ import { AssetContent } from "./../asset";
8
7
  import { ApiDeviceLinkAssetRequest } from "./types/DeviceApi";
8
+ import { DeviceContent } from "./types/DeviceContent";
9
9
  export declare class DeviceService extends BaseService {
10
10
  constructor(plugin: DeviceManagerPlugin);
11
11
  registerAskEvents(): void;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { UUID } from "node:crypto";
4
3
  import { KHit, User } from "kuzzle";
4
+ import { UUID } from "node:crypto";
5
5
  import { AbstractExporter, Column, ExportParams } from "../shared";
6
6
  import { MeasureContent } from "./exports";
7
7
  interface MeasureSearchParams extends ExportParams {
@@ -1,8 +1,7 @@
1
1
  import { Backend, Plugin } from "kuzzle";
2
- import { AbstractEngine, ConfigManager } from "kuzzle-plugin-commons";
3
- import { EngineContent } from "kuzzle-plugin-commons";
4
- import { DeviceManagerConfiguration } from "./types/DeviceManagerConfiguration";
2
+ import { AbstractEngine, ConfigManager, EngineContent } from "kuzzle-plugin-commons";
5
3
  import { DeviceManagerPlugin } from "./DeviceManagerPlugin";
4
+ import { DeviceManagerConfiguration } from "./types/DeviceManagerConfiguration";
6
5
  import { InternalCollection } from "./types/InternalCollection";
7
6
  export type AskEngineList = {
8
7
  name: "ask:device-manager:engine:list";
@@ -1,11 +1,10 @@
1
- export * from "./services";
2
1
  export * from "./Module";
2
+ export * from "./services";
3
3
  export * from "./types/DigitalTwinContent";
4
- export * from "./types/Metadata";
5
4
  export * from "./types/EmbeddedMeasure";
6
5
  export * from "./types/KuzzleRole";
7
- export * from "./utils/lock";
6
+ export * from "./types/Metadata";
8
7
  export * from "./utils/flattenObject";
9
- export * from "./utils/ask";
10
8
  export * from "./utils/keepStack";
9
+ export * from "./utils/lock";
11
10
  export * from "./utils/objectDiff";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kuzzle-device-manager-types",
3
- "version": "2.4.0-beta.15",
3
+ "version": "2.4.0-beta.16",
4
4
  "description": "Shared types for Kuzzle Device Manager",
5
5
  "author": "The Kuzzle Team (support@kuzzle.io)",
6
6
  "main": "index.js",
@@ -1,8 +0,0 @@
1
- export type AskEventDefinition = {
2
- name: string;
3
- payload: any;
4
- result: any;
5
- };
6
- export type AskEventHandler<TAskEventDefinition extends AskEventDefinition = AskEventDefinition> = (payload?: TAskEventDefinition["payload"]) => Promise<TAskEventDefinition["result"]>;
7
- export declare function onAsk<TAskEventDefinition extends AskEventDefinition = AskEventDefinition>(event: TAskEventDefinition["name"], handler: AskEventHandler<TAskEventDefinition>): any;
8
- export declare function ask<TAskEventDefinition extends AskEventDefinition = AskEventDefinition>(event: TAskEventDefinition["name"], payload?: TAskEventDefinition["payload"]): Promise<TAskEventDefinition["result"]>;