@iobroker/types 7.2.3 → 7.2.4

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.
@@ -650,7 +650,7 @@ declare global {
650
650
  /** Settings for custom Admin Tabs */
651
651
  adminTab?: {
652
652
  name?: StringOrTranslated;
653
- /** Base 64 icon for the tab */
653
+ /** Icon for the tab: a file name relative to the "admin" folder, a URL or a base64 data URL. If not set, the adapter icon is shown */
654
654
  icon?: string;
655
655
  /** If true, the Tab is not reloaded when the configuration changes */
656
656
  ignoreConfigUpdate?: boolean;
@@ -658,7 +658,7 @@ declare global {
658
658
  link?: string;
659
659
  /** If true, only one instance of this tab will be created for all instances */
660
660
  singleton?: boolean;
661
- /** Order number in admin tabs */
661
+ /** Position in the admin menu: the built-in tabs use 1 to 120, a tab without order gets 200. 0 counts as not set. Once the user has sorted the menu, the stored order wins */
662
662
  order?: number;
663
663
  /**
664
664
  * If the page sends an 'iobLoaded' event:
@@ -951,6 +951,8 @@ declare global {
951
951
  }[];
952
952
  /** Global saved expert mode for admin */
953
953
  expertMode?: boolean;
954
+ /** The "Did you know ...?" tips of the admin are not shown when it is opened */
955
+ tipsDisabled?: boolean;
954
956
 
955
957
  // Make it possible to narrow the object type using the custom property
956
958
  custom?: undefined;
package/build/types.d.ts CHANGED
@@ -330,6 +330,8 @@ export declare class AdapterClass extends EventEmitter {
330
330
  namespace: `${string}.${number}`;
331
331
  name: string;
332
332
  private _systemSecret?;
333
+ /** Attributes of `encryptedNative`: their values in `this.config` are decrypted on start */
334
+ private _decryptedNativeAttributes;
333
335
  /** Whether the adapter has already terminated */
334
336
  private terminated;
335
337
  /** The cache of usernames */
@@ -483,6 +485,15 @@ export declare class AdapterClass extends EventEmitter {
483
485
  *
484
486
  */
485
487
  disable(): ioBroker.SetObjectPromise;
488
+ /**
489
+ * Reads a parameter which is stored encrypted and returns its decrypted value.
490
+ *
491
+ * An attribute listed in `encryptedNative` is already decrypted in `this.config` when the adapter
492
+ * starts, and is returned as it is.
493
+ *
494
+ * @param attribute the config attribute to decrypt
495
+ * @param callback return result
496
+ */
486
497
  getEncryptedConfig(attribute: string, callback?: GetEncryptedConfigCallback): Promise<string | string[] | void>;
487
498
  private _getEncryptedConfig;
488
499
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iobroker/types",
3
- "version": "7.2.3",
3
+ "version": "7.2.4",
4
4
  "engines": {
5
5
  "node": ">=12.0.0"
6
6
  },
@@ -41,5 +41,5 @@
41
41
  ]
42
42
  }
43
43
  },
44
- "gitHead": "6dd9ccf0391f5cd0e708855f2b571c8aab378007"
44
+ "gitHead": "1849f5d9d69ad07fdf61f7d132ddc6ee9824a394"
45
45
  }