@iobroker/types 5.0.4 → 5.0.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.
- package/build/types.d.ts +8 -2
- package/package.json +2 -2
package/build/types.d.ts
CHANGED
|
@@ -389,6 +389,8 @@ export declare class AdapterClass extends EventEmitter {
|
|
|
389
389
|
readonly constants: {
|
|
390
390
|
readonly STATE_QUALITY: typeof STATE_QUALITY;
|
|
391
391
|
};
|
|
392
|
+
/** Features supported by the running instance */
|
|
393
|
+
private readonly SUPPORTED_FEATURES;
|
|
392
394
|
constructor(options: AdapterOptions | string);
|
|
393
395
|
decrypt(secretVal: string, value?: string): string;
|
|
394
396
|
decrypt(value: string): string;
|
|
@@ -406,7 +408,7 @@ export declare class AdapterClass extends EventEmitter {
|
|
|
406
408
|
getPort(port: number, host?: string, callback?: (port: number) => void): void;
|
|
407
409
|
getPort(port: number, callback?: (port: number) => void): void;
|
|
408
410
|
private _getPort;
|
|
409
|
-
supportsFeature(featureName:
|
|
411
|
+
supportsFeature(featureName: SupportedFeature): boolean;
|
|
410
412
|
checkPassword(user: string, pw: string, options: Record<string, any>, callback: CheckPasswordCallback): Promise<void>;
|
|
411
413
|
checkPassword(user: string, pw: string, callback: CheckPasswordCallback): Promise<void>;
|
|
412
414
|
private _checkPassword;
|
|
@@ -558,8 +560,8 @@ export declare class AdapterClass extends EventEmitter {
|
|
|
558
560
|
deleteChannel(channelName: string, options?: unknown, callback?: ioBroker.ErrorCallback): void;
|
|
559
561
|
deleteChannel(parentDevice: string, channelName: string, options?: unknown, callback?: ioBroker.ErrorCallback): void;
|
|
560
562
|
private _deleteChannel;
|
|
561
|
-
deleteState(stateName: string, options?: unknown, callback?: ioBroker.ErrorCallback): void;
|
|
562
563
|
deleteState(parentChannel: string, stateName: string, options?: unknown, callback?: ioBroker.ErrorCallback): void;
|
|
564
|
+
deleteState(stateName: string, options?: unknown, callback?: ioBroker.ErrorCallback): void;
|
|
563
565
|
deleteState(parentDevice: string, parentChannel: string, stateName: string, options?: unknown, callback?: ioBroker.ErrorCallback): void;
|
|
564
566
|
private _deleteState;
|
|
565
567
|
getDevices(callback: ioBroker.GetObjectsCallback3<ioBroker.DeviceObject>): void;
|
|
@@ -1208,6 +1210,10 @@ declare enum STATE_QUALITY {
|
|
|
1208
1210
|
SENSOR_ERROR_REPORT = 132
|
|
1209
1211
|
}
|
|
1210
1212
|
|
|
1213
|
+
declare const SUPPORTED_FEATURES: ("ALIAS" | "ALIAS_SEPARATE_READ_WRITE_ID" | "ADAPTER_GETPORT_BIND" | "ADAPTER_DEL_OBJECT_RECURSIVE" | "ADAPTER_SET_OBJECT_SETS_DEFAULT_VALUE" | "ADAPTER_AUTO_DECRYPT_NATIVE" | "PLUGINS" | "CONTROLLER_NPM_AUTO_REBUILD" | "CONTROLLER_READWRITE_BASE_SETTINGS" | "CONTROLLER_MULTI_REPO" | "CONTROLLER_LICENSE_MANAGER" | "DEL_INSTANCE_CUSTOM" | "BINARY_STATE_EVENT" | "CUSTOM_FULL_VIEW" | "ADAPTER_GET_OBJECTS_BY_ARRAY" | "CONTROLLER_UI_UPGRADE")[];
|
|
1214
|
+
|
|
1215
|
+
declare type SupportedFeature = (typeof SUPPORTED_FEATURES)[number];
|
|
1216
|
+
|
|
1211
1217
|
export declare type TimeoutCallback = (args?: any[]) => void;
|
|
1212
1218
|
|
|
1213
1219
|
declare interface ValidateIdOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/types",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=12.0.0"
|
|
6
6
|
},
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
]
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "851d3cfa4fed442b25db63e3455b29f5081e45b6"
|
|
45
45
|
}
|