@iobroker/adapter-react-v5 3.1.23 → 3.1.26
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/Components/404.d.ts +3 -0
- package/Components/ColorPicker.d.ts +138 -0
- package/Components/ComplexCron.d.ts +8 -0
- package/Components/CustomModal.d.ts +3 -0
- package/Components/FileBrowser.d.ts +125 -0
- package/Components/FileBrowser.js +26 -9
- package/Components/FileBrowser.js.map +1 -1
- package/Components/FileViewer.d.ts +80 -0
- package/Components/FileViewer.js +27 -22
- package/Components/FileViewer.js.map +1 -1
- package/Components/Icon.d.ts +21 -0
- package/Components/IconPicker.d.ts +64 -0
- package/Components/IconSelector.d.ts +25 -0
- package/Components/Image.d.ts +64 -0
- package/Components/JsonConfigComponent/ChipInput.d.ts +13 -0
- package/Components/JsonConfigComponent/ConfigAlive.d.ts +10 -0
- package/Components/JsonConfigComponent/ConfigAutocomplete.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigCRON.d.ts +15 -0
- package/Components/JsonConfigComponent/ConfigCertificateSelect.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigCheckbox.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigChip.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigColor.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigCoordinates.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigCustom.d.ts +26 -0
- package/Components/JsonConfigComponent/ConfigDatePicker.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigFile.d.ts +15 -0
- package/Components/JsonConfigComponent/ConfigFileSelector.d.ts +3 -0
- package/Components/JsonConfigComponent/ConfigFunc.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigGeneric.d.ts +71 -0
- package/Components/JsonConfigComponent/ConfigIP.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigImageUpload.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigInstanceSelect.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigLanguage.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigNumber.d.ts +3 -0
- package/Components/JsonConfigComponent/ConfigObjectId.d.ts +17 -0
- package/Components/JsonConfigComponent/ConfigPanel.d.ts +3 -0
- package/Components/JsonConfigComponent/ConfigPassword.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigPattern.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigRoom.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigSelect.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigSelectSendTo.d.ts +17 -0
- package/Components/JsonConfigComponent/ConfigSendto.d.ts +18 -0
- package/Components/JsonConfigComponent/ConfigSendto.js +171 -9
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.d.ts +18 -0
- package/Components/JsonConfigComponent/ConfigSlider.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigStaticDivider.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigStaticHeader.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigStaticImage.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigStaticText.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigTable.d.ts +3 -0
- package/Components/JsonConfigComponent/ConfigTabs.d.ts +33 -0
- package/Components/JsonConfigComponent/ConfigText.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigText.js +24 -3
- package/Components/JsonConfigComponent/ConfigText.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTextSendTo.d.ts +10 -0
- package/Components/JsonConfigComponent/ConfigTimePicker.d.ts +14 -0
- package/Components/JsonConfigComponent/ConfigTopic.d.ts +17 -0
- package/Components/JsonConfigComponent/ConfigUser.d.ts +14 -0
- package/Components/JsonConfigComponent/index.d.ts +27 -0
- package/Components/JsonConfigComponent/index.js +21 -17
- package/Components/JsonConfigComponent/index.js.map +1 -1
- package/Components/Loader.d.ts +37 -0
- package/Components/Loaders/PT.d.ts +41 -0
- package/Components/Loaders/Vendor.d.ts +41 -0
- package/Components/Logo.d.ts +59 -0
- package/Components/MDUtils.d.ts +12 -0
- package/Components/ObjectBrowser.d.ts +632 -0
- package/Components/ObjectBrowser.js +315 -449
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/Router.d.ts +35 -0
- package/Components/SaveCloseButtons.d.ts +64 -0
- package/Components/Schedule.d.ts +7 -0
- package/Components/SelectWithIcon.d.ts +21 -0
- package/Components/SimpleCron/cron2text.d.ts +8 -0
- package/Components/SimpleCron/cronText.d.ts +2 -0
- package/Components/SimpleCron/index.d.ts +8 -0
- package/Components/SimpleCron/jquery.cron.locale.d.ts +2 -0
- package/Components/TabContainer.d.ts +42 -0
- package/Components/TabContent.d.ts +32 -0
- package/Components/TabHeader.d.ts +13 -0
- package/Components/TableResize.d.ts +14 -0
- package/Components/TextWithIcon.d.ts +3 -0
- package/Components/ToggleThemeMenu.d.ts +8 -0
- package/Components/TreeTable.d.ts +3 -0
- package/Components/UploadImage.d.ts +2 -0
- package/Components/Utils.d.ts +334 -0
- package/Components/copy-to-clipboard.d.ts +2 -0
- package/Components/withWidth.d.ts +2 -0
- package/Connection.d.ts +761 -0
- package/Connection.js +9 -1
- package/Connection.js.map +1 -1
- package/Dialogs/ComplexCron.d.ts +15 -0
- package/Dialogs/Confirm.d.ts +48 -0
- package/Dialogs/Cron.d.ts +15 -0
- package/Dialogs/Error.d.ts +49 -0
- package/Dialogs/FileSelect.d.ts +148 -0
- package/Dialogs/Message.d.ts +39 -0
- package/Dialogs/SelectID.d.ts +161 -0
- package/Dialogs/SimpleCron.d.ts +14 -0
- package/Dialogs/TextInput.d.ts +87 -0
- package/GenericApp.d.ts +213 -0
- package/Prompt.d.ts +5 -0
- package/README.md +7 -0
- package/Theme.d.ts +7 -0
- package/assets/devices/parseNames.d.ts +1 -0
- package/assets/rooms/parseNames.d.ts +1 -0
- package/i18n/de.json +4 -1
- package/i18n/en.json +4 -1
- package/i18n/es.json +4 -1
- package/i18n/fr.json +4 -1
- package/i18n/it.json +4 -1
- package/i18n/nl.json +4 -1
- package/i18n/pl.json +4 -1
- package/i18n/pt.json +4 -1
- package/i18n/ru.json +4 -1
- package/i18n/zh-cn.json +4 -1
- package/i18n.d.ts +92 -0
- package/icons/IconAdapter.d.ts +11 -0
- package/icons/IconAlias.d.ts +11 -0
- package/icons/IconChannel.d.ts +11 -0
- package/icons/IconClearFilter.d.ts +11 -0
- package/icons/IconClosed.d.ts +11 -0
- package/icons/IconCopy.d.ts +38 -0
- package/icons/IconDevice.d.ts +11 -0
- package/icons/IconDocument.d.ts +11 -0
- package/icons/IconDocumentReadOnly.d.ts +11 -0
- package/icons/IconExpert.d.ts +38 -0
- package/icons/IconFx.d.ts +11 -0
- package/icons/IconInstance.d.ts +11 -0
- package/icons/IconLogout.d.ts +38 -0
- package/icons/IconNoIcon.d.ts +38 -0
- package/icons/IconOpen.d.ts +11 -0
- package/icons/IconState.d.ts +11 -0
- package/index.d.ts +113 -0
- package/index.js +1 -0
- package/package.json +8 -8
package/Connection.d.ts
ADDED
|
@@ -0,0 +1,761 @@
|
|
|
1
|
+
export namespace PROGRESS {
|
|
2
|
+
const CONNECTING: number;
|
|
3
|
+
const CONNECTED: number;
|
|
4
|
+
const OBJECTS_LOADED: number;
|
|
5
|
+
const READY: number;
|
|
6
|
+
}
|
|
7
|
+
export namespace ERRORS {
|
|
8
|
+
export { PERMISSION_ERROR };
|
|
9
|
+
export { NOT_CONNECTED };
|
|
10
|
+
}
|
|
11
|
+
export default Connection;
|
|
12
|
+
declare const PERMISSION_ERROR: "permissionError";
|
|
13
|
+
declare const NOT_CONNECTED: "notConnectedError";
|
|
14
|
+
declare class Connection {
|
|
15
|
+
/**
|
|
16
|
+
* Checks if this connection is running in a web adapter and not in an admin.
|
|
17
|
+
* @returns {boolean} True if running in a web adapter or in a socketio adapter.
|
|
18
|
+
*/
|
|
19
|
+
static isWeb(): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @param {import('./types').ConnectionProps} props
|
|
22
|
+
*/
|
|
23
|
+
constructor(props: import('./types').ConnectionProps);
|
|
24
|
+
props: import("./types").ConnectionProps;
|
|
25
|
+
autoSubscribes: string[];
|
|
26
|
+
autoSubscribeLog: boolean;
|
|
27
|
+
doNotLoadAllObjects: boolean;
|
|
28
|
+
doNotLoadACL: boolean;
|
|
29
|
+
/** @type {Record<string, ioBroker.State>} */
|
|
30
|
+
states: Record<string, ioBroker.State>;
|
|
31
|
+
objects: any;
|
|
32
|
+
acl: any;
|
|
33
|
+
firstConnect: boolean;
|
|
34
|
+
waitForRestart: boolean;
|
|
35
|
+
/** @type {ioBroker.Languages} */
|
|
36
|
+
systemLang: ioBroker.Languages;
|
|
37
|
+
connected: boolean;
|
|
38
|
+
_waitForFirstConnection: Promise<any>;
|
|
39
|
+
_waitForFirstConnectionResolve: (value: any) => void;
|
|
40
|
+
/** @type {Record<string, { reg: RegExp; cbs: ioBroker.StateChangeHandler[]}>} */
|
|
41
|
+
statesSubscribes: Record<string, {
|
|
42
|
+
reg: RegExp;
|
|
43
|
+
cbs: ioBroker.StateChangeHandler[];
|
|
44
|
+
}>;
|
|
45
|
+
/** @type {Record<string, { reg: RegExp; cbs: import('./types').ObjectChangeHandler[]}>} */
|
|
46
|
+
objectsSubscribes: Record<string, {
|
|
47
|
+
reg: RegExp;
|
|
48
|
+
cbs: import('./types').ObjectChangeHandler[];
|
|
49
|
+
}>;
|
|
50
|
+
onProgress: (progress: number) => void;
|
|
51
|
+
onError: (err: any) => void;
|
|
52
|
+
loaded: boolean;
|
|
53
|
+
loadTimer: any;
|
|
54
|
+
loadCounter: number;
|
|
55
|
+
admin5only: any;
|
|
56
|
+
/** @type {((connected: boolean) => void)[]} */
|
|
57
|
+
onConnectionHandlers: ((connected: boolean) => void)[];
|
|
58
|
+
/** @type {((message: string) => void)[]} */
|
|
59
|
+
onLogHandlers: ((message: string) => void)[];
|
|
60
|
+
/** @type {Record<string, Promise<any>>} */
|
|
61
|
+
_promises: Record<string, Promise<any>>;
|
|
62
|
+
/**
|
|
63
|
+
* Starts the socket.io connection.
|
|
64
|
+
* @returns {void}
|
|
65
|
+
*/
|
|
66
|
+
startSocket(): void;
|
|
67
|
+
scriptLoadCounter: any;
|
|
68
|
+
_socket: any;
|
|
69
|
+
_authTimer: any;
|
|
70
|
+
subscribed: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Called internally.
|
|
73
|
+
* @private
|
|
74
|
+
* @param {boolean} isOk
|
|
75
|
+
* @param {boolean} isSecure
|
|
76
|
+
*/
|
|
77
|
+
private onPreConnect;
|
|
78
|
+
isSecure: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Checks if the socket is connected.
|
|
81
|
+
* @returns {boolean} true if connected.
|
|
82
|
+
*/
|
|
83
|
+
isConnected(): boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Checks if the socket is connected.
|
|
86
|
+
* @returns {Promise<void>} Promise resolves if once connected.
|
|
87
|
+
*/
|
|
88
|
+
waitForFirstConnection(): Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Called internally.
|
|
91
|
+
* @private
|
|
92
|
+
*/
|
|
93
|
+
private _getUserPermissions;
|
|
94
|
+
/**
|
|
95
|
+
* Called internally.
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
private onConnect;
|
|
99
|
+
systemConfig: any;
|
|
100
|
+
/**
|
|
101
|
+
* Called internally.
|
|
102
|
+
* @private
|
|
103
|
+
*/
|
|
104
|
+
private authenticate;
|
|
105
|
+
/**
|
|
106
|
+
* Subscribe to changes of the given state.
|
|
107
|
+
* @param {string} id The ioBroker state ID.
|
|
108
|
+
* @param {ioBroker.StateChangeHandler} cb The callback.
|
|
109
|
+
*/
|
|
110
|
+
/**
|
|
111
|
+
* Subscribe to changes of the given state.
|
|
112
|
+
* @param {string} id The ioBroker state ID.
|
|
113
|
+
* @param {boolean} binary Set to true if the given state is binary and requires Base64 decoding.
|
|
114
|
+
* @param {ioBroker.StateChangeHandler} cb The callback.
|
|
115
|
+
*/
|
|
116
|
+
subscribeState(id: string, binary: boolean, cb: ioBroker.StateChangeHandler): void;
|
|
117
|
+
/**
|
|
118
|
+
* Unsubscribes all callbacks from changes of the given state.
|
|
119
|
+
* @param {string} id The ioBroker state ID.
|
|
120
|
+
*/
|
|
121
|
+
/**
|
|
122
|
+
* Unsubscribes the given callback from changes of the given state.
|
|
123
|
+
* @param {string} id The ioBroker state ID.
|
|
124
|
+
* @param {ioBroker.StateChangeHandler} cb The callback.
|
|
125
|
+
*/
|
|
126
|
+
unsubscribeState(id: string, cb: ioBroker.StateChangeHandler): void;
|
|
127
|
+
/**
|
|
128
|
+
* Subscribe to changes of the given object.
|
|
129
|
+
* @param {string} id The ioBroker object ID.
|
|
130
|
+
* @param {import('./types').ObjectChangeHandler} cb The callback.
|
|
131
|
+
* @returns {Promise<void>}
|
|
132
|
+
*/
|
|
133
|
+
subscribeObject(id: string, cb: import('./types').ObjectChangeHandler): Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Unsubscribes all callbacks from changes of the given object.
|
|
136
|
+
* @param {string} id The ioBroker object ID.
|
|
137
|
+
* @returns {Promise<void>}
|
|
138
|
+
*/
|
|
139
|
+
/**
|
|
140
|
+
* Unsubscribes the given callback from changes of the given object.
|
|
141
|
+
* @param {string} id The ioBroker object ID.
|
|
142
|
+
* @param {import('./types').ObjectChangeHandler} cb The callback.
|
|
143
|
+
* @returns {Promise<void>}
|
|
144
|
+
*/
|
|
145
|
+
unsubscribeObject(id: string, cb: import('./types').ObjectChangeHandler): Promise<void>;
|
|
146
|
+
/**
|
|
147
|
+
* Called internally.
|
|
148
|
+
* @private
|
|
149
|
+
* @param {string} id
|
|
150
|
+
* @param {ioBroker.Object | null | undefined} obj
|
|
151
|
+
*/
|
|
152
|
+
private objectChange;
|
|
153
|
+
/**
|
|
154
|
+
* Called internally.
|
|
155
|
+
* @private
|
|
156
|
+
* @param {string} id
|
|
157
|
+
* @param {ioBroker.State | null | undefined} state
|
|
158
|
+
*/
|
|
159
|
+
private stateChange;
|
|
160
|
+
/**
|
|
161
|
+
* Gets all states.
|
|
162
|
+
* @param {boolean} disableProgressUpdate don't call onProgress() when done
|
|
163
|
+
* @returns {Promise<Record<string, ioBroker.State>>}
|
|
164
|
+
*/
|
|
165
|
+
getStates(disableProgressUpdate: boolean): Promise<Record<string, ioBroker.State>>;
|
|
166
|
+
/**
|
|
167
|
+
* Gets the given state.
|
|
168
|
+
* @param {string} id The state ID.
|
|
169
|
+
* @returns {Promise<ioBroker.State | null | undefined>}
|
|
170
|
+
*/
|
|
171
|
+
getState(id: string): Promise<ioBroker.State | null | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* Gets the given binary state.
|
|
174
|
+
* @param {string} id The state ID.
|
|
175
|
+
* @returns {Promise<Buffer | undefined>}
|
|
176
|
+
*/
|
|
177
|
+
getBinaryState(id: string): Promise<Buffer | undefined>;
|
|
178
|
+
/**
|
|
179
|
+
* Sets the given binary state.
|
|
180
|
+
* @param {string} id The state ID.
|
|
181
|
+
* @param {string} base64 The Base64 encoded binary data.
|
|
182
|
+
* @returns {Promise<void>}
|
|
183
|
+
*/
|
|
184
|
+
setBinaryState(id: string, base64: string): Promise<void>;
|
|
185
|
+
/**
|
|
186
|
+
* Sets the given state value.
|
|
187
|
+
* @param {string} id The state ID.
|
|
188
|
+
* @param {string | number | boolean | ioBroker.State | ioBroker.SettableState | null} val The state value.
|
|
189
|
+
* @param {boolean | null} ack Acknowledge flag
|
|
190
|
+
* @returns {Promise<void>}
|
|
191
|
+
*/
|
|
192
|
+
setState(id: string, val: string | number | boolean | ioBroker.State | ioBroker.SettableState | null, ack: boolean | null): Promise<void>;
|
|
193
|
+
/**
|
|
194
|
+
* Gets all objects.
|
|
195
|
+
* @param {(objects?: Record<string, ioBroker.Object>) => void} update Callback that is executed when all objects are retrieved.
|
|
196
|
+
* @returns {void}
|
|
197
|
+
*/
|
|
198
|
+
/**
|
|
199
|
+
* Gets all objects.
|
|
200
|
+
* @param {boolean} update Set to true to retrieve all objects from the server (instead of using the local cache).
|
|
201
|
+
* @param {boolean} disableProgressUpdate don't call onProgress() when done
|
|
202
|
+
* @returns {Promise<Record<string, ioBroker.Object>> | undefined}
|
|
203
|
+
*/
|
|
204
|
+
getObjects(update: boolean, disableProgressUpdate: boolean): Promise<Record<string, ioBroker.Object>> | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Called internally.
|
|
207
|
+
* @private
|
|
208
|
+
* @param {boolean} isEnable
|
|
209
|
+
*/
|
|
210
|
+
private _subscribe;
|
|
211
|
+
/**
|
|
212
|
+
* Requests log updates.
|
|
213
|
+
* @param {boolean} isEnabled Set to true to get logs.
|
|
214
|
+
* @returns {Promise<void>}
|
|
215
|
+
*/
|
|
216
|
+
requireLog(isEnabled: boolean): Promise<void>;
|
|
217
|
+
/**
|
|
218
|
+
* Deletes the given object.
|
|
219
|
+
* @param {string} id The object ID.
|
|
220
|
+
* @param {boolean} maintenance Force deletion of non conform IDs.
|
|
221
|
+
* @returns {Promise<void>}
|
|
222
|
+
*/
|
|
223
|
+
delObject(id: string, maintenance: boolean): Promise<void>;
|
|
224
|
+
/**
|
|
225
|
+
* Deletes the given object and all its children.
|
|
226
|
+
* @param {string} id The object ID.
|
|
227
|
+
* @param {boolean} maintenance Force deletion of non conform IDs.
|
|
228
|
+
* @returns {Promise<void>}
|
|
229
|
+
*/
|
|
230
|
+
delObjects(id: string, maintenance: boolean): Promise<void>;
|
|
231
|
+
/**
|
|
232
|
+
* Sets the object.
|
|
233
|
+
* @param {string} id The object ID.
|
|
234
|
+
* @param {ioBroker.SettableObject} obj The object.
|
|
235
|
+
* @returns {Promise<void>}
|
|
236
|
+
*/
|
|
237
|
+
setObject(id: string, obj: ioBroker.SettableObject): Promise<void>;
|
|
238
|
+
/**
|
|
239
|
+
* Gets the object with the given id from the server.
|
|
240
|
+
* @param {string} id The object ID.
|
|
241
|
+
* @returns {ioBroker.GetObjectPromise} The object.
|
|
242
|
+
*/
|
|
243
|
+
getObject(id: string): ioBroker.GetObjectPromise<string>;
|
|
244
|
+
/**
|
|
245
|
+
* Get all adapter instances.
|
|
246
|
+
* @param {boolean} [update] Force update.
|
|
247
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
248
|
+
*/
|
|
249
|
+
/**
|
|
250
|
+
* Get all instances of the given adapter.
|
|
251
|
+
* @param {string} adapter The name of the adapter.
|
|
252
|
+
* @param {boolean} [update] Force update.
|
|
253
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
254
|
+
*/
|
|
255
|
+
getAdapterInstances(adapter: string, update?: boolean): Promise<ioBroker.Object[]>;
|
|
256
|
+
/**
|
|
257
|
+
* Get all adapters.
|
|
258
|
+
* @param {boolean} [update] Force update.
|
|
259
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
260
|
+
*/
|
|
261
|
+
/**
|
|
262
|
+
* Get adapters with the given name.
|
|
263
|
+
* @param {string} adapter The name of the adapter.
|
|
264
|
+
* @param {boolean} [update] Force update.
|
|
265
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
266
|
+
*/
|
|
267
|
+
getAdapters(adapter: string, update?: boolean): Promise<ioBroker.Object[]>;
|
|
268
|
+
/**
|
|
269
|
+
* Called internally.
|
|
270
|
+
* @private
|
|
271
|
+
* @param {any[]} objs
|
|
272
|
+
* @param {(err?: any) => void} cb
|
|
273
|
+
*/
|
|
274
|
+
private _renameGroups;
|
|
275
|
+
/**
|
|
276
|
+
* Rename a group.
|
|
277
|
+
* @param {string} id The id.
|
|
278
|
+
* @param {string} newId The new id.
|
|
279
|
+
* @param {string | { [lang in ioBroker.Languages]?: string; }} newName The new name.
|
|
280
|
+
*/
|
|
281
|
+
renameGroup(id: string, newId: string, newName: string | {
|
|
282
|
+
fr?: string;
|
|
283
|
+
pt?: string;
|
|
284
|
+
pl?: string;
|
|
285
|
+
en?: string;
|
|
286
|
+
de?: string;
|
|
287
|
+
ru?: string;
|
|
288
|
+
nl?: string;
|
|
289
|
+
it?: string;
|
|
290
|
+
es?: string;
|
|
291
|
+
"zh-cn"?: string;
|
|
292
|
+
}): Promise<void>;
|
|
293
|
+
/**
|
|
294
|
+
* Sends a message to a specific instance or all instances of some specific adapter.
|
|
295
|
+
* @param {string} instance The instance to send this message to.
|
|
296
|
+
* @param {string} [command] Command name of the target instance.
|
|
297
|
+
* @param {ioBroker.MessagePayload} [data] The message data to send.
|
|
298
|
+
* @returns {Promise<ioBroker.Message | undefined>}
|
|
299
|
+
*/
|
|
300
|
+
sendTo(instance: string, command?: string, data?: ioBroker.MessagePayload): Promise<ioBroker.Message | undefined>;
|
|
301
|
+
/**
|
|
302
|
+
* Extend an object and create it if it might not exist.
|
|
303
|
+
* @param {string} id The id.
|
|
304
|
+
* @param {ioBroker.PartialObject} obj The object.
|
|
305
|
+
*/
|
|
306
|
+
extendObject(id: string, obj: ioBroker.PartialObject): Promise<any>;
|
|
307
|
+
/**
|
|
308
|
+
* Register a handler for log messages.
|
|
309
|
+
* @param {(message: string) => void} handler The handler.
|
|
310
|
+
*/
|
|
311
|
+
registerLogHandler(handler: (message: string) => void): void;
|
|
312
|
+
/**
|
|
313
|
+
* Unregister a handler for log messages.
|
|
314
|
+
* @param {(message: string) => void} handler The handler.
|
|
315
|
+
*/
|
|
316
|
+
unregisterLogHandler(handler: (message: string) => void): void;
|
|
317
|
+
/**
|
|
318
|
+
* Register a handler for the connection state.
|
|
319
|
+
* @param {(connected: boolean) => void} handler The handler.
|
|
320
|
+
*/
|
|
321
|
+
registerConnectionHandler(handler: (connected: boolean) => void): void;
|
|
322
|
+
/**
|
|
323
|
+
* Unregister a handler for the connection state.
|
|
324
|
+
* @param {(connected: boolean) => void} handler The handler.
|
|
325
|
+
*/
|
|
326
|
+
unregisterConnectionHandler(handler: (connected: boolean) => void): void;
|
|
327
|
+
/**
|
|
328
|
+
* Set the handler for standard output of a command.
|
|
329
|
+
* @param {(id: string, text: string) => void} handler The handler.
|
|
330
|
+
*/
|
|
331
|
+
registerCmdStdoutHandler(handler: (id: string, text: string) => void): void;
|
|
332
|
+
onCmdStdoutHandler: (id: string, text: string) => void;
|
|
333
|
+
/**
|
|
334
|
+
* Unset the handler for standard output of a command.
|
|
335
|
+
* @param {(id: string, text: string) => void} handler The handler.
|
|
336
|
+
*/
|
|
337
|
+
unregisterCmdStdoutHandler(handler: (id: string, text: string) => void): void;
|
|
338
|
+
/**
|
|
339
|
+
* Set the handler for standard error of a command.
|
|
340
|
+
* @param {(id: string, text: string) => void} handler The handler.
|
|
341
|
+
*/
|
|
342
|
+
registerCmdStderrHandler(handler: (id: string, text: string) => void): void;
|
|
343
|
+
onCmdStderrHandler: (id: string, text: string) => void;
|
|
344
|
+
/**
|
|
345
|
+
* Unset the handler for standard error of a command.
|
|
346
|
+
* @param {(id: string, text: string) => void} handler The handler.
|
|
347
|
+
*/
|
|
348
|
+
unregisterCmdStderrHandler(handler: (id: string, text: string) => void): void;
|
|
349
|
+
/**
|
|
350
|
+
* Set the handler for exit of a command.
|
|
351
|
+
* @param {(id: string, exitCode: number) => void} handler The handler.
|
|
352
|
+
*/
|
|
353
|
+
registerCmdExitHandler(handler: (id: string, exitCode: number) => void): void;
|
|
354
|
+
onCmdExitHandler: (id: string, exitCode: number) => void;
|
|
355
|
+
/**
|
|
356
|
+
* Unset the handler for exit of a command.
|
|
357
|
+
* @param {(id: string, exitCode: number) => void} handler The handler.
|
|
358
|
+
*/
|
|
359
|
+
unregisterCmdExitHandler(handler: (id: string, exitCode: number) => void): void;
|
|
360
|
+
/**
|
|
361
|
+
* Get all enums with the given name.
|
|
362
|
+
* @param {string} [_enum] The name of the enum
|
|
363
|
+
* @param {boolean} [update] Force update.
|
|
364
|
+
* @returns {Promise<Record<string, ioBroker.Object>>}
|
|
365
|
+
*/
|
|
366
|
+
getEnums(_enum?: string, update?: boolean): Promise<Record<string, ioBroker.Object>>;
|
|
367
|
+
/**
|
|
368
|
+
* Query a predefined object view.
|
|
369
|
+
* @param {string} start The start ID.
|
|
370
|
+
* @param {string} end The end ID.
|
|
371
|
+
* @param {string} type The type of object.
|
|
372
|
+
* @returns {Promise<Record<string, ioBroker.Object>>}
|
|
373
|
+
*/
|
|
374
|
+
getObjectView(start: string, end: string, type: string): Promise<Record<string, ioBroker.Object>>;
|
|
375
|
+
/**
|
|
376
|
+
* Get the stored certificates.
|
|
377
|
+
* @param {boolean} [update] Force update.
|
|
378
|
+
* @returns {Promise<{name: string; type: 'public' | 'private' | 'chained'}[]>}
|
|
379
|
+
*/
|
|
380
|
+
getCertificates(update?: boolean): Promise<{
|
|
381
|
+
name: string;
|
|
382
|
+
type: 'public' | 'private' | 'chained';
|
|
383
|
+
}[]>;
|
|
384
|
+
/**
|
|
385
|
+
* Get the logs from a host (only for admin connection).
|
|
386
|
+
* @param {string} host
|
|
387
|
+
* @param {number} [linesNumber]
|
|
388
|
+
* @returns {Promise<string[]>}
|
|
389
|
+
*/
|
|
390
|
+
getLogs(host: string, linesNumber?: number): Promise<string[]>;
|
|
391
|
+
/**
|
|
392
|
+
* Get the log files (only for admin connection).
|
|
393
|
+
* @returns {Promise<string[]>}
|
|
394
|
+
*/
|
|
395
|
+
getLogsFiles(host: any): Promise<string[]>;
|
|
396
|
+
/**
|
|
397
|
+
* Delete the logs from a host (only for admin connection).
|
|
398
|
+
* @param {string} host
|
|
399
|
+
* @returns {Promise<void>}
|
|
400
|
+
*/
|
|
401
|
+
delLogs(host: string): Promise<void>;
|
|
402
|
+
/**
|
|
403
|
+
* Read the meta items.
|
|
404
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
405
|
+
*/
|
|
406
|
+
readMetaItems(): Promise<ioBroker.Object[]>;
|
|
407
|
+
/**
|
|
408
|
+
* Read the directory of an adapter.
|
|
409
|
+
* @param {string} adapter The adapter name.
|
|
410
|
+
* @param {string} fileName The directory name.
|
|
411
|
+
* @returns {Promise<ioBroker.ReadDirResult[]>}
|
|
412
|
+
*/
|
|
413
|
+
readDir(adapter: string, fileName: string): Promise<ioBroker.ReadDirResult[]>;
|
|
414
|
+
/**
|
|
415
|
+
* Read a file of an adapter.
|
|
416
|
+
* @param {string} adapter The adapter name.
|
|
417
|
+
* @param {string} fileName The file name.
|
|
418
|
+
* @param {boolean} base64 If it must be a base64 format
|
|
419
|
+
* @returns {Promise<string>}
|
|
420
|
+
*/
|
|
421
|
+
readFile(adapter: string, fileName: string, base64: boolean): Promise<string>;
|
|
422
|
+
/**
|
|
423
|
+
* Write a file of an adapter.
|
|
424
|
+
* @param {string} adapter The adapter name.
|
|
425
|
+
* @param {string} fileName The file name.
|
|
426
|
+
* @param {Buffer | string} data The data (if it's a Buffer, it will be converted to Base64).
|
|
427
|
+
* @returns {Promise<void>}
|
|
428
|
+
*/
|
|
429
|
+
writeFile64(adapter: string, fileName: string, data: Buffer | string): Promise<void>;
|
|
430
|
+
/**
|
|
431
|
+
* Rename a file or folder of an adapter.
|
|
432
|
+
*
|
|
433
|
+
* All files in folder will be renamed too.
|
|
434
|
+
* @param {string} adapter The adapter name.
|
|
435
|
+
* @param {string} oldName The file name of the file to be renamed.
|
|
436
|
+
* @param {string} newName The new file name.
|
|
437
|
+
* @returns {Promise<void>}
|
|
438
|
+
*/
|
|
439
|
+
rename(adapter: string, oldName: string, newName: string): Promise<void>;
|
|
440
|
+
/**
|
|
441
|
+
* Delete a file of an adapter.
|
|
442
|
+
* @param {string} adapter The adapter name.
|
|
443
|
+
* @param {string} fileName The file name.
|
|
444
|
+
* @returns {Promise<void>}
|
|
445
|
+
*/
|
|
446
|
+
deleteFile(adapter: string, fileName: string): Promise<void>;
|
|
447
|
+
/**
|
|
448
|
+
* Delete a folder of an adapter.
|
|
449
|
+
* All files in folder will be deleted.
|
|
450
|
+
* @param {string} adapter The adapter name.
|
|
451
|
+
* @param {string} folderName The folder name.
|
|
452
|
+
* @returns {Promise<void>}
|
|
453
|
+
*/
|
|
454
|
+
deleteFolder(adapter: string, folderName: string): Promise<void>;
|
|
455
|
+
/**
|
|
456
|
+
* Get the list of all hosts.
|
|
457
|
+
* @param {boolean} [update] Force update.
|
|
458
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
459
|
+
*/
|
|
460
|
+
getHosts(update?: boolean): Promise<ioBroker.Object[]>;
|
|
461
|
+
/**
|
|
462
|
+
* Get the list of all users.
|
|
463
|
+
* @param {boolean} [update] Force update.
|
|
464
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
465
|
+
*/
|
|
466
|
+
getUsers(update?: boolean): Promise<ioBroker.Object[]>;
|
|
467
|
+
/**
|
|
468
|
+
* Get the list of all groups.
|
|
469
|
+
* @param {boolean} [update] Force update.
|
|
470
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
471
|
+
*/
|
|
472
|
+
getGroups(update?: boolean): Promise<ioBroker.Object[]>;
|
|
473
|
+
/**
|
|
474
|
+
* Get the host information.
|
|
475
|
+
* @param {string} host
|
|
476
|
+
* @param {boolean} [update] Force update.
|
|
477
|
+
* @param {number} [timeoutMs] optional read timeout.
|
|
478
|
+
* @returns {Promise<any>}
|
|
479
|
+
*/
|
|
480
|
+
getHostInfo(host: string, update?: boolean, timeoutMs?: number): Promise<any>;
|
|
481
|
+
/**
|
|
482
|
+
* Get the host information (short version).
|
|
483
|
+
* @param {string} host
|
|
484
|
+
* @param {boolean} [update] Force update.
|
|
485
|
+
* @param {number} [timeoutMs] optional read timeout.
|
|
486
|
+
* @returns {Promise<any>}
|
|
487
|
+
*/
|
|
488
|
+
getHostInfoShort(host: string, update?: boolean, timeoutMs?: number): Promise<any>;
|
|
489
|
+
/**
|
|
490
|
+
* Get the repository.
|
|
491
|
+
* @param {string} host
|
|
492
|
+
* @param {any} [args]
|
|
493
|
+
* @param {boolean} [update] Force update.
|
|
494
|
+
* @param {number} [timeoutMs] timeout in ms.
|
|
495
|
+
* @returns {Promise<any>}
|
|
496
|
+
*/
|
|
497
|
+
getRepository(host: string, args?: any, update?: boolean, timeoutMs?: number): Promise<any>;
|
|
498
|
+
/**
|
|
499
|
+
* Get the installed.
|
|
500
|
+
* @param {string} host
|
|
501
|
+
* @param {boolean} [update] Force update.
|
|
502
|
+
* @param {number} [cmdTimeout] timeout in ms (optional)
|
|
503
|
+
* @returns {Promise<any>}
|
|
504
|
+
*/
|
|
505
|
+
getInstalled(host: string, update?: boolean, cmdTimeout?: number): Promise<any>;
|
|
506
|
+
/**
|
|
507
|
+
* Execute a command on a host.
|
|
508
|
+
* @param {string} host The host name.
|
|
509
|
+
* @param {string} cmd The command.
|
|
510
|
+
* @param {string} cmdId The command ID.
|
|
511
|
+
* @param {number} cmdTimeout Timeout of command in ms
|
|
512
|
+
* @returns {Promise<void>}
|
|
513
|
+
*/
|
|
514
|
+
cmdExec(host: string, cmd: string, cmdId: string, cmdTimeout: number): Promise<void>;
|
|
515
|
+
/**
|
|
516
|
+
* Checks if a given feature is supported.
|
|
517
|
+
* @param {string} feature The feature to check.
|
|
518
|
+
* @param {boolean} [update] Force update.
|
|
519
|
+
* @returns {Promise<any>}
|
|
520
|
+
*/
|
|
521
|
+
checkFeatureSupported(feature: string, update?: boolean): Promise<any>;
|
|
522
|
+
/**
|
|
523
|
+
* Read the base settings of a given host.
|
|
524
|
+
* @param {string} host
|
|
525
|
+
* @returns {Promise<any>}
|
|
526
|
+
*/
|
|
527
|
+
readBaseSettings(host: string): Promise<any>;
|
|
528
|
+
/**
|
|
529
|
+
* Write the base settings of a given host.
|
|
530
|
+
* @param {string} host
|
|
531
|
+
* @param {any} config
|
|
532
|
+
* @returns {Promise<any>}
|
|
533
|
+
*/
|
|
534
|
+
writeBaseSettings(host: string, config: any): Promise<any>;
|
|
535
|
+
/**
|
|
536
|
+
* Send command to restart the iobroker on host
|
|
537
|
+
* @param {string} host
|
|
538
|
+
* @returns {Promise<any>}
|
|
539
|
+
*/
|
|
540
|
+
restartController(host: string): Promise<any>;
|
|
541
|
+
/**
|
|
542
|
+
* Read statistics information from host
|
|
543
|
+
* @param {string} host
|
|
544
|
+
* @param {string} typeOfDiag one of none, normal, no-city, extended
|
|
545
|
+
* @returns {Promise<any>}
|
|
546
|
+
*/
|
|
547
|
+
getDiagData(host: string, typeOfDiag: string): Promise<any>;
|
|
548
|
+
/**
|
|
549
|
+
* Read all states (which might not belong to this adapter) which match the given pattern.
|
|
550
|
+
* @param {string} pattern
|
|
551
|
+
* @returns {ioBroker.GetStatesPromise}
|
|
552
|
+
*/
|
|
553
|
+
getForeignStates(pattern: string): ioBroker.GetStatesPromise;
|
|
554
|
+
/**
|
|
555
|
+
* Get foreign objects by pattern, by specific type and resolve their enums.
|
|
556
|
+
* @param {string} pattern
|
|
557
|
+
* @param {string} [type]
|
|
558
|
+
* @returns {ioBroker.GetObjectsPromise}
|
|
559
|
+
*/
|
|
560
|
+
getForeignObjects(pattern: string, type?: string): ioBroker.GetObjectsPromise;
|
|
561
|
+
/**
|
|
562
|
+
* Gets the system configuration.
|
|
563
|
+
* @param {boolean} [update] Force update.
|
|
564
|
+
* @returns {Promise<ioBroker.OtherObject>}
|
|
565
|
+
*/
|
|
566
|
+
getSystemConfig(update?: boolean): Promise<ioBroker.OtherObject>;
|
|
567
|
+
/**
|
|
568
|
+
* Sets the system configuration.
|
|
569
|
+
* @param {ioBroker.SettableObjectWorker<ioBroker.OtherObject>} obj
|
|
570
|
+
* @returns {Promise<ioBroker.SettableObjectWorker<ioBroker.OtherObject>>}
|
|
571
|
+
*/
|
|
572
|
+
setSystemConfig(obj: ioBroker.SettableObjectWorker<ioBroker.OtherObject>): Promise<ioBroker.SettableObjectWorker<ioBroker.OtherObject>>;
|
|
573
|
+
/**
|
|
574
|
+
* Get the raw socket.io socket.
|
|
575
|
+
* @returns {any}
|
|
576
|
+
*/
|
|
577
|
+
getRawSocket(): any;
|
|
578
|
+
/**
|
|
579
|
+
* Get the history of a given state.
|
|
580
|
+
* @param {string} id
|
|
581
|
+
* @param {ioBroker.GetHistoryOptions} options
|
|
582
|
+
* @returns {Promise<ioBroker.GetHistoryResult>}
|
|
583
|
+
*/
|
|
584
|
+
getHistory(id: string, options: ioBroker.GetHistoryOptions): Promise<ioBroker.GetHistoryResult>;
|
|
585
|
+
/**
|
|
586
|
+
* Get the history of a given state.
|
|
587
|
+
* @param {string} id
|
|
588
|
+
* @param {ioBroker.GetHistoryOptions} options
|
|
589
|
+
* @returns {Promise<{values: ioBroker.GetHistoryResult; sesionId: string; stepIgnore: number}>}
|
|
590
|
+
*/
|
|
591
|
+
getHistoryEx(id: string, options: ioBroker.GetHistoryOptions): Promise<{
|
|
592
|
+
values: ioBroker.GetHistoryResult;
|
|
593
|
+
sesionId: string;
|
|
594
|
+
stepIgnore: number;
|
|
595
|
+
}>;
|
|
596
|
+
/**
|
|
597
|
+
* Change the password of the given user.
|
|
598
|
+
* @param {string} user
|
|
599
|
+
* @param {string} password
|
|
600
|
+
* @returns {Promise<void>}
|
|
601
|
+
*/
|
|
602
|
+
changePassword(user: string, password: string): Promise<void>;
|
|
603
|
+
/**
|
|
604
|
+
* Get the IP addresses of the given host.
|
|
605
|
+
* @param {string} host
|
|
606
|
+
* @param {boolean} [update] Force update.
|
|
607
|
+
* @returns {Promise<string[]>}
|
|
608
|
+
*/
|
|
609
|
+
getIpAddresses(host: string, update?: boolean): Promise<string[]>;
|
|
610
|
+
/**
|
|
611
|
+
* Get the IP addresses with interface names of the given host or find host by IP.
|
|
612
|
+
* @param {string} ipOrHostName
|
|
613
|
+
* @param {boolean} [update] Force update.
|
|
614
|
+
* @returns {Promise<any[<name, address, family>]>}
|
|
615
|
+
*/
|
|
616
|
+
getHostByIp(ipOrHostName: string, update?: boolean): Promise<any>;
|
|
617
|
+
/**
|
|
618
|
+
* Encrypt a text
|
|
619
|
+
* @param {string} text
|
|
620
|
+
* @returns {Promise<string>}
|
|
621
|
+
*/
|
|
622
|
+
encrypt(text: string): Promise<string>;
|
|
623
|
+
/**
|
|
624
|
+
* Decrypt a text
|
|
625
|
+
* @param {string} encryptedText
|
|
626
|
+
* @returns {Promise<string>}
|
|
627
|
+
*/
|
|
628
|
+
decrypt(encryptedText: string): Promise<string>;
|
|
629
|
+
/**
|
|
630
|
+
* Gets the version.
|
|
631
|
+
* @returns {Promise<{version: string; serverName: string}>}
|
|
632
|
+
*/
|
|
633
|
+
getVersion(update: any): Promise<{
|
|
634
|
+
version: string;
|
|
635
|
+
serverName: string;
|
|
636
|
+
}>;
|
|
637
|
+
/**
|
|
638
|
+
* Gets the web server name.
|
|
639
|
+
* @returns {Promise<string>}
|
|
640
|
+
*/
|
|
641
|
+
getWebServerName(): Promise<string>;
|
|
642
|
+
/**
|
|
643
|
+
* Gets the admin version.
|
|
644
|
+
* @deprecated use getVersion()
|
|
645
|
+
* @returns {Promise<{version: string; serverName: string}>}
|
|
646
|
+
*/
|
|
647
|
+
getAdminVersion(): Promise<{
|
|
648
|
+
version: string;
|
|
649
|
+
serverName: string;
|
|
650
|
+
}>;
|
|
651
|
+
/**
|
|
652
|
+
* Change access rights for file
|
|
653
|
+
* @param {string} [adapter] adapter name
|
|
654
|
+
* @param {string} [filename] file name with full path. it could be like vis.0/*
|
|
655
|
+
* @param {object} [options] like {mode: 0x644}
|
|
656
|
+
* @returns {Promise<{entries: array}>}
|
|
657
|
+
*/
|
|
658
|
+
chmodFile(adapter?: string, filename?: string, options?: object): Promise<{
|
|
659
|
+
entries: any[];
|
|
660
|
+
}>;
|
|
661
|
+
/**
|
|
662
|
+
* Change owner or/and owner group for file
|
|
663
|
+
* @param {string} [adapter] adapter name
|
|
664
|
+
* @param {string} [filename] file name with full path. it could be like vis.0/*
|
|
665
|
+
* @param {object} [options] like {owner: 'newOwner', ownerGroup: 'newGroup'}
|
|
666
|
+
* @returns {Promise<{entries: array}>}
|
|
667
|
+
*/
|
|
668
|
+
chownFile(adapter?: string, filename?: string, options?: object): Promise<{
|
|
669
|
+
entries: any[];
|
|
670
|
+
}>;
|
|
671
|
+
/**
|
|
672
|
+
* Check if the file exists
|
|
673
|
+
* @param {string} [adapter] adapter name
|
|
674
|
+
* @param {string} [filename] file name with full path. it could be like vis.0/*
|
|
675
|
+
* @returns {Promise<boolean>}
|
|
676
|
+
*/
|
|
677
|
+
fileExists(adapter?: string, filename?: string): Promise<boolean>;
|
|
678
|
+
/**
|
|
679
|
+
* Get the alarm notifications from a host (only for admin connection).
|
|
680
|
+
* @param {string} host
|
|
681
|
+
* @param {string} [category] - optional
|
|
682
|
+
* @returns {Promise<any>}
|
|
683
|
+
*/
|
|
684
|
+
getNotifications(host: string, category?: string): Promise<any>;
|
|
685
|
+
/**
|
|
686
|
+
* Clear the alarm notifications on a host (only for admin connection).
|
|
687
|
+
* @param {string} host
|
|
688
|
+
* @param {string} [category] - optional
|
|
689
|
+
* @returns {Promise<any>}
|
|
690
|
+
*/
|
|
691
|
+
clearNotifications(host: string, category?: string): Promise<any>;
|
|
692
|
+
/**
|
|
693
|
+
* Read if only easy mode is allowed (only for admin connection).
|
|
694
|
+
* @returns {Promise<boolean>}
|
|
695
|
+
*/
|
|
696
|
+
getIsEasyModeStrict(): Promise<boolean>;
|
|
697
|
+
/**
|
|
698
|
+
* Read easy mode configuration (only for admin connection).
|
|
699
|
+
* @returns {Promise<any>}
|
|
700
|
+
*/
|
|
701
|
+
getEasyMode(): Promise<any>;
|
|
702
|
+
/**
|
|
703
|
+
* Read current user
|
|
704
|
+
* @returns {Promise<string>}
|
|
705
|
+
*/
|
|
706
|
+
getCurrentUser(): Promise<string>;
|
|
707
|
+
getCurrentSession(cmdTimeout: any): Promise<any>;
|
|
708
|
+
/**
|
|
709
|
+
* Read adapter ratings
|
|
710
|
+
* @returns {Promise<any>}
|
|
711
|
+
*/
|
|
712
|
+
getRatings(update: any): Promise<any>;
|
|
713
|
+
/**
|
|
714
|
+
* Read current web, socketio or admin namespace, like admin.0
|
|
715
|
+
* @returns {Promise<string>}
|
|
716
|
+
*/
|
|
717
|
+
getCurrentInstance(): Promise<string>;
|
|
718
|
+
getCompactAdapters(update: any): Promise<any>;
|
|
719
|
+
getCompactInstances(update: any): Promise<any>;
|
|
720
|
+
getCompactInstalled(host: any, update: any, cmdTimeout: any): any;
|
|
721
|
+
getCompactSystemConfig(update: any): Promise<any>;
|
|
722
|
+
/**
|
|
723
|
+
* Get the repository in compact form (only version and icon).
|
|
724
|
+
* @param {string} host
|
|
725
|
+
* @param {boolean} [update] Force update.
|
|
726
|
+
* @param {number} [timeoutMs] timeout in ms.
|
|
727
|
+
* @returns {Promise<any>}
|
|
728
|
+
*/
|
|
729
|
+
getCompactRepository(host: string, update?: boolean, timeoutMs?: number): Promise<any>;
|
|
730
|
+
/**
|
|
731
|
+
* Get the list of all hosts in compact form (only _id, common.name, common.icon, common.color, native.hardware.networkInterfaces)
|
|
732
|
+
* @param {boolean} [update] Force update.
|
|
733
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
734
|
+
*/
|
|
735
|
+
getCompactHosts(update?: boolean): Promise<ioBroker.Object[]>;
|
|
736
|
+
/**
|
|
737
|
+
* Get uuid
|
|
738
|
+
* @returns {Promise<ioBroker.Object[]>}
|
|
739
|
+
*/
|
|
740
|
+
getUuid(): Promise<ioBroker.Object[]>;
|
|
741
|
+
/**
|
|
742
|
+
* Send log to ioBroker log
|
|
743
|
+
* @param {string} [text] Log text
|
|
744
|
+
* @param {string} [level] `info`, `debug`, `warn`, `error` or `silly`
|
|
745
|
+
* @returns {void}
|
|
746
|
+
*/
|
|
747
|
+
log(text?: string, level?: string): void;
|
|
748
|
+
/**
|
|
749
|
+
* Logout current user
|
|
750
|
+
* @returns {Promise<null>}
|
|
751
|
+
*/
|
|
752
|
+
logout(): Promise<null>;
|
|
753
|
+
}
|
|
754
|
+
declare namespace Connection {
|
|
755
|
+
namespace Connection {
|
|
756
|
+
const onLog: PropTypes.Requireable<(...args: any[]) => any>;
|
|
757
|
+
const onReady: PropTypes.Requireable<(...args: any[]) => any>;
|
|
758
|
+
const onProgress: PropTypes.Requireable<(...args: any[]) => any>;
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
import PropTypes from "prop-types";
|