@iobroker/adapter-react-v5 4.0.21 → 4.0.23
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/{_Connection.d.ts → LegacyConnection.d.ts} +40 -10
- package/{_Connection.js → LegacyConnection.js} +322 -187
- package/LegacyConnection.js.map +1 -0
- package/README.md +6 -0
- package/i18n/de.json +6 -5
- package/i18n/en.json +2 -1
- package/i18n/es.json +2 -1
- package/i18n/fr.json +2 -1
- package/i18n/it.json +2 -1
- package/i18n/nl.json +2 -1
- package/i18n/pl.json +2 -1
- package/i18n/pt.json +2 -1
- package/i18n/ru.json +5 -4
- package/i18n/uk.json +2 -1
- package/i18n/zh-cn.json +2 -1
- package/index.d.ts +1 -0
- package/index.js +2 -0
- package/package.json +6 -6
- package/_Connection.js.map +0 -1
|
@@ -65,6 +65,8 @@ declare class Connection {
|
|
|
65
65
|
onLogHandlers: ((message: string) => void)[];
|
|
66
66
|
/** @type {Record<string, Promise<any>>} */
|
|
67
67
|
_promises: Record<string, Promise<any>>;
|
|
68
|
+
ignoreState: string;
|
|
69
|
+
simStates: {};
|
|
68
70
|
/**
|
|
69
71
|
* Starts the socket.io connection.
|
|
70
72
|
* @returns {void}
|
|
@@ -197,12 +199,14 @@ declare class Connection {
|
|
|
197
199
|
*/
|
|
198
200
|
getState(id: string): Promise<ioBroker.State | null | undefined>;
|
|
199
201
|
/**
|
|
202
|
+
* @deprecated since js-controller 5.0. Use files instead.
|
|
200
203
|
* Gets the given binary state.
|
|
201
204
|
* @param {string} id The state ID.
|
|
202
205
|
* @returns {Promise<Buffer | undefined>}
|
|
203
206
|
*/
|
|
204
207
|
getBinaryState(id: string): Promise<Buffer | undefined>;
|
|
205
208
|
/**
|
|
209
|
+
* @deprecated since js-controller 5.0. Use files instead.
|
|
206
210
|
* Sets the given binary state.
|
|
207
211
|
* @param {string} id The state ID.
|
|
208
212
|
* @param {string} base64 The Base64 encoded binary data.
|
|
@@ -393,6 +397,22 @@ declare class Connection {
|
|
|
393
397
|
*/
|
|
394
398
|
getEnums(_enum?: string, update?: boolean): Promise<Record<string, ioBroker.Object>>;
|
|
395
399
|
/**
|
|
400
|
+
* Query a predefined object view.
|
|
401
|
+
* @param design design - 'system' or other designs like `custom`.
|
|
402
|
+
* @param type The type of object.
|
|
403
|
+
* @param start The start ID.
|
|
404
|
+
* @param [end] The end ID.
|
|
405
|
+
*/
|
|
406
|
+
getObjectViewCustom(design: any, type: any, start: any, end?: any): Promise<any>;
|
|
407
|
+
/**
|
|
408
|
+
* Query a predefined object view.
|
|
409
|
+
* @param type The type of object.
|
|
410
|
+
* @param start The start ID.
|
|
411
|
+
* @param [end] The end ID.
|
|
412
|
+
*/
|
|
413
|
+
getObjectViewSystem(type: any, start: any, end?: any): Promise<any>;
|
|
414
|
+
/**
|
|
415
|
+
* @deprecated since version 1.1.15, cause parameter order does not match backend
|
|
396
416
|
* Query a predefined object view.
|
|
397
417
|
* @param {string} start The start ID.
|
|
398
418
|
* @param {string} end The end ID.
|
|
@@ -455,16 +475,6 @@ declare class Connection {
|
|
|
455
475
|
* @returns {Promise<void>}
|
|
456
476
|
*/
|
|
457
477
|
writeFile64(adapter: string, fileName: string, data: Buffer | string): Promise<void>;
|
|
458
|
-
/**
|
|
459
|
-
* Rename a file or folder of an adapter.
|
|
460
|
-
*
|
|
461
|
-
* All files in folder will be renamed too.
|
|
462
|
-
* @param {string} adapter The adapter name.
|
|
463
|
-
* @param {string} oldName The file name of the file to be renamed.
|
|
464
|
-
* @param {string} newName The new file name.
|
|
465
|
-
* @returns {Promise<void>}
|
|
466
|
-
*/
|
|
467
|
-
rename(adapter: string, oldName: string, newName: string): Promise<void>;
|
|
468
478
|
/**
|
|
469
479
|
* Delete a file of an adapter.
|
|
470
480
|
* @param {string} adapter The adapter name.
|
|
@@ -531,6 +541,20 @@ declare class Connection {
|
|
|
531
541
|
* @returns {Promise<any>}
|
|
532
542
|
*/
|
|
533
543
|
getInstalled(host: string, update?: boolean, cmdTimeout?: number): Promise<any>;
|
|
544
|
+
/**
|
|
545
|
+
* Rename file or folder in ioBroker DB
|
|
546
|
+
* @param adapter instance name
|
|
547
|
+
* @param oldName current file name, e.g main/vis-views.json
|
|
548
|
+
* @param newName new file name, e.g main/vis-views-new.json
|
|
549
|
+
*/
|
|
550
|
+
rename(adapter: any, oldName: any, newName: any): Promise<any>;
|
|
551
|
+
/**
|
|
552
|
+
* Rename file in ioBroker DB
|
|
553
|
+
* @param adapter instance name
|
|
554
|
+
* @param oldName current file name, e.g main/vis-views.json
|
|
555
|
+
* @param newName new file name, e.g main/vis-views-new.json
|
|
556
|
+
*/
|
|
557
|
+
renameFile(adapter: any, oldName: any, newName: any): Promise<any>;
|
|
534
558
|
/**
|
|
535
559
|
* Execute a command on a host.
|
|
536
560
|
* @param {string} host The host name.
|
|
@@ -783,6 +807,12 @@ declare class Connection {
|
|
|
783
807
|
* @returns {Promise<null>}
|
|
784
808
|
*/
|
|
785
809
|
logout(): Promise<null>;
|
|
810
|
+
/**
|
|
811
|
+
* This is special method for vis.
|
|
812
|
+
* It is used to not send to server the changes about "nothing_selected" state
|
|
813
|
+
* @param id The state that has to be ignored by communication
|
|
814
|
+
*/
|
|
815
|
+
setStateToIgnore(id: any): void;
|
|
786
816
|
}
|
|
787
817
|
declare namespace Connection {
|
|
788
818
|
namespace Connection {
|