kuzzle-device-manager-types 3.0.0-3-dev.3 → 3.0.0-3-dev.5
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.
|
@@ -26,6 +26,23 @@ export declare class ModelService extends BaseService {
|
|
|
26
26
|
deleteDevice(_id: string): Promise<void>;
|
|
27
27
|
deleteGroup(_id: string): Promise<void>;
|
|
28
28
|
deleteMeasure(_id: string): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* List all asset models regardless of engine group scope.
|
|
31
|
+
* Used for super admin global view.
|
|
32
|
+
*/
|
|
33
|
+
listAllAssets(): Promise<KDocument<AssetModelContent>[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Check if an engine (tenant) exists by its ID.
|
|
36
|
+
*/
|
|
37
|
+
engineExists(engineId: string): Promise<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Check if the requesting user has access to an engine.
|
|
40
|
+
*/
|
|
41
|
+
userHasEngineAccess(request: KuzzleRequest, engineId: string): Promise<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* Find engine groups that don't exist.
|
|
44
|
+
*/
|
|
45
|
+
findInvalidEngineGroups(engineGroups: string[]): Promise<string[]>;
|
|
29
46
|
listAsset(engineGroups: string[], engineId?: string): Promise<KDocument<AssetModelContent>[]>;
|
|
30
47
|
listDevices(): Promise<KDocument<DeviceModelContent>[]>;
|
|
31
48
|
listGroups(engineGroups: string[]): Promise<KDocument<GroupModelContent>[]>;
|