@iobroker/types 6.0.8 → 6.0.9
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/config.d.ts +3 -3
- package/build/objects.d.ts +29 -8
- package/build/types.d.ts +6 -0
- package/package.json +2 -2
package/build/config.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface DatabaseBackupOptions {
|
|
|
9
9
|
/** by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0 */
|
|
10
10
|
period: number;
|
|
11
11
|
'// period': string;
|
|
12
|
-
/** Absolute path to
|
|
12
|
+
/** Absolute path to back-up directory or empty to back-up in data directory */
|
|
13
13
|
path: string;
|
|
14
14
|
'// path': string;
|
|
15
15
|
}
|
|
@@ -33,7 +33,7 @@ interface JsonlOptions {
|
|
|
33
33
|
'// throttleFS (1)': string;
|
|
34
34
|
'// throttleFS (2)': string;
|
|
35
35
|
/**
|
|
36
|
-
* By default, the database immediately writes to the database file. Write
|
|
36
|
+
* By default, the database immediately writes to the database file. Write access can be reduced using the throttleFS option.
|
|
37
37
|
* Be aware that buffered changes will be lost in case the process crashes
|
|
38
38
|
*/
|
|
39
39
|
throttleFS: {
|
|
@@ -41,7 +41,7 @@ interface JsonlOptions {
|
|
|
41
41
|
/** Write to the database file no more than every intervalMs milliseconds. */
|
|
42
42
|
intervalMs: number;
|
|
43
43
|
'// maxBufferedCommands': string;
|
|
44
|
-
/** Force writing after
|
|
44
|
+
/** Force writing of buffered commands after so many changes. This reduces memory consumption and data loss in case of a crash. */
|
|
45
45
|
maxBufferedCommands: number;
|
|
46
46
|
};
|
|
47
47
|
}
|
package/build/objects.d.ts
CHANGED
|
@@ -574,6 +574,27 @@ declare global {
|
|
|
574
574
|
|
|
575
575
|
type ConnectionType = 'local' | 'cloud';
|
|
576
576
|
|
|
577
|
+
type LocalLink = {
|
|
578
|
+
/** Link to the web service of this adapter, like: "%web_protocol%://%ip%:%web_port%/vis-2/edit.html" */
|
|
579
|
+
link: string;
|
|
580
|
+
/** Name of the link. Could be multi-language */
|
|
581
|
+
name?: ioBroker.StringOrTranslated;
|
|
582
|
+
/** Color */
|
|
583
|
+
color?: string;
|
|
584
|
+
/** Link to icon, like "vis-2/img/favicon.png" */
|
|
585
|
+
icon?: string;
|
|
586
|
+
/** Link to the adapter if it could be shown in the free cloud, like: vis-2/index.html according to "https://iobroker.net/" */
|
|
587
|
+
cloud?: string;
|
|
588
|
+
/** Link to the adapter if it could be shown in the pro-cloud, like: vis-2/edit.html according to "https://iobroker.pro/" */
|
|
589
|
+
pro?: string;
|
|
590
|
+
/** If this link should be shown on the intro tab in admin. false = do not show */
|
|
591
|
+
intro?: boolean;
|
|
592
|
+
/** Order of the card. Used on "intro" and cloud tabs to sort the links */
|
|
593
|
+
order?: number;
|
|
594
|
+
/** Description of the link. Could be multi-language */
|
|
595
|
+
description?: ioBroker.StringOrTranslated;
|
|
596
|
+
};
|
|
597
|
+
|
|
577
598
|
interface AdapterCommon extends ObjectCommon {
|
|
578
599
|
/** Custom attributes to be shown in admin in the object browser */
|
|
579
600
|
adminColumns?: string | (string | CustomAdminColumn)[];
|
|
@@ -604,7 +625,7 @@ declare global {
|
|
|
604
625
|
blockly?: boolean;
|
|
605
626
|
/** Where the adapter will get its data from. Set this together with @see dataSource */
|
|
606
627
|
connectionType?: ConnectionType;
|
|
607
|
-
/** If true, this adapter can be started in compact mode (in the same process as other
|
|
628
|
+
/** If true, this adapter can be started in compact mode (in the same process as other adapters) */
|
|
608
629
|
compact?: boolean;
|
|
609
630
|
/** The directory relative to iobroker-data where the adapter stores the data. Supports the placeholder `%INSTANCE%`. This folder will be backed up and restored automatically. */
|
|
610
631
|
dataFolder?: string;
|
|
@@ -626,7 +647,7 @@ declare global {
|
|
|
626
647
|
getHistory?: boolean;
|
|
627
648
|
/** Filename of the local icon which is shown for installed adapters. Should be located in the `admin` directory */
|
|
628
649
|
icon?: string;
|
|
629
|
-
/** The adapter will be executed once additionally after installation and the `install` event will be emitted during this run. This allows for executing one time installation code. */
|
|
650
|
+
/** The adapter will be executed once additionally after installation, and the `install` event will be emitted during this run. This allows for executing one time installation code. */
|
|
630
651
|
install?: boolean;
|
|
631
652
|
/** Source, where this adapter has been installed from, to enable reinstalling on e.g., backup restore */
|
|
632
653
|
installedFrom?: InstalledFrom;
|
|
@@ -634,17 +655,17 @@ declare global {
|
|
|
634
655
|
installedVersion: string;
|
|
635
656
|
keywords?: string[];
|
|
636
657
|
/** A dictionary of links to web services this adapter provides */
|
|
637
|
-
localLinks?: Record<string, string>;
|
|
658
|
+
localLinks?: Record<string, string | LocalLink>;
|
|
638
659
|
/** @deprecated Use @see localLinks */
|
|
639
660
|
localLink?: string;
|
|
640
661
|
loglevel?: LogLevel;
|
|
641
|
-
/** Whether this adapter receives logs from other hosts and adapters (e.g., to
|
|
662
|
+
/** Whether this adapter receives logs from other hosts and adapters (e.g., to store them somewhere) */
|
|
642
663
|
logTransporter?: boolean;
|
|
643
664
|
/** Path to the start file of the adapter. Should be the same as in `package.json` */
|
|
644
665
|
main?: string;
|
|
645
|
-
/** Whether the admin tab is written in
|
|
666
|
+
/** Whether the admin tab is written in materialized style. Required for Admin 3+ */
|
|
646
667
|
materializeTab?: boolean;
|
|
647
|
-
/** Whether the admin configuration dialog is written in
|
|
668
|
+
/** Whether the admin configuration dialog is written in materialized style. Required for Admin 3+ */
|
|
648
669
|
materialize: boolean;
|
|
649
670
|
/** @deprecated Use @see supportedMessages up from controller v5 */
|
|
650
671
|
messagebox?: true;
|
|
@@ -720,9 +741,9 @@ declare global {
|
|
|
720
741
|
webExtension?: string;
|
|
721
742
|
webPreSettings?: any; // ?
|
|
722
743
|
webservers?: any; // ?
|
|
723
|
-
/** A list of pages that should be shown on the "web" index page */
|
|
744
|
+
/** @deprecated (use localLinks) A list of pages that should be shown on the "web" index page */
|
|
724
745
|
welcomeScreen?: WelcomeScreenEntry[];
|
|
725
|
-
/** A list of pages that should be shown on the ioBroker cloud index page */
|
|
746
|
+
/** @deprecated (use localLinks) A list of pages that should be shown on the ioBroker cloud index page */
|
|
726
747
|
welcomeScreenPro?: WelcomeScreenEntry[];
|
|
727
748
|
wwwDontUpload?: boolean;
|
|
728
749
|
/** @deprecated Use 'common.licenseInformation' instead */
|
package/build/types.d.ts
CHANGED
|
@@ -402,6 +402,12 @@ export declare class AdapterClass extends EventEmitter {
|
|
|
402
402
|
/** Controller for messaging related functionality */
|
|
403
403
|
private readonly uiMessagingController;
|
|
404
404
|
constructor(options: AdapterOptions | string);
|
|
405
|
+
/**
|
|
406
|
+
* Get the adapter scoped package identifier of a node module
|
|
407
|
+
*
|
|
408
|
+
* @param moduleName name of the node module
|
|
409
|
+
*/
|
|
410
|
+
getAdapterScopedPackageIdentifier(moduleName: string): string;
|
|
405
411
|
installNodeModule(moduleName: string, options: InstallNodeModuleOptions): Promise<CommandResult>;
|
|
406
412
|
private _installNodeModule;
|
|
407
413
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iobroker/types",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.9",
|
|
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": "5120e61da9a6864aa443f79f12ac447589ea6147"
|
|
45
45
|
}
|